/* استایل کلی افزونه */
.rhs-search-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.search-field {
    display: flex;
    margin-bottom: 20px;
}

.search-field input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

.search-field button {
    padding: 10px 20px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-filters {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select,
.filter-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.rhs-search-results {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-sort select {
    padding: 5px;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.plant-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.plant-item:hover {
    transform: translateY(-5px);
}

.plant-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plant-item-content {
    padding: 15px;
}

.plant-item h3 {
    margin: 0 0 10px;
}

.plant-item p {
    margin: 0 0 10px;
    color: #666;
}

.plant-meta {
    font-size: 0.9em;
    color: #888;
}

.plant-pagination {
    margin-top: 30px;
    text-align: center;
}

.rhs-plant-single {
    max-width: 1200px;
    margin: 0 auto;
}

.plant-header {
    text-align: center;
    margin-bottom: 30px;
}

.plant-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.plant-gallery {
    grid-column: 1;
}

.main-image img {
    width: 100%;
    border-radius: 5px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumbnails img {
    width: 100%;
    border-radius: 3px;
    cursor: pointer;
}

.plant-details {
    grid-column: 2;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
}

.detail-item .label {
    font-weight: bold;
}

.plant-description,
.plant-care {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.care-item {
    margin-bottom: 15px;
}

.related-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.articles-grid,
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.article-item,
.product-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.plant-questions {
    grid-column: 1 / -1;
    margin-top: 40px;
}

.question-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.question {
    font-weight: bold;
    margin-bottom: 10px;
}

.answer {
    padding: 10px;
    background: white;
    border-radius: 3px;
    border-left: 3px solid #4caf50;
}

.ask-question-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-group textarea {
    min-height: 100px;
}

.success-message {
    padding: 15px;
    background: #dff0d8;
    color: #3c763d;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .plant-content {
        grid-template-columns: 1fr;
    }

    .related-content {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}
/* استایل کلی صفحه جزئیات گیاه */
.rhs-plant-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.rhs-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.rhs-breadcrumb a {
    color: #4caf50;
    text-decoration: none;
}

.rhs-breadcrumb a:hover {
    text-decoration: underline;
}

.plant-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 15px;
}

.plant-title {
    font-size: 32px;
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.plant-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #666;
}

.scientific-name {
    font-style: italic;
}

.plant-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.plant-gallery-section {
    position: sticky;
    top: 20px;
    align-self: start;
}

.plant-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.gallery-thumbnails h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2e7d32;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail-item:hover {
    border-color: #4caf50;
}

.gallery-thumb {
    width: 100%;
    height: auto;
}

.plant-details-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.plant-key-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.plant-key-details h2 {
    font-size: 22px;
    color: #2e7d32;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.key-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.detail-item .label {
    font-weight: bold;
    color: #555;
}

.detail-item .value {
    color: #333;
}

.plant-description h2 {
    font-size: 22px;
    color: #2e7d32;
    margin: 0 0 15px 0;
}

.description-content {
    line-height: 1.8;
    text-align: justify;
}

.plant-care-guide h2 {
    font-size: 22px;
    color: #2e7d32;
    margin: 0 0 20px 0;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.care-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.care-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.care-content h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #2e7d32;
}

.care-content p {
    margin: 0;
    color: #555;
}

.related-content-section {
    margin: 40px 0;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.related-content-section h2 {
    font-size: 24px;
    color: #2e7d32;
    margin: 0 0 25px 0;
    text-align: center;
}

.related-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-articles h3,
.related-products h3 {
    font-size: 20px;
    color: #2e7d32;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.articles-list,
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item,
.product-item {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-image,
.product-image {
    flex: 0 0 120px;
}

.article-image img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content,
.product-content {
    padding: 15px;
    flex: 1;
}

.article-content h4,
.product-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.article-content h4 a,
.product-content h4 a {
    color: #2e7d32;
    text-decoration: none;
}

.article-content h4 a:hover,
.product-content h4 a:hover {
    text-decoration: underline;
}

.article-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.read-more,
.view-product {
    font-size: 14px;
    color: #4caf50;
    text-decoration: none;
}

.read-more:hover,
.view-product:hover {
    text-decoration: underline;
}

.price {
    font-weight: bold;
    color: #e91e63;
    margin: 0 0 10px 0;
}

.plant-questions-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.plant-questions-section h2 {
    font-size: 24px;
    color: #2e7d32;
    margin: 0 0 25px 0;
    text-align: center;
}

.question-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.question-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.answer-content {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.answer-content strong {
    color: #2e7d32;
}

.no-questions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

#load-more-questions {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#load-more-questions:hover {
    background: #3d8b40;
}

.ask-question-form {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ask-question-form h3 {
    font-size: 20px;
    color: #2e7d32;
    margin: 0 0 20px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rhs-button {
    display: inline-block;
    padding: 12px 24px;
    background: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.rhs-button-primary {
    background: #4caf50;
    color: white;
}

.rhs-button:hover {
    background: #e0e0e0;
}

.rhs-button-primary:hover {
    background: #3d8b40;
}

.success-message {
    padding: 15px;
    background: #dff0d8;
    color: #3c763d;
    border-radius: 4px;
    text-align: center;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .plant-content-wrapper {
        grid-template-columns: 1fr;
    }

    .key-details-grid,
    .care-grid,
    .related-content-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .plant-meta {
        flex-direction: column;
        gap: 5px;
    }

    .thumbnails-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-item,
    .product-item {
        flex-direction: column;
    }

    .article-image,
    .product-image {
        flex: 0 0 auto;
        height: 150px;
    }
}