:root {
    --bg: #f7f8fb;
    --card-bg: #ffffff;
    --text: #1f2933;
    --muted: #5c6470;
    --accent: #1e8feb;
    --border: #e4e7ec;
    --primary: #001f3f;
    --primaryLight: #001f3f;
    --secondary: #ffba43;
    --secondaryLight: #ffba43;
    --headerColor: #1a1a1a;
    --bodyTextColor: #4e4b66;
    --bodyTextColorWhite: #fafbfc;
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
    --bodyFontSize: 1rem;
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
    --product-photo-ratio: 4 / 5;
}

.routine-page {
    background: radial-gradient(circle at top left, rgba(255, 170, 190, 0.18), transparent 32%), linear-gradient(180deg, #fff8fb 0%, #f8fbff 46%, #ffffff 100%);
    min-height: 70vh;
}

.routine-hero,
.routine-detail-hero,
.routine-filter-section,
.routine-grid-section,
.routine-builder-layout {
    width: min(1440px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.routine-hero {
    padding: 54px 0 24px;
    text-align: center;
}

.routine-hero h1,
.routine-detail-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 5vw, 62px);
    letter-spacing: 0;
}

.routine-hero p,
.routine-detail-copy p {
    color: var(--muted);
}

.routine-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.routine-card,
.routine-summary-card,
.routine-step-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(35, 24, 58, 0.08);
}

.routine-card {
    overflow: hidden;
}

.routine-card-media {
    position: relative;
    display: block;
    height: 270px;
    background: #f6f7fb;
}

.routine-card-media img,
.routine-detail-image img,
.routine-step-image img,
.routine-admin-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.routine-card-media span {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.routine-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffe4ee, #f8fafc 45%, #dff7f0);
}

.routine-card-body {
    padding: 20px;
}

.routine-card-body h2,
.routine-step-copy h2 {
    margin: 4px 0 8px;
}

.routine-card-meta,
.routine-card-footer,
.routine-summary-line,
.routine-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.routine-card-meta {
    margin: 14px 0;
    color: var(--muted);
    font-size: 13px;
}

.routine-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: 28px;
    align-items: center;
    padding: 54px 0 24px;
}

.routine-detail-copy {
    padding: 28px 0;
}

.routine-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.routine-tag-row span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 142, 170, 0.32);
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.routine-detail-image {
    height: min(52vw, 520px);
    min-height: 320px;
    border-radius: 28px;
    overflow: hidden;
    background: #f7f8fb;
    box-shadow: 0 22px 60px rgba(35, 24, 58, 0.12);
}

.routine-builder-layout {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.routine-step-list {
    display: grid;
    gap: 14px;
}

.routine-step-card {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.routine-step-select {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.routine-step-image {
    display: block;
    height: 170px;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f7fb;
}

.routine-step-copy {
    padding-right: 120px;
}

.routine-summary-card {
    position: sticky;
    top: 18px;
    padding: 22px;
}

.routine-summary-line {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.routine-summary-line.is-saving strong {
    color: #d94670;
}

.routine-summary-total {
    padding: 16px 0;
    font-size: 20px;
}

.routine-add-all {
    width: 100%;
    min-height: 48px;
    margin: 12px 0 8px;
}

.routine-instructions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.routine-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 22px;
    border: 1px dashed var(--border);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

.routine-admin-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.routine-admin-product img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #f7f8fb;
    border: 1px solid var(--border);
}

.admin-inline-editor {
    margin-bottom: 8px;
}

.admin-inline-editor form {
    display: grid;
    gap: 8px;
    min-width: 280px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.seo-manager-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 22px;
    align-items: start;
}

.email-studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.seo-entity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.seo-preview-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.seo-score-card,
.google-preview,
.social-preview,
.seo-warning-list {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.seo-score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-score-card strong {
    font-size: 28px;
    color: var(--accent);
}

.google-preview p {
    margin: 0 0 4px;
    color: #15803d;
    font-size: 13px;
}

.google-preview h3 {
    margin: 0 0 6px;
    color: #1a0dab;
    font-size: 20px;
    font-weight: 500;
}

.google-preview span {
    color: #4d5156;
    line-height: 1.5;
}

.social-preview {
    overflow: hidden;
}

.social-preview img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f7f8fb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.social-preview strong {
    display: block;
    margin-bottom: 6px;
}

.social-preview p,
.social-preview span,
.seo-warning-list p {
    color: var(--muted);
    margin: 0 0 6px;
}

@media (max-width: 980px) {
    .seo-manager-grid,
    .email-studio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .routine-detail-hero,
    .routine-builder-layout,
    .routine-step-card {
        grid-template-columns: 1fr;
    }

    .routine-detail-image {
        height: 340px;
        min-height: 260px;
    }

    .routine-summary-card {
        position: static;
    }

    .routine-step-copy {
        padding-right: 0;
    }

    .routine-step-select {
        position: static;
        width: fit-content;
        order: -1;
    }

    .routine-step-image {
        height: 240px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

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

a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.topnav {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topnav nav {
    display: flex;
    gap: 16px;
    font-weight: 600;
    flex-wrap: wrap;
}

.topnav nav a {
    padding: 6px 10px;
    border-radius: 8px;
}

.topnav nav a:hover {
    background: rgba(30, 143, 235, 0.08);
}

.topnav nav a.glow-nav-link {
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, #ffd6df, #ffc7a8 55%, #fff0ca);
    color: #3a2530;
    box-shadow:
        0 8px 22px rgba(255, 159, 172, 0.28),
        0 0 18px rgba(255, 214, 223, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topnav nav a.glow-nav-link:hover {
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.95), transparent 24%),
        linear-gradient(135deg, #ffc7d4, #ffbd96 55%, #ffe6ad);
    transform: translateY(-1px);
    box-shadow:
        0 12px 30px rgba(255, 159, 172, 0.36),
        0 0 24px rgba(255, 189, 150, 0.6);
}

.topnav nav a,
.nav-dropdown-trigger,
.button {
    min-width: 0;
    text-align: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown[open] {
    z-index: 20;
}

.nav-dropdown-trigger {
    list-style: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.nav-dropdown-trigger::-webkit-details-marker {
    display: none;
}

.nav-dropdown-trigger:hover {
    background: rgba(30, 143, 235, 0.08);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
}

.nav-dropdown-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-dropdown-link:hover {
    background: rgba(30, 143, 235, 0.08);
}

.nav-dropdown-link.is-active {
    background: rgba(30, 143, 235, 0.12);
    color: var(--accent);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.header {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 24px;
}

.brand {
    font-size: 22px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
}

.lead {
    margin-top: 6px;
    color: var(--muted);
}

.home-top-image-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 60px;
    padding-right: 30px;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: #efd5dc;
}

.home-top-image-banner img {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: cover;
    object-position: center;
}

.home-top-banner-motto {
    position: static;
    transform: none;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #131518;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    box-shadow: none;
    backdrop-filter: none;
}

.home-top-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 5px;
    background: #050505;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-hero-header {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home-hero-header .home-top-image-banner {
    border-radius: 0;
}

.section.home-featured-full-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.section.home-featured-full-section > .section-title,
.section.home-featured-full-section > .muted {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.section.home-featured-full-section .featured-carousel-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 12px;
}

.section.home-featured-full-section .featured-carousel {
    grid-auto-columns: max(180px, calc((100vw - 176px) / 5));
    padding-left: 0;
    padding-right: 0;
}

.home-search-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home-search-section .catalog-toolbar {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.glow-page {
    min-height: 80vh;
    padding: 42px 20px 72px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 214, 223, 0.92), transparent 30%),
        radial-gradient(circle at 84% 8%, rgba(255, 240, 202, 0.86), transparent 28%),
        radial-gradient(circle at 52% 42%, rgba(255, 176, 200, 0.22), transparent 34%),
        linear-gradient(135deg, #fff8fb 0%, #f7fbff 50%, #fff5ec 100%);
}

.glow-hero {
    width: min(100%, 880px);
    margin: 0 auto 24px;
    text-align: center;
}

.glow-hero h1 {
    margin: 0;
    color: #211827;
    font-size: clamp(34px, 7vw, 64px);
    line-height: 1;
}

.glow-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.glow-quiz-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.glow-quiz-card,
.glow-results {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid rgba(255, 198, 210, 0.7);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px rgba(81, 54, 75, 0.12);
    backdrop-filter: blur(12px);
}

.glow-question {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(228, 231, 236, 0.8);
    border-radius: 18px;
    background: #fff;
}

.glow-step {
    margin: 0;
    color: #cf7891;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glow-question h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.glow-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.glow-options label {
    cursor: pointer;
}

.glow-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.glow-options span {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 9px;
    min-height: 0;
    padding: 10px;
    border: 1px solid rgba(228, 231, 236, 0.95);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    text-align: center;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.glow-options strong {
    display: block;
    min-width: 0;
    padding: 0 2px 2px;
    font-size: 14px;
    line-height: 1.2;
}

.glow-options input:checked + span {
    border-color: rgba(255, 154, 175, 0.8);
    background: linear-gradient(135deg, #fff0f4, #fff7e8);
    box-shadow: 0 10px 24px rgba(255, 159, 172, 0.22);
    transform: translateY(-1px);
}

.glow-option-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #fff7f9, #f2fbff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 8px 18px rgba(31, 41, 51, 0.08);
}

.glow-option-art {
    position: relative;
    display: block;
    width: 58px;
    height: 48px;
    overflow: hidden;
    border-radius: 16px;
    background-image: url("/static/img/glow-match-skin-options.png");
    background-repeat: no-repeat;
    background-size: 500% 400%;
    background-position: 0 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 18px rgba(31, 41, 51, 0.08);
}

.glow-option-art::before,
.glow-option-art::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.glow-option-art::before {
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.12));
    pointer-events: none;
}

.glow-option-art::after {
    display: none;
}

.glow-art-dry { background-position: 0% 0%; }
.glow-art-oily { background-position: 25% 0%; }
.glow-art-combination { background-position: 50% 0%; }
.glow-art-sensitive { background-position: 75% 0%; }
.glow-art-dryness { background-position: 100% 0%; }
.glow-art-redness { background-position: 0% 33.333%; }
.glow-art-dullness { background-position: 25% 33.333%; }
.glow-art-texture { background-position: 50% 33.333%; }
.glow-art-dewy { background-position: 75% 33.333%; }
.glow-art-natural { background-position: 100% 33.333%; }
.glow-art-fresh { background-position: 0% 66.666%; }
.glow-art-lightweight { background-position: 25% 66.666%; }
.glow-art-normal { background-position: 50% 66.666%; }
.glow-art-somewhat { background-position: 75% 66.666%; }
.glow-art-very-sensitive { background-position: 100% 66.666%; }
.glow-art-hydrate { background-position: 0% 100%; }
.glow-art-glow { background-position: 25% 100%; }
.glow-art-soothe { background-position: 50% 100%; }
.glow-art-clarify { background-position: 75% 100%; }

.glow-actions {
    display: flex;
    justify-content: center;
}

.glow-submit {
    min-width: min(100%, 280px);
    background: linear-gradient(135deg, #ff8fac, #ffb070);
    box-shadow: 0 16px 34px rgba(255, 143, 172, 0.28);
}

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

.glow-result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(31, 41, 51, 0.08);
}

.glow-result-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.glow-result-card h3 {
    margin: 0;
    font-size: 18px;
}

.glow-result-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
}

.section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 42px;
    padding: 0 20px;
}

.section-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.catalog-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.catalog-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.catalog-filter-field {
    display: grid;
    gap: 6px;
}

.catalog-filter-field input,
.catalog-filter-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--text);
}

.catalog-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-category-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 143, 235, 0.18);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.catalog-chip:hover {
    background: rgba(30, 143, 235, 0.08);
    border-color: rgba(30, 143, 235, 0.3);
    transform: translateY(-1px);
}

.catalog-chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
    min-width: 0;
}

.grid-filtered {
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    justify-content: start;
}

.featured-carousel-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.featured-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 300px);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 10px;
}

.featured-carousel::-webkit-scrollbar,
.home-large-banner-track::-webkit-scrollbar {
    display: none;
}

.feature-card {
    scroll-snap-align: start;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(30, 143, 235, 0.24);
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

.carousel-arrow:hover {
    background: rgba(30, 143, 235, 0.08);
}

.home-large-banner-section {
    width: 100%;
    max-width: none;
    margin-top: -18px;
    padding: 0;
    overflow: hidden;
}

.home-large-banner-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(70vw, 1100px);
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 calc((100vw - min(70vw, 1100px)) / 2) 18px;
    scroll-behavior: smooth;
}

.home-large-banner-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #eef1f6;
    scroll-snap-align: start;
}

.home-large-banner-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1650 / 615;
    object-fit: cover;
}

.home-large-banner-copy {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(48%, 440px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    color: #131518;
}

.home-large-banner-copy strong {
    font-size: 34px;
    line-height: 1.1;
}

.home-large-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-banner-editor {
    display: grid;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.admin-banner-editor:first-of-type {
    border-top: 0;
}

.admin-preview-block {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdff;
}

.admin-null-preview {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    color: var(--muted);
    font-weight: 700;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-width: 0;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.thumb {
    width: 100%;
    max-width: 100%;
    aspect-ratio: var(--product-photo-ratio);
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    image-rendering: auto;
}

.badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 8px;
    background: #eef4ff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card h2 {
    margin: 0;
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.desc {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid var(--accent);
    color: #fff;
    background: var(--accent);
    transition: transform 100ms ease, box-shadow 120ms ease, background 120ms ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 143, 235, 0.2);
}

.button.ghost {
    color: var(--accent);
    background: transparent;
    border-color: rgba(30, 143, 235, 0.4);
}

.button.ghost:hover {
    background: rgba(30, 143, 235, 0.08);
    box-shadow: none;
}

.button.danger-action,
.danger-action,
.admin-danger-form .button {
    border-color: rgba(192, 57, 43, 0.32);
    color: #a72d20;
}

.button.danger-action:hover,
.danger-action:hover,
.admin-danger-form .button:hover {
    background: rgba(192, 57, 43, 0.08);
    color: #8f241b;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--border);
    background: #fff;
}

.admin-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.admin-menu {
    display: grid;
    gap: 6px;
}

.admin-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--muted);
}

.admin-menu a:hover {
    background: rgba(30, 143, 235, 0.08);
    color: var(--text);
}

.admin-main {
    width: 100%;
    max-width: 1280px;
    padding: 28px;
}

.admin-page-head,
.admin-head-actions,
.admin-form-actions,
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page-head h1 {
    margin: 0;
}

.admin-panel,
.admin-stat,
.admin-alert {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.admin-alert {
    margin: 14px 0;
    color: #0f6ec4;
    font-weight: 800;
}

.admin-help-card {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(30, 143, 235, 0.16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.82));
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.admin-help-heading {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.admin-help-card p,
.admin-help-card ul {
    margin: 0;
}

.admin-help-card ul {
    display: grid;
    gap: 4px;
    padding-left: 18px;
}

.admin-help-card li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-help-warning {
    padding-top: 6px;
    color: #9a5d00;
    font-weight: 700;
}

.admin-field-help {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.admin-stat {
    display: grid;
    gap: 8px;
}

.admin-stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-stat strong {
    font-size: 26px;
}

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

.admin-list-row,
.order-admin-head,
.order-status-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.admin-list-row:last-child {
    border-bottom: 0;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 10px;
    margin: 16px 0;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.order-status-form select,
.admin-glow-option-card input,
.admin-glow-option-card select,
.admin-glow-option-card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

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

.admin-product-row {
    grid-template-columns: minmax(260px, 2.2fr) minmax(110px, 0.9fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(80px, 0.7fr) minmax(110px, 0.9fr) minmax(90px, 0.8fr) minmax(290px, 1.9fr);
    align-items: center;
}

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

.admin-inventory-row {
    grid-template-columns: minmax(180px, 1.5fr) 0.9fr 0.7fr 0.8fr 1fr 1.2fr 0.9fr 0.9fr;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-product-cell img {
    width: 52px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.admin-glow-list {
    display: grid;
    gap: 14px;
}

.admin-glow-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
}

.admin-glow-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-glow-card-head img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.admin-glow-question-list {
    display: grid;
    gap: 18px;
}

.admin-glow-question-editor {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
}

.admin-glow-question-editor h2 {
    margin: 0;
    font-size: 16px;
}

.admin-glow-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
    align-items: start;
}

.admin-glow-option-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.admin-glow-option-card label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
}

.admin-glow-option-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7f9, #eef6ff);
}

.admin-glow-option-preview.is-empty {
    min-height: 180px;
}

.admin-glow-square-arranger {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.admin-glow-square-arranger img,
.admin-glow-square-arranger canvas {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-glow-option-card .image-arranger {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    min-width: 0;
}

.admin-glow-option-card .image-arranger-preview {
    min-height: 0;
}

.admin-glow-option-card .image-arranger-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-glow-option-card .image-arranger-file {
    grid-column: 1 / -1;
}

.admin-glow-option-card .image-arranger-controls .button {
    width: 100%;
}

.admin-glow-option-card [data-arranger-status] {
    margin: 0;
}

.analytics-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.analytics-funnel {
    display: grid;
    gap: 12px;
}

.analytics-funnel-row {
    display: grid;
    gap: 7px;
}

.analytics-funnel-row div,
.analytics-mini-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.analytics-funnel-row span,
.analytics-mini-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.analytics-bar {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef4ff;
}

.analytics-bar i {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8fac, #ffbd80);
}

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

.analytics-mini-grid div {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdff;
}

.analytics-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

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

.analytics-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.analytics-compact-list {
    display: grid;
    gap: 4px;
}

.analytics-journey-list {
    display: grid;
    gap: 12px;
}

.analytics-journey-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.analytics-journey-card summary {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
}

.analytics-journey-meta {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
}

.analytics-journey-meta p {
    margin: 0;
}

.analytics-timeline {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 12px 14px 34px;
}

.analytics-timeline li {
    padding-left: 2px;
}

.analytics-timeline span,
.analytics-timeline small {
    display: block;
    color: var(--muted);
}

.reward-code-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.reward-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-top: 6px;
}

.reward-code-row input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.reward-summary-row {
    color: #0f6ec4;
    font-weight: 800;
}

.switch-row {
    display: inline-flex;
    align-items: center;
}

.switch-row input {
    position: absolute;
    opacity: 0;
}

.switch-row span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d8dee8;
    cursor: pointer;
    transition: background 0.16s ease;
}

.switch-row span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.16s ease;
}

.switch-row input:checked + span {
    background: #1e8feb;
}

.switch-row input:checked + span::after {
    transform: translateX(18px);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-table {
    min-width: 1120px;
}

.reward-status-disabled,
.reward-status-expired,
.reward-status-invalid {
    background: #fee2e2;
    color: #991b1b;
}

.reward-status-scheduled {
    background: #eff6ff;
    color: #1d4ed8;
}

.reward-status-fully-used {
    background: #f3e8ff;
    color: #6b21a8;
}

.guest-gate-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(255, 183, 197, 0.55), transparent 30%),
        linear-gradient(135deg, #fff7f4 0%, #ffe9ef 42%, #fff8dc 100%);
}

.guest-gate-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.guest-gate-card {
    width: min(100%, 480px);
    display: grid;
    gap: 16px;
    padding: clamp(24px, 6vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(210, 94, 122, 0.22);
    backdrop-filter: blur(18px);
    text-align: center;
}

.guest-gate-card h1 {
    margin: 0;
    font-size: clamp(34px, 8vw, 56px);
    line-height: 0.98;
}

.guest-gate-card p {
    margin: 0;
}

.guest-gate-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.guest-gate-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.guest-gate-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 174, 190, 0.65);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
}

.guest-gate-form .button {
    min-height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8fac, #ffbd80);
    box-shadow: 0 18px 34px rgba(255, 143, 172, 0.28);
}

.guest-gate-message {
    color: #0f6ec4;
    font-weight: 800;
    text-align: center;
}

.guest-gate-message.is-error {
    color: #b42318;
}

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

.inline-filter select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.admin-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border);
}

.order-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.order-management-table {
    min-width: 1180px;
}

.order-detail-list {
    display: grid;
    gap: 8px;
}

.order-detail-list p {
    margin: 0;
}

.order-timeline {
    padding-left: 22px;
}

.status-delivered,
.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-shipped,
.status-processing,
.status-preparing,
.status-packed {
    background: #e0f2fe;
    color: #075985;
}

.status-cancelled,
.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-refunded,
.status-partially_refunded {
    background: #fff7e6;
    color: #9a5a00;
}

.status-not_fulfilled,
.status-pending,
.status-new {
    background: #eef4ff;
    color: #344054;
}

.status-pill.warning {
    background: #fff7e6;
    color: #9a5a00;
}

.status-pill,
.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #21415f;
    font-weight: 800;
    font-size: 12px;
}

.stock-pill.warning,
.product-stock-note.warning {
    background: #fff6df;
    color: #8a5a00;
}

.stock-pill.danger,
.product-stock-note.danger {
    background: #ffe9e9;
    color: #a52828;
}

.product-stock-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 143, 235, 0.16);
    background: #eef9f3;
    color: #1e6c44;
    font-weight: 800;
    font-size: 13px;
}

.order-admin-card {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.order-admin-card:last-child {
    border-bottom: 0;
}

.banner {
    width: 100%;
    background: linear-gradient(135deg, #f0f6ff, #e6f0ff);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 auto 42px;
}

.banner-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-popup-root[hidden] {
    display: none;
}

.promo-popup-root {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

.promo-popup-position-center {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.promo-popup-position-bottom_right {
    right: 22px;
    bottom: 22px;
}

.promo-popup-position-bottom_center {
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
}

.promo-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, 0.48);
    pointer-events: auto;
}

.promo-popup-stage {
    position: relative;
    pointer-events: auto;
    animation: promoPopupEnter 180ms ease-out both;
}

@keyframes promoPopupEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.promo-popup-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.1fr);
    width: min(92vw, 760px);
    max-height: min(86vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(228, 231, 236, 0.95);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(31, 41, 51, 0.24);
}

.promo-popup-size-small {
    width: min(92vw, 520px);
    grid-template-columns: minmax(150px, 0.85fr) minmax(220px, 1.15fr);
}

.promo-popup-size-large {
    width: min(94vw, 920px);
}

.promo-popup-layout-image_top,
.promo-popup-layout-text_only {
    grid-template-columns: 1fr;
}

.promo-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.promo-popup-close:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 41, 51, 0.12);
}

.promo-popup-media {
    min-height: 100%;
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.promo-popup-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
    image-rendering: auto;
}

.promo-popup-layout-image_top .promo-popup-media img {
    height: 240px;
    min-height: 0;
}

.promo-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 34px;
}

.promo-popup-kicker,
.promo-popup-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.promo-popup-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promo-popup-content h2 {
    margin: 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1.08;
}

.promo-popup-subtitle,
.promo-popup-message {
    margin: 0;
    color: var(--muted);
}

.promo-popup-message {
    font-size: 15px;
}

.promo-popup-code {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px dashed rgba(30, 143, 235, 0.5);
    border-radius: 12px;
    background: rgba(30, 143, 235, 0.06);
}

.promo-popup-code span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.promo-popup-code strong {
    color: var(--accent);
    letter-spacing: 0.08em;
}

.promo-popup-action {
    align-self: flex-start;
    margin-top: 4px;
}

.promo-popup-theme-luxury {
    border-color: rgba(17, 24, 39, 0.2);
    background: linear-gradient(135deg, #111827, #263345);
}

.promo-popup-theme-luxury .promo-popup-content h2,
.promo-popup-theme-luxury .promo-popup-message,
.promo-popup-theme-luxury .promo-popup-subtitle {
    color: #fff;
}

.promo-popup-theme-luxury .promo-popup-note,
.promo-popup-theme-luxury .promo-popup-kicker {
    color: #f6d58d;
}

.promo-popup-theme-gen_z {
    background: linear-gradient(135deg, #fff, #f3f7ff 45%, #fff3fb);
    border-color: rgba(124, 92, 255, 0.24);
}

.promo-popup-theme-gen_z .promo-popup-kicker,
.promo-popup-theme-gen_z .promo-popup-code strong {
    color: #7c5cff;
}

.promo-popup-theme-pastel {
    background: linear-gradient(135deg, #fffafa, #f3fbff);
    border-color: rgba(255, 186, 67, 0.3);
}

.promo-popup-theme-pastel .promo-popup-kicker,
.promo-popup-theme-pastel .promo-popup-code strong {
    color: #d78320;
}

.admin-popup-preview {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 18px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.admin-popup-preview .promo-popup-card {
    max-width: 100%;
    box-shadow: 0 18px 42px rgba(31, 41, 51, 0.16);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 6px 0;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.small {
    font-size: 13px;
}

.detail-layout {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

.detail-layout img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #eef1f6;
}

.detail-layout-wide {
    max-width: 1100px;
    grid-template-columns: 1.1fr 0.9fr;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: var(--product-photo-ratio);
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    object-fit: contain;
}

.detail-hero img {
    height: 100%;
}

.detail-hero {
    position: relative;
}

.detail-main-image {
    opacity: 1;
    transition: opacity 320ms ease;
}

.detail-main-image.is-transitioning {
    opacity: 0.22;
}

.detail-gallery-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 143, 235, 0.12);
    overflow: hidden;
}

.detail-gallery-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #1e8feb 0%, #69b7ff 100%);
}

.detail-gallery-progress-fill.is-animating {
    animation: galleryProgressFill 5s linear forwards;
}

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #1f2933;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.16);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.detail-gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 28px rgba(31, 41, 51, 0.2);
}

.detail-gallery-arrow span {
    font-size: 28px;
    line-height: 1;
    transform: translateY(-1px);
}

.detail-gallery-arrow-left {
    left: 14px;
}

.detail-gallery-arrow-right {
    right: 14px;
}

@keyframes galleryProgressFill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
}

.detail-thumb-button {
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-thumb-button:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 143, 235, 0.35);
    box-shadow: 0 10px 18px rgba(31, 41, 51, 0.08);
}

.detail-thumb-button.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(30, 143, 235, 0.12);
}

.detail-thumb-button img {
    display: block;
    border: none;
    border-radius: 0;
}

.detail-info h1 {
    margin: 0 0 10px 0;
    overflow-wrap: anywhere;
}

.detail-info .price {
    font-size: 20px;
}

.detail-info p {
    color: var(--muted);
    line-height: 1.6;
}

.detail-extra {
    display: grid;
    gap: 10px;
}

.footer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 30px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 14px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.about-grid {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
}

.cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
}

.cs-button-solid {
    font-size: 1rem;
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
}

.cs-button-solid:hover:before {
    width: 100%;
}

@media only screen and (min-width: 0rem) {
    #steps-284 {
        padding: var(--sectionPadding);
    }

    #steps-284 .cs-container {
        width: 100%;
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }

    #steps-284 .cs-content {
        text-align: left;
        width: 100%;
        max-width: 27.125rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #steps-284 .cs-text {
        margin-bottom: 1rem;
    }

    #steps-284 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }

    #steps-284 .cs-right-section {
        margin: 0;
        padding: 0;
        max-width: 35.125rem;
    }

    #steps-284 .cs-item {
        list-style: none;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    #steps-284 .cs-item:nth-of-type(1) .cs-item-text:before {
        height: 50%;
        top: auto;
        bottom: -1px;
    }

    #steps-284 .cs-item:nth-of-type(2),
    #steps-284 .cs-item:nth-of-type(4) {
        justify-content: flex-end;
        text-align: right;
    }

    #steps-284 .cs-item:nth-of-type(2) .cs-number,
    #steps-284 .cs-item:nth-of-type(4) .cs-number {
        order: 2;
        margin: 0;
        margin-left: clamp(0.9375rem, 3vw, 1.5rem);
    }

    #steps-284 .cs-item:nth-of-type(2) .cs-item-text,
    #steps-284 .cs-item:nth-of-type(4) .cs-item-text {
        padding-left: 0;
        padding-right: clamp(0.9375rem, 3vw, 1.5rem);
    }

    #steps-284 .cs-item:nth-of-type(2) .cs-item-text:before,
    #steps-284 .cs-item:nth-of-type(4) .cs-item-text:before {
        border-top: 1px solid var(--primary);
        border-left: none;
        border-right: 1px solid var(--primary);
        left: auto;
        right: 0;
        bottom: 0;
        border-radius: 0 0.5rem 0.5rem 0;
    }

    #steps-284 .cs-item:nth-of-type(2) .cs-item-text:after,
    #steps-284 .cs-item:nth-of-type(4) .cs-item-text:after {
        left: auto;
        right: -0.9375rem;
    }

    #steps-284 .cs-item:nth-of-type(3) .cs-item-text:before {
        height: auto;
        border-top: 1px solid var(--primary);
        border-radius: 0.5rem 0 0 0.5rem;
        top: 1px;
        bottom: 0;
    }

    #steps-284 .cs-item:nth-of-type(4) .cs-item-text:before {
        height: 50%;
        border-radius: 0 0.5rem 0 0;
        border-bottom: none;
        top: -1px;
    }

    #steps-284 .cs-number {
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 700;
        margin-right: clamp(0.9375rem, 3vw, 1.5rem);
        width: clamp(2.5rem, 5.1vw, 3.25rem);
        height: clamp(2.5rem, 5.1vw, 3.25rem);
        border-radius: 50%;
        border: 2px solid var(--primary);
        color: var(--headerColor);
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: none;
        position: relative;
    }

    #steps-284 .cs-item-text {
        font-size: clamp(0.875rem, 1.6vw, 1rem);
        line-height: 1.5em;
        margin: 0;
        max-width: 18.75rem;
        padding: clamp(1.375rem, 3vw, 2rem) 0;
        box-sizing: content-box;
        padding-left: clamp(0.9375rem, 3vw, 1.5rem);
        position: relative;
        color: var(--bodyTextColor);
    }

    #steps-284 .cs-item-text:before {
        content: "";
        width: 70%;
        height: 100%;
        border-radius: 0 0 0 0.5rem;
        border-left: 1px solid var(--primary);
        border-bottom: 1px solid var(--primary);
        box-sizing: content-box;
        opacity: 1;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
    }

    #steps-284 .cs-item-text:after {
        content: "";
        width: 0.5rem;
        height: 0.5rem;
        background: var(--primary);
        border-radius: 50%;
        border: 12px solid #fff;
        box-sizing: content-box;
        opacity: 1;
        position: absolute;
        display: block;
        top: 50%;
        left: -0.9375rem;
        transform: translateY(-50%);
    }

    #steps-1675 {
        padding: var(--sectionPadding);
        padding-left: 0;
        padding-right: 0;
    }

    #steps-1675 .cs-container {
        width: 100%;
        max-width: 36.5rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }

    #steps-1675 .cs-content {
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #steps-1675 .cs-text {
        max-width: 32.625rem;
    }

    #steps-1675 .cs-card-group {
        margin: 0;
        padding: 0;
        display: grid;
        justify-items: center;
        align-items: stretch;
        grid-auto-flow: row;
    }

    #steps-1675 .cs-item {
        list-style: none;
        box-sizing: border-box;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    #steps-1675 .cs-item::after {
        content: "";
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        opacity: 0.6;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    #steps-1675 .cs-item:first-of-type {
        padding-top: 0;
    }

    #steps-1675 .cs-item:last-of-type {
        padding-bottom: 0;
    }

    #steps-1675 .cs-item:last-of-type::after {
        content: none;
    }

    #steps-1675 .cs-number {
        font-size: clamp(5rem, 1vw, 6.25rem);
        font-weight: 900;
        line-height: 1.2em;
        color: var(--primary);
        opacity: 0.12;
        display: block;
    }

    #steps-1675 .cs-h3 {
        font-size: clamp(1.25rem, 2vw, 1.5625rem);
        font-weight: 700;
        line-height: 1.2em;
        margin: -1.9375rem 0 1rem 0;
        color: var(--headerColor);
    }

    #steps-1675 .cs-item-text {
        font-size: clamp(0.875rem, 2vw, 1rem);
        line-height: 1.5em;
        text-align: left;
        margin: 0;
        color: var(--bodyTextColor);
    }
}

.checkout {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 42px;
    padding: 0 20px;
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1.2fr;
}

.checkout-pane {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form {
    display: grid;
    gap: 12px;
}

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

.form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: var(--text);
}

.form input,
.form textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

.form input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.form select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

.image-field-stack {
    display: grid;
    gap: 10px;
}

.image-arranger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
}

.image-arranger-preview {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 320px;
    border-radius: 14px;
    border: 1px dashed var(--border);
    background:
        linear-gradient(45deg, #f6f8fc 25%, transparent 25%),
        linear-gradient(-45deg, #f6f8fc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f6f8fc 75%),
        linear-gradient(-45deg, transparent 75%, #f6f8fc 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    overflow: hidden;
}

.image-arranger-preview.is-empty::after {
    content: "No image preview yet";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.82);
}

.image-arranger-canvas,
.image-arranger-current {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-arranger-current {
    min-height: 320px;
    background: #eef2f8;
}

.image-arranger-controls {
    display: grid;
    gap: 10px;
    align-content: start;
}

.image-arranger-controls label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.image-arranger-file-button {
    width: fit-content;
}

.image-arranger-slider {
    width: 100%;
}

.image-arranger-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.is-hidden {
    display: none !important;
}

.status-error {
    color: #a72d20;
}

.phone-row {
    display: grid;
    grid-template-columns: 0.9fr 2fr;
    gap: 8px;
    align-items: center;
}

.form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.order-summary {
    display: grid;
    gap: 10px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #f9fbff;
}

.order-summary .summary-total {
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.stripe-box {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.button.sm {
    padding: 8px 10px;
    font-size: 13px;
}

.order-summary span:first-child {
    flex: 1;
    min-width: 120px;
}

.admin-table {
    display: grid;
    gap: 8px;
}

.admin-row {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 0.9fr 1fr 1.2fr 1.4fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    min-height: 74px;
}

.admin-row span {
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.admin-row.admin-product-row {
    grid-template-columns: minmax(300px, 2.3fr) minmax(110px, 0.9fr) minmax(130px, 1fr) minmax(100px, 0.8fr) minmax(90px, 0.7fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(300px, 1.7fr);
    min-width: 1260px;
}

.admin-row.admin-inventory-row {
    grid-template-columns: minmax(180px, 1.5fr) 0.9fr 0.7fr 0.8fr 1fr 1.2fr 0.9fr 0.9fr;
}

.admin-product-row > span {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-product-cell strong {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.admin-badge-row {
    grid-template-columns: 0.8fr 1.4fr 0.9fr 1fr 0.8fr;
}

.admin-head {
    font-weight: 700;
    background: #f4f6fb;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.badge-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.badge-selector-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.badge-selector-card:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 143, 235, 0.35);
    box-shadow: 0 12px 24px rgba(31, 41, 51, 0.06);
}

.badge-selector-card input {
    margin: 0;
}

.badge-selector-card img {
    width: 100%;
    max-width: 120px;
    height: 64px;
    object-fit: contain;
}

.badge-selector-card span {
    font-weight: 700;
    color: var(--text);
}

.product-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 136px));
    gap: 14px;
    margin: 10px 0 14px;
    justify-content: start;
    align-items: start;
}

.product-badge-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: center;
}

.detail-skin-types {
    margin-top: 14px;
}

.detail-skin-types .eyebrow {
    margin-bottom: 8px;
}

.product-badge-icon-box {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    width: 120px;
    min-height: 120px;
    text-align: center;
    justify-items: center;
    justify-content: center;
    margin: 0 auto;
}

.product-badge-icon-box img {
    width: 100%;
    max-width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-badge-icon-box span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    max-width: 120px;
    margin: 0 auto;
    text-align: center;
}

.admin-badge-thumb {
    width: 90px;
    height: 48px;
    object-fit: contain;
}

.badge-preview-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
}

.badge-preview-card img {
    width: 100%;
    max-width: 120px;
    height: 64px;
    object-fit: contain;
}

.badge-logo-uploader {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
}

.badge-logo-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, #f6f8fc 25%, transparent 25%),
        linear-gradient(-45deg, #f6f8fc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f6f8fc 75%),
        linear-gradient(-45deg, transparent 75%, #f6f8fc 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.badge-logo-preview.is-empty::after {
    content: "No logo preview yet";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.82);
}

.badge-logo-preview img {
    width: 100%;
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
    display: block;
}

.badge-logo-controls {
    display: grid;
    gap: 10px;
    align-content: start;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 8px;
}

@media only screen and (min-width: 48rem) {
    #steps-284 .cs-container {
        max-width: 69rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        column-gap: 2.75rem;
    }

    #steps-284 .cs-content {
        width: 50%;
        margin: 0;
    }

    #steps-284 .cs-right-section {
        width: 57%;
        margin-top: calc(clamp(1.25rem, 2vw, 1.5625rem) * -1);
    }

    #steps-1675 .cs-container {
        max-width: 120rem;
    }

    #steps-1675 .cs-card-group {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    #steps-1675 .cs-item {
        padding: clamp(1.5rem, 3vw, 3.75rem);
    }

    #steps-1675 .cs-item::after {
        width: 1px;
        height: 100%;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        opacity: 0.6;
        right: 0;
        left: initial;
    }

    #steps-1675 .cs-item:first-of-type,
    #steps-1675 .cs-item:last-of-type {
        padding: clamp(1.5rem, 3vw, 3.75rem);
    }
}

#steps-284 {
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

#steps-284 + #steps-1675 {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-whatsapp-banner {
    padding: 0 20px 18px;
}

.contact-whatsapp-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--accent) 0%, #0f4f86 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 18px 40px rgba(30, 143, 235, 0.22);
}

.contact-whatsapp-copy {
    display: grid;
    gap: 8px;
}

.contact-whatsapp-copy h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

.contact-whatsapp-copy p {
    margin: 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-whatsapp-topper {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-whatsapp-button {
    min-width: 180px;
    background: #fff;
    border-color: #fff;
    color: var(--accent);
    box-shadow: none;
}

.contact-whatsapp-button:hover {
    background: #f3f7fc;
    color: #0f4f86;
}

.contact-whatsapp-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    text-align: center;
    max-width: 18rem;
}

@media only screen and (min-width: 0rem) {
    #cs-contact-490 {
        padding: var(--sectionPadding);
        background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    }

    #cs-contact-490 .cs-container {
        width: 100%;
        max-width: 69.375rem;
        margin: auto;
        display: grid;
        justify-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }

    #cs-contact-490 .cs-content {
        width: 100%;
        max-width: 33.875rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    #cs-contact-490 .cs-title,
    #cs-contact-490 .cs-text {
        max-width: none;
    }

    #cs-contact-490 .cs-text {
        margin-bottom: 1.5rem;
        color: var(--muted);
    }

    #cs-contact-490 .cs-header {
        font-size: 1rem;
        line-height: 1.2em;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--text);
        display: block;
    }

    #cs-contact-490 .cs-link {
        font-size: 1rem;
        line-height: 1.5em;
        text-decoration: none;
        margin-bottom: 1.25rem;
        color: var(--accent);
        display: block;
        transition: color 0.3s;
    }

    #cs-contact-490 .cs-link:hover {
        color: #0f4f86;
    }

    #cs-contact-490 .cs-link-static {
        color: var(--muted);
        pointer-events: none;
    }

    #cs-contact-490 .cs-social {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    #cs-contact-490 .cs-social-link {
        min-width: 7.5rem;
        padding: 0.875rem 1rem;
        border: 1px solid rgba(30, 143, 235, 0.18);
        border-radius: 999px;
        background: rgba(30, 143, 235, 0.06);
        color: var(--text);
        font-weight: 700;
        text-align: center;
        transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    #cs-contact-490 .cs-social-link:hover {
        transform: translateY(-1px);
        border-color: rgba(30, 143, 235, 0.34);
        background: rgba(30, 143, 235, 0.12);
    }

    #cs-contact-490 #cs-form-490 {
        width: 100%;
        max-width: 39.375rem;
        padding: clamp(1.5rem, 3vw, 2.5rem);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(31, 41, 51, 0.06);
        display: grid;
        gap: 1rem;
    }

    #cs-contact-490 .cs-label {
        font-size: 0.95rem;
        line-height: 1.5em;
        font-weight: 700;
        color: var(--text);
        display: grid;
        gap: 0.5rem;
    }

    #cs-contact-490 .cs-input {
        font-size: 1rem;
        width: 100%;
        height: 3.5rem;
        margin: 0;
        padding: 0 1rem;
        color: var(--text);
        background-color: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-sizing: border-box;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    #cs-contact-490 .cs-input:hover,
    #cs-contact-490 .cs-input:focus {
        border-color: rgba(30, 143, 235, 0.45);
        box-shadow: 0 0 0 3px rgba(30, 143, 235, 0.12);
        outline: none;
    }

    #cs-contact-490 .cs-label-message .cs-input {
        min-height: 10rem;
        padding-top: 1rem;
        font-family: inherit;
        resize: vertical;
    }

    #cs-contact-490 .cs-button-solid {
        border: none;
        background: var(--accent);
        cursor: pointer;
    }

    #cs-contact-490 .cs-button-solid:before {
        background: #0f4f86;
    }

    .contact-form-status {
        margin: 0;
        padding: 12px 14px;
        border-radius: 14px;
        font-weight: 600;
    }

    .contact-form-status-success {
        background: rgba(30, 143, 235, 0.1);
        color: #0f4f86;
    }

    .contact-form-status-error {
        background: rgba(192, 57, 43, 0.1);
        color: #a72d20;
    }
}

@media only screen and (min-width: 64rem) {
    #cs-contact-490 .cs-container {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

@media only screen and (min-width: 0rem) {
    #cs-footer-274 {
        padding: 24px 20px 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #fff6f9 100%);
        border-top: 1px solid var(--border);
    }

    #cs-footer-274 .cs-container {
        width: 100%;
        max-width: 1180px;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        gap: 16px;
    }

    #cs-footer-274 .cs-logo-group {
        display: grid;
        gap: 6px;
    }

    #cs-footer-274 .cs-logo {
        width: min(11.875rem, 70vw);
        height: auto;
        display: block;
    }

    #cs-footer-274 .cs-logo-img {
        width: 100%;
        height: auto;
        display: block;
    }

    #cs-footer-274 .cs-footer-copy,
    #cs-footer-274 .cs-footer-meta {
        margin: 0;
        color: var(--muted);
        font-size: 0.92rem;
        line-height: 1.5;
    }

    #cs-footer-274 .cs-nav,
    #cs-footer-274 .cs-footer-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    #cs-footer-274 .cs-nav-link {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        color: var(--text);
        font-size: 0.93rem;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

    #cs-footer-274 .cs-nav-link:hover {
        color: var(--accent);
        transform: translateY(-1px);
    }
}

@media only screen and (min-width: 48rem) {
    #cs-footer-274 .cs-container {
        grid-template-columns: minmax(220px, 1fr) auto;
        gap: 12px 28px;
    }

    #cs-footer-274 .cs-footer-meta {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(214, 225, 236, 0.75);
    }
}

@media only screen and (min-width: 64rem) {
    #cs-footer-274 .cs-container {
        grid-template-columns: minmax(260px, 1fr) auto minmax(240px, auto);
    }

    #cs-footer-274 .cs-footer-meta {
        grid-column: auto;
        justify-content: flex-end;
        padding-top: 0;
        border-top: 0;
    }

    #cs-footer-274 .cs-nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    img,
    video,
    canvas,
    svg {
        max-width: 100%;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

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

    .analytics-journey-card summary {
        grid-template-columns: 1fr;
    }

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

    .admin-main {
        max-width: 100%;
        padding: 16px;
        overflow-x: hidden;
    }

    .admin-page-head {
        align-items: stretch;
    }

    .admin-head-actions {
        width: 100%;
    }

    .admin-page-head .button,
    .admin-form-actions .button {
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    .admin-two-col,
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .admin-product-row {
        grid-template-columns: minmax(220px, 1.6fr) minmax(100px, 0.9fr) minmax(110px, 1fr) minmax(90px, 0.8fr) minmax(80px, 0.7fr) minmax(110px, 0.9fr) minmax(90px, 0.8fr) minmax(260px, 1.6fr);
        min-width: 1180px;
    }

    .admin-row:not(.admin-product-row),
    .admin-badge-row {
        grid-template-columns: 1fr;
    }

    .admin-product-table {
        padding-bottom: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-panel {
        padding: 14px;
    }

    .featured-carousel-shell {
        grid-template-columns: 1fr;
    }

    .featured-carousel {
        grid-auto-columns: minmax(0, calc(100vw - 32px));
        gap: 14px;
    }

    .home-top-image-banner img {
        height: 54px;
    }

    .home-top-image-banner {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        min-height: 60px;
        padding-right: 12px;
    }

    .home-top-banner-motto {
        min-width: 0;
        font-size: clamp(11px, 3.15vw, 13px);
        line-height: 1.22;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .home-top-banner-button {
        grid-column: 1 / -1;
        width: calc(100% - 24px);
        min-height: 38px;
        margin: 0 12px 10px;
    }

    .home-large-banner-track {
        grid-auto-columns: calc(100vw - 32px);
        gap: 10px;
        padding: 0 16px 14px;
    }

    .home-large-banner-card img {
        aspect-ratio: 750 / 520;
    }

    .home-large-banner-copy {
        width: min(82%, 300px);
        padding: 18px;
    }

    .home-large-banner-copy strong {
        font-size: 24px;
    }

    .carousel-arrow {
        display: none;
    }

    .topnav {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 16px 10px;
    }

    .brand {
        text-align: center;
    }

    .topnav nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .topnav nav a,
    .nav-dropdown-trigger {
        width: 100%;
        min-height: 44px;
        padding: 11px 10px;
        border: 1px solid rgba(30, 143, 235, 0.12);
        background: #fff;
        line-height: 1.2;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }

    .header {
        padding: 8px 16px 20px;
    }

    .home-hero-header {
        padding-left: 0;
        padding-right: 0;
    }

    .section.home-featured-full-section {
        padding-left: 0;
        padding-right: 0;
    }

    .section.home-featured-full-section > .section-title,
    .section.home-featured-full-section > .muted {
        width: calc(100% - 32px);
    }

    .section.home-featured-full-section .featured-carousel-shell {
        grid-template-columns: 1fr;
    }

    .section.home-featured-full-section .featured-carousel {
        grid-auto-columns: minmax(0, calc(100vw - 32px));
        padding-left: 16px;
        padding-right: 16px;
    }

    .section.home-more-to-explore-section .featured-carousel {
        grid-auto-columns: minmax(0, calc(100vw - 32px));
    }

    .home-search-section {
        padding-left: 0;
        padding-right: 0;
    }

    .home-search-section .catalog-toolbar {
        width: calc(100% - 32px);
    }

    .glow-page {
        width: 100%;
        max-width: 100vw;
        padding: 28px 16px 52px;
        overflow-x: hidden;
    }

    .glow-hero {
        width: 100%;
        max-width: 100%;
        text-align: left;
        min-width: 0;
        overflow: visible;
    }

    .glow-hero h1,
    .routine-hero h1,
    .routine-detail-copy h1 {
        max-width: 100%;
        font-size: clamp(26px, 8vw, 30px);
        line-height: 1.12;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
    }

    .glow-hero p:not(.eyebrow) {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .routine-hero {
        width: 100%;
        max-width: 100%;
        padding-top: 42px;
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
        min-width: 0;
    }

    .routine-hero p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .glow-quiz-card,
    .glow-results {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 14px;
        padding: 16px;
        border-radius: 22px;
    }

    .glow-question {
        min-width: 0;
        max-width: 100%;
        padding: 14px;
    }

    .glow-quiz-shell,
    .glow-options,
    .glow-options label,
    .routine-filter-section,
    .routine-grid-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .glow-options {
        grid-template-columns: 1fr;
    }

    .glow-options span {
        grid-template-columns: 1fr;
    }

    .glow-result-grid {
        grid-template-columns: 1fr;
    }

    .section {
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .grid,
    .grid-filtered {
        grid-template-columns: 1fr;
    }

    .card {
        width: 100%;
        max-width: 100%;
        padding: 14px;
    }

    .thumb {
        aspect-ratio: 1 / 1;
    }

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

    .card-actions .button {
        min-height: 44px;
        padding-left: 8px;
        padding-right: 8px;
        white-space: normal;
    }

    .banner {
        margin-bottom: 30px;
    }

    .banner-content {
        align-items: stretch;
        padding: 22px 16px;
    }

.promo-popup-position-center,
.promo-popup-position-bottom_right,
.promo-popup-position-bottom_center {
    inset: auto 12px 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    padding: 0;
}

.promo-popup-position-center {
    inset: 0;
    padding: 12px;
}

.promo-popup-card,
.promo-popup-size-small,
.promo-popup-size-large {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(88vh, 720px);
    overflow-y: auto;
}

.promo-popup-media img {
    height: 210px;
    min-height: 0;
}

.promo-popup-content {
    padding: 24px 20px;
}

.promo-popup-content h2 {
    font-size: 24px;
}

.banner-content .button {
    width: 100%;
}

    .product-badge-grid {
        grid-template-columns: repeat(auto-fit, minmax(106px, 118px));
    }

    .catalog-filter-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .contact-whatsapp-inner {
        padding: 22px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-whatsapp-button,
    .contact-whatsapp-note {
        width: 100%;
        max-width: none;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px 40px;
    }

    .detail-gallery img {
        max-height: 78vh;
    }

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

    .detail-thumbs {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }

    .checkout {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .checkout-pane {
        padding: 16px;
    }

    .image-arranger {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .image-arranger-preview,
    .image-arranger-current {
        min-height: 240px;
    }

    .admin-glow-option-card .image-arranger-controls {
        grid-template-columns: 1fr;
    }

    .admin-glow-option-card .image-arranger-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-glow-option-card .image-arranger-file-button,
    .admin-glow-option-card .image-arranger-actions .button {
        width: 100%;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .badge-preview-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .badge-logo-uploader {
        grid-template-columns: 1fr;
    }

    .badge-logo-controls {
        justify-items: start;
    }
}

@media (max-width: 520px) {
    .topnav nav {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 16px 12px;
    }

    .admin-brand {
        margin-bottom: 12px;
    }

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

    .admin-menu a {
        min-height: 42px;
        padding: 9px 8px;
        font-size: 13px;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }

    .topnav nav a.glow-nav-link {
        min-height: 46px;
        padding: 12px 14px;
    }

    .card-actions,
    .phone-row {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 20px;
    }

    .home-large-banner-copy {
        width: calc(100% - 28px);
        padding: 16px;
    }

    .home-large-banner-copy strong {
        font-size: 21px;
    }

    .home-large-banner-eyebrow {
        font-size: 11px;
    }

    .promo-popup-position-center {
        padding: 10px;
    }

    .promo-popup-content {
        padding: 22px 18px;
    }

    .section.home-featured-full-section .featured-carousel,
    .section.home-more-to-explore-section .featured-carousel {
        grid-auto-columns: minmax(252px, calc(100vw - 32px));
        overflow-x: auto;
    }

    .section.home-featured-full-section .feature-card,
    .section.home-more-to-explore-section .feature-card {
        min-width: 0;
    }

    .promo-popup-media img {
        height: 180px;
    }

    .promo-popup-action,
    .promo-popup-code {
        width: 100%;
    }

    .promo-popup-code {
        justify-content: space-between;
    }

    .admin-main {
        padding: 14px;
    }

    .detail-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .detail-gallery-arrow-left {
        left: 8px;
    }

    .detail-gallery-arrow-right {
        right: 8px;
    }
}

@media (max-width: 768px) {
    .admin-shell,
    .admin-main,
    .admin-panel,
    .admin-form,
    .admin-glow-question-list,
    .admin-glow-question-editor,
    .admin-glow-option-grid,
    .admin-glow-option-card,
    .image-field-stack,
    .image-arranger,
    .image-arranger-controls {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .admin-shell,
    .admin-main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-help-card,
    .admin-help-card * {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-panel {
        overflow: hidden;
    }

    .admin-glow-option-card {
        overflow: hidden;
    }

    .admin-glow-option-card .image-arranger-controls {
        grid-template-columns: 1fr;
    }

    .admin-glow-option-card .image-arranger-actions,
    .image-arranger-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-glow-option-card .button,
    .image-arranger-actions .button {
        width: 100%;
    }
}
