/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Montserrat', sans-serif; */
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5e8;
    color: #2f3a44;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

/* Breadcrumb */
.breadcrumb-wrap {
    background-color: #f5f5e8;
    padding: 15px 0;
    border-bottom: 2px solid #d4af3776;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #2f3a44;
}

.breadcrumb a {
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a:hover {
    color: #b8972e;
}

.breadcrumb span {
    margin: 0 5px;
    color: #2f3a44;
}

.b2 {
    color: #d4af37;
    font-weight: 600;
}

.b1 {
    color: black;
}

/* Shop Page Section */
.shop-page {
    margin-top: 20px;
}

/* Search Bar */
.shop-topbar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar form {
    display: flex;
    gap: 5px;
    width: 100%;
}

.search-input {
    padding: 8px 12px;
    flex: 1;
    border: 1px solid #c7c6bb;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fffef4;
    min-width: 0;
}

.search-input:focus {
    border-color: #b8972e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-button {
    padding: 8px 12px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
}

.search-button:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

.clear-button {
    padding: 8px 12px;
    background: linear-gradient(135deg, #767675, #4c4b49);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
}

.clear-button:hover {
    background: linear-gradient(135deg, #b66801, #986211);
}

.mobile-filter-btn {
    display: none;
    padding: 8px 12px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    min-width: 40px;
}

.mobile-filter-btn:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

/* Product List Container */
.product-list-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

/* Sidebar Filters */
.sidebar {
    width: 250px;
    background: #fffef4;
    border: 1px solid #e1e1d7;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4af37;
}

.filter-header h3 {
    color: #2f3a44;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-filter-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-filter-btn:hover {
    color: #d4af37;
}

.filter-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    color: #2f3a44;
    margin-bottom: 10px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.filter-title i {
    transition: transform 0.3s ease;
}

.filter-options {
    padding-left: 5px;
    margin-top: 5px;
    display: block;
}

.filter-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #2f3a44;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-label:hover {
    color: #d4af37;
}

.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
    margin-right: 8px;
    accent-color: #d4af37;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.filter-footer {
    margin-top: 15px;
}

.apply-filter-btn {
    padding: 10px 15px;
    width: 100%;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.apply-filter-btn:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

/* Product Grid */
.product-section {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.product-card {
    position: relative;
    background: #fffef4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* border-color: #d4af37; */
}

.offer-badge {
    position: absolute;
    top: 8px;
    left: -5px;
    background-color: #2d5016;
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.offer-badge::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 4px;
    height: 4px;
    background-color: #1a3009;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-card h4 {
    font-size: 14px;
    color: #2f3a44;
    margin: 8px 0;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card p {
    font-size: 15px;
    color: #2f3a44;
    font-weight: 600;
    margin: 4px 0;
}

.product-card .text-muted {
    color: #666;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: normal;
}

/* Price Container */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
}

.sale-price {
    font-size: 15px;
    color: #2f3a44;
    font-weight: 600;
}

.regular-price {
    font-size: 13px;
    color: #c00000;
    text-decoration: line-through;
    font-weight: normal;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.wishlist-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
}

.wishlist-btn i.fas {
    color: #d4af37;
}

.quick-view-btn {
    padding: 6px 12px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    margin-left: 8px;
}

.quick-view-btn:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

.quick-view-btn i {
    margin-right: 5px;
}

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

.btn {
    padding: 8px 14px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

.btn.active {
    background: #006400;
    color: #f5f5e8;
    cursor: default;
}

.no-products {
    text-align: center;
    font-size: 16px;
    color: #2f3a44;
    margin: 30px 0;
    grid-column: 1 / -1;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.quick-view-content {
    background: #fffef4;
    margin: 5% auto;
    padding: 25px;
    border: 2px solid #d4af37;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #d4af37;
}

.quick-view-content h2 {
    color: #2f3a44;
    margin-bottom: 12px;
    font-size: 20px;
}

.quick-view-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.quick-view-content p {
    margin-bottom: 12px;
    color: #2f3a44;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.view-details {
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
}

.view-details:hover {
    background: linear-gradient(135deg, #d4af37, #b8972e);
}

.close-btn {
    background: linear-gradient(135deg, #767675, #4c4b49);
    color: #fff;
}

.close-btn:hover {
    background: linear-gradient(135deg, #666, #444);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        padding: 15px;
        background: #f5f5e8;
        border: none;
        border-radius: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .sidebar.mobile-active {
        left: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .search-bar {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .shop-topbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .mobile-filter-btn {
        align-self: flex-start;
    }
    
    .product-card img {
        height: 140px;
    }
    
    .product-card h4 {
        font-size: 14px;
    }
    
    .product-card p {
        font-size: 14px;
    }
    
    .quick-view-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

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