*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Fredoka", "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}


:root {
    --babyblue: #1E6C5E;
    /* main brand color */
    --softblue: #61CE70;
    /* Header Navbar */
    --iceblue: #F2FAFF;
    /* section background */

    --mintgreen: rgb(97, 207, 165);
    /* Primary button */
    --skyblue: #5FB6E5;
    /* button hover */
    --deepskyblue: #3FA4D8;
    /* button active */
    --white: #FFFFFF;
    /* text on primary button */

    --softwhite: #90ccec;
    /* Card background */
    --lightblue: #3FA4D8;
    /* Card border */
    --softgray: #FFFFFF;
    /* Card shadown tone */
    --deepblue: #1E90FF;
    /* Links and accents */
    --verylightblue: #E0F7FA;
    /* Hover states */

    --navhover: #A7D4F5;
    --navactive: #5FB6E5;

    --salesbadge: #FFBCD9;
    --lavender: #E6E6FA;
    --paleyellow: #FFF79A;



    --teal: #4db6ac;
    --teal-light: #e0f2f1;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f5fcff;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 16px rgba(0, 0, 0, .10);
}

body {
    /* font-family: 'Inter', system-ui, sans-serif; */
    color: var(--text);
    background: var(--iceblue);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mintgreen);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 500;
    transition: background .2s, transform .1s;
}

.btn-primary:hover {
    background: var(--teal);
}

.btn-primary:active {
    transform: scale(.80);
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}

.btn-outline:hover {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.btn-outline-sm {
    background: var(--bg-soft);
    color: var(--deepskyblue);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 16px;
    transition: transform .6s;
    font-weight: 500;
}

.btn-outline-sm:hover {
    transform: scale(1.1);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .15);
}

.btn-lg {
    padding: 13px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
}

.btn-ghost:hover {
    color: var(--text);
}

.mt-2 {
    margin-top: 8px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    transition: background .15s;
}

.btn-xs:hover {
    background: var(--bg-soft);
}

.btn-xs.btn-danger {
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-xs.btn-danger:hover {
    background: #fef2f2;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
}

.btn-remove:hover {
    color: #dc2626;
}

/* ─── Forms ─────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: border-color .2s;
    background: var(--bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--babyblue);
}

.form-input-file {
    font-size: 13px;
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.col-span-2 {
    grid-column: span 2;
}

.field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 3px;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.required {
    color: #dc2626;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.link {
    color: var(--babyblue);
    text-decoration: underline;
}

.link-sm {
    font-size: 13px;
    color: var(--babyblue);
}

.link-danger {
    color: #dc2626;
}

.link-danger:hover {
    text-decoration: underline;
}

.w-auto {
    width: auto;
}

/* ─── Alerts / Toasts ───────────────────────────── */
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    box-shadow: var(--shadow);
    pointer-events: none;
}

.toast-success {
    background: #166534;
    color: #fff;
}

.toast-error {
    background: #dc2626;
    color: #fff;
}

[x-cloak] {
    display: none !important;
}

/* ─── Badges ─────────────────────────────────────── */
.badge-status,
.badge-payment {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-processing {
    background: #dbeafe;
    color: #1e40af;
}

.badge-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-delivered {
    background: #dcfce7;
    color: #166534;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-default {
    background: var(--babyblue-light);
    color: #be185d;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-best-seller {
    background: #fef9c3;
    color: #854d0e;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-limited-edition {
    background: #f3e8ff;
    color: #6b21a8;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-hot-deal {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-primary-img {
    background: var(--babyblue-light);
    color: #be185d;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ─── Stars ──────────────────────────────────────── */
.star-on {
    color: #f59e0b;
}

.star-off {
    color: #d1d5db;
}

.review-stars-sm {
    font-size: 12px;
}

/* ─── Layout ─────────────────────────────────────── */
.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

.logo-icon {
    font-size: 16px;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* ─── Cart drawer ────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 400;
}

.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: #fff;
    z-index: 500;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-title {
    font-size: 18px;
    font-weight: 600;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    text-align: center;
}

.cart-empty-icon {
    color: var(--text-muted);
    opacity: .4;
}

.cart-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 14px;
    color: var(--babyblue);
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 2px;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--babyblue);
}

.qty-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-total-amount {
    font-weight: 700;
    color: var(--babyblue);
}

.cart-shipping-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ─── Home page ──────────────────────────────────── */
.home-page {}

.home-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.home-section-tinted {
    background: var(--bg-soft);
    max-width: 100%;
}

.home-section-tinted>* {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 24px;
}

/* .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--border);
} */

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.view-all-link {
    font-size: 16px;
    color: var(--deepskyblue);
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Hero */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .55) 0%, transparent 70%);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 560px;
}

.hero-fallback {
    min-height: 520px;
    background: linear-gradient(135deg, var(--babyblue-light), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fallback-content {
    text-align: center;
    padding: 40px;
}

.hero-fallback-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-fallback-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

.hero-arrow:hover {
    background: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: transparent;
    padding: 0;
}

.hero-dot-active {
    background: #fff;
    border-color: #fff;
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 60px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.category-card-img-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--babyblue-light);
    background: var(--bg-soft);
    transition: 1s transform ease-in-out;
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.category-card-name {
    font-size: 16px;
    font-weight: 500;
}

.category-card-img-wrap {
    transition: border-color .5s ease, transform .5s ease;
}

.category-card:hover .category-card-img-wrap:hover {
    border-color: var(--babyblue);
    border-style: solid;
    border-width: 4px;
    transform: scale(1.05);
}


/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s;
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.product-card:hover .product-card-img {
    transform: scale(1.04);
}

.product-card-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.second-product-card-tag {
    position: absolute;
    bottom: 8px;
    background-color: #88d8a6;
    color: #fff;
    padding: 2px 3px;
    border-radius: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 9;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.product-card-name:hover {
    color: var(--babyblue);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.price-sale {
    font-size: 16px;
    font-weight: 700;
    color: var(--babyblue);
}

.price-was {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add-cart-sm {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--babyblue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background .2s;
}

.btn-add-cart-sm:hover {
    background: #f082b0;
}

.btn-add-cart-sm:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color .2s, background .2s;
}

.wishlist-btn:hover,
.wishlist-btn-active {
    color: var(--babyblue);
    background: var(--babyblue-light);
}

/* Promo / promotion banners */
.promo-banner {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

.promo-banner-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.promo-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.promotion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promotion-card {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.promotion-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.promotion-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promotion-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .promotion-grid {
        grid-template-columns: 1fr;
    }
}

/* Trust strip */
.trust-strip {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item svg {
    color: var(--babyblue);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.trust-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Reviews strip */
.reviews-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.review-strip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-strip-stars {
    font-size: 16px;
}

.review-strip-comment {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    font-style: italic;
}

.review-strip-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.reviewer-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
}

.review-product-name {
    font-size: 12px;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--babyblue) 0%, #f082b0 100%);
    padding: 64px 24px;
    text-align: center;
}

.newsletter-inner {
    max-width: 540px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
}

.newsletter-input:focus {
    outline: 2px solid rgba(255, 255, 255, .6);
}

.newsletter-privacy {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    margin-top: 10px;
}

.newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.newsletter-success svg {
    opacity: .9;
}

.newsletter-success h3 {
    font-size: 22px;
    font-weight: 700;
}

.newsletter-success p {
    opacity: .85;
}

/* ─── Shop page ──────────────────────────────────── */
.shop-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.shop-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-count {
    font-size: 14px;
    color: var(--text-muted);
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    transition: background .15s;
}

.filter-item:hover {
    background: var(--skyblue);
}

.filter-item-active {
    background: var(--babyblue);
    color: var(--bg);
    font-weight: 500;
}

.shop-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-field:focus {
    outline: none;
    border-color: var(--babyblue);
}

.sort-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}

.price-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-main {}

.pagination-wrap {
    margin-top: 24px;
}

.empty-state {
    text-align: center;
    padding: 64px 0;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }
    
}

/* ─── Category hero ──────────────────────────────── */
.category-hero {
    position: relative;
    height: 280px;
    background: var(--bg-soft);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.category-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.category-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.category-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.category-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .8);
    margin-top: 8px;
}

.breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb-light span,
.breadcrumb-light a {
    color: rgba(255, 255, 255, .7);
}

.breadcrumb a:hover {
    color: var(--babyblue);
}

.subcategory-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.subcategory-pill {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    transition: border-color .2s;
}

.subcategory-pill:hover {
    border-color: var(--babyblue);
    color: var(--babyblue);
}

/* ─── Product detail ─────────────────────────────── */
.product-detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 24px;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}

.gallery-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    padding: 0;
}

.gallery-thumb:hover,
.thumb-active {
    border-color: var(--babyblue);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.rating-label {
    font-size: 13px;
    color: var(--text-muted);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.product-price-was {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-short-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-label {
    font-size: 14px;
    font-weight: 500;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
}

.color-swatch-active {
    border-color: var(--text);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: #fff;
}

.size-btn:hover,
.size-btn-active {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 12px;
}

.stock-warning {
    font-size: 13px;
    color: #b45309;
    background: #fef9c3;
    padding: 8px 12px;
    border-radius: var(--radius);
}

.stock-out {
    font-size: 13px;
    color: #dc2626;
}

.product-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-description-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.reviews-section {
    margin-top: 56px;
}

.reviews-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.review-form-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.review-form-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.star-picker {
    display: flex;
    gap: 6px;
    font-size: 28px;
    margin-bottom: 12px;
}

.star-pick {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.review-success {
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.review-prompt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.no-reviews {
    color: var(--text-muted);
    font-size: 14px;
}

.related-section {
    margin-top: 56px;
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─── Cart page ──────────────────────────────────── */
.cart-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-row-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cart-row-info {
    flex: 1;
}

.cart-row-name {
    font-size: 15px;
    font-weight: 500;
}

.cart-row-variant {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-row-price {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-row-subtotal {
    font-size: 16px;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

.cart-summary-col {}

.cart-summary-card {
    background: var(--verylightblue);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.cart-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.summary-row-total {
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 6px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.summary-meta {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.free-shipping-hint {
    font-size: 12px;
    color: #166534;
    padding: 6px 10px;
    border-radius: var(--radius);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── Auth pages ──────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--bg-soft);
}

.auth-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--babyblue);
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── Checkout ───────────────────────────────────── */
.checkout-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius);
}

.step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-active {
    color: var(--babyblue);
}

.step-active span {
    background: var(--babyblue);
    color: #fff;
}

.step-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.checkout-form-col {}

.checkout-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.checkout-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-summary-col {}

.saved-addresses {
    margin-bottom: 16px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
}

.address-option-selected {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.payment-option-selected {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.payment-option strong {
    font-size: 14px;
}

.payment-option p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-review-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-review-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.order-review-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.delivery-summary,
.payment-summary {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.delivery-summary h4,
.payment-summary p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── Account pages ──────────────────────────────── */
.account-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.account-header {
    margin-bottom: 28px;
}

.account-welcome {
    font-size: 14px;
    color: var(--text-muted);
}

.account-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.account-nav {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 80px;
}

.account-nav-link {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: background .15s;
}

.account-nav-link:hover {
    background: var(--babyblue-light);
    color: var(--babyblue);
}

.account-nav-active {
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-weight: 500;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.account-section {}

.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.address-card {
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-card-default {
    border-color: var(--babyblue);
}

.addr-name {
    font-weight: 600;
}

.addr-line {
    color: var(--text-muted);
}

.addr-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background .15s;
}

.filter-tab:hover,
.filter-tab-active {
    background: var(--babyblue-light);
    border-color: var(--babyblue);
    color: var(--babyblue);
}

.order-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.order-number {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.order-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-badges {
    display: flex;
    gap: 6px;
}

.order-card-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.order-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.order-total {
    font-size: 14px;
}

.back-link {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 12px;
}

.back-link:hover {
    color: var(--babyblue);
}

.order-tracker {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tracker-step-done {
    color: var(--babyblue);
}

.tracker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
}

.tracker-step-done .tracker-dot {
    background: var(--babyblue);
}

.tracker-line {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.tracker-line-done {
    background: var(--babyblue);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.order-detail-items {}

.order-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.order-detail-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.order-detail-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
}

.order-item-price {
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Admin layout ───────────────────────────────── */
.admin-body {
    background: #f8fafc;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--babyblue);
    border-bottom: 1px solid var(--border);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.admin-nav-link:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.admin-nav-active {
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-weight: 500;
}

.admin-nav-link-btn {
    width: 100%;
}

.admin-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 12px;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.admin-user {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-main {
    padding: 28px 28px;
    flex: 1;
}

.admin-page {}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-search {
    flex: 1;
    max-width: 360px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.admin-search:focus {
    outline: none;
    border-color: var(--babyblue);
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.admin-card-section-title {
    font-size: 15px;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: #f9fafb;
}

.admin-table td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-soft);
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.table-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-form-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.admin-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-orders-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.admin-card-half {
    grid-column: 1;
}

.order-detail-panel {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-sub-warn {
    color: #b45309;
}

.status-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
}

.status-bar-label {
    width: 90px;
    font-size: 13px;
}

.status-bar-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--babyblue);
    transition: width .4s;
}

.status-bar-pending {
    background: #f59e0b;
}

.status-bar-processing {
    background: #3b82f6;
}

.status-bar-shipped {
    background: #8b5cf6;
}

.status-bar-delivered {
    background: #22c55e;
}

.status-bar-cancelled {
    background: #ef4444;
}

.status-bar-count {
    width: 30px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.low-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.low-stock-row:last-child {
    border-bottom: none;
}

.low-stock-name {
    font-size: 13px;
}

.low-stock-qty {
    font-size: 13px;
    font-weight: 600;
}

.text-danger {
    color: #dc2626;
}

.text-warn {
    color: #b45309;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.font-mono {
    font-family: monospace;
}

.row-selected {
    background: #d5deee !important;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    background: #fff;
}

.status-select-pending {
    border-color: #f59e0b;
    color: #854d0e;
}

.status-select-processing {
    border-color: #3b82f6;
    color: #1e40af;
}

.status-select-shipped {
    border-color: #8b5cf6;
    color: #3730a3;
}

.status-select-delivered {
    border-color: #22c55e;
    color: #166534;
}

.status-select-cancelled {
    border-color: #ef4444;
    color: #991b1b;
}

.status-select-paid {
    border-color: #22c55e;
    color: #166534;
}

.status-select-failed {
    border-color: #ef4444;
    color: #991b1b;
}

.image-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.image-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.existing-img-wrap {
    position: relative;
}

.existing-img-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-direction: column;
}

.banner-preview {
    max-height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.banner-table-thumb {
    width: 80px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.toggle-btn {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.toggle-on {
    background: #dcfce7;
    color: #166534;
}

.toggle-off {
    background: #f3f4f6;
    color: #6b7280;
}

.review-comment-truncate {
    font-size: 13px;
    color: var(--text-muted);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.customer-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.customer-address-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.p-4 {
    padding: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-3 {
    margin-top: 12px;
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: #fff;
    /* margin-top: 64px; */
    margin-top: 0px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .7);
    transition: border-color .2s, color .2s;
}

.social-link:hover {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-payment-icons {
    display: flex;
    gap: 8px;
}

.payment-badge {
    background: rgba(255, 255, 255, .08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ── Policy / help pages ──────────────────────────────────────────────── */

/* Page hero banner */
.page-hero {
    background: var(--bg-soft, #fdf6f9);
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 48px 24px 40px;
}

.page-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 10px 0 12px;
    line-height: 1.15;
}

.page-hero-sub {
    font-size: 17px;
    color: var(--text-muted, #6b7280);
    max-width: 580px;
    line-height: 1.6;
}

/* Page outer wrapper */
.policy-page {}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Prose body */
.policy-body {
    max-width: 720px;
}

.policy-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text, #1a1a2e);
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body p {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.75;
    margin-bottom: 14px;
}

.policy-body a {
    color: var(--softblue, #f9a8c9);
    text-decoration: underline;
}

.policy-body strong {
    color: var(--text, #1a1a2e);
}

/* Bullet lists */
.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
}

.policy-list li {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.policy-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--softblue, #f9a8c9);
    flex-shrink: 0;
    margin-top: 8px;
}

/* Tables */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0 28px;
}

.policy-table th {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    background: var(--bg-soft, #fdf6f9);
    border-bottom: 2px solid var(--border, #e5e7eb);
    color: var(--text, #1a1a2e);
}

.policy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    color: var(--text-muted, #6b7280);
    vertical-align: top;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover td {
    background: var(--bg-soft, #fdf6f9);
}

/* Steps (returns page) */
.policy-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 28px;
}

.policy-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--softblue, #f9a8c9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-step strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text, #1a1a2e);
}

.policy-step p {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* Info box */
.policy-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.65;
    margin: 20px 0 28px;
}

.policy-info-box a {
    color: var(--softblue, #f9a8c9);
}

/* Highlight cards (shipping & returns) */
.policy-highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.policy-highlight-card {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-highlight-card svg {
    color: var(--softblue, #f9a8c9);
}

.policy-highlight-card strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a2e);
}

.policy-highlight-card span {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

/* "Still need help" block (FAQ) */
.policy-still-need-help {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-top: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.policy-still-need-help h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-still-need-help p {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 20px;
}






/* ═══════════════════════════════════════════════════════════════
   APPEND THIS ENTIRE FILE TO THE BOTTOM OF resources/css/app.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── Admin layout — responsive ──────────────────────────────── */

/* Sidebar backdrop on mobile */
.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 199;
}

/* Hamburger button in admin topbar */
.admin-hamburger {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.admin-hamburger:hover {
    background: var(--bg-soft);
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 16px 0 8px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* hamburger left, user right */
    gap: 12px;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: none;
    /* shown on mobile only */
}

.sidebar-close-btn:hover {
    background: var(--bg-soft);
}

/* Desktop (≥ 1024px): sidebar always visible, no overlay */
@media (min-width: 1024px) {
    .admin-layout {
        display: flex;
        min-height: 100vh;
    }

    .admin-sidebar {
        width: 240px;
        flex-shrink: 0;
        background: #fff;
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        /* on desktop we use CSS, not Alpine classes, for open/close */
        transform: none !important;
        transition: none;
    }

    .admin-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .admin-backdrop {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }
}

/* Mobile / tablet (< 1024px): sidebar is an off-canvas drawer */
@media (max-width: 1023px) {
    .admin-layout {
        display: block;
        /* stacked, not flex */
        min-height: 100vh;
    }

    .admin-content {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        background: #fff;
        border-right: 1px solid var(--border);
        z-index: 200;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        /* transition drives the slide-in/out */
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Alpine sets these classes via :class binding */
    .admin-sidebar-open {
        transform: translateX(0);
    }

    .admin-sidebar-closed {
        transform: translateX(-100%);
    }

    .sidebar-close-btn {
        display: flex;
    }

    .admin-main {
        padding: 20px 16px;
    }

    /* Stack stat cards to 2-column on tablet, 1-column on phone */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tables: allow horizontal scroll rather than breaking layout */
    .admin-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Stack two-column admin forms */
    .admin-two-col,
    .admin-orders-layout {
        grid-template-columns: 1fr;
    }

    /* Form grids collapse to single column */
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-toolbar {
        flex-wrap: wrap;
    }

    .admin-search {
        max-width: 100%;
        width: 100%;
    }
}

/* ─── Shop page — responsive ─────────────────────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
    align-items: start;
}

.shop-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-count {
    font-size: 14px;
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .shop-sidebar {
        /* Hidden by default on mobile, toggled by the Filters button */
        display: none;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 16px;
    }

    .shop-sidebar.sidebar-open {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .shop-header {
        padding: 16px 16px 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ─── Empty state ─────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    gap: 8px;
}

/* ─── Filter section (sidebar) ────────────────────────────────── */
.filter-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.filter-item:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.filter-item-active {
    background: var(--pink-light);
    color: var(--pink);
    font-weight: 500;
}

/* ─── Page hero (help pages) ──────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--pink);
}

/* ─── qty controls (cart) ─────────────────────────────────────── */
.qty-control {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text);
    transition: background .15s;
    line-height: 1;
}

.qty-btn:hover:not(:disabled) {
    background: var(--bg-soft);
}

.qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 0 4px;
}

.tax-label-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 4px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tax-info-tooltip {
    cursor: help;
    color: var(--text-muted);
    font-style: normal;
}

/* ── Slide-over section blocks ───────────────────────────────────── */
.slideover-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.slideover-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.slideover-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* ── Table helpers ───────────────────────────────────────────────── */
.table-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-soft);
}
.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.table-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Small buttons ───────────────────────────────────────────────── */
.btn-xs {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.btn-xs:hover {
    background: var(--bg-soft);
    border-color: var(--pink);
    color: var(--pink);
}
.btn-xs.btn-danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    padding: 5px 12px;
    font-size: 12px;
}
.btn-xs.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}
.btn-xs-active {
    background: var(--pink-light);
    border-color: var(--pink);
    color: var(--pink);
}

/* ── Status badges ───────────────────────────────────────────────── */
.badge-active   { display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;background:#dcfce7;color:#166534; }
.badge-inactive { display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;background:#f3f4f6;color:#6b7280; }

.badge-payment, .badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-paid       { background:#dcfce7;color:#166534; }
.badge-pending    { background:#fef9c3;color:#854d0e; }
.badge-failed     { background:#fee2e2;color:#dc2626; }
.badge-cancelled  { background:#f3f4f6;color:#6b7280; }
.badge-refunded   { background:#ede9fe;color:#6d28d9; }
.badge-processing { background:#dbeafe;color:#1d4ed8; }
.badge-shipped    { background:#e0f2fe;color:#0369a1; }
.badge-delivered  { background:#dcfce7;color:#166534; }

/* ── Price display ───────────────────────────────────────────────── */
.price-sale { color: var(--pink); font-weight: 700; margin-right: 4px; }
.price-was  { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }
.text-danger { color: #dc2626; font-weight: 600; }

/* ── Image upload previews ───────────────────────────────────────── */
.form-input-file {
    display: block;
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
}
.image-preview-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.image-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}
.existing-img-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.existing-img-actions {
    display: flex;
    gap: 4px;
}
.badge-primary-img {
    font-size: 10px;
    background: var(--pink);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Form helpers ────────────────────────────────────────────────── */
.required { color: #dc2626; margin-left: 2px; }
.optional { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination-wrap {
    padding: 16px 0 4px;
}

/* ── Admin page structure ────────────────────────────────────────── */
.admin-page {
    padding: 24px 28px;
    max-width: 1300px;
}
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.admin-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.admin-search {
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}
.admin-search:focus {
    outline: none;
    border-color: var(--pink);
}
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.admin-card-header h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.text-sm   { font-size: 13px; }
.text-muted { color: var(--text-muted); }

/* ── Admin sidebar ───────────────────────────────────────────────── */
.admin-body { margin: 0; background: var(--bg-soft); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.admin-sidebar-inner { display:flex;flex-direction:column;height:100%; }
.admin-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.admin-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.admin-nav-link:hover { background: var(--bg-soft); color: var(--text); }
.admin-nav-active     { background: var(--pink-light) !important; color: var(--pink) !important; font-weight: 600; }
.admin-nav-link-btn   { font-size: 14px; }
.admin-sidebar-footer { padding: 10px 8px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 20px 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-user { font-size: 14px; font-weight: 500; color: var(--text); }
.admin-hamburger {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.admin-hamburger:hover { background: var(--bg-soft); }
.admin-main { flex: 1; overflow-y: auto; }
.sidebar-close-btn { display: none; background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199; }

/* Mobile admin sidebar */
@media (max-width: 1023px) {
    .admin-layout    { display: block; }
    .admin-content   { display: flex; flex-direction: column; min-height: 100vh; }
    .admin-sidebar   { position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; }
    .admin-sidebar-open   { transform: translateX(0); }
    .admin-sidebar-closed { transform: translateX(-100%); }
    .sidebar-close-btn { display: flex; }
    .admin-page { padding: 16px; }
}
@media (min-width: 1024px) {
    .admin-sidebar { transform: none !important; }
    .admin-backdrop { display: none !important; }
    .sidebar-close-btn { display: none !important; }
}
@media (max-width: 640px) {
    .admin-page-header { flex-direction: column; align-items: flex-start; }
    .admin-toolbar { gap: 8px; }
    .admin-search  { max-width: 100%; }
    .admin-card    { overflow-x: auto; }
    .admin-table   { min-width: 600px; }
}
.admin-modal-backdrop,
.admin-slideover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-modal-overlay,
.admin-slideover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ── Modal panel ─────────────────────────────────────────────────── */
.admin-modal-panel {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
                0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* ── Slide-over panel ────────────────────────────────────────────── */
.admin-slideover-backdrop {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.admin-slideover-panel {
    position: relative;
    z-index: 10;
    background: #fff;
    height: 100%;
    max-width: 100%;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Shared header ───────────────────────────────────────────────── */
.admin-modal-header,
.admin-slideover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
    background: #fff;
}

.admin-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
    margin: 0;
}

.admin-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-soft, #f8fafc);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.admin-modal-close:hover {
    background: var(--border, #e5e7eb);
    color: var(--text, #1a1a2e);
}

/* ── Shared body (scrollable) ────────────────────────────────────── */
.admin-modal-body,
.admin-slideover-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border, #e5e7eb) transparent;
}
.admin-modal-body::-webkit-scrollbar,
.admin-slideover-body::-webkit-scrollbar {
    width: 6px;
}
.admin-modal-body::-webkit-scrollbar-track,
.admin-slideover-body::-webkit-scrollbar-track {
    background: transparent;
}
.admin-modal-body::-webkit-scrollbar-thumb,
.admin-slideover-body::-webkit-scrollbar-thumb {
    background: var(--border, #e5e7eb);
    border-radius: 3px;
}

/* ── Modal footer (sticky at bottom) ────────────────────────────── */
.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
}

/* ── Toast / success notification ───────────────────────────────── */
/* Shown briefly after save — replaces the old page-scroll alert */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    max-width: 360px;
}
.admin-toast-success { background: #166534; }
.admin-toast-error   { background: #dc2626; }
.admin-toast svg     { flex-shrink: 0; }

/* ── Table row hover + action reveal ────────────────────────────── */
/* Actions are always visible but highlighted on row hover */
.admin-table tbody tr {
    transition: background 0.1s;
}
.admin-table tbody tr:hover {
    background: var(--bg-soft, #fdf6f9);
}

/* ── Danger button (reusable) ────────────────────────────────────── */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius, 8px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-danger:hover    { background: #b91c1c; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .admin-modal-panel {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }
    .admin-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }
    .admin-slideover-panel {
        width: 100% !important;
    }
}
.tax-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}
.tax-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 3px;
}
.tax-filter-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s;
    font-weight: 500;
}
.tax-filter-tab-active {
    background: var(--babyblue);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.tax-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Summary cards ───────────────────────────────────────── */
.tax-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
}
.tax-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.tax-stat-primary {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.tax-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}
.tax-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -.5px;
}
.tax-stat-primary .tax-stat-value { color: #166534; }
.tax-stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Filing notice ───────────────────────────────────────── */
.tax-filing-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin-top: 20px;
}
.tax-filing-notice svg { flex-shrink: 0; margin-top: 2px; color: #d97706; }
.tax-filing-notice a  { color: #d97706; font-weight: 500; }

/* ── Bar chart ───────────────────────────────────────────── */
.tax-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 8px 0 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.tax-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.tax-bar-amount {
    font-size: 10px;
    color: var(--text-muted);
    min-height: 14px;
    text-align: center;
}
.tax-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}
.tax-bar-fill {
    width: 100%;
    background: var(--pink, #f9a8c9);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height .3s ease;
}
.tax-bar-current .tax-bar-fill { background: #166534; }
.tax-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.tax-bar-count { font-size: 10px; }

/* ── Table helpers ───────────────────────────────────────── */
.tr-highlight td { background: #f0fdf4; }
.tr-total td {
    background: var(--bg-soft);
    border-top: 2px solid var(--border);
    font-size: 14px;
}
.badge-current {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.admin-page-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tax-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tax-summary-grid { grid-template-columns: 1fr; }
    .tax-filter-bar   { flex-direction: column; align-items: flex-start; }
    .tax-bar-amount   { display: none; }
}

/* ── Pagination ──────────────────────────────────────────────────── */

.my-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

.my-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.my-pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.my-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}

.my-page-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.my-page-active {
    background: #dbeafe;
    border-color: #dbeafe;
    color: #1d4ed8;
    pointer-events: none;
}

.my-page-active:hover {
    background: var(--pink, #f9a8c9);
    color: #ffffff;
}

.my-page-disabled {
    color: #d1d5db;
    border-color: #f3f4f6;
    background: #f9fafb;
    pointer-events: none;
    cursor: default;
}

.my-page-dots {
    border-color: transparent;
    background: transparent;
    color: #9ca3af;
    pointer-events: none;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .my-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}
