/* ==========================================================================
   Order Click — AI design engine (template-20)
   Loaded after the base template CSS. The design plan sets the colour, font,
   shape and shadow tokens on :root; this file turns the plan's layout choices
   (body classes oce-*) into real layouts and removes colours the base CSS
   had hard-coded.
   ========================================================================== */

/* ---- Tokens the base CSS hard-coded ------------------------------------ */
.oce h1, .oce h2, .oce h3, .oce h4, .oce h5, .oce .brand { font-family: var(--font-display); }
.oce .btn { border-radius: var(--r-btn, var(--r-pill)); }
.oce .btn-primary { --btn-fg: var(--on-brand, #fff); }
.oce .btn-dark { --btn-bg: var(--text); --btn-fg: var(--bg); }
.oce .add-btn, .oce .chip, .oce .icon-btn { border-radius: var(--r-btn, var(--r-pill)); }
.oce .add-btn:hover { color: var(--on-brand, #fff); }
.oce .brand-mark { background: var(--brand); color: var(--on-brand, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); font-weight: 800; }
.oce .hero::before { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 66%); }
.oce .hero::after { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 66%); }
.oce .cta-band { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 55%, #000) 0%, color-mix(in srgb, var(--brand) 30%, #000) 55%, var(--brand) 190%); }
.oce .cta-band .eyebrow { color: color-mix(in srgb, var(--brand) 45%, #fff); }
.oce .oce-on-dark { color: #fff !important; border-color: rgba(255,255,255,.3) !important; background: transparent; }
.oce .value-item .ic, .oce .step .ic { background: var(--brand-soft); color: var(--brand); }
.oce .oce-step-n { font-weight: 800; font-size: 1.05rem; font-family: var(--font-display); }
.oce-wa-btn svg { width: 18px; height: 18px; }
.oce .eyebrow { color: var(--brand); }

/* Owner preview banner */
.oce-preview-bar { position: sticky; top: 0; z-index: 200; background: #111; color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 7px 12px; letter-spacing: .01em; }

/* ---- Header variants ---------------------------------------------------- */
.oce-header-centered .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.oce-header-centered .header-inner .brand { grid-column: 2; justify-self: center; }
.oce-header-centered .header-inner .nav { grid-column: 1; grid-row: 1; justify-self: start; }
.oce-header-centered .header-inner .header-actions { grid-column: 3; justify-self: end; }
.oce-header-minimal .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.oce-header-minimal .site-header.is-stuck { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.oce-header-minimal .nav { display: none; }
.oce-header-minimal .burger { display: inline-grid !important; }
.oce-header-bold .site-header, .oce-header-bold .site-header.is-stuck { background: var(--brand); border-color: transparent; }
.oce-header-bold .site-header .brand, .oce-header-bold .site-header .nav a, .oce-header-bold .site-header .icon-btn { color: var(--on-brand, #fff); }
.oce-header-bold .site-header .nav a:hover, .oce-header-bold .site-header .nav a.active { background: rgba(255,255,255,.14); color: var(--on-brand, #fff); }
.oce-header-bold .site-header .nav a.active::after { background: var(--on-brand, #fff); }
.oce-header-bold .site-header .icon-btn { border-color: rgba(255,255,255,.28); background: transparent; }
.oce-header-bold .site-header .brand-mark { background: var(--on-brand, #fff); color: var(--brand); }
.oce-header-bold .site-header .btn-primary { --btn-bg: var(--on-brand, #fff); --btn-fg: var(--brand); }
.oce-header-bold .site-header .brand small { color: currentColor; opacity: .75; }

/* ---- Hero variants ------------------------------------------------------ */
.oce-hero-bg { display: none; }
.oce-hero-centered .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.oce-hero-centered .hero .lead { margin-inline: auto; }
.oce-hero-centered .hero-cta, .oce-hero-centered .hero-chips { justify-content: center; }
.oce-hero-centered .hero-visual { width: min(100%, 980px); }
.oce-hero-centered .hero-media { aspect-ratio: 21/9; }

.oce-hero-fullbleed .hero { padding: 0; min-height: min(78vh, 680px); display: flex; align-items: center; }
.oce-hero-fullbleed .hero::before, .oce-hero-fullbleed .hero::after { display: none; }
.oce-hero-fullbleed .oce-hero-bg { display: block; position: absolute; inset: 0; z-index: 0; }
.oce-hero-fullbleed .oce-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.oce-hero-fullbleed .oce-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,12,.78), rgba(8,10,12,.35) 60%, rgba(8,10,12,.15)); }
[dir="rtl"] .oce-hero-fullbleed .oce-hero-bg::after { background: linear-gradient(270deg, rgba(8,10,12,.78), rgba(8,10,12,.35) 60%, rgba(8,10,12,.15)); }
.oce-hero-fullbleed .hero-grid { grid-template-columns: minmax(0, 640px); padding-block: clamp(64px, 10vw, 120px); }
.oce-hero-fullbleed .hero-visual { display: none; }
.oce-hero-fullbleed .hero h1, .oce-hero-fullbleed .hero .lead, .oce-hero-fullbleed .hero .eyebrow { color: #fff; }
.oce-hero-fullbleed .hero .btn-ghost, .oce-hero-fullbleed .hero .chip { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

.oce-hero-minimal .hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.oce-hero-minimal .hero-grid { grid-template-columns: 1fr; }
.oce-hero-minimal .hero-visual { display: none; }
.oce-hero-minimal .hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }

/* ---- Product card variants --------------------------------------------- */
.oce-ratio-square .product-card__media { aspect-ratio: 1/1; }
.oce-ratio-portrait .product-card__media { aspect-ratio: 4/5; }
.oce-ratio-landscape .product-card__media { aspect-ratio: 4/3; }

.oce-card-minimal .product-card { border-color: transparent; background: transparent; box-shadow: none; }
.oce-card-minimal .product-card__media { border-radius: var(--r-lg); }
.oce-card-minimal .product-card__body { padding-inline: 2px; }
.oce-card-minimal .product-card:hover { box-shadow: none; }

.oce-card-bordered .product-card { border: 1.5px solid var(--line-strong); box-shadow: none; }
.oce-card-bordered .product-card:hover { border-color: var(--brand); box-shadow: none; transform: translateY(-3px); }

.oce-card-overlay .product-card { border: 0; }
.oce-card-overlay .product-card__media { aspect-ratio: 3/4; }
.oce-card-overlay .product-card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,10,12,.82) 8%, rgba(8,10,12,.0) 60%); }
.oce-card-overlay .product-card__body { position: absolute; inset: auto 0 0 0; z-index: 2; background: transparent; color: #fff; }
.oce-card-overlay .product-card__body a, .oce-card-overlay .product-card__body .price,
.oce-card-overlay .product-card__meta, .oce-card-overlay .product-card__desc { color: #fff; }
.oce-card-overlay .product-card__desc { display: none; }

/* ---- Category variants -------------------------------------------------- */
.oce-cats-chips .cat-rail { display: flex; flex-wrap: wrap; gap: 10px; grid-template-columns: none; }
.oce-cats-chips .cat-card { aspect-ratio: auto; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-btn, var(--r-pill)); box-shadow: none; padding: 11px 18px; }
.oce-cats-chips .cat-card img, .oce-cats-chips .cat-card::after { display: none; }
.oce-cats-chips .cat-card__label { position: static; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.oce-cats-chips .cat-card__label span { color: var(--text-2); }
.oce-cats-chips .cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }

.oce-cats-circles .cat-rail { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.oce-cats-circles .cat-card { aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible; text-align: center; }
.oce-cats-circles .cat-card img { width: 100%; height: auto; aspect-ratio: 1/1; border-radius: 50%; box-shadow: var(--sh); border: 3px solid var(--surface); }
.oce-cats-circles .cat-card::after { display: none; }
.oce-cats-circles .cat-card__label { position: static; color: var(--text); margin-top: 10px; }
.oce-cats-circles .cat-card__label span { color: var(--text-2); }
.oce-cats-circles .cat-card:hover { box-shadow: none; }

/* ---- Footer variants ---------------------------------------------------- */
.oce-footer-dark .site-footer { background: color-mix(in srgb, var(--text) 92%, var(--brand)); color: #E8EBEC; }
.oce-footer-brand .site-footer { background: color-mix(in srgb, var(--brand) 88%, #000); color: #fff; }
.oce-footer-brand .site-footer a, .oce-footer-brand .site-footer h5, .oce-footer-brand .footer-bottom { color: #fff; }
.oce-footer-light .site-footer { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--line); }
.oce-footer-light .site-footer a, .oce-footer-light .site-footer h5, .oce-footer-light .footer-contact,
.oce-footer-light .footer-bottom, .oce-footer-light .site-footer p { color: var(--text); }
.oce-footer-light .footer-links a, .oce-footer-light .footer-bottom { color: var(--text-2); }
.oce-footer-light .socials a { border-color: var(--line-strong); color: var(--text); }

/* ---- Sections the base template did not have ---------------------------- */
.oce-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.oce-about-solo { grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.oce-about-media { aspect-ratio: 4/3; }
.oce-reviews { grid-template-columns: repeat(3, 1fr); }
.oce-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-xs); }
.oce-review .stars { color: #F5A524; display: flex; gap: 2px; margin-bottom: 10px; }
.oce-review .stars svg { width: 16px; height: 16px; }
.oce-review p { color: var(--text); margin-bottom: 12px; }
.oce-steps-4 { grid-template-columns: repeat(4, 1fr); }
.oce-person .product-card__media img { object-position: top; }

/* ---- Dark mode touches --------------------------------------------------- */
.oce-mode-dark .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.oce-mode-dark .chip.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .oce-about-grid, .oce-reviews, .oce-steps-4 { grid-template-columns: 1fr; }
  .oce-header-centered .header-inner { display: flex; }
  .oce-header-centered .header-inner .nav { display: none; }
  .oce-hero-fullbleed .hero { min-height: 0; }
}

/* ---- Placeholders when the merchant has no photo (no unrelated stock images) ---- */
.oce .oce-ph { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 22%, var(--surface)));
  color: var(--brand); font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); }
.oce-cats-circles .cat-card .oce-ph { aspect-ratio: 1/1; border-radius: 50%; min-height: 0; }
.oce-cats-chips .cat-card .oce-ph { display: none; }
.oce-hero-noimg .hero-grid { grid-template-columns: minmax(0, 760px); }
.oce-hero-fullbleed .oce-hero-noimg { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #000), var(--brand)); }
.oce-hero-split .oce-hero-noimg .hero-grid, .oce-hero-centered .oce-hero-noimg .hero-grid { justify-items: start; }
.oce-hero-centered .oce-hero-noimg .hero-grid { justify-items: center; justify-content: center; }
