/*
Theme Name: Opera One
Theme URI: https://papayawhip-guanaco-789932.hostingersite.com
Author: Opera One FZ-LLC
Description: Premium automotive parts storefront theme for Opera One, built to match the Opera One brand (dark, gold-accented, WooCommerce-ready).
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: opera-one
*/

:root{
  --bg:#141414;
  --fg:#fafafa;
  --surface:#1f1f1f;
  --surface-elevated:#292929;
  --muted:#a6a6a6;
  --border:#333333;
  --gold:#cda94a;
  --gold-foreground:#141414;
  --radius:8px;
  --container:1280px;
  --font-display:'Jost', 'Inter', system-ui, sans-serif;
  --font-sans:'Inter', system-ui, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font-sans);
  margin:0;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:500;letter-spacing:.01em;margin:0 0 .5rem;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{list-style:none;margin:0;padding:0;}
.container-x{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:1rem;}
@media (min-width:768px){.container-x{padding-inline:2rem;}}
.text-gold{color:var(--gold);}
.bg-gold{background:var(--gold);color:var(--gold-foreground);}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;height:48px;padding:0 1.75rem;
  border-radius:var(--radius);font-weight:600;font-size:.95rem;border:1px solid transparent;
  cursor:pointer;transition:opacity .2s ease, background .2s ease;
}
.btn-gold{background:var(--gold);color:var(--gold-foreground);}
.btn-gold:hover{opacity:.9;}
.btn-outline{border-color:var(--border);background:rgba(255,255,255,.03);}
.btn-outline:hover{background:var(--surface);}

/* ===== Header ===== */
.site-header{border-bottom:1px solid var(--border);position:sticky;top:0;background:rgba(20,20,20,.92);backdrop-filter:blur(8px);z-index:50;}
.site-header .top-row{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;}
.brand{display:flex;align-items:center;gap:.75rem;}
.brand img{height:40px;width:auto;object-fit:contain;}
.brand .brand-text{display:flex;flex-direction:column;line-height:1;font-family:var(--font-display);}
.brand .brand-text .name{font-size:1.1rem;letter-spacing:.18em;font-weight:300;}
.brand .brand-text .sub{font-size:.6rem;letter-spacing:.3em;color:var(--muted);margin-top:.25rem;}
.main-nav{display:flex;gap:2rem;font-size:.9rem;font-weight:500;}
.main-nav a:hover{color:var(--gold);}
.header-actions{display:flex;align-items:center;gap:1.25rem;}
.header-actions a{font-size:.85rem;}
.cart-link{position:relative;}
.cart-count{
  position:absolute;top:-8px;right:-10px;background:var(--gold);color:var(--gold-foreground);
  font-size:.65rem;font-weight:700;border-radius:999px;min-width:18px;height:18px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
}
.mobile-toggle{display:none;background:none;border:0;color:var(--fg);font-size:1.5rem;cursor:pointer;}
@media (max-width:900px){
  .main-nav{display:none;}
  .mobile-toggle{display:block;}
}

/* ===== Hero ===== */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--border);}
.hero img.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, var(--bg) 10%, rgba(20,20,20,.55) 60%, transparent 100%);}
.hero-inner{position:relative;padding:6rem 0 7rem;}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .9rem;border-radius:999px;border:1px solid rgba(205,169,74,.4);background:rgba(20,20,20,.4);font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);}
.hero h1{font-size:clamp(2.4rem,5vw,4.5rem);max-width:820px;line-height:1.05;margin-top:1.5rem;font-weight:300;}
.hero p.lead{max-width:560px;color:var(--muted);font-size:1.1rem;margin-top:1.25rem;}
.hero .cta-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2.5rem;}

/* ===== Trust bar ===== */
.trust-bar{border-bottom:1px solid var(--border);background:rgba(255,255,255,.02);}
.trust-bar .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--border);}
@media (min-width:768px){.trust-bar .grid{grid-template-columns:repeat(4,1fr);}}
.trust-bar .item{background:var(--bg);display:flex;align-items:center;justify-content:center;gap:.6rem;padding:1.4rem 1rem;font-size:.85rem;font-weight:500;text-align:center;}

/* ===== Sections ===== */
.section{padding:4.5rem 0;}
.section-alt{background:rgba(255,255,255,.02);border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.section-head .eyebrow-sm{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);}
.section-head h2{font-size:clamp(1.8rem,3.5vw,2.75rem);margin-top:.4rem;}
.section-head p{color:var(--muted);max-width:560px;margin-top:.5rem;}

.grid-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:.85rem;margin-top:2.5rem;}
@media (min-width:768px){.grid-cards{grid-template-columns:repeat(4,1fr);}}
.card-link{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);font-weight:600;transition:background .2s;}
.card-link:hover{background:var(--surface-elevated);}

.brand-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.85rem;margin-top:2.5rem;}
@media (min-width:768px){.brand-grid{grid-template-columns:repeat(4,1fr);}}
@media (min-width:1024px){.brand-grid{grid-template-columns:repeat(6,1fr);}}
.brand-card{aspect-ratio:1;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:.75rem;transition:background .2s;}
.brand-card:hover{background:var(--surface);}
.brand-card .tier{font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:.25rem;}

.cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;margin-top:3rem;}
@media (min-width:768px){.cat-grid{grid-template-columns:repeat(3,1fr);}}
.cat-card{position:relative;overflow:hidden;border-radius:var(--radius);border:1px solid var(--border);aspect-ratio:4/3;background:var(--surface);}
.cat-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.8;transition:transform .4s;}
.cat-card:hover img{transform:scale(1.05);}
.cat-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2) 55%, transparent);}
.cat-card .label{position:absolute;left:0;right:0;bottom:0;padding:1.1rem;z-index:2;}
.cat-card .label h3{font-size:1.15rem;}
.cat-card .label span{font-size:.85rem;color:var(--muted);}

.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;margin-top:3rem;}
@media (min-width:768px){.product-grid{grid-template-columns:repeat(3,1fr);}}
@media (min-width:1024px){.product-grid{grid-template-columns:repeat(4,1fr);}}
.product-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden;transition:transform .25s, box-shadow .25s;}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.35);}
.product-card .thumb{aspect-ratio:1;background:var(--bg);overflow:hidden;}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;}
.product-card .body{padding:1rem;}
.product-card .name{font-size:.92rem;font-weight:600;min-height:2.6em;}
.product-card .price{margin-top:.5rem;display:flex;align-items:center;gap:.5rem;}
.product-card .price .now{color:var(--gold);font-weight:700;}
.product-card .price .old{color:var(--muted);text-decoration:line-through;font-size:.85rem;}

.why-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:3rem;}
@media (min-width:768px){.why-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1024px){.why-grid{grid-template-columns:repeat(5,1fr);}}
.why-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;}
.why-card h3{font-size:1rem;}
.why-card p{color:var(--muted);font-size:.9rem;margin-top:.5rem;}

.reviews-summary{text-align:center;}
.reviews-summary .stars{color:var(--gold);font-size:1.25rem;letter-spacing:.15em;}
.reviews-summary .score{font-size:3.5rem;font-weight:800;margin-top:.5rem;}
.reviews-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;margin-top:3rem;}
@media (min-width:768px){.reviews-grid{grid-template-columns:repeat(3,1fr);}}
.review-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;}
.review-card .stars{color:var(--gold);font-size:.85rem;letter-spacing:.1em;}
.review-card p{margin-top:.75rem;font-size:.9rem;line-height:1.6;}
.review-card .who{margin-top:1rem;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);}

.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:2rem;}
.stat{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:var(--surface);}
.stat .num{font-size:1.6rem;font-weight:800;}
.stat .lbl{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);}

.final-cta{text-align:center;padding:5rem 0;}
.final-cta h2{font-size:clamp(1.8rem,4vw,3rem);max-width:700px;margin-inline:auto;}
.final-cta p{color:var(--muted);max-width:520px;margin:1rem auto 0;}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--border);background:#0d0d0d;margin-top:5rem;}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:4rem 0;}
@media (min-width:768px){.footer-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1024px){.footer-grid{grid-template-columns:2fr repeat(3,1fr);}}
.footer-about p{color:var(--muted);font-size:.9rem;max-width:340px;line-height:1.7;}
.footer-about .addr{color:var(--muted);font-size:.8rem;margin-top:1.25rem;line-height:1.6;}
.footer-col h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:1rem;}
.footer-col li{margin-bottom:.6rem;}
.footer-col a{color:var(--muted);font-size:.9rem;}
.footer-col a:hover{color:var(--fg);}
.footer-bottom{border-top:1px solid var(--border);padding:1.25rem 0;display:flex;flex-direction:column;gap:.5rem;align-items:center;justify-content:space-between;font-size:.75rem;color:var(--muted);}
@media (min-width:768px){.footer-bottom{flex-direction:row;}}

/* ===== WooCommerce overrides ===== */
.woocommerce{padding:3rem 0;}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;list-style:none;padding:0;}
@media (min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr);}}
@media (min-width:1024px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr);}}
.woocommerce ul.products li.product{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;}
.woocommerce ul.products li.product img{border-radius:6px;aspect-ratio:1;object-fit:cover;}
.woocommerce ul.products li.product .price{color:var(--gold);font-weight:700;}
.woocommerce ul.products li.product h2,.woocommerce ul.products li.product h3{color:var(--fg);font-size:.95rem;}
.woocommerce span.onsale{background:var(--gold);color:var(--gold-foreground);}
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button, .woocommerce-page .button{
  background:var(--gold)!important;color:var(--gold-foreground)!important;border-radius:var(--radius)!important;
  border:none!important;font-weight:600!important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{opacity:.9;}
.woocommerce div.product .woocommerce-tabs, .woocommerce table.shop_table,
.woocommerce-checkout #payment, .woocommerce-cart-form, .cart-collaterals .cart_totals{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--fg);
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td{border-color:var(--border)!important;}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select{
  background:var(--bg);border:1px solid var(--border);color:var(--fg);border-radius:6px;
}
.woocommerce-breadcrumb{color:var(--muted);font-size:.85rem;}
.woocommerce-breadcrumb a{color:var(--muted);}
.woocommerce div.product p.price, .woocommerce div.product span.price{color:var(--gold);font-size:1.5rem;}
.page-title-bar{border-bottom:1px solid var(--border);padding:2.5rem 0;background:rgba(255,255,255,.02);}
.page-title-bar h1{font-size:2rem;}
.page-title-bar-text{font-family:var(--font-display);font-weight:500;letter-spacing:.01em;margin:0 0 .5rem;font-size:2rem;}

/* Generic content pages */
.content-page{padding:4rem 0;max-width:800px;margin-inline:auto;}
.content-page h1{font-size:2.25rem;}
.content-page h2{font-size:1.4rem;margin-top:2rem;}
.content-page p, .content-page li{color:var(--muted);line-height:1.75;}
.content-page a{color:var(--gold);text-decoration:underline;}

/* Fix: WooCommerce default float/width on shop loop li conflicts with theme grid, shrinking product images */
.woocommerce ul.products li.product{float:none!important;width:100%!important;margin:0!important;}
.woocommerce ul.products li.product img{width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:cover!important;}

/* Fix: theme's global ul{list-style:none} reset strips bullets from prose content on legal/info pages */
.content-page ul{list-style:disc;padding-left:1.5rem;margin:1rem 0;}
.content-page ol{list-style:decimal;padding-left:1.5rem;margin:1rem 0;}
.content-page ul li,.content-page ol li{list-style:inherit;margin-bottom:0.5rem;}

/* Fix: hero dark gradient overlay (.hero::after) had no z-index, so it painted on top of the heading text in .hero-inner, washing out "Drive. Shop. Experience Excellence." Give the overlay a low z-index and the text a higher one so the heading is always fully legible, with or without a hero-bg photo. */
.hero::after{z-index:0;pointer-events:none;}
.hero-inner{z-index:2;}
.hero img.hero-bg{z-index:0;}

/* Icons for trust bar, brand cards, why-cards + Shop by Vehicle finder (decorative) */
.trust-bar .item svg{width:20px;height:20px;flex-shrink:0;color:var(--gold);margin-right:.6rem;}
.brand-card svg{width:32px;height:32px;color:var(--muted);margin-bottom:.5rem;}
.why-card svg{width:28px;height:28px;color:var(--gold);margin-bottom:.75rem;display:block;}
.vf-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;}
.vf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;}
@media (min-width:768px){.vf-grid{grid-template-columns:repeat(4,1fr);}}
.vf-select{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.75rem 1rem;color:var(--muted);font-size:.9rem;width:100%;}
.vf-vin-row{display:flex;gap:.75rem;margin-top:.75rem;flex-wrap:wrap;}
.vf-input{flex:1;min-width:240px;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.75rem 1rem;color:var(--muted);font-size:.9rem;}

/* Fix: WooCommerce core clearfix pseudo-elements become grid items when ul.products is display:grid, offsetting the whole product grid by one cell. Neutralize them. */
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none;display:none;}


/* ==========================================================================
   Opera One — new header/product additions
   ========================================================================== */

/* Top announcement bar */
.top-bar {
  background: #0a0a0a;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.top-bar .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  flex-wrap: wrap;
}
.top-bar .top-bar-msgs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
}
.top-bar .top-bar-msgs strong {
  color: var(--gold);
  font-weight: 600;
}
.top-bar .top-bar-sep {
  opacity: 0.4;
}
.currency-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.currency-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}
.currency-pill:hover {
  border-color: var(--gold);
  color: var(--fg);
}
.currency-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-foreground);
}

@media (max-width: 700px) {
  .top-bar .top-bar-msgs { gap: 0.75rem; }
  .top-bar .top-bar-msg-secondary { display: none; }
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 420px;
  margin-inline: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.header-search:focus-within {
  border-color: var(--gold);
}
.header-search input[type="search"] {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
}
.header-search input[type="search"]::placeholder {
  color: var(--muted);
}
.header-search button {
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  height: 100%;
  cursor: pointer;
  transition: color 0.15s ease;
}
.header-search button:hover {
  color: var(--gold);
}
.header-search svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .header-search { display: none; }
}

/* Wishlist icon */
.wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
}
.wishlist-link svg {
  width: 22px;
  height: 22px;
}
.wishlist-link.is-active svg {
  fill: var(--gold);
  stroke: var(--gold);
}
.wishlist-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--gold-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Nav dropdown (Brands) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.nav-dropdown-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  min-width: 220px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 0.5rem;
  list-style: none;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu li a:hover {
  background: var(--surface);
  color: var(--gold);
}

/* Product card additions: wishlist toggle, SKU, rating, view link */
.product-card-wrap {
  position: relative;
}
.wishlist-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20,20,20,0.65);
  backdrop-filter: blur(4px);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wishlist-toggle svg {
  width: 16px;
  height: 16px;
}
.wishlist-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.wishlist-toggle.is-active {
  color: var(--gold);
}
.wishlist-toggle.is-active svg {
  fill: var(--gold);
}

.product-card .sku {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.product-card .rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-block: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.product-card .rating .star-rating {
  font-size: 0.85rem;
}
.product-card .view-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.wishlist-page {
  padding-block: 3rem 4rem;
}
.wishlist-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.wishlist-empty {
  color: var(--muted);
}
.wishlist-empty a {
  color: var(--gold);
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.wishlist-loading,
.wishlist-error {
  color: var(--muted);
}

.content-page .product-card,
.content-page .product-card:hover,
.content-page .wishlist-toggle,
.content-page .wishlist-page a {
  text-decoration: none;
}

.opera-one-product-li {
  list-style: none;
}
.opera-one-add-to-cart {
  padding: 0 1rem 1rem;
}
.opera-one-add-to-cart a.button,
.opera-one-add-to-cart button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--gold-foreground);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
}
.opera-one-add-to-cart a.button:hover,
.opera-one-add-to-cart button:hover {
  opacity: 0.85;
}
.opera-one-add-to-cart a.added_to_cart {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--gold);
  text-align: center;
}
.product-card .thumb {
  position: relative;
}
.product-card .onsale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--gold);
  color: var(--gold-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ================= Mobile responsiveness fixes ================= */
@media (max-width:767px){
  .brand-grid{display:flex;grid-template-columns:none;gap:.75rem;overflow-x:auto;padding-bottom:.75rem;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;}
  .brand-grid::-webkit-scrollbar{height:6px;}
  .brand-grid::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px;}
  .brand-card{width:130px;flex:0 0 auto;scroll-snap-align:start;}
}
html,body{max-width:100%;overflow-x:hidden;}
.mobile-toggle{padding:.5rem;margin:-.5rem;line-height:1;}
.mobile-nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);opacity:0;visibility:hidden;transition:opacity .25s ease;z-index:1000;}
.mobile-nav-overlay.is-open{opacity:1;visibility:visible;}
.mobile-nav-panel{position:fixed;top:0;right:-100%;bottom:0;width:82%;max-width:340px;background:var(--surface);border-left:1px solid var(--border);z-index:1001;transition:right .3s ease;overflow-y:auto;padding:1.5rem 1.25rem 2rem;}
.mobile-nav-panel.is-open{right:0;}
.mobile-nav-close{display:block;margin-left:auto;background:none;border:none;color:var(--fg);font-size:2rem;line-height:1;cursor:pointer;padding:.25rem .5rem;}
.mobile-nav-links{display:flex;flex-direction:column;margin-top:1rem;}
.mobile-nav-links > a{display:block;padding:.85rem 0;border-bottom:1px solid var(--border);font-family:var(--font-display);font-size:1.05rem;color:var(--fg);}
.mobile-nav-links > a:hover{color:var(--gold);}
.mobile-nav-brands{padding:.15rem 0;border-bottom:1px solid var(--border);}
.mobile-nav-brands summary{padding:.85rem 0;font-family:var(--font-display);font-size:1.05rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.mobile-nav-brands summary::-webkit-details-marker{display:none;}
.mobile-nav-brand-list{display:flex;flex-direction:column;padding-bottom:.5rem;}
.mobile-nav-brand-list a{padding:.5rem 0 .5rem 1rem;border-bottom:none;font-family:var(--font-sans);font-size:.95rem;color:var(--muted);}
.mobile-nav-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:1.5rem;}
.mobile-nav-actions a{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border:1px solid var(--border);border-radius:var(--radius);color:var(--fg);font-size:.95rem;}
body.nav-open{overflow:hidden;}
@media (min-width:901px){.mobile-nav-panel,.mobile-nav-overlay{display:none;}}
