/*
Theme Name: CornishMug Theme
Theme URI: https://cornishmug.co.uk
Author: CornishMug Studio
Author URI: https://cornishmug.co.uk
Description: A premium print-on-demand mug design theme for CornishMug - Mugs with Attitude.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cornishmug
Tags: woocommerce, e-commerce, custom-colors, custom-logo, full-width-template, two-columns
WC requires at least: 7.0
WC tested up to: 9.0
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:        #1a3a2a;
  --color-primary-light:  #2a5a40;
  --color-primary-dark:   #0f2218;
  --color-gold:           #c9a84c;
  --color-gold-light:     #e0c070;
  --color-gold-dark:      #a08030;
  --color-cream:          #f5f0e8;
  --color-cream-dark:     #ece5d5;
  --color-white:          #ffffff;
  --color-dark:           #1a1a1a;
  --color-dark-mid:       #2d2d2d;
  --color-mid:            #555555;
  --color-light:          #888888;
  --color-card-bg:        rgba(255,255,255,0.95);
  --color-card-glass:     rgba(255,255,255,0.12);
  --color-overlay:        rgba(26,58,42,0.85);

  --font-heading:         'Playfair Display', Georgia, serif;
  --font-body:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:            0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:            0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:            0 20px 60px rgba(0,0,0,0.18);
  --shadow-xl:            0 32px 80px rgba(0,0,0,0.25);
  --shadow-gold:          0 8px 32px rgba(201,168,76,0.3);

  --radius-sm:            6px;
  --radius-md:            12px;
  --radius-lg:            20px;
  --radius-xl:            32px;
  --radius-full:          9999px;

  --transition-fast:      0.15s ease;
  --transition-base:      0.3s ease;
  --transition-slow:      0.6s ease;
  --transition-spring:    0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height:           72px;
  --container-max:        1280px;
  --container-wide:       1440px;
  --container-narrow:     840px;

  --z-base:               1;
  --z-sticky:             100;
  --z-dropdown:           200;
  --z-modal:              300;
  --z-toast:              400;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-gold    { color: var(--color-gold); }
.text-green   { color: var(--color-primary); }

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-18px) rotate(3deg); }
  66%      { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50%      { box-shadow: 0 0 40px rgba(201,168,76,0.6); }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes waveText {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@keyframes particleDrift {
  0%   { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120px) rotate(360deg) scale(1.2); opacity: 0; }
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.4);
  color: var(--color-primary-dark);
}

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

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

.btn--outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
  position: relative;
}

.section-header .label::before,
.section-header .label::after {
  content: '—';
  margin-inline: 10px;
  opacity: 0.6;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 18px;
  line-height: 1.15;
}

.section-header h2 em {
  font-style: italic;
  color: var(--color-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-mid);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.8;
}

.section-header--light h2 {
  color: var(--color-white);
}

.section-header--light p {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
  animation: navSlideDown 0.6s ease;
}

#site-header.transparent {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(26,58,42,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__icon {
  width: 42px;
  height: 42px;
  background: var(--color-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform var(--transition-spring);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.site-logo:hover .site-logo__icon {
  transform: rotate(-8deg) scale(1.05);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
}

.site-logo__tagline {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px);
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: all var(--transition-base);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-cart-btn:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.nav-cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform var(--transition-spring);
}

.cart-count.bump {
  animation: var(--transition-spring) pulseGlow;
  transform: scale(1.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition-base);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(26,58,42,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.mobile-nav.open {
  transform: translateX(0);
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 32px;
  transition: color var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav.open a {
  animation: fadeInUp 0.4s ease forwards;
}

.mobile-nav.open a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { animation-delay: 0.3s; }

.mobile-nav a:hover { color: var(--color-gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, #2a5a40 0%, var(--color-primary-dark) 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.15) 0%, transparent 50%);
  background-size: cover;
  will-change: transform;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 24px;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

.hero__title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, var(--color-gold), #f0d890, var(--color-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite 1.3s;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.75);
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 44px;
  animation: fadeInUp 0.9s ease 0.6s both;
  letter-spacing: 0.02em;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.8s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: float 2s ease-in-out infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-primary);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.08), transparent);
  animation: shimmer 4s linear infinite;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-section {
  padding: 100px 0;
  background: var(--color-cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-card:hover .category-card__img {
  transform: scale(1.08);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,58,42,0.1) 0%, rgba(26,58,42,0.55) 100%);
  transition: opacity var(--transition-base);
}

.category-card:hover .category-card__overlay {
  opacity: 0.9;
}

.category-card__glass {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(26,58,42,0.65) 0%, transparent 60%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.5s ease;
}

.category-card:hover .category-card__glass {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(to top, rgba(26,58,42,0.8) 0%, rgba(201,168,76,0.06) 100%);
}

.category-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
  transition: color var(--transition-base);
}

.category-card:hover .category-card__name {
  color: var(--color-gold);
}

.category-card__count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

.category-card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-45deg);
  transition: transform var(--transition-spring);
  color: var(--color-primary-dark);
}

.category-card:hover .category-card__arrow {
  transform: scale(1) rotate(0deg);
}

/* No image fallback */
.category-card--no-img {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.category-card--no-img .category-card__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.15;
  color: var(--color-gold);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  padding: 100px 0;
  background: var(--color-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card */
.cm-product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  group: true;
}

.cm-product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.cm-product-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f5f0;
}

.cm-product-card__img-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.6s ease;
}

.cm-product-card:hover .cm-product-card__img-wrap img {
  transform: scale(1.08);
  filter: blur(3px);
}

.cm-product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,42,0.75);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cm-product-card:hover .cm-product-card__overlay {
  opacity: 1;
}

.cm-product-card__atc {
  width: 100%;
  padding: 13px 24px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  transform: translateY(10px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.cm-product-card:hover .cm-product-card__atc {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.05s;
}

.cm-product-card__atc:hover {
  background: var(--color-gold-light);
  transform: translateY(0) scale(1.02) !important;
}

.cm-product-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--new    { background: var(--color-gold); color: var(--color-primary-dark); }
.badge--sale   { background: #e53e3e; color: #fff; }
.badge--hot    { background: #dd6b20; color: #fff; }

.cm-product-card__wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-spring);
  color: var(--color-mid);
  backdrop-filter: blur(8px);
}

.cm-product-card:hover .cm-product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

.cm-product-card__wishlist:hover {
  background: #fee;
  color: #e53e3e;
}

.cm-product-card__body {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--color-cream-dark);
}

.cm-product-card__category {
  font-size: 0.72rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cm-no-cat-label .cm-product-card__category {
  display: none;
}

.cm-product-card__title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color var(--transition-base);
}

.cm-product-card:hover .cm-product-card__title {
  color: var(--color-primary);
}

.cm-product-card__title a { color: inherit; }
.cm-product-card__title a:hover { color: var(--color-primary); }

.cm-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-product-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-original {
  font-size: 0.85rem;
  color: var(--color-light);
  text-decoration: line-through;
}

.cm-product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-gold);
}

/* WooCommerce product cards override */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 100px 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.why-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
  text-align: center;
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.why-card__icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.8rem;
  transition: all var(--transition-spring);
  color: var(--color-gold);
}

.why-card:hover .why-card__icon {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  transform: scale(1.1) rotate(-5deg);
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.why-card__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ============================================================
   CORNWALL BANNER
   ============================================================ */
.cornwall-banner {
  padding: 80px 0;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cornwall-banner::before,
.cornwall-banner::after {
  content: '';
  position: absolute;
  height: 4px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

.cornwall-banner::before { top: 0; }
.cornwall-banner::after  { bottom: 0; }

.cornwall-banner__subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.cornwall-banner__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  line-height: 1.1;
}

.cornwall-banner__desc {
  font-size: 1.1rem;
  color: var(--color-mid);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

.footer-top {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo__icon {
  width: 44px;
  height: 44px;
  background: var(--color-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.footer-logo__text .name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  display: block;
}

.footer-logo__text .tag {
  font-size: 0.65rem;
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
  font-size: 0.95rem;
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.footer-col__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-newsletter {}

.footer-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.footer-newsletter input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.footer-newsletter input[type="email"]:focus {
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.1);
}

.footer-newsletter button {
  padding: 12px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
}

.footer-newsletter button:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

.footer-bottom__links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer-bottom__links a:hover {
  color: var(--color-gold);
}

.footer-bottom__badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-badge {
  height: 24px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
}

/* ============================================================
   SHOP / ARCHIVE PAGE
   ============================================================ */
.shop-page {
  padding: 32px 0 80px;
  background: var(--color-cream);
  min-height: 100vh;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.shop-sidebar {
  display: none;
}

/* Sidebar — hidden, full-width grid layout used instead */

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget__title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--color-gold);
  border-radius: 2px;
}

.sidebar-widget .widget_layered_nav ul li,
.sidebar-widget .widget_product_categories ul li {
  margin-bottom: 8px;
}

.sidebar-widget .widget_layered_nav ul li a,
.sidebar-widget .widget_product_categories ul li a {
  font-size: 0.9rem;
  color: var(--color-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.sidebar-widget .widget_layered_nav ul li a:hover,
.sidebar-widget .widget_product_categories ul li a:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}

/* Shop Header */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.shop-header__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
}

.shop-header__meta {
  font-size: 0.85rem;
  color: var(--color-light);
  margin-top: 4px;
}

.shop-sort select {
  padding: 10px 16px;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 0.88rem;
  color: var(--color-dark);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.shop-sort select:focus {
  border-color: var(--color-gold);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-mid);
  transition: color var(--transition-base);
}

.breadcrumbs a:hover { color: var(--color-primary); }

.breadcrumbs .sep {
  color: var(--color-cream-dark);
  font-size: 0.7rem;
}

.breadcrumbs .current { color: var(--color-dark); font-weight: 600; }

/* Pagination */
.woocommerce-pagination,
.cm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.woocommerce-pagination ul,
.cm-pagination ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.cm-pagination a,
.cm-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  font-size: 0.88rem;
  color: var(--color-mid);
  transition: all var(--transition-base);
  text-decoration: none;
}

.woocommerce-pagination ul li a:hover,
.cm-pagination a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.woocommerce-pagination ul li span.current,
.cm-pagination span.current {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  font-weight: 700;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-page {
  padding: 120px 0 80px;
  background: var(--color-white);
}

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.product-gallery__main {
  border-radius: var(--radius-xl);
  background: #fff;
  position: relative;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-gallery__main:hover .gallery-zoom-hint {
  opacity: 1;
}

.product-gallery__main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  background: #fff;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-base);
  background: var(--color-cream);
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--color-gold);
  transform: scale(1.04);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-gallery__thumb--video {
  background: var(--color-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Details */
.product-details {}

.product-details__breadcrumb {
  font-size: 0.8rem;
  color: var(--color-light);
  margin-bottom: 14px;
}

.product-details__breadcrumb a {
  color: var(--color-mid);
  transition: color var(--transition-base);
}

.product-details__breadcrumb a:hover { color: var(--color-primary); }

.product-details__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.product-details__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-details__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--color-gold);
  font-size: 1rem;
}

.rating-count {
  font-size: 0.85rem;
  color: var(--color-mid);
}

.product-details__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-cream-dark);
}

.price-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.price-old {
  font-size: 1.2rem;
  color: var(--color-light);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.82rem;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.product-details__desc {
  font-size: 0.95rem;
  color: var(--color-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Size Selector */
.size-selector {
  margin-bottom: 28px;
}

.size-selector__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.size-selector__label span {
  color: var(--color-gold);
  font-weight: 700;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  padding: 10px 22px;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-mid);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--color-white);
}

.size-option:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.size-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.size-option__price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 2px 0;
}

.size-option.selected .size-option__price {
  color: #fff;
}

.size-option__desc {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
}

/* Quantity + ATC */
.add-to-cart-section {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  flex-shrink: 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  flex-shrink: 0;
}

.qty-btn {
  width: 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-mid);
  cursor: pointer;
  transition: all var(--transition-base);
  background: none;
  border: none;
  font-family: inherit;
}

.qty-btn:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}

.qty-input {
  width: 36px;
  height: 38px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  border-left: 1px solid var(--color-cream-dark);
  border-right: 1px solid var(--color-cream-dark);
}

.btn-add-to-cart {
  flex: 1;
  min-width: 200px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-to-cart:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-details__meta {
  padding-top: 20px;
  border-top: 1px solid var(--color-cream-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-meta-row {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
}

.product-meta-row strong {
  color: var(--color-dark);
  min-width: 80px;
  flex-shrink: 0;
}

.product-meta-row span { color: var(--color-mid); }

.product-meta-row a {
  color: var(--color-primary);
}

/* Product Tabs */
.product-tabs {
  margin-top: 60px;
  border-top: 2px solid var(--color-cream-dark);
  padding-top: 40px;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-cream-dark);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-mid);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-base);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-btn:hover:not(.active) {
  color: var(--color-dark);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.tab-panel p {
  font-size: 0.95rem;
  color: var(--color-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tab-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tab-panel table th,
.tab-panel table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-cream-dark);
}

.tab-panel table th {
  background: var(--color-cream);
  font-weight: 600;
  color: var(--color-dark);
  width: 160px;
}

/* Related Products */
/* Also Available In */
.cm-variation-selectors .cm-attr-group {
  margin-bottom: 16px;
}

.cm-variation-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 8px 0 16px;
  min-height: 1.5em;
}

.cm-also-available {
  margin: 48px 0;
  padding-top: 40px;
  border-top: 1px solid var(--color-cream-dark);
}

.cm-also-available__title {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.cm-also-available__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.cm-also-available__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-cream-dark);
  background: #fff;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.cm-also-available__item:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cm-also-available__img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-cream);
}

.cm-also-available__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-also-available__type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.cm-also-available__price {
  font-size: 0.78rem;
  color: var(--color-mid);
}

.related-products {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid var(--color-cream-dark);
}

.related-products h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--color-dark);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
  padding: 120px 0 80px;
  min-height: 60vh;
}

.page-content .entry-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.page-content .entry-content h1,
.page-content .entry-content h2,
.page-content .entry-content h3 {
  margin-bottom: 16px;
  margin-top: 36px;
}

.page-content .entry-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-content .entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.page-content .entry-content p {
  margin-bottom: 18px;
  color: var(--color-mid);
  line-height: 1.9;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.page-content .entry-content ul { list-style: disc; }
.page-content .entry-content ol { list-style: decimal; }

.page-content .entry-content li {
  margin-bottom: 8px;
  color: var(--color-mid);
  line-height: 1.7;
}

.page-content .entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-content .entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 16px 24px;
  background: var(--color-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-mid);
}

.page-hero {
  padding: 40px 0 24px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-hero .page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

/* Category description truncation */
.cat-desc {
  position: relative;
}

.cat-desc__text {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  max-height: calc(1.7em * 2);
  margin-bottom: 4px;
}

.cat-desc__text p {
  display: inline;
  margin: 0;
}

.cat-desc--expanded .cat-desc__text {
  display: block !important;
  -webkit-line-clamp: unset;
  overflow: visible !important;
  max-height: none;
}

.cat-desc__toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.cat-desc__toggle:hover {
  color: #fff;
}

.cat-desc--expanded .cat-desc__toggle {
  display: none;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: fadeInRight 0.4s ease;
  position: relative;
}

.woocommerce-message {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  color: var(--color-dark);
}

.woocommerce-error {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
  color: #742a2a;
}

.woocommerce-info {
  background: #ebf8ff;
  border-left: 4px solid #3182ce;
  color: #2a4365;
}

.woocommerce-message .button,
.woocommerce-message a.button {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.woocommerce-message .button:hover { background: var(--color-primary-light); }

/* Price */
.woocommerce del { color: var(--color-light); opacity: 0.8; }
.woocommerce ins { text-decoration: none; }

/* Cart Widget */
.widget_shopping_cart_content {}

/* Loading spinner */
.woocommerce-cart-form .wc-proceed-to-checkout {
  margin-top: 20px;
}

.woocommerce-cart-form .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.woocommerce-cart-form .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-cream) 25%, var(--color-cream-dark) 50%, var(--color-cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .single-product-layout {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  .single-product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .primary-nav { display: none; }

  .hamburger { display: flex; }

  .hero__title { font-size: clamp(2.8rem, 13vw, 6rem); }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card__glass {
    padding: 16px;
  }

  .category-card__name {
    font-size: 1rem;
  }

  .category-card__arrow {
    width: 32px;
    height: 32px;
    top: 12px;
    right: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cm-product-card__img-wrap {
    height: 160px;
  }

  .cm-product-card__body {
    padding: 8px 10px 10px;
  }

  .cm-product-card__title {
    font-size: 0.82rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .section-header { margin-bottom: 40px; }

  .categories-section,
  .products-section,
  .why-section {
    padding: 64px 0;
  }

  .add-to-cart-section { flex-direction: column; }

  .btn-add-to-cart { min-width: unset; }

  .hero__ctas { flex-direction: column; align-items: center; }

  .back-to-top { bottom: 20px; right: 20px; }
}

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-card__glass {
    padding: 12px;
  }

  .category-card__name {
    font-size: 0.88rem;
  }

  .category-card__arrow {
    width: 26px;
    height: 26px;
    top: 8px;
    right: 8px;
  }

  .cm-product-card__img-wrap {
    height: 120px;
  }

  .cm-product-card__body {
    padding: 6px 8px 8px;
  }

  .cm-product-card__title {
    font-size: 0.76rem;
  }

  .cm-product-card__price {
    font-size: 0.8rem;
  }

  .hero__title { font-size: clamp(2.4rem, 14vw, 4rem); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .hero__scroll-hint, .back-to-top { display: none; }
  body { padding-top: 0; }
  .shop-layout { grid-template-columns: 1fr; }
  .single-product-layout { grid-template-columns: 1fr; }
}
