:root {
    --color-bg: #fbfaff;
    --color-surface: #ffffff;
    --color-ink: #26304a;
    --color-muted: #6d7590;
    --color-soft: #f2f4ff;
    --color-line: #e6e3f2;
    --color-lavender: #e6dcf6;
    --color-lavender-strong: #b9a8e6;
    --color-sky: #d7efff;
    --color-blue: #bce7fb;
    --color-pink: #f8e0ee;
    --color-mint: #dff3ed;
    --color-cream: #fff8ee;
    --color-rose: #f7d9e4;
    --shadow-soft: 0 18px 45px rgba(77, 72, 117, 0.12);
    --shadow-small: 0 10px 24px rgba(72, 85, 117, 0.1);
    --radius: 8px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 255, 0.92);
    border-bottom: 1px solid rgba(230, 227, 242, 0.9);
    backdrop-filter: blur(18px);
}

.announcement-bar {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-lavender);
    color: #4d4a75;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.announcement-bar p {
    margin: 0;
    padding: 6px 18px;
    text-align: center;
}

.header-main {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 112px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 0;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand__logo,
.custom-logo,
.custom-logo-link img,
.site-header .brand img {
    display: block;
    width: auto !important;
    max-width: 128px !important;
    height: auto !important;
    max-height: 96px !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--color-sky);
    border: 1px solid rgba(38, 48, 74, 0.08);
    border-radius: var(--radius);
    color: #4a6d8f;
    box-shadow: var(--shadow-small);
}

.brand__text {
    font-size: 15px;
}

.primary-nav {
    justify-self: center;
}

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav__item {
    position: relative;
}

.primary-nav__item > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 11px;
    color: #39405d;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
}

.primary-nav__item > a:hover,
.primary-nav__item > a:focus {
    background: var(--color-soft);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.primary-nav__item--mega:hover .mega-menu,
.primary-nav__item--mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega-menu__link {
    min-height: 98px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-bg);
    border: 1px solid rgba(230, 227, 242, 0.9);
    border-radius: var(--radius);
}

.mega-menu__link span {
    font-weight: 800;
}

.mega-menu__link small {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.45;
}

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

.icon-link {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
}

.icon-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: var(--color-lavender-strong);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-line);
    background: #fff;
    border-radius: var(--radius);
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-ink);
    border-radius: 99px;
}

.site-main {
    overflow: hidden;
}

.hero-section {
    position: relative;
    max-width: var(--max-width);
    margin: 26px auto 0;
    padding: clamp(12px, 2vw, 24px);
    display: block;
    overflow: hidden;
    border: 1px solid rgba(230, 227, 242, 0.9);
    border-radius: var(--radius);
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
}

.hero-section::before {
    content: none;
}

.hero-section__art {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.section-heading h2,
.brand-band h2,
.newsletter-section h2,
.page-hero h1,
.shop-hero h1 {
    margin: 0;
    color: var(--color-ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.04;
    letter-spacing: 0;
}

.button {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--color-ink);
    color: #fff;
    box-shadow: 0 14px 28px rgba(38, 48, 74, 0.2);
}

.button--secondary {
    background: #fff;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
}

.hero-section__media {
    min-width: 0;
}

.hero-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.hero-image,
.hero-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-placeholder {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
        linear-gradient(145deg, var(--color-sky), var(--color-lavender) 52%, var(--color-pink));
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-placeholder__panel {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.36);
    border-radius: var(--radius);
}

.hero-placeholder__panel--one {
    width: 48%;
    height: 58%;
    left: 10%;
    top: 14%;
}

.hero-placeholder__panel--two {
    width: 38%;
    height: 34%;
    right: 10%;
    top: 18%;
}

.hero-placeholder__panel--three {
    width: 58%;
    height: 24%;
    right: 10%;
    bottom: 13%;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 76px 24px;
}

.section-heading {
    max-width: 640px;
    margin-bottom: 32px;
}

.section-heading--split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.brand-band h2,
.newsletter-section h2,
.page-hero h1,
.shop-hero h1 {
    font-size: 44px;
}

.section-heading p,
.brand-band p,
.newsletter-section p,
.page-hero p,
.shop-hero p {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 16px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    min-height: 330px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(77, 72, 117, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-card__media {
    display: block;
    position: relative;
}

.category-card__body {
    padding: 18px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card__body strong {
    font-size: 19px;
}

.category-card__body span {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-soft);
    border-radius: var(--radius);
}

.image-placeholder__curve {
    position: absolute;
    left: -18%;
    right: -18%;
    bottom: 18%;
    height: 52%;
    background: rgba(255, 255, 255, 0.56);
    border-radius: 50%;
}

.image-placeholder__dot {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    transform: rotate(45deg);
}

.image-placeholder__dot--one {
    top: 18%;
    left: 18%;
}

.image-placeholder__dot--two {
    right: 16%;
    bottom: 16%;
}

.category-card--lavender .image-placeholder { background: var(--color-lavender); }
.category-card--sky .image-placeholder { background: var(--color-sky); }
.category-card--pink .image-placeholder { background: var(--color-pink); }
.category-card--mint .image-placeholder { background: var(--color-mint); }
.category-card--cream .image-placeholder { background: var(--color-cream); }
.category-card--blue .image-placeholder { background: var(--color-blue); }
.category-card--lilac .image-placeholder { background: #efe4fb; }
.category-card--rose .image-placeholder { background: var(--color-rose); }

.section--products {
    max-width: none;
    background: #fff;
}

.section--products > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

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

.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-card__media {
    display: block;
    padding: 10px;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-card__body {
    padding: 8px 18px 18px;
}

.product-card__label {
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.product-card__meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.product-card__meta a {
    color: var(--color-ink);
    font-weight: 900;
}

.brand-band {
    max-width: var(--max-width);
    margin: 82px auto;
    padding: 44px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(215, 239, 255, 0.92), rgba(248, 224, 238, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.brand-band__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.brand-band__features div {
    min-height: 170px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
}

.brand-band__features strong {
    font-size: 17px;
}

.brand-band__features span {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.need-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.need-grid a {
    min-height: 190px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.need-grid strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.need-grid span {
    color: var(--color-muted);
    font-size: 14px;
}

.newsletter-section {
    max-width: var(--max-width);
    margin: 0 auto 86px;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.newsletter-form {
    width: min(440px, 100%);
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-ink);
}

.newsletter-form button {
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-ink);
    color: #fff;
    font-weight: 900;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--color-line);
}

.footer-wave {
    height: 24px;
    background: linear-gradient(90deg, var(--color-lavender), var(--color-sky), var(--color-pink));
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
}

.footer-brand p {
    max-width: 360px;
    color: var(--color-muted);
}

.brand--footer .brand__mark {
    box-shadow: none;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-columns h2 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-columns a {
    display: block;
    margin: 9px 0;
    color: var(--color-muted);
    font-size: 14px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px 34px;
    color: var(--color-muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.page-main,
.shop-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px 88px;
}

.page-hero,
.shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: center;
    gap: 42px;
    padding: 46px;
    background: linear-gradient(135deg, rgba(230, 220, 246, 0.66), rgba(215, 239, 255, 0.68));
    border-radius: var(--radius);
}

.page-hero--compact,
.shop-hero {
    display: block;
}

.page-hero__media img,
.page-hero__media .image-placeholder,
.entry-image img {
    width: 100%;
    border-radius: var(--radius);
}

.page-content,
.post-list,
.shop-shell {
    margin-top: 42px;
}

.page-content {
    padding: 42px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.page-content h2,
.page-content h3 {
    color: var(--color-ink);
    line-height: 1.2;
}

.page-content a {
    color: #5f67a8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.post-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.post-card h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.post-card p {
    color: var(--color-muted);
}

.woocommerce .shop-main,
.woocommerce-page .shop-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 88px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: none;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--radius);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--color-ink);
    font-size: 18px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: var(--radius);
    background: var(--color-ink);
    color: #fff;
    font-weight: 800;
}

.woocommerce div.product {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 24px;
}

@media (max-width: 1080px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 24px;
    }

    .hero-section__art {
        aspect-ratio: 4 / 3;
    }

    .category-grid,
    .product-grid,
    .need-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .header-main {
        min-height: 70px;
        grid-template-columns: auto auto auto;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .primary-nav {
        position: fixed;
        inset: 106px 14px auto;
        max-height: calc(100vh - 130px);
        overflow: auto;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

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

    .primary-nav__list {
        display: grid;
        gap: 4px;
    }

    .primary-nav__item > a {
        width: 100%;
        justify-content: space-between;
    }

    .mega-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .header-actions {
        justify-self: end;
    }

    .icon-link:first-child {
        display: none;
    }

    .section-heading--split,
    .newsletter-section,
    .footer-inner,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .newsletter-section {
        align-items: stretch;
    }

    .brand-band__features,
    .footer-columns,
    .post-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .announcement-bar {
        font-size: 12px;
    }

    .header-main {
        padding: 0 16px;
    }

    .brand__text {
        font-size: 13px;
    }

    .brand__logo,
    .custom-logo,
    .custom-logo-link img,
    .site-header .brand img {
        max-width: 92px !important;
        max-height: 74px !important;
    }

    .hero-section,
    .section,
    .page-main,
    .shop-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        min-height: auto;
        margin-top: 14px;
        padding: 12px;
        align-items: stretch;
    }

    .hero-section__art {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .hero-cover-image {
        object-position: center top;
    }

    .hero-section::before {
        content: none;
    }

    .category-grid,
    .product-grid,
    .need-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .brand-band h2,
    .newsletter-section h2,
    .page-hero h1,
    .shop-hero h1 {
        font-size: 34px;
    }

    .category-card {
        min-height: auto;
    }

    .brand-band,
    .page-hero,
    .page-content,
    .shop-hero {
        padding: 26px;
    }

    .newsletter-form {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
