/*
Theme Name: Matilda Store
Theme URI: 
Description: Luxury Minimalist WooCommerce Theme for Matilda
Author: Antigravity
Author URI: 
Text Domain: matilda-store
Version: 1.0.0
*/

/* -------------------------------------------------------------------------- */
/*  1. CSS Variables & Fluidity System
/* -------------------------------------------------------------------------- */
:root {
  /* -- Palette -- */
  --clr-bg: #ffffff;
  --clr-text: #1a1a1a;
  /* Deep Black */
  --clr-text-light: #555555;
  --clr-accent: #D4AF37;
  /* Gold */
  --clr-accent-dark: #b5952f;

  --clr-surface: #f9f9f9;
  /* Subtle background for cards/sections */
  --clr-border: #e5e5e5;

  /* -- Fluids (375px -> 1440px) -- */

  /* Font Sizes */
  /* xs: 12px -> 14px */
  --fs-xs: clamp(0.75rem, 0.706rem + 0.188vw, 0.875rem);
  /* sm: 14px -> 16px */
  --fs-sm: clamp(0.875rem, 0.831rem + 0.188vw, 1rem);
  /* base: 16px -> 18px (Body) */
  --fs-base: clamp(1rem, 0.956rem + 0.188vw, 1.125rem);
  /* md: 20px -> 24px */
  --fs-md: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
  /* lg: 24px -> 32px (Section Titles) */
  --fs-lg: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);
  /* xl: 32px -> 48px (Page Titles) */
  --fs-xl: clamp(2rem, 1.648rem + 1.502vw, 3rem);
  /* xxl: 40px -> 64px (Hero) */
  --fs-xxl: clamp(2.5rem, 1.972rem + 2.254vw, 4rem);

  /* Spacing */
  /* 375: 16px -> 1440: 24px */
  --space-sm: clamp(1rem, 0.824rem + 0.751vw, 1.5rem);
  /* 375: 24px -> 1440: 40px */
  --space-md: clamp(1.5rem, 1.148rem + 1.502vw, 2.5rem);
  /* 375: 40px -> 1440: 80px */
  --space-lg: clamp(2.5rem, 1.62rem + 3.756vw, 5rem);
  /* 375: 64px -> 1440: 128px */
  --space-xl: clamp(4rem, 2.592rem + 6.009vw, 8rem);

  /* -- Typography -- */
  --ff-primary: 'Inter', sans-serif;
  --ff-secondary: 'Playfair Display', serif;
  /* For headings */
}

/* -------------------------------------------------------------------------- */
/*  2. Reset & Base Styles
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Enable smooth scrolling for anchor links */
  scroll-padding-top: 80px;
  /* Offset for fixed header if we add one later, or just general breathing room */
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* -------------------------------------------------------------------------- */
/*  3. Typography & Global Elements
/* -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-secondary);
  font-weight: 400;
  /* Minimalist luxury usually uses lighter weights */
  line-height: 1.1;
  color: var(--clr-text);
}

h1 {
  font-size: var(--fs-xxl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  max-width: 65ch;
  /* Optimal reading measure */
  margin-bottom: var(--space-sm);
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*  4. Components (BEM)
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2em;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  min-height: 44px;
  /* Touch target */
}

.btn--primary {
  background-color: var(--clr-text);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--clr-text);
  color: var(--clr-text);
}

.btn--outline:hover {
  background-color: var(--clr-text);
  color: #fff;
}

/* Container */
.container {
  width: min(100% - var(--space-md) * 2, 1400px);
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--clr-border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Left (Toggle) - Center (Logo) - Right (Cart) */
  align-items: center;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.header-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--clr-text);
  transition: opacity 0.3s ease;
}

.header-cart-link:hover {
  opacity: 0.7;
}

.cart-count {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background-color: var(--clr-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-branding {
  font-family: var(--ff-secondary);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
}

.main-navigation a {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--clr-accent);
}


/* WooCommerce Overrides (Shop & Archive) */

/* 1. Shop Grid Layout */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  /* Mobile: 2 Columns Enforced */
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
  /* Remove clearfix */
}

/* Tablet */
@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 2. Product Card (li.product) */
.woocommerce ul.products li.product {
  text-align: center;
  margin-bottom: 0 !important;
  /* Grid handles gap */
  width: 100% !important;
  float: none !important;
}

.woocommerce ul.products li.product a img {
  margin-bottom: var(--space-sm) !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
  background-color: #f0f0f0;
}

.woocommerce ul.products li.product a:hover img {
  transform: scale(1.05);
}

/* 3. Typography (Titles) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ff-primary);
  font-size: 0.85rem !important;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.25em;
  padding: 0;
  display: block;
}

/* 4. Price */
.woocommerce ul.products li.product .price {
  color: var(--clr-text-light) !important;
  font-size: var(--fs-sm) !important;
  font-family: var(--ff-primary) !important;
  display: block;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--clr-accent);
}

/* 5. Add to Cart Button (Hidden per user request) */
.woocommerce ul.products li.product .button.add_to_cart_button {
  display: none !important;
}

/* 6. Pagination */
.woocommerce-pagination ul {
  border: none !important;
  display: flex !important;
  justify-content: center;
  gap: var(--space-xs);
}

.woocommerce-pagination ul li {
  border: none !important;
  margin: 0 !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--fs-sm);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
  background-color: var(--clr-text) !important;
  color: #fff !important;
  border-color: var(--clr-text);
}

/* 7. Ordering & Result Count */
/* Split layout: Count Left, Order Right (Classic & Clean) */
/* Added top spacing since title is hidden */

.woocommerce .woocommerce-result-count {
  float: left !important;
  /* Left side */
  margin: 40px 0 30px 0 !important;
  /* Top spacing + Bottom */
  font-size: 0.9rem !important;
  color: var(--clr-text-light);
  line-height: 40px;
}

.woocommerce .woocommerce-ordering {
  float: right !important;
  /* Right side */
  margin: 40px 0 30px 0 !important;
  /* Top spacing + Bottom */
}

.woocommerce .woocommerce-ordering select {
  padding: 0.5em 1em;
  border: 1px solid var(--clr-border);
  font-family: var(--ff-primary);
  font-size: 0.9rem;
  background-color: transparent;
  color: var(--clr-text-light);
  height: 40px;
  vertical-align: middle;
}

/* 8. Shop Page Title */
/* USER REQUEST: Hide entirely (Broad selectors to catch all variations) */
.woocommerce .page-title,
.woocommerce-page .page-title,
.post-type-archive-product .page-title,
body.woocommerce h1.page-title {
  display: none !important;
}

/* Ensure Header container doesn't hide overflow or collapse */
.woocommerce-products-header {
  padding: 0;
  margin: 0;
  border: none;
}

/* Ensure Grid Clears Filters */
.woocommerce ul.products {
  clear: both !important;
  padding-top: 20px;
}

@media (max-width:1024px) {
  .main-navigation a {
    font-size: var(--fs-md);
  }
}

/* -------------------------------------------------------------------------- */
/*  5. Sections & Home Page
/* -------------------------------------------------------------------------- */
/*  9. Featured Products (New Arrivals)
/* -------------------------------------------------------------------------- */
.featured-products {
  background-color: var(--clr-surface);
  /* Gray background for contrast */
}

.section-spacing {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-lg);
  margin-bottom: 0;
}

.view-all-link {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border 0.3s ease;
}

.view-all-link:hover {
  border-bottom-color: currentColor;
}

/* Hero Section */
.hero {
  height: 45vh;
  /* Almost full screen but hinting at content below */
  display: flex;
  align-items: center;
  background-color: var(--clr-surface);
  /* Fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  color: #fff;
  /* Enforce white text inheritance */
}

/* Overlay for text readability over image */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  /* Darker overlay (65%) */
  z-index: 1;
}

.hero__title {
  color: #fff !important;
  font-size: var(--fs-xxl);
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  color: #fff !important;
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  font-weight: 300;
  opacity: 0.9;
}



/* -------------------------------------------------------------------------- */
/*  8. Footer (Grid)
/* -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  /* Reduced from XL to MD for tighter look */
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  /* Add space between grid and copyright */
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--ff-secondary);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.footer-desc {
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
}

.footer-heading {
  font-size: var(--fs-xs);
  /* Small label style */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  color: var(--clr-text-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5em;
}

.footer-links a {
  font-size: var(--fs-sm);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  /* Separator logic moved to grid margin-bottom for cleaner flow */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: var(--space-md);
  text-align: center;
  width: 100%;
  /* Ensure full width for centering */
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  display: flex;
  /* Explicit flex to ensure alignment control */
  justify-content: center;
}

.footer-bottom p {
  margin: 0;
}


/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*  4. Mobile Navigation (Left Slide) & Desktop Reset
/* -------------------------------------------------------------------------- */
/* Utility: Lock Body Scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Utility: Dark Backdrop Overlay with Blur */
body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  /* Below Drawer (100) */
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Base Mobile Styles (Drawer) */
@media (max-width: 1024px) {
  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background-color: var(--clr-surface);
    padding: calc(var(--space-xl) * 2) var(--space-xl);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  body.menu-open .main-navigation {
    transform: translateX(0);
  }

  /* Hamburger Animation */
  body.menu-open .menu-toggle__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  body.menu-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }

  /* Reveal Animation */
  @keyframes slideInLeftFade {
    0% {
      opacity: 0;
      transform: translateX(-20px);
      visibility: hidden;
    }

    1% {
      visibility: visible;
    }

    100% {
      opacity: 1;
      transform: translateX(0);
      visibility: visible;
    }
  }

  .main-navigation .menu-item {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
  }

  body.menu-open .main-navigation .menu-item {
    animation: slideInLeftFade 0.5s ease forwards;
  }

  body.menu-open .main-navigation .menu-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  body.menu-open .main-navigation .menu-item:nth-child(2) {
    animation-delay: 0.2s;
  }

  body.menu-open .main-navigation .menu-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  body.menu-open .main-navigation .menu-item:nth-child(4) {
    animation-delay: 0.4s;
  }
}

/* Desktop Reset (> 1024px) */
@media (min-width: 1025px) {

  /* 1. Layout: Switch from Grid to Flex to re-order easily */
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 2. Hide Mobile Toggle */
  .menu-toggle {
    display: none;
  }

  /* 3. Re-Order Elements using Flexbox Order */
  /* HTML Order is: Toggle(0) -> Branding(1) -> Actions(2) -> Nav(3) */

  /* 3. Re-Order Elements using Flexbox Order */
  /* HTML Order is: Toggle(0) -> Branding(1) -> Actions(2) -> Nav(3) */

  .site-branding {
    order: 1;
    margin-right: 0;
    /* Reset margin so it doesn't push */
  }

  .main-navigation {
    order: 2;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    /* Enable flex for centering child */
    flex: 1;
    /* Take up all remaining space */
    justify-content: center;
    /* Center the UL */
    max-width: none;
    margin-right: 0;
    /* Reset margin */
  }

  .main-navigation ul {
    flex-direction: row;
    gap: var(--space-lg);
  }

  /* Desktop Animation: Fade in from Left */
  @keyframes desktopReveal {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Apply Animation */
  .main-navigation .menu-item {
    opacity: 0;
    /* Start hidden for animation */
    visibility: visible;
    /* Visible by default layout-wise, opacity handles hide */
    transform: translateX(-20px);
    animation: desktopReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  /* Stagger Delays for Desktop */
  .main-navigation .menu-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .main-navigation .menu-item:nth-child(2) {
    animation-delay: 0.2s;
  }

  .main-navigation .menu-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  .main-navigation .menu-item:nth-child(4) {
    animation-delay: 0.4s;
  }

  .header-actions {
    order: 3;
    /* Cart stays last */
  }
}


.hero__container {
  z-index: 2;
  /* Content above pattern */
  position: relative;
}

.hero__content {
  max-width: 600px;
}




/* Product Grid (Custom Home Loop) */

.product-card {
  position: relative;
  min-width: 0;
  /* Allow grid item to shrink below content size */
  width: 100%;
}

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

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  aspect-ratio: 1 / 1 !important;
  /* Square images */
  background-color: #f0f0f0;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure cover to avoiding stretching */
  display: block;
  transition: transform 0.5s ease;
}

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

/* Subtle zoom */

.product-card__details {
  text-align: center;
}

.product-card__title {
  font-family: var(--ff-primary);
  /* Sans serif for clean look */
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 0.25em;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.product-card__price {
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
}


/* -------------------------------------------------------------------------- */
/*  6. Single Product (Luxury Sticky Layout)
/* -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .woocommerce div.product {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for images */
    gap: var(--space-lg);
    align-items: start;
  }

  .woocommerce div.product div.images {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    position: sticky;
    top: 2rem;
  }
}

/* Minimalist Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--clr-border);
  background: transparent;
  display: flex;
  gap: var(--space-md);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0;
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 10px 0;
  font-family: var(--ff-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  font-weight: 500;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--clr-text);
  border-bottom: 2px solid var(--clr-text);
}

/* -------------------------------------------------------------------------- */
/*  7. Checkout & Cart (Distraction Free)
/* -------------------------------------------------------------------------- */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  padding: 0;
  /* Remove default layout paddings if any */
}

/* Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--clr-border);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: border 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-bottom-color: var(--clr-text);
  outline: none;
}

/* Remove table borders in Cart */
.woocommerce table.shop_table {
  border: 0;
  border-radius: 0;
}

.woocommerce table.shop_table th {
  border: 0;
  border-bottom: 1px solid var(--clr-border);
  font-family: var(--ff-primary);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: var(--fs-xs);
}

.woocommerce table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--clr-surface);
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-top: 0;
  background-color: var(--clr-surface);
  color: var(--clr-text);
  box-shadow: none;
  border-left: 3px solid var(--clr-text);
  /* Minimal accent */
}

.woocommerce-error {
  border-left-color: #d32f2f;
  /* Keep semantic red but minimal */
}

/* End of WooCommerce Notices */


.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  margin-bottom: var(--space-md);
  font-weight: 300;
}

/* -------------------------------------------------------------------------- */
/*  10. Collections (Category Grid)
/* -------------------------------------------------------------------------- */
/* Collections Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns on mobile */
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .collections-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
  }
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  /* Editorial look */
}

.collection-card__image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.collection-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover .collection-card__image {
  transform: scale(1.1);
}

.collection-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.collection-card:hover .collection-card__overlay {
  background: rgba(0, 0, 0, 0.1);
  /* Lighten on hover */
}

.collection-card__content {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.collection-card__title {
  font-family: var(--ff-primary);
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.collection-card__link {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  color: #fff;
}

.collection-card:hover .collection-card__link {
  border-bottom-color: #fff;
}


/* Product Grid (Custom Home Loop) */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.product-card {
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card__image-wrapper {
  background-color: var(--clr-surface);
  aspect-ratio: 3 / 4;
  /* Portrait ratio for fashion */
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
  /* Subtle zoom */
}

.product-card__details {
  text-align: center;
}


.product-card__price {
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------------------- */
/*  11. Brand Values (Phase 6)
/* -------------------------------------------------------------------------- */
.brand-values {
  background-color: var(--clr-surface);
  /* Light grey background */
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.values-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.value-item {
  padding: var(--space-md);
}

.value-icon {
  display: block;
  font-size: 2rem;
  color: var(--clr-accent);
  /* Gold */
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.value-title {
  font-family: var(--ff-primary);
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.value-text {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/*  12. Newsletter (Phase 8)
/* -------------------------------------------------------------------------- */
.newsletter-section {
  background-color: #1a1a1a;
  /* Dark luxury background */
  color: #fff;
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.newsletter__container {
  max-width: 600px;
}

.newsletter__title {
  font-family: var(--ff-headings);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.newsletter__text {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .newsletter__form {
    flex-direction: row;
    align-items: center;
  }
}

.newsletter__input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 0;
  border-radius: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  transition: border-color 0.3s ease;
}

.newsletter__input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter__btn.btn--primary {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  min-width: auto;
  padding: 10px 30px;
}


/* -------------------------------------------------------------------------- */
/*  11. Spotlight Section
/* -------------------------------------------------------------------------- */
.spotlight-section {
  background-color: #fff;
  /* White to alternate with gray sections */
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile Stacked */
  gap: var(--space-lg);
  align-items: center;
}

/* Order on Mobile: Text first, or Image first? User example had Text | Image on Desktop using standard read order.
   Let's keep Text first on mobile for this specific copy "Encuentra el regalo...". */

.spotlight__content {
  text-align: left;
  /* Align text left for cleanliness */
}

.spotlight__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.spotlight__text {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  margin-bottom: var(--space-md);
  max-width: 45ch;
  /* Readability */
}

.spotlight__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  /* Subtle detail */
}

.spotlight__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Ensure it looks nice */
}

@media (min-width: 768px) {
  .spotlight-grid {
    grid-template-columns: 1fr 1fr;
    /* 50/50 Desktop */
    gap: var(--space-xl);
  }

  .spotlight__content {
    padding-right: var(--space-lg);
  }
}

/* -------------------------------------------------------------------------- */
/*  12. WhatsApp Button
/* -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.newsletter__btn.btn--primary:hover {
  background-color: transparent;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/*  13. Animations (Phase 9)
/* -------------------------------------------------------------------------- */

/* Base State: Hidden & Offset */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

/* Initial Offsets */
.reveal-up {
  transform: translateY(50px);
}

.reveal-down {
  transform: translateY(-50px);
}

.reveal-left {
  transform: translateX(50px);
}

/* Comes from right to left */
.reveal-right {
  transform: translateX(-50px);
}

/* Comes from left to right */
.reveal-fade {
  transform: scale(0.95);
}

/* Visible State */
.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger Helpers (if not using JS auto-stagger) */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}