@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
    --pink: #df4e92;
    --pink-strong: #d93687;
    --brown: #563028;
    --ink: #1b314f;
    --text: #2b2430;
    --muted: #6e7485;
    --mint: #dffdf4;
    --aqua: #40c3ce;
    --yellow: #ffd948;
    --paper: #fffefa;
    --line: #eadfd4;
    --dash: #df5b91;
    --shadow: 0 6px 18px rgba(77, 45, 33, .12);
    --shadow-soft: 0 16px 36px rgba(223, 78, 146, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #f6fbf2;
    font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

.store-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 9px 14px;
    background: var(--pink);
}

.store-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-nav a,
.store-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    color: var(--text);
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 0 rgba(84, 47, 38, .12);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.store-nav .top-social {
    width: 42px;
    padding: 0;
    border-radius: 50%;
}

.store-nav .active {
    color: #fff;
    background: var(--brown);
}

.store-brand {
    display: grid;
    justify-items: center;
    gap: 28px;
    min-height: 310px;
    padding: 28px 18px 26px;
    color: var(--ink);
    background: rgba(255, 254, 250, .96);
    border-bottom: 1px solid rgba(234, 223, 212, .72);
}

.brand-lockup {
    display: grid;
    grid-template-columns: 132px minmax(0, 380px);
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.brand-photo {
    width: 132px;
    height: 132px;
    object-fit: cover;
    object-position: center;
    border: 4px solid #fff6dc;
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(92, 55, 26, .18);
}

.brand-lockup h1 {
    max-width: 390px;
    color: var(--pink-strong);
    font-family: Fredoka, Nunito, sans-serif;
    font-size: 53px;
    font-weight: 700;
    line-height: .92;
}

.brand-lockup p {
    margin: 8px 0 0;
    color: #402b2c;
    font-size: 14px;
    font-weight: 900;
}

.brand-actions {
    display: flex;
    justify-content: center;
    gap: clamp(82px, 14vw, 190px);
    width: min(620px, 100%);
}

.brand-action {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 130px;
    text-align: center;
    color: #2f2a31;
    font-size: 14px;
    font-weight: 900;
}

.brand-action > span {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    border-radius: 50%;
}

.brand-action-files > span {
    background: var(--aqua);
}

.brand-action-cart > span {
    color: #5c4227;
    background: var(--yellow);
}

.brand-action svg {
    width: 25px;
    height: 25px;
}

#cartCount {
    position: absolute;
    right: -5px;
    top: -5px;
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    color: #fff;
    background: var(--pink-strong);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
}

.page,
.store-footer {
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 215, 79, .36), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(255, 89, 163, .22), transparent 26%),
        linear-gradient(rgba(233, 208, 190, .48) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 208, 190, .48) 1px, transparent 1px),
        linear-gradient(180deg, #fffaf0 0%, #f3fff9 100%);
    background-size: auto, auto, 70px 70px, 70px 70px, auto;
}

.page {
    min-height: 520px;
    padding: 26px 0 72px;
}

.product-section,
.cart-panel,
.account-panel {
    width: min(1160px, calc(100% - 34px));
    margin: 0 auto;
}

.mega-offer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 76px;
    margin: 0 0 27px;
    padding: 15px 20px;
    color: #322237;
    text-align: left;
    background: linear-gradient(105deg, #f75ba8 0%, #ff8e7b 48%, #ffda3f 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(246, 91, 168, .20);
}

.offer-icon {
    color: #332332;
}

.offer-icon svg {
    width: 27px;
    height: 27px;
}

.mega-offer strong,
.mega-offer small {
    display: block;
}

.mega-offer strong {
    font-size: clamp(18px, 2vw, 21px);
    font-weight: 900;
    line-height: 1.15;
}

.mega-offer small {
    margin-top: 4px;
    color: rgba(50, 34, 55, .72);
    font-size: 14px;
    font-weight: 900;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.launch-section {
    margin: 34px 0 38px;
}

.launch-heading {
    margin-bottom: 24px;
    color: #5a332d;
    text-align: center;
    font-family: Fredoka, Nunito, sans-serif;
    font-size: clamp(34px, 4vw, 41px);
    font-weight: 700;
    line-height: 1;
}

.launch-heading span {
    color: #ffc82f;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 11px;
    padding: 4px 10px;
    color: #6c5718;
    background: rgba(255, 246, 142, .72);
    border-radius: 999px 999px 999px 4px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.section-title-row h2 {
    color: var(--ink);
    font-family: Fredoka, Nunito, sans-serif;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.04;
}

.view-all {
    flex: 0 0 auto;
    padding: 13px 22px;
    color: #05736d;
    background: var(--mint);
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(64, 195, 206, .10);
    font-size: 15px;
    font-weight: 900;
}

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

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

.product-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    min-height: 478px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease;
}

.launch-card {
    min-height: 392px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(77, 45, 33, .16);
}

.product-card.is-hidden {
    display: none;
}

.product-media {
    position: relative;
    overflow: hidden;
    margin: 10px 10px 0;
    aspect-ratio: 1.16 / 1;
    background: #fff6fb;
    border: 2px dashed var(--dash);
    border-radius: 11px;
}

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

.product-media span {
    position: absolute;
    left: 13px;
    top: 13px;
    padding: 7px 12px;
    color: #7d5e19;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(42, 31, 24, .12);
    font-size: 12px;
    font-weight: 900;
}

.launch-card .product-media span {
    display: none;
}

.product-body {
    display: grid;
    place-items: start center;
    padding: 13px 16px 0;
    text-align: center;
}

.product-body strong {
    color: #2e2530;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.product-buy {
    display: grid;
    gap: 16px;
    padding: 12px 10px 12px;
    text-align: center;
}

.product-buy b {
    display: block;
    color: var(--pink-strong);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.product-buy button {
    width: 100%;
    min-height: 50px;
    color: #1f1a22;
    background: var(--yellow);
    border: 2px solid #2f2931;
    border-radius: 999px;
    box-shadow: 0 4px 0 #2f2931;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
}

.product-buy button:active,
.mega-offer:active {
    transform: translateY(2px);
}

.account-panel,
.cart-panel {
    padding: 20px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(86, 214, 198, .34);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(80, 184, 173, .12);
    backdrop-filter: blur(4px);
}

.account-panel {
    width: min(640px, calc(100% - 34px));
}

.account-access {
    display: grid;
    justify-items: center;
    padding: 6px 0 2px;
    text-align: center;
}

.account-access h1,
.cart-panel h1,
.account-panel .section-head h1 {
    max-width: 560px;
    color: #4b2f30;
    font-family: Fredoka, Nunito, sans-serif;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 400;
    line-height: 1.18;
}

.login-box {
    width: min(260px, 100%);
    margin: 18px auto 0;
    padding: 17px;
    text-align: left;
    background: #fff;
    border: 1px solid #edf1f3;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(52, 42, 69, .10);
}

.login-box label,
.checkout-box label,
.admin-card label {
    display: block;
    margin: 0 0 8px;
    color: #253b58;
    font-size: 13px;
    font-weight: 900;
}

.login-box input,
.checkout-box input,
.admin-card input,
.release-form select {
    width: 100%;
    min-height: 47px;
    padding: 10px 13px;
    color: #253b58;
    background: #fff;
    border: 1px solid #dfe9ef;
    border-radius: 14px;
    outline: none;
    font-weight: 800;
}

.login-box input::placeholder,
.checkout-box input::placeholder,
.admin-card input::placeholder {
    color: #a8b0bd;
}

.login-box input:focus,
.checkout-box input:focus,
.admin-card input:focus,
.release-form select:focus {
    border-color: rgba(223, 78, 146, .55);
    box-shadow: 0 0 0 4px rgba(223, 78, 146, .10);
}

.login-box button,
#checkoutButton,
.bulk-button,
.download-link,
.ghost-button,
.admin-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(105deg, #ff8646 0%, #f24f97 100%);
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

.login-box button,
#checkoutButton {
    width: 100%;
    margin-top: 13px;
}

.form-error {
    margin: 12px 0 0;
    color: #c22f4e;
    font-size: 13px;
    font-weight: 900;
}

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

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.45;
}

.ghost-button {
    color: var(--pink-strong);
    background: #fff;
    border: 2px solid var(--pink-strong);
}

.bulk-button {
    margin-bottom: 16px;
    background: var(--aqua);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.file-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #edf1f3;
    border-radius: 16px;
}

.file-card img {
    width: 68px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.file-card small {
    color: var(--muted);
}

.download-link {
    grid-column: 1 / -1;
    background: var(--pink-strong);
}

.cart-panel {
    width: min(760px, calc(100% - 34px));
}

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

.cart-item,
.cart-total {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf1f3;
    border-radius: 16px;
}

.cart-item img {
    width: 56px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item button {
    padding: 8px 11px;
    color: #b51d34;
    background: #ffe8ef;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

.cart-total {
    grid-template-columns: 1fr auto;
    margin-top: 12px;
    font-size: 20px;
    font-weight: 900;
}

.checkout-box {
    margin-top: 14px;
    padding: 16px;
    background: #fff;
    border: 1px dashed rgba(223, 78, 146, .4);
    border-radius: 18px;
}

#checkoutMessage {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 900;
}

.empty-state,
.notice {
    padding: 14px;
    color: #08756d;
    background: var(--mint);
    border-radius: 14px;
    font-weight: 900;
}

.store-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 16px 54px;
    text-align: center;
}

.store-footer strong {
    color: #148f87;
    font-size: 20px;
    font-weight: 900;
}

.store-footer span {
    color: #6d7589;
    font-weight: 900;
}

.admin-page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.admin-page h1,
.admin-page h2 {
    color: var(--ink);
    font-family: Fredoka, Nunito, sans-serif;
}

.admin-page .login-box {
    width: min(420px, 100%);
}

.admin-card {
    margin-top: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #edf1f3;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.admin-product {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #edf1f3;
    border-radius: 16px;
}

.admin-product img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.admin-row,
.release-form,
.admin-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-actions,
.admin-checks {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-fields .wide {
    grid-column: 1 / -1;
}

.admin-checks {
    margin: 12px 0;
}

.admin-checks label,
.admin-note p {
    margin: 0;
}

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

.admin-card input[type="checkbox"] {
    width: auto;
    min-height: 0;
    padding: 0;
}

.admin-card input[type="file"] {
    padding: 8px;
}

.product-create-form {
    display: grid;
    gap: 12px;
}

.admin-product-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-note {
    display: grid;
    gap: 6px;
    background: #effdf7;
    border-color: rgba(64, 195, 206, .34);
}

.admin-table {
    overflow: auto;
}

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

th,
td {
    padding: 10px;
    border-bottom: 1px solid #edf1f3;
    text-align: left;
    white-space: nowrap;
}

code {
    padding: 2px 5px;
    background: #f2f3f5;
    border-radius: 6px;
}

@media (max-width: 920px) {
    .brand-lockup {
        gap: 34px;
    }

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

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

    .launch-card {
        min-height: 360px;
    }

    .launch-card .product-buy button {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .store-topbar {
        min-height: 58px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-inline: 10px;
    }

    .store-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
    }

    .store-nav a,
    .store-nav button {
        min-height: 39px;
        padding: 0 13px;
        font-size: 13px;
    }

    .store-brand {
        gap: 22px;
        min-height: 292px;
        padding-top: 24px;
    }

    .brand-lockup {
        grid-template-columns: 104px minmax(0, 260px);
        gap: 22px;
    }

    .brand-photo {
        width: 104px;
        height: 104px;
        border-width: 4px;
    }

    .brand-lockup h1 {
        font-size: clamp(37px, 10vw, 45px);
    }

    .brand-actions {
        gap: 46px;
    }

    .page {
        padding-top: 24px;
    }

    .product-section,
    .cart-panel,
    .account-panel {
        width: min(100% - 22px, 1160px);
    }

    .mega-offer {
        min-height: 70px;
        padding: 13px 14px;
    }

    .section-title-row {
        align-items: start;
    }

    .section-title-row h2 {
        font-size: 31px;
    }

    .view-all {
        padding: 11px 16px;
        font-size: 14px;
    }

    .product-grid {
        gap: 12px;
    }

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

    .product-card {
        min-height: 388px;
        border-radius: 13px;
    }

    .product-media {
        margin: 8px 8px 0;
        aspect-ratio: .92 / 1;
    }

    .product-media span {
        left: 9px;
        top: 9px;
        padding: 6px 9px;
        font-size: 11px;
    }

    .product-body {
        padding: 10px 10px 0;
    }

    .product-body strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .product-buy {
        gap: 10px;
        padding: 9px 8px 10px;
    }

    .product-buy b {
        font-size: 17px;
    }

    .product-buy button {
        min-height: 43px;
        font-size: 14px;
        box-shadow: 0 3px 0 #2f2931;
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .cart-item span,
    .cart-item button {
        grid-column: 1 / -1;
    }

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

    .admin-product img {
        width: 74px;
    }
}

@media (max-width: 460px) {
    .brand-lockup {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .brand-photo {
        width: 76px;
        height: 76px;
    }

    .brand-actions {
        gap: 22px;
    }

    .brand-action {
        min-width: 112px;
        font-size: 13px;
    }

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

    .section-title-row {
        display: grid;
    }

    .view-all {
        justify-self: start;
    }

    .account-panel,
    .cart-panel {
        padding: 14px;
    }
}
