:root {
    --purple: #5a168e;
    --purple-dark: #351056;
    --purple-bright: #7b2bbd;
    --purple-strip: #d7b7ee;
    --purple-page: #fbf6ff;
    --purple-soft: #efe7f7;
    --lilac: #9b63d1;
    --ink: #20122c;
    --muted: #766983;
    --line: #e7dced;
    --bg: #fffafd;
    --white: #ffffff;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--white);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    width: 100%;
    background: var(--purple-page);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding-top: 0;
}

.header-compact .site-header {
    padding-top: 52px;
}

.top-strip {
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(18px, 3vw, 38px);
    background: var(--purple-strip);
    color: var(--purple);
    font-size: 13px;
    overflow: hidden;
    transition: min-height 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.top-strip p {
    margin: 0;
}

.header-compact .top-strip {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.header-compact .header-main {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.header-main {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 6px clamp(18px, 4vw, 58px);
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: min-height 180ms ease, height 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: min(92px, 28vw);
    border-radius: 14px;
    overflow: hidden;
    background: var(--purple-page);
    border: 1px solid rgba(90, 22, 142, 0.12);
    box-shadow: 0 8px 22px rgba(53, 16, 86, 0.08);
}

.brand img,
.admin-brand img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.moon-mark {
    width: clamp(34px, 4vw, 46px);
    height: clamp(34px, 4vw, 46px);
    object-fit: contain;
    opacity: 0.96;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
}

.header-action {
    appearance: none;
    border: 0;
    background: transparent;
    min-width: 76px;
    min-height: 48px;
    padding: 0;
    color: var(--purple);
    cursor: pointer;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1.1;
    position: relative;
}

.header-action svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-action img {
    width: 23px;
    height: 23px;
    object-fit: contain;
    filter: invert(18%) sepia(70%) saturate(2263%) hue-rotate(260deg) brightness(85%) contrast(93%);
}

.text-link,
.icon-button,
.primary-button,
.ghost-button,
.danger-button {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid var(--purple);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 700;
}

.text-link,
.icon-button,
.ghost-button {
    background: var(--white);
    color: var(--purple);
}

.primary-button {
    background: var(--purple);
    color: var(--white);
}

.primary-button:disabled {
    border-color: var(--line);
    background: #c9becf;
    cursor: not-allowed;
}

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

.sale-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-form {
    align-items: end;
}

.coupon-create-form {
    grid-template-columns: minmax(220px, 1.35fr) 92px 92px 96px minmax(210px, 1.1fr);
    gap: 18px 22px;
    align-items: stretch;
}

.coupon-create-form .coupon-code-field {
    grid-column: 1 / -1;
}

.coupon-create-form .coupon-value-field {
    grid-column: 1 / 2;
}

.coupon-create-form .coupon-type-choice {
    grid-column: 2 / 4;
}

.coupon-create-form .coupon-min-toggle {
    grid-column: 4 / 5;
}

.coupon-create-form .coupon-min-value {
    grid-column: 5 / 6;
}

.coupon-create-form .coupon-uses-field {
    grid-column: 1 / 2;
}

.coupon-create-form .coupon-unlimited-field {
    grid-column: 2 / 3;
}

.coupon-create-form .coupon-status-field {
    grid-column: 3 / 5;
}

.coupon-create-form .primary-button {
    grid-column: 5 / 6;
    min-height: 60px;
}

.coupon-choice {
    display: flex;
    gap: 16px;
    min-width: 0;
}

.coupon-choice > span,
.coupon-inline {
    color: var(--purple-dark);
    font-weight: 700;
}

.coupon-choice label,
.coupon-inline {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coupon-create-form label,
.coupon-create-form .coupon-choice label,
.coupon-create-form .coupon-inline {
    min-width: 0;
}

.coupon-create-form > label,
.coupon-create-form .coupon-choice label,
.coupon-create-form .coupon-inline {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 10px 12px;
    color: var(--purple-dark);
}

.coupon-create-form > label {
    display: flex;
    align-items: center;
}

.coupon-create-form > label > span,
.coupon-create-form > label:not(.coupon-code-field):not(.coupon-value-field):not(.coupon-uses-field):not(.coupon-min-value):not(.coupon-status-field) {
    font-size: 14px;
}

.coupon-create-form input,
.coupon-create-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
    font-size: 14px;
}

.coupon-create-form input::placeholder {
    color: var(--muted);
    opacity: 0.9;
}

.coupon-create-form .coupon-code-field input {
    text-transform: uppercase;
}

.coupon-create-form .coupon-type-choice label {
    flex: 1 1 0;
    justify-content: center;
}

.coupon-create-form .coupon-type-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.coupon-create-form .coupon-type-choice label:has(input:checked) {
    background: var(--purple-soft);
}

.coupon-create-form .coupon-min-toggle,
.coupon-create-form .coupon-unlimited-field {
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.15;
}

.coupon-form input[name="coupon_code"] {
    text-transform: uppercase;
}

.coupon-edit-form .coupon-choice {
    align-items: end;
}

.coupon-edit-form .coupon-choice label,
.coupon-edit-form .coupon-inline {
    justify-content: center;
    min-height: 54px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.coupon-edit-form .coupon-choice input,
.coupon-edit-form .coupon-inline input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.coupon-edit-form .coupon-choice label:hover,
.coupon-edit-form .coupon-inline:hover {
    border-color: var(--purple);
    background: #f3eafd;
    color: var(--purple-dark);
}

.coupon-edit-form .coupon-choice label:has(input:checked),
.coupon-edit-form .coupon-inline:has(input:checked) {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(90, 22, 142, 0.14);
}

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

.coupon-modal-actions form,
.coupon-modal-actions button {
    width: 100%;
}

.coupon-group {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

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

.coupon-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.coupon-card-actions form {
    margin: 0;
}

.coupon-card-actions .coupon-edit-button,
.coupon-status-button,
.coupon-delete-button {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.coupon-status-button,
.coupon-delete-button {
    border: 1px solid;
    cursor: pointer;
}

.coupon-status-button.is-inactive {
    border-color: #d64545;
    background: #ffe8e8;
    color: #a12b2b;
}

.coupon-status-button.is-active {
    border-color: #22a06b;
    background: #e8f8ef;
    color: #137a4d;
}

.coupon-delete-button {
    border-color: #d64545;
    background: #ffe8e8;
    color: #a12b2b;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--purple);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.instagram-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--purple);
    border-radius: 8px;
    background: var(--white);
}

.instagram-link img {
    width: 22px;
    height: 22px;
    filter: invert(18%) sepia(70%) saturate(2263%) hue-rotate(260deg) brightness(85%) contrast(93%);
}

.category-nav {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 5vw, 62px);
    padding: 0 18px;
    color: var(--purple);
    background: var(--purple-page);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.4px;
    position: relative;
    z-index: 90;
    box-shadow: 0 6px 18px rgba(90, 22, 142, 0.08);
}

.mobile-contact-bar {
    display: none;
}

.mobile-contact-link {
    min-height: 38px;
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.mobile-contact-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-contact-link img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter: invert(18%) sepia(70%) saturate(2263%) hue-rotate(260deg) brightness(85%) contrast(93%);
}

.header-compact .category-nav {
    position: fixed;
    inset: 0 0 auto;
}

.nav-menu {
    position: relative;
    padding: 16px 0;
    margin: -16px 0;
}

.nav-menu button {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 500;
    letter-spacing: inherit;
    cursor: pointer;
}

.nav-menu button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    display: inline-block;
    margin-left: 8px;
    transform: translateY(-2px) rotate(45deg);
}

.nav-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    width: max-content;
    max-width: calc(100vw - 32px);
    background: var(--purple-page);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(90, 22, 142, 0.13);
    padding: 8px;
    display: none;
    z-index: 10;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
    display: grid;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, max-content);
}

.nav-menu-panel a {
    padding: 11px 12px;
    border-radius: 6px;
}

.nav-menu-panel a:hover {
    background: var(--purple-soft);
}

main {
    width: min(80vw, 1500px);
    margin: 0 auto;
}

.video-showcase {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--purple-page);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.video-carousel {
    width: 100%;
    height: clamp(340px, 50vw, 680px);
    position: relative;
    overflow: hidden;
    background: var(--purple-soft);
}

.video-carousel.is-image-active {
    height: var(--active-banner-height, auto);
}

.video-carousel video,
.video-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 650ms ease;
    background: var(--purple-soft);
}

.video-carousel.is-image-active img {
    object-fit: contain;
}

.video-carousel video.is-active,
.video-carousel img.is-active {
    opacity: 1;
    z-index: 1;
}

.video-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid var(--purple);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--purple);
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    z-index: 2;
}

.video-prev {
    left: 24px;
}

.video-next {
    right: 24px;
}

.video-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.video-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(90, 22, 142, 0.35);
}

.video-dots span.is-active {
    background: var(--purple);
}

.catalog-heading {
    padding: 34px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.catalog-heading p {
    margin: 0 0 8px;
    color: var(--purple);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.catalog-heading h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    color: var(--purple);
    text-align: left;
}

.home-section {
    padding: 42px 0 18px;
}

.home-section + .home-section {
    padding-top: 54px;
}

.home-section-head {
    margin-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.home-section-head p {
    margin: 0 0 7px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.home-section-head h1,
.home-section-head h2 {
    margin: 0;
    color: var(--purple);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.home-section-accent {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: max(10vw, calc((100vw - 1500px) / 2));
    background: #fbf4ff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    justify-content: center;
    padding-bottom: 34px;
}

.home-section-action {
    display: flex;
    justify-content: center;
    padding-bottom: 18px;
}

.home-section-action .text-link {
    min-width: min(100%, 260px);
}

.catalog-cta {
    margin: 42px 0 72px;
    padding: 34px clamp(20px, 4vw, 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--purple-page);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 28px;
}

.catalog-cta h2 {
    margin: 0;
    color: var(--purple);
    font-size: clamp(26px, 3vw, 38px);
}

.catalog-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.catalog-cta .primary-button {
    grid-row: 1 / 3;
    grid-column: 2;
    white-space: nowrap;
}

.catalog-search {
    width: min(430px, 100%);
}

.catalog-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.search-box {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--purple);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 46px;
    align-items: center;
    background: var(--white);
    overflow: hidden;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0 16px;
    color: var(--purple);
    background: transparent;
    outline: 0;
}

.search-box input::placeholder {
    color: var(--purple);
    opacity: 0.85;
}

.search-box button {
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-box svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 30px;
    padding-bottom: 70px;
}

.product-grid.home-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    justify-content: center;
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;
    border-bottom: 1px solid #dcc8e8;
    padding-bottom: 18px;
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3e8fb;
    overflow: hidden;
}

.product-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.product-carousel img.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-button {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    border: 1px solid var(--purple);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--purple);
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    z-index: 2;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

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

.product-info {
    padding: 16px 6px 0;
    display: grid;
    grid-template-rows: 44px 28px 58px 64px 64px 38px;
    gap: 8px;
    justify-items: center;
    align-items: start;
    min-height: 348px;
    min-width: 0;
}

.product-code,
.price {
    margin: 0;
    color: var(--purple);
    font-weight: 800;
}

.product-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.product-info h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--purple-dark);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-info .price {
    font-size: 20px;
    line-height: 1;
    color: var(--purple);
    white-space: nowrap;
}

.chips,
.choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.option-line {
    display: grid;
    gap: 5px;
    justify-items: center;
    align-content: start;
    min-height: 64px;
    width: 100%;
    min-width: 0;
}

.option-line.is-empty {
    visibility: hidden;
}

.option-line strong {
    color: var(--purple-dark);
    font-size: 12px;
}

.chips span,
.choice-pills button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--purple);
    background: var(--white);
    font-size: 12px;
}

.choice-pills button {
    cursor: pointer;
    min-height: 30px;
}

.choice-pills button.is-selected {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.product-card .primary-button {
    height: 36px;
    min-height: 36px;
    width: min(100%, 220px);
    margin-top: 4px;
    font-size: 13px;
    align-self: end;
    padding: 0 12px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    width: 100%;
    padding: 34px clamp(18px, 5vw, 72px);
    background: var(--purple);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 22px;
}

.footer-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
}

.footer-brand img {
    width: 94px;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(32, 18, 44, 0.22);
}

.footer-brand strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
}

.footer-brand p,
.footer-copy {
    margin: 0;
    opacity: 0.82;
    font-size: 13px;
}

.footer-links {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    min-height: 74px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--white);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    transition: background 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.footer-links svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-copy {
    text-align: center;
    white-space: nowrap;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    background: rgba(32, 18, 44, 0.42);
    display: none;
    justify-content: flex-end;
    z-index: 160;
}

.cart-drawer.is-open {
    display: flex;
}

.order-success-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 18, 44, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.order-success-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.order-success-panel {
    width: min(92vw, 560px);
    border-radius: 8px;
    background: var(--white);
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(32, 18, 44, 0.34);
    transform: translateY(12px) scale(0.96);
    transition: transform 240ms ease;
}

.order-success-modal.is-visible .order-success-panel {
    transform: translateY(0) scale(1);
}

.order-success-panel strong {
    display: block;
    color: var(--purple);
    font-size: clamp(30px, 6vw, 52px);
    line-height: 1.05;
    font-weight: 900;
}

.order-success-panel span {
    display: block;
    margin-top: 14px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.order-success-note,
.order-success-detail {
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    max-width: 440px;
}

.order-success-note {
    color: var(--purple-dark);
    font-weight: 700;
}

.order-success-panel .primary-button {
    width: min(100%, 260px);
    margin: 22px auto 0;
    min-height: 44px;
}

.floating-cart {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 54px;
    height: 54px;
    border: 1px solid var(--purple);
    border-radius: 999px;
    background: var(--purple);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 50;
    box-shadow: 0 14px 35px rgba(49, 17, 81, 0.22);
}

.floating-cart svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-cart .cart-count {
    top: -4px;
    right: -4px;
    background: var(--white);
    color: var(--purple);
    border: 1px solid var(--purple);
}

.show-floating-cart .floating-cart {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cart-panel {
    width: min(380px, 100%);
    min-height: 100%;
    background: var(--white);
    padding: 16px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

.checkout-page {
    padding-bottom: 72px;
}

.checkout-heading {
    padding: 34px 0 24px;
}

.checkout-heading p {
    margin: 0 0 7px;
    color: var(--purple);
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-heading h1 {
    margin: 0;
    color: var(--purple);
    font-size: clamp(32px, 4vw, 48px);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}

.checkout-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.checkout-panel h2 {
    margin: 0;
    color: var(--purple-dark);
    font-size: 18px;
}

.checkout-panel label {
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-weight: 700;
}

.checkout-panel input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
}

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

.checkout-address-panel h2,
.checkout-address-panel .checkout-message,
.checkout-address-panel label:first-of-type,
.checkout-address-panel label:nth-of-type(5),
.checkout-address-panel label:nth-of-type(7) {
    grid-column: 1 / -1;
}

.checkout-summary {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 18px;
}

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

.checkout-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 96px 104px;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.checkout-product {
    min-width: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.checkout-product img {
    width: 70px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid var(--line);
    object-fit: cover;
    background: var(--purple-page);
}

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

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

.checkout-message {
    margin: 0;
    color: #a12b2b;
    font-size: 13px;
}

.checkout-message.is-ok {
    color: #287a3d;
}

.shipping-options {
    display: grid;
    gap: 8px;
}

.shipping-option {
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: var(--purple-page);
}

.shipping-option input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--purple);
}

.shipping-option small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.payment-placeholder {
    border: 1px dashed var(--purple);
    border-radius: 8px;
    padding: 14px;
    background: var(--purple-page);
    color: var(--purple-dark);
}

.payment-placeholder span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.total-panel div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.checkout-final-total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--purple);
    font-size: 18px;
}

.cart-head,
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-head h2 {
    margin: 0;
    font-size: 20px;
}

.cart-head .icon-button {
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 14px;
}

.cart-items {
    display: grid;
    align-content: start;
    gap: 9px;
    overflow: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
}

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

.cart-item strong {
    font-size: 13px;
    line-height: 1.18;
}

.cart-item span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.22;
    margin-top: 2px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-actions {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 4px;
    min-width: 68px;
}

.cart-qty-actions {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    justify-content: end;
    gap: 4px;
}

.cart-item-actions .ghost-button {
    min-height: 30px;
    min-width: 30px;
    border-radius: 7px;
    padding: 0;
    font-size: 13px;
    line-height: 1;
}

.cart-item-actions .cart-remove-button {
    min-width: 64px;
    padding: 0 8px;
    font-size: 12px;
}

.cart-footer {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    display: grid;
    gap: 9px;
}

.cart-coupon {
    display: grid;
    gap: 5px;
}

.cart-coupon label {
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
}

.coupon-apply-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    min-height: 34px;
    border: 1px solid var(--purple);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.coupon-apply-row input {
    min-width: 0;
    border: 0;
    padding: 0 10px;
    color: var(--purple);
    background: transparent;
    outline: 0;
    text-transform: uppercase;
    font-size: 12px;
}

.coupon-apply-row input::placeholder {
    color: var(--purple);
    opacity: 0.65;
}

.coupon-apply-row .ghost-button {
    min-height: 100%;
    border: 0;
    border-left: 1px solid var(--purple);
    border-radius: 0;
    background: var(--purple);
    color: var(--white);
    padding: 0 8px;
    font-size: 12px;
}

.cart-coupon-message {
    min-height: 14px;
    margin: 0;
    color: var(--danger);
    font-size: 10px;
}

.cart-coupon-message.is-ok {
    color: #188038;
}

.cart-subtotal span,
.cart-subtotal strong {
    color: var(--muted);
    font-size: 12px;
}

.cart-discount strong {
    color: #188038;
}

.cart-total {
    font-size: 13px;
}

.cart-total strong {
    font-size: 13px;
}

.cart-footer > .primary-button,
.cart-footer > .ghost-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.admin-body {
    background: #fbf7ff;
}

.admin-header {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logout {
    margin-left: auto;
}

.admin-brand {
    width: 130px;
    flex: 0 0 auto;
}

.admin-header h1,
.admin-header p {
    margin: 0;
}

.admin-header p {
    color: var(--muted);
    margin-top: 6px;
}

.admin-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.admin-section,
.admin-message,
.admin-product {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

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

.admin-pill {
    border: 1px solid var(--purple);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--purple);
    font-weight: 800;
    background: var(--purple-soft);
}

.sales-status-filter {
    margin-left: auto;
    display: grid;
    gap: 5px;
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 800;
}

.sales-status-filter select {
    min-height: 38px;
    min-width: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    padding: 0 12px;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
}

.admin-dashboard-card {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.admin-dashboard-card strong {
    color: var(--purple-dark);
    font-size: 18px;
}

.admin-dashboard-card span {
    color: var(--muted);
    font-weight: 700;
}

.admin-dashboard-card.is-active {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.admin-panel {
    display: none;
}

.admin-panel.is-active {
    display: block;
}

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

.field-with-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
}

.field-with-button .ghost-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.customer-results {
    display: grid;
    gap: 6px;
}

.customer-result {
    justify-content: flex-start;
    text-align: left;
}

.payment-badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    text-align: center;
    font-weight: 800;
}

.payment-pago {
    border-color: #22a06b;
    color: #137a4d;
    background: #e8f8ef;
}

.payment-parcial {
    border-color: #d8a100;
    color: #8a6400;
    background: #fff7d6;
}

.payment-pendente {
    border-color: #d64545;
    color: #a12b2b;
    background: #ffe8e8;
}

.installment-dates {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.installment-dates label {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--purple-soft);
}

.admin-section h2 {
    margin: 0 0 16px;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-section-head h2 {
    margin: 0;
}

.admin-search {
    margin-left: auto;
    width: min(360px, 100%);
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-weight: 700;
}

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

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: var(--white);
    color: var(--ink);
}

.admin-form .full,
.admin-choice-group,
.product-image-crop,
.current-images,
.flag-group,
.admin-form button {
    grid-column: 1 / -1;
}

.admin-choice-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    color: var(--purple-dark);
}

.admin-choice-group strong {
    width: 100%;
}

.admin-choice-group label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.color-size-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--purple-soft);
}

.color-size-row input[type="text"],
.color-size-row input:not([type]),
.color-size-row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--white);
}

.color-size-row .ghost-button,
.js-add-variant {
    min-height: 38px;
}

.color-size-row .ghost-button {
    grid-column: auto;
}

.current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--purple-dark);
}

.current-images strong {
    width: 100%;
}

.current-image-item {
    width: 126px;
    display: grid;
    gap: 6px;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--purple-soft);
    font-size: 12px;
    text-align: center;
}

.current-image-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--white);
}

.current-image-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.current-image-item small {
    color: var(--muted);
}

.product-image-crop {
    display: grid;
    gap: 12px;
}

.crop-workspace {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 14px;
    align-items: center;
}

.crop-workspace[hidden] {
    display: none;
}

.crop-workspace canvas {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--purple-soft);
    cursor: grab;
    display: block;
    touch-action: none;
}

.crop-workspace canvas:active {
    cursor: grabbing;
}

.crop-controls {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.crop-controls label {
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-weight: 700;
}

.crop-staged {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crop-staged:empty {
    display: none;
}

.crop-staged span {
    width: 92px;
    display: grid;
    gap: 5px;
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.crop-staged img {
    width: 92px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    background: var(--purple-soft);
}

.crop-add-button {
    justify-self: start;
}

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

.banner-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.admin-banner-section {
    align-self: start;
}

.banner-preview {
    aspect-ratio: 16 / 9;
    background: var(--purple-soft);
    border-radius: 8px;
    overflow: hidden;
}

.banner-preview img,
.banner-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-row label {
    display: grid;
    gap: 6px;
    color: var(--purple-dark);
    font-weight: 700;
}

.banner-row > span {
    text-transform: capitalize;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.banner-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}

.flag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.home-block-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: grid;
    gap: 14px;
}

.home-block-form h3 {
    margin: 0;
    color: var(--purple-dark);
}

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

.toggle-row {
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--purple-dark);
    font-weight: 700;
    background: var(--white);
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.toggle-row-name {
    min-width: 0;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.toggle-row-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.toggle-row-order small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.home-order-input {
    width: 70px;
    height: 32px;
    min-height: 30px;
    border: 1px solid #c6b3d9;
    border-radius: 6px;
    padding: 0 8px;
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
    font-weight: 700;
    color: var(--purple-dark);
    background: #fff;
}

.home-order-input::-webkit-outer-spin-button,
.home-order-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.inline-form {
    display: flex;
    gap: 10px;
}

.banner-top-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr);
    gap: 18px;
    align-items: start;
    margin-top: 16px;
}

.banner-card,
.home-block-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 16px;
}

.banners-panel {
    align-self: start;
}

.banner-card {
    order: 1;
}

.home-block-card {
    order: 2;
}

.banner-card h2,
.home-block-card h2 {
    margin: 0 0 14px;
    color: var(--purple-dark);
    font-size: 24px;
}

.banner-upload-form {
    margin: 0;
    grid-template-columns: 1fr;
    align-self: start;
}

.banner-top-grid .home-block-form {
    padding: 0;
    border: 0;
    background: transparent;
}

.banner-top-grid .home-block-options {
    grid-template-columns: 1fr;
    gap: 8px;
}

.banner-top-grid .toggle-row {
    min-height: 48px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
}

.banner-top-grid .toggle-row-name {
    white-space: normal;
    overflow-wrap: anywhere;
}

.banner-card .banner-list {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .banner-top-grid {
        grid-template-columns: 1fr;
    }

    .banner-card,
    .home-block-card {
        order: initial;
    }
}

.admin-list,
.admin-products {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.admin-row,
.admin-product summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-product summary {
    cursor: pointer;
    font-weight: 800;
}

.admin-product small,
.admin-product-card small {
    color: var(--muted);
}

.admin-product .product-form {
    margin-top: 18px;
}

.admin-product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

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

.admin-product-thumb {
    aspect-ratio: 1 / 1;
    background: var(--purple-soft);
    border-radius: 8px;
    overflow: hidden;
}

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

.admin-product-preview {
    display: grid;
    gap: 6px;
    text-align: center;
}

.admin-product-preview strong {
    color: var(--purple-dark);
}

.admin-customer-summary {
    min-height: 150px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-customer-summary strong {
    color: var(--purple-dark);
    font-size: 18px;
}

.admin-customer-summary .primary-button {
    align-self: end;
    margin-top: auto;
}

.admin-product-card .product-form {
    margin-top: 18px;
}

.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(32, 18, 44, 0.48);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 60;
}

.admin-modal.is-open {
    display: flex;
}

.admin-modal-panel {
    width: min(940px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 22px;
    box-shadow: 0 28px 70px rgba(32, 18, 44, 0.25);
}

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

.admin-modal-head h3 {
    margin: 0;
    color: var(--purple-dark);
    font-size: 24px;
}

.sale-head-status {
    margin-left: auto;
    display: grid;
    gap: 0;
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 800;
}

.sale-head-status select {
    min-width: 190px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--purple-dark);
    padding: 0 12px;
    font-weight: 800;
}

.sales-list {
    display: grid;
    gap: 10px;
}

.sales-group {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sales-group + .sales-group {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.sales-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sales-group-head h3 {
    margin: 0;
    color: var(--purple-dark);
}

.sale-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--white);
}

.sale-card-summary {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(210px, 0.65fr) minmax(260px, 1fr) minmax(420px, 1.25fr);
    gap: 14px;
    align-items: center;
}

.sale-card-summary strong {
    color: var(--purple-dark);
}

.sale-card-info,
.sale-card-shipping {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.sale-card-info span,
.sale-card-info small,
.sale-card-shipping small {
    color: var(--muted);
}

.sale-card-actions {
    display: grid;
    grid-template-columns: minmax(150px, auto) 220px 200px;
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.sale-card-actions > .primary-button {
    width: 200px;
    min-height: 46px;
    justify-content: center;
    font-size: 16px;
}

.shipping-label-actions,
.shipping-admin-box {
    display: grid;
    gap: 8px;
}

.shipping-label-actions {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
    align-items: center;
    justify-content: end;
}

.shipping-label-message {
    color: var(--muted);
    font-size: 12px;
}

.shipping-admin-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--purple-page);
}

.sale-status-form {
    margin: 0;
    justify-self: end;
    width: 220px;
    max-width: 100%;
}

.sale-status-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 30px 0 14px;
    color: var(--purple-dark);
    background: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.sale-status-aguardando_confirmacao select {
    border-color: #7b2bbd;
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.sale-status-em_separacao select {
    border-color: #3483fa;
    background: #e8f1ff;
    color: #1757a6;
}

.sale-status-embalado select {
    border-color: #9b63d1;
    background: #f2eafd;
    color: #5a168e;
}

.sale-status-despachado select {
    border-color: #d8a100;
    background: #fff7d6;
    color: #8a6400;
}

.sale-status-entregue select {
    border-color: #22a06b;
    background: #e8f8ef;
    color: #137a4d;
}

.sale-status-recusada select {
    border-color: #d64545;
    background: #ffe8e8;
    color: #a12b2b;
}

.sale-modal-panel {
    width: min(1080px, 100%);
}

.sale-items-table {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.sale-items-table > strong {
    color: var(--purple-dark);
}

.sale-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(110px, .7fr) minmax(110px, .6fr) minmax(90px, .5fr) minmax(140px, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--purple-soft);
}

.sale-item-row input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--white);
}

.login-page {
    min-height: 100vh;
    width: min(420px, calc(100% - 32px));
    display: grid;
    place-items: center;
}

.login-card {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    display: grid;
    gap: 16px;
    box-shadow: 0 24px 70px rgba(49, 17, 81, 0.12);
}

.login-card img {
    width: 150px;
    justify-self: center;
}

.login-card h1 {
    margin: 0;
    text-align: center;
    color: var(--purple-dark);
}

.login-card label {
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-weight: 700;
}

.login-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
}

@media (max-width: 1180px) {
    main {
        width: min(calc(100% - 32px), 980px);
    }

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

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .header-main {
        grid-template-columns: auto 1fr;
        gap: 12px;
        justify-items: initial;
        text-align: left;
        padding: 7px 12px;
        min-height: 62px;
    }

    .header-actions {
        justify-content: flex-end;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .brand {
        width: 82px;
    }

    .moon-mark {
        display: none;
    }

    .header-action {
        min-width: auto;
        min-height: 40px;
        font-size: 11px;
    }

    .header-action.js-support-link,
    .header-action.instagram-action {
        display: none;
    }

    .header-action svg,
    .header-action img {
        width: 21px;
        height: 21px;
    }

    .cart-count {
        right: 4px;
    }

    .category-nav {
        min-height: 46px;
        flex-wrap: nowrap;
        gap: clamp(20px, 6vw, 42px);
        padding-inline: 10px;
        font-size: 14px;
        letter-spacing: .8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-contact-bar {
        min-height: 40px;
        padding: 0 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .header-compact .mobile-contact-bar {
        display: none;
    }

    .catalog-heading,
    .admin-section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding-top: 28px;
    }

    .catalog-heading h1 {
        font-size: 34px;
    }

    .home-section {
        padding-top: 32px;
    }

    .home-section + .home-section {
        padding-top: 40px;
    }

    .home-section-head {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .home-section-head .text-link {
        width: 100%;
    }

    .home-section-accent {
        padding-inline: 16px;
    }

    .catalog-cta {
        margin: 32px 0 50px;
        grid-template-columns: 1fr;
    }

    .catalog-cta .primary-button {
        grid-row: auto;
        grid-column: auto;
        width: 100%;
    }

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

    .checkout-summary {
        position: static;
    }

    .checkout-address-panel {
        grid-template-columns: 1fr;
    }

    .checkout-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .checkout-item > span:nth-of-type(2),
    .checkout-item > strong {
        text-align: right;
    }

    .checkout-product {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .checkout-product img {
        width: 58px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        justify-items: center;
    }

    .footer-links {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-copy {
        text-align: center;
    }

    .catalog-search {
        width: 100%;
    }

    .floating-cart {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }

    .floating-cart svg {
        width: 21px;
        height: 21px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 24px;
    }

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

    .product-info {
        padding-top: 12px;
        grid-template-rows: 40px 24px 54px 58px 58px 36px;
        gap: 7px;
        min-height: 316px;
    }

    .product-info h2 {
        font-size: 14px;
    }

    .product-info p {
        font-size: 12px;
        line-height: 1.35;
    }

    .product-info .price {
        font-size: 17px;
    }

    .option-line {
        min-height: 58px;
    }

    .chips,
    .choice-pills {
        gap: 5px;
    }

    .chips span,
    .choice-pills button,
    .color-carousel button {
        padding: 4px 7px;
        font-size: 11px;
    }

    .color-carousel {
        width: 100%;
    }

    .product-card .primary-button {
        min-height: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }

    .badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .admin-layout,
    .admin-form,
    .product-form {
        grid-template-columns: 1fr;
    }

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

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

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

    .inline-form,
    .admin-row,
    .banner-row {
        align-items: stretch;
        flex-direction: column;
    }

    .sale-card-summary,
    .sale-item-row {
        grid-template-columns: 1fr;
    }

    .sale-card-actions {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .sale-card-actions > .primary-button,
    .sale-status-form {
        width: 100%;
    }

    .shipping-label-actions {
        justify-content: stretch;
    }

    .crop-workspace {
        grid-template-columns: 1fr;
    }

    .banner-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

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

    main {
        width: min(calc(100% - 24px), 1500px);
    }

    .header-action span {
        font-size: 10px;
    }

    .catalog-heading h1 {
        font-size: 31px;
    }

    .search-box {
        min-height: 44px;
    }

    .search-box input {
        padding-inline: 12px;
        font-size: 15px;
    }

    .product-info {
        grid-template-rows: 38px 22px 50px 56px 56px 34px;
        min-height: 300px;
    }

    .product-info h2 {
        font-size: 13px;
    }

    .product-info .price {
        font-size: 16px;
    }
}

/* Carrossel de Cores */
.color-carousel {
    display: flex;
    align-items: center;
    gap: 5px;
    width: min(100%, 210px);
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.color-carousel-track {
    display: flex;
    gap: 6px;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    scroll-behavior: smooth;
}

.color-carousel-track::-webkit-scrollbar {
    display: none;
}

.color-carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.color-carousel button {
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--purple);
    background: var(--white);
    font-size: 12px;
    cursor: pointer;
    min-height: 30px;
    transition: all 180ms ease;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-carousel button:hover {
    border-color: var(--purple-bright);
}

.color-carousel button.is-selected {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.color-carousel-nav {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--purple);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 180ms ease, border-color 180ms ease;
}

.color-carousel-nav:hover {
    opacity: 1;
    border-color: var(--purple-bright);
}

/* Modal de Imagem do Produto */
.product-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(32, 18, 44, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 28px;
    opacity: 0;
    transition: opacity 300ms ease;
    overflow: hidden;
}

.product-image-modal.is-open {
    display: flex;
    opacity: 1;
}

.product-image-modal-content {
    background: var(--white);
    border-radius: 8px;
    width: min(calc(100vw - 56px), 1180px);
    min-width: 0;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 78px minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 28px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(49, 17, 81, 0.35);
    transform: scale(0.9);
    transition: transform 300ms ease;
}

.product-image-modal.is-open .product-image-modal-content {
    transform: scale(1);
}

.product-image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--white);
    color: var(--purple);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 180ms ease;
}

.product-image-modal-close:hover {
    transform: scale(1.1);
}

.product-image-modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background: #fff;
    overflow: hidden;
    align-self: start;
    min-width: 0;
}

.product-image-modal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: none;
    background: var(--purple);
    color: var(--white);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.product-image-modal.has-promotion .product-image-modal-badge {
    display: inline-flex;
}

.product-image-modal-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms ease;
    cursor: pointer;
    z-index: 1;
}

.product-image-modal-gallery img.is-active {
    opacity: 1;
}

.product-image-modal-nav {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    border: 1px solid var(--purple);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--purple);
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(49, 17, 81, 0.16);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-image-modal-nav:hover {
    background: var(--white);
    border-color: var(--purple-bright);
}

.product-image-modal-nav.prev {
    left: 14px;
}

.product-image-modal-nav.next {
    right: 14px;
}

.product-image-modal-thumbnails {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    max-height: min(76vh, 640px);
    overflow-y: auto;
}

.product-image-modal-thumbnails button {
    width: 70px;
    height: 70px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    padding: 0;
    transition: all 180ms ease;
    overflow: hidden;
}

.product-image-modal-thumbnails button.is-active {
    border-color: #3483fa;
    box-shadow: 0 0 0 1px #3483fa;
}

.product-image-modal-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-modal.has-single-image .product-image-modal-nav {
    display: none;
}

.product-image-modal-info {
    padding: 34px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.product-image-modal-info .product-image-modal-meta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.product-image-modal-info h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.22;
    font-weight: 800;
    color: var(--purple-dark);
}

.product-image-modal-info .price {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    justify-self: start;
}

.product-image-modal-info .description {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.product-image-modal-info .colors-section,
.product-image-modal-info .sizes-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.product-image-modal-info strong {
    color: var(--purple-dark);
    font-size: 14px;
}

.product-image-modal-info .choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden;
}

.product-image-modal-info .color-carousel {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 6px;
    justify-content: stretch;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.product-image-modal-info .modal-choice-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-image-modal-info .color-carousel-track {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-image-modal-info .color-carousel-nav {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-color: var(--purple);
    color: var(--purple);
    background: var(--white);
    font-size: 17px;
    opacity: 1;
    z-index: 2;
}

.product-image-modal-info .choice-pills button {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    min-height: 44px;
    color: var(--ink);
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: all 180ms ease;
    max-width: 140px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-image-modal-info .choice-pills button:hover {
    border-color: var(--purple-bright);
}

.product-image-modal-info .choice-pills button.is-selected {
    background: var(--white);
    border-color: #3483fa;
    color: #3483fa;
    box-shadow: 0 0 0 1px #3483fa;
}

.product-image-modal-info .primary-button {
    justify-self: stretch;
    margin-top: 0;
    width: 100%;
    min-height: 52px;
    font-size: 17px;
    background: #3483fa;
    border-color: #3483fa;
}

@media (max-width: 900px) {
    .sale-head-status {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .sale-head-status select {
        width: 100%;
    }

    .product-image-modal-content {
        max-width: 95vw;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .product-image-modal-thumbnails {
        order: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }

    .product-image-modal-gallery {
        order: 1;
    }

    .product-image-modal-info {
        order: 3;
    }

    .product-image-modal-info {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .product-image-modal-info .price {
        justify-self: start;
    }

    .product-image-modal-info h2 {
        font-size: 21px;
    }

    .product-image-modal-info .price {
        font-size: 28px;
    }
}

.admin-form.coupon-create-form {
    grid-template-columns: 112px minmax(220px, 1fr) minmax(160px, 0.72fr) minmax(160px, 0.72fr) auto;
    gap: 14px;
    align-items: end;
}

.admin-form.coupon-create-form > label {
    display: grid;
    gap: 7px;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--purple-dark);
    font-size: 14px;
    font-weight: 800;
}

.admin-form.coupon-create-form input,
.admin-form.coupon-create-form select {
    font-size: 14px;
    min-height: 52px;
}

.coupon-form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.coupon-form input[type="number"]::-webkit-outer-spin-button,
.coupon-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.coupon-form .js-coupon-minimum:disabled {
    background: #f3eef7;
    color: var(--muted);
    border-color: var(--line);
    cursor: not-allowed;
    opacity: 1;
}

.coupon-form .js-coupon-minimum:disabled::placeholder {
    color: #9b8ea8;
}

.admin-form.coupon-create-form input[type="checkbox"],
.admin-form.coupon-create-form input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-form.coupon-create-form .coupon-code-field {
    grid-column: 1 / 3;
}

.admin-form.coupon-create-form .coupon-value-field {
    grid-column: 1 / 3;
    grid-row: 2;
}

.admin-form.coupon-create-form .coupon-uses-field {
    grid-column: 3;
    grid-row: 2;
}

.admin-form.coupon-create-form .coupon-type-choice {
    grid-column: 3 / 6;
    grid-row: 1;
}

.admin-form.coupon-create-form .coupon-min-toggle {
    grid-column: 1;
    grid-row: 3;
}

.admin-form.coupon-create-form .coupon-min-value {
    grid-column: 2 / 4;
    grid-row: 3;
}

.admin-form.coupon-create-form .coupon-unlimited-field {
    grid-column: 4;
    grid-row: 2;
}

.admin-form.coupon-create-form .coupon-status-field {
    grid-column: 5;
    grid-row: 2;
}

.admin-form.coupon-create-form .primary-button {
    grid-column: 5;
    grid-row: 3;
    min-height: 52px;
    width: 112px;
    padding: 0 10px;
    align-self: end;
    justify-self: end;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
}

.admin-form.coupon-create-form .coupon-type-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-self: end;
}

.admin-form.coupon-create-form .coupon-type-choice label {
    justify-content: center;
    min-height: 52px;
    padding: 0 12px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.admin-form.coupon-create-form .coupon-type-choice label:has(input:checked) {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
}

.admin-form.coupon-create-form .coupon-min-toggle,
.admin-form.coupon-create-form .coupon-unlimited-field {
    justify-content: center;
    text-align: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--purple-dark);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.admin-form.coupon-create-form .coupon-min-toggle {
    width: 112px;
    padding: 0 8px;
}

.admin-form.coupon-create-form .coupon-min-toggle:has(input:checked),
.admin-form.coupon-create-form .coupon-unlimited-field:has(input:checked) {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(90, 22, 142, 0.18);
}

@media (max-width: 980px) {
    .admin-form.coupon-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form.coupon-create-form > *,
    .admin-form.coupon-create-form .coupon-code-field,
    .admin-form.coupon-create-form .coupon-value-field,
    .admin-form.coupon-create-form .coupon-type-choice,
    .admin-form.coupon-create-form .coupon-min-toggle,
    .admin-form.coupon-create-form .coupon-min-value,
    .admin-form.coupon-create-form .coupon-uses-field,
    .admin-form.coupon-create-form .coupon-unlimited-field,
    .admin-form.coupon-create-form .coupon-status-field,
    .admin-form.coupon-create-form .primary-button {
        grid-column: auto;
        grid-row: auto;
    }

    .admin-form.coupon-create-form .coupon-code-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .admin-form.coupon-create-form {
        grid-template-columns: 1fr;
    }

    .admin-form.coupon-create-form .coupon-code-field {
        grid-column: auto;
    }
}

.customer-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(34px, 6vw, 70px) 0;
}

.customer-heading {
    margin-bottom: 26px;
}

.customer-heading p,
.account-panel-head p {
    margin: 0 0 6px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.customer-heading h1,
.account-panel-head h2 {
    margin: 0;
    color: var(--purple);
}

.customer-heading h1 {
    font-size: clamp(30px, 5vw, 48px);
}

.customer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.account-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 28px);
}

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

.account-panel-head span {
    color: var(--purple);
    font-weight: 800;
    white-space: nowrap;
}

.account-message {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #d64545;
    border-radius: 8px;
    color: #b42318;
    background: #fff8f8;
}

.account-message.is-ok {
    border-color: #22a06b;
    color: #116d47;
    background: #f4fff9;
}

.customer-orders {
    display: grid;
    gap: 14px;
}

.customer-order-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--bg);
}

.customer-order-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    color: var(--purple-dark);
}

.customer-order-summary strong {
    color: var(--purple);
}

.customer-order-summary small,
.customer-order-items small,
.customer-order-meta dt,
.empty-account p,
.account-form small {
    color: var(--muted);
}

.customer-order-summary span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.customer-order-items {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.customer-order-items p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.customer-order-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.customer-order-meta dt {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-order-meta dd {
    margin: 2px 0 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.empty-account {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.empty-account p {
    margin: 0;
}

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

.account-form label {
    display: grid;
    gap: 7px;
    color: var(--purple-dark);
    font-size: 13px;
    font-weight: 800;
}

.account-form input,
.account-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--white);
}

.account-form input:disabled {
    background: var(--purple-page);
    color: var(--muted);
}

.account-form .checkout-message,
.account-form .primary-button {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .customer-layout,
    .account-form,
    .customer-order-summary,
    .customer-order-meta {
        grid-template-columns: 1fr;
    }

    .customer-order-items p {
        display: grid;
    }
}

.admin-debug-grid {
    display: grid;
    gap: 18px;
}

.admin-debug-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 18px;
}

.admin-debug-grid h2 {
    margin: 0 0 12px;
    color: var(--purple);
}

.admin-debug-grid pre {
    max-height: 520px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #160d20;
    color: #f8efff;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.sys-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #1f2937;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: .2s ease;
}

.sys-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sys-confirm {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: grid;
    place-items: center;
    z-index: 9998;
}

.sys-confirm-box {
    background: #fff;
    border-radius: 8px;
    width: min(420px, calc(100vw - 24px));
    padding: 16px;
}

.sys-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.nav-menu.is-open .nav-menu-panel {
    display: grid;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, max-content);
}

.home-category-rail {
    display: none;
}

@media (max-width: 900px) {
    .category-nav {
        overflow: visible;
        position: relative;
        z-index: 300;
    }

    .nav-menu {
        position: static;
    }

    .nav-menu:hover .nav-menu-panel,
    .nav-menu:focus-within .nav-menu-panel {
        display: none;
    }

    .nav-menu.is-open .nav-menu-panel {
        display: grid;
        grid-template-rows: auto;
        grid-auto-flow: row;
        grid-auto-columns: initial;
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        width: min(92vw, 360px);
        max-height: 55vh;
        overflow-y: auto;
        z-index: 120;
    }

    .home-section {
        display: block;
    }

    .home-category-rail {
        display: none;
    }

    .home-product-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 0 8px 14px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    .home-product-grid .product-card {
        flex: 0 0 calc((100% - 24px) / 4);
        min-width: 78px;
        scroll-snap-align: start;
        border-bottom: 0;
        padding-bottom: 6px;
        align-self: start;
        display: flex;
        flex-direction: column;
        grid-template-rows: none;
        height: auto;
    }

    .home-product-grid .product-info {
        gap: 4px;
        padding-top: 6px;
        min-height: 0;
        display: block;
        height: auto;
    }

    .home-product-grid .product-info h2 {
        font-size: 12px;
        line-height: 1.2;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 28px;
    }

    .home-product-grid .product-info .price {
        font-size: 12px;
        margin: 0;
    }

    .home-product-grid .product-info p:not(.price),
    .home-product-grid .option-line,
    .home-product-grid .primary-button,
    .home-product-grid .badge,
    .home-product-grid .carousel-button {
        display: none;
    }

    .home-section {
        padding: 18px 0 8px;
    }

    .home-section + .home-section {
        padding-top: 22px;
    }

    .home-product-grid {
        padding-bottom: 8px;
    }

    .home-section-action {
        padding-bottom: 8px;
        margin-top: 2px;
    }
}
