/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --cream:          #FDF6EC;
  --cream-dark:     #F5EBDA;
  --cream-light:    #FFFCF7;
  --brown-dark:     #3E2723;
  --brown:          #5D4037;
  --brown-medium:   #795548;
  --brown-light:    #A1887F;
  --brown-lighter:  #D7CCC8;
  --accent:         #C8956C;
  --accent-hover:   #B07D56;
  --accent-light:   #E8C9A8;
  --pastel-pink:    #F8E8E0;
  --pastel-green:   #E8F0E4;
  --text-dark:      #2C1810;
  --text-muted:     #7B6B63;
  --text-light:     #A09490;
  --white:          #FFFFFF;
  --shadow-sm:      0 2px 8px rgba(62,39,35,0.06);
  --shadow-md:      0 4px 20px rgba(62,39,35,0.08);
  --shadow-lg:      0 8px 40px rgba(62,39,35,0.12);
  --shadow-card:    0 2px 16px rgba(62,39,35,0.07);
  --shadow-card-hover: 0 12px 36px rgba(62,39,35,0.14);

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero:        clamp(2.4rem, 5vw, 4rem);
  --fs-h2:          clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:          1.15rem;
  --fs-body:        0.95rem;
  --fs-small:       0.82rem;
  --fs-price:       1.1rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  /* Layout */
  --max-width:  1200px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-full: 50px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --duration:   0.35s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

ul { list-style: none; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(253,246,236,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(93,64,55,0.06);
  z-index: 1000;
  transition: box-shadow var(--duration) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

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

.navbar__logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--brown-medium));
  border-radius: 10px;
  color: var(--white);
  font-size: 1.2rem;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

.navbar__logo-text span {
  color: var(--accent);
}

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

.navbar__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration) var(--ease-out);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--duration) var(--ease-out);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--brown-dark);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

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

.navbar__cart {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  color: var(--brown);
  font-size: 1.15rem;
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.navbar__cart:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid var(--cream);
  transition: transform 0.3s var(--ease-out);
}

.navbar__cart-count.bump {
  animation: cartBump 0.4s var(--ease-out);
}

@keyframes cartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: var(--nav-height);
  height: clamp(420px, 55vh, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(253,246,236,0.92) 0%,
    rgba(253,246,236,0.75) 50%,
    rgba(253,246,236,0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__title span {
  color: var(--accent);
  position: relative;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--brown-medium));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,149,108,0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,149,108,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown-lighter);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--card {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(200,149,108,0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn--card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,108,0.4);
}

.btn--card:active {
  transform: translateY(0);
}

.btn--card svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn--card:hover svg {
  transform: translateX(3px);
}

/* ===== SECTION ===== */
.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__overline {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  position: relative;
}

.section__overline::before,
.section__overline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--brown-lighter);
}

.section__overline::before {
  right: calc(100% + 12px);
}

.section__overline::after {
  left: calc(100% + 12px);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

.section__subtitle {
  max-width: 500px;
  margin: var(--space-sm) auto 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CATEGORY FILTERS ===== */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.filter-btn--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(200,149,108,0.3);
}

.filter-btn--active:hover {
  color: var(--white);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

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

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-card__tag--bestseller {
  background: var(--accent);
  color: var(--white);
}

.product-card__tag--new {
  background: var(--pastel-green);
  color: #3d6b35;
}

.product-card__tag--popular {
  background: var(--pastel-pink);
  color: #9b4d3a;
}

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 0.9rem;
  z-index: 2;
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: scale(0.8);
}

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

.product-card__wishlist:hover {
  background: var(--accent);
  color: var(--white);
}

.product-card__wishlist.active {
  background: var(--accent);
  color: var(--white);
  opacity: 1;
  transform: scale(1);
}

.product-card__body {
  padding: var(--space-md) var(--space-md) var(--space-md);
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md) var(--space-md);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-price);
  font-weight: 700;
  color: var(--brown-dark);
}

.product-card__price-currency {
  font-size: 0.8em;
  color: var(--accent);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  color: #EDAB5E;
}

.product-card__rating span {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-left: 4px;
}

.product-card__add-to-cart {
  padding: 0 var(--space-md) var(--space-md);
}

/* ===== FEATURES BAR ===== */
.features {
  padding: var(--space-xl) 0;
  background: var(--white);
  border-top: 1px solid rgba(93,64,55,0.04);
  border-bottom: 1px solid rgba(93,64,55,0.04);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

.feature__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature__title {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--brown-dark);
  margin-bottom: 2px;
}

.feature__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  color: var(--brown-lighter);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer__logo span {
  color: var(--accent);
}

.footer__copy {
  font-size: var(--fs-small);
  color: var(--brown-light);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--brown-lighter);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}

.footer__social:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== CART TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 24px;
  background: var(--brown-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-body);
  font-weight: 500;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
}

.toast--error {
  background: #e74c3c;
}

.toast--error .toast__icon {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== CART OVERLAY ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--cream-light);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(62,39,35,0.15);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid rgba(93,64,55,0.08);
  background: var(--white);
  flex-shrink: 0;
}

.cart-sidebar__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.cart-sidebar__title svg {
  color: var(--accent);
}

.cart-sidebar__count {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--cream);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cart-sidebar__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
}

.cart-sidebar__close:hover {
  background: var(--brown-dark);
  color: var(--white);
  transform: rotate(90deg);
}

/* Cart body (scrollable items) */
.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--brown-lighter) transparent;
}

.cart-sidebar__body::-webkit-scrollbar {
  width: 5px;
}

.cart-sidebar__body::-webkit-scrollbar-track {
  background: transparent;
}

.cart-sidebar__body::-webkit-scrollbar-thumb {
  background: var(--brown-lighter);
  border-radius: 10px;
}

/* Individual cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
  animation: cartItemIn 0.35s var(--ease-out) both;
}

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

.cart-item.removing {
  animation: cartItemOut 0.3s var(--ease-out) forwards;
}

@keyframes cartItemOut {
  to {
    opacity: 0;
    transform: translateX(40px);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

.cart-item__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 600;
}

/* Quantity controls */
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--brown-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--brown);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
}

.cart-item__qty-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.cart-item__qty-val {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--white);
}

/* Remove button */
.cart-item__remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--text-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
}

.cart-item__remove:hover {
  background: #fde8e8;
  color: #c0392b;
}

/* Empty state */
.cart-sidebar__empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
}

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

.cart-sidebar__empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  color: var(--brown-lighter);
  margin-bottom: var(--space-lg);
}

.cart-sidebar__empty-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.cart-sidebar__empty-sub {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Footer summary */
.cart-sidebar__footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(93,64,55,0.08);
  background: var(--white);
  flex-shrink: 0;
}

.cart-sidebar__footer.hidden {
  display: none;
}

.cart-sidebar__summary {
  margin-bottom: var(--space-md);
}

.cart-sidebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.cart-sidebar__row--total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding-top: var(--space-sm);
}

.cart-sidebar__delivery {
  color: #4a8c3f;
  font-weight: 600;
}

.cart-sidebar__divider {
  height: 1px;
  background: var(--brown-lighter);
  margin: var(--space-xs) 0;
  opacity: 0.5;
}

.cart-sidebar__checkout {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== CHECKOUT OVERLAY & MODAL ===== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1700;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
}

.checkout-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 520px;
  max-width: 94vw;
  max-height: 92vh;
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(62,39,35,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.checkout-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(93,64,55,0.08);
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

.checkout-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-dark);
  flex: 1;
  text-align: center;
}

.checkout-modal__back,
.checkout-modal__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
}

.checkout-modal__back:hover,
.checkout-modal__close:hover {
  background: var(--brown-dark);
  color: var(--white);
}

.checkout-modal__close:hover {
  transform: rotate(90deg);
}

.checkout-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--brown-lighter) transparent;
}

.checkout-modal__body::-webkit-scrollbar {
  width: 5px;
}

.checkout-modal__body::-webkit-scrollbar-thumb {
  background: var(--brown-lighter);
  border-radius: 10px;
}

/* Checkout sections */
.checkout-section {
  margin-bottom: var(--space-lg);
}

.checkout-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: var(--space-md);
}

.checkout-section__title svg {
  color: var(--accent);
}

/* Checkout items list */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.checkout-item__image {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.checkout-item__info {
  flex: 1;
  min-width: 0;
}

.checkout-item__name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brown-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item__qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-item__line-total {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--brown-dark);
  flex-shrink: 0;
}

/* Checkout totals */
.checkout-totals {
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.checkout-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.checkout-totals__row--total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding-top: var(--space-sm);
}

.checkout-totals__delivery {
  color: #4a8c3f;
  font-weight: 600;
}

.checkout-totals__divider {
  height: 1px;
  background: var(--brown-lighter);
  margin: var(--space-xs) 0;
  opacity: 0.5;
}

/* Form styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrap--textarea {
  align-items: flex-start;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--brown-lighter);
  pointer-events: none;
  transition: color 0.25s var(--ease-out);
  z-index: 1;
}

.form-input-icon--textarea {
  top: 14px;
}

.form-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--brown-dark);
  background: var(--white);
  border: 1.5px solid var(--brown-lighter);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,149,108,0.15);
}

.form-input:focus + .form-input-icon,
.form-input:focus ~ .form-input-icon {
  color: var(--accent);
}

/* Reorder: icon is BEFORE input in HTML, so use sibling of wrap */
.form-input-wrap:focus-within .form-input-icon {
  color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Validation states */
.form-group.error .form-input {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-group.error .form-input-icon {
  color: #e74c3c;
}

.form-group.valid .form-input {
  border-color: #4a8c3f;
}

.form-group.valid .form-input-icon {
  color: #4a8c3f;
}

.form-error {
  font-size: 0.75rem;
  color: #e74c3c;
  min-height: 1em;
  transition: all 0.2s var(--ease-out);
}

/* Checkout footer */
.checkout-modal__footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(93,64,55,0.08);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  flex-shrink: 0;
}

.checkout-modal__place-order {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-modal__place-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== SUCCESS MODAL ===== */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
}

.success-overlay.open {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 420px;
  max-width: 90vw;
  transform: translate(-50%, -50%) scale(0.85);
  background: var(--white);
  border-radius: var(--radius-lg);
  z-index: 2000;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: 0 24px 80px rgba(62,39,35,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
}

.success-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.success-modal__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  color: #4a8c3f;
  animation: successPop 0.6s var(--ease-out) 0.1s both;
}

@keyframes successPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.success-modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: var(--space-xs);
}

.success-modal__text {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.success-modal__details {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.success-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 6px 0;
  font-size: var(--fs-small);
}

.success-detail__label {
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
}

.success-detail__value {
  color: var(--brown-dark);
  font-weight: 600;
}

.success-modal__btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card reveal */
.product-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.product-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.product-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.product-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.product-card.reveal:nth-child(5) { transition-delay: 0.25s; }
.product-card.reveal:nth-child(6) { transition-delay: 0.3s; }
.product-card.reveal:nth-child(7) { transition-delay: 0.35s; }
.product-card.reveal:nth-child(8) { transition-delay: 0.4s; }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--cream);
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-md);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .hero {
    height: auto;
    min-height: 360px;
    padding: var(--space-xl) 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .filters {
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}
