/**
 * components.css — All reusable UI components for KnotAF™
 * Depends on: css/base.css (all CSS variables)
 */

/* ============================================================
   ANNOUNCE BAR
   ============================================================ */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 10);
  background: var(--brown);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  padding: var(--space-xs) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 36px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.announce-bar.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announce-bar__text {
  flex: 1;
}

.announce-bar__text a {
  color: var(--orange2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce-bar__close {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.announce-bar__close:hover { opacity: 1; }

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height-mobile);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.top-nav.announce-offset {
  top: 36px;
}

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

.top-nav__inner {
  height: var(--nav-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--space-lg);
  max-width: var(--content-max-width);
  margin-inline: auto;
  gap: var(--space-md);
}

/* Logo */
.top-nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
}

.top-nav__logo-knot { color: var(--dark); }
.top-nav__logo-af   { color: var(--orange); }

/* Desktop nav links */
.top-nav__links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
}

.top-nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-fast);
}

.top-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: left;
}

.top-nav__links a:hover { color: var(--orange); }
.top-nav__links a:hover::after,
.top-nav__links a.active::after { transform: scaleX(1); }
.top-nav__links a.active { color: var(--orange); }

/* Right icon group */
.top-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.top-nav__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--brown);
  transition: background var(--transition-fast), color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.top-nav__icon-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.top-nav__icon-btn svg { width: 22px; height: 22px; }

/* Cart badge on icon */
.top-nav__cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* Desktop: show nav links, adjust height */
@media (min-width: 768px) {
  .top-nav { height: var(--nav-height-desktop); }
  .top-nav__inner { height: var(--nav-height-desktop); padding-inline: var(--space-xl); }
  .top-nav__links { display: flex; }
}

@media (min-width: 1024px) {
  .top-nav__inner { padding-inline: var(--space-2xl); }
}

/* ============================================================
   BOTTOM NAVIGATION (mobile only)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--cream2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}

.bottom-nav__list {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: var(--space-sm);
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item svg { width: 22px; height: 22px; }

.bottom-nav__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Active state — orange pill background */
.bottom-nav__item.active {
  color: var(--orange);
}

.bottom-nav__item.active .bottom-nav__icon-wrap {
  background: rgba(200, 121, 65, 0.12);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-top: -4px;
}

/* Badge on cart icon */
.bottom-nav__badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(6px);
  min-width: 16px;
  height: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Bottom nav icon wrapper (default — no bg) */
.bottom-nav__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), padding var(--transition-fast);
}

/* Hide on tablet+ */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

/* ============================================================
   BOTTOM SHEET SYSTEM
   ============================================================ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.45);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

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

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sheet);
  background: var(--cream2);
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 300ms ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sheet--open { transform: translateY(0); }

/* Desktop: constrain width */
@media (min-width: 768px) {
  .sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 480px;
    border-radius: 20px 20px 0 0;
  }
  .sheet--open {
    transform: translateX(-50%) translateY(0);
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto var(--space-sm);
  flex-shrink: 0;
}

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

.sheet-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--dark);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.sheet-close:hover { background: var(--muted); color: var(--dark); }

.sheet-body {
  padding: var(--space-lg);
  overflow-y: auto;
}

.sheet-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--cream2);
  position: sticky;
  bottom: 0;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--cream2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.product-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--border);
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

/* Emoji / color fallback */
.product-card__thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* Badge — top left */
.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-card);
}

/* Wishlist — top right */
.product-card__wishlist {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: var(--z-card);
  width: 32px;
  height: 32px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.product-card__wishlist:hover,
.product-card__wishlist.wishlisted { color: #e74c3c; }
.product-card__wishlist svg { width: 16px; height: 16px; }

.product-card__info {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brown);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.product-card__price {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--dark);
  letter-spacing: var(--tracking-tight);
}

.product-card__price-original {
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: line-through;
  margin-left: var(--space-xs);
}

/* Add to cart button */
.product-card__add {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  width: 30px;
  height: 30px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-card);
}

.product-card__add:hover { background: var(--dark); transform: scale(1.1); }
.product-card__add svg { width: 16px; height: 16px; }

/* ============================================================
   CATEGORY CARD
   ============================================================ */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  min-height: 160px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card__emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

.category-card__name {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--dark);
  line-height: var(--leading-snug);
  font-weight: 400;
}

.category-card__count {
  font-size: var(--text-xs);
  color: var(--mid);
  margin-top: 2px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--dark);
  line-height: var(--leading-snug);
}

.section-header__subtitle {
  font-size: var(--text-sm);
  color: var(--mid);
  margin-top: 2px;
}

.section-header__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--orange);
  white-space: nowrap;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.section-header__link:hover { color: var(--dark); }
.section-header__link svg { width: 14px; height: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 13px var(--space-xl);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary */
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

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

/* Ghost (transparent with border) */
.btn-ghost {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-ghost:hover {
  background: var(--orange);
  color: #fff;
}

/* Outline (neutral border) */
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--brown);
  background: var(--cream2);
}

/* Dark */
.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.btn-dark:hover { background: var(--brown); border-color: var(--brown); }

/* Admin action (small) */
.btn-admin {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px var(--space-md);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.btn-admin-primary { background: var(--orange); color: #fff; }
.btn-admin-primary:hover { background: var(--dark); }
.btn-admin-danger  { background: #fee2e2; color: #991b1b; }
.btn-admin-danger:hover { background: #fca5a5; }
.btn-admin-muted   { background: var(--border); color: var(--mid); }
.btn-admin-muted:hover { background: var(--muted); color: #fff; }

/* Sizes */
.btn-sm { font-size: var(--text-sm); padding: 9px var(--space-lg); }
.btn-lg { font-size: var(--text-lg); padding: 16px var(--space-2xl); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* Disabled */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBtn 0.7s linear infinite;
}

@keyframes spinBtn { to { transform: rotate(360deg); } }

/* ============================================================
   BADGE PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-bestseller {
  background: var(--orange);
  color: #fff;
}

.badge-new {
  background: var(--green);
  color: #fff;
}

.badge-sale {
  background: #e74c3c;
  color: #fff;
}

.badge-fanfav {
  background: var(--purple);
  color: #fff;
}

.badge-limited {
  background: var(--dark);
  color: var(--orange2);
}

.badge-custom {
  background: var(--border);
  color: var(--mid);
}

/* Status badges (for orders/admin) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pending    { background: #fef9c3; color: #854d0e; }
.status-paid       { background: #dcfce7; color: #166534; }
.status-shipped    { background: #dbeafe; color: #1e40af; }
.status-delivered  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-processing { background: #f3e8ff; color: #6b21a8; }

/* ============================================================
   TRUST BADGE STRIP
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

@media (min-width: 480px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.trust-badge__icon {
  font-size: 24px;
  line-height: 1;
}

.trust-badge__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.trust-badge__desc {
  font-size: var(--text-xs);
  color: var(--mid);
  line-height: 1.4;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: var(--border);
  border-radius: var(--radius-sm);
  animation: skeletonPulse 1.5s ease infinite;
  display: block;
}

.skeleton-text  { height: 14px; width: 100%; border-radius: var(--radius-full); }
.skeleton-title { height: 22px; width: 60%; border-radius: var(--radius-full); }
.skeleton-thumb { aspect-ratio: 1/1; border-radius: var(--radius-md); }
.skeleton-card  { height: 240px; border-radius: var(--radius-lg); }
.skeleton-circle { border-radius: var(--radius-full); }

/* Skeleton card wrapper */
.skeleton-product-card {
  background: var(--cream2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
}

.skeleton-product-card .skeleton-thumb { border-radius: 0; }
.skeleton-product-card .skeleton-text  { margin: 0 var(--space-md); width: calc(100% - 32px); }

/* ============================================================
   ADMIN INDICATOR BAR
   ============================================================ */
.admin-indicator {
  width: 100%;
  background: transparent;
  border: 2px dashed var(--orange);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--orange);
}

.admin-indicator svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Admin top bar (shown on customer pages when logged in) */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 20);
  background: var(--dark);
  color: var(--orange2);
  padding: var(--space-xs) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 500;
  gap: var(--space-md);
}

.admin-bar a {
  color: var(--orange2);
  transition: color var(--transition-fast);
}

.admin-bar a:hover { color: #fff; }
.admin-bar__links { display: flex; gap: var(--space-md); }

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-lg));
  right: var(--space-lg);
  z-index: calc(var(--z-nav) - 1);
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg { width: 26px; height: 26px; }

@media (min-width: 768px) {
  .whatsapp-float { bottom: var(--space-xl); right: var(--space-xl); }
}

/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating__star {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.star-rating__star--empty { color: var(--border); }

.star-rating__text {
  font-size: var(--text-xs);
  color: var(--mid);
  margin-left: var(--space-xs);
  font-weight: 500;
}

/* Interactive star input */
.star-input {
  display: flex;
  gap: 4px;
}

.star-input__star {
  width: 28px;
  height: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-input__star.selected,
.star-input__star:hover { color: #f59e0b; transform: scale(1.15); }

/* ============================================================
   REVIEW CARD
   ============================================================ */
.review-card {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  justify-content: space-between;
}

.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-card__meta {
  flex: 1;
  min-width: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--dark);
  line-height: 1.3;
}

.review-card__location {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 1px;
}

.review-card__product-tag {
  font-size: var(--text-xs);
  color: var(--orange);
  background: rgba(200, 121, 65, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.review-card__text {
  font-size: var(--text-sm);
  color: var(--brown);
  line-height: var(--leading-loose);
  font-style: italic;
}

.review-card__text::before { content: '"'; }
.review-card__text::after  { content: '"'; }

.review-card__date {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ============================================================
   NEWSLETTER BLOCK
   ============================================================ */
.newsletter-block {
  background: linear-gradient(135deg, var(--cream2) 0%, #fef3e8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.newsletter-block__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.newsletter-block__desc {
  font-size: var(--text-sm);
  color: var(--mid);
  max-width: 400px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-loose);
}

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

.newsletter-form .form-input {
  flex: 1;
}

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

.newsletter-block__disclaimer {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-md);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brown);
}

.form-label.required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px var(--space-md);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--brown);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200, 121, 65, 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B09070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

/* ============================================================
   INSTAGRAM GRID
   ============================================================ */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 480px) {
  .instagram-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
}

@media (min-width: 768px) {
  .instagram-grid { grid-template-columns: repeat(6, 1fr); }
}

.instagram-post {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  display: block;
  cursor: pointer;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.instagram-post:hover img { transform: scale(1.07); }

.instagram-post__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 16, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.instagram-post:hover .instagram-post__overlay { opacity: 1; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  min-width: 280px;
  max-width: calc(100vw - 32px);
}

@media (min-width: 768px) {
  .toast-container { bottom: var(--space-xl); }
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: auto;
  animation: toastIn 300ms ease forwards;
}

.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--color-error); }
.toast.toast-warning { background: var(--color-warning); }

.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  min-height: 480px;
  max-height: 700px;
  background: var(--dark);
}

@media (min-width: 1024px) {
  .hero { height: 90vh; max-height: 860px; }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero__slide.active { opacity: 1; }

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 20, 16, 0.7) 0%,
    rgba(30, 20, 16, 0.3) 60%,
    transparent 100%
  );
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--space-lg);
  padding-bottom: calc(var(--space-2xl) + var(--bottom-nav-height));
}

@media (min-width: 768px) {
  .hero__content {
    justify-content: center;
    padding: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--orange2);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 58px);
  color: #fff;
  line-height: var(--leading-tight);
  max-width: 560px;
  margin-bottom: var(--space-md);
}

.hero__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  max-width: 400px;
  line-height: var(--leading-loose);
  margin-bottom: var(--space-xl);
}

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

/* Dots */
.hero__dots {
  position: absolute;
  bottom: calc(var(--bottom-nav-height) + var(--space-lg));
  left: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero__dots { bottom: var(--space-xl); left: var(--space-3xl); }
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition-fast), width var(--transition-base);
}

.hero__dot.active { background: #fff; width: 20px; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

@media (min-width: 480px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
}

@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  margin-top: var(--space-3xl);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-xl));
}

@media (min-width: 768px) {
  .footer { padding-bottom: var(--space-2xl); }
}

.footer__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
}

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

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__brand-logo span { color: var(--orange); }

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-lg);
}

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

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover { background: var(--orange); color: #fff; }
.footer__social-link svg { width: 16px; height: 16px; }

.footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__link:hover { color: var(--orange2); }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}

.footer__legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   QUANTITY STEPPER
   ============================================================ */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
}

.qty-stepper__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brown);
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.qty-stepper__btn:hover { background: var(--border); }
.qty-stepper__btn:disabled { color: var(--muted); cursor: not-allowed; }

.qty-stepper__value {
  min-width: 36px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 var(--space-xs);
}

/* ============================================================
   PRICE DISPLAY
   ============================================================ */
.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price-display__current {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: var(--tracking-tight);
}

.price-display__original {
  font-size: var(--text-base);
  color: var(--muted);
  text-decoration: line-through;
}

.price-display__discount {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green);
  background: rgba(74, 110, 76, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar__input {
  width: 100%;
  padding: 12px var(--space-lg) 12px 44px;
  background: var(--cream2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--brown);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200, 121, 65, 0.12);
}

.search-bar__icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-bar__clear {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.search-bar__clear:hover { color: var(--dark); background: var(--border); }

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + var(--space-xs));
  left: 0;
  right: 0;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: var(--z-nav);
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--text-sm);
  color: var(--brown);
}

.search-suggestion-item:hover { background: var(--cream); }

.search-suggestion-item img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   CHIP / TAG FILTER
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  padding: 6px var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--border);
  background: var(--cream2);
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.chip:hover { border-color: var(--orange); color: var(--orange); }

.chip.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

/* ============================================================
   PRICE RANGE SLIDER
   ============================================================ */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ============================================================
   SORT / FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar__count {
  font-size: var(--text-sm);
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  gap: var(--space-md);
}

.empty-state__emoji { font-size: 56px; line-height: 1; }

.empty-state__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--dark);
}

.empty-state__desc {
  font-size: var(--text-sm);
  color: var(--mid);
  max-width: 320px;
  line-height: var(--leading-loose);
}

/* ============================================================
   ORDER SUMMARY CARD
   ============================================================ */
.order-summary {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.order-summary__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--mid);
  padding: var(--space-xs) 0;
}

.order-summary__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-md) 0;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark);
}

/* ============================================================
   PAGE LOADING INDICATOR
   ============================================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  z-index: var(--z-toast);
  animation: pageLoad 1.5s ease infinite;
  transform-origin: left;
}

@keyframes pageLoad {
  0%  { transform: scaleX(0); }
  50% { transform: scaleX(0.7); }
  100%{ transform: scaleX(1); opacity: 0; }
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SCROLL PILL (horizontal scroll indicator)
   ============================================================ */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }
