/* Products Page Specific Styles */
.products-page {
    position: relative;
    z-index: 1;
    padding-left: 0;
    padding-top: 100px;
}

/* Products Layout */
.products-content {
    display: flex;
    gap: 30px;
    position: relative;
    margin-left: -80px;
}

/* Sidebar Styles */
.products-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    padding-right: 0;
    width: 109%;
}

/* Top Banner */
.top-banner {
    width: 109%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    margin-left: -15px;
    border-radius: 5px;
}

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

/* Accordion Styles */
.accordion-container {
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-section {
    border-bottom: none;
}

.accordion-section a,
.accordion-title a {
    text-decoration: none;
}

.accordion-title {
    padding: 15px 15px 15px 0;
    margin: 0 0 0 15px;
    color: #EA6020;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: transparent;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(198, 135, 82, 0.5);
}

.accordion-title:hover {
    color: #EA6020;
}

.accordion-title.active {
    color: #EA6020;
}

.accordion-content {
    padding: 0;
    background-color: transparent;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.category-list a {
    color: #EA6020;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
}

.category-list a:hover {
    color: #F58F65;
}

.category-list li:hover {
    background-color: transparent;
}

.category-list a.active {
    color: #F58F65;
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    margin-left: 30px;
}

/* Product Card */
.product-card {
    background-color: transparent;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

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

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.product-info {
    padding: 12px;
    text-align: center;
}

.product-title {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #ad6f3b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
}

.product-meta {
    margin-bottom: 14px;
}

.price {
    color: #C68752;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: block;
    text-align: center;
}

.product-link {
    display: inline-block;
    padding: 7px 14px;
    background-color: #C68752;
    color: #FFFAFA;
    text-decoration: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: #F58F65;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 5px 10px;
    margin: 0;
    color: #FFFAFA;
    text-decoration: none;
    border: 1px solid #C68752;
    border-radius: 3px;
    background-color: rgba(19, 23, 32, 0.9);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.pagination .current,
.pagination .page-numbers:hover {
    background-color: #5A851B;
    border-color: #5A851B;
    color: #FFFAFA;
}

/* Adjust prev/next buttons */
.pagination .prev,
.pagination .next {
    padding: 5px 12px;
}

/* Tablet and Mobile Styles */
@media (max-width: 1024px) {
    .products-content {
        margin-left: -40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding-top: 60px;
    }

    .products-content {
        flex-direction: column;
        margin-left: 0;
        gap: 20px;
        padding: 0 15px;
    }

    /* Move sidebar to top */
    .products-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        order: 1;
    }

    .accordion-container {
        margin-bottom: 20px;
    }

    .accordion-title {
        padding: 12px 15px;
        margin: 0;
        font-size: 0.9rem;
        text-align: center;
        background-color: rgba(234, 96, 32, 0.1);
        border-radius: 5px;
    }

    .accordion-content {
        padding: 10px 0;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .category-list li {
        padding: 5px 10px;
    }

    .category-list a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Banner adjustments */
    .top-banner {
        width: 100%;
        height: 150px;
        margin: 0 0 20px 0;
        order: 2;
    }

    /* Products grid adjustments */
    .main-content-area {
        width: 100%;
        padding: 0;
        order: 3;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0;
        padding: 10px 0;
    }

    .product-card {
        max-width: none;
    }

    .product-image {
        height: 200px;
    }

    .product-title {
        font-size: 1rem;
        margin: 8px 0;
    }

    .price {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .product-link {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    /* Pagination mobile adjustments */
    .pagination {
        margin-top: 20px;
        gap: 3px;
    }

    .pagination .page-numbers {
        min-width: 30px;
        height: 30px;
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .pagination .prev,
    .pagination .next {
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .pagination .page-numbers {
        min-width: 28px;
        height: 28px;
        padding: 3px 6px;
        font-size: 0.8rem;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .category-list {
        flex-direction: column;
        align-items: center;
    }

    .category-list li {
        width: 100%;
        text-align: center;
    }

    .accordion-title {
        font-size: 0.85rem;
    }

    .top-banner {
        height: 120px;
    }
}

/* Current Category Header Styles */
.current-category-header {
    width: 109%;
    padding: 20px 40px; /* Reduced padding top/bottom */
    background: linear-gradient(to right, rgba(53, 57, 60, 0.05), rgba(53, 57, 60, 0.02));
    border-bottom: 1px solid rgba(53, 57, 60, 0.1);
    margin-bottom: 30px; /* Reduced bottom margin */
    margin-left: -15px;
    border-radius: 5px;
}

.category-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.current-category-header h1 {
    font-family: 'Cinzel', serif;
    color: #35393C;
    font-size: 2rem; /* Reduced font size */
    margin: 0 0 8px 0; /* Reduced bottom margin */
    font-weight: 600;
    text-transform: capitalize;
}

.current-category-header p {
    font-family: 'Cormorant Garamond', serif;
    color: #35393C;
    font-size: 1.1rem; /* Reduced font size */
    line-height: 1.4; /* Reduced line height */
    margin: 0;
    max-width: 800px;
    opacity: 0.9;
}

/* Add these media queries to the existing ones */
@media (max-width: 768px) {
    .current-category-header {
        width: 100%;
        padding: 15px 20px; /* Further reduced padding for mobile */
        margin-left: 0;
        order: 2;
    }

    .current-category-header h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .current-category-header p {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .current-category-header {
        padding: 12px 15px;
    }

    .current-category-header h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .current-category-header p {
        font-size: 0.9rem;
    }
}

.header-tagline {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #AD6F3B;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .header-tagline {
        text-align: center;
        font-size: 0.8rem;
    }
}