/* ===================================
   SHOP PAGE - QUIET LUXURY DESIGN
   =================================== */

/* === Shop Hero === */
.shop-hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) var(--container-padding) 4rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(139, 115, 85, 0.85) 100%);
    text-align: center;
}

.shop-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.shop-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 400;
    color: #f5f5f0;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.shop-hero__description {
    font-size: 1.125rem;
    color: rgba(245, 245, 240, 0.9);
    line-height: 1.8;
    margin-bottom: 0;
}

/* === Shop Layout === */
.shop-section {
    padding: var(--spacing-xl) 0;
    background: #fafaf8;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    position: relative;
}

/* === Sidebar Filters === */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.filter-toggle i {
    color: var(--color-accent);
}

.shop-filters {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.filter-close {
    display: none;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.filter-close i {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    transition: color 0.3s;
}

.filter-close i:hover {
    color: var(--color-accent);
}

.filter-group {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 6px;
}

.filter-option:hover {
    background: #fafafa;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.filter-option span:first-of-type {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text);
}

.filter-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Size Filter */
.filter-sizes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-option {
    flex: 0 0 calc(20% - 0.4rem);
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
}

.size-option input[type="checkbox"] {
    display: none;
}

.size-option span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.size-option:hover,
.size-option input[type="checkbox"]:checked + span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.size-option input[type="checkbox"]:checked ~ span {
    color: #fff;
}

/* Price Filter */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.price-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Color Filter */
.filter-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.color-option {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option input[type="checkbox"] {
    display: none;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option input[type="checkbox"]:checked + .color-option::after,
.color-option:has(input[type="checkbox"]:checked)::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Filter Buttons */
.shop-filters .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
}

.shop-filters .btn-text {
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === Shop Main Content === */
.shop-main {
    min-height: 100vh;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.shop-results {
    font-size: 0.95rem;
    color: var(--color-text);
}

.shop-results span {
    font-weight: 600;
    color: var(--color-accent);
}

.shop-sort select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b7355' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.shop-sort select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* === Products Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Card - Quiet Luxury Style */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f0;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card__badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
}

.badge-new {
    background: var(--color-accent);
    color: #fff;
}

.badge-bestseller {
    background: #b8860b;
    color: #fff;
}

.badge-exclusive {
    background: #1a1a1a;
    color: #fff;
}

.product-card__wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.product-card__wishlist i {
    font-size: 1.1rem;
    color: var(--color-text);
    transition: all 0.3s;
}

.product-card__wishlist:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.product-card__wishlist:hover i {
    color: #fff;
}

.product-card__wishlist.active i {
    font-weight: 900;
    color: #dc143c;
}

.product-card__content {
    padding: 1.5rem;
}

.product-card__collection {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.product-card__title {
    font-size: 1.15rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-card__description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.product-card__colors {
    display: flex;
    gap: 0.4rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-text);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .btn-add-cart {
    opacity: 1;
    transform: translateY(0);
}

.btn-add-cart:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-add-cart i {
    font-size: 1rem;
}

/* === Pagination === */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.pagination-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Trust Section === */
.trust-section {
    padding: 4rem 0;
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.trust-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* === Cart Sidebar === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-sidebar__header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.cart-sidebar__close {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-sidebar__close:hover {
    background: var(--color-accent);
    color: #fff;
}

.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-light);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-sidebar__footer {
    padding: 2rem;
    border-top: 1px solid #f0f0f0;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Wishlist Count */
.wishlist-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #dc143c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        z-index: 10000;
        transition: left 0.4s;
        overflow-y: auto;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .filter-toggle {
        display: flex;
    }

    .filter-close {
        display: flex;
    }

    .shop-filters {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: calc(var(--header-height) + 3rem) var(--container-padding) 3rem;
    }

    .shop-hero__title {
        font-size: 2rem;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .shop-results {
        text-align: center;
    }

    .shop-sort select {
        width: 100%;
    }

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

    .product-card__content {
        padding: 1rem;
    }

    .product-card__title {
        font-size: 1rem;
    }

    .product-card__description {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }

    .btn-add-cart {
        opacity: 1;
        transform: translateY(0);
        padding: 0.7rem;
        font-size: 0.85rem;
    }

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

    .cart-sidebar {
        max-width: 100%;
    }
}

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

    .filter-colors {
        grid-template-columns: repeat(6, 1fr);
    }
}
