/* Professional layer (loaded last): modern ecommerce typography, header, buttons, cards, hero, footer.
   Each site keeps its own palette (--primary/--accent) and layout preset; this sets the quality bar. */
:root {
  --ink: #16213a;
  --ink-2: #47536b;
  --line: #e7eaf0;
  --soft: #f6f7fa;
  --card-r: 14px;
  --btn-r: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
  --tint: color-mix(in srgb, var(--primary) 7%, #fff);
}
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-size: 15px; line-height: 1.6; color: var(--ink); background: #fff; }
h1, h2, h3, .page-title { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--primary); }
a:hover { text-decoration: none; color: color-mix(in srgb, var(--primary) 80%, #000); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- Header: clean white bar on every preset ---------- */
.announce-bar { background: var(--primary); color: var(--primary-ink); font-weight: 600; letter-spacing: .01em; }
.site-header { box-shadow: none; border-bottom: 1px solid var(--line); background: #fff; }
.header-top, .preset-premium-boutique .header-top, .preset-editorial .header-top, .preset-modern-minimal .header-top { background: #fff !important; color: var(--ink); border-bottom: 0; }
.header-inner { min-height: 76px; padding: .7rem 0; gap: 1rem 1.75rem; }
.brand, .brand:hover { color: var(--ink) !important; border: 0; padding: 0; }
.brand-mark { width: 40px !important; height: 40px !important; border-radius: 10px; }
.brand-wordmark { gap: 1px; }
.brand-lead { color: var(--ink-2) !important; font-size: .68rem; letter-spacing: .18em; }
.brand-tail { color: var(--ink) !important; font-size: 1.22rem; letter-spacing: .01em; }
.header-search { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); background: #fff; }
.header-search input { background: transparent; border: 0; font-size: .95rem; padding: .7rem 1.1rem; color: var(--ink); }
.header-search select { background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--ink-2); padding-left: 1rem; }
.header-search button { background: var(--primary); color: var(--primary-ink); border-radius: 999px; margin: 4px; width: 42px; height: 38px; display: grid; place-items: center; border: 0; }
.header-actions { gap: 1.1rem; }
.header-actions a, .action-link, .cart-link { color: var(--ink) !important; border: 0 !important; }
.action-label { color: var(--ink-2); font-size: .72rem; opacity: 1; }
.action-strong { font-size: .88rem; font-weight: 700; }
.cart-badge { background: var(--accent); color: var(--accent-ink); font-weight: 800; border: 2px solid #fff; }
.cat-bar, .preset-premium-boutique .cat-bar, .preset-editorial .cat-bar { background: #fff !important; border-top: 1px solid var(--line); }
.cat-bar-inner { gap: .25rem 1.6rem; padding: .55rem 0; }
.cat-bar a, .preset-premium-boutique .cat-bar a, .preset-editorial .cat-bar a { color: var(--ink) !important; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 1; padding: .3rem 0; border-bottom: 2px solid transparent; }
.cat-bar a:hover { color: var(--primary) !important; border-bottom-color: var(--accent); text-decoration: none !important; }
.cat-all { background: var(--primary); color: var(--primary-ink) !important; padding: .4rem .85rem !important; border-radius: 8px; border: 0 !important; }
.split-nav a { color: var(--ink) !important; font-weight: 600; opacity: 1; }
.split-nav a:hover { color: var(--primary) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--btn-r); font-weight: 650; padding: .72rem 1.25rem; font-size: .95rem; border: 1.5px solid transparent; background: var(--primary); color: var(--primary-ink); transition: transform .12s, box-shadow .15s, background .15s; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 22%, transparent); text-decoration: none; color: var(--primary-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { color: var(--accent-ink); filter: none; background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn[disabled] { opacity: .5; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { border-radius: 22px; margin: 1.5rem auto 2.5rem; padding: clamp(2rem, 5vw, 4.5rem); gap: 3rem; background: linear-gradient(120deg, var(--tint) 0%, #fff 60%, color-mix(in srgb, var(--accent) 10%, #fff) 100%) !important; color: var(--ink) !important; border: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 850; letter-spacing: -.03em; color: var(--ink); }
.hero-sub { color: var(--ink-2); opacity: 1; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 46ch; }
.hero-kicker { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--primary); padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; letter-spacing: .12em; box-shadow: var(--shadow-sm); }
.hero .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.hero-media img, .hero-tile { border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.hero-tile span { border-radius: 8px; box-shadow: var(--shadow-sm); }
.hero-banner { text-align: center; }

/* ---------- Sections & category tiles ---------- */
.home-section { margin-bottom: 3rem; }
.section-head { align-items: end; margin: 0 0 1.1rem; }
.section-head h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0; }
.section-head a { font-weight: 650; color: var(--primary); }
.cat-tiles { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cat-tile, .preset-bold-deals .cat-tile { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--card-r); padding: 1rem; box-shadow: none; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-tile-img { display: block; background: var(--soft); border-radius: 10px; padding: .75rem; }
.cat-tile-img img { mix-blend-mode: multiply; }
.cat-tile-name { font-size: .98rem; margin-top: .7rem; }
.cat-tile small, .preset-bold-deals .cat-tile small { color: var(--ink-2); opacity: 1; }
.trust-strip { gap: 1rem; }
.trust-item { background: var(--soft); border: 1px solid var(--line); border-left: 0; border-radius: var(--card-r); padding: 1.2rem 1.3rem; position: relative; padding-left: 3.4rem; }
.trust-item::before { content: "✓"; position: absolute; left: 1.2rem; top: 1.15rem; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.newsletter { border-radius: 22px; background: var(--primary); padding: 3rem 1.25rem; }
.newsletter h2 { color: var(--primary-ink); }
.newsletter-form input { border-radius: var(--btn-r); padding: .85rem 1rem; }
.story-block > div { border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.quick-strip { border-radius: var(--card-r); }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.deals-row { gap: 1.1rem; }
.product-card, .card-flat .product-card, .card-minimal .product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: none; overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.product-card .thumb { background: #fff; padding: 1rem; aspect-ratio: 1; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-card .thumb img { max-height: 100%; object-fit: contain; transition: transform .25s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: .9rem 1rem .4rem; }
.product-card .sku { display: none; }
.product-card .title { font-family: var(--font); font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0 0 .35rem; }
.product-card .price { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.product-card .list-price { color: #8a93a6; }
.product-card .badge { font-size: .78rem; font-weight: 600; }
.card-actions { padding: .35rem 1rem 1rem; }
.card-actions .btn, .card-minimal .card-actions .btn { width: 100%; background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; padding: .6rem; font-size: .88rem; }
.product-card:hover .card-actions .btn { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.deal-badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-weight: 800; padding: .25rem .6rem; }

/* ---------- Listing pages ---------- */
.shop-layout { gap: 1.75rem; }
.shop-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: none; padding: 1.25rem; }
.shop-filters h2 { font-size: 1.05rem; }
.filter-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.shop-results-bar h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.shop-results-bar p { color: var(--ink-2); margin: .2rem 0 0; }
.pagination .page-btn { border-radius: 8px; border-color: var(--line); }
.pagination .page-btn.is-current { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* ---------- Product page ---------- */
.product-layout { gap: 2.5rem; }
.gallery-main { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.product-buy h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.price-lg { font-size: 1.9rem; font-weight: 850; color: var(--ink); }
.buy-points { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.panel, .form-card, .product-details, .reviews-panel { border-radius: 18px; border: 1px solid var(--line); box-shadow: none; }
input, select, textarea { border-radius: 10px !important; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--primary) 18%, #0b1220); color: #c9d1e1; margin-top: 3rem; padding-top: 3rem; }
.site-footer strong, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #c9d1e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #9aa5ba; }

@media (max-width: 900px) {
  .hero { border-radius: 16px; padding: 1.75rem 1.25rem; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-card .body { padding: .7rem .75rem .3rem; }
  .card-actions { padding: .3rem .75rem .8rem; }
}
