/*
Theme Name: SastaMal
Theme URI: https://sastamal.com
Author: SastaMal
Author URI: https://sastamal.com
Description: Custom WooCommerce theme for SastaMal — UK's home for unbeatable deals. Bold editorial design with saffron, ink and cream palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://sastamal.com
Text Domain: sastamal
Tags: e-commerce, custom-colors, custom-logo, full-width-template, woocommerce
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ink:           #0f0d0a;
  --cream:         #f5f0e8;
  --cream2:        #ede8df;
  --dust:          #e0d8cc;
  --saffron:       #e86000;
  --saffron-light: #ff8533;
  --saffron-dim:   rgba(232,96,0,0.1);
  --green:         #1f6640;
  --green-light:   #28a85a;
  --green-dim:     rgba(31,102,64,0.1);
  --yellow:        #f5c400;
  --red:           #cc1f1f;
  --mid:           #6e6558;
  --light:         #b0a898;
  --rule:          #d5cdc0;
  --white:         #ffffff;

  --font-display:  'Teko', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --radius:        0px;
  --shadow-sm:     0 2px 8px rgba(15,13,10,0.06);
  --shadow-md:     0 8px 32px rgba(15,13,10,0.1);
  --shadow-lg:     0 24px 64px rgba(15,13,10,0.14);

  --nav-height:    64px;
  --ticker-height: 32px;
  --header-total:  96px;

  --container:     1280px;
  --gutter:        48px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(56px, 7vw, 96px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: 24px; }
h5 { font-size: 20px; }

p { font-size: 15px; line-height: 1.75; color: var(--mid); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  display: block;
  margin-bottom: 10px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 88px var(--gutter); }
.section--dark { background: var(--ink); }
.section--tint { background: var(--cream2); }
.section--saffron { background: var(--saffron); }
.section--green { background: var(--green); }

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.site-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--saffron);
  height: var(--ticker-height);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 24s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  padding: 0 48px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.ticker-item::after { content: '✦'; margin-left: 48px; opacity: 0.4; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--ticker-height);
  left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--ink);
  border-bottom: 2px solid var(--saffron);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  gap: 40px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.2s;
}
.site-logo span { color: var(--saffron); }
.site-logo:hover { color: var(--saffron); }
.site-logo:hover span { color: var(--yellow); }

.primary-nav {
  flex: 1;
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--saffron);
  transition: width 0.25s ease;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--cream); }
.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.region-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}
.region-pill:hover { border-color: var(--saffron); color: var(--cream); }

.header-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  padding: 6px 14px;
  font-size: 13px;
  width: 180px;
  transition: border-color 0.2s, width 0.3s ease;
}
.header-search:focus { border-color: var(--saffron); width: 240px; }
.header-search::placeholder { color: rgba(245,240,232,0.3); }

.cart-btn {
  background: var(--saffron);
  border: none;
  color: var(--ink);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.cart-btn:hover { background: var(--yellow); }
.cart-count {
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page push for fixed header */
.page-wrap { margin-top: var(--header-total); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--saffron); color: var(--ink); }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: var(--yellow); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--outline-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(245,240,232,0.3); }
.btn--outline-light:hover { border-color: var(--cream); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-light); }
.btn--sm { padding: 8px 18px; font-size: 11px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-total));
  overflow: hidden;
}

.hero__left {
  padding: 72px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  width: fit-content;
  margin-bottom: 24px;
  animation: fade-up 0.6s ease both;
}
.hero__tag-dot {
  width: 6px; height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(68px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.01em;
  animation: fade-up 0.6s 0.1s ease both;
}
.hero__headline .accent { color: var(--saffron); display: block; }
.hero__headline .muted { color: var(--mid); font-weight: 400; }

.hero__sub {
  max-width: 420px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid);
  animation: fade-up 0.6s 0.2s ease both;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  animation: fade-up 0.6s 0.3s ease both;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--dust);
  animation: fade-up 0.6s 0.4s ease both;
}
.hero-stat__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--saffron);
  line-height: 1;
}
.hero-stat__label {
  font-size: 11px;
  color: var(--light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__right {
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 700;
  color: rgba(232,96,0,0.05);
  bottom: -20px;
  left: -10px;
  pointer-events: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ============================================================
   FLASH SALE BAR
   ============================================================ */
.flash-bar {
  background: var(--red);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.flash-bar__label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown { display: flex; gap: 6px; align-items: center; }
.countdown__block {
  background: rgba(0,0,0,0.25);
  padding: 5px 12px;
  min-width: 50px;
  text-align: center;
}
.countdown__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.countdown__unit { font-size: 9px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; }
.countdown__sep { font-family: var(--font-display); font-size: 26px; color: rgba(255,255,255,0.35); font-weight: 700; }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--ink);
  border-top: 2px solid var(--saffron);
  border-bottom: 2px solid var(--saffron);
}
.cat-strip__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: #161310;
  border-right: 1px solid #2a2520;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.cat-strip__item:last-child { border-right: none; }
.cat-strip__item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.cat-strip__item:hover { background: #1e1a14; }
.cat-strip__item:hover::after { transform: scaleX(1); }
.cat-strip__icon { font-size: 28px; margin-bottom: 14px; }
.cat-strip__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.cat-strip__count { font-size: 11px; color: #5a5548; letter-spacing: 0.05em; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header__left {}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 0.95;
  color: var(--ink);
}
.section-header__title--light { color: var(--cream); }
.view-all {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron);
  border-bottom: 1px solid var(--saffron);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.view-all:hover { color: var(--green); border-color: var(--green); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--dust);
}
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }
.products-grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.03); }

.product-card__emoji {
  font-size: 72px;
  pointer-events: none;
}

.badge-discount {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  padding: 2px 10px;
  line-height: 1.3;
  z-index: 1;
}
.badge-best-price {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 1;
}
.badge-laser {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--saffron);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  z-index: 1;
}

.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 5px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
  flex: 1;
}
.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.price-new {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.price-old { font-size: 13px; color: var(--light); text-decoration: line-through; }
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--dust);
}
.stock-status { font-size: 11px; font-weight: 500; color: var(--green); }
.stock-status--low { color: var(--saffron); }
.add-to-cart-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart-btn:hover { background: var(--saffron); color: var(--ink); }
/* WooCommerce add to cart override */
.woocommerce .product-card .add_to_cart_button,
.woocommerce .product-card .button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s;
  border-radius: 0;
}
.woocommerce .product-card .add_to_cart_button:hover,
.woocommerce .product-card .button:hover { background: var(--saffron); color: var(--ink); }

/* ============================================================
   WHY US STRIP
   ============================================================ */
.why-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--saffron);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.why-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(15,13,10,0.15);
}
.why-item:last-child { border-right: none; }
.why-item__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(15,13,10,0.12);
  line-height: 1;
  margin-bottom: -6px;
}
.why-item__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.why-item__text { font-size: 13px; color: rgba(15,13,10,0.6); line-height: 1.65; }

/* ============================================================
   RESELLER BANNER
   ============================================================ */
.reseller-banner {
  background: var(--green);
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.reseller-banner__text {
  flex: 1;
  padding: 56px 0;
  z-index: 2;
}
.reseller-banner__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 14px;
}
.reseller-banner__title span { color: var(--yellow); }
.reseller-banner__sub { font-size: 14px; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.65; margin-bottom: 24px; }
.reseller-banner__bg {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: rgba(0,0,0,0.1);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  padding-left: 56px;
}
.reseller-banner__features { display: flex; flex-direction: column; gap: 12px; }
.reseller-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.reseller-feature::before {
  content: '✓';
  width: 20px; height: 20px;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.reseller-banner__pattern {
  position: absolute;
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  top: -20px; left: var(--gutter);
  pointer-events: none;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { text-align: center; }
.newsletter__title { color: var(--cream); margin-bottom: 10px; }
.newsletter__sub { color: var(--light); font-size: 14px; margin-bottom: 28px; }
.newsletter__form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter__input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  color: var(--cream);
  font-size: 14px;
  transition: border-color 0.2s;
}
.newsletter__input:focus { border-color: var(--saffron); }
.newsletter__input::placeholder { color: rgba(245,240,232,0.3); }
.newsletter__btn {
  background: var(--saffron);
  border: none;
  color: var(--ink);
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter__btn:hover { background: var(--yellow); }

/* ============================================================
   PAYMENT STRIP
   ============================================================ */
.payment-strip {
  background: var(--cream2);
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.payment-strip__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
}
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-badge {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.payment-strip__legal {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
}
.legal-note { font-size: 11px; color: var(--light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0806;
  border-top: 2px solid var(--saffron);
}
.footer-main {
  padding: 56px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand__logo span { color: var(--saffron); }
.footer-brand__text { font-size: 13px; color: #5a5548; line-height: 1.7; max-width: 240px; }
.footer-col__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: #5a5548; transition: color 0.2s; }
.footer-links a:hover { color: var(--saffron); }
.footer-bottom {
  padding: 20px var(--gutter);
  border-top: 1px solid #18150f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11px; color: #3a352c; letter-spacing: 0.05em; }
.footer-trust { display: flex; gap: 16px; }
.trust-badge {
  background: #161310;
  border: 1px solid #2a2520;
  padding: 5px 12px;
  font-size: 10px;
  color: #5a5548;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
}

/* ============================================================
   WOOCOMMERCE — SHOP PAGE
   ============================================================ */
.woocommerce-products-header { display: none; }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 48px var(--gutter);
}

/* Sidebar filters */
.shop-sidebar {}
.widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 16px;
}
.woocommerce ul.product_list_widget li,
.woocommerce .widget_layered_nav ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--dust);
  font-size: 13px;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s;
}
.woocommerce ul.product_list_widget li:hover,
.woocommerce .widget_layered_nav ul li:hover { color: var(--saffron); }

/* Product grid - WooCommerce override */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--dust);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce ul.products li.product {
  background: var(--white);
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  padding: 16px 16px 6px;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  padding: 0 16px 12px;
  display: block;
}
.woocommerce ul.products li.product .price del {
  font-size: 14px;
  color: var(--light);
  font-weight: 400;
}
.woocommerce ul.products li.product .button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s;
  border-radius: 0;
  margin: auto 16px 16px;
  display: block;
  text-align: center;
  text-decoration: none;
}
.woocommerce ul.products li.product .button:hover { background: var(--saffron); color: var(--ink); }

/* Sorting & results bar */
.woocommerce-result-count {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 16px;
}
.woocommerce-ordering select {
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px var(--gutter);
  align-items: start;
}

/* Product images */
.woocommerce div.product div.images {}
.woocommerce div.product div.images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.woocommerce div.product div.images .flex-viewport { border: 1px solid var(--rule); }
.woocommerce div.product .woocommerce-product-gallery__trigger { display: none; }
.woocommerce div.product div.images ol.flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
.woocommerce div.product div.images ol.flex-control-thumbs li { flex: 1; }
.woocommerce div.product div.images ol.flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.woocommerce div.product div.images ol.flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--saffron); }

/* Product summary */
.woocommerce div.product div.summary {}
.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 16px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  font-size: 22px;
  color: var(--light);
  font-weight: 400;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dust);
}
.woocommerce div.product form.cart {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.woocommerce div.product form.cart .qty {
  width: 64px;
  padding: 12px;
  border: 1.5px solid var(--rule);
  font-size: 16px;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.woocommerce div.product form.cart .qty:focus { border-color: var(--saffron); }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--saffron);
  color: var(--ink);
}

/* Personalisation field */
.personalisation-box {
  background: var(--cream2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--saffron);
  padding: 20px;
  margin-bottom: 20px;
}
.personalisation-box__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 6px;
}
.personalisation-box__sub { font-size: 12px; color: var(--mid); margin-bottom: 12px; }
.personalisation-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.personalisation-input:focus { border-color: var(--saffron); }

/* Product meta */
.woocommerce div.product .product_meta { font-size: 12px; color: var(--light); margin-top: 16px; }
.woocommerce div.product .product_meta span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--saffron); }

/* Trust row */
.product-trust-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--dust);
  border-bottom: 1px solid var(--dust);
}
.product-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mid);
}
.product-trust-item strong { color: var(--ink); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rule);
  padding: 0;
  list-style: none;
  margin: 0 0 28px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-left: none;
  border-top: none;
  border-right: none;
  border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: inherit; text-decoration: none; }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 14px; color: var(--mid); line-height: 1.8; }

/* ============================================================
   WOOCOMMERCE — CART
   ============================================================ */
.woocommerce-cart .woocommerce { padding: 48px var(--gutter); }
.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--rule);
}
.woocommerce table.shop_table th {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream2);
  border-bottom: 2px solid var(--ink);
  text-align: left;
}
.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--mid);
  vertical-align: middle;
}
.woocommerce table.shop_table .product-name a { color: var(--ink); font-weight: 500; }
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
}
.woocommerce .cart_totals {
  background: var(--cream2);
  border: 1px solid var(--rule);
  padding: 28px;
  margin-top: 24px;
}

/* ============================================================
   WOOCOMMERCE — CHECKOUT
   ============================================================ */
.woocommerce-checkout .woocommerce { padding: 48px var(--gutter); }
.woocommerce form .form-row label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
  display: block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s;
  border-radius: 0;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--saffron); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-children.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-children.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.reveal-children.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.reveal-children.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.reveal-children.in-view > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 32px; }
  .why-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-height: 56px; }
  .primary-nav { display: none; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .why-strip { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__ctas { flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .payment-strip { flex-direction: column; align-items: flex-start; }
  .payment-strip__legal { margin-left: 0; }
}
