/*
Theme Name: WOC Dimensio
Theme URI: https://www.wocstore.cc
Author: WOC Sports
Author URI: https://www.wocstore.cc
Description: Dark, Dimensio-inspired storefront theme for the WOC Sports custom 3D football kit designer.
Version: 1.0.13
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: woc-dimensio
Tags: dark, e-commerce, custom-menu
*/
/* WOC Dimensio — faithful adaptation of the "Dimensio AI 3D Modelling" landing style.
   Reference tokens: bg #090a11, card #0c0d17, accent #3975fe, white buttons (16px),
   pill badges (21px), 29px cards, 19px list items, 56px CTA card. */
:root {
    --bg: #090a11;
    --bg-2: #0b0d18;
    --card: #0c0d17;
    --card-2: #151727;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --text-2: #aeb9d4;
    --text-3: #78839f;
    --accent: #3975fe;
    --accent-2: #6fa0ff;
    --radius: 29px;
    --radius-btn: 16px;
    --shell: 1200px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* Defensive fallback for cached WooCommerce zoom scripts. The full-size
   overlay must never sit above the active product-gallery slide. */
.woocommerce-product-gallery .zoomImg { display: none !important; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.shell-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* Backdrop glows */
.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1000px 560px at 82% -12%, rgba(57, 117, 254, 0.15), transparent 62%),
        radial-gradient(820px 520px at -10% 24%, rgba(57, 117, 254, 0.09), transparent 60%),
        radial-gradient(760px 540px at 50% 118%, rgba(57, 117, 254, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(9, 10, 17, 0.38) 0%, rgba(9, 10, 17, 0.60) 52%, rgba(9, 10, 17, 0.76) 100%),
        url("assets/wallpaper.jpg") center top / cover no-repeat,
        var(--bg);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(9, 10, 17, 0.78);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: 0.01em; }
.brand .custom-logo { width: 50px; height: 50px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block;
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--text-2);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link {
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-btn);
}
.lang-link:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Buttons — reference uses solid white pills with 16px radius */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #ffffff; color: #0b0e1a; }
.btn-primary:hover { color: #0b0e1a; background: #eef2ff; box-shadow: 0 12px 30px rgba(57, 117, 254, 0.28); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* Badge — solid accent pill */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 21px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    margin-bottom: 22px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.9; }

/* Hero — left copy, right big 3D visual */
.hero { padding: clamp(52px, 7vw, 104px) 0 40px; }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}
.hero-title {
    font-size: clamp(2.35rem, 5.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title .gradient-text { display: block; color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--text-2); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-visual-glow {
    position: absolute;
    inset: 6%;
    background: radial-gradient(closest-side, rgba(57, 117, 254, 0.3), transparent 72%);
    filter: blur(10px);
    z-index: 0;
}
.hero-visual-card {
    position: relative;
    z-index: 1;
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: #101426;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}
.hero-visual-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center bottom;
    padding: 18px 10px 0;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.42));
}
.scroll-down {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 11px 9px;
    border-radius: 21px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 650;
    writing-mode: vertical-rl;
    letter-spacing: 0.08em;
}
.scroll-down::before {
    content: "";
    width: 2px;
    height: 18px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.65);
    animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
    0%, 100% { transform: scaleY(0.45); opacity: 0.45; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .badge { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.95rem, 4vw, 3.375rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head .lead { font-size: 1rem; color: var(--text-2); margin: 0; }

/* Bento feature cards */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento-card {
    grid-column: span 4;
    padding: 32px 30px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.bento-card h3 { font-size: 1.45rem; font-weight: 750; }
.bento-card p { margin: 0 0 18px; font-size: 0.95rem; }
.bento-card .card-link { font-weight: 700; font-size: 0.95rem; }
.bento-wide { grid-column: span 8; }

/* Steps — numbered cards */
.steps-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; }
.steps-list li { padding: 34px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 17px;
    background: var(--card-2);
    border: 1px solid var(--border);
}
.step-icon .step-number { color: var(--accent); font-weight: 800; font-size: 1rem; }
.steps-list h3 { font-size: 1.75rem; font-weight: 750; margin-bottom: 10px; }
.steps-list p { margin: 0; font-size: 0.95rem; }

/* Shop teaser */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shop-card {
    display: block;
    padding: 14px;
    border-radius: 19px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.shop-card:hover { transform: translateY(-4px); border-color: var(--border-strong); color: var(--text-2); }
.shop-card img { border-radius: 14px; margin-bottom: 14px; aspect-ratio: 1 / 1; object-fit: cover; }
.shop-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.shop-card .shop-price { color: var(--accent-2); font-weight: 750; font-size: 0.95rem; }
.shop-card .shop-price del { color: var(--text-3); font-weight: 500; }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-list details { background: var(--card); border: 1px solid var(--border); border-radius: 19px; overflow: hidden; }
.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; font-size: 0.95rem; }

/* CTA panel */
.cta-band { padding-bottom: clamp(56px, 8vw, 96px); }
.cta-panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(48px, 7vw, 92px) clamp(24px, 6vw, 90px);
    border-radius: 56px;
    background:
        radial-gradient(720px 320px at 50% -30%, rgba(57, 117, 254, 0.28), transparent 70%),
        var(--card);
    border: 1px solid var(--border-strong);
}
.cta-panel h2 { font-size: clamp(1.95rem, 4vw, 3.375rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-panel p { max-width: 36em; margin: 0 auto 30px; font-size: 1rem; }
.cta-panel .btn { margin-top: 6px; }

/* Content pages */
.content-shell { padding: clamp(36px, 6vw, 72px) 0; }
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px);
}
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head { margin-bottom: 22px; }
.page-content { color: var(--text-2); }
.page-content a { color: var(--accent); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.not-found { text-align: center; padding: 70px 24px; }
.not-found .btn { margin-top: 8px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text-2); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: transparent; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 0.8fr; gap: 36px; margin-bottom: 44px; }
.footer-brand { color: var(--text); font-size: 1.05rem; }
.footer-tagline { margin: 12px 0 18px; font-size: 0.92rem; color: var(--text-3); max-width: 30em; }
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--radius-btn);
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 650;
}
.whatsapp-link:hover { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.65); }
.footer-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { color: var(--text-2); font-size: 0.94rem; }
.footer-list a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: 0.85rem; color: var(--text-3); }
.footer-bottom p { margin: 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cookie-settings-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    cursor: pointer;
}
.cookie-settings-button:hover, .cookie-settings-button:focus-visible { color: var(--text); }

/* Optional Google measurement consent. Hidden unless a valid GTM id exists. */
.cookie-consent {
    position: fixed;
    z-index: 120;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: #10121d;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.cookie-consent h2 { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0; }
.cookie-consent p { margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.cookie-consent-actions { display: flex; gap: 8px; }
.cookie-consent button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--card-2);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-consent button[data-consent-choice="granted"] { border-color: var(--accent); background: var(--accent); }
.cookie-consent button:hover, .cookie-consent button:focus-visible { border-color: var(--accent-2); }
body.woc-consent-open { padding-bottom: 128px; }

/* WooCommerce dark adjustments */
.woo-content { padding: 20px 0; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce #respond input#submit {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius-btn);
    padding: 11px 20px;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: var(--card); border: 1px solid var(--border); border-radius: 19px; padding: 12px; }
.woocommerce ul.products li.product .price { color: var(--accent-2); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent-2); }
.woocommerce-page .woocommerce { color: var(--text-2); }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--accent); }
.woocommerce table.shop_table { border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--border); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
    .bento-card { grid-column: span 6; }
    .bento-wide { grid-column: span 12; }
    .steps-list { grid-template-columns: repeat(3, 1fr); }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 20px 22px;
        background: rgba(9, 10, 17, 0.98);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .primary-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; }
    .header-actions { flex-direction: row; justify-content: space-between; margin-top: 8px; }
    .steps-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .bento-card, .bento-wide { grid-column: span 12; }
    .shop-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-panel { border-radius: 32px; }
    .section-head { margin-bottom: 36px; }
    .footer-bottom-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
    .cookie-consent { left: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; }
    .cookie-consent-layout { grid-template-columns: 1fr; gap: 14px; }
    .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-consent button { white-space: normal; }
    body.woc-consent-open { padding-bottom: 260px; }
}
