/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Josefin+Sans:wght@300;400;600;700&display=swap');

:root {
  --black:        #0a0a0a;
  --black-soft:   #111111;
  --black-card:   #161616;
  --black-border: #222222;
  --brown:        #6B3A2A;
  --brown-light:  #8B4A35;
  --brown-pale:   #D4A882;
  --white:        #F5F0EB;
  --white-dim:    #C8BFB5;
  --white-faint:  rgba(245,240,235,0.06);
  --ruby:         #9B1B30;
  --ruby-bright:  #C0213A;
  --ruby-glow:    rgba(155,27,48,0.18);
  --gold:         #C9972C;
  --gold-bright:  #E8B84B;
  --gold-pale:    #F5D98A;
  --gold-glow:    rgba(201,151,44,0.15);
  --green-africa: #2D6A2D;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Josefin Sans', sans-serif;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-gold:  0 0 40px rgba(201,151,44,0.12), 0 4px 24px rgba(0,0,0,0.6);
  --shadow-ruby:  0 0 40px rgba(155,27,48,0.15), 0 4px 24px rgba(0,0,0,0.6);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.8);
  --navbar-h:     72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-ui);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--brown);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-ui);
}

input, select, textarea {
  font-family: var(--font-ui);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 860px;
}

/* ── TYPOGRAPHY ── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.display-xl {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
}

.display-md {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
}

.label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.label--dim {
  color: var(--white-dim);
}

.body-lg {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--white-dim);
}

.gold { color: var(--gold); }
.ruby { color: var(--ruby-bright); }
.brown { color: var(--brown-pale); }
.white-dim { color: var(--white-dim); }

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold::before {
  background: var(--gold-bright);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow), 0 2px 8px rgba(0,0,0,0.4);
}

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

.btn-ruby::before {
  background: var(--ruby-bright);
}

.btn-ruby:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--ruby-glow), 0 2px 8px rgba(0,0,0,0.4);
}

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

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

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

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

.btn-ghost {
  background: var(--white-faint);
  color: var(--white);
  border: 1px solid var(--black-border);
}

.btn-ghost:hover {
  background: rgba(245,240,235,0.12);
  border-color: rgba(245,240,235,0.2);
}

.btn-icon {
  padding: 12px;
  width: 44px;
  height: 44px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.68rem;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── BADGE ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-gold {
  background: var(--gold-glow);
  color: var(--gold-bright);
  border: 1px solid rgba(201,151,44,0.3);
}

.badge-ruby {
  background: var(--ruby-glow);
  color: var(--ruby-bright);
  border: 1px solid rgba(155,27,48,0.3);
}

.badge-green {
  background: rgba(45,106,45,0.2);
  color: #5DBE5D;
  border: 1px solid rgba(45,106,45,0.3);
}

.badge-brown {
  background: rgba(107,58,42,0.2);
  color: var(--brown-pale);
  border: 1px solid rgba(107,58,42,0.3);
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,151,44,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(155,27,48,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(107,58,42,0.05) 0%, transparent 50%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,240,235,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,235,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

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

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.2s forwards;
}

.hero__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-smooth) 0.35s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__title .ruby-line {
  color: var(--ruby-bright);
  font-style: italic;
}

.hero__desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-smooth) 0.5s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-smooth) 0.65s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── SECTION ── */

.section {
  padding: 96px 0;
}

.section--lg {
  padding: 128px 0;
}

.section--sm {
  padding: 64px 0;
}

.section__header {
  margin-bottom: 64px;
}

.section__header--centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section__title em {
  font-style: italic;
  color: var(--gold);
}

.section__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white-dim);
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ruby));
  margin: 20px 0;
}

.divider--center {
  margin: 20px auto;
}

/* ── PRODUCT GRID ── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

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

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

.product-card {
  background: var(--black-card);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  group: true;
}

.product-card__image-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg,
    #f4f5f7 0%, #cfd3d8 18%, #eef0f2 32%, #b8bdc4 46%,
    #f7f8fa 60%, #c3c8ce 74%, #e9ebee 88%, #d6dade 100%);
  background-size: 220% 220%;
  animation: metallicShift 7s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9),
    0 0 0 3px rgba(150,155,162,0.5);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md, 14px) - 6px);
  transition: transform 0.6s var(--ease-smooth);
}

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

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.product-card__quick-add {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s var(--ease-smooth);
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
  opacity: 1;
}

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

.product-card__body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--black-border);
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.product-card__category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ruby-bright);
  background: var(--ruby-glow);
  border: 1px solid rgba(194,31,46,0.25);
  border-radius: 999px;
  padding: 2px 8px 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.product-card__price-old {
  font-size: 0.85rem;
  color: var(--white-dim);
  text-decoration: line-through;
}

.product-card__price-save {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ruby-bright);
  letter-spacing: 0.08em;
}

/* ── FILTERS ── */

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--black-border);
  border-radius: 2px;
  color: var(--white-dim);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.filter-chip.active {
  background: rgba(201,151,44,0.12);
}

/* ── CART DRAWER ── */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--black-soft);
  border-left: 1px solid var(--black-border);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
}

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

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--black-border);
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  transition: all 0.2s;
}

.cart-drawer__close:hover {
  border-color: var(--ruby);
  color: var(--ruby-bright);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--black-border);
}

.cart-item__image {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  padding: 3px;
  background: linear-gradient(135deg, #eef0f2, #b8bdc4, #f7f8fa, #c3c8ce);
  background-size: 220% 220%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 0 0 2px rgba(150,155,162,0.45);
}

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

.cart-item__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--black-border);
  border-color: var(--gold);
  color: var(--gold);
}

.qty-value {
  width: 36px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-card);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item__remove {
  margin-left: auto;
  color: var(--white-dim);
  transition: color 0.2s;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item__remove:hover {
  color: var(--ruby-bright);
}

.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px;
}

.cart-drawer__empty-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.cart-drawer__footer {
  padding: 24px 28px;
  border-top: 1px solid var(--black-border);
}

.cart-summary {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--white-dim);
}

.cart-summary__row--total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  padding-top: 10px;
  border-top: 1px solid var(--black-border);
}

.cart-summary__row--total .cart-summary__amount {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ── FORMS ── */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-ui);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control::placeholder {
  color: rgba(200,191,181,0.35);
}

.form-control--error {
  border-color: var(--ruby);
}

.form-control--error:focus {
  box-shadow: 0 0 0 3px var(--ruby-glow);
}

.form-error {
  font-size: 0.72rem;
  color: var(--ruby-bright);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--white-dim);
  margin-top: 6px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8BFB5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

/* ── NOTIFICATION TOAST ── */

.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.4s var(--ease-spring) forwards;
  pointer-events: all;
}

.toast.toast--exit {
  animation: toastOut 0.3s var(--ease-smooth) forwards;
}

.toast__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast__text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}

.toast--success {
  border-left: 3px solid var(--green-africa);
}

.toast--success .toast__icon {
  color: #5DBE5D;
}

.toast--error {
  border-left: 3px solid var(--ruby-bright);
}

.toast--error .toast__icon {
  color: var(--ruby-bright);
}

.toast--info {
  border-left: 3px solid var(--gold);
}

.toast--info .toast__icon {
  color: var(--gold);
}

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

@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; max-height: 100px; margin: 0; }
  to   { transform: translateX(40px); opacity: 0; max-height: 0;     margin: -10px 0 0; }
}

/* ── PAGINATION ── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 64px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.page-btn.active {
  background: rgba(201,151,44,0.15);
}

/* ── LOADING STATES ── */

.skeleton {
  background: linear-gradient(90deg, var(--black-card) 25%, var(--black-border) 50%, var(--black-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: var(--black-card);
  overflow: hidden;
}

.skeleton-card .skeleton-img {
  aspect-ratio: 4/5;
  width: 100%;
}

.skeleton-card .skeleton-line {
  height: 14px;
  margin: 16px 20px 8px;
}

.skeleton-card .skeleton-line--short {
  width: 60%;
  height: 12px;
  margin: 0 20px 16px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--black-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── MODAL ── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-spring);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.modal__body {
  padding: 28px;
}

.modal__footer {
  padding: 20px 28px 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── UTILITY ── */

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

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.gap-32       { gap: 32px; }

.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }

.w-full { width: 100%; }

.hidden        { display: none !important; }
.invisible     { visibility: hidden; }

/* ── ANIMATIONS ── */

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

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

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

.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-up:nth-child(1) { transition-delay: 0ms; }
.animate-fade-up:nth-child(2) { transition-delay: 80ms; }
.animate-fade-up:nth-child(3) { transition-delay: 160ms; }
.animate-fade-up:nth-child(4) { transition-delay: 240ms; }
.animate-fade-up:nth-child(5) { transition-delay: 320ms; }
.animate-fade-up:nth-child(6) { transition-delay: 400ms; }
.animate-fade-up:nth-child(7) { transition-delay: 480ms; }
.animate-fade-up:nth-child(8) { transition-delay: 560ms; }

/* ── GOLD ACCENT LINE ── */

.accent-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.accent-line__bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.accent-line__bar--right {
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .products-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .products-grid--3,
  .products-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section {
    padding: 64px 0;
  }

  .section--lg {
    padding: 80px 0;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

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

  .cart-drawer {
    max-width: 100%;
  }

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

  .hero__actions .btn {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   YAWALAI BRAND UPGRADES
   Black #0a0a0a · Gold #C9972C · Red #B91C1C · Green #1A7A1A
   ══════════════════════════════════════════════════════════════ */

/* Colour tokens */
:root {
  --red:         #B91C1C;
  --red-bright:  #DC2626;
  --red-glow:    rgba(185,28,28,0.18);
  --green:       #1A7A1A;
  --green-bright:#22A322;
  --green-glow:  rgba(26,122,26,0.18);
  /* backward-compat aliases */
  --ruby:        #B91C1C;
  --ruby-bright: #DC2626;
  --ruby-glow:   rgba(185,28,28,0.18);
  --green-africa:#1A7A1A;
}

/* Scrollbar — brand mint/gold accent */
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--red), var(--gold), var(--green));
  border-radius: 3px;
}

/* Tricolour divider */
.divider--pride {
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--green) 100%);
  border: none;
  margin: 0;
}

/* Badge colours */
.badge-red   { background: rgba(185,28,28,0.12); color: #DC2626; border: 1px solid rgba(185,28,28,0.28); }
.badge-green { background: rgba(26,122,26,0.12);  color: #22A322; border: 1px solid rgba(26,122,26,0.28); }

/* Compact card price */
.product-card__price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold);
}
.product-card__price-old  { font-size: 0.75rem; color: var(--white-dim); text-decoration: line-through; }
.product-card__price-save { font-size: 0.62rem; font-weight: 700; color: var(--red-bright); letter-spacing: 0.06em; }

/* Inline +Cart button (mobile) */
.product-card__inline-cart { display: flex; justify-content: flex-end; margin-top: 6px; }
.product-card__inline-cart-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.product-card__inline-cart-btn:active { opacity: 0.85; }

/* Spinner Yawalai tricolour */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--black-border);
  border-top-color:    var(--red);
  border-right-color:  var(--gold);
  border-bottom-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Cart badge — red */
.cart-badge { background: var(--red) !important; }

/* Scarcity badge */
.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 3px;
}
.scarcity-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: scarcity-pulse 1.8s ease-in-out infinite;
}
@keyframes scarcity-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Star rating */
.star-rating { display:inline-flex; align-items:center; gap:3px; margin-bottom:3px; }
.star-rating__stars { display:flex; gap:1px; }
.star-rating__star { font-size:0.65rem; color:var(--gold); line-height:1; }
.star-rating__star.empty { color:var(--black-border); }
.star-rating__count { font-size:0.6rem; color:var(--white-dim); }

/* Trust strip */
.trust-strip { width:100%; background:var(--black-card); border-bottom:1px solid var(--black-border); }
.trust-strip__inner { display:flex; align-items:stretch; justify-content:center; }
.trust-strip__item { display:flex; align-items:center; gap:7px; padding:10px 16px; border-right:1px solid var(--black-border); flex:1; justify-content:center; }
.trust-strip__item:last-child { border-right:none; }
.trust-strip__icon { font-size:0.9rem; flex-shrink:0; }
.trust-strip__text { font-family:var(--font-ui); font-size:0.6rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--white-dim); line-height:1.3; }
.trust-strip__text strong { color:var(--gold); }

/* Sticky add-to-cart bar */
.sticky-cart-bar { display:none; }
@media (max-width:768px) {
  .sticky-cart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    /* sit just above the app bottom-nav (60px + its own safe-area pad)
       instead of underneath it */
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 0; right: 0;
    z-index: 850;
    padding: 10px 16px;
    background: var(--black-soft);
    border-top: 2px solid var(--gold);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.55);
  }
  .sticky-cart-bar.visible { transform: translateY(0); }
  .sticky-cart-bar__info { flex:1; min-width:0; overflow:hidden; }
  .sticky-cart-bar__name { font-size:0.78rem; font-weight:600; color:var(--white); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:1px; }
  .sticky-cart-bar__price { font-family:var(--font-display); font-size:1rem; color:var(--gold); }
  .sticky-cart-bar__qty { display:flex; align-items:center; border:1px solid var(--black-border); border-radius:var(--radius-sm); overflow:hidden; background:var(--black-card); flex-shrink:0; }
  .sticky-cart-bar__qty-btn { width:34px; height:42px; display:flex; align-items:center; justify-content:center; font-size:1rem; color:var(--white-dim); background:transparent; border:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .sticky-cart-bar__qty-btn:active { background:var(--gold-glow); color:var(--gold); }
  .sticky-cart-bar__qty-val { font-size:0.88rem; font-weight:600; color:var(--white); min-width:28px; text-align:center; user-select:none; }
  .sticky-cart-bar__cta { display:flex; align-items:center; justify-content:center; gap:6px; padding:12px 20px; background:var(--gold); color:#0a0a0a; border:none; border-radius:var(--radius-sm); font-family:var(--font-ui); font-size:0.7rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; cursor:pointer; flex-shrink:0; -webkit-tap-highlight-color:transparent; white-space:nowrap; }
  .sticky-cart-bar__cta:active { opacity:0.85; }
  .sticky-cart-bar__cta:disabled { background:var(--black-border); color:var(--white-dim); cursor:not-allowed; }
  body.has-sticky-cart { padding-bottom: calc(68px + env(safe-area-inset-bottom,0px)); }
}

/* product-detail uses pd-* classes from product.css — these bridge the gap */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}
.product-detail__gallery { position: sticky; top: 96px; }
.product-detail__main-img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  padding: 6px;
  background: linear-gradient(135deg,
    #f4f5f7 0%, #cfd3d8 18%, #eef0f2 32%, #b8bdc4 46%,
    #f7f8fa 60%, #c3c8ce 74%, #e9ebee 88%, #d6dade 100%);
  background-size: 220% 220%;
  animation: metallicShift 7s ease-in-out infinite;
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.95),
    0 0 0 3px rgba(150,155,162,0.55),
    0 0 0 6px rgba(255,255,255,0.85),
    0 0 0 7px rgba(160,166,174,0.35);
  margin-bottom: 10px;
}
.product-detail__main-img { width:100%; height:100%; object-fit:contain; border-radius:calc(var(--radius-md) - 8px); }
.product-detail__thumbs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.product-detail__thumb {
  aspect-ratio:1/1; object-fit:cover; cursor:pointer; opacity:0.6; transition:all 0.2s;
  padding: 3px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eef0f2, #b8bdc4, #f7f8fa, #c3c8ce);
  background-size: 220% 220%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.85), 0 0 0 2px rgba(150,155,162,0.4);
}
.product-detail__thumb:hover { opacity:0.9; }
.product-detail__thumb.active { opacity:1; box-shadow: 0 0 0 1px rgba(255,255,255,0.95), 0 0 0 2px var(--gold); }
.product-detail__info { padding-top:8px; }
@media (max-width:900px) {
  .product-detail-layout { grid-template-columns:1fr; gap:24px; }
  .product-detail__gallery { position:static; }
}


/* ══════════════════════════════════════════════════════════════════════
   SILVER METALLIC GLITTER — Yawalai icon/image padding treatment
   Applied to icon containers (category icons, quick-nav icons) and
   product image frames. A brushed-silver gradient with a slow diagonal
   shimmer sweep — sits *behind* icons/images as the padded backdrop.
   Usage: add class="icon-metallic" to any icon/image wrapper.
   ══════════════════════════════════════════════════════════════════════ */
.icon-metallic {
  position: relative;
  background: linear-gradient(135deg,
    #f4f5f7 0%, #cfd3d8 18%, #eef0f2 32%, #b8bdc4 46%,
    #f7f8fa 60%, #c3c8ce 74%, #e9ebee 88%, #d6dade 100%);
  background-size: 220% 220%;
  animation: metallicShift 5s ease-in-out infinite;
  border-radius: var(--radius-md, 14px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9),
    0 0 0 3px rgba(150,155,162,0.55),
    inset 0 1px 1px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
}
.icon-metallic::after {
  content: '';
  position: absolute;
  inset: -60% -60%;
  background: linear-gradient(115deg,
    transparent 30%, rgba(255,255,255,0.75) 45%,
    rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.75) 55%, transparent 70%);
  transform: translateX(-120%) rotate(8deg);
  animation: metallicGlitter 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes metallicShift {
  0%, 100% { background-position: 0% 30%; }
  50%      { background-position: 100% 70%; }
}
@keyframes metallicGlitter {
  0%   { transform: translateX(-120%) rotate(8deg); }
  45%  { transform: translateX(120%)  rotate(8deg); }
  100% { transform: translateX(120%)  rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-metallic, .icon-metallic::after { animation: none; }
}

/* Icon glyphs sitting on the metallic backdrop read best in dark ink */
.icon-metallic svg { position: relative; z-index: 1; stroke: #2a2e33 !important; }
.icon-metallic img { position: relative; z-index: 1; }

/* Double silver ring — a distinct outer+inner ring pair, for banner /
   slider-style imagery where a single ring reads too thin */
.silver-ring-double {
  position: relative;
  border-radius: var(--radius-md, 14px);
  padding: 5px;
  background: linear-gradient(135deg, #eef0f2, #b8bdc4, #f7f8fa, #c3c8ce);
  background-size: 220% 220%;
  animation: metallicShift 7s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.95),
    0 0 0 2px rgba(140,146,154,0.6),
    0 0 0 5px rgba(255,255,255,0.85),
    0 0 0 6px rgba(160,166,174,0.4),
    0 4px 14px rgba(0,0,0,0.14);
}
.silver-ring-double__inner {
  border-radius: calc(var(--radius-md, 14px) - 4px);
  overflow: hidden;
  position: relative;
  background: var(--black-card);
}
.silver-ring-double__inner::after {
  content: '';
  position: absolute;
  inset: -60% -60%;
  background: linear-gradient(115deg,
    transparent 35%, rgba(255,255,255,0.35) 48%,
    rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.35) 52%, transparent 65%);
  transform: translateX(-120%) rotate(8deg);
  animation: metallicGlitter 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
  pointer-events: none;
  z-index: 2;
}

/* Product image frame variant — same metallic backdrop, square padding */
.pimg-metallic {
  background: linear-gradient(135deg,
    #f4f5f7 0%, #cfd3d8 18%, #eef0f2 32%, #b8bdc4 46%,
    #f7f8fa 60%, #c3c8ce 74%, #e9ebee 88%, #d6dade 100%);
  background-size: 220% 220%;
  animation: metallicShift 6s ease-in-out infinite;
  padding: 14px;
  border-radius: var(--radius-md, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9),
    0 0 0 3px rgba(150,155,162,0.5);
}
.pimg-metallic::after {
  content: '';
  position: absolute;
  inset: -60% -60%;
  background: linear-gradient(115deg,
    transparent 35%, rgba(255,255,255,0.6) 48%,
    rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.6) 52%, transparent 65%);
  transform: translateX(-120%) rotate(8deg);
  animation: metallicGlitter 4s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}
.pimg-metallic img { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════════
   APP SHELL — makes the site feel like a native app on smartphones,
   ready to be wrapped into an APK (WebView) later.
   ══════════════════════════════════════════════════════════════════════ */

/* Remove the grey tap-flash Android WebViews show on every touch */
* {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none; /* kill the rubber-band/pull-to-refresh chrome */
}

body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

/* Buttons/links get a native-feeling press state instead of a hover ghost
   (hover doesn't really exist on touch, so make press feedback obvious) */
.btn, .qty-btn, .cat-stack__box, .catgrid__item, .qcat-strip__item,
.product-card, .cart-item__remove, button, a.btn, .promo-card {
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active, .qty-btn:active, .cat-stack__box:active, .catgrid__item:active,
.qcat-strip__item:active, .product-card:active, button:active, a.btn:active,
.promo-card:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* Inputs shouldn't zoom the page on focus on iOS (needs >=16px font) */
input, select, textarea { font-size: max(16px, 1rem); }

/* Safe-area padding — matters once this is wrapped for a notch/gesture-bar
   device. Applied wherever content could butt up against the screen edge. */
.navbar {
  padding-top: env(safe-area-inset-top, 0px);
}
.app-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Bottom tab bar — the primary app-style navigation ── */
.app-bottom-nav {
  display: none; /* shown only on small/touch viewports, see media query */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--navbar-bg, rgba(255,255,255,0.98));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--black-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.app-bottom-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 560px;
  margin: 0 auto;
}
.app-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 7px;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  min-height: 54px;
}
.app-bottom-nav__item svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  transition: transform 0.15s ease;
}
.app-bottom-nav__item span {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.app-bottom-nav__item.active { color: var(--gold); }
.app-bottom-nav__item.active svg { transform: translateY(-1px) scale(1.08); }
.app-bottom-nav__item:active svg { transform: scale(0.88); }
.app-bottom-nav__badge {
  position: absolute;
  top: 4px; right: calc(50% - 20px);
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--ruby-bright);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg-primary, #fff);
}

@media (max-width: 860px) {
  .app-bottom-nav { display: block; }
  /* stop content from hiding behind the fixed tab bar */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  /* Cart + Account now live in the bottom tab bar — hide their header
     duplicates so mobile doesn't show the same action twice */
  #cart-toggle, #nav-account-link { display: none !important; }
}

/* Sticky header gets a subtle elevation once the page scrolls, like a
   native app's app-bar shadow-on-scroll behaviour */
.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Skeleton shimmer for async content — feels like native lazy-loading
   instead of a jarring empty-then-populated flash */
.skeleton {
  background: linear-gradient(90deg, var(--skeleton-from) 25%, var(--skeleton-to) 37%, var(--skeleton-from) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Toasts sit above the bottom tab bar on mobile instead of being covered */
@media (max-width: 860px) {
  .toast-container { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}
