/* ==========================================================================
   Storefront brand theme
   Dark charcoal + stone white + gold trim + electric blue + maple red
   ========================================================================== */
:root {
  --bg: #111318;
  --bg-2: #0c0e12;
  --panel: #1a1d24;
  --panel-2: #22262f;
  --border: #2c3140;
  --text: #e8e6e1;
  --muted: #9aa0ad;
  --stone: #f0ead8;
  --gold: #d4a133;
  --gold-2: #f2c14e;
  --blue: #2f9be3;
  --red: #e63946;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.dot { color: var(--red); }

h1, h2, h3, .brand-text {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  letter-spacing: .5px;
}

/* ------------------------------ Header ------------------------------ */
/* Banner header with artwork background, pinned to the top as you scroll. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Its compact state changes height; do not let Chrome's scroll anchoring
     feed that layout change back into the scroll-trigger calculation. */
  overflow-anchor: none;
  /* extra-wide artwork means cover barely crops = naturally zoomed out */
  background:
    linear-gradient(rgba(12, 14, 18, .18), rgba(12, 14, 18, .35)),
    url('../img/backgroundheader-wide.jpg') left center / cover no-repeat,
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.header-top { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 0 10px;
  transition: padding .25s ease; }
.brand { display: flex; align-items: center; }
.portal-brand-context {
  display:flex; align-items:center; gap:10px; margin-left:16px; padding:10px 14px;
  border-left:2px solid var(--gold); background:rgba(12,14,18,.78); border-radius:0 10px 10px 0;
  white-space:nowrap; text-align:left;
}
.portal-brand-copy { display:flex; flex-direction:column; line-height:1.08; }
.portal-brand-copy strong { color:var(--gold-2); font-family:'Archivo Black','Inter',sans-serif; font-size:17px; letter-spacing:1.2px; }
.portal-brand-copy small { color:var(--stone); font-size:10px; font-weight:800; letter-spacing:1.8px; margin-top:5px; }
.rips-brand-mark {
  display:inline-flex; align-items:flex-start; justify-content:center; min-width:68px; padding:7px 8px 5px;
  color:#111318; background:var(--gold-2); border:2px solid var(--stone); border-radius:7px;
  font-family:'Archivo Black','Inter',sans-serif; font-size:17px; letter-spacing:.5px; line-height:1;
  box-shadow:0 3px 12px rgba(0,0,0,.4);
}
.rips-brand-mark sup { font-size:10px; line-height:1; margin-top:-2px; }
/* transparent PNG crest - no blend tricks needed */
.brand-logo { height: 170px; width: auto; object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .65)); transition: height .25s ease; }

/* shrunk state (added by JS after scrolling) - slim pinned bar */
.site-header.shrink .header-top { padding: 8px 0 6px; }
.site-header.shrink .brand-logo { height: 100px; }
.site-header.shrink .nav-cart { width: 72px; height: 72px; }
.site-header.shrink .cart-icon { width: 26px; height: 26px; }
.site-header.shrink .cart-total { font-size: 12px; }
.site-header.shrink .main-nav { padding-top: 8px; padding-bottom: 8px; }
.brand-text { color: var(--stone); font-size: 26px; line-height: 1.1; }
.brand-text small { display: block; color: var(--gold); font-size: 13px; letter-spacing: 4px; }
.main-nav {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 11px 24px;
  background: rgba(12, 14, 18, .78);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(212, 161, 51, .35);
}
/* Shop / Instagram / Contact centered; Customer Login pinned left, Partner Portal pinned right */
.main-nav > .nav-login { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
.main-nav > .nav-partner { left: auto; right: 24px; }
.main-nav a { color: var(--gold-2); font-weight: 600; font-size: 18.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
/* centre links: gold by default, white with a hover bubble like the buttons */
.main-nav a:not(.nav-login):not(.nav-cart) {
  padding: 8px 16px; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.main-nav a:not(.nav-login):not(.nav-cart):hover { color: #fff; background: rgba(255, 255, 255, .12); }
.public-main-nav { gap: 3px; padding-left: 170px; padding-right: 170px; }
.public-main-nav a:not(.nav-login):not(.nav-cart) { padding: 7px 9px; font-size: 13.5px; }
.public-main-nav a[aria-current="page"] { color:#fff; background:rgba(212,161,51,.16); }
@media (min-width:701px) and (max-width:1100px) {
  .public-main-nav { padding-left:145px; padding-right:145px; }
  .public-main-nav a:not(.nav-login):not(.nav-cart) { padding:6px 5px; font-size:11.5px; }
}
/* Customer Login: clean, no gold, no outline */
.nav-login {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; color: var(--stone) !important;
  background: transparent;
  padding: 9px 14px; border-radius: 999px; font-weight: 800 !important;
}
.nav-login svg { width: 18px; height: 18px; }
.nav-login:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
/* single cart widget pinned top-right: round black-edged grey badge */
.nav-cart {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 84px; height: 84px; padding: 0; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .82);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.nav-cart:hover { transform: translateY(calc(-50% - 2px)); background: #000; }
.cart-ico-wrap { position: relative; display: inline-flex; }
.cart-icon {
  width: 30px; height: 30px; display: block; flex: none;
  color: #fff; /* white cart */
}
.cart-count {
  position: absolute; top: -7px; right: -9px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  background: linear-gradient(180deg, #ffe083, #f2c14e); color: #16130a;
  border: 1.5px solid rgba(0, 0, 0, .35);
  border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.cart-total {
  color: #fff; font-weight: 800; font-size: 15px; line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.nav-toggle {
  display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(12, 14, 18, .7); border: 1px solid var(--border); color: var(--text);
  font-size: 22px; border-radius: 8px; padding: 4px 12px; cursor: pointer;
}

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; padding: 10px 0 12px; }
.hero-inner { display: flex; align-items: center; gap: 28px; }
.hero-copy { flex: 1; text-align: left; }
.hero h1 { line-height: 1.05; }
.hero-giveaway {
  flex: 0 0 auto; width: 300px; max-width: 42vw; display: block; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.hero-giveaway:hover { transform: translateY(-4px); border-color: var(--gold); }
.hero-giveaway img { width: 100%; display: block; }
.hero-promo-copy { display:flex; align-items:center; justify-content:center; min-height:170px; padding:28px; color:var(--stone); font-size:clamp(20px,3vw,30px); line-height:1.12; text-align:center; background:linear-gradient(135deg,rgba(212,161,51,.24),rgba(47,155,227,.18)); }
.hero-promo-copy strong { color:var(--gold); }
.ig-fallback { display:flex; align-items:center; justify-content:center; min-height:150px; padding:20px; background:linear-gradient(145deg,rgba(212,161,51,.18),rgba(47,155,227,.18)); color:var(--stone); font-weight:700; text-align:center; }
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; }
  .hero-copy { text-align: center; }
  .hero-giveaway { max-width: 100%; }
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(47, 155, 227, .18), transparent 65%),
    radial-gradient(ellipse 45% 38% at 18% 88%, rgba(212, 161, 51, .13), transparent 65%),
    radial-gradient(ellipse 45% 38% at 85% 80%, rgba(230, 57, 70, .10), transparent 65%),
    var(--bg-2);
}
.hero-inner { position: relative; }
.hero-logo {
  width: 480px; max-width: 88vw; margin: 0 auto 22px;
  /* the logo art sits on a solid black square; screen-blending melts that
     square into the dark page so only the crest itself shows */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 46px rgba(212, 161, 51, .28))
          drop-shadow(0 0 120px rgba(47, 155, 227, .16));
}
.hero h1 { font-size: clamp(26px, 3.6vw, 42px); color: var(--stone); text-transform: uppercase; }
.hero h1 span { white-space: nowrap; }
/* shiny gold accent text with a moving highlight sweep (like the Cart button) */
.hero h1 .gold {
  background:
    linear-gradient(100deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #fff6d0 0%, #ffd75e 34%, #f0b93a 58%, #d99e22 78%, #f7d878 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212, 161, 51, .35));
  animation: gold-shine 4.5s ease-in-out infinite;
}
@keyframes gold-shine {
  0%, 58%   { background-position: 150% 0, 0 0; }
  85%, 100% { background-position: -50% 0, 0 0; }
}
.hero-tag { max-width: 660px; margin: 6px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.hero-copy .hero-tag { margin: 6px 0 0; }
.hero-tag strong { color: var(--gold-2); }
.hero-badges { margin: 26px 0 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  background: var(--panel); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 30px; font-size: 14px; font-weight: 600;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 10px;
  font-weight: 800; font-size: 15px; cursor: pointer; border: none;
  background: var(--panel-2); color: var(--text); /* sane dark default */
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .6px;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #16130a; box-shadow: 0 6px 18px rgba(212, 161, 51, .3);
}
.btn-gold:hover { color: #16130a; box-shadow: 0 10px 24px rgba(212, 161, 51, .45); }
.btn-outline {
  background: transparent; color: var(--stone); border: 2px solid var(--gold);
}
.btn-outline:hover { color: var(--gold-2); border-color: var(--gold-2); }
.btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.btn-ig:hover { color: #fff; box-shadow: 0 10px 24px rgba(204, 35, 102, .4); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------ Sections ------------------------------ */
.section { padding: 52px 0; }
#shop.section { padding-top: 26px; }
/* anchor jump offset clears the (shrunk) sticky header when navigating */
#shop, #instagram, #contact { scroll-margin-top: 150px; }
@media (max-width: 700px) {
  #shop, #instagram, #contact { scroll-margin-top: 150px; }
}
.section-dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 40px); color: var(--stone); text-transform: uppercase; }
.section-sub { text-align: center; color: var(--muted); margin: 10px auto 26px; max-width: 640px; }
.seo-intro { padding:34px 0; }
.seo-intro-inner { max-width:960px;text-align:center; }
.seo-intro h2 { margin:0 0 12px;color:var(--stone);font-size:clamp(22px,3vw,32px); }
.seo-intro p { margin:0 auto 10px;color:var(--muted);line-height:1.7; }
.seo-intro p:last-child { margin-bottom:0; }
.shop-seo-heading { margin:0 0 18px;text-align:center; }
.shop-seo-heading h1 { margin:0 0 7px;color:var(--stone);font-size:clamp(24px,3vw,34px); }
.shop-seo-heading p { max-width:820px;margin:0 auto;color:var(--muted);line-height:1.6; }

/* ------------------------------ Features ------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; color: var(--stone); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.about-banner { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ------------------------------ Instagram ------------------------------ */
.ig-gradient {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ig-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.ig-item {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 1; background: var(--panel);
}
.ig-item img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); transition: transform .3s; }
.ig-item:hover img { transform: scale(1.05); }
.ig-item .ig-caption {
  position: absolute; inset: 0; background: rgba(12, 14, 18, .82);
  color: var(--text); font-size: 13px; padding: 16px; opacity: 0;
  transition: opacity .25s; overflow: hidden; display: flex; align-items: center;
}
.ig-item:hover .ig-caption { opacity: 1; }
.ig-embed { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border); min-height: 380px; }
.ig-embed blockquote { margin: 0 !important; }
.ig-grid.ig-grid-profile { display:block; }
.ig-profile-embed { max-width:760px; margin:0 auto; padding:10px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; overflow:hidden; }
.ig-profile-embed iframe { display:block; width:100%; height:620px; border:0; background:#fff; }
.ig-profile-direct { display:block; padding:12px 14px 6px; color:#9b2378; font-weight:750; text-align:center; }
.ig-follow { text-align: center; }
.ig-note { color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ------------------------------ Shop search / filters / pagination ------------------------------ */
.shop-search-wrap { max-width: 560px; margin: 0 auto 18px; display: flex; gap: 10px; }
.shop-search {
  flex: 1; background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); padding: 13px 22px; font-size: 16px;
}
.shop-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 161, 51, .18); }
.shop-search-wrap .btn { border-radius: 999px; padding: 13px 26px; }
.shop-no-results { text-align: center; color: var(--muted); margin: 30px 0; }
.shop-catalog-results,.product-card { scroll-margin-top: 150px; }
.shop-count { display:flex;justify-content:center;gap:10px;flex-wrap:wrap;text-align:center;color:var(--muted);font-size:14px;margin:0 0 22px; }
.shop-count span { color:var(--gold-2);font-size:12px;font-weight:800; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 28px; max-width: 900px; }
.cat-menu { position: relative; }
.cat-menu > .cat-btn { display: inline-flex; align-items: center; gap: 8px; }
.cat-chevron { font-size: 11px; line-height: 1; }
.cat-submenu {
  display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 190px;
  padding: 7px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0,0,0,.35); text-align: left;
}
.cat-menu:hover .cat-submenu, .cat-menu:focus-within .cat-submenu, .cat-menu.open .cat-submenu { display: grid; gap: 2px; }
.cat-submenu a { padding: 9px 11px; border-radius: 7px; color: var(--text); font-size: 13px; white-space: nowrap; }
.cat-submenu a:hover, .cat-submenu a.active { color: var(--gold-2); background: rgba(212,161,51,.12); }
.cat-btn {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.cat-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.cat-btn.active { background: var(--gold); border-color: var(--gold); color: #16130a; }

.pagination { display: flex; gap: 8px; margin: 40px 0 0; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; color: var(--text);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-2); }
.pagination .current { background: var(--gold); color: var(--bg-2); font-weight: 800; border-color: var(--gold); }
.infinite-sentinel{height:1px;width:100%;pointer-events:none}.infinite-loader{display:flex;align-items:center;justify-content:center;gap:12px;min-height:82px;color:var(--gold-2);font-size:14px;font-weight:750}.infinite-loader[hidden],.infinite-end[hidden]{display:none}.infinite-spinner{width:30px;height:30px;border:3px solid rgba(212,161,51,.25);border-top-color:var(--gold-2);border-radius:50%;animation:catalog-spin .75s linear infinite}.infinite-end{text-align:center;margin:34px 0 10px;color:var(--muted);font-size:13px}@keyframes catalog-spin{to{transform:rotate(360deg)}}

/* ------------------------------ Products ------------------------------ */
/* Three columns on smaller desktops; expand to four on standard wide screens. */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
.product-card {
  /* transparent 2px border: dark at rest, gold gradient on hover (no layout shift) */
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(var(--border), var(--border)) border-box;
  border: 2px solid transparent; border-radius: var(--radius); position: relative;
  overflow: hidden; display: flex; flex-direction: column;
  /* steady gold glow (unchanged on hover) */
  box-shadow: 0 0 0 1px rgba(212, 161, 51, .4), 0 0 22px rgba(212, 161, 51, .55), 0 4px 18px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(150deg, #fff6d0 0%, #ffd75e 22%, #eab63a 48%, #d99e22 72%, #fff2c2 100%) border-box;
}
/* aspect-ratio alone can be stretched by tall images; the padding-top box +
   absolutely-filled img guarantees every card's photo is an identical square.
   object-fit: contain on a white field shows the WHOLE product, never cropped. */
.product-img { position: relative; padding-top: 100%; background: #fff; overflow: hidden; }
.product-img-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.saved-card-option { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin: 5px 0; border: 1px solid rgba(212,161,51,.35); border-radius: 7px; background: rgba(255,255,255,.03); }
.saved-card-option input { flex: 0 0 auto; }
.saved-card-save { color: var(--muted); font-size: 13px; }
.product-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 56px 14px 14px; /* extra top clears the name banner */
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
/* product name banner across the top of the photo */
.product-name-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 50px; /* fixed — long titles shrink their text instead of growing the bar */
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #fff0b8 0%, #ffd75e 32%, #eab63a 68%, #d99e22 100%);
  color: #16130a;
  font-family: 'Inter', sans-serif; font-weight: 900; font-size: 17px; line-height: 1.15;
  letter-spacing: .2px;
  padding: 4px 12px; margin: 0; text-align: center;
  border-bottom: 2px solid #a8791a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.product-name-bar a { color: inherit; text-decoration: none; }
.product-name-bar a:hover { color: inherit; text-decoration: underline; }

/* product detail page */
.pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.pdp-img { position: relative; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px rgba(212, 161, 51, .4), 0 0 22px rgba(212, 161, 51, .4); }
.pdp-img img { width: 100%; height: auto; object-fit: contain; }
.pdp-title { font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(22px, 3vw, 32px); color: var(--stone); margin-bottom: 14px; }
.pdp-desc { color: var(--muted); white-space: pre-line; margin: 6px 0 20px; line-height: 1.65; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } }

/* screen-reader-only (SEO headings without visual impact) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* partner store: blue title bar instead of gold */
.partner-name-bar {
  background: linear-gradient(180deg, #6cc0f0 0%, #2f9be3 34%, #1c7fc4 70%, #12557f 100%);
  color: #fff;
  border-bottom-color: #0e4363;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
/* the description fills whatever vertical space the card has; if it doesn't
   fit (e.g. a pre-order box is taking room) JS adds .has-more to reveal the
   "more" popup. Admin line breaks are preserved with white-space: pre-line. */
.product-desc-wrap { position: relative; flex: 1; min-height: 40px; margin-bottom: 12px; display: flex; flex-direction: column; }
.product-desc {
  flex: 1; overflow: hidden; white-space: pre-line; word-break: break-word;
  font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0;
}
.desc-more { display: none; align-self: flex-start; margin-top: 3px; position: relative; color: var(--blue); font-size: 12px; font-weight: 700; cursor: default; }
.product-desc-wrap.has-more .desc-more { display: inline-block; }
.desc-pop {
  display: none; position: absolute; left: 0; bottom: calc(100% + 8px);
  width: min(340px, calc(100vw - 32px));
  background: var(--bg-2); border: 1px solid var(--gold); border-radius: 10px;
  padding: 14px 16px; z-index: 60; white-space: pre-line;
  font-size: 13px; line-height: 1.6; color: var(--text); font-weight: 400;
  box-shadow: var(--shadow); max-height: 320px; overflow-y: auto;
}
.desc-more:hover .desc-pop, .desc-more:focus .desc-pop, .desc-more:focus-within .desc-pop { display: block; }
/* Product cards normally clip decorative effects at their rounded edge. Raise
   the active card and release that clipping only while its description opens. */
.product-card:has(.desc-more:hover),
.product-card:has(.desc-more:focus),
.product-card:has(.desc-more:focus-within) { overflow: visible; z-index: 200; }
.preorder-product:has(.desc-more:hover)::after,
.preorder-product:has(.desc-more:focus)::after,
.preorder-product:has(.desc-more:focus-within)::after { display: none; }
.product-alert-link {
  align-self: flex-start; margin-top: 10px; padding: 6px 10px;
  border: 1px solid rgba(212,161,51,.65); border-radius: 999px;
  color: var(--gold-2); background: rgba(212,161,51,.06);
  font-size: 11px; line-height: 1.2; font-weight: 750; text-decoration: none;
}
.product-alert-link:hover { color: #16130a; background: var(--gold-2); border-color: var(--gold-2); }
.product-price { font-size: 20px; font-weight: 800; color: var(--gold-2); margin-bottom: 14px; }
.retail-strike { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 15px; margin-right: 6px; }
.tax-note { font-size: 11px; color: var(--muted); font-weight: 500; }
.product-actions { display: flex; gap: 10px; align-items: stretch; margin-top: auto; }
/* When an unavailable card has a standalone alert action instead of cart
   controls, that action occupies the same bottom position. */
.product-body > .oos-note + .btn-outline { margin-top: auto; align-self: flex-start; }
.qty-select { display: flex; height: 42px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-btn {
  width: 32px; background: var(--panel-2); border: none; color: var(--text);
  font-size: 16px; cursor: pointer;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  width: 40px; background: var(--panel); border: none; color: var(--text);
  text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-buy { flex: 1; padding: 10px 8px; font-size: 14px; }
/* fixed heights + flex centering keep every card's buttons identical */
.btn-add {
  flex: 1; height: 42px; padding: 0 10px; font-size: 12.5px; letter-spacing: .4px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #16130a; box-shadow: 0 4px 12px rgba(212, 161, 51, .25);
}
.btn-add:hover { color: #16130a; }
.btn-buy-now {
  width: 100%; height: 54px; margin-top: 10px; padding: 0 8px; font-size: 14.5px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.btn-buy-now:hover { color: var(--gold-2); border-color: var(--gold); }
.btn-buy-now:hover { color: var(--gold-2); border-color: var(--gold-2); }
.btn-add.added { background: #27ae60; color: #fff; box-shadow: none; }
.shop-more { text-align: center; margin-top: 44px; }

/* out of stock: grey the whole photo area, padding included (badge stays red) */
.product-card.oos .product-img { background: #c7c7c7; }
.product-card.oos .product-img img { filter: grayscale(.8) brightness(.78); }
.product-card.oos:hover { border-color: var(--border); }
.oos-badge {
  position: absolute; top: 52px; left: 10px;
  background: var(--red); color: #fff; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.sale-corner-tag {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  background: #d62839; color: #fff; border: 1px solid rgba(255,255,255,.7);
  padding: 5px 9px; border-radius: 6px;
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.product-card .sale-corner-tag { top: 58px; right: 10px; }
.oos-note {
  background: rgba(230, 57, 70, .08); border: 1px solid rgba(230, 57, 70, .4);
  color: #f1948a; border-radius: 10px; padding: 11px 12px;
  font-size: 13px; font-weight: 600; text-align: center;
}
/* pre-order */
.preorder-badge { background: var(--blue); }
.preorder-note {
  background: rgba(47, 155, 227, .1); border: 1px solid rgba(47, 155, 227, .4);
  color: #8fc6ec; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 600; text-align: center;
}
.preorder-tag {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle;
}
.sale-note {
  display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 20px;
  background: rgba(88,214,141,.14); border: 1px solid rgba(88,214,141,.55);
  color: #58d68d; font-size: 11px; font-weight: 800; letter-spacing: .35px;
  text-transform: uppercase;
}
.sale-note-large { font-size: 13px; padding: 6px 12px; }
.sale-tag {
  display: inline-block; background: #58d68d; color: #07150d;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle;
}

/* ------------------------------ Contact ------------------------------ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); margin: 18px 0 24px; }
.contact-list { list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.contact-mascot { width: 180px; margin-top: 32px; border-radius: var(--radius); }
.contact-form {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--stone); margin-bottom: 22px; font-size: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold);
}
.captcha-row label strong { color: var(--gold-2); }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #58d68d; }
.form-status.err { color: var(--red); }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: var(--bg-2); border-top: 3px solid var(--gold);
  padding: 34px 0; text-align: center;
}
.footer-logo { width: 200px; margin: 0 auto 18px; }
.footer-links { margin: 12px 0; }
.footer-fine { color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer-resources { margin:0 auto 22px;padding:18px 20px;max-width:960px;border-top:1px solid rgba(212,161,51,.28);border-bottom:1px solid rgba(212,161,51,.18);text-align:center; }
.footer-resources strong { display:block;margin-bottom:10px;color:var(--stone);font-size:13px;letter-spacing:1.1px;text-transform:uppercase; }
.footer-resources div { display:flex;justify-content:center;gap:10px 24px;flex-wrap:wrap; }
.footer-resources a { color:var(--gold-2);font-size:13px;font-weight:650; }

/* Purchase confidence */
.trust-strip { background:#101218; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:28px 0 22px; }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.trust-item { text-align:center; padding:10px; }
.trust-item .trust-icon { display:block; color:var(--gold); font-size:25px; margin-bottom:7px; }
.trust-item strong,.trust-item small { display:block; }
.trust-item small { color:var(--muted); font-size:12px; margin-top:3px; }
.payment-marks { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px; margin-top:18px; }
.pay-mark { width:54px; height:34px; border-radius:5px; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#111; font-weight:900; font-family:Arial,sans-serif; line-height:.8; }
.pay-mark.visa { color:#1434cb; font-style:italic; font-size:17px; }
.pay-mark.amex { color:#fff; background:#1877b7; font-size:8px; text-align:center; letter-spacing:.2px; }
.pay-mark.mc { position:relative; }
.pay-mark.mc i,.pay-mark.mc b { width:20px;height:20px;border-radius:50%;position:absolute;top:7px; }
.pay-mark.mc i { background:#eb001b;left:11px; }.pay-mark.mc b { background:#f79e1b;right:11px;opacity:.88; }
.square-wordmark { color:var(--muted); margin-left:10px; font-size:13px; }.square-wordmark strong{color:#fff;font-size:16px;}
.policy-page { max-width:900px; }.policy-page .panel{margin:18px 0;scroll-margin-top:150px}.policy-page h2{color:var(--gold);margin-bottom:12px}.policy-page p{color:var(--muted);line-height:1.75;margin:9px 0}.policy-nav{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin:20px 0}.policy-nav a{border:1px solid var(--border);border-radius:99px;padding:8px 16px}.policy-updated{text-align:center!important;margin:28px 0!important}
.low-stock { color:#ffb84d; font-size:13px; font-weight:800; margin:8px 0; }
.order-limit-note { color:var(--gold-2); font-size:12px; font-weight:800; margin:7px 0; }
.gallery-thumbs{display:flex;gap:9px;overflow-x:auto;margin-top:12px;padding:4px}.gallery-thumb{width:70px;height:70px;flex:0 0 70px;border:2px solid transparent;border-radius:8px;background:#fff;padding:2px;cursor:pointer}.gallery-thumb.active{border-color:var(--gold)}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.review-summary{display:block;margin:8px 0;color:var(--muted);font-size:13px}.review-summary span,.review-stars{color:#f5b942;letter-spacing:2px}.reviews-section{margin-top:42px;scroll-margin-top:140px}.reviews-section h2{margin-bottom:16px}.review-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.review-card h3{margin:8px 0}.review-card p{color:var(--muted);line-height:1.6}.review-card footer{margin-top:14px;font-size:13px}.review-card footer span{color:#58d68d;margin-left:8px}.review-empty{text-align:center;color:var(--muted)}.review-submit-panel{max-width:680px;margin-bottom:18px;border-color:var(--gold)}.review-submit-panel h3{margin-bottom:6px}.review-submit-panel select,.review-submit-panel input,.review-submit-panel textarea{width:100%;background:var(--bg-2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:10px;font:inherit}.review-pending-note{margin-bottom:18px;border-color:#58d68d;color:#58d68d}
.consignment-account-grid{display:grid;gap:16px}.consignment-account-card{display:grid;grid-template-columns:150px 1fr;gap:20px}.consignment-account-card>img{width:150px;height:150px;object-fit:contain;background:#fff;border-radius:10px}.consignment-edit{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:14px 0}.consignment-edit label{font-size:12px;color:var(--muted)}.consignment-edit input{background:var(--bg-2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:9px}.consignment-edit .btn{grid-column:1/-1}.consignment-delete{border-color:var(--red)!important;color:#f1948a!important}.consignment-submit{margin-bottom:26px}@media(max-width:650px){.consignment-account-card{grid-template-columns:1fr}.consignment-account-card>img{width:100%;height:230px}.consignment-edit{grid-template-columns:1fr}}
.consignment-page{max-width:1050px}.consignment-page .page-sub{max-width:680px}.consignment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.consignment-summary .panel{margin:0;padding:20px 22px;position:relative;overflow:hidden}.consignment-summary .panel:after{content:"";position:absolute;right:-28px;bottom:-40px;width:110px;height:110px;border-radius:50%;background:rgba(212,161,51,.07);pointer-events:none}.consignment-summary .hint{margin:0 0 5px;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800}.consignment-summary strong{font-size:27px;line-height:1.1;color:var(--stone)}.consignment-summary .consignment-paid{color:#58d68d}.consignment-summary .consignment-outstanding{color:var(--gold-2)}.consignment-page>.panel{margin-top:20px;margin-bottom:0}.consignment-page>.panel h2{font-size:20px;margin-bottom:20px}.consignment-payment-panel{border-color:rgba(212,161,51,.45);box-shadow:0 12px 28px rgba(0,0,0,.16)}.consignment-section{overflow:hidden}.consignment-section h2{display:flex;align-items:center;gap:12px}.consignment-section h2:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,rgba(212,161,51,.65),transparent)}.consignment-table-wrap{overflow-x:auto;margin:0 -6px}.consignment-table{width:calc(100% - 12px);margin:0 6px;border-collapse:separate;border-spacing:0;min-width:650px}.consignment-table th{padding:11px 14px;text-align:left;color:var(--gold-2);font-size:11px;text-transform:uppercase;letter-spacing:.08em;background:rgba(12,14,18,.55);border-top:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap}.consignment-table th:first-child{border-radius:9px 0 0 0}.consignment-table th:last-child{border-radius:0 9px 0 0}.consignment-table td{padding:16px 14px;border-bottom:1px solid rgba(44,49,64,.8);color:var(--text);vertical-align:middle}.consignment-table tbody tr:last-child td{border-bottom:0}.consignment-table tbody tr:hover td{background:rgba(255,255,255,.025)}.consignment-order-id{font-weight:800;color:var(--stone);white-space:nowrap}.consignment-products{min-width:240px;color:var(--stone)}.consignment-date{white-space:nowrap;color:var(--muted)}.consignment-amount{font-weight:800;color:var(--gold-2);white-space:nowrap}.consignment-status{white-space:nowrap}.consignment-empty{padding:10px 0 4px}.payment-history-table{min-width:580px}
@media(max-width:700px){.consignment-summary{grid-template-columns:1fr}.consignment-page>.panel{padding:22px 16px}.consignment-table{min-width:620px}.consignment-table th,.consignment-table td{padding-left:11px;padding-right:11px}}
@media(max-width:700px){.trust-grid{grid-template-columns:repeat(2,1fr)}.square-wordmark{width:100%;text-align:center;margin:5px 0 0}.review-list{grid-template-columns:1fr}}
.partner-mode-switch{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;background:rgba(212,161,51,.08);border:1px solid var(--gold);border-radius:12px;padding:14px;margin:18px auto 24px}.partner-mode-switch small{width:100%;text-align:center;color:var(--muted)}
.main-nav.account-main-nav{gap:10px}.main-nav.account-main-nav>a{position:static;transform:none}.main-nav.account-main-nav>a.account-active{color:var(--gold-2);font-weight:800;background:rgba(212,161,51,.12);box-shadow:inset 0 -2px 0 var(--gold)}.main-nav.account-main-nav>a.account-signout{display:inline-flex;align-items:center;gap:7px;color:var(--stone);font-weight:800}.main-nav.account-main-nav>a.account-signout:hover{color:#fff;background:rgba(255,255,255,.1)}.main-nav.account-main-nav>a.account-signout svg{width:20px;height:20px}
.preorder-product{position:relative;overflow:hidden;border-color:var(--gold)!important;box-shadow:0 0 22px rgba(212,161,51,.22)}.preorder-product:after{content:"";position:absolute;inset:-30%;pointer-events:none;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.42) 50%,transparent 58%);transform:translateX(75%);animation:preorder-swipe 4.5s ease-in-out infinite}.preorder-glimmer{background:linear-gradient(100deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%) 150% 0/250% 100% no-repeat,rgba(212,161,51,.14);animation:gold-shine 4.5s ease-in-out infinite}@keyframes preorder-swipe{0%,58%{transform:translateX(75%)}85%,100%{transform:translateX(-75%)}}

/* ------------------------------ Cart / Checkout ------------------------------ */
.page-wrap { max-width: 920px; margin: 0 auto; padding: 48px 20px 90px; }
.page-title { font-size: clamp(24px, 4vw, 34px); color: var(--stone); text-transform: uppercase; margin-bottom: 8px; }
.page-sub { color: var(--muted); margin-bottom: 34px; }
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.panel h2 { font-size: 18px; color: var(--stone); margin-bottom: 18px; }
.panel h2 .step-num {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--bg-2); align-items: center; justify-content: center;
  font-size: 14px; margin-right: 10px; font-family: 'Inter', sans-serif;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; color: var(--gold); font-size: 13px; text-transform: uppercase; padding: 8px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.cart-remove {
  background: rgba(230, 57, 70, .12); border: 1px solid rgba(230, 57, 70, .5);
  color: var(--red); font-size: 16px; cursor: pointer;
  width: 38px; height: 38px; border-radius: 10px; flex: none;
}
.cart-remove:hover { background: rgba(230, 57, 70, .3); }
/* flexible cart rows: wrap gracefully on narrow screens so nothing is cut off */
.cart-line {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-line-info { flex: 1 1 170px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.cart-line-info strong { color: var(--stone); font-size: 15px; }
.cart-line-price { color: var(--muted); font-size: 13px; }
.cart-line-ctrl { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cart-line-total { font-weight: 800; color: var(--gold-2); min-width: 74px; text-align: right; }
@media (max-width: 520px) {
  .cart-line-ctrl { width: 100%; margin-left: 0; justify-content: space-between; }
}
.promo-row { display: flex; gap: 10px; margin-bottom: 6px; }
.promo-row input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 11px 14px; font-size: 15px; text-transform: uppercase;
}
.promo-row input:focus { outline: none; border-color: var(--gold); }
.promo-row .btn { padding: 11px 20px; }
.totals { text-align: right; margin-top: 16px; font-size: 15px; }
.totals .discount { color: #58d68d; }
.totals .sale-total { color: #58d68d; }
.totals .grand { font-size: 22px; font-weight: 800; color: var(--gold-2); }
.option-cards { display: grid; gap: 12px; }
.option-card {
  display: flex; align-items: flex-start; gap: 14px; background: var(--bg-2);
  border: 2px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: pointer;
  transition: border-color .15s;
}
.option-card:hover { border-color: var(--muted); }
.option-card.selected { border-color: var(--gold); background: rgba(212, 161, 51, .06); }
.option-card input { margin-top: 4px; accent-color: var(--gold); }
.option-card .opt-label { font-weight: 700; color: var(--stone); }
.option-card .opt-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.option-card .opt-price { margin-left: auto; font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.option-card.disabled { opacity: .4; pointer-events: none; }
.split-shipping-choice { margin-top: 18px; padding: 16px; border: 1px solid rgba(212,161,51,.45); border-radius: 12px; background: rgba(212,161,51,.05); }
.split-shipping-choice h3 { margin: 0 0 4px; color: var(--gold-2); font-size: 17px; }
.split-shipping-choice > .hint { margin: 0 0 12px; }
.split-shipping-choice .option-cards { gap: 10px; }
.split-shipping-choice .option-card { margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.info-note {
  background: rgba(47, 155, 227, .1); border: 1px solid rgba(47, 155, 227, .4);
  color: #bfe0f7; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 14px 0;
}
.warn-note {
  background: rgba(212, 161, 51, .08); border: 1px solid rgba(212, 161, 51, .45);
  color: #f3dfae; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 14px 0;
}
#card-container { background: #fff; border-radius: 10px; padding: 12px; margin-top: 10px; }
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 0 0 10px 10px;
  max-height: 230px; overflow-y: auto; display: none;
}
.autocomplete-list div { padding: 10px 14px; cursor: pointer; font-size: 14px; }
.autocomplete-list div:hover { background: var(--border); }
.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart .big { font-size: 54px; }

/* ------------------------------ Portal / simple pages ------------------------------ */
.status-pill {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.st-entered { background: rgba(47, 155, 227, .15); color: #6db9ec; border: 1px solid #2f9be3; }
.st-picked { background: rgba(212, 161, 51, .15); color: var(--gold-2); border: 1px solid var(--gold); }
.st-shipped { background: rgba(155, 89, 182, .15); color: #c39bd3; border: 1px solid #9b59b6; }
.st-completed { background: rgba(88, 214, 141, .15); color: #58d68d; border: 1px solid #27ae60; }
.st-cancelled { background: rgba(230, 57, 70, .12); color: #f1948a; border: 1px solid var(--red); }
.st-unknown { background: rgba(149, 165, 166, .14); color: #b8c2c3; border: 1px solid #7f8c8d; }
.cancel-flag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 20px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.admin-order-item { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 0 0 7px; min-width: 220px; }
.admin-order-item:last-child { margin-bottom: 0; }
.admin-item-status-form { margin: 0; }
.admin-item-status-form .btn { padding: 3px 7px; font-size: 10px; white-space: nowrap; }

/* Keep wide-desktop cards compact enough to view as a complete product tile. */
@media (min-width: 1200px) {
  .shop-catalog-page .header-top { padding: 8px 0 6px; }
  .shop-catalog-page .brand-logo { height: 116px; }
  .shop-catalog-page .main-nav { gap: 22px; padding: 7px 20px; font-size: 13px; }
  .shop-catalog-page .site-header.shrink .brand-logo { height: 76px; }
  .shop-catalog-page .site-header.shrink .nav-cart { width: 58px; height: 58px; }
  .shop-catalog-page .section { padding-top: 34px; padding-bottom: 38px; }
  .shop-catalog-page .page-title { font-size: 27px; }
  .product-img { padding-top: 82%; }
  .product-img img { padding: 52px 12px 10px; }
  .product-body { padding: 14px; }
  /* Let ordinary descriptions use meaningful space without allowing one very
     long description to make every card in its row excessively tall. */
  .product-desc-wrap { max-height: 132px; min-height: 38px; margin-bottom: 8px; }
  /* Busy cards have controls and notices competing for vertical room. */
  .preorder-product .product-desc-wrap { max-height: 62px; }
  .product-price { font-size: 18px; margin-bottom: 10px; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 960px) {
  .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* sticky only on mobile, so the pinned cart button follows the scroll */
  .site-header { position: sticky; top: 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); flex-direction: column; padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
.main-nav.open { display: flex; }
  .main-nav > .nav-login, .main-nav > .nav-partner { position: static; transform: none; }
  .nav-toggle { display: block; left: 16px; right: auto; min-width:44px; min-height:44px; }
  .nav-cart { right: 14px; }
  .cat-filters { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;justify-content:stretch;gap:8px;max-width:100%; }
  .cat-menu, .cat-filters > .cat-btn { width:auto;min-width:0; }
  .cat-filters > .cat-btn, .cat-menu > .cat-btn { width:100%;min-height:40px;justify-content:center;border-radius:9px;padding:8px 10px;font-size:12px;text-align:center; }
  .cat-menu > .cat-btn.cat-menu-toggle { justify-content:space-between; }
  .cat-menu.open { grid-column:1/-1; }
  .cat-submenu { position:static;min-width:0;margin-top:5px;box-shadow:none; }
  .cat-submenu a { white-space: normal; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand-logo { height: 96px; width: auto; }
  .portal-brand-context { margin-left:8px; padding:7px 9px; gap:6px; }
  .portal-brand-copy strong { font-size:12px; letter-spacing:.8px; }
  .portal-brand-copy small { font-size:8px; letter-spacing:1px; margin-top:3px; }
  .rips-brand-mark { min-width:50px; padding:5px 5px 4px; font-size:13px; }
  .rips-brand-mark sup { font-size:8px; }
  .header-top { padding: 10px 0 8px; }
}
@media (max-width: 520px) {
  /* shop and Instagram stay 2-across on phones; cards compact to fit */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ig-profile-embed { padding:4px; }
  .ig-profile-embed iframe { height:560px; }
  .product-body { padding: 12px; }
  .product-name-bar { font-size: 15px; height: 46px; padding: 4px 8px; }
  .product-desc { font-size: 12px; }
  .product-price { font-size: 16px; }
  .product-actions { flex-direction: column; gap: 8px; }
  .qty-select { width: 100%; justify-content: center; height: 46px; }
  .qty-input { flex: 1; }
  .btn-add { width: 100%; height: 52px; font-size: 14.5px; }
  .btn-buy-now { height: 52px; font-size: 14.5px; }
  .desc-pop { position: fixed; left: 16px; right: 16px; bottom: 18px; width: auto; max-height: 55vh; }
  .hero h1 span { white-space: normal; overflow-wrap: anywhere; }
  .contact-form { padding: 22px 18px; }
}
.account-switch { margin:16px 0 0; color:var(--muted); font-size:13px; text-align:center; }
.account-switch a { color:var(--gold-2); font-weight:700; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 18px; }
.saved-card-list { display:grid; gap:10px; }
.saved-card-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.025); }
.saved-card-row strong { color:var(--stone); }
@media(max-width:700px) {
  .grid-3 { grid-template-columns:1fr; }
  .saved-card-row { align-items:flex-start; }
}
.backorder-badge { background: #e67e22; }
.free-ship-progress { margin:18px 0 4px;padding:14px 16px;border:1px solid rgba(212,161,51,.45);border-radius:10px;background:rgba(212,161,51,.08); }
.free-ship-progress-copy { margin-bottom:8px;text-align:center;color:var(--stone);font-size:14px; }
.free-ship-progress-copy strong { color:var(--gold-2); }
.free-ship-track { height:10px;overflow:hidden;border-radius:999px;background:#2c3140; }
.free-ship-track span { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),var(--gold-2));transition:width .25s ease; }
.cart-reminder-consent { display:flex;align-items:flex-start;gap:8px;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.45;cursor:pointer; }
.cart-reminder-consent input { width:auto;flex:0 0 auto;margin-top:2px; }
.product-alert-box { max-width:380px;margin-top:14px;padding:14px;border:1px solid rgba(212,161,51,.4);border-radius:10px;background:rgba(212,161,51,.07); }
.product-alert-box strong { display:block;color:var(--stone);margin-bottom:8px; }
.product-alert-row { display:flex;gap:8px; }
.product-alert-row input { min-width:0;flex:1;padding:11px;border-radius:7px;border:1px solid var(--border);background:#111318;color:var(--stone);font-size:16px; }
.product-alert-status { min-height:18px;margin:7px 0 0;color:var(--muted);font-size:12px; }
.about-grid { display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.72fr);gap:clamp(48px,7vw,96px);align-items:start;max-width:1180px;margin:0 auto;padding:30px 0 50px; }
.about-grid > div:first-child { display:grid;gap:18px; }
.about-grid h1,.about-grid h2,.about-grid p { margin:0; }
.about-grid h2 { margin-top:18px;font-size:clamp(22px,2.2vw,30px);color:var(--stone); }
.about-grid p { line-height:1.8; }
.about-grid > div:last-child { position:sticky;top:170px;display:grid;gap:12px; }
.about-photo { width:100%;border-radius:14px;border:1px solid var(--border); }
@media(max-width:700px){.product-alert-row{flex-direction:column}.about-grid{grid-template-columns:1fr;gap:34px;padding:12px 0 30px}.about-grid>div:last-child{position:static}}

/* Search-intent and Chinese-language landing pages. */
.intent-hero { padding:clamp(58px,8vw,110px) 0;background:radial-gradient(circle at 75% 25%,rgba(212,161,51,.18),transparent 34%),linear-gradient(180deg,#13171e,#0d0f14);border-bottom:1px solid rgba(212,161,51,.28); }
.intent-hero .container { max-width:980px;text-align:center; }
.intent-kicker { color:var(--gold-2);font-size:12px;font-weight:800;letter-spacing:2.2px;text-transform:uppercase;margin-bottom:15px; }
.intent-hero h1 { font-size:clamp(34px,5vw,68px);line-height:1.05;margin:0 0 22px;color:var(--stone); }
.intent-hero p:not(.intent-kicker) { max-width:820px;margin:0 auto;color:var(--muted);font-size:clamp(16px,1.8vw,20px);line-height:1.75; }
.intent-actions { display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px; }
.intent-columns { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
.intent-columns article,.intent-copy .container,.resource-section { padding:clamp(24px,3vw,38px);border:1px solid var(--border);border-radius:14px;background:var(--panel); }
.intent-columns h2,.intent-copy h2,.resource-section h2 { color:var(--stone);margin:0 0 12px; }
.intent-columns p,.intent-copy p,.resource-section p,.resource-section li { color:var(--muted);line-height:1.75; }
.intent-product-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px; }
.intent-product { display:grid;grid-template-rows:180px auto auto;gap:8px;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:12px;color:var(--stone); }
.intent-product img { width:100%;height:180px;object-fit:contain;background:#fff;border-radius:8px; }
.intent-product span { color:var(--gold-2);font-weight:800; }
.zh-nav .nav-login { display:none; }
.resource-page { max-width:1050px; }
.resource-section { margin-bottom:22px; }
.resource-table-wrap { overflow-x:auto; }
.resource-table td:first-child { font-size:18px;font-weight:800;color:var(--gold-2);white-space:nowrap; }
@media(max-width:800px){.intent-columns{grid-template-columns:1fr}.intent-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intent-product{grid-template-rows:130px auto auto}.intent-product img{height:130px}}

/* iPhone Safari responsive overflow fixes */
/* Clip horizontal spill without creating a scroll container that disables the sticky header. */
html, body { max-width: 100%; overflow-x: clip; }
.page-wrap, .container, .panel, #checkoutFlow, .grid-2, .grid-3,
.form-row, .option-card, .cart-line, .cart-line-info, .cart-line-ctrl { min-width: 0; }
.page-wrap { width: 100%; }
.page-title, .page-sub, .panel h2, .info-note, .warn-note, .hint, .totals { overflow-wrap: anywhere; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.form-row input, .form-row select, .form-row textarea { width: 100%; max-width: 100%; min-width: 0; }
.option-card > span:not(.opt-price) { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.option-card .opt-label, .option-card .opt-desc { display: block; overflow-wrap: anywhere; word-break: break-word; }
.option-card .opt-price { flex: 0 1 auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.cart-line-info strong, .cart-line-price { overflow-wrap: anywhere; word-break: break-word; }
.cart-line-total { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.promo-row, .shop-search-wrap { min-width: 0; }
.promo-row input, .shop-search { min-width: 0; max-width: 100%; }
#card-container { width: 100%; max-width: 100%; min-width: 0; }
.saved-card-option, .saved-card-option span, .saved-card-row { min-width: 0; overflow-wrap: anywhere; }
.saved-card-row { flex-wrap: wrap; }
.product-card, .product-body, .product-desc-wrap, .product-desc { min-width: 0; }
.product-price { overflow-wrap: anywhere; }
.btn-add, .btn-buy-now { max-width: 100%; white-space: normal; line-height: 1.2; }

@media (max-width: 700px) {
  .brand { min-width: 0; max-width: calc(100vw - 150px); }
  .brand-logo { max-width: 100%; }
  .portal-brand-context { min-width: 0; max-width: calc(100vw - 120px); white-space: normal; }
  .portal-brand-copy { min-width: 0; }
  .portal-brand-copy strong, .portal-brand-copy small { overflow-wrap: anywhere; }
  .shop-search-wrap { width: 100%; flex-direction: column; }
  .shop-search-wrap .btn { width: 100%; }
  .page-wrap { padding: 30px 14px 72px; }
  .panel { padding: 20px 14px; }
  .panel h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .panel h2 .step-num { flex: 0 0 auto; margin-right: 0; }
  .panel h2 .btn { float: none !important; margin-left: auto; }
  .option-card { flex-wrap: wrap; gap: 10px; padding: 13px 12px; }
  .option-card > span:not(.opt-price) { flex-basis: calc(100% - 38px); }
  .option-card .opt-price { margin-left: 38px; text-align: left; }
  .split-shipping-choice { padding: 12px; }
  .promo-row { flex-wrap: wrap; }
  .promo-row input { flex: 1 1 100%; }
  .promo-row .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
  #cartActions { flex-wrap: wrap !important; }
  #cartActions .btn { width: 100%; }
  .page-title { font-size: clamp(24px, 8vw, 32px); }
  .page-sub { font-size: 14px; margin-bottom: 24px; }
  .form-row input, .form-row select, .form-row textarea,
  .promo-row input, .qty-input { font-size: 16px; }
  .pdp > * { min-width: 0; }
  .pdp-title, .contact-list li, .footer-fine, .cart-table td { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .header-top { padding-left:70px; padding-right:70px; }
  .brand-logo { height:82px; }
  .nav-cart { right:8px; width:70px; height:70px; }
  .nav-cart .cart-icon { width:24px; height:24px; }
  .cart-total { font-size:12px; }
  .panel { padding: 18px 12px; }
  .option-card { padding: 12px 10px; }
  .option-card > span:not(.opt-price) { flex-basis: calc(100% - 34px); }
  .option-card .opt-price { margin-left: 34px; }
}

/* Compact mobile cart controls and keep monetary values intact. */
@media (max-width: 520px) {
  .cart-line { gap: 10px; }
  .cart-line-price,
  .cart-line-total { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  .cart-line-ctrl {
    display: grid; grid-template-columns: auto minmax(64px, 1fr) 38px;
    width: 100%; gap: 10px; justify-content: initial;
  }
  .cart-line-ctrl .qty-select { width: 126px; height: 42px; justify-content: initial; }
  .cart-line-ctrl .qty-btn { width: 42px; min-width: 42px; }
  .cart-line-ctrl .qty-input { width: 40px; min-width: 40px; flex: 0 0 40px; }
  .cart-line-total { min-width: 64px; justify-self: end; }
}
