:root {
    --ink: #111111;
    --paper: #fbfaf7;
    --muted: #6d665d;
    --line: #e8e1d8;
    --gold: #bd8b28;
    --maroon: #8b1238;
    --maroon-deep: #5f0d27;
    --rose: #f8edf1;
    --shadow: 0 18px 50px rgba(17, 17, 17, .12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

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

img {
    display: block;
    max-width: 100%;
}

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

.top-strip {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 9px 16px;
    background: var(--maroon);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(251, 250, 247, .93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-mark {
    display: grid;
    flex: 0 0 58px;
    place-items: center;
    width: 58px;
    height: 58px;
    aspect-ratio: 1;
    padding: 5px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: var(--maroon-deep);
    box-shadow: 0 0 0 2px var(--maroon), 0 8px 22px rgba(139, 18, 56, .24);
    overflow: hidden;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1) contrast(1.25) brightness(1.12);
}

.brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
}

.ui-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
    vertical-align: -3px;
}

.search-form {
    position: relative;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.search-form input {
    width: min(190px, 22vw);
    border: 0;
    border-radius: 999px 0 0 999px;
    background: #fff;
    padding: 10px 12px;
    outline: 0;
}

.search-form button,
.cart-open,
.menu-toggle,
.admin-header button,
.admin-card button,
.cart-btn,
.primary-link {
    border: 0;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.search-form > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border-radius: 0 999px 999px 0;
}

.search-form > button .ui-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .12));
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    display: grid;
    max-height: min(420px, calc(100vh - 150px));
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(139, 18, 56, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(17, 17, 17, .16);
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 0 !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--ink) !important;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: #fff4f7 !important;
}

.search-suggestion-item img,
.search-suggestion-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #f7f1ed;
}

.search-suggestion-icon {
    display: grid;
    place-items: center;
    color: var(--maroon);
    font-weight: 900;
}

.search-suggestion-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.search-suggestion-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.search-suggestion-item > span {
    min-width: 0;
}

.search-suggestion-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 13px;
}

.cart-open,
.menu-toggle,
.profile-link {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
}

.cart-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

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

.pwa-install-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--maroon);
    border-radius: 999px;
    background: #fff;
    color: var(--maroon);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.pwa-install-button:hover {
    background: var(--maroon);
    color: #fff;
}

.upi-open-app {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 9px 13px;
    border-radius: 9px;
    background: #168a5c;
    color: #fff;
    font-weight: 800;
}

.settings-divider {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.settings-divider small {
    color: var(--muted);
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(189, 139, 40, .18);
}

.profile-link svg {
    width: 20px;
    height: 20px;
    fill: var(--maroon);
}

.header-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--maroon);
    border-radius: 50%;
}

.site-profile-menu {
    position: relative;
}

.site-profile-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 35;
    min-width: 168px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.site-profile-menu:hover .site-profile-dropdown,
.site-profile-menu:focus-within .site-profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-profile-dropdown a,
.site-profile-dropdown button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.site-profile-dropdown a:hover,
.site-profile-dropdown button:hover {
    background: #fff0f5;
    color: var(--maroon);
}

.menu-toggle {
    display: none;
}

.site-notice {
    margin: 14px clamp(16px, 5vw, 72px) 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 22%, rgba(189, 139, 40, .2), transparent 31%),
        linear-gradient(120deg, #fff 0%, #fbf5ed 52%, #f7e9ee 100%);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    min-height: 460px;
    padding: clamp(28px, 4vw, 48px) clamp(16px, 5vw, 72px) 34px;
}

.hero-slide {
    display: none;
    background: transparent;
}

.hero-slide.active {
    display: grid;
    animation: heroFade .45s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-dots {
    position: absolute;
    left: clamp(16px, 5vw, 72px);
    bottom: 18px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(158, 15, 67, .28);
    cursor: pointer;
}

.hero-dots button.active {
    width: 26px;
    border-radius: 999px;
    background: var(--maroon);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-title p {
    margin: 0 0 10px;
    color: var(--maroon);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1,
.page-heading h1,
.content-page h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.detail-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
}

.hero-copy p:not(.eyebrow),
.page-heading p,
.content-page p,
.detail-copy p,
.product-description {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.product-description {
    margin: 18px 0;
    max-width: 720px;
}

.short-description {
    max-width: 680px;
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.hero-actions .primary-link .ui-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
}

.ghost-link {
    border: 1px solid var(--maroon);
    background: #fff;
    font-weight: 700;
}

.primary-link.dark {
    background: #fff;
    color: var(--maroon);
}

.hero-image {
    position: relative;
    isolation: isolate;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 9%;
    z-index: -1;
    border-radius: 50%;
    background: var(--maroon-deep);
    box-shadow: var(--shadow);
}

.hero-image img {
    width: min(430px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border: 10px solid #fff;
    border-radius: 50%;
    filter: grayscale(.2) contrast(1.08);
}

.category-band {
    display: grid;
    grid-template-columns: repeat(var(--category-count, 6), minmax(160px, 1fr));
    justify-content: center;
    gap: 1px;
    width: min(100%, calc(var(--category-count, 6) * 225px));
    margin-inline: auto;
    background: var(--line);
    border: 1px solid var(--line);
    border-inline: 0;
}

.category-band a {
    min-height: 88px;
    padding: 18px 24px;
    background: #fff;
}

.category-band span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.category-band small,
.product-body p,
.table-row small {
    color: var(--muted);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(26px, 4vw, 46px) clamp(16px, 5vw, 72px) 0;
}

.promo-card {
    min-height: 260px;
    display: grid;
    align-items: center;
    gap: 18px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.promo-card h2 {
    max-width: 520px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.promo-card p:not(.eyebrow) {
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.promo-card-soft {
    grid-template-columns: minmax(0, 1fr) 160px;
    border: 1px solid #f0d6de;
    background: linear-gradient(135deg, #fff7f1, #fff0f5);
}

.promo-card-soft img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
}

.promo-card-dark {
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(189, 139, 40, .35), transparent 28%),
        linear-gradient(135deg, #2b0d16, #9e0f43);
}

.promo-card-dark .eyebrow,
.promo-card-dark p:not(.eyebrow) {
    color: #f5dce5;
}

.ghost-link.light {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.12);
    color: #fff;
}

.section-block,
.reviews,
.page-shell {
    padding: clamp(34px, 6vw, 76px) clamp(16px, 5vw, 72px);
}

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

.section-title h2,
.story-band h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 38px);
}

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

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

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .05);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    will-change: transform;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(161, 15, 63, .18), rgba(212, 169, 91, .16));
    opacity: 0;
    transition: opacity .28s ease;
}

.product-card:hover {
    border-color: rgba(161, 15, 63, .38);
    box-shadow: 0 18px 45px rgba(95, 13, 39, .16);
    transform: translateY(-8px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.is-out-stock {
    border-color: rgba(160, 24, 24, .35);
    box-shadow: 0 10px 28px rgba(160, 24, 24, .12);
}

.product-card.is-out-stock .product-media img {
    opacity: .58;
    filter: grayscale(.8);
}

.product-card.is-out-stock .product-media::after {
    content: "OUT OF STOCK";
    position: absolute;
    inset: auto 14px 14px 14px;
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 6px;
    background: rgba(95, 13, 39, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}

.product-media {
    position: relative;
    display: block;
    background: linear-gradient(145deg, var(--maroon-deep), #fff);
    overflow: hidden;
}

.product-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .32) 46%, transparent 70%);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform .55s ease, opacity .28s ease;
}

.product-card:hover .product-media::before {
    opacity: 1;
    transform: translateX(100%);
}

.product-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .45s ease, filter .28s ease;
}

.product-card:hover .product-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.055);
}

.showcase-section .product-card:not(.is-out-stock) .product-media::after {
    content: "View details";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: grid;
    min-height: 38px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--maroon);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(17, 17, 17, .16);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .28s ease, transform .28s ease;
}

.showcase-section .product-card:not(.is-out-stock):hover .product-media::after {
    opacity: 1;
    transform: translateY(0);
}

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

.product-flags {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.product-flags small {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--maroon);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(17, 17, 17, .12);
}

.is-out-stock .badge {
    background: #a01818;
    box-shadow: 0 8px 18px rgba(160, 24, 24, .28);
}

.product-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.product-name {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.product-body p {
    margin: 0;
}

.product-body .price-row {
    margin: 2px 0 6px;
}

.showcase-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.showcase-section {
    scroll-margin-top: 145px;
}

.showcase-filter a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.showcase-filter a.active,
.showcase-filter a:hover {
    border-color: var(--maroon);
    background: var(--maroon);
    color: #fff;
}

.price-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(160, 24, 24, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #fff6f9);
    box-shadow: 0 14px 32px rgba(160, 24, 24, .08);
}

.price-filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.price-filter input {
    width: 86px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.price-filter button,
.reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.reset-filter {
    background: #fff;
    color: var(--maroon);
    border: 1px solid rgba(160, 24, 24, .25);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.stock-alert {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(160, 24, 24, .22);
    border-radius: 999px;
    background: #fff1f1;
    color: #a01818;
    font-size: 13px;
    font-weight: 800;
}

.detail-stock-alert {
    margin: 10px 0 16px;
    border-radius: 8px;
}

.price-row strong {
    font-size: 18px;
}

del {
    color: #9f9890;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    text-align: center;
}

.cart-btn:disabled {
    background: #b9b0a8;
    cursor: not-allowed;
}

.story-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 72px);
    background: var(--maroon);
    color: #fff;
}

.story-band p {
    max-width: 720px;
    color: #d8d0c8;
}

.review-grid,
.contact-grid,
.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.review-grid article,
.contact-grid article,
.account-grid article,
.admin-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.review-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.enhanced-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 24px;
}

.contact-card {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-height: 170px;
}

.contact-card-wide {
    grid-column: 1 / -1;
    min-height: 0;
    background: linear-gradient(135deg, #fff, #fff7fa);
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.contact-card a {
    color: inherit;
}

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

.contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(161, 15, 63, .24);
    border-radius: 999px;
    color: var(--maroon);
    font-weight: 800;
}

.settings-contact-phones {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px dashed rgba(161, 15, 63, .26);
    border-radius: 12px;
    background: #fff7fa;
}

.settings-contact-phones > strong {
    color: var(--maroon);
}

.settings-phone-row {
    display: grid;
    grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr);
    gap: 12px;
}

.review-grid span {
    display: block;
    color: var(--maroon);
    margin-top: 3px;
}

.review-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 17, 17, .06);
}

.review-card.is-own-review {
    border-color: rgba(161, 15, 63, .18);
}

.review-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    gap: 7px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.review-card.is-own-review:hover .review-card-actions,
.review-card.is-own-review:focus-within .review-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.review-card-actions a,
.review-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--maroon);
    box-shadow: 0 10px 22px rgba(17, 17, 17, .16);
    cursor: pointer;
}

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

.review-card-actions form button {
    color: #b01d25;
}

.review-card-actions .ui-icon {
    width: 18px;
    height: 18px;
}

.review-card-edit {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(161, 15, 63, .28);
    border-radius: 12px;
    background: #fff7fa;
}

.review-card-edit[hidden] {
    display: none;
}

.review-card-edit label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.review-card-edit input,
.review-card-edit select,
.review-card-edit textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.review-card-edit textarea {
    min-height: 88px;
}

.review-card-edit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-card-edit-actions button {
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.review-card-edit-actions .ghost-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--maroon);
}

.review-media-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -8px -8px 16px;
}

.review-media-strip img,
.review-media-strip video {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #111;
    object-fit: cover;
}

.review-media-strip video {
    object-fit: contain;
}

.review-rating {
    margin-bottom: 10px;
    color: #d49a2f;
    font-size: 18px;
    letter-spacing: 1px;
}

.review-submit-card {
    display: grid;
    grid-template-columns: 1.2fr .7fr .7fr;
    gap: 14px;
    margin-top: 22px;
    padding: 22px;
    border: 1px dashed rgba(161, 15, 63, .35);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #fff7fa);
}

.review-submit-card[hidden] {
    display: none;
}

.review-submit-card label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: var(--muted);
}

.review-submit-card .full {
    grid-column: 1 / -1;
}

.review-submit-card input,
.review-submit-card select,
.review-submit-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.review-submit-card textarea {
    min-height: 110px;
}

.review-submit-card button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 12px 24px;
    font-weight: 800;
    cursor: pointer;
}

.own-review-status {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
}

.own-review-media {
    margin: 0;
}

.review-delete-form {
    margin-top: 12px;
}

.review-delete-form button {
    border: 1px solid rgba(176, 29, 37, .25);
    border-radius: 999px;
    background: #fff1f1;
    color: #b01d25;
    padding: 11px 20px;
    font-weight: 800;
    cursor: pointer;
}

.review-delete-form button:hover {
    border-color: #b01d25;
    background: #ffe4e4;
}

.review-upload-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.review-upload-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.review-upload-card img,
.review-upload-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111;
    object-fit: cover;
}

.review-upload-card video {
    object-fit: contain;
}

.review-upload-card small {
    display: block;
    padding: 8px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-heading {
    margin-bottom: 28px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.filters {
    align-self: start;
    position: sticky;
    top: 104px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.filters h3 {
    margin-top: 0;
}

.filters a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 56px);
    align-items: start;
    max-width: 1240px;
    margin-inline: auto;
}

.product-detail.page-shell {
    padding-top: clamp(32px, 4vw, 52px);
}

.detail-media img,
.detail-media video {
    width: 100%;
    object-fit: cover;
}

.detail-media video {
    object-fit: contain;
    background: #111;
}

.zoom-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    overflow: hidden;
}

.zoom-trigger img,
.zoom-trigger video {
    aspect-ratio: 4 / 4.25;
}

.zoom-trigger video {
    width: 100%;
}

.zoom-trigger.has-video {
    cursor: default;
}

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

.thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.thumb.active {
    border-color: var(--maroon);
}

.thumb {
    position: relative;
}

.thumb img,
.thumb video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.thumb video {
    object-fit: contain;
    background: #111;
}

.video-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.price-row.big strong {
    font-size: 28px;
}

.detail-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    color: var(--muted);
    list-style: none;
}

.detail-list li,
.feature-row span,
.contact-grid strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-copy {
    padding-top: 0;
}

.detail-copy .eyebrow {
    margin-top: 0;
}

.product-long-description {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.product-review-section {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #fffaf3);
}

.product-long-description h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
}

.saving-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfff2;
    color: #19713a;
    font-size: 13px;
    font-weight: 800;
}

.product-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(212, 154, 47, .35);
    border-radius: 999px;
    background: #fffaf0;
    color: var(--ink);
    font-weight: 800;
}

.product-rating-summary span,
.product-review-score strong {
    color: #d49a2f;
}

.product-review-score {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: var(--muted);
}

.product-review-score strong {
    font-size: 28px;
    line-height: 1;
}

.product-review-grid {
    margin-top: 16px;
}

.product-login-review {
    margin-top: 18px;
}

.color-options {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.color-options strong {
    font-size: 14px;
}

.color-options div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-options button {
    position: relative;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

.color-options button.active {
    padding-right: 34px;
    border-color: var(--maroon);
    background: var(--maroon);
    color: #fff;
}

.color-options button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--maroon);
    font-size: 11px;
    line-height: 1;
    transform: translateY(-50%);
}

.color-options button:disabled,
.color-options button.is-unavailable {
    border-color: #ead8d8;
    background: #f8f2f2;
    color: #9a8c8c;
    cursor: not-allowed;
    opacity: 0.72;
    text-decoration: line-through;
}

.color-options button:disabled::after,
.color-options button.is-unavailable::after {
    content: "Sold";
    position: static;
    display: inline;
    width: auto;
    height: auto;
    margin-left: 6px;
    background: transparent;
    color: #a10f3f;
    font-size: 11px;
    transform: none;
}

.variant-stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.variant-stock-list strong {
    flex-basis: 100%;
    font-size: 14px;
}

.variant-stock-list span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff7fa;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.wide {
    max-width: 360px;
}

.content-page {
    max-width: 1050px;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.feature-row span {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 38px clamp(16px, 5vw, 72px) 0;
    background: var(--maroon-deep);
    color: #fff;
}

.site-footer img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1) contrast(1.25);
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 9px 0;
    color: #d8d0c8;
}

.footer-policy-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px calc(clamp(16px, 5vw, 72px) * -1) 0;
    padding: 14px clamp(16px, 5vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #d8d0c8;
}

.footer-policy-bar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-policy-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.footer-policy-bar .ui-icon {
    width: 16px;
    height: 16px;
}

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

.policy-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, .04);
}

.policy-grid strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(420px, 92vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .24s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.cart-is-open {
    overflow: hidden;
}

.cart-panel.open {
    transform: translateX(0);
}

.zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(35, 4, 16, .88);
}

.zoom-modal.open {
    display: grid;
}

.zoom-modal img {
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.zoom-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--maroon);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    background: rgba(17, 17, 17, .42);
}

.overlay.show {
    display: block;
}

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

.cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.cart-head button,
.cart-line .cart-remove {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
}

.cart-line .cart-remove svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-items {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.cart-summary[hidden],
.cart-checkout-form[hidden] {
    display: none;
}

.cart-line img {
    grid-row: 1 / 3;
    width: 58px;
    height: 70px;
    min-width: 58px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-line span {
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cart-line .cart-qty-control {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
}

.cart-line .cart-remove {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff7fa;
}

.cart-qty-control button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.cart-qty-control strong {
    min-width: 22px;
    text-align: center;
    font-size: 14px;
}

.cart-line small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.cart-summary {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cart-summary > div,
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.discount-line {
    color: #0f8a5f;
}

.offer-apply-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
}

.offer-apply-row button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--maroon);
    color: #fff;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.offer-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff3f4;
    color: #b01d25;
    font-weight: 800;
    font-size: 13px;
}

.offer-message.success {
    background: #effaf4;
    color: #0f8a5f;
}

.notice.flash-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1600;
    width: min(390px, calc(100vw - 32px));
    margin: 0;
    padding: 15px 18px;
    border: 1px solid rgba(157, 15, 70, .2);
    border-left: 5px solid var(--maroon);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7fa, #fff);
    color: var(--maroon);
    box-shadow: 0 18px 46px rgba(65, 8, 28, .22);
    animation: flash-notice-in .25s ease-out;
    cursor: pointer;
}

.notice.flash-notice.flash-error {
    border-color: rgba(194, 24, 55, .25);
    border-left-color: #c21837;
    background: linear-gradient(135deg, #fff0f3, #fff);
    color: #9f1239;
}

.notice.flash-notice.flash-success {
    border-color: rgba(13, 148, 95, .24);
    border-left-color: #0d9460;
    background: linear-gradient(135deg, #edfff6, #fff);
    color: #087345;
}

.notice.flash-notice.flash-info {
    border-color: rgba(31, 111, 168, .24);
    border-left-color: #1f6fa8;
    background: linear-gradient(135deg, #eef7ff, #fff);
    color: #155e89;
}

.notice.flash-notice.is-hiding {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .28s ease, transform .28s ease;
}

@keyframes flash-notice-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-login-card {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(161, 15, 63, .35);
    border-radius: 14px;
    background: #fff7fa;
}

.checkout-address-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdfa;
}

.checkout-address-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdfa;
}

.checkout-address-summary .checkout-card-title {
    min-width: 0;
}

.address-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maroon);
    font-size: 16px;
    font-weight: 800;
}

.address-heading svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.address-text {
    display: block;
    max-width: 290px;
    color: var(--ink);
    line-height: 1.55;
}

.address-edit-button,
.address-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: var(--maroon);
    color: #fff;
    padding: 10px 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.address-edit-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.address-edit-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 42px;
}

.address-edit-modal {
    position: relative;
    margin-top: 10px;
    box-shadow: 0 16px 32px rgba(50, 10, 25, .12);
}

.address-edit-modal[hidden],
.checkout-payment-step[hidden] {
    display: none;
}

.address-save-button {
    grid-column: 1 / -1;
}

.checkout-submit-button {
    margin-top: 10px;
}

.checkout-address-card .full,
.checkout-card-title {
    grid-column: 1 / -1;
}

.checkout-card-title {
    display: grid;
    gap: 4px;
}

.checkout-card-title small {
    color: var(--muted);
    line-height: 1.45;
}

.checkout-address-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.checkout-login-card.attention {
    animation: cartPulse .8s ease;
}

.checkout-login-card p {
    margin: 0;
    color: var(--muted);
}

.checkout-login-card div {
    display: flex;
    gap: 10px;
}

.checkout-login-card a {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 9px 16px;
    font-weight: 800;
}

.payment-box {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdfa;
}

.checkout-order-note {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.checkout-order-note textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.back-shopping-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 18px;
    padding: 11px 17px;
    border-radius: 10px;
    background: var(--maroon);
    color: #fff;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.back-shopping-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(145, 12, 56, .2);
}

.back-shopping-button .ui-icon {
    width: 17px;
    height: 17px;
}

.leave-review-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 17px;
    border: 1px solid var(--maroon);
    border-radius: 999px;
    background: #fff;
    color: var(--maroon);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.leave-review-button:hover {
    background: var(--maroon);
    color: #fff;
}

.leave-review-button .ui-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.password-change-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid var(--maroon);
    border-radius: 999px;
    padding: 10px 15px;
    background: #fff;
    color: var(--maroon);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.password-change-trigger .ui-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.password-modal {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid rgba(161, 15, 63, .25);
    border-radius: 14px;
    background: #fff7fa;
}

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

.customer-stat-card {
    display: grid;
    gap: 10px;
}

.customer-stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.customer-stat-card strong {
    color: var(--maroon);
    font-size: 28px;
}

.customer-stat-card a {
    color: var(--maroon);
    font-weight: 800;
}

.password-modal[hidden] {
    display: none;
}

.password-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-modal-head button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.payment-option-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    flex: 1;
    white-space: nowrap;
}

.upi-payment-box {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 12px;
    border: 1px dashed rgba(161, 15, 63, .28);
    border-radius: 12px;
    background: #fff;
}

.upi-payment-box[hidden] {
    display: none;
}

.upi-payment-box img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.upi-payment-box small {
    color: var(--muted);
    line-height: 1.5;
}

.upi-payment-box label {
    display: grid;
    gap: 6px;
    width: 100%;
    font-weight: 800;
    color: var(--muted);
}

.upi-payment-box input,
.wide-link {
    width: 100%;
}

.upi-payment-box input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.wide-link {
    margin-top: 18px;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.02); }
}

.empty {
    color: var(--muted);
}

.admin-body {
    background: #f5f1ec;
}

.admin-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 20px auto 50px;
}

.admin-header {
    position: static;
    grid-template-columns: 1fr auto;
    padding-inline: 0;
    background: transparent;
}

.notice {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

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

.admin-card h1,
.admin-card h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.admin-card form,
.product-form {
    display: grid;
    gap: 14px;
}

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

.product-form .full {
    grid-column: 1 / -1;
}

.form-section-title {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px dashed rgba(161, 15, 63, .25);
    border-radius: 12px;
    background: #fff7fa;
}

.form-section-title small {
    color: var(--muted);
    line-height: 1.45;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.product-form textarea[name="description"] {
    min-height: 150px;
    line-height: 1.55;
}

.product-form label small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.check input {
    width: auto;
}

.admin-card button,
.admin-header button,
.auth-card button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
}

.auth-card button {
    border: 0;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

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

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

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

.admin-add-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
}

.gallery-admin {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
}

.gallery-admin-row {
    display: grid;
    grid-template-columns: 72px minmax(120px, 1fr) minmax(90px, .8fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.gallery-admin-row img,
.gallery-admin-row video {
    width: 72px;
    height: 82px;
    object-fit: cover;
    border-radius: 6px;
    background: #f2ece6;
}

.existing-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.existing-media-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.existing-media-card.is-marked-remove {
    border-color: rgba(176, 29, 37, .45);
    background: #fff5f5;
    opacity: .72;
    max-height: 74px;
    overflow: hidden;
}

.existing-media-card.is-marked-remove::after {
    content: "Marked for removal. Save product to apply.";
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 245, .94);
    color: #b01d25;
    font-weight: 800;
    text-align: center;
    padding: 12px;
}

.existing-media-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f2ece6;
}

.existing-media-preview img,
.existing-media-preview video {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.existing-media-preview span {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 58px);
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.existing-media-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(139, 18, 56, .92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(17, 17, 17, .18);
    transition: transform .2s ease, background .2s ease;
}

.existing-media-remove:hover {
    transform: translateY(-1px);
    background: #b01d25;
}

.existing-media-remove .action-icon-svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.existing-media-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.danger-check {
    color: #b01d25;
}

.media-remove-check {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(17, 17, 17, .42);
}

.confirm-modal-card {
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.confirm-modal-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.confirm-modal-card p {
    margin: 8px 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.confirm-modal-card div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.danger-button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: #b01d25;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.smart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.smart-panel-head strong,
.smart-panel-head small {
    display: block;
}

.smart-panel-head small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--maroon);
    border-radius: 6px;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.mini-action.outline {
    background: #fff;
    color: var(--maroon);
}

.mini-action .action-icon-svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.file-action {
    position: relative;
    overflow: hidden;
}

.file-action input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.variant-admin {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
}

.variant-admin > strong,
.variant-admin > small {
    display: block;
}

.variant-admin > small {
    color: var(--muted);
    font-size: 12px;
}

.variant-admin-head,
.variant-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) 100px minmax(160px, .8fr) 42px;
    gap: 10px;
    align-items: center;
}

.product-form[data-track-color="0"][data-track-size="1"] .variant-admin-head,
.product-form[data-track-color="0"][data-track-size="1"] .variant-admin-row,
.product-form[data-track-color="1"][data-track-size="0"] .variant-admin-head,
.product-form[data-track-color="1"][data-track-size="0"] .variant-admin-row {
    grid-template-columns: minmax(0, 1fr) 100px minmax(160px, .9fr) 42px;
}

.product-form[data-track-color="0"][data-track-size="0"] .variant-admin {
    opacity: .72;
}

.product-form[data-track-color="0"][data-track-size="0"] .variant-admin-head,
.product-form[data-track-color="0"][data-track-size="0"] .variant-admin-row {
    grid-template-columns: 100px minmax(160px, .9fr) 42px;
}

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

.variant-admin-head {
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.row-remove {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #b01d25;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.row-remove:hover {
    border-color: rgba(176, 29, 37, .28);
    background: #fff1f1;
    transform: translateY(-1px);
}

.row-remove .action-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.row-upload-control {
    display: grid;
    grid-template-columns: 42px 42px minmax(130px, 1fr);
    align-items: center;
    gap: 8px;
}

.row-upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--maroon);
    cursor: pointer;
    overflow: hidden;
}

.row-upload-btn input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.row-upload-btn .action-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.row-media-clear {
    color: #b01d25;
}

.row-media-info {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.row-media-preview {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    color: var(--maroon);
}

.row-media-preview img,
.row-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-media-preview .action-icon-svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.row-media-info small {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-entry-panel {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px dashed rgba(122, 20, 57, .35);
    border-radius: 8px;
    background: #fff;
}

.bulk-entry-panel label {
    display: grid;
    gap: 6px;
}

.bulk-entry-panel textarea {
    min-height: 92px;
}

.bulk-entry-panel small {
    color: var(--muted);
    font-size: 12px;
}

.image-upload-admin {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
}

.media-upload-drop {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 132px;
    padding: 22px;
    border: 1px dashed rgba(122, 20, 57, .35);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.media-upload-drop strong {
    color: var(--ink);
    font-size: 18px;
}

.media-upload-drop span,
.media-upload-status span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.media-upload-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(122, 20, 57, .18);
    border-radius: 8px;
    background: #fff8fb;
}

.media-upload-status strong {
    color: var(--maroon);
}

.media-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(18, 15, 13, .56);
}

.media-upload-modal[hidden] {
    display: none;
}

.media-upload-dialog {
    display: grid;
    gap: 14px;
    width: min(980px, 96vw);
    max-height: min(760px, 92vh);
    overflow: auto;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(17, 17, 17, .3);
}

.media-upload-modal-head,
.media-upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.media-upload-modal-head strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
}

.media-upload-modal-head small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.media-upload-modal-head button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--maroon);
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    min-height: 120px;
}

.upload-preview-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.upload-preview-card.is-largest {
    border-color: rgba(122, 20, 57, .45);
}

.upload-preview-card.is-too-large {
    border-color: #d92332;
    background: #fff3f4;
}

.upload-preview-card.is-uploaded {
    border-color: #11965f;
    background: #f1fff7;
}

.upload-preview-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f2ece6;
}

.upload-preview-media {
    position: relative;
}

.upload-preview-card video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #1f1b18;
}

.upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(139, 18, 56, .92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(17, 17, 17, .18);
    transition: transform .2s ease, background .2s ease;
}

.upload-remove:hover {
    transform: translateY(-1px);
    background: #b01d25;
}

.upload-remove .action-icon-svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.upload-preview-card strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-preview-card label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.upload-card-status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f7efe8;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.upload-preview-card.is-too-large .upload-card-status {
    background: #d92332;
    color: #fff;
}

.upload-preview-card.is-uploaded .upload-card-status {
    background: #11965f;
    color: #fff;
}

.table-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 120px 70px 90px;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-row {
    grid-template-columns: 64px minmax(0, 1fr) 120px auto;
}

.settings-row {
    grid-template-columns: 54px minmax(0, 1fr) 110px auto;
}

.settings-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff5fa;
    color: var(--maroon);
}

.settings-row-icon .action-icon-svg {
    width: 20px;
    height: 20px;
}

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

.message-template-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.message-template-card span {
    color: var(--maroon);
    font-weight: 800;
}

.message-template-card textarea {
    min-height: 130px;
    resize: vertical;
}

.provider-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdfa;
    color: var(--muted);
}

.provider-help strong {
    color: var(--maroon);
}

.customer-row {
    grid-template-columns: minmax(0, 1fr) 150px 120px auto;
}

.order-row {
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto minmax(180px, auto);
    align-items: center;
    min-height: 72px;
}

.order-list-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.order-list-item > summary {
    margin: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    list-style: none;
}

.order-list-item > summary::-webkit-details-marker {
    display: none;
}

.order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.order-actions .order-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 17, 17, .06);
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.order-actions .order-icon-action:hover {
    transform: translateY(-2px);
    border-color: rgba(161, 15, 63, .24);
    background: #fff2f7;
}

.order-actions .order-icon-action.is-danger {
    color: #b01d25;
}

.order-actions .order-icon-action.is-track {
    color: #0f8a5f;
}

.order-actions .ui-icon {
    width: 17px;
    height: 17px;
}

.order-edit-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fffdfa;
}

.order-print-content {
    padding: 14px;
    border: 1px dashed rgba(161, 15, 63, .25);
    border-radius: 10px;
    background: #fff;
}

.order-print-content h3 {
    margin: 0 0 8px;
}

.order-print-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.order-print-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--maroon);
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.transporter-copy-label {
    display: none;
}

.print-store-head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.print-store-head strong {
    font-size: 18px;
}

.print-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.print-items th,
.print-items td {
    padding: 7px 5px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.print-totals {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.print-totals span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.track-order-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 138, 95, .18);
    border-radius: 12px;
    background: #effaf4;
    color: #0f6f4e;
    font-weight: 700;
}

.track-order-note a {
    margin-left: auto;
    color: var(--maroon);
    font-weight: 800;
    white-space: nowrap;
}

.shipment-highlight {
    display: grid;
    gap: 5px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid rgba(161, 15, 63, .3);
    border-left: 4px solid var(--maroon);
    border-radius: 10px;
    background: #fff2f6;
    color: var(--ink);
}

.shipment-highlight strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--maroon);
}

.shipment-highlight strong .ui-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.shipment-highlight span {
    font-size: 13px;
}

.shipment-highlight a {
    width: fit-content;
    color: var(--maroon);
    font-weight: 800;
    text-decoration: underline;
}

.track-order-note .ui-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

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

.order-edit-form label,
.order-cancel-form {
    display: grid;
    gap: 7px;
}

.order-edit-form .full {
    grid-column: 1 / -1;
}

.order-edit-form input,
.order-edit-form select,
.order-edit-form textarea,
.order-cancel-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.order-edit-form textarea {
    min-height: 84px;
}

.order-edit-form button,
.order-cancel-form button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 11px 22px;
    font-weight: 800;
    cursor: pointer;
}

.order-cancel-form {
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
}

.order-cancel-form button {
    background: #b01d25;
}

.order-main,
.order-total {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.order-main small,
.order-total small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff4f7;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-confirmed,
.status-picked,
.status-packed,
.status-shipped {
    background: #eef7ff;
    color: #006899;
}

.status-delivered {
    background: #effaf3;
    color: #19713a;
}

.status-cancelled {
    background: #fff1f1;
    color: #b01d25;
}

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

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
}

.permission-grid strong {
    grid-column: 1 / -1;
}

.table-row img {
    width: 64px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.table-row span {
    font-weight: 700;
}

.table-row small {
    display: block;
    margin-top: 3px;
}

.table-row a {
    font-weight: 700;
    color: var(--maroon);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons form {
    margin: 0;
}

.icon-action,
button.icon-action {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--maroon);
    cursor: pointer;
}

.icon-action:hover {
    border-color: var(--maroon);
    background: #fff7fa;
}

.icon-action.state-action.is-enabled,
.icon-action.state-action.is-stock-ok {
    border-color: rgba(25, 113, 58, .28);
    background: #effaf3;
    color: #19713a;
}

.icon-action.state-action.is-disabled,
.icon-action.state-action.is-stock-out {
    border-color: rgba(176, 29, 37, .28);
    background: #fff1f1;
    color: #b01d25;
}

.icon-action.state-action.is-enabled:hover,
.icon-action.state-action.is-stock-ok:hover {
    border-color: #19713a;
    background: #e0f4e7;
}

.icon-action.state-action.is-disabled:hover,
.icon-action.state-action.is-stock-out:hover {
    border-color: #b01d25;
    background: #ffe4e4;
}

.icon-action.danger {
    color: #a01818;
}

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

.review-list-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.review-list-item.status-pending {
    border-color: rgba(212, 154, 47, .45);
}

.review-list-item.status-hidden {
    opacity: .82;
}

.review-list-row {
    grid-template-columns: 58px minmax(220px, 1.5fr) minmax(160px, .9fr) 100px 105px 60px;
    margin: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    list-style: none;
}

.review-list-row::-webkit-details-marker {
    display: none;
}

.review-list-thumb {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fff7fa;
    color: var(--maroon);
}

.review-list-thumb img,
.review-list-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-list-main {
    display: grid;
    gap: 3px;
}

.review-list-main small,
.review-list-main em {
    color: var(--muted);
    font-size: 12px;
}

.review-list-main em {
    font-style: normal;
}

.review-list-product {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.review-list-rating {
    color: #d49a2f;
    font-size: 15px;
    letter-spacing: 1px;
}

.review-row-hint {
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.review-list-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fffdfa;
}

.admin-review-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .04);
}

.admin-review-card.status-pending {
    border-color: rgba(212, 154, 47, .45);
}

.admin-review-card.status-hidden {
    opacity: .78;
}

.admin-review-top,
.review-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-review-top small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.review-status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff7fa;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
}

.admin-review-media {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-review-media img,
.admin-review-media video {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #111;
    object-fit: cover;
}

.admin-review-media video {
    object-fit: contain;
}

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

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

.review-admin-form .full {
    grid-column: 1 / -1;
}

.review-admin-form input,
.review-admin-form select,
.review-admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.review-admin-form textarea {
    min-height: 90px;
}

.review-admin-form button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 11px 22px;
    font-weight: 800;
    cursor: pointer;
}

.review-action-row {
    justify-content: flex-end;
}

.review-action-row form {
    margin: 0;
}

.action-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.login-card {
    max-width: 420px;
    margin: 60px auto;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    width: min(520px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0;
}

.auth-brand {
    justify-self: start;
    margin-bottom: 18px;
}

.auth-card {
    width: 100%;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-card form {
    display: grid;
    gap: 14px;
}

.auth-card .signup-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.auth-card .full,
.auth-form-head {
    grid-column: 1 / -1;
}

.auth-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    background: #f5f1ec;
    border-radius: 999px;
}

.auth-tabs a {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: 999px;
    font-weight: 700;
}

.auth-tabs a.active {
    background: var(--maroon);
    color: #fff;
}

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

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle,
.auth-card .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff7fa;
    color: var(--maroon);
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-toggle .eye-off {
    display: none;
}

.password-toggle.active .eye-open {
    display: none;
}

.password-toggle.active .eye-off {
    display: block;
}

.remember-check {
    justify-content: start;
    margin-top: -4px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.auth-options a,
.auth-help a {
    color: var(--maroon);
    font-weight: 700;
}

.inline-form {
    margin-top: 22px;
}

.inline-form button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.dashboard-shell,
.customer-dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: #f5f1ec;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.dashboard-brand {
    min-width: 0;
    margin-bottom: 28px;
}

.dashboard-brand strong {
    font-size: 22px;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav a {
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    background: var(--maroon);
    color: #fff;
}

.dashboard-nav-group {
    border-bottom: 1px solid rgba(122, 20, 57, .12);
    padding-bottom: 6px;
}

.dashboard-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.dashboard-nav-group summary::-webkit-details-marker {
    display: none;
}

.dashboard-nav-group summary::after {
    content: '+';
    color: var(--maroon);
    font-size: 18px;
    font-weight: 400;
}

.dashboard-nav-group[open] summary::after {
    content: '−';
}

.dashboard-nav-group summary.active,
.dashboard-nav-group summary:hover {
    background: var(--maroon);
    color: #fff;
}

.dashboard-nav-group summary.active::after,
.dashboard-nav-group summary:hover::after {
    color: #fff;
}

.dashboard-subnav {
    display: grid;
    gap: 3px;
    padding: 5px 0 2px 12px;
}

.dashboard-subnav a {
    padding: 9px 12px;
    font-size: 14px;
}

.offer-code-field {
    display: grid;
    gap: 6px;
    min-width: 180px;
    font-weight: 800;
    color: var(--muted);
}

.offer-code-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

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

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

.notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-read-form {
    margin: 0;
}

.notification-read-button,
.notification-read-state {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid var(--maroon);
    border-radius: 50%;
    background: #fff;
    color: var(--maroon);
    font-weight: 900;
}

.notification-read-button {
    cursor: pointer;
}

.notification-read-button:hover,
.notification-read-state {
    background: var(--maroon);
    color: #fff;
}

.notification-row.unread {
    border-color: var(--maroon);
    background: #fff7f9;
}

.live-notification-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1700;
    display: grid;
    gap: 5px;
    width: min(390px, calc(100vw - 32px));
    padding: 15px 18px;
    color: #6f1132;
    background: linear-gradient(135deg, #fff8fb, #ffffff);
    border: 1px solid rgba(161, 15, 63, .18);
    border-left: 5px solid var(--maroon);
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(65, 8, 28, .22);
    animation: live-notification-in .25s ease-out;
    cursor: pointer;
}

.live-notification-toast span {
    font-size: .9rem;
    line-height: 1.4;
    color: #6f625b;
}

.live-notification-toast.is-hiding {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .28s ease, transform .28s ease;
}

.password-modal-card label {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 800;
}

.password-modal-card input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.password-modal-error {
    display: block;
    margin-top: 10px;
    color: #b01d25;
    font-weight: 800;
}

@keyframes live-notification-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-row p {
    margin: 5px 0;
}

.dashboard-main {
    position: relative;
    padding: 24px clamp(16px, 3vw, 34px);
    padding-bottom: 82px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.dashboard-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.dashboard-header form {
    margin: 0;
}

.admin-profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff7fa;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.admin-profile-chip img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
}

.admin-profile-chip strong,
.admin-profile-chip small {
    display: block;
}

.admin-profile-chip small {
    color: var(--maroon);
    font-size: 12px;
    font-weight: 700;
}

.profile-menu {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 170px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: #fff0f5;
    color: var(--maroon);
}

.dashboard-header button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.dashboard-header .admin-profile-chip {
    min-height: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff7fa;
    color: var(--ink);
}

.dashboard-header .profile-dropdown button {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
}

.dashboard-header .profile-dropdown button:hover {
    background: #fff0f5;
    color: var(--maroon);
}

.profile-form input[readonly] {
    background: #f7f2ed;
    color: var(--muted);
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff7fa;
}

.profile-preview img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    min-width: 72px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-soft);
}

.profile-preview > div {
    min-width: 0;
}

.profile-preview strong,
.profile-preview small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-preview small {
    margin-top: 4px;
    color: var(--muted);
}

.settings-media-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 16px;
    margin-bottom: 18px;
}

.settings-media-preview {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff7fa;
}

.settings-media-preview img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-soft);
}

.settings-media-preview.compact-preview {
    max-width: 210px;
    margin: 4px 0 10px;
}

.permission-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 220px;
}

.permission-pill-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff0f5;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 700;
}

.user-details-block {
    min-width: 220px;
}

.table-head {
    margin-bottom: 8px;
    background: #fff7fa;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.website-user-head {
    grid-template-columns: minmax(180px, 1.4fr) minmax(220px, 1.5fr) minmax(120px, .8fr) minmax(90px, .6fr) auto;
}

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

.stat-card {
    display: grid;
    gap: 12px;
}

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

.stat-card strong {
    font-size: 34px;
    color: var(--maroon);
}

.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 260px;
    z-index: 30;
    margin-top: 0;
    padding: 14px clamp(16px, 3vw, 34px);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .93);
    color: var(--muted);
    font-size: 13px;
    box-shadow: 0 -10px 30px rgba(17, 17, 17, .06);
    backdrop-filter: blur(14px);
}

.dashboard-footer a {
    color: var(--maroon);
    font-weight: 700;
}

.customer-sidebar {
    background: #fffaf6;
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .search-form {
        grid-column: 1 / -1;
        order: 5;
    }

    .search-form input {
        width: 100%;
    }

    .hero,
    .product-detail,
    .shop-layout,
    .promo-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .promo-card-soft {
        grid-template-columns: minmax(0, 1fr) 130px;
    }

    .dashboard-shell,
    .customer-dashboard {
        grid-template-columns: 1fr;
    }

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

    .dashboard-main {
        padding-bottom: 92px;
    }

    .dashboard-footer {
        left: 0;
    }

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

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

    .hero {
        min-height: auto;
    }

    .hero-image img {
        width: min(360px, 100%);
    }

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

    .showcase-tools {
        justify-content: flex-start;
        width: 100%;
    }

    .product-grid,
    .product-grid.compact,
    .review-grid,
    .contact-grid,
    .account-grid,
    .policy-grid,
    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-policy-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-submit-card,
    .review-admin-form,
    .admin-review-media,
    .review-upload-preview,
    .message-template-grid,
    .order-edit-form,
    .order-cancel-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters {
        position: static;
    }

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

@media (max-width: 640px) {
    .top-strip {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .site-header {
        grid-template-columns: 1fr auto auto;
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 19px;
    }

    .brand small {
        display: none;
    }

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

    .header-avatar {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }

    .cart-panel {
        width: min(430px, calc(100vw - 24px));
        height: 100svh;
        height: 100dvh;
        max-height: 100dvh;
        padding: 20px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .cart-open,
    .profile-link,
    .menu-toggle {
        padding-inline: 12px;
    }

    .cart-line {
        display: grid;
        grid-template-columns: 52px minmax(96px, 1fr) auto auto;
        gap: 8px;
        align-items: center;
    }

    .cart-line img {
        grid-row: 1 / 3;
        width: 52px;
        height: 62px;
        min-width: 52px;
    }

    .cart-line span {
        grid-column: 2 / -1;
        grid-row: 1;
        min-width: 0;
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .cart-line .cart-qty-control {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .cart-line small {
        font-size: 11px;
        line-height: 1.25;
    }

    .cart-qty-control {
        gap: 3px;
        padding: 3px;
    }

    .cart-qty-control button {
        width: 25px;
        height: 25px;
    }

    .cart-qty-control strong {
        min-width: 17px;
        font-size: 12px;
    }

    .cart-line .cart-remove {
        grid-column: 4;
        grid-row: 2;
        justify-self: end;
        width: 32px;
        height: 32px;
    }

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

    .payment-option {
        justify-content: center;
        min-height: 46px;
        padding: 10px;
        font-size: 12px;
    }

    .upi-payment-box {
        overflow: hidden;
    }

    .upi-payment-box img {
        width: min(100%, 180px);
        height: auto;
        aspect-ratio: 1;
    }

    .checkout-submit-button[hidden],
    [data-confirm-order][hidden] {
        display: none;
    }

    .profile-link span {
        display: none;
    }

    .site-profile-dropdown {
        right: -54px;
    }

    .price-filter,
    .price-filter label {
        width: 100%;
    }

    .price-filter input {
        flex: 1;
        width: auto;
    }

    .hero h1,
    .page-heading h1,
    .content-page h1 {
        font-size: 34px;
    }

    .detail-copy h1 {
        font-size: 30px;
    }

    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .promo-grid {
        padding-top: 22px;
    }

    .promo-card,
    .promo-card-soft {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .promo-card-soft img {
        width: 110px;
        height: 110px;
    }

    .product-grid,
    .product-grid.compact,
    .review-grid,
    .contact-grid,
    .account-grid,
    .site-footer,
    .policy-grid,
    .product-form,
    .review-submit-card,
    .review-admin-form,
    .admin-review-media,
    .review-upload-preview,
    .message-template-grid,
    .order-edit-form,
    .order-cancel-form,
    .checkout-address-card,
    .checkout-address-summary,
    .enhanced-contact-grid,
    .settings-phone-row,
    .variant-admin-head,
    .variant-admin-row,
    .table-row {
        grid-template-columns: 1fr;
    }

    .checkout-address-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .address-edit-button {
        width: 42px;
        align-self: flex-end;
    }

    .payment-option-row {
        flex-wrap: nowrap;
    }

    .dashboard-header {
        align-items: start;
        flex-direction: column;
    }

    .admin-profile-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-nav,
    .stat-grid,
    .customer-stat-grid,
    .customer-row,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .gallery-admin-row {
        grid-template-columns: 72px 1fr;
    }

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

    .category-band a {
        min-height: 76px;
        text-align: center;
    }

    .category-band span {
        justify-content: center;
    }

    .story-band,
    .section-title {
        align-items: start;
        flex-direction: column;
    }
}


.wishlist-inline-form {
    margin: 0;
}

.wishlist-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    width: 100%;
    border: 1px solid rgba(157, 15, 70, .18);
    border-radius: 10px;
    background: #fff7fa;
    color: var(--maroon);
    font-weight: 800;
    cursor: pointer;
}

.wishlist-toggle.active {
    background: var(--maroon);
    color: #fff;
}

.wishlist-toggle .ui-icon {
    width: 17px;
    height: 17px;
}

.product-action-stack {
    display: grid;
    gap: 10px;
}

.wishlist-toggle.large {
    min-height: 48px;
}

.verified-buyer-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #effaf4;
    color: #0f8a5f;
    font-size: .78rem;
    font-weight: 900;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .notice.flash-notice {
        right: 12px;
        bottom: 12px;
        width: min(360px, calc(100vw - 24px));
    }

    .auth-shell {
        width: min(520px, calc(100% - 20px));
        align-content: start;
        padding: 18px 0;
    }

    .auth-card {
        padding: 20px;
    }

    .auth-card .signup-form {
        grid-template-columns: 1fr;
    }
}


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

.admin-mini-stats article {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #fff7fa);
    box-shadow: 0 10px 26px rgba(65, 8, 28, .06);
}

.admin-mini-stats span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: .82rem;
}

.admin-mini-stats strong {
    display: block;
    margin-top: 4px;
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.admin-pagination button {
    min-height: 38px;
    border: 1px solid rgba(157, 15, 70, .2);
    border-radius: 999px;
    background: #fff;
    color: var(--maroon);
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}

.admin-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.admin-pagination span {
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 720px) {
    .admin-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-pagination {
        justify-content: center;
    }
}


.review-carousel {
    position: relative;
}

.review-carousel-track {
    overflow: hidden;
}

.review-carousel[data-count] .review-card {
    transition: transform .35s ease;
}

.review-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(65, 8, 28, .24);
    cursor: pointer;
    transform: translateY(-50%);
}

.review-carousel-arrow.prev {
    left: -22px;
}

.review-carousel-arrow.next {
    right: -22px;
}

.review-carousel-arrow:hover {
    background: #7d0a35;
}

@media (max-width: 900px) {
    .review-carousel-arrow.prev {
        left: -10px;
    }

    .review-carousel-arrow.next {
        right: -10px;
    }
}

@media (max-width: 720px) {
    .review-carousel-track.review-grid {
        grid-template-columns: 1fr;
    }

    .review-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.65rem;
    }
}


.admin-mini-stats article {
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-mini-stats article:hover,
.admin-mini-stats article.active-filter {
    transform: translateY(-2px);
    border-color: rgba(157, 15, 70, .42);
    box-shadow: 0 14px 32px rgba(65, 8, 28, .14);
}

.admin-mini-stats article.active-filter {
    background: var(--maroon);
}

.admin-mini-stats article.active-filter span,
.admin-mini-stats article.active-filter strong {
    color: #fff;
}

.activity-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    margin: 14px 0 18px;
    background: #f7f0ea;
    border-radius: 999px;
}

.activity-tabs a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
}

.activity-tabs a.active {
    background: var(--maroon);
    color: #fff;
    box-shadow: 0 12px 28px rgba(157, 15, 70, .18);
}

.activity-row {
    grid-template-columns: minmax(170px, 1fr) minmax(240px, 1.5fr) 130px 170px;
    background: linear-gradient(135deg, #fff, #fff7fb);
}

.activity-row .activity-main small,
.activity-row .activity-time small {
    color: var(--muted);
}

.activity-target small {
    display: inline;
    margin-left: 4px;
}

/* Responsive dashboard sidebar toggle */
.dashboard-sidebar-toggle,
.dashboard-sidebar-backdrop {
    display: none;
}

.dashboard-sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1800;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--maroon, #9c0d43);
    color: #fff;
    box-shadow: 0 14px 34px rgba(156, 13, 67, 0.28);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.dashboard-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    border: 0;
    background: rgba(20, 16, 14, 0.48);
}

@media (max-width: 980px) {
    .dashboard-shell,
    .customer-dashboard {
        grid-template-columns: 1fr !important;
    }

    .dashboard-sidebar-toggle {
        display: flex;
    }

    .dashboard-shell .dashboard-sidebar,
    .customer-dashboard .dashboard-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 1700;
        width: min(310px, 84vw);
        height: 100vh !important;
        max-height: 100vh;
        overflow-y: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(-106%);
        transition: transform 0.24s ease;
        box-shadow: 18px 0 45px rgba(39, 24, 15, 0.2);
    }

    .dashboard-shell.sidebar-open .dashboard-sidebar,
    .customer-dashboard.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-shell.sidebar-open .dashboard-sidebar-backdrop,
    .customer-dashboard.sidebar-open .dashboard-sidebar-backdrop {
        display: block;
    }

    .dashboard-shell .dashboard-main,
    .customer-dashboard .dashboard-main {
        padding-top: 74px;
    }
}

@media (max-width: 980px) {
    .dashboard-shell.sidebar-open .dashboard-sidebar-toggle,
    .customer-dashboard.sidebar-open .dashboard-sidebar-toggle {
        left: min(calc(310px - 23px), calc(84vw - 23px));
        box-shadow: 0 14px 34px rgba(156, 13, 67, 0.35);
    }
}
@media (max-width: 980px) {
    .dashboard-sidebar-toggle {
        top: 96px;
        left: 16px;
        width: 44px;
        height: 44px;
        border: 2px solid #fff;
    }

    .dashboard-sidebar-toggle span {
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .dashboard-sidebar-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .dashboard-sidebar-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .dashboard-sidebar-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .dashboard-shell.sidebar-open .dashboard-sidebar-toggle,
    .customer-dashboard.sidebar-open .dashboard-sidebar-toggle {
        top: 50%;
        left: min(calc(310px - 22px), calc(84vw - 22px));
        transform: translateY(-50%);
    }
}

@media (max-width: 980px) {
    .dashboard-sidebar-toggle {
        top: 16px;
        left: 16px;
        transform: none;
    }

    .dashboard-shell.sidebar-open .dashboard-sidebar-toggle,
    .customer-dashboard.sidebar-open .dashboard-sidebar-toggle {
        top: 50%;
        left: min(calc(310px - 22px), calc(84vw - 22px));
        transform: translateY(-50%);
    }
}

.order-row-actions {
    align-items: center;
    gap: 6px;
}

.print-copy-action {
    width: auto;
    min-width: 54px;
    padding: 8px 10px;
    gap: 5px;
}

.print-copy-action small {
    display: inline;
    color: inherit;
    font-size: 11px;
    font-weight: 900;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.coupon-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px dashed rgba(156, 13, 67, 0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #fff7fa 100%);
    box-shadow: 0 14px 30px rgba(88, 54, 34, 0.07);
}

.coupon-card strong,
.coupon-card p,
.coupon-card small {
    display: block;
    margin: 0;
}

.coupon-code {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8fff0;
    color: #008a3d;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.copy-coupon-button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 760px) {
    .order-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .print-copy-action {
        min-width: 92px;
        border-radius: 999px;
    }
}
