/* 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);
}

*, *::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);
}

/* ── NAVBAR ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-smooth), backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.navbar__logo-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.navbar__logo-text span {
  color: var(--gold);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-smooth);
  transform-origin: left;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white-faint);
  color: var(--white);
  transition: all 0.2s;
  border: 1px solid var(--black-border);
}

.navbar__cart-btn:hover {
  background: rgba(245,240,235,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--ruby);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s var(--ease-spring);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.navbar__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.navbar__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.navbar__mobile .navbar__link {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.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;
  background: var(--black-soft);
  position: relative;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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__category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.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);
  background: var(--black-card);
  flex-shrink: 0;
}

.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;
}

/* ── FOOTER ── */

.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer__social-btn {
  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);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer__social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.footer__col-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--black-border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--white-dim);
}

.footer__payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__pay-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 3px;
  color: var(--white-dim);
}

/* ── 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) {
  .navbar__nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .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;
  }
}

/* ══════════════════════════════════════════════════════════════
   AFRIPRIDE 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 — pan-African tricolour */
::-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 AfriPride 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;
    bottom: 0; left: 0; right: 0;
    z-index: 800;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom,0px));
    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;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.product-detail__main-img { width:100%; height:100%; object-fit:contain; }
.product-detail__thumbs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.product-detail__thumb { aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-sm); border:2px solid transparent; cursor:pointer; opacity:0.55; transition:all 0.2s; }
.product-detail__thumb:hover { opacity:0.85; border-color:var(--black-border); }
.product-detail__thumb.active { border-color:var(--gold); opacity:1; }
.product-detail__info { padding-top:8px; }
@media (max-width:900px) {
  .product-detail-layout { grid-template-columns:1fr; gap:24px; }
  .product-detail__gallery { position:static; }
}

/* ── NAVBAR SEARCH + CURRENCY (consolidated) ── */
.navbar__search-wrap {
  display: flex;
  align-items: center;
  max-width: 320px;
  flex: 1 1 auto;
  margin: 0 16px;
  position: relative;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 8px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.currency-switcher {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .navbar__search-wrap {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar__actions {
    gap: 4px;
  }
}



/* ============================================
   SAFE OVERRIDES - Add to END of style.css
   Fixes slider height + navbar visibility
   ============================================ */

/* FIX 1: Ensure slider has proper height */
.hero-slider,
.hero-slider--banner {
  min-height: 500px !important;
  height: 85vh !important;
  max-height: 900px !important;
}

/* FIX 2: Remove dark overlay completely */
.hero-slider__overlay,
.hero-slider__overlay--banner,
[class*="hero-slider__overlay"] {
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

/* FIX 3: Keep images bright and full */
.hero-slider__media--fullbleed,
.hero-slider__media {
  filter: brightness(1) !important;
  opacity: 1 !important;
}

/* FIX 4: Make navbar text CRYSTAL CLEAR */
.navbar__link,
.navbar__dropdown-btn {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.navbar__link:hover,
.navbar__dropdown-btn:hover {
  color: #C9972C !important;
}

/* FIX 5: Remove any dark gradient from navbar that might affect slider */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px) !important;
}

/* FIX 6: Ensure slider text is readable without dark overlay */
.hero-slider__content {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    transparent 100%
  ) !important;
}

/* FIX 7: Mobile fixes */
@media (max-width: 768px) {
  .hero-slider,
  .hero-slider--banner {
    height: 60vh !important;
    min-height: 400px !important;
  }
  
  .hero-slider__content {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ) !important;
  }
}

@media (max-width: 480px) {
  .hero-slider,
  .hero-slider--banner {
    height: 50vh !important;
    min-height: 350px !important;
  }
}