/* ==========================================================================
   GyanDark Trading — China Sourcing shop + dynamic blog
   Builds on the tokens and components in style.css
   ========================================================================== */

/* ---- Header cart ---- */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 999px;
  color: var(--color-white);
  transition: background 0.25s, color 0.25s;
}
.header-cart:hover {
  background: rgba(255, 255, 255, 0.12);
}
.scrolled .header-cart {
  color: var(--color-navy);
}
.scrolled .header-cart:hover {
  background: rgba(8, 43, 99, 0.06);
}
.header-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.header-cart-count[hidden] {
  display: none;
}
.header-cart.bump .header-cart-count {
  animation: cartBump 0.45s var(--ease);
}
@keyframes cartBump {
  40% { transform: scale(1.45); }
}
@media (min-width: 1100px) {
  .nav-links {
    margin: 0 auto;
  }
  .header-cart {
    margin-left: 0;
  }
}

/* ---- Compact hero ---- */
.page-hero.page-hero-sm {
  min-height: 0;
  padding: 8rem 0 2.5rem;
}
.page-hero.page-hero-sm .breadcrumb {
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.page-hero.page-hero-sm h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* ---- Shop hero ---- */
.shop-hero {
  min-height: 0;
  padding-bottom: 3.5rem;
}
.shop-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  max-width: 40rem;
  margin-top: 2rem;
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  color: rgba(11, 18, 32, 0.4);
}
.shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 0.6rem 0;
}
.shop-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.75rem;
}
.shop-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.shop-trust svg {
  width: 17px;
  height: 17px;
  color: var(--color-gold-light);
}

/* ---- Category rail ---- */
.shop-categories {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(8, 43, 99, 0.06);
}
.shop-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}
.shop-section-title h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.cat-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
@media (min-width: 1024px) {
  .cat-rail {
    grid-auto-columns: minmax(0, 1fr);
    overflow: visible;
  }
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.4rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(8, 43, 99, 0.07);
  background: var(--color-mist);
  text-align: center;
  scroll-snap-align: start;
  transition: all 0.25s var(--ease);
}
.cat-tile:hover {
  border-color: rgba(31, 118, 210, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.cat-tile.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
}
.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-royal);
  box-shadow: var(--shadow-sm);
}
.cat-icon svg {
  width: 24px;
  height: 24px;
}
.cat-icon.cat-img {
  overflow: hidden;
}
.cat-icon.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile.active .cat-icon {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.cat-name {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
}
.cat-tile.active .cat-name {
  color: var(--color-white);
}

/* ---- Shop layout ---- */
.shop-main {
  padding-top: 3rem;
  scroll-margin-top: 40px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .shop-layout {
    grid-template-columns: 260px 1fr;
  }
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .shop-sidebar {
    position: sticky;
    top: 96px;
  }
}
@media (max-width: 1023px) {
  .shop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2200;
    width: min(320px, 86vw);
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--color-mist);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
  }
  .shop-sidebar.is-open {
    transform: translateX(0);
  }
  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2150;
    background: rgba(5, 28, 66, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  .filters-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-head h3 {
  font-size: 1.1rem;
}
.filters-close {
  display: flex;
  color: var(--color-navy);
}
@media (min-width: 1024px) {
  .filters-close,
  .filters-backdrop,
  .btn-filter-toggle {
    display: none !important;
  }
}
.filter-form {
  margin-top: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--color-white);
  border: 1px solid rgba(8, 43, 99, 0.06);
  gap: 1.25rem;
}
.filter-group h4 {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(8, 43, 99, 0.6);
}
.filter-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0;
  font-size: 0.88rem;
  color: rgba(11, 18, 32, 0.75);
  cursor: pointer;
}
.filter-radio input {
  accent-color: var(--color-royal);
}
.filter-radio span {
  flex: 1;
}
.filter-radio em {
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(11, 18, 32, 0.4);
}
.filter-radio:hover span {
  color: var(--color-royal);
}
.price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-range .form-field {
  padding: 0.6rem 0.7rem;
}
.filter-reset {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-royal);
}
.sidebar-help {
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #051c42, #082b63 60%, #1f76d2);
  color: rgba(255, 255, 255, 0.75);
}
.sidebar-help > svg {
  width: 28px;
  height: 28px;
  color: var(--color-gold-light);
}
.sidebar-help h4 {
  margin: 0.75rem 0 0.4rem;
  color: var(--color-white);
  font-size: 1.05rem;
}
.sidebar-help p {
  margin-bottom: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ---- Toolbar ---- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.shop-toolbar h2 {
  font-size: 1.5rem;
}
.shop-toolbar p {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: rgba(11, 18, 32, 0.55);
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 43, 99, 0.15);
  background: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}
.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 43, 99, 0.15);
  background: var(--color-white);
  font-size: 0.82rem;
  color: rgba(11, 18, 32, 0.5);
}
.sort-select select {
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.3rem;
  cursor: pointer;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 118, 210, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-royal);
}
.active-filters svg {
  width: 13px;
  height: 13px;
}

/* ---- Product grid + card ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .product-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  .product-media {
    aspect-ratio: 4 / 3.6;
  }
  .product-body {
    padding: 0.8rem 0.9rem 0.9rem;
  }
  .product-body h3 {
    font-size: 0.86rem;
  }
  .product-card .product-price strong {
    font-size: 1.05rem;
  }
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-white);
  border: 1px solid rgba(8, 43, 99, 0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-mist);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-media img {
  transform: scale(1.06);
}
.product-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-preorder {
  background: var(--color-navy);
  color: var(--color-white);
}
.badge-in_stock {
  background: #16a34a;
  color: var(--color-white);
}
.badge-sourcing {
  background: var(--color-royal);
  color: var(--color-white);
}
.badge-sale {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem 1rem 1rem;
}
.product-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-royal);
}
.product-body h3 {
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body h3 a:hover {
  color: var(--color-royal);
}
.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  margin-top: 0.6rem;
}
.product-price strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}
.product-price s {
  font-size: 0.82rem;
  color: rgba(11, 18, 32, 0.4);
}
.product-price small {
  font-size: 0.75rem;
  color: rgba(11, 18, 32, 0.5);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: rgba(11, 18, 32, 0.55);
}
.product-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.product-meta svg {
  width: 13px;
  height: 13px;
}
.product-actions {
  margin-top: auto;
  padding-top: 0.9rem;
}
.product-actions form {
  margin: 0;
}
.product-actions .btn {
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
}
@media (max-width: 480px) {
  .product-body {
    padding: 0.75rem;
  }
  .product-actions .btn {
    white-space: normal;
  }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}
.pagination a,
.pagination .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}
.pagination a {
  background: var(--color-white);
  border: 1px solid rgba(8, 43, 99, 0.1);
}
.pagination a:hover {
  border-color: var(--color-royal);
  color: var(--color-royal);
}
.pagination a.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* ---- Empty states ---- */
.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--color-white);
  border: 1px dashed rgba(8, 43, 99, 0.15);
  text-align: center;
}
.shop-empty .icon-circle,
.order-success-card .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(31, 118, 210, 0.1);
  color: var(--color-royal);
}
.shop-empty h3 {
  font-size: 1.35rem;
}
.shop-empty p {
  max-width: 28rem;
  color: rgba(11, 18, 32, 0.6);
}

/* ---- How it works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: 1.1rem;
  background: var(--color-mist);
  border: 1px solid rgba(8, 43, 99, 0.06);
}
.step-card > svg {
  width: 30px;
  height: 30px;
  color: var(--color-royal);
}
.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232, 160, 52, 0.35);
}
.step-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}
.step-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.6);
}

/* ---- Custom request ---- */
.request-grid {
  align-items: start;
}
.request-points {
  margin-top: 0.5rem;
}
.request-points svg {
  width: 18px;
  height: 18px;
  color: var(--color-royal);
  flex-shrink: 0;
}
.contact-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.contact-band a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-band a:hover {
  background: var(--color-royal);
}
.contact-band .flag {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.66rem;
  font-weight: 800;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-error {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.86rem;
}
.form-error[hidden] {
  display: none;
}

/* ==========================================================================
   Product detail
   ========================================================================== */

.product-section {
  padding-top: 3rem;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .product-gallery {
    position: sticky;
    top: 100px;
  }
}
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--color-mist);
  border: 1px solid rgba(8, 43, 99, 0.06);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}
.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.8rem;
}
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.gallery-thumb {
  flex: 0 0 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--color-royal);
  opacity: 1;
}
.product-info-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-info-top .sku {
  font-size: 0.8rem;
  color: rgba(11, 18, 32, 0.45);
}
.product-info h1 {
  margin-top: 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.product-lead {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(11, 18, 32, 0.65);
}
.product-price-lg {
  margin-top: 1.25rem;
}
.product-price-lg strong {
  font-size: 2rem;
}
.product-price-lg s {
  font-size: 1.05rem;
}
.product-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}
.product-facts > div {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--color-mist);
}
.product-facts dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: rgba(11, 18, 32, 0.5);
}
.product-facts dt svg {
  width: 14px;
  height: 14px;
}
.product-facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
}
.product-buy {
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.option-group {
  margin: 0;
  padding: 0;
  border: 0;
}
.option-group legend {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}
.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip,
.ship-option {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(8, 43, 99, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip span:hover {
  border-color: var(--color-royal);
}
.chip input:checked + span {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}
.chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(31, 118, 210, 0.3);
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.buy-btn {
  flex: 1;
  min-width: 200px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(8, 43, 99, 0.15);
  background: var(--color-white);
  overflow: hidden;
}
.qty-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  color: var(--color-navy);
}
.qty-stepper button:hover {
  background: var(--color-mist);
}
.qty-stepper button svg {
  width: 16px;
  height: 16px;
}
.qty-stepper input {
  width: 64px;
  border: 0;
  outline: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stepper-sm button {
  width: 34px;
  height: 38px;
}
.qty-stepper-sm input {
  width: 52px;
  font-size: 0.9rem;
}
.buy-total {
  font-size: 0.88rem;
  color: rgba(11, 18, 32, 0.6);
}
.buy-total strong {
  color: var(--color-navy);
}
.btn-whatsapp {
  margin-top: 0.75rem;
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 8px 26px -10px rgba(37, 211, 102, 0.8);
}
.btn-whatsapp:hover {
  background: #1fb857;
  transform: translateY(-2px);
}
.assurance-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(8, 43, 99, 0.08);
}
.assurance-list li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.6);
}
.assurance-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-royal);
}
.assurance-list strong {
  display: block;
  color: var(--color-navy);
}

/* ---- Tabs + rich content ---- */
.product-tabs {
  margin-top: 4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 43, 99, 0.08);
  overflow: hidden;
}
.tab-list {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid rgba(8, 43, 99, 0.08);
  background: var(--color-mist);
}
.tab-list button {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(8, 43, 99, 0.55);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-list button.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
  background: var(--color-white);
}
.tab-panel {
  display: none;
  padding: 2rem;
}
.tab-panel.active {
  display: block;
}
@media (max-width: 640px) {
  .tab-panel {
    padding: 1.25rem;
  }
}
.rich-content {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(11, 18, 32, 0.75);
  overflow-wrap: break-word;
}
.rich-content > * + * {
  margin-top: 1.1rem;
}
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin-top: 2rem;
  line-height: 1.3;
}
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content h4 { font-size: 1.05rem; }
.rich-content > :first-child {
  margin-top: 0;
}
.rich-content ul,
.rich-content ol {
  padding-left: 1.4rem;
}
.rich-content ul {
  list-style: disc;
}
.rich-content ol {
  list-style: decimal;
}
.rich-content li + li {
  margin-top: 0.4rem;
}
.rich-content a {
  color: var(--color-royal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content img {
  height: auto;
  border-radius: 1rem;
}
.rich-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--color-mist);
  font-style: italic;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.rich-content th,
.rich-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(8, 43, 99, 0.1);
  text-align: left;
}
.rich-content th {
  background: var(--color-mist);
  color: var(--color-navy);
}
.rich-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--color-navy-dark);
  color: #e5edf8;
  font-size: 0.85rem;
}

/* ==========================================================================
   Cart + checkout
   ========================================================================== */

.notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
}
.notice-success {
  background: #ecfdf5;
  color: #047857;
}
.notice-error {
  background: #fef2f2;
  color: #b91c1c;
}
.cart-section {
  padding-top: 3rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr 400px;
  }
  .checkout-card {
    position: sticky;
    top: 96px;
  }
}
.cart-items-card,
.checkout-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(8, 43, 99, 0.06);
  box-shadow: var(--shadow-sm);
}
.cart-items-card > form {
  margin-top: 0;
  gap: 0;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas:
    "thumb info remove"
    "thumb qty total";
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(8, 43, 99, 0.07);
}
@media (min-width: 720px) {
  .cart-line {
    grid-template-columns: 80px 1fr auto 110px 36px;
    grid-template-areas: "thumb info qty total remove";
  }
}
.cart-thumb {
  grid-area: thumb;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--color-mist);
}
@media (min-width: 720px) {
  .cart-thumb {
    width: 80px;
    height: 80px;
  }
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.cart-line-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
}
.cart-line-name:hover {
  color: var(--color-royal);
}
.cart-line-opts,
.cart-line-unit {
  font-size: 0.78rem;
  color: rgba(11, 18, 32, 0.55);
}
.cart-line .qty-stepper {
  grid-area: qty;
  justify-self: start;
}
.cart-line-total {
  grid-area: total;
  justify-self: end;
  font-family: var(--font-heading);
  color: var(--color-navy);
}
.cart-remove {
  grid-area: remove;
  justify-self: end;
  display: flex;
  padding: 0.4rem;
  border-radius: 999px;
  color: rgba(11, 18, 32, 0.4);
}
.cart-remove:hover {
  background: #fef2f2;
  color: #dc2626;
}
.cart-remove svg {
  width: 18px;
  height: 18px;
}
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}
.checkout-card h3 {
  font-size: 1.15rem;
}
.summary-rows {
  margin: 1rem 0 0;
}
.summary-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
}
.summary-rows dt {
  color: rgba(11, 18, 32, 0.6);
}
.summary-rows dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-navy);
  text-align: right;
}
.summary-total {
  margin-top: 0.4rem;
  border-top: 1px solid rgba(8, 43, 99, 0.1);
  padding-top: 0.9rem !important;
}
.summary-total dt,
.summary-total dd {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}
.summary-note {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.55);
}
.summary-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.summary-note a {
  color: var(--color-royal);
}
.checkout-title {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(8, 43, 99, 0.08);
}
.checkout-form {
  gap: 0.75rem;
  margin-top: 1rem;
}
.ship-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ship-option input {
  position: absolute;
  opacity: 0;
}
.ship-option span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(8, 43, 99, 0.12);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ship-option svg {
  width: 17px;
  height: 17px;
  color: var(--color-royal);
}
.ship-option input:checked + span {
  border-color: var(--color-royal);
  background: rgba(31, 118, 210, 0.06);
  font-weight: 600;
  color: var(--color-navy);
}
.ship-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(31, 118, 210, 0.25);
}
.order-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.order-success-card h2 {
  font-size: 1.8rem;
}
.order-success-card p {
  color: rgba(11, 18, 32, 0.65);
  line-height: 1.6;
}
.order-ref {
  padding: 0.6rem 1.4rem;
  border-radius: 0.75rem;
  border: 2px dashed var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}

/* ---- Tracking ---- */
.track-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 52rem;
}
.track-form {
  margin: 0;
}
.track-form .btn {
  align-self: flex-start;
}
.track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.track-head h3 {
  margin-top: 0.25rem;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}
.track-head p {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: rgba(11, 18, 32, 0.55);
}
.status-pill {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 118, 210, 0.1);
  color: var(--color-royal);
  font-size: 0.8rem;
  font-weight: 700;
}
.status-pill.status-delivered,
.status-pill.status-arrived { background: #ecfdf5; color: #047857; }
.status-pill.status-cancelled { background: #fef2f2; color: #b91c1c; }
.status-pill.status-new { background: rgba(232, 160, 52, 0.18); color: #9a5b07; }
.track-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 0.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .track-steps {
    grid-template-columns: repeat(8, 1fr);
  }
}
.track-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: rgba(11, 18, 32, 0.4);
}
.track-steps li span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(8, 43, 99, 0.2);
  background: var(--color-white);
}
.track-steps li.done {
  color: var(--color-navy);
}
.track-steps li.done span {
  border-color: var(--color-royal);
  background: var(--color-royal);
}
.track-steps li.current span {
  box-shadow: 0 0 0 5px rgba(31, 118, 210, 0.2);
}
.track-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.track-items th,
.track-items td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(8, 43, 99, 0.08);
  text-align: left;
  vertical-align: top;
}
.track-items th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(8, 43, 99, 0.55);
}
.track-items small {
  color: rgba(11, 18, 32, 0.5);
}
.track-history-title {
  margin-top: 1.75rem;
  font-size: 1rem;
}
.track-history {
  margin-top: 0.75rem;
}
.track-history li {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 2px solid rgba(31, 118, 210, 0.3);
  font-size: 0.88rem;
  color: rgba(11, 18, 32, 0.7);
}
.track-history strong {
  color: var(--color-navy);
}
.track-history time {
  display: block;
  font-size: 0.75rem;
  color: rgba(11, 18, 32, 0.45);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 43, 99, 0.12);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(8, 43, 99, 0.75);
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: var(--color-royal);
  color: var(--color-royal);
}
.filter-chip.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}
.blog-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 43, 99, 0.12);
  background: var(--color-mist);
  color: rgba(11, 18, 32, 0.4);
}
.blog-search input {
  width: 200px;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
}
.post-featured {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem;
  background: var(--color-mist);
  border: 1px solid rgba(8, 43, 99, 0.06);
  transition: box-shadow 0.3s;
}
.post-featured:hover {
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .post-featured {
    grid-template-columns: 1.2fr 1fr;
  }
}
.post-featured-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-featured:hover .post-featured-img img {
  transform: scale(1.04);
}
.post-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}
@media (min-width: 900px) {
  .post-featured-body {
    padding: 2.5rem 3rem;
  }
}
.post-featured-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
}
.post-featured:hover h2 {
  color: var(--color-royal);
}
.post-featured-body p {
  line-height: 1.65;
  color: rgba(11, 18, 32, 0.65);
}
.eyebrow-pill {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
}
.blog-grid {
  gap: 1.5rem;
}
.article-hero h1 {
  max-width: 52rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.preview-pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .article-aside {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}
.article-body {
  max-width: 46rem;
  font-size: 1.05rem;
}
.article-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 500;
  color: var(--color-navy);
}
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(8, 43, 99, 0.08);
}
.article-share span {
  margin-right: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}
.article-share a,
.article-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-mist);
  color: var(--color-navy);
  text-decoration: none;
  transition: all 0.2s;
}
.article-share a:hover,
.article-share button:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.article-share svg {
  width: 17px;
  height: 17px;
}

/* ---- Toast ---- */
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1.1rem 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--color-navy-dark);
  color: var(--color-white);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: all 0.3s var(--ease);
}
.shop-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.shop-toast.error {
  background: #b91c1c;
}
.shop-toast a {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ==========================================================================
   Instant orders (in-stock “Buy now”) + checkout
   ========================================================================== */

.badge-soldout {
  background: #6b7280;
  color: var(--color-white);
}
.stock-low {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
}
.meta-ready {
  color: #15803d;
  font-weight: 600;
}
.btn-add-list {
  margin-top: -0.35rem;
}
.btn-light-outline {
  border: 1.5px solid rgba(8, 43, 99, 0.18);
  color: rgba(8, 43, 99, 0.7);
  background: var(--color-white);
}
.btn-light-outline:hover {
  border-color: var(--color-royal);
  color: var(--color-royal);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.text-error {
  color: #b91c1c !important;
}

.instant-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.instant-banner > div {
  flex: 1;
  min-width: 220px;
}
.instant-banner strong {
  color: var(--color-navy);
}
.instant-banner p {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: rgba(11, 18, 32, 0.6);
}
.instant-banner form {
  margin: 0;
}
.instant-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #16a34a;
  color: var(--color-white);
}
.cart-line-instant {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
}
.cart-line-instant svg {
  width: 13px;
  height: 13px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0;
}
@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr 400px;
  }
}
.stack-col {
  min-width: 0;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0.9rem;
  font-size: 1.1rem;
}
.checkout-step:first-child {
  margin-top: 0;
}
.checkout-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.8rem;
}
.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checkout-fields[hidden] {
  display: none;
}
.ship-options + .checkout-fields {
  margin-top: 0.75rem;
}
.ship-option em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  color: var(--color-navy);
}
.pay-method {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--color-royal);
  background: rgba(31, 118, 210, 0.05);
}
.pay-method > svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-royal);
}
.pay-method strong {
  color: var(--color-navy);
}
.pay-method p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.6);
}
.pay-method .test-flag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
}
.mini-lines {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}
.mini-line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(8, 43, 99, 0.07);
}
.mini-line.is-problem {
  opacity: 0.7;
}
.mini-line img {
  width: 52px;
  height: 52px;
  border-radius: 0.6rem;
  object-fit: cover;
  background: var(--color-mist);
}
.mini-line a {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}
.mini-line small {
  display: block;
  font-size: 0.75rem;
  color: rgba(11, 18, 32, 0.55);
}
.mini-line strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--color-navy);
}
.mini-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.86rem;
  color: rgba(11, 18, 32, 0.6);
}
.mini-qty .link-arrow {
  font-size: 0.82rem;
}
.check-line {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.65);
  cursor: pointer;
}
.check-line input {
  margin-top: 3px;
  accent-color: var(--color-royal);
}
.check-line a {
  color: var(--color-royal);
}
.order-result.order-paid .icon-circle {
  background: #ecfdf5;
  color: #16a34a;
}
.order-result.order-failed .icon-circle,
.order-result.order-expired .icon-circle {
  background: #fef2f2;
  color: #dc2626;
}
.order-result.order-manual .icon-circle,
.order-result.order-review .icon-circle {
  background: rgba(232, 160, 52, 0.15);
  color: #b26b0b;
}
.pay-instructions {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  background: var(--color-mist);
  border: 1px dashed rgba(8, 43, 99, 0.2);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-navy);
}
.order-items-mini {
  margin-top: 0.5rem;
  text-align: left;
}
.order-items-mini .right {
  text-align: right;
}
.order-items-mini .total-row td {
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 0;
}

/* ---- Currency switch (header) ---- */
.currency-switch {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.currency-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
}
.currency-switch a:hover {
  color: var(--color-white);
}
.currency-switch a.active {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.scrolled .currency-switch {
  border-color: rgba(8, 43, 99, 0.15);
}
.scrolled .currency-switch a {
  color: rgba(8, 43, 99, 0.7);
}
.scrolled .currency-switch a.active {
  color: var(--color-navy-dark);
}
.currency-switch + .header-cart {
  margin-left: 0;
}
@media (min-width: 1100px) {
  .currency-switch {
    margin-left: 0;
  }
}

/* ==========================================================================
   Homepage shop showcase
   ========================================================================== */

.showcase-ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .showcase-ways {
    grid-template-columns: repeat(3, 1fr);
  }
}
.way-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  background: var(--color-mist);
  border: 1px solid rgba(8, 43, 99, 0.07);
  transition: all 0.25s var(--ease);
}
.way-card:hover {
  border-color: rgba(31, 118, 210, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.way-card > div {
  flex: 1;
  min-width: 0;
}
.way-card h3 {
  font-size: 1rem;
}
.way-card p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.6);
}
.way-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-royal);
  box-shadow: var(--shadow-sm);
}
.way-icon svg {
  width: 22px;
  height: 22px;
}
.way-instant {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border-color: rgba(22, 163, 74, 0.25);
}
.way-instant .way-icon {
  background: #16a34a;
  color: var(--color-white);
}
.way-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(8, 43, 99, 0.35);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.way-card:hover .way-arrow {
  color: var(--color-royal);
  transform: translateX(3px);
}

.showcase-tablist {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--color-mist);
  border: 1px solid rgba(8, 43, 99, 0.07);
}
.showcase-tablist button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(8, 43, 99, 0.65);
  transition: all 0.2s;
}
.showcase-tablist button svg {
  width: 15px;
  height: 15px;
}
.showcase-tablist button.active {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.showcase-tabs .tab-panel {
  padding: 0;
}
.showcase-skeleton span {
  display: block;
  aspect-ratio: 3 / 4.2;
  border-radius: 1rem;
  background: linear-gradient(90deg, #eef2f8 0%, #f8f9fb 50%, #eef2f8 100%);
  background-size: 200% 100%;
  animation: showcaseShimmer 1.4s ease-in-out infinite;
}
@keyframes showcaseShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-skeleton span {
    animation: none;
  }
}
.showcase-empty {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--color-mist);
  text-align: center;
  color: rgba(11, 18, 32, 0.6);
}
.showcase-empty a {
  color: var(--color-royal);
  font-weight: 600;
}
.showcase-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.showcase-tablist button {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .showcase-tablist {
    display: flex;
  }
  .showcase-tablist button {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* ---- Homepage showcase: compact cards, 6 per row on desktop ---- */
@media (min-width: 1200px) {
  .shop-showcase .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
  }
}
.shop-showcase .product-body {
  padding: 0.7rem 0.75rem 0.8rem;
}
.shop-showcase .product-cat {
  font-size: 0.62rem;
}
.shop-showcase .product-body h3 {
  font-size: 0.8rem;
}
.shop-showcase .product-card .product-price {
  margin-top: 0.4rem;
}
.shop-showcase .product-card .product-price strong {
  font-size: 0.95rem;
}
.shop-showcase .product-price s,
.shop-showcase .product-price small {
  font-size: 0.7rem;
}
.shop-showcase .product-meta {
  margin-top: 0.35rem;
  font-size: 0.68rem;
}
.shop-showcase .product-actions {
  padding-top: 0.65rem;
}
.shop-showcase .product-actions .btn {
  padding: 0.5rem 0.6rem;
  font-size: 0.72rem;
}
.shop-showcase .badge {
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
}

/* ---- Homepage hero: sliding product strip under the header ---- */
.hero-products {
  position: absolute;
  z-index: 2;
  top: var(--header-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: 68px;
  background: rgba(5, 28, 66, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-products[hidden] {
  display: none;
}
.hero.strip-ready .hero-content {
  padding-top: calc(var(--header-height) + 68px + 3rem);
}
.hp-label {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
  padding: 0 1.1rem 0 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hp-label svg {
  width: 16px;
  height: 16px;
}
.hp-label:hover {
  background: var(--color-gold-light);
}
.hp-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.hp-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hpSlide var(--hp-duration, 50s) linear infinite;
}
.hero-products:hover .hp-track,
.hero-products:focus-within .hp-track {
  animation-play-state: paused;
}
@keyframes hpSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hp-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.3rem;
}
.hp-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 230px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}
.hp-chip:hover,
.hp-chip:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(244, 199, 120, 0.6);
}
.hp-chip img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.55rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
}
.hp-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hp-chip-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
}
.hp-chip-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.1rem;
}
.hp-chip-meta strong {
  font-size: 0.8rem;
  color: var(--color-gold-light);
}
.hp-chip-meta em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.hp-chip-meta em.hp-tag-now {
  background: #16a34a;
  color: var(--color-white);
}
@media (max-width: 640px) {
  .hero-products {
    height: 60px;
  }
  .hero.strip-ready .hero-content {
    padding-top: calc(var(--header-height) + 60px + 2rem);
  }
  .hp-label span {
    display: none;
  }
  .hp-label {
    padding: 0 0.9rem;
  }
  .hp-chip {
    width: 200px;
  }
  .hp-chip img {
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-track {
    animation: none;
  }
  .hp-viewport {
    overflow-x: auto;
  }
  .hp-group[aria-hidden="true"] {
    display: none;
  }
}
.hp-chip-meta em,
.hp-chip-meta strong {
  white-space: nowrap;
}
/* Hero text lines up with the header (the hero's own padding rule zeroed the container's side padding). */
.hero .hero-content {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .hero .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
