/* ============================================================
   JoyReef — layout & componenti di pagina + WooCommerce
   ============================================================ */

/* ---------- mobile nav toggle ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: oklch(0.16 0.024 242 / 0.98); backdrop-filter: blur(16px);
    padding: 14px 18px; border-bottom: 1px solid var(--line);
    margin: 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 17px; padding: 12px 14px; }
}

/* header search reveal */
.header-search { border-top: 1px solid var(--line-soft); background: oklch(0.16 0.024 242 / 0.9); }
.header-search .wrap { padding-block: 16px; }
.header-search[hidden] { display: none; }

/* ============================================================
   HERO (front page)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 70px 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--cyan-bri); background: var(--aqua-wash); border: 1px solid oklch(0.7 0.09 200 / 0.30); padding: 7px 14px 7px 11px; border-radius: 999px; margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px oklch(0.7 0.12 200 / 0.18); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--cyan-bri); }
.hero .lead { font-size: 19px; color: var(--ink-soft); margin-top: 22px; max-width: 50ch; }
.hero-cta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats .n { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); }
.hero-stats .l { font-size: 13.5px; color: var(--ink-faint); }
.hero-feature { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero-feature .ph { aspect-ratio: 4 / 3; }
.hero-feature .hf-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; background: linear-gradient(to top, oklch(0.12 0.02 240 / 0.94), oklch(0.12 0.02 240 / 0.55) 55%, transparent); }
.hero-feature .hf-body h3 { color: #fff; font-size: 23px; margin-top: 12px; }
.hero-feature .hf-body .date { color: oklch(0.85 0.02 220); font-size: 13px; margin-top: 10px; font-family: var(--font-head); }
.hero-float { position: absolute; top: 26px; right: -14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.hero-float .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--coral-wash); display: grid; place-items: center; color: var(--coral); }
.hero-float .t { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.1; color: var(--ink); }
.hero-float .s { font-size: 12px; color: var(--ink-faint); }

section.block { padding: 64px 0; }
section.block.alt { background: oklch(0.55 0.05 225 / 0.05); border-block: 1px solid var(--line-soft); }

/* categorie */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; overflow: hidden; display: block; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: oklch(0.7 0.09 200 / 0.35); }
.cat-card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--aqua-wash); color: var(--cyan-bri); }
.cat-card h3 { font-size: 20px; }
.cat-card p { color: var(--ink-soft); font-size: 14px; margin-top: 7px; }
.cat-card .cnt { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--cyan); display: flex; align-items: center; gap: 6px; }

/* shop teaser / prodotti */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* chi siamo / portal */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel { border-radius: var(--radius-lg); padding: 44px; }
.panel.about { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel.portal { background: linear-gradient(150deg, oklch(0.34 0.07 205), oklch(0.21 0.04 234)); color: #fff; position: relative; overflow: hidden; border: 1px solid oklch(0.7 0.09 200 / 0.30); }
.panel.portal::after { content:""; position:absolute; right:-60px; bottom:-60px; width:240px; height:240px; border-radius:50%; background: radial-gradient(circle, oklch(0.78 0.12 198 / 0.5), transparent 70%); }
.panel h3 { font-size: 27px; }
.panel.portal h3 { color: #fff; }
.panel p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }
.panel.portal p { color: oklch(0.92 0.02 205); }
.panel .btn { margin-top: 26px; }

/* tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tagcloud a { font-family: var(--font-head) !important; font-weight: 500; font-size: 14px !important; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; transition: all .14s; text-decoration: none; }
.tagcloud a:hover { border-color: oklch(0.7 0.09 200 / 0.5); color: var(--cyan-bri); background: var(--aqua-wash); transform: translateY(-2px); }

/* ============================================================
   ARCHIVE / BLOG
   ============================================================ */
.page-hero { padding: 50px 0 40px; border-bottom: 1px solid var(--line-soft); background: oklch(0.55 0.05 225 / 0.05); }
.page-hero .sec-kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.025em; }
.page-hero p { color: var(--ink-soft); font-size: 18px; margin-top: 14px; max-width: 56ch; }
.cat-pills { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; }
.cat-pill { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); transition: all .15s; }
.cat-pill:hover { border-color: oklch(0.7 0.09 200 / 0.5); color: var(--cyan-bri); }
.cat-pill.active { background: var(--cyan); border-color: var(--cyan); color: oklch(0.18 0.03 238); box-shadow: 0 5px 16px oklch(0.7 0.12 200 / 0.3); }

/* arch-hero (archive.php — replaces page-hero per la pagina archivio) */
.arch-hero { padding: 50px 0 40px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.arch-hero .sec-kicker { margin-bottom: 14px; }
.arch-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.025em; }
.arch-hero p { color: var(--ink-soft); font-size: 18px; margin-top: 14px; max-width: 56ch; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; }
.filter { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); transition: all .15s; display: inline-block; }
.filter:hover { border-color: oklch(0.7 0.09 200 / 0.5); color: var(--cyan-bri); }
.filter.active { background: var(--cyan); border-color: var(--cyan); color: oklch(0.18 0.03 238); box-shadow: 0 5px 16px oklch(0.7 0.12 200 / 0.3); }

.layout { display: grid; grid-template-columns: 1fr 312px; gap: 44px; padding: 52px 0; align-items: start; }
.count-line { font-family: var(--font-head); font-weight: 500; color: var(--ink-faint); font-size: 14px; margin-bottom: 22px; }

aside.sidebar .widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
aside.sidebar .widget-title, aside.sidebar .widget h2, aside.sidebar .widget h3 { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; font-weight: 700; }
aside.sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
aside.sidebar li { font-size: 14.5px; }
aside.sidebar a:hover { color: var(--cyan-bri); }
aside.sidebar .widget p { color: var(--ink-soft); font-size: 14.5px; }

.recent { display: flex; flex-direction: column; gap: 16px; }
.recent a { display: flex; gap: 13px; align-items: flex-start; }
.recent .th { width: 56px; height: 56px; border-radius: 11px; flex: none; }
.recent .ti { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.recent .dt { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.recent a:hover .ti { color: var(--cyan-bri); }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { font-family: var(--font-head); font-weight: 600; min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); transition: all .15s; }
.pagination .page-numbers:hover { border-color: oklch(0.7 0.09 200 / 0.5); color: var(--cyan-bri); }
.pagination .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: oklch(0.18 0.03 238); }

.empty { padding: 60px 0; text-align: center; color: var(--ink-faint); font-family: var(--font-head); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.art-narrow { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-faint); font-family: var(--font-head); margin: 34px auto 22px; flex-wrap: wrap; max-width: 760px; padding-inline: 24px; }
.breadcrumb a:hover { color: var(--cyan-bri); }
.breadcrumb svg { opacity: .5; }
.art-head { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.art-head .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.art-head h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.025em; }
.art-head .dek { font-size: 19px; color: var(--ink-soft); margin-top: 18px; }
.art-meta { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 11px; }
.author .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--aqua), var(--cyan-deep)); display: grid; place-items: center; color: #06222a; font-family: var(--font-head); font-weight: 700; }
.author .nm { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.author .rl { font-size: 13px; color: var(--ink-faint); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.art-meta .mi { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); font-family: var(--font-head); font-weight: 500; }
.art-hero { max-width: 1000px; margin: 36px auto 8px; padding-inline: 24px; }
.art-hero .ph, .art-hero img { aspect-ratio: 16/8; border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.art-cap { max-width: 760px; margin: 12px auto 0; padding-inline: 24px; font-size: 13.5px; color: var(--ink-faint); font-style: italic; }

.prose { font-size: 18px; line-height: 1.72; color: oklch(0.80 0.018 225); margin-top: 38px; }
.prose > * + * { margin-top: 24px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h3 { font-size: 21px; margin-top: 36px; }
.prose a { color: var(--cyan-bri); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: oklch(0.6 0.08 200 / 0.6); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li::marker { color: var(--cyan); }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--cyan); padding-left: 20px; margin-left: 0; color: var(--ink); font-style: italic; }
.prose figure { margin: 36px 0; }
.prose figcaption { font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; font-style: italic; text-align: center; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: oklch(0.5 0.02 235 / 0.18); padding: 2px 6px; border-radius: 6px; color: var(--cyan-bri); }
.prose pre { background: var(--teal-ink); color: oklch(0.92 0.02 200); border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; font-size: 14px; line-height: 1.7; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; color: inherit; }

.callout { background: var(--aqua-wash); border: 1px solid oklch(0.7 0.09 200 / 0.28); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 15px; margin: 30px 0; }
.callout .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; color: var(--cyan-bri); }
.callout .ct { font-size: 15.5px; line-height: 1.6; color: var(--ink); }

.art-foot { max-width: 760px; margin: 50px auto 0; padding-inline: 24px; }
.tagrow { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.tagrow .lab { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink-faint); margin-right: 4px; }
.share { display: flex; gap: 10px; margin-top: 30px; padding: 24px 0; border-block: 1px solid var(--line); align-items: center; }
.share .lab { font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-right: auto; color: var(--ink); }
.authorbox { display: flex; gap: 18px; margin-top: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.authorbox .av { width: 60px; height: 60px; border-radius: 50%; flex: none; background: linear-gradient(140deg, var(--aqua), var(--cyan-deep)); display: grid; place-items: center; color: #06222a; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.authorbox h4 { font-size: 18px; }
.authorbox p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
.related { padding: 60px 0; background: oklch(0.55 0.05 225 / 0.05); border-top: 1px solid var(--line-soft); margin-top: 64px; }

/* page (default) */
.entry-page { max-width: 820px; margin: 0 auto; padding: 56px 24px 20px; }
.entry-page h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 24px; }

/* comments */
.comments-area { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
.comments-area h3 { font-size: 22px; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); font-family: var(--font-body); margin-top: 6px; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce-page .page-hero .wrap { padding-bottom: 0; }
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s; padding: 0 0 18px !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.woocommerce ul.products li.product a img { margin: 0 0 14px !important; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 18px !important; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.woocommerce ul.products li.product .price { padding: 6px 18px 0; color: var(--ink) !important; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.woocommerce ul.products li.product .price del { color: var(--ink-faint) !important; font-weight: 500; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { margin: 14px 18px 0 !important; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--cyan) !important; color: oklch(0.18 0.03 238) !important; font-family: var(--font-head); font-weight: 700; border-radius: 999px !important; border: none !important; padding: 11px 20px !important; transition: background .15s, transform .15s; text-shadow: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover { background: var(--cyan-bri) !important; transform: translateY(-2px); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  background: var(--surface);
  border-top: 3px solid var(--cyan);
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--cyan); }
.woocommerce .star-rating span, .woocommerce p.stars a { color: var(--cyan); }

.woocommerce div.product .product_title { color: var(--ink); font-family: var(--font-head); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface); border-color: var(--line); border-radius: 10px 10px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--surface-2); }
.woocommerce table.shop_table, .woocommerce-cart table.cart, .woocommerce .cart-collaterals .cart_totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.woocommerce table.shop_table th { color: var(--ink); font-family: var(--font-head); }
.woocommerce .quantity input.qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page form .form-row input.input-text, .select2-container .select2-selection { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius-sm); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color: var(--ink-faint); margin-bottom: 16px; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 10px; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--cyan); color: oklch(0.18 0.03 238); }

/* mini-cart drawer */
.scrim { position: fixed; inset: 0; background: oklch(0.1 0.02 240 / 0.55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 90vw; background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); z-index: 70; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer .widget_shopping_cart_content { color: var(--ink-soft); }
.drawer .woocommerce-mini-cart__total { color: var(--ink); font-family: var(--font-head); }
.drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; }
.drawer .woocommerce-mini-cart__buttons .button { width: 100%; text-align: center; }

/* ============================================================
   CHI SIAMO (page-chi-siamo.php)
   ============================================================ */
.about-hero { padding: 70px 0 56px; }
.about-hero .sec-kicker { margin-bottom: 16px; }
.about-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.025em; max-width: 16ch; }
.about-hero p { font-size: 20px; color: var(--ink-soft); margin-top: 22px; max-width: 56ch; }
.about-media { padding-bottom: 12px; }
.about-media .ph { aspect-ratio: 16/6.5; border-radius: var(--radius-lg); }
.about-media img { aspect-ratio: 16/6.5; border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; padding: 60px 0; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.value .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--aqua-wash); color: var(--cyan-bri); display: grid; place-items: center; margin-bottom: 18px; }
.value h3 { font-size: 20px; }
.value p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 16px 0 70px; }
.info-card { border-radius: var(--radius-lg); padding: 40px; }
.info-card.contact { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.info-card.portal { background: linear-gradient(150deg, oklch(0.34 0.07 205), oklch(0.21 0.04 234)); color: #fff; position: relative; overflow: hidden; border: 1px solid oklch(0.7 0.09 200 / 0.30); }
.info-card.portal::after { content:""; position:absolute; right:-50px; bottom:-50px; width:220px; height:220px; border-radius:50%; background: radial-gradient(circle, oklch(0.78 0.12 198 / 0.5), transparent 70%); }
.info-card h3 { font-size: 24px; }
.info-card.portal h3 { color:#fff; }
.dl { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.dl .row { display: flex; gap: 12px; align-items: flex-start; }
.dl .k { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink-faint); width: 92px; flex: none; padding-top: 2px; letter-spacing: 0.03em; text-transform: uppercase; }
.dl .v { font-size: 15.5px; }
.info-card.portal p { color: oklch(0.9 0.03 200); margin-top: 16px; font-size: 15.5px; }
.info-card .btn { margin-top: 26px; }
.about-social { display:flex; gap:10px; margin-top: 22px; }
.about-social a { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all .15s; }
.about-social a:hover { border-color: var(--cyan); color: var(--cyan-bri); }

/* ============================================================
   SHOP LOOP — card prodotto (.prod)
   ============================================================ */

/* Griglia: sovrascrive ul.products di WooCommerce con specificità aumentata */
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}

/* Card — specificità alta per battere woocommerce.css */
.woocommerce ul.products li.prod,
.woocommerce-page ul.products li.prod {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce ul.products li.prod:hover,
.woocommerce-page ul.products li.prod:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: oklch(0.7 0.09 200 / 0.35) !important;
}

/* Immagine */
.woocommerce ul.products li.prod .prod-img { display: block; overflow: hidden; aspect-ratio: 4/3; flex-shrink: 0; }
.woocommerce ul.products li.prod .prod-img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .3s var(--ease); margin: 0 !important; border-radius: 0 !important; }
.woocommerce ul.products li.prod:hover .prod-img img { transform: scale(1.03); }
.woocommerce ul.products li.prod .prod-img .ph { width: 100%; height: 100%; }

/* Corpo */
.woocommerce ul.products li.prod .prod-body { padding: 18px 20px 20px !important; display: flex !important; flex-direction: column; gap: 8px; flex: 1; }
.woocommerce ul.products li.prod .prod-body h3 { font-size: 17px !important; line-height: 1.25; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.prod .prod-body h3 a { color: var(--ink); }
.woocommerce ul.products li.prod .prod-body h3 a:hover { color: var(--cyan-bri); }
.woocommerce ul.products li.prod .prod-body .d { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0; flex: 1; }

/* Footer card */
.woocommerce ul.products li.prod .prod-foot { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.woocommerce ul.products li.prod .prod-foot .price { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink) !important; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.prod .prod-foot .price del { font-size: 14px; color: var(--ink-faint) !important; font-weight: 500; display: block; }
.woocommerce ul.products li.prod .prod-foot .price ins { text-decoration: none; color: var(--cyan-bri) !important; }
.woocommerce ul.products li.prod .prod-foot .button { margin: 0 !important; padding: 9px 15px !important; flex-shrink: 0; font-size: 13.5px !important; }

/* Badge saldo */
.woocommerce ul.products li.prod .onsale { top: 12px; left: 12px; right: auto; background: var(--coral); color: #fff; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 4px 10px; min-height: auto; min-width: auto; line-height: 1.4; }

/* Ordinamento e conteggio risultati */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count { color: var(--ink-faint); font-size: 14px; margin: 0; }
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); padding: 8px 12px; font-family: var(--font-head); font-size: 14px; }
.woocommerce-products-header { margin-bottom: 4px; }

/* ============================================================
   SINGLE PRODUCT — layout stile articolo
   ============================================================ */

/* Hero immagine prodotto (come art-hero) */
.prod-hero { max-width: 1000px; margin: 36px auto 8px; padding-inline: 24px; }
.prod-hero .woocommerce-product-gallery { border-radius: var(--radius-lg); overflow: hidden; }
.prod-hero .woocommerce-product-gallery__image img { width: 100%; border-radius: var(--radius-lg); display: block; }
.prod-hero .woocommerce-product-gallery__image:first-child { aspect-ratio: 16/8; overflow: hidden; }
.prod-hero .woocommerce-product-gallery__image:first-child img { aspect-ratio: 16/8; object-fit: cover; }

/* Thumbnails sotto l'immagine principale */
.prod-hero .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 0; list-style: none; flex-wrap: wrap; }
.prod-hero .flex-control-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; }
.prod-hero .flex-control-thumbs .flex-active { border-color: var(--cyan); }

/* Titolo prodotto nell'art-head */
.woocommerce div.product h1.product_title { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.025em; color: var(--ink); margin: 0 0 0 0; }

/* Meta bar: prezzo + disponibilità */
.prod-meta-bar { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prod-price-wrap { display: flex; align-items: center; gap: 10px; }
.prod-price { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); }
.prod-price del { font-size: 16px; color: var(--ink-faint); font-weight: 500; }
.prod-price ins { text-decoration: none; color: var(--cyan-bri); }
.prod-stock { font-family: var(--font-head); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.prod-stock.in-stock { color: oklch(0.72 0.14 155); }
.prod-stock.out-of-stock { color: var(--ink-faint); }

/* Form add-to-cart */
.prod-cart-form { margin-top: 20px; }
.prod-cart-form .cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prod-cart-form .quantity { display: flex; align-items: center; gap: 8px; }
.prod-cart-form .quantity label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.prod-cart-form .quantity input.qty { width: 64px; padding: 11px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 16px; text-align: center; }
.prod-cart-form .single_add_to_cart_button { padding: 14px 28px !important; font-size: 15px !important; }
.prod-cart-form .variations { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.prod-cart-form .variations td, .prod-cart-form .variations th { padding: 6px 0; vertical-align: middle; }
.prod-cart-form .variations label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.prod-cart-form .variations select { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); padding: 10px 14px; font-family: var(--font-head); width: 100%; }
.prod-cart-form .reset_variations { font-size: 13px; color: var(--ink-faint); }
.woocommerce div.product form.cart .woocommerce-variation-price .price { color: var(--cyan-bri); font-weight: 700; }

/* Meta WooCommerce (SKU, categorie) */
.prod-wc-meta { margin-top: 6px; font-size: 14px; color: var(--ink-faint); }
.prod-wc-meta .posted_in a, .prod-wc-meta .tagged_as a { color: var(--ink-soft); }
.prod-wc-meta .posted_in a:hover, .prod-wc-meta .tagged_as a:hover { color: var(--cyan-bri); }

/* Prodotti correlati */
.prod-related { padding: 60px 0; background: oklch(0.55 0.05 225 / 0.05); border-top: 1px solid var(--line-soft); margin-top: 64px; }

/* Tabs (se presenti) */
.prod-tabs { margin-top: 48px; }
.prod-tabs .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 28px; border: none; border-bottom: 1px solid var(--line); display: flex; gap: 4px; list-style: none; }
.prod-tabs .woocommerce-tabs ul.tabs::before { display: none; }
.prod-tabs .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0; }
.prod-tabs .woocommerce-tabs ul.tabs li a { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-faint); padding: 12px 18px; display: block; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.prod-tabs .woocommerce-tabs ul.tabs li.active a { color: var(--cyan-bri); border-bottom-color: var(--cyan); }
.prod-tabs .woocommerce-tabs ul.tabs li::before, .prod-tabs .woocommerce-tabs ul.tabs li::after { display: none; }
.prod-tabs .woocommerce-tabs .panel { border: none !important; background: transparent !important; padding: 0 !important; }
.prod-info .product_meta span { display: flex; gap: 8px; }
.prod-info .product_meta .sku_wrapper, .prod-info .product_meta .posted_in, .prod-info .product_meta .tagged_as { color: var(--ink-faint); }
.prod-info .product_meta a { color: var(--ink-soft); }
.prod-info .product_meta a:hover { color: var(--cyan-bri); }

/* varianti */
.prod-info .variations { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.prod-info .variations td, .prod-info .variations th { padding: 6px 0; vertical-align: middle; }
.prod-info .variations label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.prod-info .variations select { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); padding: 10px 14px; font-family: var(--font-head); width: 100%; }
.prod-info .reset_variations { font-size: 13px; color: var(--ink-faint); }

/* tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: 60px; border-top: 1px solid var(--line-soft); padding-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 0 0 0; margin: 0 0 30px; border: none; border-bottom: 1px solid var(--line); display: flex; gap: 4px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-faint); padding: 12px 18px; display: block; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cyan-bri); border-bottom-color: var(--cyan); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::after, .woocommerce div.product .woocommerce-tabs ul.tabs li::before { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { border: none; border-radius: 0; background: transparent; padding: 0; }
.woocommerce div.product .woocommerce-tabs .panel h2 { display: none; }

/* related products */
.woocommerce .related.products { margin-top: 60px; }
.woocommerce .related.products > h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ============================================================
   PRODUCT PAGE — layout 2 colonne (mock/product.html)
   ============================================================ */

.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 26px 0 60px; align-items: start; }

/* Gallery sticky */
.gallery { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.gallery .woocommerce-product-gallery { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.gallery .woocommerce-product-gallery__wrapper { display: block; }
.gallery .woocommerce-product-gallery__image { aspect-ratio: 1/1; overflow: hidden; display: block; }
.gallery .woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .flex-control-nav { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery .flex-control-nav li { margin: 0; }
.gallery .flex-control-nav img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: border-color .15s; width: 100%; display: block; }
.gallery .flex-control-nav .flex-active img { border-color: var(--cyan); }

/* Product info column */
.pd-info .cat-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan-bri); background: var(--aqua-wash); border: 1px solid oklch(0.7 0.09 200 / 0.28); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.pd-info h1.product_title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; margin-top: 16px; line-height: 1.08; color: var(--ink); }
.pd-info .woocommerce-product-rating { margin-top: 14px; }
.pd-info .star-rating { color: var(--cyan-bri); }

.pd-price { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.pd-price .now { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--ink); letter-spacing: -0.02em; }
.pd-price .now del { font-size: 20px; color: var(--ink-faint); font-weight: 500; text-decoration: line-through; }
.pd-price .now ins { text-decoration: none; color: var(--cyan-bri); }
.pd-price .vat { font-size: 13px; color: var(--ink-faint); font-family: var(--font-head); }

.pd-stock { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.pd-stock.in-stock { color: var(--cyan-bri); }
.pd-stock.out-of-stock { color: var(--ink-faint); }
.pd-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px oklch(0.58 0.108 205 / 0.18); flex: none; }

.pd-lead { color: var(--ink-soft); font-size: 16px; margin-top: 20px; max-width: 52ch; }

.pd-highlights { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-highlights li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.pd-highlights li svg { flex: none; margin-top: 2px; color: var(--cyan-bri); }

/* Buy section — wraps WC add-to-cart form */
.pd-buy { margin-top: 30px; }
.pd-buy .cart { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pd-buy .qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.pd-buy .qty label { display: none; }
.pd-buy .qty input.qty { width: 64px !important; height: 50px; padding: 0 12px; background: var(--bg-soft); border: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 17px; text-align: center; outline: none; }
.pd-buy .single_add_to_cart_button { flex: 1; min-width: 200px; height: 50px; font-size: 16px !important; padding: 0 24px !important; }
.pd-buy .variations { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.pd-buy .variations td, .pd-buy .variations th { padding: 6px 0; vertical-align: middle; }
.pd-buy .variations label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.pd-buy .variations select { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); padding: 10px 14px; font-family: var(--font-head); width: 100%; }
.pd-buy .reset_variations { font-size: 13px; color: var(--ink-faint); }
.pd-buy .woocommerce-variation-price .price { color: var(--cyan-bri); font-weight: 700; font-size: 22px; }

.pd-meta { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.pd-meta .row { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-faint); font-family: var(--font-head); }
.pd-meta .row svg { color: var(--cyan); flex: none; }

/* Detail section */
.pd-detail { border-top: 1px solid var(--line); padding: 56px 0; }
.pd-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.pd-detail h2 { font-size: 24px; margin-bottom: 20px; }
.pd-detail .body p { color: var(--ink-soft); font-size: 16px; margin-top: 16px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table th { text-align: left; padding: 14px 0; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); width: 46%; vertical-align: top; }
.spec-table td { padding: 14px 0; font-size: 14.5px; color: var(--ink); font-family: var(--font-head); font-weight: 600; }

/* ============================================================
   CART PAGE (mock/cart.html)
   ============================================================ */

.cart-head { padding: 18px 0 30px; display: flex; align-items: baseline; gap: 14px; }
.cart-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.025em; }
.cart-head .n { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-faint); }

.cart-grid { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 40px; align-items: start; padding-bottom: 80px; }

.cart-lines { display: flex; flex-direction: column; }
.cl-headrow { display: grid; grid-template-columns: 1fr 130px 110px 28px; gap: 20px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.cl-headrow .h-q { width: 130px; text-align: center; }
.cl-headrow .h-p { width: 110px; text-align: right; }
.cl { display: grid; grid-template-columns: 1fr 130px 110px 28px; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line-soft); }
.cl .prodcell { display: flex; gap: 16px; align-items: center; min-width: 0; }
.cl .prodcell img { width: 78px; height: 78px; object-fit: cover; border-radius: 13px; flex: none; }
.cl .prod-img { display: block; flex: none; }
.cl .nm { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.2; }
.cl .nm a { color: inherit; }
.cl .nm a:hover { color: var(--cyan-bri); }
.cl .each { font-size: 13px; color: var(--ink-faint); margin-top: 5px; }

/* Quantity selector — shared cart + product page */
.qsel { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); width: max-content; margin: 0 auto; }
.qsel .qbtn, .qsel button.qbtn { width: 38px; height: 42px; border: none; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-soft); display: grid; place-items: center; transition: background .15s, color .15s; }
.qsel .qbtn:hover { background: var(--aqua-wash); color: var(--cyan-bri); }
.qsel .q { font-family: var(--font-head); font-weight: 700; font-size: 15px; min-width: 34px; text-align: center; color: var(--ink); user-select: none; }

.cl .lp { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); text-align: right; white-space: nowrap; }
.cl .rm { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-faint); display: grid; place-items: center; transition: all .15s; text-decoration: none; }
.cl .rm:hover { color: var(--coral); border-color: var(--line); background: oklch(0.6 0.02 235 / 0.06); }

.ship-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.ship-bar .lbl { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); flex-wrap: wrap; }
.ship-bar .lbl svg { color: var(--cyan); flex: none; }
.ship-bar .lbl b { color: var(--cyan-bri); }
.ship-bar .track { height: 7px; border-radius: 999px; background: oklch(0.6 0.02 235 / 0.12); margin-top: 12px; overflow: hidden; }
.ship-bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); transition: width .4s var(--ease); }

.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; flex-wrap: wrap; gap: 14px; }
.cart-actions .cont { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--cyan-bri); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cart-actions .clear-cart { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--ink-faint); background: none; border: none; cursor: pointer; text-decoration: none; }
.cart-actions .clear-cart:hover { color: var(--coral); }

.cart-summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.cs-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft); }
.cs-head h2 { font-size: 18px; }
.promo { padding: 18px 24px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 10px; }
.promo input, .promo #coupon_code { flex: 1; font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 13px; outline: none; }
.promo input:focus, .promo #coupon_code:focus { border-color: var(--cyan); }
.promo button, .promo [name="apply_coupon"] { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: oklch(0.6 0.02 235 / 0.06); color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.promo button:hover, .promo [name="apply_coupon"]:hover { border-color: var(--cyan); color: var(--cyan-bri); }
.cs-totals { padding: 18px 24px; display: flex; flex-direction: column; gap: 11px; }
.trow { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-soft); }
.trow .t { flex: 1; }
.trow .v { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.trow.free .v { color: var(--cyan-bri); }
.trow.grand { padding-top: 13px; border-top: 1px solid var(--line-soft); align-items: baseline; }
.trow.grand .t { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.trow.grand .v { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--ink); }
.cs-cta { padding: 4px 24px 24px; }
.cs-cta .btn { width: 100%; font-size: 16px; padding: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.cs-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-head); }
.cs-trust svg { color: var(--cyan); }
.cs-pay { display: flex; gap: 7px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.cs-pay span { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: 0.03em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; }
.cart-empty { text-align: center; padding: 70px 0 90px; }
.cart-empty .ic { width: 76px; height: 76px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 22px; color: var(--ink-faint); }
.cart-empty h2 { font-size: 24px; }
.cart-empty p { color: var(--ink-soft); margin-top: 10px; }
.cart-empty .btn { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   CHECKOUT PAGE (mock/checkout.html)
   ============================================================ */

.crumbs { padding-top: 34px; }
.crumbs ol { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-size: 14px; color: var(--ink-faint); }
.crumbs a { color: var(--cyan-bri); text-decoration: none; }
.crumbs .sep { color: var(--ink-faint); }

.co-head { padding: 18px 0 30px; }
.co-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.025em; }
.co-head .secure { margin-top: 12px; font-family: var(--font-head); font-weight: 500; font-size: 13.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.co-head .secure svg { color: var(--cyan); }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 40px; align-items: start; padding-bottom: 80px; }
.co-form { display: flex; flex-direction: column; gap: 26px; }

.fset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.fset-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fset-head .num { width: 28px; height: 28px; border-radius: 50%; background: var(--aqua-wash); color: var(--cyan-bri); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; flex: none; border: 1px solid oklch(0.7 0.09 200 / 0.28); }
.fset-head h2 { font-size: 19px; margin: 0; }

/* WooCommerce billing field rows */
.woocommerce-billing-fields .form-row,
.woocommerce-checkout .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce-billing-fields .form-row label,
.woocommerce-checkout .form-row label { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.01em; display: block; margin-bottom: 7px; }
.woocommerce-billing-fields .form-row label .required,
.woocommerce-checkout .form-row label .required { color: var(--coral); }
.woocommerce-billing-fields .form-row input.input-text,
.woocommerce-billing-fields .form-row select,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select { font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.woocommerce-billing-fields .form-row input.input-text:focus,
.woocommerce-billing-fields .form-row select:focus,
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px oklch(0.7 0.12 200 / 0.16); }
.woocommerce-billing-fields .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid input { border-color: var(--coral); }
/* Side-by-side field pairs */
.fset .form-row-first { float: left; width: calc(50% - 7px); clear: left; }
.fset .form-row-last  { float: right; width: calc(50% - 7px); }
.fset .form-row-wide  { clear: both; width: 100%; }
.fset::after { content: ''; display: table; clear: both; }

/* Shipping methods */
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.woocommerce-shipping-methods li { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg-soft); }
.woocommerce-shipping-methods li:has(input:checked) { border-color: var(--cyan); background: var(--aqua-wash); }
.woocommerce-shipping-methods li input[type="radio"] { accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.woocommerce-shipping-methods li label { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }

/* Payment methods */
.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wc_payment_method { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); transition: border-color .15s, background .15s; }
.wc_payment_method input[type="radio"] { accent-color: var(--cyan); }
.wc_payment_method label { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.wc_payment_method.payment_method_selected,
.wc_payment_method:has(input:checked) { border-color: var(--cyan); background: var(--aqua-wash); }
.wc_payment_method .payment_box,
.woocommerce-checkout #payment div.payment_box { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); background: transparent; line-height: 1.55; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
#payment .place-order { margin-top: 24px; }
#payment #place_order { width: 100%; font-size: 16px; padding: 15px; }

/* Order summary sidebar */
.co-summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.sum-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: baseline; justify-content: space-between; }
.sum-head h2 { font-size: 18px; }
.sum-head .edit { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--cyan-bri); text-decoration: none; }
.sum-items { padding: 8px 24px; max-height: 320px; overflow-y: auto; }
.sum-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.sum-item:last-child { border-bottom: none; }
.sum-item .qb { position: relative; flex: none; }
.sum-item .qb img { width: 56px; height: 56px; object-fit: cover; border-radius: 11px; display: block; }
.sum-item .qbubble { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--cyan); color: oklch(0.18 0.03 238); font-family: var(--font-head); font-weight: 800; font-size: 11px; display: grid; place-items: center; border: 2px solid var(--surface); }
.sum-item > span:nth-child(2) { min-width: 0; }
.sum-item .nm { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.25; }
.sum-item .ln { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.sum-item .lp { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); margin-left: auto; white-space: nowrap; }
.sum-totals { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.sum-cta { padding: 0 24px 24px; }
.sum-cta .btn { width: 100%; font-size: 16px; padding: 15px; }
.sum-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-head); }
.sum-trust svg { color: var(--cyan); }

.co-summary .promo { padding: 18px 24px; }
.co-summary .promo input { min-width: 0; }
.co-summary .promo button { flex: none; white-space: nowrap; }

/* Thank you page */
.co-success { text-align: center; padding: 60px 0 90px; max-width: 560px; margin-inline: auto; }
.co-success .check { width: 86px; height: 86px; border-radius: 50%; background: var(--aqua-wash); border: 1px solid oklch(0.7 0.09 200 / 0.30); display: grid; place-items: center; margin: 0 auto 26px; color: var(--cyan-bri); box-shadow: var(--glow); }
.co-success h1 { font-size: clamp(28px, 4vw, 40px); }
.co-success p { color: var(--ink-soft); font-size: 16.5px; margin-top: 14px; }
.co-success .ordref { display: inline-block; margin-top: 22px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--cyan-bri); background: oklch(0.16 0.024 240 / 0.7); border: 1px solid oklch(0.6 0.08 205 / 0.30); padding: 9px 16px; border-radius: 999px; }
.co-success .btn-row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ============================================================
   PORTAL PAGE — mock/portal.html
   ============================================================ */

/* Hero */
.p-hero { position: relative; overflow: hidden; }
.p-hero-inner { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; padding: 48px 0 60px; }
.p-hero h1 { font-size: clamp(40px, 6vw, 70px); letter-spacing: -0.03em; line-height: 1.02; }
.p-hero h1 .accent { color: var(--cyan); }
.p-hero .sub { font-size: clamp(19px, 2.3vw, 24px); color: var(--ink); font-weight: 600; font-family: var(--font-head); margin-top: 20px; letter-spacing: -0.01em; max-width: 22ch; }
.p-hero .lead { font-size: 17px; color: var(--ink-soft); margin-top: 18px; max-width: 52ch; }
.p-hero-cta { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.p-hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; }
.p-hero-note svg { color: var(--cyan); flex: none; }
.p-hero-visual { position: relative; }
.p-hero-visual .shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.p-hero-visual .shot .ph { aspect-ratio: 4 / 3.4; }
.p-hero-float { position: absolute; left: -16px; bottom: 30px; background: oklch(0.18 0.026 242 / 0.86); backdrop-filter: blur(10px); border: 1px solid oklch(0.7 0.09 200 / 0.30); border-radius: 16px; box-shadow: var(--shadow-md); padding: 14px 17px; display: flex; align-items: center; gap: 13px; max-width: 252px; }
.p-hero-float .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--aqua-wash); color: var(--cyan-bri); display: grid; place-items: center; flex: none; }
.p-hero-float .t { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.15; }
.p-hero-float .s { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

/* Da dove nasce — timeline */
.origin { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px; align-items: center; }
.origin .body p { color: var(--ink-soft); font-size: 16px; margin-top: 16px; }
.origin .body p:first-of-type { margin-top: 20px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.tl-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px oklch(0.58 0.108 205 / 0.18); margin-top: 5px; flex: none; }
.tl-line { width: 2px; flex: 1; background: var(--line); margin: 6px 0; }
.tl-item:last-child .tl-line { display: none; }
.tl-card { padding-bottom: 26px; }
.tl-card .yr { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.tl-card h4 { font-size: 18px; margin-top: 4px; color: var(--ink); }
.tl-card p { color: var(--ink-soft); font-size: 14.5px; margin-top: 5px; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.feat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: oklch(0.7 0.09 200 / 0.35); }
.feat .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--aqua-wash); color: var(--cyan-bri); }
.feat h3 { font-size: 19px; }
.feat p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }

/* Migrazione old/new */
.migrate { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.mig-card { border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; }
.mig-card.old { background: var(--surface); border: 1px solid var(--line); }
.mig-card.new { background: linear-gradient(150deg, oklch(0.34 0.07 205), oklch(0.21 0.04 234)); border: 1px solid oklch(0.7 0.09 200 / 0.30); }
.mig-card.new::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, oklch(0.78 0.12 198 / 0.45), transparent 70%); }
.mig-card h3 { font-size: 22px; margin-top: 16px; }
.mig-card.new h3 { color: #fff; }
.mig-card > p { font-size: 15px; margin-top: 12px; color: var(--ink-soft); position: relative; }
.mig-card.new > p { color: oklch(0.92 0.02 205); }
.mig-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.mig-list li { display: flex; gap: 11px; font-size: 14.5px; align-items: flex-start; }
.mig-list li svg { flex: none; margin-top: 2px; }
.mig-card.old .mig-list svg { color: var(--ink-faint); }
.mig-card.new .mig-list { color: #fff; }
.mig-card.new .mig-list svg { color: var(--cyan-bri); }
.mig-card .btn { margin-top: 24px; position: relative; }

/* Beta aperta */
.beta-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.beta-points { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.beta-point { display: flex; gap: 14px; align-items: flex-start; }
.beta-point .bp-ic { width: 40px; height: 40px; border-radius: 11px; flex: none; background: var(--aqua-wash); color: var(--cyan-bri); display: grid; place-items: center; }
.beta-point .bp-t { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.beta-point .bp-d { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.beta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.beta-card .badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.beta-card h3 { font-size: 23px; margin-top: 18px; }
.beta-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.beta-card .ph { border-radius: var(--radius-sm); margin-top: 18px; }
.beta-card .btn { width: 100%; margin-top: 22px; }
.beta-card .fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* Reef Champions */
.champ { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.champ-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-md); }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; }
.lb-head .t { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 15px; }
.lb-head .live { font-size: 11.5px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan-bri); display: flex; align-items: center; gap: 6px; }
.lb-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px oklch(0.58 0.108 205 / 0.18); }
.lb-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; border-radius: 12px; }
.lb-row + .lb-row { border-top: 1px solid var(--line-soft); }
.lb-row .rank { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--ink-faint); text-align: center; }
.lb-row.top .rank { color: var(--cyan-bri); }
.lb-row .who { display: flex; align-items: center; gap: 12px; }
.lb-row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--aqua-wash); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--cyan-bri); flex: none; }
.lb-row .nm { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.lb-row .pts { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); }
.lb-row .pts span { color: var(--ink-faint); font-weight: 500; font-size: 12px; }

/* FAQ accordion */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: none; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan-bri); }
.faq summary .pm { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--aqua-wash); color: var(--cyan-bri); transition: transform .2s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; max-width: 68ch; }
.faq .ans a { color: var(--cyan-bri); font-weight: 600; }

/* Final CTA card */
.final { padding: 12px 0 0; }
.final-card { border-radius: var(--radius-lg); padding: 60px 48px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(150deg, oklch(0.34 0.07 205), oklch(0.20 0.04 236)); border: 1px solid oklch(0.7 0.09 200 / 0.30); box-shadow: var(--shadow-lg); }
.final-card::before { content: ""; position: absolute; left: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, oklch(0.78 0.12 198 / 0.40), transparent 70%); }
.final-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, oklch(0.6 0.10 230 / 0.40), transparent 70%); }
.final-card .chip { background: oklch(1 0 0 / 0.16); color: #fff; border-color: oklch(1 0 0 / 0.25); position: relative; }
.final-card h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-top: 18px; position: relative; letter-spacing: -0.025em; }
.final-card p { color: oklch(0.92 0.02 205); font-size: 17px; margin-top: 16px; max-width: 48ch; margin-inline: auto; position: relative; }
.final-card .btn-row { display: flex; gap: 13px; justify-content: center; margin-top: 30px; flex-wrap: wrap; position: relative; }

/* Homepage portal block */
.hp-portal { padding: 40px 0; }
.hp-card { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; align-items: stretch; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid oklch(0.7 0.09 200 / 0.30); background: linear-gradient(150deg, oklch(0.34 0.07 205), oklch(0.20 0.04 236)); box-shadow: var(--shadow-lg); }
.hp-body { padding: 44px 46px; position: relative; z-index: 1; }
.hp-card .chip { background: oklch(1 0 0 / 0.16); color: #fff; border-color: oklch(1 0 0 / 0.25); }
.hp-body h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-top: 16px; letter-spacing: -0.02em; }
.hp-body p { color: oklch(0.92 0.02 205); font-size: 16px; margin-top: 14px; max-width: 46ch; }
.hp-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hp-feats span { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: #fff; background: oklch(1 0 0 / 0.12); border: 1px solid oklch(1 0 0 / 0.18); padding: 7px 13px; border-radius: 999px; }
.hp-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hp-media { position: relative; min-height: 280px; }
.hp-media .ph { position: absolute; inset: 0; }
.hp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.20 0.04 236) 0%, transparent 22%); }

/* Nav portal pill */
.nav-portal { background: var(--cyan) !important; color: oklch(0.18 0.03 238) !important; font-weight: 700; box-shadow: 0 4px 16px oklch(0.7 0.12 200 / 0.28); }
.nav-portal:hover { background: var(--cyan-bri) !important; }

@media (max-width: 1040px) {
  .p-hero-inner { grid-template-columns: 1fr; gap: 38px; max-width: 640px; }
  .origin, .beta-wrap, .champ { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; max-width: 620px; }
  .cat-grid,
  .prod-grid,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .split { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  aside.sidebar { order: 2; }
  .values { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .pd-top { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
  .pd-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .cart-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-summary { position: static; }
  .co-grid { grid-template-columns: 1fr; gap: 28px; }
  .co-summary { position: static; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .migrate { grid-template-columns: 1fr; }
  .hp-card { grid-template-columns: 1fr; }
  .hp-media { min-height: 200px; order: -1; }
  .hp-media::after { background: linear-gradient(180deg, transparent 40%, oklch(0.20 0.04 236)); }
  .hp-body { padding: 34px 28px; }
}
@media (max-width: 640px) {
  .cat-grid,
  .prod-grid,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .woocommerce ul.products li.prod .prod-body { padding: 16px 18px 18px !important; }
  .woocommerce ul.products li.prod .prod-body h3 { font-size: 18px !important; }
  .woocommerce ul.products li.prod .prod-body .d { font-size: 14px; }
  .woocommerce ul.products li.prod .prod-foot { align-items: flex-end; }
  .woocommerce ul.products li.prod .prod-foot .button { padding: 9px 13px !important; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .cl-headrow { display: none; }
  .cl { grid-template-columns: 1fr auto; grid-template-areas: "prod x" "q p"; gap: 14px 12px; }
  .cl .prodcell { grid-area: prod; }
  .cl .qsel { grid-area: q; margin: 0; }
  .cl .lp { grid-area: p; text-align: left; align-self: center; }
  .cl .rm { grid-area: x; align-self: start; }
  .fset { padding: 20px 18px; }
  .fset .form-row-first, .fset .form-row-last { float: none; width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .final-card { padding: 44px 26px; }
}
