:root {
    --bg: #f7f3ec;
    --text: #2f2923;
    --surface: #fffaf3;
    --line: #dfd7ca;
    --accent: #8a5a44;
    --accent-dark: #6f4534;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 243, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.topbar-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.58rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    font-family: "Caveat", "Segoe UI", Tahoma, sans-serif;
}

.brand-main {
    opacity: 0.95;
}

.brand-ja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent-dark);
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 14px rgba(47, 41, 35, 0.1);
}

.brand:hover .brand-ja {
    background: #f6efe3;
}

.menu {
    display: flex;
    gap: 20px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.menu a:hover {
    color: var(--accent-dark);
}

.menu a[aria-current="page"] {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ig-tab {
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.ig-tab:hover {
    background: var(--accent-dark);
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 76vh;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: end center;
    text-align: center;
    padding: 24px 24px 54px;
    color: #fff;
}

.hero-overlay h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.2;
    margin: 0 0 4px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 2px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 2px rgba(0, 0, 0, 0.75);
}

.btn {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 26px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-dark);
}

.home-gift-callout {
    padding: 32px 0 0;
    background: #f9f5ee;
}

.home-gift-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(47, 41, 35, 0.08);
}

.home-gift-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f0e5d6;
    font-size: 1.8rem;
    line-height: 1;
}

.home-gift-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    line-height: 1.2;
}

.home-gift-card p {
    max-width: none;
    margin: 0;
    color: #5f5248;
    line-height: 1.65;
}

.home-gift-cta {
    margin-top: 12px;
}

.home-gift-callout + .story {
    padding-top: 42px;
}

.story {
    padding: 64px 0;
    background: #f9f5ee;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: start;
}

.story-text h2 {
    margin: 0 0 14px;
    font-size: 1.3rem;
}

.story-text h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.story-text p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(47, 41, 35, 0.35);
}

.story-link::after {
    content: "→";
    font-size: 0.95em;
    opacity: 0.75;
}

.story-link:hover {
    text-decoration-color: rgba(47, 41, 35, 0.65);
}

.story-text hr {
    border: 0;
    border-top: 1px solid #c9bba8;
    margin: 20px 0;
}

.story-photo-wrap {
    position: sticky;
    top: 96px;
}

.story-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(47, 41, 35, 0.16);
    display: block;
}

.value-section {
    padding: 64px 0 70px;
    background: #f3ecdf;
    border-top: 1px solid var(--line);
}

.value-wrap {
    text-align: center;
}

.value-wrap h2 {
    margin: 0 0 26px;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.value-layout {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 30px;
    align-items: stretch;
}

.value-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.value-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(47, 41, 35, 0.14);
}

.value-cta {
    font-size: 1.02rem;
    padding: 13px 30px;
}

.buy-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0 8px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 280px;
    margin-left: auto;
}

.buy-box h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.buy-box p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.buy-box-kicker {
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.buy-box-price {
    margin: 2px 0 6px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    color: var(--accent-dark);
}

.buy-box-stock {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9f0e4;
    color: #405a39;
    font-weight: 800;
    line-height: 1.2;
}

.buy-box-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5c8b47;
}

.buy-box-note {
    max-width: 280px;
    color: #5f5248;
}

.buy-box .value-cta {
    margin-top: 14px;
    align-self: flex-start;
}

.section {
    padding: 62px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.section-alt {
    background: #f2ece3;
}

.section h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.section h1 {
    margin-top: 0;
}

.section p {
    margin: 0;
    max-width: 700px;
    line-height: 1.65;
}

.eshop-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.eshop-media-mobile {
    display: none;
}

.eshop-book-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(47, 41, 35, 0.14);
    display: block;
}

.eshop-book-image + .eshop-book-image {
    margin-top: 20px;
}

.book-chapters {
    margin-top: 14px;
    padding: 12px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.book-chapters h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.book-chapters p {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.product-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-thumbs img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(47, 41, 35, 0.1);
}

.eshop-text h2 {
    margin: 0 0 14px;
}

.eshop-text p {
    margin: 0 0 10px;
    max-width: none;
}

.book-title {
    margin: 0 0 4px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.15;
}

.book-subtitle {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: #6a5a4f;
    font-weight: 600;
}

.order-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eshop-text .order-row + h2 {
    margin-top: 34px;
}

.gift-occasions {
    margin: 34px 0 30px;
}

.gift-occasions h2 {
    margin: 0 0 14px;
}

.gift-occasion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gift-occasion-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 12px 26px rgba(47, 41, 35, 0.08);
}

.gift-occasion-icon {
    margin-bottom: 8px;
    font-size: 1.65rem;
    line-height: 1;
}

.gift-occasion-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.gift-occasion-card p {
    margin: 0;
    color: #5f5248;
    font-size: 0.95rem;
    line-height: 1.55;
}

.gift-occasions + h2 {
    margin-top: 34px;
}

.qty-input {
    width: 90px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}

.shop-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-cta h3 {
    margin: 0;
    font-size: 1.45rem;
}

.old-price {
    color: #7d6f63;
    text-decoration: line-through;
}

.product-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.product-card {
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 41, 35, 0.12);
    border-color: #ccb89f;
}

.product-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(138, 90, 68, 0.18);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h4 {
    margin: 0 0 6px;
}

.product-card p {
    margin: 0 0 6px;
    max-width: none;
}

.about-book h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.about-book h2 {
    margin: 28px 0 10px;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.about-book p {
    margin: 0 0 10px;
    max-width: none;
    line-height: 1.7;
}

.about-intro {
    margin-bottom: 22px;
}

.about-lead {
    font-size: 1rem;
    max-width: 760px;
    margin-bottom: 0;
}

.about-lead-strong {
    font-size: 1rem;
}

.about-copy,
.about-how,
.about-ending {
    max-width: none;
}

.about-copy {
    margin-bottom: 26px;
}

.about-gallery {
    margin: 26px 0 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    image-rendering: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(47, 41, 35, 0.12);
}

.about-card {
    margin: 0;
}

.about-card figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--muted);
}

.about-how {
    margin-top: 28px;
}

.about-ending {
    margin-top: 30px;
}

.about-ending .btn {
    margin-top: 8px;
}

.legal-page h1 {
    margin: 0 0 28px;
}

.legal-page h2 {
    margin: 34px 0 14px;
}

.legal-page p,
.legal-page ul {
    max-width: none;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-header {
    max-width: 820px;
    margin-bottom: 30px;
}

.blog-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.blog-header p,
.blog-empty p {
    max-width: 760px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(47, 41, 35, 0.08);
}

.blog-card time,
.blog-article-header time {
    color: #6f6258;
    font-size: 0.94rem;
    font-weight: 600;
}

.blog-card h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.2;
}

.blog-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--accent-dark);
}

.blog-card p {
    max-width: none;
    margin-bottom: 16px;
}

.blog-article {
    max-width: 920px;
}

.blog-back-link {
    margin-bottom: 20px;
}

.blog-article-header {
    margin-bottom: 28px;
}

.blog-article-header h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
}

.blog-content {
    max-width: 860px;
    font-size: 1.05rem;
}

.blog-content h2 {
    margin: 36px 0 12px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.18;
}

.blog-content p,
.blog-content ul,
.blog-content ol {
    max-width: none;
    margin: 0 0 18px;
    line-height: 1.78;
}

.blog-content ul,
.blog-content ol {
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-content-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 26px 0;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(47, 41, 35, 0.12);
}

.blog-content p .blog-content-image {
    margin: 8px 0 10px;
}

.blog-content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 34px 0;
}

.card-project-note {
    margin-top: 16px;
}

.card-project-logo {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.bottom-row {
    border-top: 1px solid var(--line);
    background: #eee6d8;
    padding: 24px 0;
}

.bottom-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

.bottom-row h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.bottom-row p {
    margin: 0 0 4px;
    line-height: 1.5;
}

.bottom-row a {
    color: var(--text);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.social-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.social-link:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .topbar-row {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px 6px;
        padding: 8px 0;
        min-height: 0;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.35rem;
    }

    .top-right {
        display: contents;
    }

    .menu-toggle {
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        min-height: 34px;
        padding: 0;
        border: 1px solid #d8c7b4;
        border-radius: 999px;
        background: #fffaf3;
        color: var(--accent-dark);
        font: inherit;
        font-size: 0;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
    }

    .menu-toggle-icon,
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        display: block;
        width: 13px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .menu-toggle-icon {
        position: relative;
    }

    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle-icon::before {
        top: -4px;
    }

    .menu-toggle-icon::after {
        top: 4px;
    }

    .menu {
        order: 4;
        display: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding-top: 4px;
    }

    .menu.is-open {
        display: flex;
    }

    .menu a {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 9px 12px;
        border-radius: 12px;
        background: #fffaf3;
        border: 1px solid #ead8c5;
        font-size: 0.78rem;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
    }

    .menu a[aria-current="page"] {
        background: #efe4d4;
        text-decoration: none;
    }

    .cart-pill {
        order: 3;
        flex: 0 0 auto;
        padding: 9px 11px;
        border-radius: 999px;
        font-size: 0.76rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .hero,
    .hero-image {
        min-height: 62vh;
        height: 62vh;
    }

    .home-gift-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-photo-wrap {
        position: static;
    }

    .value-gallery {
        grid-template-columns: 1fr;
    }

    .value-layout {
        grid-template-columns: 1fr;
    }

    .bottom-row-grid {
        grid-template-columns: 1fr;
    }

    .eshop-layout {
        grid-template-columns: 1fr;
    }

    .eshop-media-desktop {
        display: none;
    }

    .eshop-media-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 16px 0 14px;
    }

    .eshop-media-mobile .eshop-book-image {
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(47, 41, 35, 0.12);
    }

    .eshop-buy-block {
        margin-top: 4px;
    }

    .shop-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-row {
        flex-wrap: wrap;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .gift-occasion-grid {
        grid-template-columns: 1fr;
    }

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

    .about-gallery {
        grid-template-columns: 1fr;
    }
}

.spec-list {
    margin: 0 0 14px 18px;
    padding: 0;
}

.spec-list li {
    margin: 0 0 6px;
    line-height: 1.6;
}

.faq-section {
    margin-top: 24px;
}

.faq-section h3 {
    margin: 0 0 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #fffaf3;
    border: 0;
    padding: 14px 16px;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.faq-item.is-open .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #fff;
}

.faq-answer p {
    margin: 0;
    padding: 0 16px 14px;
    line-height: 1.65;
}

.faq-item.is-open .faq-answer {
    max-height: 420px;
}


.cart-pill {
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-pill:hover {
    background: var(--accent-dark);
}

.cart-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.cart-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item h3 {
    margin: 0 0 8px;
}

.cart-item p {
    margin: 0 0 6px;
}

.cart-total {
    margin: 0;
    font-size: 1.2rem;
}

.cart-total p {
    margin: 0 0 6px;
}

.cart-total p:last-child {
    margin-bottom: 0;
}

.cart-discount,
.checkout-price-discount,
.summary-discount-line {
    color: #2f7a4f;
}

.promo-code-box {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px solid #ead8c5;
    border-radius: 20px;
    background: rgba(255, 250, 241, 0.72);
}

.promo-code-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #4f3b30;
}

.promo-code-row {
    display: flex;
    gap: 10px;
}

.promo-code-row input {
    flex: 1;
    min-width: 0;
}

.promo-code-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    color: #2f7a4f;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 56px;
    margin-bottom: 18px;
}


.cart-actions-top {
    margin: 12px 0 8px;
}

.cart-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-danger {
    background: #9f3f2f;
}

.btn-danger:hover {
    background: #7f3125;
}

.link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #8a5a44;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    cursor: pointer;
}

.link-button:hover {
    color: #5f3e2f;
}


.mini-notice {
    margin-top: 14px;
    margin-bottom: 14px;
    background: #e7f4ea;
    border: 1px solid #b8d8be;
    color: #1f5f2e;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}



.checkout-box {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #d8ccb9;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf3 0%, #f7efe3 100%);
    box-shadow: 0 12px 28px rgba(47, 41, 35, 0.08);
}

.checkout-box h2 {
    margin: 0 0 14px;
}

.checkout-box h3 {
    margin: 18px 0 10px;
}

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

.form-grid-placeholder {
    min-height: 1px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.field-full {
    grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    font: inherit;
}

.checkbox-field {
    margin: 10px 0 16px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #4f3b30;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: #8a5a44;
}

.shipping-address-fields {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #ead8c5;
    border-radius: 18px;
    background: #fffaf1;
}

.shipping-address-fields[hidden] {
    display: none;
}

.shipping-address-fields h3 {
    margin-top: 0;
}

.admin-order-summary,
.admin-product-editor {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #ead8c5;
    border-radius: 18px;
    background: #fffaf1;
}

.admin-order-summary p {
    margin: 6px 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-utm-summary p {
    line-height: 1.55;
}

.admin-utm-row {
    max-width: 100%;
}

.admin-utm-row span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.admin-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.admin-address-card {
    padding: 18px;
    border: 1px solid #ead8c5;
    border-radius: 18px;
    background: #fffaf1;
}

.admin-address-card h3 {
    margin-top: 0;
}

.admin-address-card p {
    margin: 6px 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-inline-form {
    margin: 14px 0 0;
}

.admin-payment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
}

.admin-payment-actions .admin-inline-form {
    margin: 0;
}

.admin-payment-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.admin-payment-dialog {
    width: min(680px, calc(100vw - 28px));
    border: 1px solid #ead8c5;
    border-radius: 24px;
    padding: 0;
    background: #fffaf1;
    color: #2f241d;
    box-shadow: 0 24px 70px rgba(49, 35, 27, 0.28);
}

.admin-payment-dialog::backdrop {
    background: rgba(24, 18, 14, 0.44);
}

.admin-payment-dialog-inner {
    position: relative;
    padding: 26px;
}

.admin-payment-dialog h3 {
    margin: 0 36px 4px 0;
}

.admin-dialog-subtitle {
    margin: 0 0 18px;
    color: #705f54;
}

.admin-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #d8c7b4;
    border-radius: 999px;
    background: #f4eadc;
    color: #5c483b;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.admin-payment-dialog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.admin-payment-detail-list {
    padding: 16px;
    border: 1px solid #ead8c5;
    border-radius: 18px;
    background: #fff;
}

.admin-payment-detail-list p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0e4d5;
}

.admin-payment-detail-list p:last-child {
    border-bottom: 0;
}

.admin-payment-detail-list span {
    color: #705f54;
}

.admin-payment-detail-list strong {
    text-align: right;
}

.admin-payment-dialog-qr {
    text-align: center;
}

.admin-payment-dialog-qr img {
    display: block;
    width: 220px;
    height: 220px;
    border: 10px solid #fff;
    border-radius: 16px;
    background: #fff;
}

.admin-payment-dialog-qr small {
    display: block;
    margin-top: 8px;
    color: #705f54;
}

@media (max-width: 720px) {
    .admin-payment-dialog-grid {
        grid-template-columns: 1fr;
    }

    .admin-payment-dialog-qr img {
        margin: 0 auto;
    }
}

.admin-table .admin-inline-form {
    margin: 0;
}

.admin-order-filters {
    display: grid;
    gap: 14px;
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #ead8c5;
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.72);
}

.admin-manual-order {
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #ead8c5;
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.72);
}

.admin-manual-order summary {
    cursor: pointer;
    font-weight: 800;
    color: #5c3f32;
}

.admin-manual-order form {
    margin-top: 16px;
}

.admin-manual-order h3 {
    margin: 18px 0 10px;
}

.manual-order-items {
    display: grid;
    gap: 10px;
}

.manual-order-item-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 82px 120px;
    gap: 10px;
    align-items: end;
}

.manual-order-item-row .field {
    margin-bottom: 0;
}

.manual-order-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin: 16px 0;
}

.manual-order-total span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f0e5d5;
    color: #4d392f;
}

.admin-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-quick-filters .btn {
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
}

.admin-order-filters > .admin-filter-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: end;
}

.admin-order-filters > .admin-filter-form > .field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.admin-order-filters > .admin-filter-form select {
    width: 100%;
}

.admin-order-filters > .admin-filter-form > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-bank-payment-form {
    padding-top: 10px;
}

.admin-bank-payment-form .form-grid {
    margin-bottom: 12px;
}

.admin-debug-box {
    margin: 14px 0;
}

.admin-debug-box summary {
    cursor: pointer;
    font-weight: 700;
    color: #6f4534;
}

.admin-debug-box pre {
    overflow-x: auto;
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #2f241d;
    color: #fffaf1;
    font-size: 0.86rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.admin-product-editor + .admin-product-editor {
    margin-top: 24px;
}

.admin-product-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-product-editor-head h3 {
    margin: 0 0 4px;
}

.admin-product-images {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ead8c5;
}

.admin-product-images h4 {
    margin: 12px 0 10px;
}

.admin-product-image-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 2fr) 90px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .admin-product-image-row {
        grid-template-columns: 1fr;
    }

    .manual-order-item-row {
        grid-template-columns: 1fr;
    }
}

.form-error {
    color: #9f3f2f;
    font-weight: 600;
    display: inline-block;
    padding: 8px 10px;
    border: 1px solid #e2b5ae;
    border-radius: 8px;
    background: #fff0ee;
    margin-bottom: 10px;
}

.form-error-summary {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #d98f78;
    border-radius: 16px;
    background: #fff3ee;
    color: #7a2e1b;
}

.form-error-summary p {
    margin: 0 0 8px;
}

.form-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
    border-color: #c55e2f;
    background: #fff7f2;
    box-shadow: 0 0 0 3px rgba(197, 94, 47, 0.14);
}

.field input.is-invalid:focus,
.field textarea.is-invalid:focus,
.field select.is-invalid:focus {
    outline: none;
    border-color: #9d4520;
    box-shadow: 0 0 0 4px rgba(197, 94, 47, 0.2);
}

#pickup-selected {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px dashed #ccbba4;
    border-radius: 10px;
    background: #fffefb;
    font-size: 0.95rem;
}

#pickup-wrap[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-placeholder {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-summary-row {
        align-items: stretch;
        flex-direction: column;
    }

    .promo-code-row,
    .promo-code-applied {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-continue-btn {
        width: 100%;
        text-align: center;
    }
}


.checkout-steps {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.step-chip {
    border: 1px solid #d9cdbd;
    background: linear-gradient(180deg, #fffaf3 0%, #f2e9dc 100%);
    color: #5d4a3e;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.92rem;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(47, 41, 35, 0.08);
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdbca4;
    background: #fff;
    font-size: 0.86rem;
}

.step-label {
    line-height: 1.2;
}

.step-chip.is-active {
    background: #8a5a44;
    color: #fff;
    border-color: #8a5a44;
    box-shadow: 0 12px 26px rgba(111, 69, 52, 0.24);
}

.step-chip.is-active .step-dot {
    background: #fff;
    color: #6f4534;
    border-color: #fff;
}

.step-chip.is-done {
    background: #d8e9df;
    color: #20553d;
    border-color: #9fc7b0;
}

.step-chip.is-done .step-dot {
    background: #fff;
    color: #20553d;
    border-color: #9fc7b0;
}

.step-next-form {
    margin-top: 12px;
}

.checkout-summary {
    margin: 14px 0 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dccfbe;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.checkout-summary p {
    margin: 0 0 8px;
    max-width: none;
    line-height: 1.55;
}

.checkout-summary p strong {
    color: #4f3b30;
}

.checkout-summary p:first-child {
    margin-bottom: 12px;
    font-size: 1.03rem;
}

.checkout-summary p:last-child {
    margin-bottom: 0;
}

.checkout-terms-box {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #dccfbe;
    border-radius: 14px;
    background: #fffdf8;
}

.checkout-terms-box.is-invalid {
    border-color: #d98f78;
    background: #fff3ee;
}

.checkout-terms-label {
    align-items: flex-start;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-terms-label a {
    color: var(--accent-dark);
    font-weight: 800;
    text-underline-offset: 3px;
}

.checkout-terms-box .form-error {
    margin: 10px 0 0;
}

.checkout-price-box {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border: 1px solid #d9c7b1;
    border-radius: 12px;
    background: #fff;
}

.checkout-price-box p {
    margin: 0 0 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: none;
}

.checkout-price-box p:last-child {
    margin-bottom: 0;
}

.checkout-price-box p span {
    color: #5e4f44;
}

.checkout-price-box p strong {
    font-weight: 800;
}

.checkout-price-box .checkout-price-total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #d7c7b3;
    font-size: 1.08rem;
}

.summary-shipping-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.summary-subtotal-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.summary-subtotal-line span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #efe6da;
    color: #5e4a3f;
    font-weight: 700;
}

.summary-shipping-price {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3e0c8;
    color: #6f4534;
    font-weight: 800;
}

.summary-total-line {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d3c1ab;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 1.07rem;
}

.summary-total-line span {
    font-weight: 800;
    color: #6f4534;
}

.checkout-box .btn[type="submit"] {
    min-height: 46px;
}

.checkout-box > p > .btn.btn-small {
    background: #f0e5d6;
    color: #5c483b;
}

.checkout-box > p > .btn.btn-small:hover {
    background: #e7d8c5;
}

.checkout-price-box {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d8ccb9;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.checkout-price-box p {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: none;
}

.checkout-price-box p:last-child {
    margin-bottom: 0;
}

.checkout-price-box p span {
    color: #5f4a3b;
}

.checkout-price-box p strong {
    font-weight: 700;
    color: #3f2f24;
}

.checkout-price-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #d8ccb9;
}

.checkout-price-total strong {
    font-size: 1.1rem;
    color: #8a5a44;
}

.checkout-continue-btn {
    margin-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
}

.checkout-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
}

.checkout-nav-actions .btn[type="submit"] {
    margin-left: auto;
}

.btn-secondary {
    background: #f0e5d6;
    color: #5c483b;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e7d8c5;
}


.field input[readonly] {
    background: #f1ede6;
    color: #6f655c;
    border-color: #d2c8bb;
    cursor: not-allowed;
}

.admin-login-box {
    max-width: 480px;
    margin: 0 auto;
}

.admin-note {
    margin-top: 10px;
    color: #6f655c;
}

.admin-muted {
    color: #6f655c;
    font-size: 0.88rem;
    line-height: 1.35;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-top h1 {
    margin: 0;
}

.admin-user-chip {
    margin-left: auto;
    background: #f4eee4;
    border: 1px solid var(--line);
    color: #5d4a3e;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-tabs a {
    text-decoration: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 10px 8px;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.92rem;
    color: #6f655c;
}

.admin-analysis {
    margin-bottom: 18px;
}

.admin-analysis-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.admin-analysis-hero h2 {
    margin: 0 0 10px;
}

.admin-analysis-hero p {
    max-width: 920px;
    margin-bottom: 0;
}

.admin-analysis-format-card,
.admin-analysis-card {
    border: 1px solid #ead8c5;
    border-radius: 20px;
    background: #fff8ef;
    box-shadow: 0 14px 34px rgba(73, 49, 34, 0.08);
}

.admin-analysis-format-card {
    padding: 18px;
}

.admin-analysis-format-card strong,
.admin-analysis-format-card span,
.admin-analysis-format-card small {
    display: block;
}

.admin-analysis-format-card span {
    margin: 8px 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #8a5a44;
}

.admin-analysis-upload {
    align-items: end;
}

.admin-analysis-dashboard {
    display: grid;
    gap: 16px;
}

.admin-analysis-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-analysis-card {
    padding: 18px;
}

.admin-analysis-card span,
.admin-analysis-card small {
    display: block;
    color: #6f655c;
}

.admin-analysis-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1;
    color: #2f241d;
}

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

.admin-analysis-section h2 {
    margin-top: 0;
}

.admin-analysis-table th,
.admin-analysis-table td {
    vertical-align: top;
}

.admin-analysis-table td:first-child {
    min-width: 190px;
}

.admin-analysis-missing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.admin-analysis-missing-grid div {
    padding: 12px;
    border: 1px solid #ead8c5;
    border-radius: 14px;
    background: #fff8ef;
}

.admin-analysis-missing-grid strong,
.admin-analysis-missing-grid span {
    display: block;
}

.admin-analysis-missing-grid span {
    margin-top: 4px;
    color: #6f655c;
    font-size: 0.9rem;
}

@media (min-width: 1100px) {
    .page-admin .container {
        width: min(1760px, calc(100vw - 32px));
    }

    .page-admin .section {
        padding: 32px 0;
    }

    .page-admin .checkout-box {
        padding: 24px 28px;
        border-radius: 22px;
    }

    .page-admin .admin-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 18px;
        align-items: start;
    }

    .page-admin .admin-grid > .checkout-box:nth-child(2) {
        font-size: 0.92rem;
    }

    .page-admin .admin-grid > .checkout-box:nth-child(2) h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .page-admin .admin-order-summary,
    .page-admin .admin-address-card {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 0.88rem;
        line-height: 1.38;
    }

    .page-admin .admin-order-summary {
        margin: 12px 0;
    }

    .page-admin .admin-order-summary h3,
    .page-admin .admin-address-card h3 {
        margin: 0 0 7px;
        font-size: 0.98rem;
    }

    .page-admin .admin-order-summary p,
    .page-admin .admin-address-card p {
        margin: 3px 0;
    }

    .page-admin .admin-address-grid {
        gap: 12px;
        margin: 12px 0;
    }

    .page-admin .admin-grid > .checkout-box:nth-child(2) .form-grid {
        gap: 10px 12px;
    }

    .page-admin .admin-grid > .checkout-box:nth-child(2) .field {
        margin-bottom: 10px;
    }

    .page-admin .admin-grid > .checkout-box:nth-child(2) input,
    .page-admin .admin-grid > .checkout-box:nth-child(2) select,
    .page-admin .admin-grid > .checkout-box:nth-child(2) textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .page-admin .admin-table th,
    .page-admin .admin-table td {
        padding: 7px 6px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .page-admin .admin-table th {
        font-size: 0.84rem;
    }

    .page-admin .admin-grid > .checkout-box:first-child .admin-table th,
    .page-admin .admin-grid > .checkout-box:first-child .admin-table td {
        padding: 6px 5px;
        font-size: 0.84rem;
    }

    .page-admin .admin-grid > .checkout-box:first-child .admin-table small {
        font-size: 0.84em;
    }

    .page-admin .admin-grid > .checkout-box:first-child .admin-table .btn-small {
        padding: 7px 10px;
        font-size: 0.82rem;
        line-height: 1;
    }

    .page-admin .admin-grid > .checkout-box:first-child .admin-status-cell {
        width: 28px;
        min-width: 28px;
    }

    .page-admin .admin-grid > .checkout-box:first-child .admin-status-icon {
        width: 24px;
        height: 24px;
    }

    .page-admin .admin-top {
        margin-bottom: 10px;
    }

    .page-admin .admin-top h1 {
        font-size: 2rem;
    }

    .page-admin .admin-tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-admin .admin-tabs a {
        padding: 10px 18px;
    }

    .page-admin .admin-order-filters {
        gap: 10px;
        margin: 10px 0 14px;
        padding: 12px;
    }

    .page-admin .admin-inline-form {
        margin-top: 10px;
    }

    .page-admin .admin-invoice-table th:first-child,
    .page-admin .admin-invoice-table td:first-child {
        width: 126px;
    }

    .page-admin .admin-invoice-table th:nth-child(2),
    .page-admin .admin-invoice-table td:nth-child(2) {
        width: 82px;
    }

    .page-admin .admin-invoice-table th:nth-child(3),
    .page-admin .admin-invoice-table td:nth-child(3) {
        width: 90px;
    }
}

.admin-invoice-table th:first-child,
.admin-invoice-table td:first-child {
    width: 112px;
    white-space: nowrap;
}

.admin-invoice-table th:nth-child(2),
.admin-invoice-table td:nth-child(2) {
    width: 70px;
    white-space: nowrap;
}

.admin-invoice-table th:nth-child(3),
.admin-invoice-table td:nth-child(3) {
    width: 82px;
}

.admin-invoice-table th:nth-child(4),
.admin-invoice-table th:nth-child(5),
.admin-invoice-table td:nth-child(4),
.admin-invoice-table td:nth-child(5) {
    width: 62px;
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
}

.admin-invoice-table .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 56px;
    height: 36px;
    min-width: 56px;
    min-height: 36px;
    padding: 0;
    vertical-align: middle;
    line-height: 1;
}

.admin-invoice-table .admin-inline-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.admin-invoice-sent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-height: 34px;
    color: #6f655c;
    font-size: 0.78rem;
    line-height: 1.1;
}

.admin-status-cell {
    width: 34px;
    min-width: 34px;
    text-align: center;
}

.admin-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid currentColor;
    vertical-align: middle;
}

.admin-status-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-status-icon--delivered {
    color: #2f8f5b;
    background: #e6f4ec;
}

.admin-status-icon--cancelled {
    color: #ba3d32;
    background: #fae7e3;
}

.admin-status-icon--attention {
    color: #b97812;
    background: #fff0b8;
}

.admin-status-icon--waiting {
    color: #735d4f;
    background: #efe4d6;
}

.admin-status-icon--returned {
    color: #4f7088;
    background: #e7eff3;
}

.admin-status-icon--unknown {
    color: #81756d;
    background: #f1ebe2;
}

.admin-product-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-user-form input,
.admin-user-form select {
    width: 100%;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.option-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
}

.option-card {
    display: block;
    height: 100%;
}

.option-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 132px;
    height: 100%;
    padding: 14px 48px 14px 14px;
    border: 1px solid #d7cab9;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf3 0%, #f5ecdf 100%);
    box-shadow: 0 8px 18px rgba(47, 41, 35, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.option-card:hover .option-card-inner {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(47, 41, 35, 0.12);
}

.option-card-inner strong {
    display: block;
    margin: 6px 0;
    font-size: 1.02rem;
}

.option-card-inner small {
    color: #6d5d52;
    line-height: 1.4;
}

.payment-description {
    display: block;
}

.payment-description.is-recommended {
    color: #4f5f40;
}

.payment-recommendation {
    display: inline-flex;
    align-items: center;
    margin: 0 6px 4px 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e3f0dc;
    color: #385f2f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.shipping-price-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #8a5a44;
    color: #fff;
    font-weight: 800;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
}

.option-logo {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 56px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border: 1px solid transparent;
}

.option-logo-img {
    display: block;
    align-self: flex-start;
    height: 18px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
}

.option-logo-img-zasilkovna {
    height: 44px;
}

.option-logo-img-bank {
    height: 20px;
    max-width: 44px;
}

.option-logo-pickup {
    min-width: 44px;
    height: 44px;
    width: 44px;
    border-color: #d7cab9;
    background: #efe4d4;
    color: #8a5a44;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(138, 90, 68, 0.08);
}

.option-logo-pickup svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-brand-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 2px;
}

.payment-brand-logos img {
    display: block;
    height: 24px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(47, 41, 35, 0.08);
}

.option-logo-zasilkovna {
    background: #fbe6ef;
    color: #c90064;
    border-color: #efb2cc;
}

.option-logo-gopay {
    background: #e8f1ff;
    color: #1e4fa8;
    border-color: #b9d0ff;
}

.option-logo-bank {
    background: #eef2f7;
    color: #30465d;
    border-color: #c9d5e1;
}

.option-card > input:checked + .option-card-inner {
    border-color: #5c8b47;
    box-shadow: 0 0 0 3px rgba(92, 139, 71, 0.22), 0 14px 28px rgba(47, 41, 35, 0.14);
    background: linear-gradient(180deg, #f2f8ed 0%, #fff6e9 100%);
}

.option-card > input:checked + .option-card-inner::after {
    content: "\2713";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #5c8b47;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(92, 139, 71, 0.28);
}

.option-card > input:checked + .option-card-inner .shipping-price-badge {
    background: #5c8b47;
}

@media (max-width: 960px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-order-filters > .admin-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .option-grid {
        grid-template-columns: 1fr;
    }

    .step-chip {
        min-width: 100%;
    }

    .checkout-box {
        padding: 16px;
        border-radius: 12px;
    }

    .checkout-box .btn[type="submit"] {
        width: 100%;
    }
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
}

.cookie-consent__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #d8ccb9;
    border-radius: 14px;
    background: #fffaf3;
    box-shadow: 0 16px 32px rgba(47, 41, 35, 0.2);
}

.cookie-consent__title {
    margin: 0 0 6px;
    font-weight: 700;
}

.cookie-consent__text {
    margin: 0 0 12px;
    max-width: none;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn-muted {
    background: #efe4d4;
    color: #5b4a3d;
}

.cookie-btn-muted:hover {
    background: #e2d4c0;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 11, 0.45);
}

.cookie-modal__panel {
    position: relative;
    width: min(620px, calc(100% - 24px));
    margin: 8vh auto 0;
    background: #fffaf3;
    border: 1px solid #d8ccb9;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 18px 36px rgba(47, 41, 35, 0.26);
}

.cookie-modal__panel h3 {
    margin: 0 0 10px;
}

.cookie-modal__panel p {
    margin: 0 0 12px;
    max-width: none;
}

.cookie-choice {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
}

.cookie-choice small {
    color: #6f655c;
}

.cookie-modal__actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body.cookie-modal-open {
    overflow: hidden;
}
.payment-summary-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.payment-qr-box {
    text-align: center;
}

.payment-qr-box p {
    margin: 0 0 12px;
    color: #705f54;
}

.payment-qr-box img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    border: 10px solid #fff;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(84, 58, 40, 0.12);
}

@media (max-width: 760px) {
    .payment-summary-box {
        grid-template-columns: 1fr;
    }

    .payment-qr-box img {
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .admin-analysis-hero,
    .admin-analysis-grid {
        grid-template-columns: 1fr;
    }

    .admin-analysis-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-analysis-cards {
        grid-template-columns: 1fr;
    }

    .admin-analysis-format-card,
    .admin-analysis-card {
        border-radius: 16px;
    }
}
