body {
    background-color: var(--primary-color);
    color: var(--text-secondary);
    overflow-x: hidden;
}

/* Shop Header */
.shop-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/product_2.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
    padding: 3rem 0;
    text-align: center;
}

.shop-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.shop-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Filter Bar */
.filter-bar {
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin: 3rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 999;
    position: relative;
    /* overflow-x: hidden; */
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.filter-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    position: relative;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(201, 168, 122, 0.1);
}

.filter-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 4px;
    box-shadow: var(--shadow);
    width: 180px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
}

.filter-item:hover .filter-dropdown, .filter-dropdown.show {
    opacity: 1;
    visibility: visible;
    top: 100%;
    backdrop-filter: blur(10px);
}


.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
    transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--accent-color);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    width: 250px;
}

.filter-search input {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    width: 100%;
    font-size: 0.9rem;
    outline: none;
}

.filter-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-search i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    /* background-color: red; */
    /* z-index: -1;
    position: relative; */
}

.product-card {
    background: rgba(40, 40, 40, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 350px;
    overflow: hidden;
    position: relative;

    
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-action-btn {
    background: rgba(201, 168, 122, 0.8);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-action-btn:hover {
    background: var(--accent-color);
}

.product-action-btn.wishlist {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
}

.product-action-btn.wishlist:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.product-tag {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-tag.new {
    background: #6d9886;
}

.product-tag.sale {
    background: #b46060;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.old-price {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: line-through;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item:hover, .page-item.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.page-item.arrow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-item.arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(to right, rgba(201, 168, 122, 0.1), rgba(40, 40, 40, 0.7));
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 8px;
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 4px 0 0 4px;
    color: var(--secondary-color);
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #d7b68a;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--primary-color);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1100;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-value {
    font-size: 0.9rem;
}

.remove-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: var(--accent-color);
}

.cart-footer {
    padding: 1.5rem;
    background: rgba(40, 40, 40, 0.5);
    position: sticky;
    bottom: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.total-title {
    font-size: 1rem;
}

.total-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.checkout-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #d7b68a;
}

.view-cart-btn {
    width: 100%;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-cart-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Product Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--primary-color);
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.quick-view-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quick-view-image {
    height: 100%;
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-content {
    padding: 2.5rem 2rem 2.5rem 0;
}

.quick-view-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.quick-view-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-view-current-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.quick-view-old-price {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.quick-view-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.quick-view-sizes {
    margin-bottom: 2rem;
}

.size-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.size-options {
    display: flex;
    gap: 1rem;
}

.size-option {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover, .size-option.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.quick-view-colors {
    margin-bottom: 2rem;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.color-option::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option.active::after {
    opacity: 1;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-view-quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-display {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #d7b68a;
}

.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* AR Try-On Button */
.ar-tryon-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.ar-tryon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .shop-title {
        font-size: 2.5rem;
    }
    
    .quick-view-container {
        grid-template-columns: 1fr;
    }
    
    .quick-view-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-left {
        width: 100%;
        justify-content: space-between;
        /* overflow-x: auto; */
        padding-bottom: 0.5rem;
    }
    
    .filter-search {
        width: 100%;
        margin-top: 1rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }

    .filter-item, .filter-item .filter-btn, .filter-dropdown{
        width: 100%;
    }

    .filter-item .filter-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .newsletter-btn {
        border-radius: 4px;
        width: 100%;
    }
    
    .cart-modal {
        width: 100%;
    }
}


/* AR Try-On Feature */
/* .ar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    z-index: 2000;
    display: none;
}

.ar-container.active {
    display: block;
}

.ar-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.ar-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.ar-close {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.ar-guide {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
} */