:root {
    --ink: #1d1b20;
    --muted: #746b72;
    --paper: #ffffff;
    --surface: #fbf7f4;
    --mist: #f1ece8;
    --line: #e4d8dc;
    --plum: #6f213f;
    --rose: #d85d8b;
    --teal: #1f6f68;
    --gold: #c59a3d;
    --danger: #a52f3d;
    --shadow: 0 24px 70px rgba(29, 27, 32, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.brand.centered {
    justify-content: center;
}

.brand-word {
    font-size: clamp(20px, 2.2vw, 30px);
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    overflow: hidden;
    background: var(--paper);
    border: 3px solid var(--plum);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(111, 33, 63, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.nav a:not(.cart-icon-link):hover {
    color: var(--plum);
}

.cart-icon-link {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: white;
    background: var(--plum);
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(111, 33, 63, 0.22);
}

.cart-icon-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-icon-link span {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    color: var(--plum);
    background: white;
    border: 2px solid var(--plum);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 5vw, 74px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(44px, 6vw, 86px) clamp(18px, 4vw, 56px) 28px;
}

.hero-copy h1,
.section-head h2,
.contact h2,
.detail-info h1,
.cart-page-head h1,
.panel h1,
.panel h2,
.login-box h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0;
    line-height: 1;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(52px, 8vw, 108px);
}

.hero-text {
    max-width: 620px;
    margin: 24px 0;
    color: var(--muted);
    font-size: clamp(17px, 1.8vw, 21px);
}

.hero-actions,
.price-row,
.item-actions,
.detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: white;
    background: var(--plum);
    box-shadow: 0 14px 30px rgba(111, 33, 63, 0.22);
}

.btn.ghost {
    color: var(--plum);
    background: white;
    border-color: var(--line);
}

.btn.light {
    color: var(--plum);
    background: white;
}

.btn.product-btn {
    width: 100%;
    color: white;
    background: var(--ink);
}

.btn.danger {
    color: white;
    background: var(--danger);
}

.btn.compact {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.hero-showcase {
    overflow: hidden;
    min-height: 340px;
    padding: 18px 0;
}

.hero-carousel {
    display: flex;
    gap: 14px;
    will-change: transform;
    transition: transform 560ms ease;
}

.floating-product,
.product-card,
.panel,
.login-box,
.cart-page-list,
.cart-summary,
.choice-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(29, 27, 32, 0.08);
}

.floating-product {
    flex: 0 0 clamp(130px, 28%, 190px);
    overflow: hidden;
    min-height: 300px;
    border-color: #eadde3;
    box-shadow: 0 18px 44px rgba(29, 27, 32, 0.1);
}

.floating-product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.promo-band {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px clamp(18px, 4vw, 56px);
    color: white;
    background: linear-gradient(135deg, var(--plum), #202126);
}

.promo-band .eyebrow {
    color: #ffd7e6;
}

.promo-band h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(23px, 2.8vw, 38px);
    line-height: 1.08;
}

.countdown {
    display: flex;
    gap: 10px;
    align-items: center;
}

.countdown span {
    display: grid;
    min-width: 66px;
    padding: 9px 10px;
    place-items: center;
    color: var(--plum);
    background: white;
    border-radius: 8px;
    font-weight: 900;
}

.countdown strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.section-head {
    padding: 28px clamp(18px, 4vw, 56px) 24px;
}

.section-head h2,
.contact h2 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.product-card {
    overflow: hidden;
}

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--mist);
}

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

.product-media img.active {
    display: block;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 10px;
    color: white;
    background: var(--teal);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--plum);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.product-info {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.product-info h3 {
    margin: 0;
    font-size: 20px;
}

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

.category,
.sizes {
    font-size: 13px;
    font-weight: 900;
}

.mini-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mini-swatches span {
    width: 20px;
    height: 20px;
    background: var(--swatch);
    border: 1px solid #d2c8cc;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px white;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

.price-row strong {
    color: var(--plum);
    font-size: 18px;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 clamp(18px, 4vw, 56px) 70px;
    padding: clamp(30px, 5vw, 54px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 4vw, 56px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(300px, 460px) minmax(320px, 520px);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px) clamp(18px, 4vw, 40px) 56px;
}

.detail-gallery,
.detail-info {
    min-width: 0;
}

.detail-main {
    position: sticky;
    top: 92px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 580px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-main img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-main img.active {
    display: block;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-thumbs img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.detail-thumbs img.active {
    border-color: var(--plum);
    outline: 3px solid rgba(216, 93, 139, 0.22);
}

.detail-info {
    display: grid;
    gap: 14px;
}

.back-link {
    color: var(--plum);
    font-weight: 900;
}

.detail-info h1 {
    font-size: clamp(30px, 3vw, 46px);
}

.detail-description {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.detail-price span {
    color: var(--muted);
    text-decoration: line-through;
}

.detail-price strong {
    color: var(--plum);
    font-size: 24px;
}

.choice-box {
    display: grid;
    gap: 13px;
    padding: 18px;
}

.choice-box label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
}

.swatch-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.swatch-field legend {
    margin-bottom: 8px;
    font-weight: 900;
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-swatch span {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: var(--swatch);
    border: 2px solid #d8cfd3;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px white;
}

.color-swatch input:checked + span {
    border-color: var(--plum);
    outline: 2px solid rgba(216, 93, 139, 0.28);
}

.color-swatch em {
    color: var(--muted);
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-note {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--plum);
    background: #fff0f5;
    border: 1px solid #f3c8d8;
    border-radius: 8px;
}

.cart-page {
    padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) 70px;
}

.cart-page-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.cart-page-head h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.cart-page-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 380px);
    gap: 22px;
    align-items: start;
}

.cart-page-list,
.cart-summary {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.cart-summary {
    position: sticky;
    top: 96px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-item-main {
    display: grid;
    gap: 4px;
}

.cart-item span,
.empty-cart {
    color: var(--muted);
}

.cart-item em {
    color: var(--plum);
    font-style: normal;
    font-weight: 900;
}

.cart-remove {
    min-height: 34px;
    padding: 8px 10px;
    color: var(--danger);
    background: white;
    border: 1px solid #efcbd1;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.cart-progress {
    margin: 0;
    padding: 12px;
    color: var(--plum);
    background: #fff0f5;
    border: 1px solid #f3c8d8;
    border-radius: 8px;
    font-weight: 900;
}

.cart-progress.complete {
    color: #1d6848;
    background: #eafff3;
    border-color: #bee9d0;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
}

.checkout-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-btn {
    color: white;
    background: var(--teal);
    box-shadow: 0 14px 30px rgba(31, 111, 104, 0.18);
}

.form-error {
    margin: 0;
    padding: 10px 12px;
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #efcbd1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.site-toast {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(560px, calc(100% - 28px));
    padding: 14px 16px;
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(29, 27, 32, 0.16);
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-toast strong {
    flex: 1;
}

.site-toast a {
    color: var(--plum);
    font-weight: 900;
    white-space: nowrap;
}

.site-toast button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #1d6848;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.admin-page {
    background: #f5f6f4;
}

.admin-topbar {
    position: static;
}

.login-box {
    width: min(440px, calc(100% - 32px));
    margin: 8vh auto;
    padding: 32px;
}

.login-box h1 {
    margin-top: 24px;
    text-align: center;
}

.hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    padding: 12px;
    color: var(--danger);
    background: #ffe8ec;
    border: 1px solid #f5c2cc;
    border-radius: 8px;
}

.admin-shell {
    padding: 28px clamp(18px, 4vw, 56px);
}

.admin-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    color: white;
    background: linear-gradient(135deg, var(--plum), var(--teal));
    border-radius: 8px;
}

.admin-hero .eyebrow,
.admin-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.admin-hero h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 4vw, 56px);
}

.admin-hero p {
    margin: 8px 0 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
}

.admin-stats article {
    display: grid;
    gap: 4px;
    min-width: 96px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
}

.admin-stats strong {
    font-size: 28px;
}

.admin-stats span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
    gap: 22px;
}

.settings-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

.settings-panel h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

.settings-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.settings-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.settings-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 900;
}

.settings-message.success {
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
}

.settings-message.error {
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #efcbd1;
}

.panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

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

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

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8cfd3;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(135deg, var(--plum) 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

input[type="color"] {
    padding: 4px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checks input {
    width: auto;
    min-height: auto;
}

.thumb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumb-row img {
    width: 74px;
    height: 92px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.admin-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-item img {
    width: 84px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-item strong,
.admin-item span,
.admin-item em {
    display: block;
}

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

.admin-item em {
    color: var(--teal);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .hero,
    .product-detail,
    .admin-layout,
    .cart-page-grid {
        grid-template-columns: 1fr;
    }

    .detail-main,
    .cart-summary {
        position: static;
    }

    .detail-gallery,
    .detail-info {
        width: min(100%, 620px);
        justify-self: center;
    }

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

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

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

    .settings-panel,
    .settings-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar,
    .contact,
    footer {
        flex-direction: column;
    }

    .topbar {
        align-items: center;
        position: static;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-word {
        font-size: clamp(19px, 6vw, 24px);
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        min-height: auto;
    }

    .hero-showcase,
    .product-grid,
    .form-grid,
    .admin-item,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .floating-product {
        min-height: auto;
        transform: none !important;
    }

    .floating-product img {
        height: 260px;
    }

    .detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail {
        padding-top: 18px;
    }

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

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

    .admin-item img {
        width: 100%;
        height: 230px;
    }

    .panel-head,
    .item-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .color-swatches {
        grid-template-columns: 1fr;
    }
}
