:root {
  --bg-main: #000000;
  --bg-surface: #0b0b0b;
  --bg-card: #141414;
  --accent: #ff6b00;
  --accent-soft: rgba(255, 107, 0, 0.38);
  --text-main: #ffffff;
  --text-muted: #a8a8a8;
  --border-subtle: #262626;
  --radius: 12px;
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.9);
  --font-sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111111 0, #000000 55%, #000000 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* HEADER */

.site-header {
  background: linear-gradient(90deg, #050505, #141414);
  border-bottom: 1px solid #181818;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.header-left{display:flex;align-items:center;gap:22px;flex-wrap:nowrap;min-width:0;}

.brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-decoration:none;min-width:0;}
.brand-logo{height:44px;width:auto;max-width:420px;display:block;image-rendering:auto;filter: drop-shadow(0 1px 0 rgba(0,0,0,.85)) drop-shadow(0 0 2px rgba(0,0,0,.75));}
.brand-tagline{margin:0;font-size:12px;color:var(--accent);letter-spacing:.06em;line-height:1.1;white-space:nowrap;}

.main-nav{display:flex;align-items:center;gap:14px;font-size:1rem;white-space:nowrap;flex-wrap:nowrap;}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-button {
  background: transparent;
  border: none;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--accent);
  font-size: 0.95rem;
}

.header-cta:hover { background: rgba(255, 107, 0, 0.18); }

/* HERO */

.hero { padding: 40px 0 26px; }

.hero h1 { font-size: 2rem; margin: 0 0 10px; }

.hero-subtitle {
  color: #d0d0d0;
  max-width: 680px;
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

.hero-note { font-size: 0.86rem; color: var(--text-muted); }

/* BUTTONS */

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #090909;
  box-shadow: 0 10px 32px rgba(255, 107, 0, 0.6);
}

.btn-primary:hover { background: #ff7e1f; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: #2e2e2e;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-secondary {
  background: #181818;
  color: var(--text-main);
  border-color: #303030;
}

.btn-secondary:hover { background: #202020; border-color: var(--accent); }

.center-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* SECTIONS */

.section { padding: 24px 0 16px; }
.section-title { font-size: 1.35rem; margin: 0 0 14px; }

/* CATEGORY GRID */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(255, 107, 0, 0.22), transparent 55%), #050505;
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  border: 1px solid #262626;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, transparent 40%),
    linear-gradient(315deg, rgba(255, 107, 0, 0.08) 0, transparent 50%);
  opacity: 0.55;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

.category-icon { position: relative; font-size: 1.3rem; margin-bottom: 6px; }
.category-name { position: relative; font-weight: 650; margin-bottom: 4px; }
.category-desc { position: relative; font-size: 0.86rem; color: var(--text-muted); }

/* BANNERS */

.section-banners { padding-top: 8px; }

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  border: 1px solid #262626;
  background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.32), transparent 55%), #060606;
  box-shadow: var(--shadow-soft);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0, rgba(0, 0, 0, 0.65) 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 7px);
  opacity: 0.95;
  pointer-events: none;
}

.banner-card h3, .banner-card p, .banner-card a { position: relative; }
.banner-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.banner-card p { margin: 0 0 8px; font-size: 0.88rem; color: var(--text-muted); }

.banner-link { font-size: 0.88rem; color: var(--accent); }
.banner-link:hover { text-decoration: underline; }

/* PRODUCT GRID */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.product-image {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  border: 1px dashed #333333;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow: hidden;
}

.product-image img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; padding: 10px; }

.product-title { font-size: 1rem; margin: 6px 0 2px; }
.product-title a:hover { color: var(--accent); }

.product-meta { font-size: 0.82rem; color: var(--text-muted); }

.specs-inline {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0 2px;
}

.specs-inline strong { color: var(--text-main); font-weight: 650; }

.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price { color: var(--accent); font-weight: 700; }
.product-compare { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }

.product-ship {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* CATEGORY HEADER / PAGINATION */

.category-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pagination { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.page-link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2e2e2e;
  background: #0b0b0b;
  color: var(--text-main);
  font-size: 0.9rem;
}
.page-link.active, .page-link:hover { border-color: var(--accent); color: var(--accent); }

/* PRODUCT DETAIL */

.product-detail {
  background: #0b0b0b;
  border: 1px solid #262626;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 18px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
}

.detail-image {
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #ffffff;
  overflow: hidden;
  height: 360px;
}

.detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image img { width: 100%; height: 100%; object-fit: contain; }

.detail-title { margin: 0 0 6px; font-size: 1.35rem; }
.detail-meta { color: var(--text-muted); margin: 0 0 10px; }
.detail-desc { color: var(--text-muted); line-height: 1.55; margin: 10px 0 12px; }

.detail-specs { border-top: 1px solid #1f1f1f; padding-top: 10px; margin-top: 10px; }
.detail-specs ul { padding-left: 18px; margin: 8px 0 0; color: var(--text-muted); }
.detail-specs li { margin-bottom: 4px; }

/* CONTACT */

.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 24px;
}

.contact-form {
  background: #090909;
  border-radius: var(--radius);
  border: 1px solid #262626;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
}

.form-field { margin-bottom: 12px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #363636;
  background: #050505;
  color: var(--text-main);
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus { outline: 1px solid var(--accent); }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.contact-aside {
  background: #070707;
  border-radius: var(--radius);
  border: 1px solid #262626;
  padding: 14px 16px 18px;
  font-size: 0.9rem;
}

.no-link { text-decoration: none !important; border-bottom: 0 !important; color: var(--text-muted); }

/* THANKS */

.thanks-card {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  background: #090909;
  border-radius: var(--radius);
  border: 1px solid #262626;
  box-shadow: var(--shadow-soft);
  padding: 22px 18px 20px;
}

/* FOOTER */

.site-footer {
  margin-top: 30px;
  background: #050505;
  border-top: 1px solid #161616;
  color: var(--text-main);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 16px 10px;
}

.footer-logo { height: 96px; width: auto; }
.footer-sub { font-size: 0.88rem; color: #d0d0d0; margin: 2px 0 8px; }
.footer-text { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0; }
.footer-text.small { font-size: 0.8rem; }
.disclaimer { margin-top: 6px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 3px; }

.footer-links a { font-size: 0.86rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding: 10px 0 14px;
  font-size: 0.82rem;
  color: #6b6b6b;
  border-top: 1px solid #101010;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .category-grid, .banner-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-container { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .category-grid, .banner-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-left { flex-direction: column; align-items: flex-start; }
}


/* Cart UI (v17) */
.header-right { display:flex; align-items:center; gap:12px; margin-right: 10px; }
.cart-button{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.cart-button:hover{ border-color: rgba(255,255,255,0.3); }
.cart-icon{ font-size: 18px; line-height: 1; }
.cart-count{
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff6b00;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  display:none;
  align-items:center;
  justify-content:center;
}
.cart-count.is-visible{ display:flex; }

.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 90;
}
.cart-overlay.is-open{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position: fixed;
  top:0; right:0;
  height: 100vh;
  width: min(420px, 92vw);
  background: #0f0f10;
  border-left: 1px solid rgba(255,255,255,0.12);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 100;
  display:flex;
  flex-direction: column;
}
.cart-drawer.is-open{ transform: translateX(0); }
.no-scroll{ overflow:hidden; }

.cart-header{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cart-title{ font-weight: 800; letter-spacing: .2px; }
.cart-close{
  background: transparent;
  border: 0;
  color:#fff;
  font-size: 18px;
  cursor:pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.cart-close:hover{ background: rgba(255,255,255,0.06); }

.cart-body{ padding: 12px 12px; overflow:auto; flex: 1; }
.cart-empty{ color: rgba(255,255,255,0.75); padding: 12px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 12px; }

.cart-lines{ display:flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cart-line{
  display:flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.cart-line-img{
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cart-line-img img{ width:100%; height:100%; object-fit: cover; }
.cart-img-ph{ width:100%; height:100%; }

.cart-line-main{ flex:1; min-width: 0; }
.cart-line-title{ font-weight: 800; margin-bottom: 4px; }
.cart-line-specs{ color: rgba(255,255,255,0.75); font-size: 12px; margin-bottom: 6px; }
.cart-line-meta{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.cart-line-price{ font-weight: 800; }
.cart-remove{
  background: transparent;
  border:0;
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  cursor:pointer;
  padding: 0;
}
.cart-remove:hover{ color:#fff; }

.cart-qty{ display:flex; align-items:center; gap: 8px; margin-top: 8px; }
.qty-btn{
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  color:#fff;
  cursor:pointer;
}
.qty-input{
  width: 64px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color:#fff;
  padding: 0 8px;
}

.cart-footer{
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: #0c0c0d;
}
.cart-subtotal-row{ display:flex; justify-content: space-between; margin-bottom: 6px; }
.cart-note{ color: rgba(255,255,255,0.72); font-size: 12px; margin-bottom: 10px; }

.cart-fields{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.cart-fields label{ display:flex; flex-direction: column; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.8); }
.cart-fields input, .cart-fields textarea{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color:#fff;
  padding: 10px 12px;
  font-size: 14px;
}
.cart-fields .full{ grid-column: 1 / -1; }

.btn-block{ width:100%; }


/* Cart icon in header */
.header-right{ display:flex; align-items:center; gap:10px; }
.cart-open{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor:pointer;
}
.cart-open:hover{ background: rgba(255,255,255,0.08); }
.cart-open-icon{ font-size: 18px; line-height: 1; }
.cart-count{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-size: 12px;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.7);
}
.cart-count.is-visible{ display:flex; }

/* Make cart footer usable on iPad: allow footer to scroll and keep actions reachable */
.cart-footer{
  max-height: 55vh;
  overflow: auto;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.cart-actions{
  position: sticky;
  bottom: 0;
  background: #0c0c0d;
  padding-top: 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.brand-tagline {
  color: #ff7a1a;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- v25 header+logo lock --- */
.brand-mark { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.brand-logo { height: 82px; width:auto; display:block; }
.footer-logo { height: 90px; width:auto; display:block; }
.brand-tagline { font-size: 12px; margin-top: 0; line-height: 1.05; color:#ff7a1a; letter-spacing: .6px; }
.footer-tagline { font-size: 11px; }

/* keep Shop/Contact inline */
.main-nav { display:flex !important; flex-direction:row !important; align-items:center !important; gap:16px !important; flex-wrap:nowrap !important; }
.main-nav a { white-space:nowrap; }

/* header spacing */
.site-header { padding: 10px 0 !important; }
.header-inner { align-items:center !important; }


/* v25 logo fix */
.brand-mark img{height:44px;width:auto;display:block;}
.header-tagline{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);opacity:.95;margin-top:-2px;}
.footer .brand-tagline{margin-top:2px;font-size:12px;color:var(--accent);letter-spacing:.06em;}
.header-inner{flex-wrap:nowrap;}
.main-nav{display:flex;align-items:center;gap:14px;font-size:1rem;white-space:nowrap;flex-wrap:nowrap;}

@media (max-width: 520px){
  .header-left{display:flex;align-items:center;gap:22px;flex-wrap:nowrap;min-width:0;}
  .brand-logo{width:170px;}
}


/* --- v26 logo/layout overrides --- */
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
.footer-logo{width:240px;max-width:80vw;height:auto;display:block;}
.footer-tagline{color:var(--accent);font-size:0.95rem;line-height:1;}



/* SHOP DROPDOWN (stable, no explosion) */
.nav-dropdown{ position: relative; display:flex; align-items:center; }
.nav-dropbtn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer;}
.nav-dropbtn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18); }
.caret{ font-size: 0.9em; opacity: .9; }

.dropdown-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #050505;
  border-radius: 12px;
  border: 1px solid #222222;
  box-shadow: var(--shadow-soft);
  padding: 6px 0;
  display: none;
  z-index: 200;
}
.dropdown-menu.open{ display:block; }

.dropdown-menu a{
  display:block;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.dropdown-menu a:hover{
  background: rgba(255, 107, 0, 0.14);
  color: var(--text-main);
}

@media (min-width: 860px){
  .nav-dropdown:hover .dropdown-menu{ display:block; }
}

.footer-address{
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.nav-dropdown .dropdown-menu.open{ display:block !important; }

.footer-small{ margin: 10px 0 0; }

/* Legal / simple pages */
.page{ padding: 34px 0 46px; }
.page-head h1{ margin: 0 0 8px; }
.page-card{
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}
.page-card h2{ margin: 18px 0 10px; font-size: 1.1rem; }
.page-list{ margin: 0 0 10px 18px; color: var(--text-muted); }
.page-list li{ margin: 8px 0; }

.product-short{
  margin: 6px 0 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Product tile image framing (mixed aspect ratios: wide laptops, tall desktops) */
.product-card .product-image{
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
}

/* Product detail image framing (contain, no cropping) */
.product-detail .product-image,
.product-detail-image,
.product-hero-image{
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 20px;
}
.product-detail .product-image img,
.product-detail-image img,
.product-hero-image img{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* v28 homepage refinements */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.hero-title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin:0 0 10px;
}
.hero-line{display:block;}
.hero-line-accent{color:#f3f3f3;}
.hero-subtitle{max-width:720px;}
.category-grid--v28{grid-template-columns:repeat(3,minmax(0,1fr));}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.section-link{
  color:var(--accent);
  font-size:0.95rem;
}
.section-link:hover{text-decoration:underline;}

.carousel-shell{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.carousel-arrow{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid #2e2e2e;
  background:#0f0f0f;
  color:#fff;
  cursor:pointer;
  font-size:1.3rem;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:border-color .16s ease, color .16s ease, transform .16s ease, background .16s ease;
}
.carousel-arrow:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:#161616;
  transform:translateY(-1px);
}
.product-carousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 32px) / 3);
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding-bottom:6px;
  scrollbar-width:none;
}
.product-carousel::-webkit-scrollbar{display:none;}
.product-carousel > .product-card{
  scroll-snap-align:start;
  min-width:0;
  height:100%;
}
.product-short{
  margin:0;
  color:var(--text-muted);
  font-size:0.88rem;
  line-height:1.45;
}

@media (max-width: 900px){
  .product-carousel{grid-auto-columns:calc((100% - 16px) / 2);}
}

@media (max-width: 640px){
  .category-grid--v28{grid-template-columns:minmax(0,1fr);}
  .carousel-shell{grid-template-columns:minmax(0,1fr);}
  .carousel-arrow{
    display:none;
  }
  .product-carousel{
    grid-auto-columns:84%;
  }
}


/* v29 polish */
#categories{scroll-margin-top:120px;}
.hero{padding:48px 0 28px;}
.hero-title{gap:8px;}
.hero-line{font-size:clamp(1.8rem, 3.8vw, 2.85rem);line-height:1.08;letter-spacing:-0.02em;font-weight:800;}
.hero-line-accent{color:#fff3eb;}
.hero-subtitle{font-size:1.03rem;line-height:1.55;margin-bottom:20px;max-width:760px;}
.hero-cta{margin-bottom:20px;}
.hero-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:none;width:100%;}
.hero-trust-item{display:flex;flex-direction:column;justify-content:center;min-height:104px;background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:14px 14px 12px;box-shadow:0 14px 34px rgba(0,0,0,0.38);}
.hero-trust-item strong{display:block;font-size:.9rem;color:#fff;margin-bottom:4px;letter-spacing:.01em;}
.hero-trust-item span{display:block;color:#bcbcbc;font-size:.88rem;line-height:1.4;}
.btn{font-weight:650;}
.btn-primary{box-shadow:0 12px 34px rgba(255, 107, 0, 0.48);}
.btn-primary:hover{box-shadow:0 18px 42px rgba(255,107,0,.58);}
.btn-ghost:hover{box-shadow:0 0 0 1px rgba(255,107,0,.28), 0 10px 24px rgba(255,107,0,.14);}
.category-grid--v28{gap:18px;}
.category-card{padding:18px 16px 18px;background:radial-gradient(circle at top left, rgba(255,107,0,.28), transparent 52%), linear-gradient(180deg, #0b0b0b 0%, #060606 100%);border-color:#2b2b2b;}
.category-card::after{content:"";position:absolute;inset:auto 0 0 0;height:2px;background:linear-gradient(90deg, transparent 0%, rgba(255,107,0,.85) 35%, transparent 100%);opacity:.55;pointer-events:none;}
.category-card:hover{transform:translateY(-4px);border-color:rgba(255,107,0,.42);box-shadow:0 0 0 1px rgba(255,107,0,.12), 0 18px 46px rgba(0,0,0,.88), 0 0 28px rgba(255,107,0,.12);}
.category-icon{font-size:1.5rem;margin-bottom:10px;}
.category-name{font-size:1.08rem;font-weight:750;margin-bottom:8px;}
.category-desc{font-size:.92rem;line-height:1.45;max-width:32ch;}
.category-cta{display:block !important;margin-top:12px;color:#ffd6bd;font-weight:650;}
.section{padding:28px 0 18px;}
.section-title{font-size:1.45rem;margin:0;}
.categories-section .section-title{margin-bottom:18px;}
.section-subtitle{margin:6px 0 0;color:var(--text-muted);font-size:.92rem;line-height:1.45;}
.section-head{align-items:end;}
.section-link{font-weight:650;}
.carousel-shell{gap:12px;}
.carousel-arrow{width:46px;height:46px;background:linear-gradient(180deg,#141414,#0e0e0e);box-shadow:0 10px 22px rgba(0,0,0,.38);}
.carousel-arrow:hover{box-shadow:0 12px 26px rgba(255,107,0,.18);}
.product-carousel{padding:4px 2px 8px;}
.product-carousel > .product-card{transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;}
.product-card{border-color:#272727;transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;}
.product-card:hover{transform:translateY(-4px);border-color:rgba(255,107,0,.42);box-shadow:0 0 0 1px rgba(255,107,0,.10), 0 18px 44px rgba(0,0,0,.92), 0 0 28px rgba(255,107,0,.14);}
.product-card:hover .product-title a{color:#ffd9c4;}
.product-card:hover .product-image{border-color:rgba(255,107,0,.35);box-shadow:inset 0 0 0 1px rgba(255,107,0,.08), 0 0 22px rgba(255,107,0,.08);}
.product-card .product-image img{transition:transform .28s ease;}
.product-card:hover .product-image img{transform:scale(1.035);}
.product-title{font-size:1.02rem;font-weight:720;line-height:1.3;}
.product-price{font-size:1.12rem;}
.product-actions .btn{flex:1 1 auto;min-width:140px;}
.product-carousel > .product-card{height:auto;}
@media (max-width: 900px){
  .hero-trust{grid-template-columns:1fr;max-width:620px;}
}
@media (max-width: 640px){
  #categories{scroll-margin-top:92px;}
  .hero{padding:34px 0 20px;}
  .hero-line{font-size:clamp(1.62rem, 8vw, 2.2rem);}
  .hero-subtitle{font-size:.98rem;}
  .section-title{font-size:1.28rem;}
}


/* v29c final polish */
.hero-trust{margin-top:6px;}
.categories-section{padding-top:34px;}
.categories-section .container{position:relative;}
.categories-section .section-title,
.section-head .section-title{position:relative;display:inline-block;}
.categories-section .section-title::after,
.section-head .section-title::after{
  content:"";
  display:block;
  width:68px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,107,0,.95), rgba(255,107,0,0));
}
.category-grid--v28{align-items:stretch;}
.category-card{
  min-height:228px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.category-desc{display:flex;flex-direction:column;flex:1;}
.category-cta{margin-top:auto;padding-top:14px;letter-spacing:.01em;}
.section{padding:34px 0 20px;}
.section-head{margin-bottom:20px;}
.section-subtitle{max-width:56ch;}
.carousel-shell{gap:14px;}
.carousel-arrow{
  width:48px;
  height:48px;
  border-color:#343434;
  background:linear-gradient(180deg,#171717,#101010);
  box-shadow:0 14px 26px rgba(0,0,0,.42);
}
.carousel-arrow:hover{
  border-color:rgba(255,107,0,.78);
  color:#ffd6bd;
  box-shadow:0 0 0 1px rgba(255,107,0,.14), 0 16px 30px rgba(0,0,0,.48), 0 0 24px rgba(255,107,0,.18);
}
.product-card{padding:15px 15px 17px;}
.product-title{font-size:1.04rem;margin-top:8px;}
.product-price-row{margin-top:2px;gap:10px;align-items:center;}
.product-price{
  font-size:1.22rem;
  font-weight:800;
  color:#ffb07a;
  letter-spacing:-.02em;
}
.product-compare{
  font-size:.84rem;
  color:#8d8d8d;
}
.product-actions{margin-top:8px;}
.product-actions .btn{min-height:42px;}
.product-card .btn-primary{box-shadow:0 10px 24px rgba(255,107,0,.28);}
.product-card .btn-primary:hover{box-shadow:0 14px 30px rgba(255,107,0,.38);}
@media (max-width: 900px){
  .categories-section{padding-top:28px;}
  .category-card{min-height:210px;}
}
@media (max-width: 640px){
  .categories-section{padding-top:24px;}
  .categories-section .section-title::after,
  .section-head .section-title::after{width:56px;margin-top:8px;}
  .category-card{min-height:auto;}
  .product-price{font-size:1.16rem;}
}


.section-subtitle {
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  margin: 10px 0 18px;
  line-height: 1.5;
}
.accessory-groups {
  display: grid;
  gap: 30px;
}
.accessory-group {
  padding-top: 8px;
}
.accessory-group-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}
.accessory-group-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,153,51,.95), rgba(255,153,51,.25));
}


/* v30b tightening */
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
.hero-cta .btn{min-height:44px;}
.categories-section .section-title{margin-bottom:22px;}


.badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

.badge-grade-a { background: #16a34a; }
.badge-grade-b { background: #ca8a04; color: #111111; }
.badge-grade-c { background: #2563eb; }
.badge-new { background: #0ea5e9; }
.badge-featured { background: #ea580c; }
.badge-open-box { background: #7c3aed; }


.related-products-section {
  margin-top: 24px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

.category-tile {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.category-text { width:50%; }
.category-image-wrap { width:45%; position:relative; }
.category-image-wrap img { max-width:100%; max-height:140px; object-fit:contain; z-index:2; position:relative; }
.category-placeholder {
  width:100%; height:140px;
  background:linear-gradient(135deg,#111,#1a1a1a);
  border-radius:10px;
  position:absolute; top:0; left:0; z-index:1;
}

/* FIX RELATED PRODUCTS WHITE */
.product-card {
  background:#fff !important;
}
.product-card img {
  background:#fff !important;
  object-fit:contain;
}


/* CATEGORY TILE FIX - image right, centered */
.category-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-text {
  width: 55%;
  z-index: 2;
}

.category-image-wrap.right {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-image-wrap.right img {
  max-width: 85%;
  max-height: 140px;
  object-fit: contain;
  opacity: 0.95;
}

/* PRODUCT TILE FIX - restore dark cards */
.product-card {
  background: #111 !important;
  color: #fff;
}

/* ONLY image container white */
.product-card img {
  background: #ffffff !important;
  padding: 10px;
  border-radius: 6px;
}

/* YOU MIGHT LIKE FIX */
.related-products .product-card {
  background: #111 !important;
}

.related-products .product-card img {
  background: #ffffff !important;
  padding: 10px;
  border-radius: 6px;
}


/* v30j category tile layout fix */
.category-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px;
}
.category-text {
  flex: 1 1 55% !important;
  width: auto !important;
  z-index: 2;
}
.category-image-wrap.right {
  flex: 0 0 42% !important;
  width: 42% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: relative;
  min-height: 150px;
}
.category-image-wrap.right img {
  display: block;
  max-width: 100% !important;
  max-height: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  position: relative !important;
  z-index: 2;
  background: transparent !important;
}
.category-image-wrap.right.is-empty::before {
  content: "";
  display: block;
  width: 84%;
  height: 140px;
  margin-left: auto;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(28,28,28,.92), rgba(18,18,18,.78));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

/* restore dark product cards */
.product-card,
.related-products .product-card {
  background: #111111 !important;
  color: #f2f2f2 !important;
}

/* white image frame only */
.product-image,
.related-products .product-image {
  background: #ffffff !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.product-image img,
.related-products .product-image img {
  background: #ffffff !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px !important;
  border-radius: 8px !important;
}

/* keep detail image behavior */
.detail-image img {
  object-fit: contain !important;
}

/* related section tagline spacing if needed */
.related-products-copy,
.related-subtitle {
  color: var(--text-muted);
}


/* v30l FINAL category card layout */
.category-card{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
}
.category-copy{
  order:1 !important;
  flex:1 1 56% !important;
  min-width:0 !important;
  position:relative !important;
  z-index:2 !important;
}
.category-image-wrap{
  order:2 !important;
  flex:0 0 38% !important;
  width:38% !important;
  min-height:140px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  position:relative !important;
  z-index:1 !important;
}
.category-image-wrap img{
  display:block !important;
  max-width:100% !important;
  max-height:145px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  background:transparent !important;
}
.category-image-wrap.is-empty::before{
  content:"" !important;
  display:block !important;
  width:85% !important;
  height:132px !important;
  margin-left:auto !important;
  border-radius:14px !important;
  background:linear-gradient(135deg, rgba(28,28,28,.96), rgba(18,18,18,.82)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04) !important;
}

/* restore dark cards but white image area only */
.product-card,
.related-products .product-card{
  background:#111111 !important;
  color:#f2f2f2 !important;
}
.product-image,
.related-products .product-image{
  background:#ffffff !important;
  border-radius:10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.product-image img,
.related-products .product-image img{
  background:#ffffff !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:10px !important;
  border-radius:8px !important;
}

/* keep product detail okay */
.detail-image img{
  object-fit:contain !important;
}

.category-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px;}
.category-copy{width:60%;}
.category-art{width:40%;display:flex;align-items:center;justify-content:flex-end;min-height:140px;}
.category-art img{max-width:100%;max-height:140px;object-fit:contain;}
.category-art.empty::before{content:"";width:80%;height:120px;background:linear-gradient(135deg,#1a1a1a,#111);border-radius:12px;display:block;margin-left:auto;}


/* v30n hard override for category cards */
.category-grid.category-grid--v28 .category-card,
.category-grid .category-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 38%) !important;
  align-items: center !important;
  gap: 18px !important;
  text-align: left !important;
}

.category-grid.category-grid--v28 .category-card .category-copy,
.category-grid .category-card .category-copy {
  grid-column: 1 !important;
  width: auto !important;
  order: 1 !important;
  min-width: 0 !important;
  align-self: center !important;
  justify-self: start !important;
}

.category-grid.category-grid--v28 .category-card .category-art,
.category-grid .category-card .category-art,
.category-grid.category-grid--v28 .category-card .category-image-wrap,
.category-grid .category-card .category-image-wrap {
  grid-column: 2 !important;
  width: 100% !important;
  order: 2 !important;
  min-height: 140px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  text-align: right !important;
}

.category-grid.category-grid--v28 .category-card .category-art img,
.category-grid .category-card .category-art img,
.category-grid.category-grid--v28 .category-card .category-image-wrap img,
.category-grid .category-card .category-image-wrap img {
  display: block !important;
  margin-left: auto !important;
  max-width: 100% !important;
  max-height: 145px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

.category-grid.category-grid--v28 .category-card .category-art.empty::before,
.category-grid .category-card .category-art.empty::before,
.category-grid.category-grid--v28 .category-card .category-image-wrap.is-empty::before,
.category-grid .category-card .category-image-wrap.is-empty::before {
  content: "" !important;
  display: block !important;
  width: 86% !important;
  height: 130px !important;
  margin-left: auto !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(28,28,28,.96), rgba(18,18,18,.82)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04) !important;
}

/* keep text from centering/stacking strangely */
.category-grid.category-grid--v28 .category-card .category-name,
.category-grid.category-grid--v28 .category-card .category-desc,
.category-grid .category-card .category-name,
.category-grid .category-card .category-desc {
  text-align: left !important;
  max-width: none !important;
}



/* v30n hotfix: mobile/iPad portrait "You might like these" layout */
@media (max-width: 900px) {
  .related-products-section .product-carousel.related-products-grid {
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .related-products-section .product-carousel.related-products-grid > .product-card {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    min-width: 0 !important;
  }

  .related-products-section .product-card .btn,
  .related-products-section .product-card .button,
  .related-products-section .product-card a.btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  .related-products-section .product-card {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


.hero-subtitle-note{
  display:inline-block;
  margin-top:8px;
  font-size:.96em;
}
