/* Plants Page Specific Styles */
.plants-hero {
    position: relative;
    height: clamp(200px, 40vw, 400px);
    margin-bottom: 4rem;
    overflow: hidden;
}

.plants-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.plants-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.hero-text {
    font-size: 1.25rem;
    opacity: 0.9;
    text-align: center;
}

/* Plants Grid Section */
.plants-grid-section {
    padding: 2rem 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #7ed492;
    background: transparent;
    color: #7ed492;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #7ed492;
    color: white;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.plant-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-image {
    position: relative;
    height: clamp(120px, 30vw, 250px);
    overflow: hidden;
}

.plant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plant-card:hover .plant-overlay {
    opacity: 1;
}

.view-details {
    background: white;
    color: #333;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.view-details:hover {
    background: #7ed492;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.plant-info {
    padding: 1.5rem;
}

.plant-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #333;
}

.plant-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.plant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #7ed492;
}

.add-to-cart {
    padding: 0.5rem 1rem;
    background: #7ed492;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #4bbd7a;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.prev,
.pagination-btn.next {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.pagination-btn.prev:hover:not(:disabled),
.pagination-btn.next:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.pagination-btn.page-number {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
}

.pagination-btn.page-number:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Plant Details Modal */
.plant-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.plant-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: min(900px, 95vw);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: clamp(1em, 4vw, 2em);
    box-sizing: border-box;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.plant-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.plant-details-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.plant-details-info h2 {
    margin: 0 0 1rem;
    color: #333;
}

.care-info,
.benefits {
    margin-top: 1.5rem;
}

.care-info h3,
.benefits h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.logo-img {
    height: clamp(28px, 6vw, 64px);
    width: auto;
    display: block;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .plant-details {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .plant-cards {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .plant-card {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 1.2rem 1rem 1.1rem 1rem;
        border-radius: 1.2rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
        box-sizing: border-box;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .plant-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-top-left-radius: 1.2rem;
        border-top-right-radius: 1.2rem;
        margin-bottom: 0.9rem;
        background: #f7f7f7;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .plant-card-title,
    .plant-card-desc {
        text-align: center;
    }

    .plant-card-btn {
        font-size: 1rem;
        padding: 0.6em 1.2em;
        margin: 0.2rem auto 0 auto;
        display: block;
        border-radius: 0.7em;
    }

    body,
    html {
        overflow-x: hidden;
    }
}

@media (max-width: 600px) {
    .plants-hero {
        margin-top: 0;
    }

    .hero-content {
        top: 60%;
        padding-top: 0.5rem;
        z-index: 2;
    }

    .navbar {
        z-index: 1002;
    }
}

.hide-navbar {
    display: none !important;
}