:root {
    --deep-space-navy: 210 25% 9%;
    --electric-blue: 189 100% 50%;
    --digital-purple: 273 65% 59%;
    --background: var(--deep-space-navy);
    --foreground: 210 17% 98%;
    --card: 210 20% 12%;
    --card-foreground: 210 17% 98%;
    --primary: var(--electric-blue);
    --primary-foreground: 210 25% 9%;
    --secondary: 210 15% 18%;
    --secondary-foreground: 210 17% 98%;
    --muted: 210 15% 18%;
    --muted-foreground: 210 10% 75%;
    --accent: var(--digital-purple);
    --border: 210 15% 22%;
    --radius: 1rem;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 22px hsla(var(--primary), 0.28), 0 0 48px hsla(var(--accent), 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: hsl(var(--background));
    background-image:
        radial-gradient(circle at 0% 0%, hsla(var(--primary), 0.08), transparent 28rem),
        radial-gradient(circle at 100% 20%, hsla(var(--accent), 0.08), transparent 30rem),
        radial-gradient(circle at 60% 100%, hsla(var(--card), 0.9), transparent 26rem);
    background-attachment: fixed;
    color: hsl(var(--foreground));
    overflow-x: clip;
    line-height: 1.625;
}

body.admin-bar .site-header { top: 32px; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth), transform var(--transition-smooth); }
a:hover { color: hsl(var(--primary)); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", system-ui, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-wrap: balance;
}

p { margin: 0 0 1rem; color: hsl(var(--muted-foreground)); }

h1 { font-size: clamp(2.75rem, 7vw, 6.85rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.6vw, 4.25rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 750; }

button, input, textarea, select { font: inherit; }
input, textarea, select {
    width: 100%;
    border: 1px solid hsla(var(--foreground), 0.12);
    background: hsla(var(--secondary), 0.72);
    color: hsl(var(--foreground));
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    min-height: 46px;
}

textarea { resize: vertical; }

input:focus, textarea:focus, select:focus, a:focus-visible, button:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 4px;
    box-shadow: 0 0 0 6px hsla(var(--accent), 0.12);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 1rem;
    top: 1rem;
    width: auto;
    z-index: 100000;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: .8rem 1rem;
    border-radius: .75rem;
}

.container-custom {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.narrow-container { max-width: 980px; }

.glass-card {
    background: linear-gradient(145deg, hsla(var(--card), 0.76), hsla(var(--secondary), 0.44));
    backdrop-filter: blur(18px);
    border: 1px solid hsla(var(--foreground), 0.08);
    box-shadow: 0 18px 60px hsla(0, 0%, 0%, 0.24);
}

.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: .8rem 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth);
}

.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    transform: translateY(-2px);
}

.button-primary, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 28px hsla(var(--primary), 0.26);
}

.button-primary:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    color: hsl(var(--primary-foreground));
    box-shadow: 0 16px 38px hsla(var(--primary), 0.38);
    filter: brightness(1.05);
}

.button-secondary {
    background: hsla(var(--secondary), 0.78);
    color: hsl(var(--foreground));
    border-color: hsla(var(--foreground), 0.1);
}

.button-secondary:hover {
    color: hsl(var(--foreground));
    border-color: hsla(var(--accent), 0.55);
    box-shadow: 0 0 24px hsla(var(--accent), 0.18);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: hsla(var(--background), 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid hsla(var(--foreground), 0.08);
}

.nav-wrap {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.brand-mark { display: inline-flex; align-items: center; gap: .85rem; }
.brand-symbol {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: hsl(var(--background));
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: var(--shadow-glow);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: "Montserrat", sans-serif; font-weight: 900; }
.brand-text small { color: hsl(var(--muted-foreground)); font-size: .76rem; }
.custom-logo-link img { max-height: 58px; width: auto; }

.main-navigation { justify-self: center; }
.primary-menu, .fallback-menu, .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.primary-menu a {
    display: block;
    padding: .72rem .9rem;
    color: hsl(var(--foreground) / .82);
    font-weight: 700;
    border-radius: .85rem;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a {
    background: hsla(var(--primary), 0.1);
    color: hsl(var(--primary));
}
.header-actions { display: flex; align-items: center; gap: .7rem; }
.icon-link, .cart-link {
    border: 1px solid hsla(var(--foreground), 0.1);
    background: hsla(var(--secondary), 0.54);
    padding: .65rem .9rem;
    border-radius: .85rem;
    font-weight: 800;
}
.cart-link { position: relative; color: hsl(var(--primary)); }
.cart-count {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-left: .3rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: .75rem;
}
.menu-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; padding: .55rem; }
.menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 6px 0; background: hsl(var(--foreground)); border-radius: 999px; }

.hero-section {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.hero-orb { position: absolute; border-radius: 999px; filter: blur(80px); opacity: .45; pointer-events: none; }
.hero-orb-one { width: 22rem; height: 22rem; background: hsl(var(--primary)); left: -7rem; top: 12%; }
.hero-orb-two { width: 25rem; height: 25rem; background: hsl(var(--accent)); right: -9rem; bottom: 8%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy p, .page-hero p, .section-heading p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .76rem;
}
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-media figure { margin: 0; border-radius: 1.35rem; overflow: hidden; min-height: 320px; border: 1px solid hsla(var(--foreground), 0.08); box-shadow: 0 20px 60px hsla(0,0%,0%,.32); }
.hero-media .offset-card { transform: translateY(2rem); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.hero-media figure:hover img, .feature-card:hover img { transform: scale(1.08); }

.page-hero, .content-section, .featured-section, .category-section, .split-section, .promise-section, .social-section, .front-editable-content, .ap-editable-content {
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.compact-hero { text-align: center; padding-bottom: clamp(2rem, 5vw, 4rem); }
.compact-hero.glass-card { padding: clamp(3rem, 8vw, 6rem); border-radius: 1.5rem; margin-top: 3rem; }
.section-heading { text-align: center; max-width: 840px; margin: 0 auto 3rem; }
.muted-band { background: hsla(var(--card), 0.24); border-block: 1px solid hsla(var(--foreground), 0.06); }

.ap-carousel { position: relative; overflow: hidden; padding: 1rem 0 4rem; }
.ap-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31.5%); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 1rem .25rem; }
.ap-carousel-track::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; overflow: hidden; border-radius: 1.25rem; border: 1px solid hsla(var(--foreground), 0.08); background: hsla(var(--card), 0.68); transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth); }
.product-card:hover { transform: translateY(-6px); border-color: hsla(var(--primary), 0.55); box-shadow: var(--shadow-glow); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: hsla(var(--secondary), 0.4); }
.product-card-body { padding: 1.35rem; }
.product-card h3 { font-size: 1.15rem; min-height: 2.5em; }
.product-price { color: hsl(var(--primary)); font-weight: 900; font-size: 1.15rem; margin-bottom: .7rem; }
.carousel-controls { position: absolute; left: 50%; bottom: .25rem; transform: translateX(-50%); display: flex; gap: .7rem; }
.carousel-controls button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid hsla(var(--foreground), 0.1); background: hsla(var(--secondary), 0.72); color: hsl(var(--foreground)); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.carousel-controls button:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.social-section { background: linear-gradient(90deg, hsla(var(--primary), .05), hsla(var(--accent), .05)); }
.social-grid, .category-grid, .trust-grid, .value-grid, .feature-card-grid { display: grid; gap: 1.1rem; }
.social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.social-card, .category-card, .trust-card, .value-card {
    border-radius: 1.25rem;
    padding: 1.6rem;
    background: hsla(var(--card), .68);
    border: 1px solid hsla(var(--foreground), .08);
    box-shadow: 0 14px 44px hsla(0,0%,0%,.2);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}
.social-card:hover, .category-card:hover, .trust-card:hover, .value-card:hover { transform: translateY(-5px); border-color: hsla(var(--primary), .5); box-shadow: var(--shadow-glow); }
.social-card span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 1rem; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); color: hsl(var(--background)); font-weight: 900; margin-bottom: 1rem; }
.social-card strong, .social-card small { display: block; }
.social-card small { color: hsl(var(--muted-foreground)); }
.category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-card { text-align: center; display: grid; gap: .45rem; place-items: center; min-height: 170px; }
.category-icon { font-size: 2.6rem; }
.category-card small { color: hsl(var(--muted-foreground)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { position: relative; overflow: hidden; min-height: 420px; border-radius: 1.35rem; background: hsla(var(--card), .72); border: 1px solid hsla(var(--foreground), .08); box-shadow: 0 20px 60px hsla(0,0%,0%,.28); }
.feature-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform 700ms ease; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsla(var(--background), .95), transparent 70%); }
.feature-card > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.35rem; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.image-panel { border-radius: 1.5rem; overflow: hidden; border: 1px solid hsla(var(--foreground), .1); box-shadow: var(--shadow-glow); }
.image-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy p { font-size: 1.1rem; }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-card { text-align: center; }
.trust-card span { display: block; font-size: 2.2rem; margin-bottom: .75rem; }
.value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4rem; }
.content-card { border-radius: 1.35rem; padding: clamp(1.4rem, 4vw, 3rem); }
.entry-card { border-radius: 1.35rem; overflow: hidden; padding: clamp(1.2rem, 3vw, 2.2rem); }
.entry-thumbnail { display: block; margin: calc(clamp(1.2rem, 3vw, 2.2rem) * -1) calc(clamp(1.2rem, 3vw, 2.2rem) * -1) 1.6rem; }
.entry-thumbnail img { width: 100%; max-height: 520px; object-fit: cover; }
.entry-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: hsl(var(--muted-foreground)); font-size: .92rem; margin-bottom: 1rem; }
.entry-content a { color: hsl(var(--primary)); text-decoration: underline; }
.content-loop { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.single-layout .content-loop, .page-layout .content-loop { display: block; }
.nav-links, .post-navigation, .posts-navigation, .pagination { margin-top: 2rem; }
.page-links { margin-top: 1.5rem; font-weight: 800; }

.faq-list { display: grid; gap: 1rem; }
.faq-item { border-radius: 1rem; padding: 1.2rem 1.4rem; }
.faq-item summary { cursor: pointer; font-weight: 900; font-family: "Montserrat", sans-serif; }
.faq-item p { margin-top: 1rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 1.4rem; }
.theme-form { display: grid; gap: 1rem; }
.theme-form label { display: grid; gap: .4rem; font-weight: 800; }
.policy-copy h2 { margin-top: 1.4rem; }
.policy-copy h2:first-child { margin-top: 0; }
.shop-category-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }

.site-footer {
    padding: 4rem 0 1.4rem;
    background: hsla(var(--card), .58);
    border-top: 1px solid hsla(var(--foreground), .08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { max-width: 420px; margin-top: 1rem; }
.footer-column, .footer-widget { display: grid; gap: .55rem; align-content: start; }
.footer-column h3, .footer-widget-title { font-size: 1rem; margin-bottom: .5rem; }
.footer-column a { color: hsl(var(--muted-foreground)); }
.footer-column a:hover { color: hsl(var(--primary)); }
.newsletter-band {
    margin-top: 2.5rem;
    padding-block: 1.25rem;
    border-block: 1px solid hsla(var(--foreground), .08);
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 1rem;
    align-items: center;
}
.newsletter-band strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.15rem; }
.newsletter-band span { color: hsl(var(--muted-foreground)); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: .7rem; position: relative; }
.newsletter-form button, .search-submit { border: 0; border-radius: .85rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 900; padding-inline: 1rem; cursor: pointer; }
.newsletter-response { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-top: 1.4rem; color: hsl(var(--muted-foreground)); }
.footer-bottom p { margin: 0; }
.footer-menu { gap: 1rem; }
.footer-menu a { color: hsl(var(--muted-foreground)); }

.search-form { display: flex; gap: .65rem; max-width: 680px; margin: 1rem auto 0; }
.search-form label { flex: 1; }

.woocommerce-main, .woocommerce-layout { padding: clamp(3rem, 7vw, 6rem) 0; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    background: hsla(var(--card), .72);
    border: 1px solid hsla(var(--foreground), .08);
    border-radius: 1.15rem;
    padding: 1rem 1rem 1.2rem;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.woocommerce ul.products li.product a img { border-radius: .9rem; }
.woocommerce div.product { background: hsla(var(--card), .62); border: 1px solid hsla(var(--foreground), .08); border-radius: 1.35rem; padding: clamp(1rem, 4vw, 2rem); }
.woocommerce div.product .product_title { font-size: clamp(2rem, 5vw, 4rem); }
.woocommerce .price { color: hsl(var(--primary)) !important; font-weight: 900; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: hsla(var(--secondary), .9); color: hsl(var(--foreground)); border-top-color: hsl(var(--primary)); }
.woocommerce table.shop_table { border-color: hsla(var(--foreground), .1); border-radius: 1rem; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: hsla(var(--foreground), .08); }

.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 720px; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .social-grid, .trust-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .three-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    body.admin-bar .site-header { top: 46px; }
    .nav-wrap { grid-template-columns: auto auto; justify-content: space-between; }
    .menu-toggle { display: block; justify-self: end; }
    .main-navigation {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
    }
    .main-navigation.is-open { display: block; }
    .primary-menu { align-items: stretch; flex-direction: column; padding: .7rem 0 1rem; }
    .primary-menu a { padding: .9rem 1rem; background: hsla(var(--secondary), .4); }
    .header-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-start; display: none; padding-bottom: 1rem; }
    .header-actions.is-open { display: flex; }
    .hero-section { min-height: auto; }
    .hero-media { grid-template-columns: 1fr; }
    .hero-media .offset-card { transform: none; }
    .ap-carousel-track { grid-auto-columns: minmax(280px, 82%); }
    .category-grid, .social-grid, .trust-grid, .value-grid, .three-columns, .footer-grid { grid-template-columns: 1fr; }
    .newsletter-band { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
    h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
    .hero-actions, .shop-category-links, .search-form, .newsletter-form { flex-direction: column; display: grid; grid-template-columns: 1fr; }
    .button, .wp-element-button { width: 100%; }
    .hero-media figure { min-height: 220px; }
    .content-card { padding: 1.2rem; }
}
