/* ============================================================
   LIKHIT PENS — COMPONENT LIBRARY
   Source: docs/design.md → Section 5 "Component Library"
   ============================================================ */

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height-desktop);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  background: var(--navbar-bg-transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* POLISH #2 — True glassmorphism: less opaque base + stronger blur for depth */
.navbar.scrolled {
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 140px;
}

.navbar-logo img,
.navbar-logo svg {
  height: 40px;
  width: auto;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.navbar-logo-name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: white;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.navbar-logo-sub {
  font-family: var(--font-script);
  font-size: var(--text-sm);
  color: var(--color-antique-gold);
  letter-spacing: var(--tracking-normal);
}

/* Nav Links (center) */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-bottom: var(--space-1);
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-antique-gold);
}

.navbar-nav .nav-link.active {
  color: var(--color-antique-gold);
}

/* Utility cluster (right) */
.navbar-utils {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: color 0.2s;
}

.lang-toggle:hover { color: var(--color-antique-gold); }

.navbar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  position: relative;
  min-width: 44px;
  min-height: 44px;
}

.navbar-icon-btn:hover { color: var(--color-antique-gold); }

.navbar-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-antique-gold);
  color: var(--color-ink-black);
  font-size: 10px;
  font-weight: var(--weight-bold);
  font-family: var(--font-body);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger button (mobile) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 1023px) {
  .navbar-nav { display: none; }
  .lang-toggle { display: none; }
  .hamburger-btn { display: flex; }
  .navbar { height: var(--navbar-height-mobile); }
}

/* ============================================================
   MOBILE MENU — FULL SCREEN OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s, opacity 0.3s, transform 0.3s;
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link:hover { color: var(--color-antique-gold); }

.mobile-menu-bottom {
  position: absolute;
  bottom: var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.mobile-menu-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.mobile-menu-social a:hover { color: var(--color-antique-gold); }

.mobile-menu-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--color-antique-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-ink-black);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: var(--space-9) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-antique-gold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-logo-name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: white;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--font-script);
  font-size: var(--text-md);
  color: var(--color-antique-gold);
  margin-bottom: var(--space-3);
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: var(--color-antique-gold);
  border-color: var(--color-antique-gold);
  background: rgba(201,168,76,0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  line-height: var(--leading-normal);
}

.footer-link:hover { color: var(--color-antique-gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-antique-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Mobile accordion */
@media (max-width: 767px) {
  .footer-col {
    border-bottom: 1px solid rgba(201,168,76,0.1);
    padding: var(--space-4) 0;
  }

  .footer-col-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
  }

  .footer-col-title.open {
    margin-bottom: var(--space-4);
  }

  .footer-col-body {
    display: none;
  }

  .footer-col-body.open {
    display: block;
  }

  .footer-col:first-child .footer-col-body {
    display: block;
  }
}

.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-made-in {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* POLISH #3 — Primary button with premium micro-interactions */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-antique-gold);
  color: var(--color-ink-black);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-space);
  text-transform: uppercase;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: 1.5px solid var(--color-burnished-gold);
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  /* lift + glow added to hover, color delay for liquid fill sync */
  transition: color 0.2s 0.2s, border-color 0.3s, transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary:hover {
  border-color: var(--color-ink-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: none;
}

/* Secondary (ghost) button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-antique-gold);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-space);
  text-transform: uppercase;
  padding: 14px 38px;
  border: 1.5px solid var(--color-antique-gold);
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-antique-gold);
  transition: width 0.3s var(--ease-pen-draw);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
}

.btn-secondary:hover::after {
  width: 100%;
}

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

/* Text link button */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--color-antique-gold);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-antique-gold);
  transition: width 0.3s var(--ease-pen-draw);
}

.btn-text:hover::after { width: 100%; }

/* POLISH #3 — Arrow in btn-text shifts right on hover for editorial feel */
.btn-text svg,
.btn-text .btn-arrow {
  transition: transform 0.25s var(--ease-smooth);
  display: inline-block;
}
.btn-text:hover svg,
.btn-text:hover .btn-arrow {
  transform: translateX(4px);
}

/* Full-width variant */
.btn-full { width: 100%; }

/* Small variant */
.btn-sm {
  padding: 10px 24px;
  font-size: var(--text-xs);
}

/* ============================================================
   PRODUCT CARD — STANDARD
   Source: docs/design.md → Section 5 "Card System → Product Card"
   ============================================================ */
/* POLISH #5 — Softer card: rely on shadow not border, floating pen image */
.product-card {
  background: var(--card-bg);
  /* Removed harsh border — shadow creates depth without hard edge */
  border: 1px solid rgba(59, 31, 10, 0.06);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-deep-brown);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

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

/* Badge — top left of card image */
.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-raised);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.badge-limited {
  background: var(--badge-limited-bg);
  color: var(--badge-limited-text);
}

.badge-new {
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
}

.badge-corporate {
  background: var(--badge-corporate-bg);
  color: var(--badge-corporate-text);
}

.badge-bestseller {
  background: var(--color-burnished-gold);
  color: white;
}

.badge-premium {
  background: var(--color-velvet-navy);
  color: var(--color-light-gold);
}

/* Wax seal badge variant */
.wax-seal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--badge-limited-bg);
  border: 2px solid var(--color-burnished-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(15deg);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: box-shadow 0.2s;
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.wax-seal-text {
  font-size: 8px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  color: var(--badge-limited-text);
  text-transform: uppercase;
  line-height: 1;
}

.wax-seal svg {
  width: 20px;
  height: 20px;
  color: var(--badge-limited-text);
}

/* Card content */
.product-card-body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

/* POLISH #1 — product card labels and name weight refinement */
.product-card-category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.25em;            /* wider tracking on all category labels */
  text-transform: uppercase;
  color: var(--color-antique-gold);
}

.product-card-name {
  font-family: var(--font-display);
  font-weight: var(--weight-regular); /* 400 — less heavy, more refined */
  font-size: 1.3rem;
  color: var(--color-deep-brown);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.product-card-desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: rgba(59, 31, 10, 0.7);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-antique-gold);
  margin-top: var(--space-1);
}

.product-card-price-contact {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-antique-gold);
  font-style: italic;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid rgba(59,31,10,0.08);
  padding-top: var(--space-3);
}

.product-card-actions .btn-primary {
  flex: 1;
  padding: 10px 16px;
  font-size: var(--text-xs);
}

.product-card-view {
  font-size: var(--text-xs);
  color: rgba(59,31,10,0.5);
  white-space: nowrap;
  transition: color 0.2s;
}

.product-card-view:hover { color: var(--color-antique-gold); }

/* Out of stock state */
.product-card.out-of-stock .product-card-image::after {
  content: 'OUT OF STOCK';
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   GIFT BOX CARD — Animation #4
   Source: docs/animations.md → Animation #4
   ============================================================ */
.gift-box-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 420px;
  perspective: 1200px;
  background: #0F1A2E;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  overflow: visible;
  cursor: pointer;
}

.gift-box-lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #0A1525;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth);
  z-index: 10;
  overflow: hidden;
}

/* Ribbon cross */
.ribbon-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-burnished-gold), var(--color-antique-gold), var(--color-burnished-gold));
  transform: translateY(-50%);
}

.ribbon-v {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-burnished-gold), var(--color-antique-gold));
  transform: translateX(-50%);
}

/* Bow at top */
.box-bow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-antique-gold);
  z-index: 11;
  font-size: 20px;
}

/* Brand emboss */
.box-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  color: rgba(201, 168, 76, 0.15);
  text-transform: uppercase;
}

.hover-hint {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  letter-spacing: var(--tracking-wide);
}

/* Interior */
.gift-box-interior {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.glow-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s 0.2s;
  pointer-events: none;
}

.gift-pen-image {
  width: 80%;
  max-height: 200px;
  object-fit: contain;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s 0.3s ease-out, opacity 0.3s 0.3s;
  position: relative;
  z-index: 1;
}

.gift-pen-placeholder {
  width: 80%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s 0.3s ease-out, opacity 0.3s 0.3s;
  position: relative;
  z-index: 1;
}

.gift-pen-placeholder svg {
  width: 100%;
  height: auto;
  color: var(--color-antique-gold);
  opacity: 0.6;
}

.pen-details {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s 0.5s, transform 0.3s 0.5s ease-out;
  position: relative;
  z-index: 1;
  margin-top: var(--space-3);
}

.pen-details .pen-name {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: white;
  margin-bottom: var(--space-1);
}

.pen-details .pen-minimum {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.pen-details .pen-price-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--color-antique-gold);
  margin-bottom: var(--space-3);
}

/* Open state */
.gift-box-card:hover .gift-box-lid,
.gift-box-card.open .gift-box-lid {
  transform: rotateX(-120deg);
}

.gift-box-card:hover .glow-layer,
.gift-box-card.open .glow-layer { opacity: 1; }

.gift-box-card:hover .gift-pen-image,
.gift-box-card.open .gift-pen-image,
.gift-box-card:hover .gift-pen-placeholder,
.gift-box-card.open .gift-pen-placeholder {
  transform: translateY(-20px);
  opacity: 1;
}

.gift-box-card:hover .pen-details,
.gift-box-card.open .pen-details {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LIMITED EDITION CARD
   ============================================================ */
.limited-card {
  background: var(--color-velvet-navy);
  border: 1px solid;
  border-image: var(--gradient-gold) 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   INK JAR CARD
   ============================================================ */
.ink-jar-card {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ink-jar-card:hover {
  transform: rotate(5deg) scale(1.05);
}

.ink-jar-label {
  font-family: var(--font-script);
  font-size: var(--text-md);
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  text-align: center;
  padding: 0 var(--space-3);
  position: relative;
  z-index: 1;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: var(--space-5);
}

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

.modal-card {
  background: #1A0A00;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-7);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-logo {
  text-align: center;
  margin-bottom: var(--space-5);
}

.modal-logo-name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-widest);
  color: white;
  text-transform: uppercase;
}

.modal-logo-sub {
  font-family: var(--font-script);
  font-size: var(--text-md);
  color: var(--color-antique-gold);
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  margin-bottom: var(--space-6);
}

.modal-tab {
  flex: 1;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  bottom: -1px;
}

.modal-tab.active {
  color: var(--color-antique-gold);
  border-bottom-color: var(--color-antique-gold);
}

.modal-tab-panel {
  display: none;
}

.modal-tab-panel.active {
  display: block;
}

.modal-form .form-input {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.2);
}

.modal-form .form-label {
  color: rgba(255,255,255,0.4);
}

.modal-form .form-input:focus ~ .form-label,
.modal-form .form-input:not(:placeholder-shown) ~ .form-label {
  color: var(--color-antique-gold);
}

.modal-error {
  background: rgba(198, 40, 40, 0.15);
  border: 1px solid rgba(198, 40, 40, 0.4);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: #ef9a9a;
  margin-bottom: var(--space-4);
  display: none;
}

.modal-error.visible { display: block; }

.modal-footer-text {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}

.modal-footer-text a {
  color: var(--color-antique-gold);
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: white; }

/* Password strength */
.password-strength {
  display: flex;
  gap: 3px;
  margin-top: var(--space-2);
  height: 3px;
}

.strength-bar {
  flex: 1;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.strength-bar.weak   { background: var(--color-error); }
.strength-bar.medium { background: var(--color-warning); }
.strength-bar.strong { background: var(--color-success); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: #1A0A00;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: var(--shadow-float);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  animation: toastSlideIn 0.35s var(--ease-enter) forwards;
}

.toast-success {
  border-color: rgba(46, 125, 50, 0.4);
  background: rgba(46, 125, 50, 0.15);
}

.toast-error {
  border-color: rgba(198, 40, 40, 0.4);
  background: rgba(198, 40, 40, 0.15);
}

.toast-info {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  padding: var(--space-1);
  transition: color 0.2s;
}

.toast-close:hover { color: white; }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.96);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.search-input-wrapper {
  width: 100%;
  max-width: 700px;
  padding: 0 var(--space-5);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.search-input-wrapper svg {
  width: 28px;
  height: 28px;
  color: var(--color-antique-gold);
  flex-shrink: 0;
}

.search-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  padding: var(--space-4) 0;
}

.search-field::placeholder {
  color: rgba(255,255,255,0.2);
}

.search-results {
  width: 100%;
  max-width: 700px;
  padding: var(--space-5);
  max-height: 50vh;
  overflow-y: auto;
}

.search-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.search-close:hover { color: white; }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
  background: var(--color-antique-gold);
  color: var(--color-ink-black);
  text-align: center;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
}

body.has-banner .navbar {
  top: 36px;
}

/* ============================================================
   PAGE HEADER (shared across inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--navbar-height-desktop) + var(--space-9));
  padding-bottom: var(--space-9);
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .page-hero {
    padding-top: calc(var(--navbar-height-mobile) + var(--space-7));
    padding-bottom: var(--space-7);
  }
}

.page-hero-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: var(--space-3);
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  color: white;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .page-hero-title { font-size: var(--text-2xl); }
}

.page-hero-sub {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  max-width: var(--container-sm);
  margin: 0 auto;
}

/* ============================================================
   SECTION HEADING (reusable)
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
}

/* POLISH #1 — Section headings: wider label tracking, lighter heading weight */
.section-heading-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.25em;            /* upgraded to match label-caps polish */
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: var(--space-3);
  display: block;
}

.section-heading-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);  /* 300 — editorial, not heavy */
  font-size: var(--text-4xl);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .section-heading-title { font-size: var(--text-2xl); }
}

.section-heading-sub {
  font-size: var(--text-md);
  /* POLISH #1 — warm off-brown on light, not harsh */
  color: rgba(59, 31, 10, 0.6);
  max-width: var(--container-sm);
  margin: 0 auto;
  font-weight: var(--weight-light);
  line-height: var(--leading-loose);
}

.section-heading-sub.light {
  /* POLISH #1 — aged-white at 65% on dark, not blinding white */
  color: rgba(250, 246, 238, 0.65);
}

/* Decorative pen-stroke lines flanking heading */
.section-heading-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.section-heading-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--color-antique-gold));
}

.section-heading-line:last-child {
  background: linear-gradient(90deg, var(--color-antique-gold), transparent);
}

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

@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-card-desc { display: none; }
  .product-card-body {
    padding: 10px 12px;
    gap: var(--space-1);
  }
  .product-card-name { font-size: 1rem; }
  .product-card-actions { display: none; }
  .tile-add { display: flex; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(59,31,10,0.5);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(59,31,10,0.5);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--color-antique-gold); }

.breadcrumb-sep {
  color: rgba(59,31,10,0.3);
}

/* ============================================================
   GLOBAL MOBILE RULES — applied to all pages via components.css
   ============================================================ */
.cat-rail { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .hamburger-btn { display: none !important; }
  .cart-icon-btn { display: none !important; }

  .cat-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 14px 20px 12px;
    scrollbar-width: none;
    background: var(--color-aged-white);
    border-bottom: 1px solid rgba(59,31,10,0.06);
  }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .cat-chip-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-parchment);
    border: 2px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
  }
  .cat-chip-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(59,31,10,0.55);
    fill: none;
    stroke-width: 1.5;
  }
  .cat-chip.active .cat-chip-icon {
    background: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
  }
  .cat-chip.active .cat-chip-icon svg { stroke: var(--color-ink-black); }
  .cat-chip-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: var(--weight-medium);
    letter-spacing: 0.04em;
    color: rgba(59,31,10,0.55);
    white-space: nowrap;
  }
  .cat-chip.active .cat-chip-label {
    color: var(--color-deep-brown);
    font-weight: var(--weight-semibold);
  }
}

/* ============================================================
   TILE-ADD — floating "+" add-to-cart on mobile tiles
   ============================================================ */
.tile-add {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-antique-gold);
  color: var(--color-ink-black);
  font-size: 1.4rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: var(--z-raised);
  box-shadow: 0 2px 12px rgba(201,168,76,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  font-weight: var(--weight-regular);
  -webkit-tap-highlight-color: transparent;
}

.tile-add:active {
  transform: scale(0.9);
  box-shadow: 0 1px 6px rgba(201,168,76,0.3);
}

/* ============================================================
   BOTTOM NAVIGATION — mobile-only fixed bar
   ============================================================ */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-aged-white);
    border-top: 1px solid rgba(201,168,76,0.2);
    z-index: var(--z-sticky);
    align-items: stretch;
    box-shadow: 0 -4px 20px rgba(59,31,10,0.08);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(59,31,10,0.4);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: var(--weight-medium);
    letter-spacing: 0.04em;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.18s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }

  .bottom-nav-item.active,
  .bottom-nav-item:active {
    color: var(--color-antique-gold);
  }

  .bottom-nav-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    background: var(--color-antique-gold);
    color: var(--color-ink-black);
    font-size: 9px;
    font-weight: var(--weight-bold);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-family: var(--font-mono);
  }
}

/* ============================================================
   DIVIDER
   ============================================================ */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-antique-gold), transparent);
  opacity: 0.4;
  margin: var(--space-5) 0;
}

/* ============================================================
   QUANTITY SELECTOR
   ============================================================ */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-antique-gold);
  font-size: var(--text-lg);
  transition: background 0.2s;
}

.qty-btn:hover { background: rgba(201,168,76,0.1); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-value {
  width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-deep-brown);
  border-left: 1px solid rgba(201,168,76,0.2);
  border-right: 1px solid rgba(201,168,76,0.2);
  padding: var(--space-2) 0;
}

/* ============================================================
   STATUS CHIP
   ============================================================ */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.status-pending   { background: rgba(245,124,0,0.15);  color: #F57C00; }
.status-processing{ background: rgba(21,101,192,0.15); color: #1565C0; }
.status-shipped   { background: rgba(201,168,76,0.15); color: var(--color-burnished-gold); }
.status-delivered { background: rgba(46,125,50,0.15);  color: var(--color-success); }
.status-cancelled { background: rgba(198,40,40,0.15);  color: var(--color-error); }

/* ============================================================
   SKELETON LOADERS (Phase 2 — product loading states)
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm, 4px);
}

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

.skeleton-card { height: 380px; }
.skeleton-text { height: 16px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-text.short { width: 60%; }

/* Spinner for button loading states */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   NAV USER DROPDOWN (Phase 2 — auth state)
   ============================================================ */
.nav-user-menu { position: relative; }

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: var(--text-sm, 0.875rem);
  padding: 6px 4px;
}
.nav-user-trigger .chevron { transition: transform 0.2s; }
.nav-user-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-deep-brown, #1a0a00);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md, 8px);
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-user-dropdown.open { display: block; }

.nav-user-dropdown a,
.nav-user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  color: var(--color-aged-white, #f5edd6);
  font-size: var(--text-sm, 0.875rem);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
  background: rgba(201,168,76,0.1);
  color: var(--color-antique-gold, #C9A84C);
}
