/* ============================================
   ALL MADE BY JADE — Global Styles
   ============================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  --forest: #2F4E3C;
  --forest-light: #3d6650;
  --forest-dark: #243d2f;
  --sage: #B6AE7E;
  --sage-light: #c9c39e;
  --cream: #EFE9D6;
  --cream-dark: #e5ddc5;
  --sand: #FAF6ED;
  --copper: #BB6644;
  --copper-light: #d4845f;
  --warm-white: #FFFCF5;
  --text: #2a3a2e;
  --text-light: #5a6b5e;
  --text-muted: #8a9b8e;
  --mint: #7ecdb5;
  --error: #c0392b;
  --success: #27ae60;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-accent: 'Caveat', cursive;

  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(47,78,60,0.06);
  --shadow-md: 0 8px 24px rgba(47,78,60,0.08);
  --shadow-lg: 0 16px 48px rgba(47,78,60,0.12);
  --shadow-xl: 0 24px 64px rgba(47,78,60,0.16);

  --transition: 0.3s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-heading); color: var(--forest); line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
p { line-height: 1.7; }

.section-label {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--copper);
  margin-bottom: 12px;
}
.accent { font-style: italic; color: var(--copper); font-weight: 400; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 32px; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: white; }
.section--sand { background: var(--sand); }
.text-center { text-align: center; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--forest); color: white;
  border-color: var(--forest);
}
.btn--primary:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent; color: var(--forest);
  border-color: var(--forest);
}
.btn--secondary:hover {
  background: var(--forest); color: white;
  transform: translateY(-2px);
}
.btn--copper {
  background: var(--copper); color: white;
  border-color: var(--copper);
}
.btn--copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
}
.btn--small { padding: 10px 24px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,252,245,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(47,78,60,0.08);
  transition: all var(--transition);
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-accent);
  font-size: 28px; font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--copper); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 14px; font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--forest); }
.nav__link--active { color: var(--forest); font-weight: 600; }

/* Cart button */
.nav__cart {
  display: flex; align-items: center; gap: 6px;
  background: var(--forest); color: white;
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  border: none; transition: background 0.2s;
}
.nav__cart:hover { background: var(--forest-light); }
.nav__cart svg { width: 16px; height: 16px; }
.nav__cart-count {
  background: var(--copper);
  color: white;
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-left: 2px;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--forest);
  transition: all 0.2s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 50%, var(--cream-dark) 100%);
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(182,174,126,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(187,102,68,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 60px 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero__tagline {
  font-family: var(--font-accent);
  font-size: 24px; color: var(--sage);
  margin-bottom: 8px;
  transform: rotate(-1deg);
  display: inline-block;
}
.hero__title { margin-bottom: 8px; }
.hero__desc {
  font-size: 17px; color: var(--text-light);
  max-width: 480px; margin-bottom: 36px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero image area */
.hero__visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero__image-frame {
  width: 420px; height: 500px;
  background: linear-gradient(145deg, var(--sage-light), var(--cream-dark));
  border-radius: 200px 200px 40px 40px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero__image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__placeholder {
  font-family: var(--font-accent);
  font-size: 20px; color: var(--forest);
  text-align: center; padding: 40px; opacity: 0.6;
}
.hero__badge {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
}
.hero__badge--right { top: 40px; right: -30px; }
.hero__badge--left { bottom: 60px; left: -40px; }
.hero__badge-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.hero__badge-icon--green { background: rgba(47,78,60,0.1); }
.hero__badge-icon--copper { background: rgba(187,102,68,0.1); }
.hero__badge-label { font-weight: 600; }
.hero__badge-sub { font-size: 12px; color: var(--text-light); }

/* ─── ABOUT SECTION ─── */
.about__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.about__text {
  font-size: 18px; color: var(--text-light);
  max-width: 680px; margin: 0 auto 24px; line-height: 1.8;
}
.about__stats { display: flex; justify-content: center; gap: 64px; margin-top: 48px; }
.stat__number {
  font-family: var(--font-heading);
  font-size: 48px; font-weight: 700; color: var(--forest);
}
.stat__label {
  font-size: 14px; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}

/* ─── COLLECTIONS ─── */
.collections__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; max-width: var(--max-width); margin: 0 auto;
}
.collection-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.4s ease; cursor: pointer;
}
.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.collection-card__image {
  height: 320px;
  background: linear-gradient(135deg, var(--sage-light), var(--cream-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative; overflow: hidden;
}
.collection-card__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.collection-card__image::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, rgba(255,252,245,0.9));
}
.collection-card__info { padding: 28px 32px; }
.collection-card__info h3 { margin-bottom: 8px; }
.collection-card__info p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.collection-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--copper); font-weight: 600;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  transition: gap 0.2s;
}
.collection-card__link:hover { gap: 10px; }

/* ─── PRODUCT GRID ─── */
.products__header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
  max-width: var(--max-width); margin-left: auto; margin-right: auto;
  margin-bottom: 48px;
}
.products__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: var(--max-width); margin: 0 auto;
}

/* Product card */
.product-card {
  background: white;
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid rgba(47,78,60,0.06);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__image {
  height: 240px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative; overflow: hidden;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.05);
}
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--copper); color: white;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-card__badge--soldout {
  background: var(--text-muted);
}
.product-card__info {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}
.product-card__name {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.product-card__price {
  font-family: var(--font-heading);
  font-size: 20px; color: var(--forest); font-weight: 600;
  margin-top: auto;
}
.product-card__add {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%;
  background: var(--forest); color: white;
  border: none; padding: 12px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: background 0.2s;
}
.product-card__add:hover { background: var(--forest-light); }
.product-card__add:disabled {
  background: var(--text-muted); cursor: not-allowed;
}

/* ─── INSTAGRAM SECTION ─── */
.instagram__handle {
  font-family: var(--font-accent);
  font-size: 22px; color: var(--copper);
  margin-bottom: 48px; display: block;
}
.instagram__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px; max-width: var(--max-width); margin: 0 auto;
}
.instagram__tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sage-light), var(--cream-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.instagram__tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.instagram__tile:hover {
  transform: scale(1.05); z-index: 1;
  box-shadow: var(--shadow-md);
}

/* ─── STOCKISTS ─── */
.stockists__list {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.stockist {
  background: rgba(255,255,255,0.1);
  padding: 24px 36px; border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.stockist:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.stockist__name { font-weight: 600; margin-bottom: 4px; }
.stockist__location { font-size: 13px; opacity: 0.7; }

/* ─── NEWSLETTER ─── */
.newsletter__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter__input {
  flex: 1;
  padding: 14px 24px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-pill);
  font-size: 15px;
  background: var(--sand);
  transition: border-color 0.2s; outline: none;
}
.newsletter__input:focus { border-color: var(--sage); }

/* ─── FOOTER ─── */
.footer { background: var(--cream); padding: 64px 32px 32px; }
.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(47,78,60,0.1);
}
.footer__brand {
  font-family: var(--font-accent);
  font-size: 32px; color: var(--forest); margin-bottom: 16px;
}
.footer__brand span { color: var(--copper); }
.footer__desc {
  font-size: 15px; color: var(--text-light);
  line-height: 1.6; max-width: 300px;
}
.footer__col h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--forest); margin-bottom: 20px;
}
.footer__col a {
  display: block; font-size: 15px;
  color: var(--text-light);
  padding: 6px 0; transition: color 0.2s;
}
.footer__col a:hover { color: var(--forest); }
.footer__bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-light);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  background: var(--forest); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s;
}
.footer__social a:hover {
  background: var(--copper); transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; }

/* ─── ANNOUNCEMENT BAR ─── */
.announcement {
  background: var(--forest);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  position: fixed; top: 0; width: 100%; z-index: 101;
  display: none;
}
.announcement.active { display: block; }
.announcement + .nav { top: 40px; }
.announcement.active ~ .hero { padding-top: calc(var(--nav-height) + 40px); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.8s ease-out both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 20px; }
  .container { padding: 0 20px; }
  .nav__inner { padding: 12px 20px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  /* Mobile nav open state */
  .nav--open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--warm-white);
    padding: 24px 20px;
    border-bottom: 1px solid rgba(47,78,60,0.08);
    gap: 20px;
  }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__image-frame { width: 280px; height: 340px; }
  .hero__badge { display: none; }

  .collections__grid { grid-template-columns: 1fr; }
  .products__header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .about__stats { gap: 32px; }
  .stat__number { font-size: 36px; }

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

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }

  .newsletter__form { flex-direction: column; }
  .stockists__list { gap: 16px; }
  .stockist { padding: 16px 24px; width: 100%; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .about__stats { flex-direction: column; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ─── SHOP PAGE ─── */
.shop-header {
  padding: calc(var(--nav-height) + 60px) 32px 40px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  text-align: center;
}
.shop-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--forest);
}
.shop-header__desc {
  font-size: 17px; color: var(--text-light);
  max-width: 500px; margin: 12px auto 0;
}

.shop-filters {
  padding: 24px 32px;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(47,78,60,0.06);
  position: sticky; top: var(--nav-height); z-index: 50;
}
.filter-bar {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--cream-dark);
  background: transparent;
  color: var(--text-light);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--sage);
  color: var(--forest);
}
.filter-btn--active {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

/* ─── PRODUCT DETAIL PAGE ─── */
.product-detail__breadcrumb {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 32px;
}
.product-detail__breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.product-detail__breadcrumb a:hover { color: var(--forest); }
.product-detail__breadcrumb span { color: var(--text); }

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail__main-image {
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-detail__main-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail__placeholder {
  font-size: 96px; opacity: 0.5;
}

.product-detail__thumbnails {
  display: flex; gap: 8px; margin-top: 12px;
}
.product-detail__thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  background: var(--cream);
  padding: 0;
  transition: border-color 0.2s;
}
.product-detail__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail__thumb--active,
.product-detail__thumb:hover {
  border-color: var(--forest);
}

.product-detail__info h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}
.product-detail__price {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}
.product-detail__compare {
  font-size: 16px; color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 16px;
}
.product-detail__desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
}
.product-detail__soldout {
  background: var(--cream);
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 600; color: var(--text-muted);
  font-size: 15px;
}
.product-detail__low-stock {
  color: var(--copper);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}
.product-detail__meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-dark);
  font-size: 14px; color: var(--text-muted);
}
.product-detail__meta a { color: var(--forest); }
.product-detail__meta p { margin-bottom: 4px; }

@media (max-width: 768px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .shop-filters { position: static; }
}

/* ─── CART OVERLAY (Phase 3) ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}
.cart-overlay--open {
  visibility: visible;
  opacity: 1;
}
.cart-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.cart-overlay__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--warm-white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-overlay--open .cart-overlay__drawer {
  transform: translateX(0);
}
.cart-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-overlay__header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--forest);
  margin: 0;
}
.cart-overlay__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  line-height: 1;
}
.cart-overlay__close:hover { color: var(--text); }

.cart-overlay__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-overlay__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.cart-overlay__empty p {
  font-family: var(--font-accent);
  font-size: 22px;
  color: var(--sage);
  margin-bottom: 8px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__details {
  flex: 1;
  min-width: 0;
}
.cart-item__name {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--cream-dark);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: all 0.15s;
}
.cart-item__qty-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.cart-item__qty {
  font-size: 15px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}
.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  margin-left: auto;
}
.cart-item__remove:hover { color: var(--error); }

.cart-overlay__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--cream-dark);
  background: white;
}
.cart-overlay__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cart-overlay__subtotal span:first-child {
  font-size: 14px;
  color: var(--text-light);
}
.cart-overlay__subtotal span:last-child {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--forest);
}
.cart-overlay__shipping-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cart-overlay__checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-overlay__checkout-btn:hover { background: var(--forest-light); }
.cart-overlay__checkout-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}
.cart-overlay__continue {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── SUCCESS / CANCEL PAGES ─── */
.result-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.result-page__inner { max-width: 500px; }
.result-page__icon { font-size: 64px; margin-bottom: 24px; }
.result-page__inner h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--forest);
  margin-bottom: 12px;
}
.result-page__inner p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ─── NEWSLETTER (Phase 5) ─── */
.newsletter__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter__input {
  padding: 14px 20px;
  border: 2px solid var(--cream-dark);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--warm-white);
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  transition: border 0.2s;
}
.newsletter__input:focus { outline: none; border-color: var(--forest); }
.newsletter__msg {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}
.newsletter__msg--success { color: var(--success); }
.newsletter__msg--error { color: var(--error); }

/* ─── INSTAGRAM GRID (Phase 5) ─── */
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 0 20px;
}
.instagram__tile {
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition);
}
.instagram__tile:hover { transform: scale(1.03); }
.instagram__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SKIP TO CONTENT (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--forest);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── MOBILE POLISH (Phase 5) ─── */
@media (max-width: 600px) {
  .instagram__grid { grid-template-columns: repeat(3, 1fr); }
  .about__stats { flex-direction: column; gap: 20px; }
  .hero__title { font-size: 2rem; }
  .hero__inner { padding: 0 16px; }
  .collections__grid { grid-template-columns: 1fr; padding: 0 16px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
  .shop-header { padding-top: calc(var(--nav-height) + 20px); }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .result-page__inner h1 { font-size: 24px; }
  .newsletter__form { flex-direction: column; align-items: center; }
  .newsletter__input { max-width: 100%; min-width: 0; width: 100%; }
}

@media (max-width: 380px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; text-align: center; }
}

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
  background: var(--forest);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.announcement-bar__text {
  margin: 0;
}

/* ─── SHIPPING PAGE ─── */
.shipping-block {
  margin-bottom: 48px;
}
.shipping-block h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--forest);
  margin-bottom: 16px;
}
.shipping-block p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.shipping-rate-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--sand);
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.shipping-rate-row span:last-child {
  color: var(--forest);
  font-weight: 700;
}
