/* =========================
   Luxe Timepieces — Shop Page Styles
   ========================= */

/* =============================
   SHOP HERO
   ============================= */
.luxe-shop-hero {
    position: relative;
    background-color: var(--luxe-navy);
    padding: 4rem 0 3.5rem;
    text-align: center;
    overflow: hidden;
}

.luxe-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200, 159, 60, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.luxe-shop-hero__title {
    font-family: var(--luxe-font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--luxe-white);
    margin-bottom: 0.625rem;
    position: relative;
}

.luxe-shop-hero__subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--luxe-gray-400);
    margin-bottom: 0;
    position: relative;
}

/* =============================
   SHOP TRUST BAR
   ============================= */
.luxe-shop-trust {
    background-color: var(--luxe-gray-50);
    border-bottom: 1px solid var(--luxe-gray-200);
    padding: 0.875rem 0;
}

.luxe-shop-trust__grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.luxe-shop-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--luxe-gray-700);
    letter-spacing: 0.02em;
}

.luxe-shop-trust__item svg {
    width: 18px;
    height: 18px;
    color: var(--luxe-gold);
    flex-shrink: 0;
}

/* =============================
   FILTER BAR
   ============================= */
.luxe-shop-filters {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--luxe-gray-200);
}

.luxe-shop-filters__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.luxe-shop-filters__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--luxe-gray-500);
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.luxe-shop-filters__select {
    font-family: var(--luxe-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--luxe-gray-200);
    border-radius: var(--luxe-radius);
    background-color: var(--luxe-white);
    color: var(--luxe-gray-700);
    cursor: pointer;
    appearance: auto;
    transition: border-color var(--luxe-transition);
    min-width: 0;
}

.luxe-shop-filters__select:focus {
    border-color: var(--luxe-gold);
    outline: none;
}

.luxe-shop-filters__reset {
    margin-left: auto;
    font-family: var(--luxe-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--luxe-gray-400);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--luxe-transition);
    flex-shrink: 0;
}

.luxe-shop-filters__reset:hover {
    color: var(--luxe-black);
}

/* Active Filter Pills */
.luxe-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.luxe-active-filters:empty {
    display: none;
}

.luxe-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--luxe-gray-700);
    background-color: var(--luxe-gray-100);
    border: 1px solid var(--luxe-gray-200);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--luxe-transition);
}

.luxe-active-filter:hover {
    background-color: var(--luxe-gray-200);
}

.luxe-active-filter__remove {
    font-size: 0.875rem;
    line-height: 1;
    color: var(--luxe-gray-400);
}

/* =============================
   SHOP TOOLBAR (result count + sort + view toggle)
   ============================= */
.luxe-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--luxe-gray-200);
}

.luxe-shop__toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.luxe-shop__toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.woocommerce .luxe-shop-content .woocommerce-result-count {
    font-size: 0.8125rem;
    color: var(--luxe-gray-500);
    margin: 0;
}

.woocommerce .luxe-shop-content .woocommerce-ordering {
    margin: 0;
}

.woocommerce .luxe-shop-content .woocommerce-ordering select {
    font-family: var(--luxe-font-body);
    font-size: 0.8125rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--luxe-gray-300);
    border-radius: var(--luxe-radius);
    background-color: var(--luxe-white);
    color: var(--luxe-gray-700);
    cursor: pointer;
    appearance: auto;
}

.woocommerce .luxe-shop-content .woocommerce-ordering select:focus {
    border-color: var(--luxe-gold);
    outline: none;
}

/* View Toggle */
.luxe-view-toggle {
    display: flex;
    border: 1px solid var(--luxe-gray-200);
    border-radius: var(--luxe-radius);
    overflow: hidden;
}

.luxe-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    background: var(--luxe-white);
    border: none;
    cursor: pointer;
    color: var(--luxe-gray-400);
    transition: all var(--luxe-transition);
}

.luxe-view-toggle__btn + .luxe-view-toggle__btn {
    border-left: 1px solid var(--luxe-gray-200);
}

.luxe-view-toggle__btn.is-active {
    background-color: var(--luxe-black);
    color: var(--luxe-white);
}

.luxe-view-toggle__btn svg {
    width: 16px;
    height: 16px;
}

/* =============================
   PRODUCT GRID & LIST VIEWS
   ============================= */
.luxe-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--luxe-gap);
}

.luxe-products-grid > .product,
.luxe-products-grid > .luxe-product-card {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

.luxe-products-grid ul.products {
    display: contents !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.luxe-products-grid ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

.luxe-products-grid--3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.luxe-products-grid--list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* List View Card Override */
.luxe-products-grid--list .luxe-product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.luxe-products-grid--list .luxe-product-link {
    display: contents;
}

.luxe-products-grid--list .luxe-product-image {
    aspect-ratio: 1;
}

.luxe-products-grid--list .luxe-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 1.5rem;
}

.luxe-products-grid--list .luxe-product-meta {
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 0.625rem;
}

/* =============================
   PRODUCT CARD ENHANCEMENTS
   ============================= */

/* Secondary hover image */
.luxe-product-image--secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.luxe-product-card:hover .luxe-product-image--secondary {
    opacity: 1;
}

/* Meta row (year, case size) */
.luxe-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
}

.luxe-product-meta__item {
    font-size: 0.6875rem;
    color: var(--luxe-gray-400);
    letter-spacing: 0.02em;
}

.luxe-product-meta__item span {
    color: var(--luxe-gray-600);
    font-weight: 500;
}

/* Card entrance animation */
.luxe-product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: luxeCardFadeIn 0.4s ease forwards;
}

.luxe-product-card:nth-child(1) { animation-delay: 0s; }
.luxe-product-card:nth-child(2) { animation-delay: 0.06s; }
.luxe-product-card:nth-child(3) { animation-delay: 0.12s; }
.luxe-product-card:nth-child(4) { animation-delay: 0.18s; }
.luxe-product-card:nth-child(5) { animation-delay: 0.24s; }
.luxe-product-card:nth-child(6) { animation-delay: 0.3s; }
.luxe-product-card:nth-child(7) { animation-delay: 0.36s; }
.luxe-product-card:nth-child(8) { animation-delay: 0.42s; }
.luxe-product-card:nth-child(9) { animation-delay: 0.48s; }
.luxe-product-card:nth-child(10) { animation-delay: 0.54s; }
.luxe-product-card:nth-child(11) { animation-delay: 0.6s; }
.luxe-product-card:nth-child(12) { animation-delay: 0.66s; }

@keyframes luxeCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   SHOP PAGINATION
   ============================= */
.woocommerce .luxe-shop-content nav.woocommerce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.woocommerce .luxe-shop-content nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.woocommerce .luxe-shop-content nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce .luxe-shop-content nav.woocommerce-pagination ul li a,
.woocommerce .luxe-shop-content nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--luxe-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--luxe-gray-200);
    border-radius: var(--luxe-radius);
    color: var(--luxe-gray-700);
    background-color: var(--luxe-white);
    transition: all var(--luxe-transition);
}

.woocommerce .luxe-shop-content nav.woocommerce-pagination ul li a:hover {
    border-color: var(--luxe-black);
    color: var(--luxe-black);
}

.woocommerce .luxe-shop-content nav.woocommerce-pagination ul li span.current {
    background-color: var(--luxe-black);
    border-color: var(--luxe-black);
    color: var(--luxe-white);
}

/* =============================
   EMPTY STATE
   ============================= */
.luxe-shop-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.luxe-shop-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--luxe-gray-300);
}

.luxe-shop-empty__title {
    font-family: var(--luxe-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--luxe-black);
    margin-bottom: 0.75rem;
}

.luxe-shop-empty__text {
    font-size: 0.9375rem;
    color: var(--luxe-gray-500);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.luxe-shop-empty__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =============================
   SHOP RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
    .luxe-products-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .luxe-shop-filters__row {
        gap: 0.5rem;
    }

    .luxe-shop-trust__grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .luxe-shop-hero {
        padding: 3rem 0 2.5rem;
    }

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

    .luxe-shop-filters__row {
        flex-direction: column;
        align-items: stretch;
    }

    .luxe-shop-filters__select {
        width: 100%;
    }

    .luxe-shop-filters__reset {
        margin-left: 0;
        text-align: center;
    }

    .luxe-shop__toolbar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .luxe-shop__toolbar-left,
    .luxe-shop__toolbar-right {
        justify-content: space-between;
    }

    .luxe-shop-trust__grid {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .luxe-products-grid--list .luxe-product-card {
        grid-template-columns: 140px 1fr;
    }
}

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

    .luxe-shop-hero__title {
        font-size: 1.625rem;
    }

    .luxe-view-toggle {
        display: none;
    }

    .luxe-products-grid--list .luxe-product-card {
        grid-template-columns: 1fr;
    }
}
