/* Mindblowing Luxury Shop Design V2 */
:root {
    --color-shop-bg: #fcfbf9;
    --color-shop-card: rgba(255, 255, 255, 0.7);
    --color-shop-text: #111111;
    --color-shop-text-light: #666666;
    --color-shop-accent: #bfa068;
    --color-shop-border: rgba(0, 0, 0, 0.04);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    --radius-lg: 16px;
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --blur-glass: blur(12px);
}

body.woocommerce-shop,
body.tax-product_cat {
    background-color: var(--color-shop-bg);
    color: var(--color-shop-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.shop-hero {
    position: relative;
    padding: 100px 0 60px;
    /* Reduced padding from 160px/100px */
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    /* Reduced from 60px */
    background: url('../images/shop-hero-bg.jpg') top center/cover no-repeat;
}

/* Texture visibility increased slightly */
.shop-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.shop-hero__content {
    position: relative;
    z-index: 2;
}

.shop-hero__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    /* Slightly larger clamp */
    font-weight: 300;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ... Orbs remain same ... */

/* --- BREADCRUMB & TOOLBAR --- */
.shop-breadcrumb-bar {
    padding: 15px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    background: transparent;
    /* Remove solid background */
    text-align: center;
    /* Center breadcrumb */
}

/* Style Breadcrumbs inside bar */
.woocommerce-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-shop-text-light);
    margin: 0;
}

.woocommerce-breadcrumb a {
    color: var(--color-shop-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.woocommerce-breadcrumb a:hover {
    border-bottom-color: currentColor;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.shop-toolbar__count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-shop-text-light);
    margin: 0;
}

.shop-toolbar__ordering select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-shop-text);
}

/* --- PRODUCT GRID --- */
/*
  Global reset: let each context define its own columns.
  WooCommerce float layout is neutralised here.
*/
ul.products {
    display: grid;
    gap: 32px 24px;
    padding: 0;
    list-style: none;
    margin: 0;
    /* fallback columns for contexts without a scoped rule */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/*
  Shop page: sidebar 200px + 36px gap → products area ~964px.
  4 columns: (964 - 72) / 4 = 223px per card — refined luxury size.
*/
.shop-products__main ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (min-width: 1100px) {
    .shop-products__main ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

ul.products li.product {
    position: relative;
    opacity: 1;
    transform: none;
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    /* Kill WooCommerce float/width on li */
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* JS reveal: only off-screen items animate in */
ul.products li.product.will-reveal {
    opacity: 0;
    transform: translateY(24px);
}

ul.products li.product.revealed {
    opacity: 1;
    transform: none;
}

ul.products li.product .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: var(--color-shop-card);
    border: 1px solid var(--color-shop-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

ul.products li.product.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Card Styling - Glassmorphism */
ul.products li.product .woocommerce-loop-product__link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

ul.products li.product .product-card__image {
    aspect-ratio: 4 / 5 !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-alt);
}

ul.products li.product img {
    border-radius: 0;
    /* Handled by parent */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

/* Hover Effect: Scale Image */
ul.products li.product:hover img {
    transform: scale(1.08);
}

/* Product Info - Clean & Editorial */
ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 20px 0 5px;
    color: var(--color-shop-text);
    transition: color 0.3s ease;
}

ul.products li.product .product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

ul.products li.product .price {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-shop-text-light);
    font-weight: 500;
    display: block;
    margin-top: auto;
}

/* Add to Cart Button - "Magnetic" bottom bar */
ul.products li.product .button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-shop-text);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    z-index: 10;
}

ul.products li.product:hover .button {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

ul.products li.product .button:hover {
    background: var(--color-shop-text);
    color: #fff;
}

/* Badges */
.onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-shop-text);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
}

/* --- PRE-FOOTER --- */
.shop-pre-footer {
    padding: 100px 0;
    margin-top: 100px;
    background: #f4f1ea;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.shop-pre-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.shop-pre-footer__col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--color-shop-text-light);
}

.shop-pre-footer__links {
    list-style: none;
    padding: 0;
}

.shop-pre-footer__links li {
    margin-bottom: 12px;
}

.shop-pre-footer__links a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-shop-text);
    transition: margin-left 0.3s ease, color 0.3s ease;
}

.shop-pre-footer__links a:hover {
    margin-left: 10px;
    color: var(--color-shop-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .shop-hero__title {
        font-size: 3rem;
    }

    ul.products,
    .shop-products__main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 12px !important;
    }

    .shop-pre-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =============================================
   SHOP FILTERS — IseMoody Brand Redesign
   Matches the site's luxury editorial design.
   ============================================= */

/* --- Layout: sidebar + products grid --- */
.shop-products__inner {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 52px;
    align-items: start;
}

/* Mobile toggle – hidden on desktop */
.shop-filters-toggle {
    display: none;
}
