:root {
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--contrast: #11141a;
    --wp--preset--color--primary: #5b37d1;
    --wp--preset--color--primary-dark: #4023a7;
    --wp--preset--color--accent: #ef5a46;
    --wp--preset--color--surface: #f4f3f8;
    --wp--preset--color--muted: #687080;
    --wp--preset--color--border: #dedce7;
    --wp--preset--font-family--system: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--style--global--content-size: 760px;
    --wp--style--global--wide-size: 1200px;
    --wp--preset--spacing--20: 0.75rem;
    --wp--preset--spacing--30: 1rem;
    --wp--preset--spacing--40: 1.5rem;
    --wp--preset--spacing--50: 2rem;
    --wp--preset--spacing--60: 3rem;
    --wp--preset--spacing--70: 4.5rem;
    --wp--custom--radius--small: 10px;
    --wp--custom--radius--medium: 18px;
    --wp--custom--shadow--soft: 0 18px 45px rgba(27, 20, 58, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--wp--preset--color--contrast);
    background: var(--wp--preset--color--base);
    font-family: var(--wp--preset--font-family--system);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wp--preset--color--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--wp--preset--color--primary-dark); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

.wp-site-blocks { min-height: 100vh; overflow: clip; }
.alignwide { width: min(calc(100% - 2rem), var(--wp--style--global--wide-size)); margin-inline: auto; }
.alignfull { width: 100%; }
.has-text-align-center { text-align: center; }
.wp-block-heading, .wp-block-post-title, .wp-block-site-title { line-height: 1.15; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 4.7rem); letter-spacing: -0.045em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

.section-block { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-muted { background: var(--wp--preset--color--surface); }
.section-kicker, .eyebrow { color: var(--wp--preset--color--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.section-intro { max-width: 720px; margin: 0 auto 2.5rem; color: var(--wp--preset--color--muted); }
.section-fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.section-fade-in.visible { opacity: 1; transform: none; }

.wp-element-button, .wp-block-button__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0.78rem 1.35rem;
    border: 2px solid var(--wp--preset--color--primary);
    border-radius: 999px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-element-button:hover, .wp-block-button__link:hover { color: #fff; background: var(--wp--preset--color--primary-dark); border-color: var(--wp--preset--color--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(73, 43, 176, 0.2); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--border); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast); box-shadow: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--wp--preset--color--border); backdrop-filter: blur(14px); transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(22, 18, 40, 0.08); }
.site-header.is-compact { position: sticky; }
.shipping-notice { padding: 0.45rem 1rem; background: var(--wp--preset--color--contrast); color: #fff; text-align: center; font-size: 0.87rem; }
.shipping-notice p { margin: 0; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wp-block-site-title { color: var(--wp--preset--color--contrast); font-size: 1.45rem; font-weight: 850; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.wp-block-site-title:hover { color: var(--wp--preset--color--primary); }
.wp-block-navigation__container { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.wp-block-navigation-item a { color: var(--wp--preset--color--contrast); font-size: 0.96rem; font-weight: 650; text-decoration: none; }
.wp-block-navigation-item a:hover { color: var(--wp--preset--color--primary); }
.burger-menu { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; border-radius: 10px; }
.burger-menu span { display: block; height: 2px; margin: 5px 0; background: var(--wp--preset--color--contrast); transition: transform 0.2s ease, opacity 0.2s ease; }
.burger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-section { padding: clamp(3rem, 7vw, 6.2rem) 0; background: radial-gradient(circle at 80% 10%, rgba(91,55,209,0.14), transparent 32%), linear-gradient(145deg, #f7f5ff, #f3f6fb); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-content { max-width: 650px; }
.subtitle { color: var(--wp--preset--color--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); max-width: 650px; }
.hero-buttons { margin: 1.8rem 0; }
.hero-features { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: var(--wp--preset--color--muted); font-size: 0.94rem; }
.feature i { color: var(--wp--preset--color--primary); margin-right: 0.38rem; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; border-radius: 28px; box-shadow: var(--wp--custom--shadow--soft); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--medium); background: #fff; box-shadow: 0 4px 18px rgba(26, 20, 50, 0.035); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--wp--custom--shadow--soft); }
.wp-block-post-featured-image { margin: 0; overflow: hidden; background: #eee; }
.wp-block-post-featured-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.product-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.product-content p { color: var(--wp--preset--color--muted); }
.product-content .wp-block-button { width: 100%; margin-top: auto; }
.product-content .wp-block-button__link { width: 100%; border-radius: 10px; }
.product-price { color: var(--wp--preset--color--contrast) !important; font-size: 1.22rem; font-weight: 850; }
.product-badge { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font-size: 0.75rem; font-weight: 800; }
.product-badge.is-bestseller { background: var(--wp--preset--color--accent); }

.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.benefit-card { padding: 1.6rem; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--medium); background: #fff; }
.benefit-card i { color: var(--wp--preset--color--primary); font-size: 2rem; margin-bottom: 1rem; }
.benefit-card p { margin-bottom: 0; color: var(--wp--preset--color--muted); }

.size-guide-grid, .shipping-faq-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; background: #fff; }
.size-table th, .size-table td { padding: 0.85rem; border: 1px solid var(--wp--preset--color--border); text-align: center; white-space: nowrap; }
.size-table th { background: var(--wp--preset--color--surface); }
.size-note { padding: 1.8rem; border-radius: var(--wp--custom--radius--medium); background: var(--wp--preset--color--surface); }
.size-note p:last-child { margin-bottom: 0; }
.shipping-info ul { padding-left: 1.25rem; }
.shipping-info li { margin-bottom: 0.75rem; }

.faq-item { border-bottom: 1px solid var(--wp--preset--color--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; border: 0; background: transparent; color: var(--wp--preset--color--contrast); font-weight: 750; text-align: left; }
.faq-question i { transition: transform 0.25s ease; }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding-bottom: 1rem; color: var(--wp--preset--color--muted); }

.reviews-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.review-card { margin: 0; padding: 1.5rem; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--medium); background: #fff; }
.review-card .stars { color: #d88900; letter-spacing: 0.08em; }
.review-card cite { display: block; margin-top: 1rem; color: var(--wp--preset--color--muted); font-style: normal; font-weight: 700; }

.contact-details p { display: flex; align-items: flex-start; gap: 0.8rem; }
.contact-details i { min-width: 1.2rem; color: var(--wp--preset--color--primary); margin-top: 0.35rem; }
.contact-form-container { padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--medium); background: #fff; box-shadow: var(--wp--custom--shadow--soft); }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; margin-bottom: 0.42rem; font-weight: 720; }
.form-group input, .form-group textarea { width: 100%; padding: 0.82rem 0.9rem; border: 1px solid #c9c6d4; border-radius: var(--wp--custom--radius--small); background: #fff; color: var(--wp--preset--color--contrast); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgba(91,55,209,0.13); }
.form-group-checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.65rem; }
.form-group-checkbox input { width: 18px; height: 18px; margin-top: 0.25rem; accent-color: var(--wp--preset--color--primary); }
.form-group-checkbox label { font-weight: 500; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.6em; margin-top: 0.85rem; margin-bottom: 0; font-weight: 700; }
.form-status.success { color: #17743d; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--wp--preset--color--border); background: #fff; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer-navigation .wp-block-navigation__container { flex-wrap: wrap; justify-content: center; }
.copyright { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9rem; }

.cookie-notice { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; width: min(520px, calc(100% - 2rem)); padding: 1.1rem; border-radius: 16px; background: var(--wp--preset--color--contrast); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.25); transform: translateY(calc(100% + 2rem)); opacity: 0; visibility: hidden; transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease; }
.cookie-notice.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-notice p { margin-bottom: 0.8rem; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie-buttons button, .cookie-buttons a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 750; text-decoration: none; }
.cookie-buttons button { border: 1px solid #fff; background: #fff; color: var(--wp--preset--color--contrast); }
.cookie-buttons a { border: 1px solid rgba(255,255,255,0.6); color: #fff; }

.policy-content { max-width: 900px; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.entry-header { margin-bottom: 2.5rem; }
.entry-header .wp-block-post-title { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.policy-body h2 { margin-top: 2.6rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.policy-body ul { padding-left: 1.25rem; }
.policy-body li { margin-bottom: 0.65rem; }
.policy-body address { margin-top: 1rem; padding: 1.25rem; border-left: 4px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--surface); }

@media (max-width: 960px) {
    .header-action { display: none; }
    .burger-menu { display: block; margin-left: auto; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 0.8rem 1rem 1.2rem; border-bottom: 1px solid var(--wp--preset--color--border); background: #fff; }
    .nav-menu.active { display: block; }
    .nav-menu .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu .wp-block-navigation-item a { display: block; padding: 0.7rem 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { max-width: 760px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .alignwide { width: min(calc(100% - 1.25rem), var(--wp--style--global--wide-size)); }
    .header-inner { min-height: 68px; }
    .section-block { padding: 3.5rem 0; }
    .hero-section { padding: 3.2rem 0; }
    .hero-buttons, .hero-features { flex-direction: column; align-items: stretch; }
    .hero-buttons .wp-block-button__link { width: 100%; }
    .product-grid, .benefits-grid, .reviews-grid, .size-guide-grid, .shipping-faq-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-form-container { padding: 1.2rem; }
    .cookie-notice { right: 0.625rem; bottom: 0.625rem; width: calc(100% - 1.25rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .section-fade-in { opacity: 1; transform: none; }
}
