@import url('https://fonts.cdnfonts.com/css/amazon-ember');

:root {
  --font-primary: "Amazon Ember", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Curated Premium Luxury Colors */
  --bg-amazon-gray: #f8fafc;          /* High-end clean slate-blue canvas background */
  --bg-amazon-dark: #0b0f19;          /* Deep metallic obsidian dark slate header */
  --bg-amazon-subnav: #111827;        /* Sleek sub-navigation charcoal slate */
  --bg-white: #ffffff;
  
  --amazon-yellow: #ffd814;          /* Yellow button fill */
  --amazon-yellow-hover: #f7ca00;    /* Yellow button hover golden */
  --amazon-orange: #f08804;          /* Secondary accents / search bar highlight */
  --amazon-orange-hover: #e47911;
  
  --amazon-link: #0284c7;            /* Premium sky-blue links */
  --amazon-link-border: #0284c7;
  --amazon-link-hover: #ea580c;      /* Rich orange hover */
  --amazon-price: #dc2626;           /* Vivid red for prices */
  --amazon-green: #15803d;           /* Vivid emerald green for stock */
  
  --text-dark: #111827;              /* Deep slate dark body text */
  --text-gray: #4b5563;              /* Muted slate-gray subtitle text */
  --border-color: #e2e8f0;           /* Soft slate border divider */
  --border-light: #f1f5f9;
  
  --radius-sm: 6px;                  /* Soft rounded corners */
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-amazon-gray);
  color: var(--text-dark);
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: var(--amazon-link);
  text-decoration: none;
}
a:hover {
  color: var(--amazon-link-hover);
  text-decoration: underline;
}

/* Authentic Amazon Pill Buttons */
.btn-primary {
  background: #ffd814;
  background: linear-gradient(to bottom, #ffe87c, #ffd814);
  color: #0f1111;
  border: 1px solid #a88734;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 20px; /* Pill shape */
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(213,217,217,.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  outline: none;
  transition: all 0.1s ease;
}

.btn-primary:hover {
  background: #f7ca00;
  background: linear-gradient(to bottom, #f5d63d, #f7ca00);
  border-color: #846a29;
}

.btn-primary:active {
  background: #f0c14b;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #f0f2f2;
  background: linear-gradient(to bottom, #f7f8f8, #f0f2f2);
  color: #0f1111;
  border: 1px solid #d5d9d9;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 20px; /* Pill shape */
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(213,217,217,.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  outline: none;
  transition: all 0.1s ease;
}

.btn-secondary:hover {
  background: #e3e6e6;
  background: linear-gradient(to bottom, #f0f2f2, #e3e6e6);
  border-color: #a88734;
}

.btn-secondary:active {
  background: #dfdfdf;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

/* Header — seamless dark band with subnav */
header {
  background-color: #1a2332;
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  box-shadow: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.logo-container:hover {
  background: rgba(255, 255, 255, 0.05);
}

.logo-icon {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(135deg, #ffd814 0%, #f08804 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #0b0f19;
  box-shadow: 0 0 12px rgba(240, 136, 4, 0.4);
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.logo-text span {
  color: #ffd814;
  margin-left: 1px;
}
.logo-b2b-badge {
  background: rgba(255,216,20,0.15);
  border: 1px solid rgba(255,216,20,0.45);
  color: #ffd814;
  font-family: var(--font-primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
  margin-top: 1px;
}
.brand-logo-inline {
  font-family: var(--font-primary);
  font-weight: 700;
  color: inherit;
}
.brand-logo-inline span {
  color: #ffd814;
  margin-left: 0.5px;
}

/* Header Pin element (Deliver to) — white on dark */
.nav-deliver-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-deliver-pin:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.header-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.pin-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pin-text-top {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.pin-text-bottom {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

/* Search Bar — white fill inside dark header */
.nav-search-bar {
  flex-grow: 1;
  display: flex;
  height: 44px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;  /* anchor for the autocomplete dropdown */
  /* overflow:hidden removed so the suggest dropdown can float below */
}

/* ─── Search Autocomplete Dropdown ─── */
.search-suggest-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--font-primary);
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: #0f1111;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggest-item:last-child { border-bottom: none; }

.search-suggest-item:hover {
  background: #fffbf0;
}

.search-suggest-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.search-suggest-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-kind {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.nav-search-bar:focus-within {
  border-color: #ffd814;
  box-shadow: 0 0 0 3px rgba(255, 216, 20, 0.28);
}

.search-category-select {
  background-color: #f5f5f5;
  border: none;
  border-right: 1px solid #d5d9d9;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f1111;
  padding: 0 12px;
  cursor: pointer;
  outline: none;
}
.search-category-select:hover { background-color: #eee; }

.search-input-field {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  color: #0f1111;
  outline: none;
}
.search-input-field::placeholder { color: #aaa; }

.search-button-btn {
  width: 48px;
  background: linear-gradient(135deg, #ffd814 0%, #f08804 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.search-button-btn:hover {
  filter: brightness(1.1);
}
.search-icon {
  font-size: 1.15rem;
  color: #0b0f19;
}

/* Right Nav links */
.nav-right-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Icon + label nav buttons (Orders, etc.) */
.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.1); color: #ffd814; text-decoration: none; }
.nav-icon-btn svg { display: block; flex-shrink: 0; }
.nav-icon-label {
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
}

/* Language switcher — white on dark header */
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.12);
  padding: 2px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover { color: #ffffff; }
.lang-btn.active {
  background: #ffd814;
  color: #0f1111;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Account link box — white text on dark header */
.nav-link-box {
  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  cursor: pointer;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-link-box:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.nav-acct-icon { color: #ffffff; flex-shrink: 0; }
.nav-link-top {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}
.nav-link-bottom {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

/* Cart link */
.nav-cart-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  color: #ffffff;
}
.nav-cart-link:hover { background: rgba(255,255,255,0.1); color: #ffd814; }
.nav-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  background: #ffd814;
  color: #0f1111;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Fly-to-cart arrival animations */
@keyframes cartBadgePulse {
  0%   { transform: scale(1);   background: #ffd814; }
  35%  { transform: scale(1.55); background: #15803d; color: #fff; }
  70%  { transform: scale(0.92); background: #15803d; color: #fff; }
  100% { transform: scale(1);   background: #ffd814; color: #0f1111; }
}
.cart-badge-pulse {
  animation: cartBadgePulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cartIconBump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px) rotate(-8deg); }
  60%  { transform: translateY(2px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}
.cart-icon-bump svg {
  animation: cartIconBump 0.45s ease-out;
}
.nav-cart-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: #ffffff;
}

.account-link-box {
  position: relative;
  min-width: 0;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 286px;
  background: #ffffff;
  color: #0f1111;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 17, 17, 0.24);
  padding: 1rem;
  display: none;
  z-index: 320;
  cursor: default;
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 34px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #d5d9d9;
  border-top: 1px solid #d5d9d9;
  transform: rotate(45deg);
}

.account-link-box:hover .account-dropdown,
.account-link-box:focus-within .account-dropdown,
.account-link-box.dropdown-pinned .account-dropdown {
  display: block;
}

.dropdown-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dropdown-link-item {
  display: block;
  padding: 0.45rem 0.25rem;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.25;
  border-radius: 4px;
  text-decoration: none;
}

.dropdown-link-item:hover,
.dropdown-link-item.active {
  background: #f8fafc;
  color: #c45500;
  text-decoration: none;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 17, 17, 0.58);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 92px 1rem 1rem;
}

.auth-modal-backdrop.open {
  display: flex;
}

.auth-modal-card {
  width: min(430px, 100%);
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(15, 17, 17, 0.32);
  padding: 1.25rem;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #d5d9d9;
  border-radius: 50%;
  background: #ffffff;
  color: #565959;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-modal-close:hover {
  background: #f0f2f2;
  color: #0f1111;
}

.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #565959;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.auth-modal-title {
  margin: 0 0 0.25rem;
  color: #0f1111;
  font-size: 1.45rem;
  line-height: 1.2;
}

.auth-modal-subtitle {
  color: #565959;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.auth-admin-hint {
  background: #fff8e1;
  border: 1px solid #fcd34d;
  color: #7c2d12;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.25rem;
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 7px;
  margin-bottom: 1rem;
}

.auth-tab {
  border: none;
  background: transparent;
  color: #565959;
  border-radius: 5px;
  padding: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: #0f1111;
  box-shadow: 0 1px 4px rgba(15, 17, 17, 0.12);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: #0f1111;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-field input {
  height: 38px;
  border: 1px solid #a6a6a6;
  border-radius: 4px;
  padding: 0 0.65rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
}

.auth-field input:focus {
  border-color: #e77600;
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.35);
}

.auth-submit-btn {
  height: 44px;
  border-radius: 999px;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ── TEMU-style social one-tap auth buttons ── */
.auth-social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0.5rem 0 1.1rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e6e8eb;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f1111;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  width: 100%;
}

.auth-social-btn:hover {
  border-color: #0f1111;
  background: #f7f8fa;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

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

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

.auth-social-btn span {
  flex: 1;
  text-align: center;
  margin-right: 20px; /* visually balance the icon's width on the left */
}

.auth-social-apple {
  background: #0f1111;
  color: #ffffff;
  border-color: #0f1111;
}

.auth-social-apple:hover {
  background: #1f2528;
  border-color: #1f2528;
  color: #ffffff;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0 1.1rem;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e6e8eb;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-status {
  min-height: 18px;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-status.error {
  color: #b12704;
}

.auth-status.success {
  color: #007600;
}

.auth-footnote {
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.35;
  margin-top: 0.45rem;
}

@media (max-width: 860px) {
  header {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
  }

  /* Row 1: logo | deliver-pin | right-nav */
  .nav-deliver-pin { display: none; }
  .nav-icon-btn { display: none; }
  .nav-cart-link { display: none; }

  /* Row 2: search bar full width */
  .nav-search-bar {
    order: 3;
    flex-basis: 100%;
    height: 40px;
  }

  .nav-right-links { margin-left: auto; }

  .subnav-bar { top: 108px; }
  .subnav-static { display: none; }
}

@media (max-width: 560px) {
  .logo-b2b-badge,
  .lang-switcher {
    display: none;
  }

  .nav-link-box {
    padding: 5px 8px;
  }

  .account-link-box {
    min-width: 0;
  }

  .account-dropdown {
    position: fixed;
    top: 60px;
    right: 0.65rem;
    left: 0.65rem;
    width: auto;
  }

  .auth-modal-backdrop {
    padding-top: 76px;
  }

  .auth-modal-card {
    max-height: calc(100vh - 92px);
  }

  .subnav-bar {
    top: 106px;
  }
}

/* Amazon Sub-navigation Bar (1:1) */
.subnav-bar {
  background-color: #1a2332;
  height: 40px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 64px; /* directly below 64px header */
  z-index: 99;
  overflow: hidden;
}

/* Static B2B nav links */
.subnav-static {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 0.5rem;
  margin-left: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.subnav-static-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  display: block;
  transition: all 0.12s;
}
.subnav-static-link:hover {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
  text-decoration: none;
}

.subnav-menu-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.subnav-menu-btn:hover {
  border-color: #ffffff;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
}

.subnav-tab {
  background: none;
  border: 1px solid transparent;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.subnav-tab:hover {
  border-color: #ffffff;
}
.subnav-tab.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  font-weight: 600;
}

/* =====================================================================
   HERO — sourcing trust banner
   ===================================================================== */
.hero {
  background:
    linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 430px;
  padding: 3.25rem 1.5rem;
  gap: 3rem;
}

/* Left: text + pillars */
.hero-text-side {
  flex: 1 1 54%;
  max-width: 760px;
}

.hero-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fef9c3;
  border: 1px solid #fef08a;
  border-radius: 99px;
  padding: 7px 16px 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a16207;
  margin-bottom: 1.05rem;
}
.hero-verified-badge svg { color: #ca8a04; flex-shrink: 0; }

.hero-title {
  font-size: 2.65rem;
  font-weight: 900;
  color: #0f1111;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  max-width: 700px;
  font-size: 1.03rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.hero-pillars {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero-pillar {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex: 1 1 185px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.hero-pillar-icon {
  width: 38px;
  height: 38px;
  background: #ffd814;
  color: #0b0f19;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(255, 216, 20, 0.3);
}
.hero-pillar-title {
  font-size: 0.9rem;
  font-weight: 850;
  color: #0f1111;
  line-height: 1.25;
}
.hero-pillar-sub {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin-top: 0.18rem;
}

/* Right: product lifestyle image */
.hero-image-side {
  flex: 1 1 46%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 320px;
  max-height: 370px;
  box-shadow: 0 22px 48px rgba(15, 17, 17, 0.14);
}
.hero-image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.15), rgba(11, 15, 25, 0.03) 42%, transparent);
  pointer-events: none;
}
.hero-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Slider arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f1111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 5;
  transition: background 0.15s;
  padding-bottom: 2px;
}
.hero-arrow:hover { background: #ffffff; }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.15s;
}
.hero-dot.active { background: #0f1111; }

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; padding: 1.35rem 1rem 2.15rem; gap: 1rem; min-height: auto; }
  .hero-text-side, .hero-image-side { flex: 1 1 100%; max-height: none; }
  .hero-image-side { min-height: 170px; max-height: 190px; width: 100%; }
  .hero-verified-badge { margin-bottom: 0.7rem; font-size: 0.68rem; }
  .hero-title { font-size: 1.58rem; line-height: 1.14; margin-bottom: 0.65rem; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.52; margin-bottom: 1rem; }
  .hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .hero-pillar { flex-basis: auto; flex-direction: column; gap: 0.5rem; padding: 0.68rem; }
  .hero-pillar-icon { width: 32px; height: 32px; font-size: 0.68rem; }
  .hero-pillar-title { font-size: 0.78rem; }
  .hero-pillar-sub { font-size: 0.68rem; line-height: 1.25; }
}

@media (max-width: 520px) {
  .hero-pillars { grid-template-columns: 1fr; }
  .hero-pillar { flex-direction: row; align-items: flex-start; }
}

/* =====================================================================
   CATEGORY BROWSE GRID — 4×2 static layout, beautiful gradient placeholders
   ===================================================================== */
.category-browse-section {
  background: #ffffff;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 6px solid #f5f5f5;
}
.category-browse-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}
.category-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 0.85rem 0.85rem 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(240, 136, 4, 0.25);
}
.category-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 216, 20, 0.4);
}

/* ── Full background-image card variant ── */
.category-card--bg-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  min-height: 270px;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
/* Dark gradient overlay so text is always readable */
.category-card--bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.category-card--bg-img::after {
  z-index: 2;
}
.category-card--bg-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.category-card--bg-img:hover::after {
  box-shadow: inset 0 0 0 1px rgba(240, 136, 4, 0.25);
}
/* Inner wrapper for content */
.category-card-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem 1rem 0.9rem;
  flex: 1;
}
/* Override text colours for bg-img cards */
.category-card--bg-img .category-name {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.category-card--bg-img .category-view-more {
  color: #ffd814;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  font-weight: 700;
}
.category-card--bg-img .category-view-more .arrow {
  color: #ffd814;
}
.category-card--bg-img:hover .category-view-more {
  color: #ffe566;
}



.category-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.7rem;
}
/* Reserve space when "Top in Germany" badge is present */
.category-card:has(.category-top-de-badge) .category-card-head {
  padding-right: 6.5rem;
}
.category-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.67rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* Pastel circle palette */
.category-num-1 { background: linear-gradient(135deg, #FFA48F 0%, #FF7A65 100%); }
.category-num-2 { background: linear-gradient(135deg, #F8B3CC 0%, #EE8AB1 100%); }
.category-num-3 { background: linear-gradient(135deg, #8FDCE0 0%, #67C4C9 100%); }
.category-num-4 { background: linear-gradient(135deg, #91C4F7 0%, #6AA6E8 100%); }
.category-num-5 { background: linear-gradient(135deg, #C2B0E6 0%, #9F88D1 100%); }
.category-num-6 { background: linear-gradient(135deg, #FFC58A 0%, #FFA859 100%); }
.category-num-7 { background: linear-gradient(135deg, #A4D5B4 0%, #7BBE92 100%); }
.category-num-8 { background: linear-gradient(135deg, #A4C0DF 0%, #7A9CC5 100%); }

.category-name {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.1px;
}

/* Beautiful gradient placeholder area (replaces images for now) */
.category-placeholder {
  height: 110px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-placeholder::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(20px);
  pointer-events: none;
}
.category-placeholder::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(18px);
  pointer-events: none;
}
.category-card:hover .category-placeholder { transform: none; }

/* Real photo variant — overrides fixed height & clip from base class */
.category-placeholder--img {
  background: #f5ede2;
  padding: 0;
  height: auto !important;
  overflow: visible !important;
  align-items: stretch;
}
.category-placeholder--img::before,
.category-placeholder--img::after { display: none; }
.category-bg-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transform: none;
  transition: none;
}
.category-card:hover .category-bg-img,
.category-card:hover .category-img-thumb {
  transform: none;
}
.category-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.65rem 0 0.8rem;
}
.category-img-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  transform: none;
  transition: none;
}
.category-img-placeholder {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}


/* Tinted gradients matching each number color */
.placeholder-tone-1 { background: linear-gradient(135deg, #fff0eb 0%, #ffd9cd 100%); }
.placeholder-tone-2 { background: linear-gradient(135deg, #fdebf3 0%, #fbd3e2 100%); }
.placeholder-tone-3 { background: linear-gradient(135deg, #e8f7f8 0%, #c8ebed 100%); }
.placeholder-tone-4 { background: linear-gradient(135deg, #e8f1fc 0%, #c8def5 100%); }
.placeholder-tone-5 { background: linear-gradient(135deg, #f0eaf8 0%, #ddd0ee 100%); }
.placeholder-tone-6 { background: linear-gradient(135deg, #fff2e2 0%, #ffdcb8 100%); }
.placeholder-tone-7 { background: linear-gradient(135deg, #eaf5ee 0%, #cce7d6 100%); }
.placeholder-tone-8 { background: linear-gradient(135deg, #eaf0f7 0%, #cddae8 100%); }

.category-emoji {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.10));
  position: relative;
  z-index: 1;
}

.category-view-more {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  color: #007185;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color 0.15s;
}
.category-view-more .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.category-card:hover .category-view-more { color: #c45500; }
.category-card:hover .category-view-more .arrow { transform: translateX(4px); }

/* "Top in Germany" badge */
.category-top-de-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0f1111;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  z-index: 2;
}

@media (max-width: 1200px) {
  .category-browse-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
}
@media (max-width: 900px) {
  .category-browse-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .category-placeholder { height: 100px; }
  .category-emoji { font-size: 2.2rem; }
}
@media (max-width: 600px) {
  .category-browse-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .category-placeholder { height: 90px; }
  .category-emoji { font-size: 2rem; }
}
@media (max-width: 420px) {
  .category-browse-grid { gap: 0.5rem; }
  .category-card { padding: 0.75rem; }
  .category-name { font-size: 0.8rem; }
  .category-placeholder { height: 80px; }
  .category-emoji { font-size: 1.8rem; }
  .category-num { width: 28px; height: 28px; font-size: 0.65rem; }
}

/* =====================================================================
   CATALOG SECTION HEADER — sits above the product grid
   ===================================================================== */
.catalog-section-header {
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #eaeded;
  padding-bottom: 0.75rem;
}
.catalog-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f1111;
  margin: 0;
}
.catalog-section-sub {
  font-size: 0.88rem;
  color: #565959;
}

.catalog-container {
  max-width: 1500px;
  margin: 0 auto 3.5rem auto;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  z-index: 10;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 per row on small tablets */
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on medium screens */
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr); /* 6 per row on large desktops! */
    gap: 0.75rem;
  }
  
  .product-card {
    padding: 0.75rem !important; /* tighter padding for 6 cols */
  }
  
  .product-title {
    font-size: 0.82rem !important; /* slightly smaller font to fit nicely */
    height: 2.3rem !important;
  }
  
  .product-price-row .product-price {
    font-size: 1.35rem !important; /* adjust price scale for 6 cols */
  }
}

/* Premium 1:1 Flat White Amazon Product Card Overhaul */
.product-card {
  background-color: var(--bg-white);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(240, 136, 4, 0.25); /* Elegant amber border glow */
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
}

/* ChinaSend brand badge — matches the topbar logo design exactly:
   Topbar B2B Obsidian Blue background, white "China" + golden-yellow "Send" */
.card-badge.brand-chinasend {
  background: #0b0f19;
  border: 1px solid rgba(255, 216, 20, 0.25);
  box-shadow: 0 2px 8px rgba(11, 15, 25, 0.15);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -0.3px;
  padding: 4px 10px;
  color: #ffffff;
  border-radius: 4px;
}
.card-badge.brand-chinasend span {
  color: #ffd814;
  margin-left: 1px;
}

/* Secondary status badge — sits BELOW the brand badge so brand stays the top-left identity */
.card-status-badge {
  position: absolute;
  top: 38px;  /* below the .card-badge brand */
  left: 10px;
  z-index: 9;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.2px;
}
.card-status-badge.sold-out {
  background: #6b7280;
}
.card-status-badge.expires-soon {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Premium Favorite Heart button on product cards */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0;
}

.favorite-btn .heart-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(15, 23, 42, 0.45);
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.favorite-btn:hover {
  transform: scale(1.15);
  background: #ffffff;
  border-color: rgba(255, 216, 20, 0.6);
}

.favorite-btn:hover .heart-icon {
  stroke: #ffa41c; /* warm orange hover outline */
}

.favorite-btn.active {
  background: #ffffff;
  border-color: #ffd814;
  box-shadow: 0 2px 10px rgba(255, 216, 20, 0.3);
}

.favorite-btn.active .heart-icon {
  fill: #ffd814; /* Brand gold yellow */
  stroke: #ffd814;
  stroke-width: 1px;
  filter: drop-shadow(0 1px 3px rgba(255, 216, 20, 0.5));
}

/* Micro-Pulse click animation */
@keyframes heartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.favorite-btn.pulse .heart-icon {
  animation: heartPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img-wrapper {
  aspect-ratio: 1;
  width: 100%;
  background: #f8fafc; /* Premium light grey-blue canvas */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
  padding: 0;
  transition: background 0.3s ease;
}
.product-card:hover .product-img-wrapper {
  background: #f1f5f9;
}
.product-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  mix-blend-mode: normal;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
  transform: scale(1.04); /* micro zoom effect */
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.product-card:hover .product-title {
  color: var(--amazon-link);
}

.product-price-row {
  margin-top: auto;
  border-top: 1px solid #f3f3f3;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-price-label {
  font-size: 0.7rem;
  color: var(--text-gray);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amazon-price);
}
.product-price::before {
  content: '€';
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 1px;
}

.product-stock {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amazon-green);
  margin-top: 2px;
}
.product-stock.low {
  color: var(--amazon-price);
}

/* 1:1 Amazon Product Details Viewport */
.back-link-bar {
  max-width: 1400px;
  margin: 1.25rem auto 0 auto;
  padding: 0 1.25rem;
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 0.75rem;
}

.back-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amazon-link);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-details-container {
  max-width: 1400px;
  margin: 1.5rem auto 4rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  animation: fadeIn 0.15s ease-out;
}

@media (min-width: 768px) {
  .product-details-container {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .product-details-container {
    grid-template-columns: 0.95fr 1.15fr 0.9fr;
  }
}

.details-image-panel {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: sticky;
  top: 120px; /* stick beautifully below sticky headers */
  align-self: start; /* CRITICAL: keeps container at its own height so position sticky works inside grid! */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .details-image-panel {
    max-width: 480px; /* broadened premium focal display */
  }
}

.details-large-img-box {
  width: 100%;
  aspect-ratio: 1; /* perfect square frame box */
  background: #ffffff;
  border: none;
  border-radius: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

.details-large-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border-radius: inherit;
  display: block;
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .details-large-img-box {
    max-height: 420px; /* maximized height on larger screens */
  }
}

.details-thumbnails-gallery {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  background: var(--bg-white);
}

.details-thumbnails-gallery:empty {
  display: none;
  padding: 0;
}

.details-thumb-item {
  width: 42px;
  height: 42px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease-in-out;
  object-fit: contain;
}

.details-thumb-item:hover {
  border-color: #e77600;
  box-shadow: 0 0 2px 1px rgba(228,121,17,0.3);
}

.details-thumb-item.active {
  border-color: #e77600;
  box-shadow: 0 0 3px 1px rgba(228,121,17,0.5);
}

/* Column 2: Info details panel */
.details-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.details-breadcrumb-trail {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0.1rem;
}
.details-breadcrumb-trail a {
  color: var(--amazon-link);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.details-breadcrumb-trail a:hover {
  color: #ffa41c; /* elegant warm gold-yellow hover */
  text-decoration: underline;
}
.details-breadcrumb-separator {
  margin: 0 4px;
  color: var(--text-gray);
  font-weight: normal;
}

.details-title {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  color: #0f1111;
  margin-bottom: 0.2rem;
}

/* ============================================================
   CHINA FACTORY DIRECT — Trust banner on product detail page.
   Reinforces "factory direct shipping from China" positioning.
   ============================================================ */
.china-factory-banner {
  margin: 1.5rem 0 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 249, 255, 0.56) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--amazon-link-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.04);
  transition: var(--transition-fast);
}
.china-factory-banner:hover {
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.08);
  border-color: var(--amazon-link);
}

.china-factory-headline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #c45500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.china-flag-inline-logo {
  height: 0.95em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-right: 5px;
  position: relative;
  top: -1px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.china-factory-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.china-factory-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.china-factory-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.china-factory-svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.china-factory-pillar:hover .china-factory-svg {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 4px 10px rgba(255, 164, 28, 0.45));
}

.china-factory-img-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: none;
  box-shadow: none;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.china-factory-pillar:hover .china-factory-img-icon {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.35));
}

.china-factory-pillar-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f1111;
  margin-bottom: 0.2rem;
}

.china-factory-pillar-desc {
  font-size: 0.78rem;
  color: #565959;
  line-height: 1.35;
}

/* Inline highlight used for "Send from China factory" in the specs table
   and "China Factory" in the buybox — bold + warm accent color. */
.china-factory-highlight {
  color: #c45500 !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .china-factory-pillars {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.details-brand-link {
  font-size: 0.8rem;
  color: var(--amazon-link);
  margin-bottom: 0.2rem;
}

/* Fake Amazon Ratings & Stars */
.details-review-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--amazon-link);
  margin-bottom: 0.3rem;
}
.stars-active {
  color: #ffa41c; /* Amazon Gold Star Color */
  font-size: 1rem;
  letter-spacing: -1px;
}
.rating-count {
  color: var(--amazon-link);
  cursor: pointer;
}
.rating-count:hover {
  color: #c45500;
  text-decoration: underline;
}

/* Fake Amazon Badges */
.details-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
}
.bestseller-badge {
  background-color: #c45500;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
}
.choice-badge {
  background-color: #232f3e;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 400;
}
.choice-badge span {
  color: #ffa41c;
  font-weight: 700;
}

.details-divider {
  height: 1px;
  background-color: #e7e7e7;
  margin: 0.4rem 0;
}

.details-price-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.details-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.details-price-label {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.details-price-val {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--amazon-price);
}
.details-price-val::before {
  content: '€';
  font-size: 1.15rem;
  font-weight: 500;
  margin-right: 1px;
}

/* Discount row calculations */
.details-discount-row {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 2px;
}
.savings-highlight {
  color: var(--amazon-price);
  font-weight: 600;
}

.details-tax-info {
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* Specifications Table (1:1 Amazon layout) */
.details-specs-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.details-specs-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1111;
}

.details-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px; /* modern row gaps */
  margin-bottom: 0.25rem;
}
.details-specs-table tr {
  transition: var(--transition-fast);
}
.details-specs-table tr:nth-child(even) {
  background-color: #f8fafc; /* high-end zebra striping */
}
.details-specs-table tr:hover {
  background-color: #f1f5f9;
}
.details-specs-table td {
  padding: 8px 14px;
  border-bottom: none;
  font-size: 0.85rem;
}
.details-specs-table td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.details-specs-table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.details-specs-key {
  font-weight: 600;
  color: var(--text-gray);
  width: 150px;
}
.details-specs-val {
  color: var(--text-dark);
  font-weight: 500;
}

.details-specs-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.details-specs-item {
  font-size: 0.85rem;
  color: #0f1111;
  line-height: 1.45;
}

.details-buybox-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 120px; /* match image panel sticky height below sticky subnav */
  align-self: start; /* CRITICAL: keeps buybox at its own height so it sticks inside grid! */
  transition: var(--transition-fast);
}
.details-buybox-panel:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 23, 42, 0.1);
}

.buybox-price {
  font-size: 1.8rem;
  font-weight: 500;
  color: #0f1111;
}
.buybox-price::before {
  content: '€';
  font-size: 1.1rem;
  margin-right: 1px;
}

.buybox-delivery {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.4;
}
.buybox-delivery span {
  color: #0f1111;
  font-weight: 700;
}

.buybox-stock-status {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--amazon-green);
}
.buybox-stock-status.low {
  color: var(--amazon-price);
}

.buybox-meta-table {
  font-size: 0.75rem;
  color: var(--text-gray);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.35rem;
  border-top: 1px solid #f3f3f3;
  padding-top: 0.75rem;
}
.buybox-meta-val {
  color: #0f1111;
  font-weight: 500;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--amazon-link);
}

/* Sticky Floating WhatsApp Widget Wrapper */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999; /* Ensure it floats above EVERYTHING */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  cursor: pointer;
}

/* Official WhatsApp brand-logo FAB — 50px, the SVG itself is the green circle */
.whatsapp-circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.35s ease;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35),
              0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Soft pulsing ring — gentle attention without being noisy */
.whatsapp-circle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: whatsappPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-widget:hover .whatsapp-circle-btn {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55),
              0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-widget:active .whatsapp-circle-btn {
  transform: translateY(-1px) scale(0.96);
}

.whatsapp-icon {
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.whatsapp-widget:hover .whatsapp-icon {
  transform: rotate(8deg);
}

/* Seller Central Admin panel Overhauls */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #19222d;
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.admin-sidebar .logo-text {
  color: #fff;
}

.admin-main {
  flex-grow: 1;
  padding: 2rem;
  background-color: #eaeded;
  overflow-y: auto;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-item {
  background: none;
  border: none;
  color: #b8c1ca;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-item.active {
  border-left: 4px solid var(--amazon-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-value.teal {
  color: var(--amazon-green);
}

.stat-value.purple {
  color: var(--amazon-orange);
}

.panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.panel.active {
  display: block;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: block;
}

textarea.form-control, input.form-control, select.form-control {
  background: #ffffff;
  border: 1px solid #a6a9a9;
  border-radius: 3px;
  color: var(--text-dark);
  padding: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) inset;
}

textarea.form-control:focus, input.form-control:focus, select.form-control:focus {
  border-color: #e77600;
  box-shadow: 0 0 3px 2px rgba(228,121,17,.5);
}

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

.drag-drop-zone {
  border: 2px dashed #a6a9a9;
  border-radius: 4px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: var(--transition-fast);
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
  border-color: var(--amazon-orange);
  background: #fdfaf6;
}

.drag-icon {
  font-size: 2rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  background: #f0f2f2;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid #d5d9d9;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  vertical-align: middle;
}

.td-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 320px;
}

.td-product-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 2px;
}

.td-product-title {
  font-weight: 600;
  color: var(--amazon-link);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-product-asin {
  font-size: 0.7rem;
  color: var(--text-gray);
}

.table-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.table-badge.active {
  background-color: #e2f0d9;
  color: #385723;
}

.table-badge.expired {
  background-color: #f2f2f2;
  color: #595959;
}

.table-badge.sold-out {
  background-color: #fce4d6;
  color: #c65911;
}

.inline-input {
  border: 1px solid #d5d9d9;
  border-radius: 3px;
  padding: 4px 6px;
  width: 75px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  outline: none;
}
.inline-input:focus {
  border-color: #e77600;
}

.inline-date {
  border: 1px solid #d5d9d9;
  border-radius: 3px;
  padding: 4px 6px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  outline: none;
}

.category-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.category-pill-item {
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-pill-delete {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-weight: 700;
}

.category-pill-delete:hover {
  color: var(--amazon-price);
}

.action-alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  display: none;
}

.action-alert.success {
  background-color: #e2f0d9;
  border: 1px solid #385723;
  color: #385723;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.w-100 { width: 100%; }
.d-flex { display: flex; }
.gap-md { gap: 1rem; }

/* Responsive adapt */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ============================================================
   BATCH SELECTION — Checkboxes & Selected Row Highlight
   ============================================================ */

/* Checkbox column header/cell */
th.th-check, td.td-check {
  width: 40px;
  text-align: center;
  padding: 0.5rem 0.4rem;
}

/* Custom checkbox styling */
.row-check, .check-all {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e77600;
}

/* Selected row gets a warm amber tint */
tr.row-selected {
  background-color: #fff8f0 !important;
  outline: 1px solid #e77600;
  outline-offset: -1px;
}
tr.row-selected td {
  border-bottom-color: #f5cfa0;
}

/* ============================================================
   BULK ACTION TOOLBAR — sticky floating bar above the table
   ============================================================ */
.bulk-toolbar {
  display: none;                       /* hidden until rows are selected */
  align-items: center;
  gap: 0.75rem;
  background: #131921;
  color: #fff;
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideDown 0.18s ease;
  flex-wrap: wrap;
}
.bulk-toolbar.visible {
  display: flex;
}

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

.bulk-count {
  color: #ffd814;
  margin-right: 0.25rem;
}

.bulk-toolbar .bulk-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.bulk-toolbar .bulk-btn:hover {
  background: rgba(255,255,255,0.2);
}
.bulk-toolbar .bulk-btn.danger {
  border-color: #f87171;
  color: #fca5a5;
}
.bulk-toolbar .bulk-btn.danger:hover {
  background: rgba(239,68,68,0.25);
}
.bulk-toolbar .bulk-btn.primary {
  background: #ffd814;
  border-color: #ffd814;
  color: #111;
}
.bulk-toolbar .bulk-btn.primary:hover {
  background: #f5c518;
}

/* Deselect-all text link */
.bulk-clear {
  color: #a8bbbf;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  text-decoration: underline;
}
.bulk-clear:hover { color: #fff; }

/* ============================================================
   BATCH EDIT MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  animation: slideDown 0.2s ease;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-gray);
  line-height: 1;
}
.modal-close:hover { color: var(--text-dark); }

.modal-field {
  margin-bottom: 1.1rem;
}
.modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.modal-field input,
.modal-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  box-sizing: border-box;
  outline: none;
  color: var(--text-dark);
}
.modal-field input:focus,
.modal-field select:focus {
  border-color: #e77600;
  box-shadow: 0 0 0 2px rgba(231,118,0,0.15);
}

.modal-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: flex-end;
}

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

/* Recommended Products Section Styles */
.recommended-products-section {
  border-top: 1px solid #e7e7e7;
  padding-top: 2rem;
  margin-top: 2.5rem;
  width: 100%;
}

.reco-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #c45500; /* standard Amazon header orange */
  margin-bottom: 1.2rem;
  font-family: var(--font-primary);
}

.reco-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

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

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

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

@media (min-width: 1300px) {
  .reco-products-grid {
    grid-template-columns: repeat(10, 1fr); /* 10 columns on large desktop viewports! */
  }
}

/* Proportional overrides for recommended grid cards to scale down heights cleanly */
.reco-products-grid .product-card {
  padding: 0.4rem 0.35rem !important;
  border-radius: 3px !important;
  gap: 0.2rem !important;
  min-height: auto !important;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.reco-products-grid .product-img-wrapper {
  aspect-ratio: 1 !important;
  height: auto !important;
  width: 100% !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0.25rem !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.reco-products-grid .product-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

.reco-products-grid .product-meta {
  margin-bottom: 3px !important;
}

.reco-products-grid .product-meta span {
  font-size: 0.65rem !important; /* tiny ASIN text */
}

.reco-products-grid .product-warehouse-tag {
  font-size: 0.6rem !important;
  padding: 1px 3px !important;
}

.reco-products-grid .card-badge {
  font-size: 0.58rem !important;
  padding: 1px 4px !important;
  top: 3px !important;
  left: 3px !important;
}

.reco-products-grid .product-title {
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  height: 1.8rem !important; /* constrained to exactly 2 lines of very compact text */
  margin-bottom: 3px !important;
}

.reco-products-grid .product-stock-row {
  margin-bottom: 3px !important;
}

.reco-products-grid .product-stock-row span {
  font-size: 0.7rem !important;
}

.reco-products-grid .product-stock {
  font-size: 0.7rem !important;
}

.reco-products-grid .product-price-row {
  padding-top: 0.25rem !important;
  margin-top: 0.15rem !important;
}

.reco-products-grid .product-price {
  font-size: 1.05rem !important;
}

.reco-products-grid .product-orig-price {
  font-size: 0.7rem !important;
  margin-left: 2px !important;
}

.reco-products-grid .btn-primary {
  margin-top: 0.4rem !important;
  font-size: 0.7rem !important;
  padding: 4px 6px !important;
  border-radius: 2px !important; /* flat sharp corners to fit Amazon look */
}

/* =====================================================================
   SITE FOOTER — multi-column with bottom dark brand band
   ===================================================================== */
.site-footer {
  margin-top: 4.5rem;
  background: linear-gradient(to bottom, #111827 0%, #070a13 100%);
  color: #d1d5db;
  font-family: var(--font-primary);
  border-top: 4px solid #ffd814;
}
.footer-columns {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.footer-col h4.footer-col-title {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #ffd814;
  border-radius: 1px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.65rem;
}
.footer-col li a {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
}
.footer-col li a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

/* Mid band: logo + region selectors */
.footer-brand-band {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #090d16;
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.footer-brand-band-inner {
  max-width: 1500px;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo .logo-icon {
  background: linear-gradient(135deg, #ffd814 0%, #f08804 100%);
  color: #0b0f19;
  font-weight: 800;
  padding: 0 6px;
  height: 24px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  box-shadow: 0 0 10px rgba(240, 136, 4, 0.35);
}
.footer-selectors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-lang-selector {
  display: flex;
  gap: 0.5rem;
}

.flag-selector-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px; /* modern slightly rounded geometric square */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  outline: none;
  overflow: hidden; /* crops flag perfectly into a geometric square */
}

.flag-selector-btn:hover {
  border-color: #ffd814;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 216, 20, 0.25);
}

.flag-selector-btn.active {
  border-color: #ffd814;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 216, 20, 0.4);
}

.flag-svg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* clips UK / DE flag mathematically into a 1:1 flat square */
  display: block;
}
.footer-selector-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #d1d5db;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-selector-btn:hover {
  border-color: #ffd814;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 216, 20, 0.2);
  color: #ffffff;
}

/* Bottom band: legal links + copyright */
.footer-bottom-band {
  background: #05070c;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-bottom-band-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.65rem;
}
.footer-bottom-links a {
  color: #6b7280;
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: #ffffff;
}
.footer-copyright {
  color: #4b5563;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-brand-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-columns { grid-template-columns: 1fr; }
}

/* =====================================================================
   BACK TO TOP button — appears after scroll, full-width bar above footer
   ===================================================================== */
.back-to-top-btn {
  display: none;
  width: 100%;
  background: #37475a;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.back-to-top-btn.visible {
  display: block;
}
.back-to-top-btn:hover {
  background: #485769;
}

/* =====================================================================
   INFO / FOOTER SUBPAGES
   ===================================================================== */
body.info-page {
  background: #f6f7f9;
  color: #111827;
  font-family: var(--font-primary);
}

.info-header {
  min-height: 64px;
  background: #0b0f19;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.info-logo {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.info-logo span {
  color: #ffd814;
}

.info-logo:hover {
  color: #ffffff;
  text-decoration: none;
}

.info-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-nav a {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.info-nav a:hover {
  color: #ffd814;
  text-decoration: none;
}

.info-hero {
  background:
    linear-gradient(180deg, rgba(11, 15, 25, 0.3), rgba(11, 15, 25, 0.94)),
    linear-gradient(135deg, #111827 0%, #0b0f19 55%, #1f2937 100%);
  color: #ffffff;
  border-bottom: 4px solid #ffd814;
}

.info-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
}

.info-eyebrow {
  color: #ffd814;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.info-hero h1 {
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0;
}

.info-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.info-promise-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.info-promise-row span {
  border: 1px solid rgba(255, 216, 20, 0.28);
  background: rgba(255, 216, 20, 0.09);
  color: #fef3c7;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.info-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.info-sidebar {
  position: sticky;
  top: 86px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.info-side-link {
  display: block;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.info-side-link:hover,
.info-side-link.active {
  background: #fff7ed;
  color: #92400e;
  text-decoration: none;
}

.info-content {
  min-width: 0;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-mini-card,
.info-section,
.info-cta {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.info-mini-card {
  padding: 1rem;
}

.info-mini-card h3 {
  color: #111827;
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}

.info-mini-card p {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.info-section {
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.info-section h2 {
  color: #111827;
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.info-section p,
.info-section li {
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.75;
}

.info-section ul {
  padding-left: 1.15rem;
  margin: 0.35rem 0 0;
}

.info-section li {
  margin-bottom: 0.45rem;
}

.info-cta {
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 20, 0.16), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border-color: rgba(217, 119, 6, 0.2);
}

.info-cta h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.info-cta p {
  color: #64748b;
  line-height: 1.6;
  max-width: 680px;
}

.info-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .info-header,
  .info-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-shell {
    grid-template-columns: 1fr;
  }

  .info-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .info-nav {
    gap: 0.65rem;
  }

  .info-card-grid,
  .info-sidebar {
    grid-template-columns: 1fr;
  }

  .info-cta .btn-primary {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .subnav-bar {
    top: 106px;
  }
}

/* =====================================================================
   ADMIN REDESIGN — calm, dense, modern management workspace
   ===================================================================== */
body.admin-page {
  --admin-ink: #111827;
  --admin-muted: #64748b;
  --admin-soft: #f6f7f9;
  --admin-line: #e5e7eb;
  --admin-card: #ffffff;
  --admin-accent: #d97706;
  --admin-accent-dark: #92400e;
  --admin-green: #047857;
  --admin-red: #b91c1c;
  --admin-sidebar: #111111;
  --admin-sidebar-2: #181818;
  --accent-teal: #047857;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  background: var(--admin-soft);
  color: var(--admin-ink);
}

.admin-page .admin-layout {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--admin-soft) 42%);
}

.admin-page .admin-sidebar {
  width: 292px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24rem),
    var(--admin-sidebar);
  color: #ffffff;
  padding: 1.25rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
  padding: 1rem;
}

.admin-brand-logo {
  display: inline-flex;
  text-decoration: none;
}

.admin-brand-logo:hover {
  text-decoration: none;
}

.admin-page .admin-sidebar .logo-text {
  color: #ffffff;
  font-size: 1.35rem;
}

.admin-brand-subtitle {
  margin-top: 0.35rem;
  color: #a3a3a3;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-owner-badge {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.24);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-nav-label {
  padding: 0.35rem 0.55rem 0;
  color: #737373;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page .sidebar-menu {
  gap: 0.35rem;
}

.admin-page .sidebar-item {
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #d4d4d4;
  font-size: 0.9rem;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.admin-page .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-page .sidebar-item.active {
  padding-left: 0.65rem;
  border-left: 1px solid rgba(251, 191, 36, 0.32);
  border-color: rgba(251, 191, 36, 0.24);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0.06));
  color: #ffffff;
}

.sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 900;
  flex-shrink: 0;
}

.admin-page .sidebar-item.active .sidebar-icon {
  background: #fbbf24;
  color: #111111;
}

.admin-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.admin-sidebar-note {
  color: #a3a3a3;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.admin-storefront-link {
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}

.admin-storefront-link:hover {
  color: #111111;
  text-decoration: none;
  background: #fbbf24;
}

.admin-page .admin-main {
  min-width: 0;
  background: transparent;
  padding: 1.25rem clamp(1rem, 2.4vw, 2.5rem) 2.5rem;
}

.admin-topbar {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 0;
}

.admin-kicker {
  color: var(--admin-accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.admin-page-title {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--admin-ink);
  margin: 0;
}

.admin-page-subtitle {
  color: var(--admin-muted);
  font-size: 0.95rem;
  margin-top: 0.55rem;
  max-width: 620px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-page .btn-primary,
.admin-page .btn-secondary {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-page .btn-primary {
  background: #fbbf24;
  border-color: #b45309;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.16);
}

.admin-page .btn-primary:hover {
  background: #f59e0b;
}

.admin-page .btn-secondary {
  background: #ffffff;
  border-color: var(--admin-line);
  color: var(--admin-ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.admin-page .btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.admin-page .action-alert {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1200;
  margin: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
}

.admin-page .action-alert.success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.admin-page .panel {
  max-width: 1420px;
}

.admin-page .panel.active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.admin-page .panel-title {
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--admin-ink);
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  margin-top: 0.35rem;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-page .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page .stat-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 1.15rem;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.admin-page .stats-grid .stat-card {
  min-height: 142px;
  position: relative;
  overflow: hidden;
}

.admin-page .stats-grid .stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.08);
}

.stat-icon {
  width: fit-content;
  min-width: 42px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--admin-line);
  color: var(--admin-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.admin-page .stat-title {
  color: var(--admin-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.admin-page .stat-value {
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--admin-ink);
}

.admin-page .stat-value.teal,
.admin-page .stat-value[style*="accent-teal"] {
  color: var(--admin-green) !important;
}

.admin-page .stat-value.purple {
  color: var(--admin-accent) !important;
}

.stat-caption {
  color: var(--admin-red);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-guide-card {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0.86) 48%),
    #ffffff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.06);
  padding: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.admin-guide-card p {
  color: var(--admin-muted);
  font-size: 0.92rem;
  max-width: 760px;
  line-height: 1.65;
}

.admin-guide-eyebrow {
  color: var(--admin-accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 1rem;
}

.admin-page .stat-card .logo-container {
  border: 0 !important;
  border-bottom: 1px solid var(--admin-line) !important;
  border-radius: 0;
  padding: 0 0 0.75rem !important;
  cursor: default;
}

.admin-page .stat-card .logo-container:hover {
  background: transparent;
}

.admin-page .form-label {
  color: var(--admin-ink);
  font-size: 0.78rem;
}

.admin-page textarea.form-control,
.admin-page input.form-control,
.admin-page select.form-control,
.admin-page .modal-field input,
.admin-page .modal-field select,
.admin-page .inline-input,
.admin-page .inline-date {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: var(--admin-ink);
}

.admin-page textarea.form-control:focus,
.admin-page input.form-control:focus,
.admin-page select.form-control:focus,
.admin-page .modal-field input:focus,
.admin-page .modal-field select:focus,
.admin-page .inline-input:focus,
.admin-page .inline-date:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.admin-page textarea.form-control {
  min-height: 162px;
  line-height: 1.55;
}

.admin-page .drag-drop-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 2.1rem 1.2rem;
}

.admin-page .drag-drop-zone:hover,
.admin-page .drag-drop-zone.dragover {
  border-color: var(--admin-accent);
  background: #fff7ed;
}

.admin-page .table-wrapper {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.06);
  overflow: auto;
}

.admin-page table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.admin-page th {
  background: #fafafa;
  color: #475569;
  border-bottom: 1px solid var(--admin-line);
  padding: 0.82rem 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-page td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-page tbody tr {
  transition: background 0.15s ease;
}

.admin-page tbody tr:hover {
  background: #fffaf0;
}

.admin-page .td-product {
  gap: 0.75rem;
  max-width: 360px;
}

.admin-page .td-product-img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border-color: var(--admin-line);
  background: #f8fafc;
  padding: 4px;
}

.admin-page .td-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.admin-page .td-product-title {
  display: block;
  color: var(--admin-ink);
  max-width: 280px;
}

.admin-page .td-product-asin {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-page .admin-subcategory-label {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: #eef6f2;
  color: #166534;
  padding: 0.18rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-page .admin-import-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-page .category-sync-card {
  grid-column: 1 / -1;
}

.admin-page .admin-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-page .admin-taxonomy-card {
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.admin-page .admin-taxonomy-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.7rem;
  color: var(--admin-ink);
  font-weight: 850;
}

.admin-page .admin-taxonomy-head small {
  color: var(--admin-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-page .admin-taxonomy-group + .admin-taxonomy-group {
  margin-top: 0.65rem;
}

.admin-page .admin-taxonomy-group-title {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
}

.admin-page .admin-subcat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-page .admin-subcat-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-page .table-badge {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.admin-page .table-badge.active {
  background: #dcfce7;
  color: #166534;
}

.admin-page .table-badge.expired {
  background: #f1f5f9;
  color: #475569;
}

.admin-page .table-badge.sold-out {
  background: #ffedd5;
  color: #9a3412;
}

.admin-page .bulk-toolbar {
  background: #111111;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
}

.admin-page .bulk-toolbar .bulk-btn {
  border-radius: 7px;
}

.admin-row-actions {
  display: flex;
  gap: 0.45rem;
}

.admin-row-btn {
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: var(--admin-ink);
  padding: 0.25rem 0.58rem;
  font-family: var(--font-primary);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-row-btn:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent-dark);
  background: #fff7ed;
}

.admin-row-btn.danger {
  border-color: #fecaca;
  color: var(--admin-red);
  background: #fff7f7;
}

.admin-row-btn.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-page tr.row-selected {
  background: #fff7ed !important;
  outline: 1px solid var(--admin-accent);
}

.admin-page .category-manager {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.admin-page .category-pill-list {
  border-radius: 8px;
  border-color: var(--admin-line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  min-height: 156px;
}

.admin-page .category-pill-item {
  border-radius: 999px;
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--admin-ink);
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

.admin-page .modal-overlay {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.admin-page .modal-box {
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.28);
}

.admin-page .modal-title {
  border-bottom-color: var(--admin-line);
  color: var(--admin-ink);
}

@media (max-width: 1180px) {
  .admin-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-page .admin-layout {
    display: block;
  }

  .admin-page .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-page .sidebar-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-topbar-actions {
    justify-content: flex-start;
  }

  .admin-page .category-manager {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-import-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-page .admin-main {
    padding: 1rem;
  }

  .admin-page .sidebar-menu,
  .admin-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .admin-guide-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-guide-card .btn-primary,
  .admin-topbar-actions,
  .admin-topbar-actions .btn-primary,
  .admin-topbar-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .subnav-bar {
    top: 106px;
  }
}

/* =====================================================================
   SPA ANIMATIONS & DELIGHT ELEMENTS
   ===================================================================== */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#detailsViewport {
  animation: fadeInSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#catalogViewport {
  animation: fadeInSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =====================================================================
   HIDE STOCK & QUANTITY SELECTORS FROM CUSTOMERS
   ===================================================================== */
.product-stock-row {
  display: none !important;
}

.buybox-stock-status {
  display: none !important;
}

.dialog-qty-wrapper {
  display: none !important;
}

/* =====================================================================
   AMAZON PAGINATION SYSTEM
   ===================================================================== */
.s-pagination-container {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.s-pagination-strip {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #d5d9d9;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.s-pagination-item {
  background: #ffffff;
  border: none;
  border-right: 1px solid #d5d9d9;
  padding: 0 16px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f1111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  line-height: 1;
  transition: all 0.15s ease;
  text-decoration: none;
  outline: none;
}
.s-pagination-item:last-child {
  border-right: none;
}
.s-pagination-item:hover:not(.s-pagination-disabled):not(.s-pagination-selected) {
  background-color: #f7fafa;
  color: #0f1111;
  border-color: #d5d9d9;
}
.s-pagination-selected {
  background-color: #fffcf0 !important;
  color: #c45500 !important;
  font-weight: 700;
  cursor: default;
  border-top: 2px solid #ffd814;
  border-bottom: 2px solid #ffd814;
  box-sizing: border-box;
}
.s-pagination-disabled {
  color: #888888;
  background-color: #fcfcfc;
  cursor: not-allowed;
}
.s-pagination-ellipsis {
  color: #565959;
  cursor: default;
  background: #ffffff;
  min-width: 42px;
  padding: 0 10px;
}
.s-pagination-ellipsis:hover {
  background: #ffffff !important;
  color: #565959 !important;
}

/* =====================================================================
   PRODUCT CARD — BUY NOW + ADD TO CART BUTTON ROW
   ===================================================================== */
.card-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 1.1rem;
}

.btn-card-buynow,
.btn-card-addcart {
  flex: 1 1 0;
  height: 36px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: filter 0.12s ease, transform 0.08s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Buy Now — dark */
.btn-card-buynow {
  background: #0f1111;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn-card-buynow:hover {
  filter: brightness(1.18);
}
.btn-card-buynow:active {
  transform: scale(0.97);
  filter: brightness(0.92);
}

/* Add to Cart — yellow */
.btn-card-addcart {
  background: #ffd814;
  color: #0f1111;
  box-shadow: 0 2px 8px rgba(255,216,20,0.25);
}
.btn-card-addcart:hover {
  background: #f7ca00;
}
.btn-card-addcart:active {
  transform: scale(0.97);
  background: #f0c14b;
}

/* =====================================================================
   BUYBOX — Detail panel Add to Cart & Buy Now buttons
   ===================================================================== */
.btn-buybox-addcart,
.btn-buybox-buynow {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  transition: filter 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-buybox-addcart {
  background: linear-gradient(135deg, #ffd814 0%, #f0a800 100%);
  color: #0f1111;
  box-shadow: 0 3px 12px rgba(255,216,20,0.3);
}
.btn-buybox-addcart:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-buybox-addcart:active { transform: scale(0.98); }

.btn-buybox-buynow {
  background: #1a2332;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.btn-buybox-buynow:hover { filter: brightness(1.18); transform: translateY(-1px); }
.btn-buybox-buynow:active { transform: scale(0.98); }

/* Ensure <a> nav-cart-link renders same as div */
a.nav-cart-link {
  text-decoration: none;
  color: inherit;
}
a.nav-cart-link:hover {
  color: #ffd814;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ADVANCED B2B SOURCING FILTERS SIDEBAR
   ───────────────────────────────────────────────────────────────────────────── */
.btn-sourcing-filters {
  background: linear-gradient(135deg, #ffd814 0%, #f0a800 100%);
  color: #0b0f19;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255,216,20,0.25);
  transition: all 0.2s ease;
}
.btn-sourcing-filters:hover {
  filter: brightness(1.06);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(255,216,20,0.35);
}
.btn-sourcing-filters:active {
  transform: translateY(0);
}
.filters-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.filters-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}
.filters-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: #111827;
  color: #f3f4f6;
  z-index: 1001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.filters-sidebar.active {
  right: 0;
}
.filters-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a2332;
}
.filters-sidebar-header h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.filters-sidebar-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.filters-sidebar-close:hover {
  color: #ffffff;
}
.filters-sidebar-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}
.filter-group {
  margin-bottom: 1.75rem;
}
.filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd814;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.filter-moq-slider-wrap {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.filter-moq-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #ffd814;
}
.filter-moq-val-display {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 8px;
  color: #ffffff;
}
.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.15s;
}
.filter-checkbox-item input {
  accent-color: #ffd814;
}
.filter-checkbox-item:hover {
  background: rgba(255,255,255,0.07);
}
.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-price-inputs input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  outline: none;
  font-weight: 600;
}
.filter-price-inputs input:focus {
  border-color: #ffd814;
  box-shadow: 0 0 8px rgba(255,216,20,0.2);
}
.filter-price-inputs .range-sep {
  color: #6b7280;
  font-size: 0.85rem;
}
.filter-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-filter-reset {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-filter-reset:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.btn-filter-apply {
  background: linear-gradient(135deg, #ffd814, #f0a800);
  border: none;
  color: #0b0f19;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-filter-apply:hover {
  filter: brightness(1.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   STRIPE INTERACTIVE SIMULATED GATEWAY CARD STYLING
   ───────────────────────────────────────────────────────────────────────────── */
.stripe-secure-card-panel {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.stripe-logo-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}
.stripe-logo-txt {
  color: #635bff; /* Authentic Stripe indigo */
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.stripe-secure-badge {
  background: rgba(99,91,255,0.08);
  color: #635bff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.stripe-visual-card-preview {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 6px 16px rgba(15,23,42,0.15);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: all 0.3s;
}
.stripe-visual-card-preview.active-glow {
  box-shadow: 0 0 16px rgba(255,216,20,0.5);
  border: 1px solid rgba(255,216,20,0.4);
}
.stripe-card-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #ffe066 0%, #cca300 100%);
  border-radius: 4px;
}
.stripe-card-num-text {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
}
.stripe-card-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.stripe-card-holder-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
}
.stripe-card-exp-cvv {
  font-size: 0.78rem;
  font-family: monospace;
}
.stripe-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.stripe-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stripe-field.col-span-3 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.stripe-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.stripe-field input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: #1e293b;
  outline: none;
  font-weight: 600;
}
.stripe-field input:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 2px rgba(99,91,255,0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   B2B BUYER DASHBOARD & LOGISTICS TRANSIT TRACKER
   ───────────────────────────────────────────────────────────────────────────── */
.dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.dashboard-header-panel {
  background: linear-gradient(135deg, #1a2332 0%, #243044 100%);
  border-radius: 16px;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.dashboard-user-meta h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-user-meta h1 span {
  color: #ffd814;
}
.dashboard-corp-badge {
  background: rgba(255,216,20,0.15);
  border: 1px solid rgba(255,216,20,0.4);
  color: #ffd814;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.dashboard-corp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dashboard-corp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard-corp-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8892b0;
  text-transform: uppercase;
}
.dashboard-corp-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a2332;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-order-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #ececec;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.dashboard-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 10px;
}
.order-card-meta-left {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.order-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-meta-col label {
  font-size: 0.68rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
}
.order-meta-col span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}
.order-card-price-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #b12704;
}

.order-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}
.order-item-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
}
.order-item-mini-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-item-mini-qty {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Horizontal Logistics Step Tracker */
.dashboard-transit-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  position: relative;
  padding: 0 0.5rem;
}
.dashboard-transit-tracker::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.transit-progress-line {
  position: absolute;
  top: 14px;
  left: 0;
  height: 4px;
  background: #15803d;
  z-index: 2;
  transition: width 0.4s ease;
}
.transit-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
  flex: 1;
}
.transit-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 4px solid #fff;
}
.transit-step.active .transit-dot {
  background: #1a2332;
  color: #ffd814;
  border-color: #fff;
}
.transit-step.completed .transit-dot {
  background: #15803d;
  color: #fff;
  border-color: #fff;
}
.transit-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  text-transform: uppercase;
  max-width: 100px;
}
.transit-step.active .transit-lbl {
  color: #1a2332;
}
.transit-step.completed .transit-lbl {
  color: #15803d;
}

.order-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.85rem;
}
.btn-order-reorder {
  background: linear-gradient(135deg, #ffd814, #f0a800);
  border: none;
  color: #0b0f19;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-order-invoice {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-order-invoice:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

/* printable commercial invoice frame styling */
.printable-invoice-container {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  font-family: sans-serif;
  color: #333;
}
.invoice-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.invoice-logo-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a2332;
  margin: 0;
}
.invoice-logo-title h2 span {
  color: #f0a800;
}
.invoice-title-badge {
  font-size: 1.5rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}
.invoice-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.invoice-address-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 6px 0;
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 4px;
}
.invoice-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.invoice-details-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
}
.invoice-details-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #333;
}
.invoice-details-table .qty-cell { text-align: center; }
.invoice-details-table .price-cell { text-align: right; }
.invoice-summary-grid {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.invoice-summary-box {
  width: 260px;
  font-size: 0.85rem;
}
.invoice-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.invoice-summary-row.grand-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b12704;
  border-top: 2px solid #cbd5e1;
  padding-top: 10px;
  margin-top: 6px;
}
.invoice-footer-terms {
  border-top: 1px dashed #cbd5e1;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

/* Premium Sourcing Sorting Select Dropdown */
.catalog-sort-select {
  background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2332' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center;
  background-size: 14px;
  color: #1a2332;
  border: 1px solid #cbd5e1;
  padding: 8px 36px 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  height: 38px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

.catalog-sort-select:hover {
  border-color: #ffd814;
  background-color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.catalog-sort-select:focus {
  border-color: #ffd814;
  box-shadow: 0 0 0 3px rgba(255, 216, 20, 0.3), 0 2px 6px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

/* Subnavigation Hover Dropdown Styles */
.subnav-tab-wrapper {
  position: relative;
  display: inline-block;
}

/* Avoid clipping on desktop screens to allow dropdowns to hover outside */
@media (min-width: 1024px) {
  .subnav-bar {
    overflow: visible !important;
  }
  .subnav-links {
    overflow: visible !important;
    overflow-x: visible !important;
  }
}

/* Ensure the hover triggers the dropdown smoothly */
.subnav-tab-wrapper:hover .subnav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px); /* Leaving a tiny separation for aesthetics */
}

.subnav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 35, 50, 0.98); /* Obsidian Navy matches the theme! */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 20px;
  display: flex;
  gap: 30px;
  z-index: 10000; /* Float above the hero/grid */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 480px;
  backdrop-filter: blur(16px);
}

/* Invisible bridge to prevent mouseout on small gap between tab and dropdown */
.subnav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.subnav-dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.subnav-dropdown-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffd814; /* Brand Gold! */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 4px;
  text-align: left;
}

.subnav-dropdown-item {
  font-size: 0.82rem;
  color: #e2e8f0;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  display: block;
  text-align: left;
}

.subnav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding-left: 12px; /* Smooth slide-in micro-animation */
}

/* Nav Arrow indicator */
.nav-arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  display: inline-block;
}

.subnav-tab-wrapper:hover .nav-arrow {
  transform: rotate(180deg);
}

@media print {
  body { background: #fff !important; }
  .cart-breadcrumb, header, .subnav-bar, .checkout-steps, .whatsapp-widget, .site-footer, .back-to-top-btn {
    display: none !important;
  }
  .printable-invoice-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ============================================================================
   🔍 SEARCH AUTOCOMPLETE DROPDOWN STYLES
   ============================================================================ */
.search-suggestions-dropdown {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
  z-index: 100000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-primary, sans-serif);
}

.autocomplete-suggestion-item {
  transition: background 0.15s ease;
}

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item.active {
  background-color: #f0f2f2;
}

.autocomplete-suggestion-item mark {
  border-radius: 2px;
}

/* ============================================================================
   ⭐ PERSONALIZED RECOMMENDATIONS SHELF STYLES
   ============================================================================ */
.recommendations-shelf-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ffd814 transparent;
}
.recommendations-shelf-scroll::-webkit-scrollbar {
  height: 6px;
}
.recommendations-shelf-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.recommendations-shelf-scroll::-webkit-scrollbar-thumb {
  background-color: #ffd814;
  border-radius: 99px;
}
.recommendations-shelf-scroll .product-card {
  min-width: 240px;
  max-width: 240px;
  flex-shrink: 0;
}
