/* =============================================
   AROMA SYNERGY — Brand Design System
   Natural Organic | Earth Tones | Hong Kong
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette */
  --color-sage:        #C46BDB;
  --color-sage-light:  #DA8FE6;
  --color-sage-dark:   #9C2FBF;
  --color-terracotta:  #F060A0;
  --color-terracotta-light: #F585B9;
  --color-cream:       #FAF4FC;
  --color-cream-dark:  #F1E4F8;
  --color-sand:        #E9D2F5;
  --color-sand-light:  #F4E6FB;
  --color-brown:       #4A2455;
  --color-brown-light: #6B3E7D;
  --color-offwhite:    #FDFAFE;
  --color-white:       #FFFFFF;
  --color-text:        #33202E;
  --color-text-light:  #7A6280;
  --color-text-muted:  #A891AC;
  --color-border:      #E7D6EE;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --font-body:    'Inter', 'Noto Sans TC', -apple-system, sans-serif;
  --font-accent:  'Playfair Display', 'Noto Serif TC', Georgia, serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(51,32,46,0.06);
  --shadow-md: 0 4px 12px rgba(51,32,46,0.08);
  --shadow-lg: 0 8px 30px rgba(51,32,46,0.10);
  --shadow-xl: 0 16px 48px rgba(51,32,46,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sage-dark);
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title h2 {
  margin-bottom: var(--space-md);
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .subtitle-cn {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-cream { background-color: var(--color-cream); }
.section-sage  { background-color: var(--color-sage); color: var(--color-white); }
.section-sage .section-title h2,
.section-sage .section-title p { color: var(--color-white); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary:hover {
  background-color: var(--color-sage-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-sage);
  border: 1.5px solid var(--color-sage);
}

.btn-outline:hover {
  background-color: var(--color-sage);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

.btn-terracotta {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.btn-terracotta:hover {
  background-color: #C2417F;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(253,250,254,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo .logo-icon {
  height: 42px;
  width: auto;
  display: block;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-sage-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.cart-btn:hover { color: var(--color-sage); }

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--color-terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.visible { display: flex; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-offwhite);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-toggle { display: block; }
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--color-sage-light);
  color: var(--color-sage-light);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom .lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
}

.footer-bottom .lang-toggle:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand-light) 40%, #DCC4EC 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,107,219,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,96,160,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  background: rgba(196,107,219,0.08);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-text h1 .cn {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 460px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-image-placeholder svg {
  width: 60%;
  height: auto;
  opacity: 0.9;
}

.hero-floating-card {
  position: absolute;
  background: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-floating-card.card-1 {
  top: 10%;
  left: -5%;
}

.hero-floating-card.card-2 {
  bottom: 15%;
  right: -5%;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
}

/* --- Product Card --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.product-card .product-image {
  aspect-ratio: 1;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card .product-image svg {
  width: 50%;
  height: auto;
  opacity: 0.7;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Poster-style product photos (tall artwork with text on it) —
   show the whole image instead of cropping it to a square */
.product-card .product-image.poster {
  aspect-ratio: 4 / 5;
  background: #FBF6FD;
}

.product-card .product-image.poster img {
  object-fit: contain;
}

.product-card:hover .product-image.poster img {
  transform: scale(1.02);
}

.product-card .product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-terracotta);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.product-card .product-info {
  padding: var(--space-lg);
}

.product-card .product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.product-card .product-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.product-card .product-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-card .product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-sage-dark);
}

.product-card .product-price .original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: var(--space-sm);
}

.product-card .add-to-cart {
  width: 100%;
  margin-top: var(--space-md);
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: rgba(196,107,219,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- About Page --- */
.about-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-cream), var(--color-sand-light));
  padding-top: var(--nav-height);
  text-align: center;
}

.about-hero h1 { margin-bottom: var(--space-md); }
.about-hero p { color: var(--color-text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-story .about-image {
  aspect-ratio: 4/5;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-story .about-image svg {
  width: 50%;
  height: auto;
  opacity: 0.6;
}

.about-text h2 { margin-bottom: var(--space-lg); }
.about-text p {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; }
  .about-story .about-image { aspect-ratio: 3/2; }
}

/* Values Strip */
.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.value-item {
  padding: var(--space-2xl);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

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

.value-item .value-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.value-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .values-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --- Shop Page --- */
.shop-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  background: var(--color-cream);
}

.shop-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

/* --- Courses Page --- */
.course-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.course-card .course-image {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.course-card .course-image svg {
  width: 40%;
  height: auto;
  opacity: 0.5;
}

.course-card .course-info {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-card .course-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
}

.course-card h3 { margin-bottom: var(--space-sm); }

.course-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.course-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

@media (max-width: 768px) {
  .course-card { grid-template-columns: 1fr; }
  .course-card .course-image { min-height: 200px; }
}

/* --- Blog Page --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
  aspect-ratio: 16/10;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card .blog-image svg {
  width: 30%;
  height: auto;
  opacity: 0.5;
}

.blog-card .blog-content {
  padding: var(--space-xl);
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.blog-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-sage);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  padding: var(--space-xs);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-text-muted);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 2px; font-family: var(--font-body); }
.cart-item-info .cart-item-price { color: var(--color-sage-dark); font-weight: 600; font-size: 0.9rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-item-qty button:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

.cart-item-qty span { font-size: 0.9rem; min-width: 24px; text-align: center; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: var(--space-xs);
}

.cart-item-remove:hover { color: var(--color-terracotta); }

.cart-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.cart-footer .btn { width: 100%; text-align: center; justify-content: center; }

/* --- Newsletter CTA --- */
.newsletter {
  text-align: center;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
}

.newsletter h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.newsletter p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto var(--space-xl); }

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* --- Stats Strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.testimonial-card .stars {
  color: #E8B845;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card .author-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* --- Contact Section --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info h2 { margin-bottom: var(--space-lg); }
.contact-info p { color: var(--color-text-light); margin-bottom: var(--space-xl); line-height: 1.8; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(196,107,219,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.95rem; font-family: var(--font-body); margin-bottom: 2px; }
.contact-item span { font-size: 0.9rem; color: var(--color-text-light); }

.contact-form {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-offwhite);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(196,107,219,0.1);
}

@media (max-width: 768px) {
  .contact-section { grid-template-columns: 1fr; }
}

/* --- Page Header Generic --- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  background: var(--color-cream);
}

.page-header h1 { margin-bottom: var(--space-sm); }
.page-header p { color: var(--color-text-light); font-size: 1.05rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.breadcrumb a { color: var(--color-sage); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sage);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { background: var(--color-sage-dark); transform: translateY(-2px); }

/* --- Course Card Photo --- */
.course-card .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

/* --- Photo Gallery (Courses / shared) --- */
.photo-gallery {
  columns: 3;
  column-gap: 18px;
  margin-top: var(--space-xl);
}

.photo-gallery figure {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
  position: relative;
  background: var(--color-border);
  display: block;
  transition: box-shadow var(--transition-base);
}

.photo-gallery figure:hover { box-shadow: var(--shadow-lg); }

.photo-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.photo-gallery figure:hover img { transform: scale(1.06); }

.photo-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(30, 25, 18, 0.74), transparent);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.photo-gallery figcaption strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 12, 0.93);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .photo-gallery { columns: 2; }
}

@media (max-width: 768px) {
  .course-card .course-image img { min-height: 220px; }
}

@media (max-width: 640px) {
  .photo-gallery { columns: 1; }
}

/* --- Blog: photo cards --- */
.blog-card .blog-image--photo {
  display: block;
  background: var(--color-cream-dark);
}

.blog-card .blog-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image--photo img { transform: scale(1.05); }

/* --- About: photo slots --- */
.about-story .about-image--photo {
  position: relative;
  display: block;
  padding: 0;
}

/* Landscape photos look better uncropped in the about columns */
.about-story .about-image--wide { aspect-ratio: 4 / 3; }

.about-story .about-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-story .about-image--photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(51, 32, 46, 0.72), transparent);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* --- Brand mark showcase --- */
.brand-mark-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.brand-mark-card img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-mark-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  justify-content: center;
  margin-top: var(--space-xl);
}

.brand-mark-swatches span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.brand-mark-swatches i {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid var(--color-border);
}

.brand-mark-note {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --- About: inside the studio (photo mosaic) --- */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: var(--space-2xl);
}

.studio-grid figure {
  grid-column: span 2;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream-dark);
  box-shadow: var(--shadow-md);
}

/* last two photos run wider so the mosaic closes cleanly */
.studio-grid figure:nth-child(4),
.studio-grid figure:nth-child(5) { grid-column: span 3; }

.studio-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.studio-grid figure:hover img { transform: scale(1.05); }

.studio-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(51, 32, 46, 0.8), transparent);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.studio-grid figcaption strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid figure,
  .studio-grid figure:nth-child(4),
  .studio-grid figure:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 520px) {
  .studio-grid { grid-template-columns: 1fr; gap: 12px; }
}
