:root {
    --brand: #6436c8;
    --brand-dark: #47229a;
    --ink: #25232c;
    --muted: #6b6972;
    --soft: #f5f3f9;
    --line: #e9e5ef;
    --white: #ffffff;
    --success-bg: #e8f7ee;
    --success-text: #23633a;
    --error-bg: #fdebec;
    --error-text: #9d2830;
}

html {
    scroll-behavior: smooth;
    background: var(--white);
}

body {
    margin: 0;
    padding-top: 80px;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body, button, input, textarea {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4 {
    color: var(--ink);
    letter-spacing: -0.025em;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

.main-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 80px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-container {
    width: min(1180px, calc(100% - 40px));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo, .footer-logo {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.logo:hover, .footer-logo:hover {
    color: var(--brand);
}

.main-nav {
    display: none;
}

.nav-list, .mobile-nav-list, .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-list a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
}

.nav-list a:hover {
    color: var(--brand);
    background: var(--soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--soft);
    font-size: 1.15rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--brand);
    font-size: 0.68rem;
    font-weight: 800;
}

.burger-menu {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--soft);
    cursor: pointer;
}

.burger-line {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    padding: 14px 20px 18px;
}

.mobile-nav-list a {
    display: block;
    padding: 13px 10px;
    color: var(--ink);
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

section {
    padding: 78px 24px;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head h2 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.section-description {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.04rem;
}

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.hero-section {
    padding-top: 50px;
    padding-bottom: 64px;
    background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.hero-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 38px;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 0.98;
    font-weight: 900;
}

.hero-content > p {
    max-width: 590px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.button.cta-button {
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: none;
}

.button.cta-button.primary, .button.is-primary.cta-button {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--white);
}

.button.cta-button.primary:hover, .button.is-primary.cta-button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.button.cta-button.secondary {
    border: 2px solid var(--brand);
    color: var(--brand);
    background: transparent;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}

.feature-item i {
    color: var(--brand);
    font-size: 1.15rem;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(51, 35, 80, .16);
}

.collection-section, .sizing-section, .reviews-section {
    background: var(--soft);
}

.product-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(47, 40, 60, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(47, 40, 60, .12);
}

.product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eceaf0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-content {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    padding: 24px;
}

.product-content h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}

.product-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .95rem;
}

.price {
    display: block;
    margin: auto 0 16px;
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 900;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--white);
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-badge.bestseller { background: var(--brand); }
.product-badge.new { background: #247b53; }
.product-badge.limited { background: #b33b50; }

.quality-grid, .shipping-grid, .reviews-grid {
    width: min(1050px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.quality-item, .shipping-item, .review-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(47, 40, 60, .05);
}

.quality-item, .shipping-item {
    text-align: center;
}

.quality-item > i, .shipping-item > i {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    border-radius: 16px;
    color: var(--brand);
    background: #f0eafe;
    font-size: 1.65rem;
}

.quality-item h3, .shipping-item h3, .info-item h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    font-weight: 800;
}

.quality-item p, .shipping-item p, .info-item p, .review-card p {
    margin: 0;
    color: var(--muted);
}

.sizing-container {
    width: min(1050px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.sizing-info {
    display: grid;
    gap: 18px;
}

.info-item {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.info-item i {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 1.7rem;
}

.sizing-table-wrapper {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(47, 40, 60, .05);
}

.sizing-table {
    margin: 0 !important;
    background: transparent;
}

.sizing-table caption {
    padding: 17px 20px;
    color: var(--ink);
    font-weight: 800;
    text-align: left;
    caption-side: top;
}

.sizing-table thead th {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.sizing-table td, .sizing-table th {
    padding: 14px 18px !important;
    vertical-align: middle;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 1.55rem;
}

.review-card {
    text-align: left;
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #e6a719;
}

.review-card p {
    margin-bottom: 16px;
    font-style: italic;
}

.review-card cite {
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
}

.contact-container {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(47, 40, 60, .07);
}

.contact-form .field:not(:last-child) {
    margin-bottom: 18px;
}

.contact-form .label {
    color: var(--ink);
    font-size: .92rem;
}

.contact-form .input, .contact-form .textarea {
    border-color: #d8d2e0;
    border-radius: 11px;
    box-shadow: none;
}

.contact-form .input:focus, .contact-form .textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(100, 54, 200, .12);
}

.privacy-consent {
    color: var(--muted);
    font-size: .9rem;
}

.privacy-consent input {
    margin-right: 7px;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 11px;
    font-weight: 700;
}

.form-message.success {
    color: var(--success-text);
    background: var(--success-bg);
}

.form-message.error {
    color: var(--error-text);
    background: var(--error-bg);
}

.main-footer {
    padding: 52px 24px 24px;
    color: #e8e4ee;
    background: #27232e;
}

.footer-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.footer-column p {
    margin-bottom: 7px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--white);
}

.footer-logo:hover {
    color: #d8c9ff;
}

.footer-column h4 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
}

.footer-links li + li {
    margin-top: 7px;
}

.main-footer a {
    color: #d8d1df;
}

.main-footer a:hover {
    color: var(--white);
}

.main-footer address {
    margin-top: 13px;
    font-style: normal;
}

.footer-bottom {
    width: min(1180px, 100%);
    margin: 35px auto 0;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #aaa2b2;
    font-size: .82rem;
}

.footer-bottom p {
    margin: 0;
}

.privacy-page {
    background: #faf9fc;
}

.privacy-page .main-header {
    background: rgba(250, 249, 252, .97);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.privacy-content {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 80px;
}

.privacy-content > h1 {
    margin-bottom: 6px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
}

.privacy-content > p:first-of-type {
    color: var(--muted);
}

.privacy-content section {
    padding: 0;
    text-align: left;
}

.privacy-content h2 {
    margin-top: 38px;
    margin-bottom: 10px;
    font-size: 1.45rem;
    font-weight: 800;
}

.privacy-content p, .privacy-content li {
    color: #514d59;
}

.privacy-content ul {
    margin-left: 22px;
}

.fade-in {
    animation: fadeIn .35s ease both;
}

@keyframes fadeIn {
    from { opacity: .45; }
    to { opacity: 1; }
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quality-grid, .shipping-grid, .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: 1.6fr 1fr;
    }
}

@media (min-width: 900px) {
    .main-nav {
        display: block;
    }

    .burger-menu {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .hero-shell {
        grid-template-columns: 1fr 1fr;
        gap: 62px;
    }

    .hero-content {
        padding-left: 4px;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sizing-container {
        grid-template-columns: .8fr 1.2fr;
        gap: 32px;
    }
}

@media (max-width: 520px) {
    .header-container {
        width: calc(100% - 28px);
    }

    .logo {
        font-size: 1.03rem;
    }

    .hero-section {
        padding-inline: 18px;
    }

    section {
        padding-inline: 18px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 7px;
    }
}

.cart-count[hidden] {
    display: none !important;
}
