/* ------------------------------------------------------------------ */ 

/* Rakhi For A Cause — blue & white NGO theme                          */ 

/* ------------------------------------------------------------------ */ 

 

:root { 

    --blue-900: #0b3d91; 

    --blue-700: #1560bd; 

    --blue-500: #2a7de1; 

    --blue-300: #6ba7e8; 

    --blue-050: #eaf2fc; 

    --ink: #1c2733; 

    --muted: #5c6b7a; 

    --line: #dbe4ee; 

    --white: #ffffff; 

    --danger: #c0392b; 

    --success: #1e8449; 

    --shadow: 0 2px 10px rgba(11, 61, 145, 0.08); 

    --radius: 10px; 

} 

 

* { box-sizing: border-box; } 

 

body { 

    margin: 0; 

    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 

    color: var(--ink); 

    background: var(--blue-050); 

    line-height: 1.5; 

} 

 

.container { 

    width: 100%; 

    max-width: 1080px; 

    margin: 0 auto; 

    padding: 0 18px; 

} 

 

a { color: var(--blue-700); text-decoration: none; } 

a:hover { text-decoration: underline; } 

 

/* ---------- Header ---------- */ 

.site-header { 

    background: var(--white); 

    border-bottom: 3px solid var(--blue-700); 

    box-shadow: var(--shadow); 

    position: sticky; 

    top: 0; 

    z-index: 50; 

} 

.header-inner { 

    display: flex; 

    align-items: center; 

    justify-content: space-between; 

    padding-top: 12px; 

    padding-bottom: 12px; 

} 

.brand { 

    display: flex; 

    align-items: center; 

    gap: 8px; 

    font-size: 1.3rem; 

    color: var(--blue-900); 

} 

.brand:hover { text-decoration: none; } 

.brand-mark { font-size: 1.5rem; } 

.brand-logo { height: 46px; width: auto; display: block; } 

.brand-text { display: flex; flex-direction: column; line-height: 1.12; } 

.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--blue-900); } 

.brand-tag { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; } 

 

@media (max-width: 520px) { 

    .brand-logo { height: 38px; } 

    .brand-name { font-size: 1rem; } 

    .brand-tag { font-size: 0.66rem; } 

} 

 

.nav { display: flex; align-items: center; gap: 22px; } 

.nav a { font-weight: 600; color: var(--ink); } 

.cart-link { position: relative; } 

.cart-badge { 

    background: var(--blue-700); 

    color: #fff; 

    border-radius: 999px; 

    padding: 1px 8px; 

    font-size: 0.75rem; 

    margin-left: 2px; 

    vertical-align: top; 

    display: inline-block; 

} 

.cart-badge[hidden] { display: none; } 

.cart-badge-pulse { animation: badgePulse 0.5s ease; } 

@keyframes badgePulse { 

    0% { transform: scale(1); } 

    40% { transform: scale(1.5); background: var(--success); } 

    100% { transform: scale(1); } 

} 

 

/* ---------- Main / footer ---------- */ 

.main-content { padding: 26px 18px 60px; min-height: 60vh; } 

 

.site-footer { 

    background: var(--blue-900); 

    color: #dce8fb; 

    padding: 26px 0; 

    text-align: center; 

    font-size: 0.92rem; 

} 

.site-footer a { color: #a9c9f5; } 

.footer-sub { margin-top: 8px; font-size: 0.82rem; opacity: 0.8; } 

 

/* ---------- Floating toast notifications ---------- */ 

.toast-container { 

    position: fixed; 

    top: 84px; 

    right: 18px; 

    z-index: 1000; 

    display: flex; 

    flex-direction: column; 

    gap: 10px; 

    max-width: min(360px, calc(100vw - 36px)); 

    pointer-events: none; 

} 

.toast { 

    pointer-events: auto; 

    padding: 13px 16px; 

    border-radius: var(--radius); 

    font-weight: 500; 

    font-size: 0.94rem; 

    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.22); 

    cursor: pointer; 

    opacity: 1; 

    transform: translateX(0); 

    transition: opacity 0.28s ease, transform 0.28s ease; 

    border-left: 5px solid transparent; 

} 

/* JS adds this to newly-created toasts for a slide-in; removed on next frame */ 

.toast-enter { opacity: 0; transform: translateX(30px); } 

.toast-hide { opacity: 0; transform: translateX(30px); } 

.toast-success { background: #e6f4ea; color: var(--success); border-left-color: var(--success); } 

.toast-error { background: #fdeaea; color: var(--danger); border-left-color: var(--danger); } 

 

@media (max-width: 520px) { 

    .toast-container { 

        top: auto; 

        bottom: 16px; 

        left: 12px; 

        right: 12px; 

        max-width: none; 

        align-items: stretch; 

    } 

} 

 

/* ---------- Cause banner ---------- */ 

.cause-banner { 

    background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); 

    color: #fff; 

    border-radius: 14px; 

    padding: 34px 30px; 

    margin-bottom: 34px; 

    box-shadow: var(--shadow); 

} 

.cause-banner h1 { margin: 0 0 10px; font-size: 1.9rem; } 

.cause-lead { max-width: 720px; margin: 0 0 18px; opacity: 0.95; } 

.cause-points { 

    list-style: none; 

    padding: 0; 

    margin: 0; 

    display: grid; 

    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); 

    gap: 8px 22px; 

} 

.cause-points li { 

    background: rgba(255, 255, 255, 0.12); 

    padding: 8px 12px; 

    border-radius: 8px; 

    font-size: 0.95rem; 

} 

 

/* ---------- Section titles ---------- */ 

.section-title { 

    font-size: 1.5rem; 

    color: var(--blue-900); 

    margin: 0 0 18px; 

    padding-bottom: 8px; 

    border-bottom: 2px solid var(--line); 

} 

 

.collection-head { 

    display: flex; 

    align-items: center; 

    justify-content: space-between; 

    flex-wrap: wrap; 

    gap: 10px; 

} 

.collection-head .section-title { margin-bottom: 0; border-bottom: none; } 

.sort-form { display: flex; align-items: center; gap: 8px; } 

.sort-form label { font-size: 0.9rem; color: var(--muted); font-weight: 600; } 

.sort-form select { 

    padding: 8px 12px; 

    border: 1px solid var(--line); 

    border-radius: 7px; 

    font-size: 0.92rem; 

    font-family: inherit; 

    background: #fff; 

    color: var(--ink); 

    cursor: pointer; 

} 

.sort-form select:focus { 

    outline: none; 

    border-color: var(--blue-500); 

    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.15); 

} 

.collection-note { 

    color: var(--muted); 

    max-width: 760px; 

    margin: 10px 0 20px; 

    font-size: 0.98rem; 

} 

 

/* ---------- Shop-by-category tiles ---------- */ 

.category-tiles-wrap { margin: 28px 0 8px; } 

.category-tiles { 

    display: grid; 

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 

    gap: 16px; 

} 

.category-tile { 

    display: flex; 

    flex-direction: column; 

    align-items: center; 

    text-align: center; 

    gap: 8px; 

    padding: 14px 12px; 

    background: var(--white); 

    border: 1px solid var(--line); 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    text-decoration: none; 

    color: var(--ink); 

    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; 

} 

.category-tile:hover { 

    transform: translateY(-3px); 

    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.14); 

    border-color: var(--blue-500); 

} 

.category-tile .ct-thumb { 

    width: 84px; 

    height: 84px; 

    border-radius: 50%; 

    overflow: hidden; 

    background: var(--blue-050); 

    display: flex; 

    align-items: center; 

    justify-content: center; 

} 

.category-tile .ct-thumb img { width: 100%; height: 100%; object-fit: cover; } 

.category-tile .ct-name { font-weight: 700; color: var(--blue-900); } 

.category-tile .ct-count { font-size: 0.82rem; color: var(--muted); } 

 

/* Grouped type sections: offset anchor jumps so the heading clears the header. */ 

.type-section { margin-top: 2.2rem; scroll-margin-top: 90px; } 

.type-count { font-weight: 500; color: var(--muted); font-size: 1rem; } 

 

/* ---------- Product grid ---------- */ 

.product-grid { 

    display: grid; 

    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 

    gap: 20px; 

} 

.product-card { 

    background: var(--white); 

    border-radius: var(--radius); 

    overflow: hidden; 

    box-shadow: var(--shadow); 

    display: flex; 

    flex-direction: column; 

    border: 1px solid var(--line); 

    transition: transform 0.15s ease, box-shadow 0.15s ease; 

} 

.product-card:hover { 

    transform: translateY(-3px); 

    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.14); 

} 

.product-image { 

    position: relative; 

    background: var(--blue-050); 

    aspect-ratio: 4 / 3; 

    display: flex; 

    align-items: center; 

    justify-content: center; 

} 

.product-image img { width: 100%; height: 100%; object-fit: cover; } 

.zoomable { cursor: zoom-in; } 

.zoom-badge { 

    position: absolute; 

    bottom: 8px; 

    right: 8px; 

    background: rgba(11, 61, 145, 0.78); 

    color: #fff; 

    font-size: 0.95rem; 

    line-height: 1; 

    padding: 6px 8px; 

    border-radius: 6px; 

    pointer-events: none; 

} 

 

/* ---------- Lightbox (click-to-expand product images) ---------- */ 

.lightbox { 

    position: fixed; 

    inset: 0; 

    background: rgba(11, 61, 145, 0.9); 

    display: none; 

    align-items: center; 

    justify-content: center; 

    z-index: 2000; 

    padding: 24px; 

} 

.lightbox.open { display: flex; } 

.lightbox-img { 

    max-width: 92vw; 

    max-height: 86vh; 

    object-fit: contain; 

    background: #fff; 

    border-radius: 8px; 

    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45); 

    cursor: zoom-in; 

    transition: transform 0.15s ease; 

} 

.lightbox-img.zoomed { cursor: zoom-out; transform: scale(2.4); } 

.lightbox-close { 

    position: fixed; 

    top: 14px; 

    right: 20px; 

    width: 46px; 

    height: 46px; 

    border: none; 

    border-radius: 50%; 

    background: rgba(255, 255, 255, 0.16); 

    color: #fff; 

    font-size: 2rem; 

    line-height: 1; 

    cursor: pointer; 

} 

.lightbox-close:hover { background: rgba(255, 255, 255, 0.32); } 

.lightbox-hint { 

    position: fixed; 

    bottom: 16px; 

    left: 0; 

    right: 0; 

    text-align: center; 

    color: rgba(255, 255, 255, 0.82); 

    font-size: 0.85rem; 

} 

.product-tag { 

    position: absolute; 

    top: 10px; 

    left: 10px; 

    background: var(--blue-700); 

    color: #fff; 

    font-size: 0.72rem; 

    padding: 3px 9px; 

    border-radius: 999px; 

} 

.featured-badge { 

    position: absolute; 

    top: 10px; 

    right: 10px; 

    background: linear-gradient(135deg, #f6a609, #e8850c); 

    color: #fff; 

    font-size: 0.72rem; 

    font-weight: 700; 

    padding: 3px 9px; 

    border-radius: 999px; 

    box-shadow: 0 1px 4px rgba(0,0,0,0.18); 

} 

.product-body { padding: 15px; display: flex; flex-direction: column; flex: 1; } 

.product-code { 

    display: inline-block; 

    font-size: 0.7rem; 

    font-weight: 700; 

    color: var(--blue-700); 

    background: var(--blue-050); 

    padding: 2px 9px; 

    border-radius: 999px; 

    margin-bottom: 6px; 

    letter-spacing: 0.04em; 

} 

.product-body h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--blue-900); } 

.cart-code { color: var(--muted); font-weight: 600; font-size: 0.78rem; } 

.product-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; flex: 1; white-space: normal; overflow-wrap: break-word; word-break: break-word; } 

.product-meta { 

    display: flex; 

    align-items: center; 

    justify-content: space-between; 

    margin-bottom: 12px; 

    margin-top: auto; /* keep price + button bottom-aligned when no description */ 

} 

.price { font-size: 1.25rem; font-weight: 700; color: var(--blue-700); } 

.stock { font-size: 0.8rem; font-weight: 600; } 

.in-stock { color: var(--success); } 

.out-stock { color: var(--danger); } 

 

.add-form { display: flex; align-items: center; gap: 8px; } 

.qty-label { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 4px; } 

.qty-input { 

    width: 58px; 

    padding: 7px; 

    border: 1px solid var(--line); 

    border-radius: 6px; 

    font-size: 0.95rem; 

    text-align: center; 

} 

 

/* ---------- Buttons ---------- */ 

.btn { 

    display: inline-block; 

    border: none; 

    border-radius: 8px; 

    padding: 10px 16px; 

    font-size: 0.95rem; 

    font-weight: 600; 

    cursor: pointer; 

    text-align: center; 

    white-space: nowrap; 

    transition: background 0.15s ease; 

} 

.btn-primary { background: var(--blue-700); color: #fff; flex: 1; } 

.btn-primary:hover { background: var(--blue-900); text-decoration: none; } 

.btn-added { background: var(--success) !important; color: #fff !important; } 

.btn-failed { background: var(--danger) !important; color: #fff !important; } 

.btn-secondary { background: #fff; color: var(--blue-700); border: 1px solid var(--blue-700); } 

.btn-secondary:hover { background: var(--blue-050); text-decoration: none; } 

.btn-disabled { background: #cfd8e3; color: #7d8895; width: 100%; cursor: not-allowed; } 

.btn-small { padding: 6px 11px; font-size: 0.82rem; background: var(--blue-500); color: #fff; } 

.btn-small:hover { background: var(--blue-700); } 

.btn-link { background: none; color: var(--danger); padding: 6px 4px; } 

.btn-link:hover { text-decoration: underline; } 

.btn-block { width: 100%; margin-top: 8px; } 

 

/* ---------- Cart ---------- */ 

.cart-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); } 

.cart-table { width: 100%; border-collapse: collapse; min-width: 620px; } 

.cart-table th, .cart-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); } 

.cart-table th { background: var(--blue-050); color: var(--blue-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; } 

.cart-product { display: flex; align-items: center; gap: 12px; } 

.cart-product img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; } 

.inline-form { display: flex; align-items: center; gap: 6px; } 

 

.cart-summary { 

    margin-top: 20px; 

    background: #fff; 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 18px; 

    display: flex; 

    align-items: center; 

    justify-content: space-between; 

    flex-wrap: wrap; 

    gap: 14px; 

} 

.cart-total { font-size: 1.3rem; } 

.cart-total strong { color: var(--blue-700); } 

.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; } 

 

.empty-state { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); } 

.empty-state p { color: var(--muted); margin-bottom: 16px; } 

 

/* ---------- Checkout ---------- */ 

.checkout-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; } 

.checkout-form, .order-summary { 

    background: #fff; 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 22px; 

} 

.checkout-form h3 { color: var(--blue-900); margin: 4px 0 14px; } 

.checkout-form h3:not(:first-child) { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; } 

.checkout-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem; } 

.checkout-form input, .checkout-form textarea { 

    width: 100%; 

    margin-top: 5px; 

    padding: 10px 12px; 

    border: 1px solid var(--line); 

    border-radius: 7px; 

    font-size: 0.98rem; 

    font-family: inherit; 

} 

.checkout-form input:focus, .checkout-form textarea:focus { 

    outline: none; 

    border-color: var(--blue-500); 

    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.15); 

} 

.req { color: var(--danger); } 

.optional { color: var(--muted); font-weight: 400; font-size: 0.82rem; } 

 

.upi-box { display: flex; gap: 18px; background: var(--blue-050); border-radius: 8px; padding: 16px; flex-wrap: wrap; } 

.upi-qr img { width: 150px; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); } 

.upi-qr-fallback { width: 150px; padding: 12px; font-size: 0.8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; background: #fff; } 

.upi-details { flex: 1; min-width: 200px; } 

.upi-details p { margin: 4px 0; } 

.upi-id { font-family: monospace; background: #fff; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); } 

.upi-note { font-size: 0.86rem; color: var(--muted); margin-top: 10px; } 

 

/* Payment method options */ 

.pay-methods { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } 

.pay-option { 

    display: flex; align-items: center; gap: 8px; 

    padding: 10px 16px; border: 2px solid var(--line); border-radius: 8px; 

    cursor: pointer; font-weight: 600; margin: 0; flex: 1; min-width: 120px; 

} 

.pay-option input { width: auto; margin: 0; } 

.pay-option:has(input:checked) { border-color: var(--blue-500); background: var(--blue-050); } 

.cash-note { background: var(--blue-050); border-radius: 8px; padding: 14px; font-size: 0.9rem; color: var(--ink); } 

.pay-made { 

    display: flex !important; align-items: center; gap: 10px; 

    margin-top: 16px; font-weight: 600; cursor: pointer; 

    background: #fff; border: 1px dashed var(--blue-300); border-radius: 8px; padding: 12px 14px; 

} 

.pay-made input { width: auto; margin: 0; } 

 

/* WhatsApp buttons (free click-to-send) */ 

.btn-whatsapp { background: #25d366; color: #fff; } 

.btn-whatsapp:hover { background: #1eb457; text-decoration: none; } 

.btn-whatsapp-outline { background: #fff; color: #128c4a; border: 1px solid #25d366; } 

.btn-whatsapp-outline:hover { background: #eafaf0; text-decoration: none; } 

.btn-wa-sm { background: #25d366; color: #fff; margin-top: 6px; display: inline-block; } 

.btn-wa-sm:hover { background: #1eb457; text-decoration: none; } 

.wa-actions { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; } 

.wa-title { font-weight: 600; color: var(--blue-900); margin: 0 0 2px; } 

.confirm-note { 

    background: #fdf6e3; border: 1px solid #efe0b0; color: #7a5c00; 

    border-radius: 8px; padding: 12px 14px; font-size: 0.86rem; margin: 0 0 18px; text-align: left; 

} 

.declared { color: var(--success); font-size: 0.76rem; font-weight: 600; } 

 

.summary-list { list-style: none; padding: 0; margin: 0 0 14px; } 

.summary-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; } 

.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); padding: 4px 0; } 

.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; color: var(--blue-700); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); } 

.delivery-note { margin: -8px 0 14px; font-size: 0.82rem; color: var(--blue-700); font-weight: 600; min-height: 1.1em; } 

 

/* ---------- Confirmation ---------- */ 

.confirmation { max-width: 640px; margin: 0 auto; text-align: center; } 

.confirm-check { 

    width: 66px; height: 66px; line-height: 66px; 

    margin: 0 auto 14px; 

    background: var(--success); color: #fff; 

    border-radius: 50%; font-size: 2rem; 

} 

.confirm-lead { color: var(--muted); margin-bottom: 22px; } 

.confirm-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: left; margin-bottom: 22px; } 

.confirm-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); } 

.confirm-items { width: 100%; border-collapse: collapse; margin: 16px 0; } 

.confirm-items th, .confirm-items td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; } 

.confirm-items th { color: var(--blue-900); } 

.confirm-items tfoot td { font-size: 1rem; } 

.confirm-pay { background: var(--blue-050); padding: 12px; border-radius: 8px; font-size: 0.9rem; } 

 

/* ---------- Badges ---------- */ 

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; } 

.badge-pending { background: #fdf0d5; color: #9a6700; } 

.badge-paid { background: #e6f4ea; color: var(--success); } 

.badge-cancelled { background: #fbe4e4; color: #b42318; text-decoration: line-through; } 

.badge-shipped { background: #e3edfb; color: #1a56b0; } 

.badge-labeled { background: #ede7f6; color: #5e35b1; } 

.badge-packed { background: #e0f2f1; color: #00796b; } 

.badge-featured { background: #fff3d6; color: #b26a00; } 

.status-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; } 

.status-form select { font-size: 0.85rem; padding: 2px 4px; } 

.label-toolbar { display: flex; align-items: center; gap: 16px; margin: 10px 0; } 

.delivery-note-form { display: flex; align-items: center; gap: 6px; } 

.delivery-note-input { font-size: 0.82rem; padding: 4px 6px; width: 130px; } 

 

/* Cancel-order action + voided note */ 

.btn-danger { color: #b42318 !important; } 

.btn-danger:hover { color: #8a1a12 !important; } 

.admin-table .muted { color: var(--muted); font-size: 0.8rem; font-style: italic; } 

 

/* ---------- Admin ---------- */ 

.admin-header { display: flex; align-items: center; justify-content: space-between; } 

.admin-hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; } 

.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); } 

.admin-table { width: 100%; border-collapse: collapse; min-width: 940px; font-size: 0.88rem; } 

.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; } 

.admin-table th { background: var(--blue-050); color: var(--blue-900); position: sticky; top: 0; } 

.admin-table .mono { font-family: monospace; font-size: 0.8rem; } 

.admin-table .addr { max-width: 180px; font-size: 0.82rem; color: var(--muted); } 

.item-list { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; } 

.item-list li { padding: 1px 0; } 

 

/* ---------- Admin: product management ---------- */ 

.admin-nav { display: flex; align-items: center; gap: 12px; } 

.sub-head { color: var(--blue-900); margin: 26px 0 14px; } 

 

/* Sticky "Save All" bar on the Products admin page. */ 

.save-all-bar { 

    position: sticky; 

    top: 0; 

    z-index: 6; 

    display: flex; 

    align-items: center; 

    justify-content: space-between; 

    flex-wrap: wrap; 

    gap: 12px; 

    background: var(--blue-050); 

    border: 1px solid var(--line); 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 12px 16px; 

    margin-bottom: 16px; 

} 

.save-all-bar .sab-hint { font-size: 0.9rem; color: var(--muted); } 

.save-all-bar .sab-hint em { font-style: normal; color: var(--blue-700); } 

.save-all-bar .btn { white-space: nowrap; } 

 

.add-product { 

    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 

    box-shadow: var(--shadow); padding: 6px 18px 18px; margin-bottom: 10px; 

} 

.add-product > summary { 

    cursor: pointer; font-weight: 700; color: var(--blue-900); 

    padding: 12px 0; font-size: 1.05rem; list-style: none; 

} 

.add-product > summary::-webkit-details-marker { display: none; } 

 

.product-form label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; } 

.product-form input, .product-form select, .product-form textarea { 

    display: block; 

    width: 100%; margin-top: 4px; padding: 8px 10px; font-size: 0.95rem; 

    border: 1px solid var(--line); border-radius: 6px; font-family: inherit; 

    background: #fff; 

} 

.product-form input[type="file"] { padding: 6px; background: var(--blue-050); } 

.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; } 

.pf-grid.two { grid-template-columns: 1fr 1fr; } 

.pf-desc { display: block; } 

/* Let the Image picker span the whole add-product row so the filename shows. */ 

.pf-file { grid-column: 1 / -1; } 

 

.product-admin-grid { 

    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; 

} 

.product-admin-card { 

    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 

    box-shadow: var(--shadow); padding: 16px; 

    display: flex; flex-direction: column; 

} 

.pac-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } 

.pac-thumb { 

    width: 64px; height: 64px; object-fit: cover; border-radius: 8px; 

    border: 1px solid var(--line); background: var(--blue-050); 

} 

.pac-id { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; } 

.pac-actions { margin-top: 4px; } 

.pac-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; 

    margin-top: 6px; border-top: 1px solid var(--line); padding-top: 8px; } 

.pac-toggles form { margin: 0; } 

.pac-toggles form:last-child { margin-left: auto; } 

 

/* Search / filter / sort toolbar on the Products admin page. */ 

.product-tools { 

    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; 

    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 

    box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 16px; 

} 

.product-tools .pt-search { 

    flex: 1 1 240px; min-width: 200px; padding: 8px 12px; font-size: 0.95rem; 

    border: 1px solid var(--line); border-radius: 6px; font-family: inherit; 

} 

.product-tools .pt-field { 

    display: flex; flex-direction: column; gap: 4px; 

    font-size: 0.78rem; font-weight: 600; color: var(--muted); 

} 

.product-tools .pt-field select { 

    padding: 7px 10px; font-size: 0.9rem; border: 1px solid var(--line); 

    border-radius: 6px; font-family: inherit; background: #fff; min-width: 140px; 

} 

.product-tools .pt-count { margin-left: auto; font-size: 0.85rem; color: var(--muted); } 

 

/* Second stat sub-line (e.g. units left in stock under Units Sold). */ 

.stat-sub-2 { display: block; margin-top: 2px; opacity: 0.85; } 

 

/* Floating "back to top" button on the storefront. */ 

.back-to-top { 

    position: fixed; right: 20px; bottom: 20px; z-index: 40; 

    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; 

    background: var(--blue-700); color: #fff; font-size: 1.4rem; line-height: 1; 

    box-shadow: 0 4px 14px rgba(0,0,0,.25); 

    display: flex; align-items: center; justify-content: center; 

    transition: background .15s ease, transform .15s ease; 

} 

.back-to-top:hover { background: var(--blue-900); transform: translateY(-2px); } 

.back-to-top[hidden] { display: none; } 

 

/* ---------- Bulk stock update ---------- */ 

.stock-toolbar { display: flex; align-items: center; justify-content: space-between; 

    gap: 12px; margin: 10px 0; } 

.stock-toolbar-bottom { position: sticky; bottom: 0; background: var(--bg, #fff); 

    padding: 12px; border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0,0,0,0.05); 

    border-radius: 0 0 var(--radius) var(--radius); z-index: 5; } 

.stock-count { color: var(--muted); font-size: 0.9rem; } 

.stock-changed-note { color: #b26a00; font-size: 0.88rem; font-weight: 600; } 

.stock-table { min-width: 520px; } 

.stock-table td { vertical-align: middle; } 

.stock-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; 

    border: 1px solid var(--line); background: var(--blue-050); } 

.stock-input { width: 84px; padding: 7px 9px; border: 1px solid var(--line); 

    border-radius: 8px; font-size: 0.95rem; text-align: center; } 

.stock-input:focus { outline: 2px solid var(--blue-700); outline-offset: 0; border-color: var(--blue-700); } 

.stock-table tr.stock-low .stock-input { border-color: #e8850c; } 

.stock-table tr.stock-low td.mono { color: #b26a00; font-weight: 700; } 

.stock-table tr.stock-changed { background: #fff8e6; } 

.stock-table tr.stock-changed .stock-input { border-color: #b26a00; background: #fffdf5; } 

 

/* ---------- Store-closed / orders-paused ---------- */ 

.store-closed-banner { background: #fff3d6; border: 1px solid #e8c877; color: #8a5a00; 

    padding: 12px 16px; border-radius: 10px; text-align: center; font-weight: 600; 

    margin: 0 0 18px; } 

.orders-closed-note { margin-top: 10px; color: #b26a00; font-weight: 600; } 

 

/* ---------- Settings page ---------- */ 

.settings-form { max-width: 640px; } 

.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 

    padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); } 

.settings-card h3 { margin: 0 0 12px; color: var(--blue-900); font-size: 1.05rem; } 

.settings-card label { display: block; margin-bottom: 12px; font-weight: 600; color: #33414f; } 

.settings-card input[type="text"], .settings-card input[type="email"] { 

    display: block; width: 100%; margin-top: 5px; padding: 9px 11px; 

    border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; font-weight: 400; } 

.settings-card .optional { font-weight: 400; color: var(--muted); font-size: 0.82rem; } 

.settings-card-alert { border-color: #e8c877; background: #fffdf5; } 

.toggle-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; } 

.toggle-row input { margin-top: 3px; } 

.settings-state { margin: 6px 0 0; } 

.settings-tools { max-width: 640px; } 

.tools-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } 

 

/* ---------- Activity log ---------- */ 

.act-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; 

    font-size: 0.76rem; font-weight: 700; white-space: nowrap; } 

.act-good { background: #e6f4ea; color: var(--success); } 

.act-warn { background: #fdf0d5; color: #9a6700; } 

.act-bad  { background: #fbe4e4; color: #b42318; } 

.act-info { background: #eaf2fc; color: #0b3d91; } 

.admin-table .nowrap { white-space: nowrap; font-size: 0.82rem; color: var(--muted); } 

 

/* ---------- Error page ---------- */ 

.error-page { text-align: center; padding: 50px 20px; max-width: 520px; margin: 0 auto; } 

.error-code { font-size: 4rem; font-weight: 800; color: var(--blue-700); line-height: 1; } 

.error-page h2 { color: var(--blue-900); margin: 8px 0 10px; } 

.error-page p { color: var(--muted); margin-bottom: 22px; } 

 

/* ---------- Admin dashboard ---------- */ 

.stat-grid { 

    display: grid; 

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 

    gap: 16px; 

    margin-bottom: 22px; 

} 

.stat-tile { 

    background: #fff; 

    border: 1px solid var(--line); 

    border-left: 4px solid var(--blue-500); 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 16px 18px; 

    display: flex; 

    flex-direction: column; 

    gap: 4px; 

} 

.stat-tile.stat-good { border-left-color: var(--success); } 

.stat-tile.stat-warn { border-left-color: #d9a400; } 

.stat-tile.stat-bad  { border-left-color: var(--danger); } 

.stat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); } 

.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--blue-900); line-height: 1.1; } 

.stat-tile.stat-good .stat-value { color: var(--success); } 

.stat-tile.stat-warn .stat-value { color: #9a6700; } 

.stat-tile.stat-bad .stat-value  { color: var(--danger); } 

.stat-sub { font-size: 0.8rem; color: var(--muted); } 

 

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; } 

.dash-panel { 

    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 

    box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; 

} 

.dash-panel h3 { margin: 0 0 14px; color: var(--blue-900); font-size: 1.05rem; } 

.dash-muted { color: var(--muted); font-weight: 400; font-size: 0.85rem; } 

.dash-empty { color: var(--muted); } 

 

/* Top-sellers horizontal bars (single-hue magnitude) */ 

.bar-list { display: flex; flex-direction: column; gap: 10px; } 

.bar-row { display: grid; grid-template-columns: 40% 1fr auto; align-items: center; gap: 10px; } 

.bar-name { font-size: 0.9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 

.bar-track { background: var(--blue-050); border-radius: 999px; height: 14px; overflow: hidden; } 

.bar-fill { display: block; height: 100%; background: var(--blue-500); border-radius: 999px; min-width: 4px; } 

.bar-val { font-size: 0.9rem; font-weight: 700; color: var(--blue-900); min-width: 28px; text-align: right; } 

 

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } 

.dash-table th, .dash-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); } 

.dash-table th { color: var(--blue-900); background: var(--blue-050); font-size: 0.82rem; } 

.dash-table .mono { font-family: monospace; font-size: 0.82rem; } 

.dash-num { text-align: right; } 

.dash-panel .btn-small { margin-top: 12px; } 

 

/* "Needs action today" tiles */ 

.action-panel { border-left: 4px solid var(--blue-500); } 

.action-grid { 

    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; 

} 

.action-item { 

    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; 

    column-gap: 10px; align-items: center; text-decoration: none; 

    background: var(--blue-050); border: 1px solid var(--line); border-radius: 10px; 

    padding: 12px 14px; transition: transform .12s ease, box-shadow .12s ease; 

} 

.action-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); } 

.action-icon { grid-row: 1 / 3; font-size: 1.6rem; } 

.action-n { font-size: 1.4rem; font-weight: 800; color: var(--blue-900); line-height: 1; } 

.action-label { font-weight: 700; color: var(--ink); font-size: 0.9rem; } 

.action-hint { grid-column: 2; color: var(--muted); font-size: 0.78rem; margin-top: 2px; } 

 

/* 14-day paid-revenue column chart */ 

.trend-chart { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding-top: 6px; } 

.trend-col { 

    flex: 1; display: flex; flex-direction: column; align-items: center; 

    justify-content: flex-end; height: 100%; gap: 4px; 

} 

.trend-bar { 

    width: 100%; max-width: 26px; background: var(--blue-500); 

    border-radius: 4px 4px 0 0; min-height: 2px; transition: background .12s ease; 

} 

.trend-col:hover .trend-bar { background: var(--blue-700); } 

.trend-bar.trend-zero { background: var(--line); } 

.trend-x { font-size: 0.68rem; color: var(--muted); } 

.trend-legend { margin: 10px 0 0; } 

 

@media (max-width: 720px) { 

    .dash-cols { grid-template-columns: 1fr; } 

    .stat-value { font-size: 1.5rem; } 

} 

 

/* ---------- Login ---------- */ 

.login-wrap { max-width: 380px; margin: 30px auto; } 

.login-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; } 

.login-form label { display: block; font-weight: 600; margin-bottom: 12px; } 

.login-form input { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 1rem; } 

 

/* ---------- Responsive ---------- */ 

@media (max-width: 760px) { 

    .checkout-grid { grid-template-columns: 1fr; } 

    .cause-banner h1 { font-size: 1.5rem; } 

    .cause-banner { padding: 24px 20px; } 

 

    .cart-table thead { display: none; } 

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; } 

    .cart-table { min-width: 0; } 

    .cart-table tr { border-bottom: 2px solid var(--line); padding: 8px 0; } 

    .cart-table td { border: none; padding: 6px 14px; } 

    .cart-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--blue-900); } 

    .cart-product { padding-top: 12px; } 

} 

 

/* Discounts & Coupons */ 

.discounts-form, .coupons-form { margin: 20px 0; } 

.discounts-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 16px 0; } 

.discounts-table { width: 100%; border-collapse: collapse; min-width: 800px; font-size: 0.88rem; } 

.discounts-table th, .discounts-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); } 

.discounts-table th { background: var(--blue-050); color: var(--blue-900); } 

.discount-input { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; } 

.discounted-price { font-weight: 600; color: #1560bd; } 

.coupon-actions { margin: 16px 0; } 

.coupon-actions .btn { margin-right: 10px; } 

 

/* Products sections (new arrivals, best sellers) */ 

.products-section { margin: 32px 0; } 

.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } 

.section-header h3 { margin: 0; font-size: 20px; color: var(--blue-900); } 

.section-badge { display: inline-block; padding: 4px 10px; background: var(--green-100); color: var(--green-900); border-radius: 20px; font-size: 0.75rem; font-weight: 600; } 

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } 

.product-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; transition: box-shadow 0.2s; } 

.product-card:hover { box-shadow: var(--shadow); } 

.product-image { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; } 

.product-name { font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; } 

.product-price { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; } 

.product-original-price { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; } 

.product-final-price { font-size: 1.1rem; font-weight: 700; color: #1560bd; } 

.product-discount-badge { display: inline-block; background: #fdf0d5; color: #9a6700; padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; font-weight: 600; margin-top: 4px; } 

 

/* Coupon input on cart */ 

.coupon-section { background: var(--blue-050); padding: 16px; border-radius: var(--radius); margin: 16px 0; } 

.coupon-input-group { display: flex; gap: 8px; } 

.coupon-input-group input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; } 

.coupon-input-group button { padding: 8px 16px; } 

 

/* ---------- Order detail popup (admin orders) ---------- */ 

tr.order-row { cursor: pointer; } 

tr.order-row:hover > td { background: var(--blue-050); } 

.order-open { 

    background: none; border: none; padding: 0; cursor: pointer; 

    font: inherit; font-family: monospace; color: var(--blue-700); 

    text-decoration: underline; font-weight: 700; 

} 

.order-open:hover { color: var(--blue-900); } 

 

.order-modal { position: fixed; inset: 0; z-index: 100; } 

.order-modal[hidden] { display: none; } 

.order-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 55, 0.55); } 

.order-modal-panel { 

    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 

    width: min(880px, 94vw); max-height: 90vh; overflow-y: auto; 

    background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); 

    padding: 22px 24px; 

} 

.order-modal-close { 

    position: absolute; top: 10px; right: 14px; border: none; background: none; 

    font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); 

} 

.order-modal-close:hover { color: var(--ink); } 

.odm-loading, .odm-empty { color: var(--muted); padding: 30px 0; text-align: center; } 

 

.odm-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; 

    gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; } 

.odm-head-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } 

.odm-oid { font-size: 1.15rem; font-weight: 800; color: var(--blue-900); } 

.odm-date { color: var(--muted); font-size: 0.85rem; } 

 

.odm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } 

.odm-sec { background: var(--blue-050); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; } 

.odm-sec-wide { grid-column: 1 / -1; } 

.odm-sec h4 { margin: 0 0 10px; color: var(--blue-900); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; } 

.odm-kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.9rem; } 

.odm-kv > span { color: var(--muted); } 

.odm-kv > b { text-align: right; } 

.odm-muted { color: var(--muted); font-weight: 400; font-size: 0.82rem; } 

.odm-addr { font-size: 0.92rem; line-height: 1.5; margin-bottom: 10px; } 

.odm-declared { color: #1a7f37; font-weight: 600; font-size: 0.85rem; margin: 4px 0; } 

 

.odm-addr-form { margin-top: 10px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 12px; } 

.odm-addr-form label { display: block; font-weight: 600; font-size: 0.8rem; margin-bottom: 8px; } 

.odm-addr-form input, .odm-addr-form textarea { 

    width: 100%; margin-top: 3px; padding: 7px 9px; font-size: 0.9rem; 

    border: 1px solid var(--line); border-radius: 6px; font-family: inherit; 

} 

.odm-addr-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; } 

.odm-note { color: #9a6700; font-size: 0.8rem; margin: 4px 0 10px; } 

.odm-addr-actions { display: flex; align-items: center; gap: 10px; } 

.req { color: #c0392b; } 

 

.odm-log { margin-top: 12px; font-size: 0.85rem; } 

.odm-log > summary { cursor: pointer; color: var(--blue-700); font-weight: 600; } 

.odm-log-item { border-top: 1px solid var(--line); padding: 8px 0; } 

.odm-log-when { color: var(--muted); font-size: 0.78rem; } 

.odm-log-reason { font-style: italic; margin: 2px 0; } 

.odm-log-diff { font-size: 0.8rem; } 

.odm-log-old { color: #c0392b; text-decoration: line-through; } 

.odm-log-new { color: #1a7f37; } 

.odm-log-arrow { margin: 0 4px; color: var(--muted); } 

 

.odm-items { width: 100%; border-collapse: collapse; font-size: 0.9rem; } 

.odm-items td { padding: 6px 8px; border-bottom: 1px solid var(--line); } 

.odm-items .odm-qty { text-align: center; color: var(--muted); white-space: nowrap; } 

.odm-items .odm-amt { text-align: right; font-weight: 600; white-space: nowrap; } 

.odm-totals { margin-top: 10px; max-width: 280px; margin-left: auto; } 

.odm-totals > div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.9rem; } 

.odm-totals .odm-discount b { color: #1a7f37; } 

.odm-totals .odm-grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-size: 1rem; } 

.odm-totals .odm-grand b { color: var(--blue-900); } 

 

.odm-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } 

.odm-fld { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; font-weight: 600; color: var(--muted); } 

.odm-fld select, .odm-fld input { 

    padding: 6px 8px; font-size: 0.9rem; border: 1px solid var(--line); 

    border-radius: 6px; font-family: inherit; background: #fff; min-width: 150px; 

} 

.odm-pay-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } 

.odm-pay-actions form { margin: 0; } 

 

@media (max-width: 720px) { 

    .odm-grid { grid-template-columns: 1fr; } 

    .odm-addr-row { grid-template-columns: 1fr; } 

} 

 

/* ---- Storefront colour swatches ---- */ 

.variant-swatches { 

    display: flex; 

    flex-wrap: wrap; 

    gap: 8px; 

    margin: 4px 0 6px; 

} 

.swatch { 

    width: 30px; 

    height: 30px; 

    padding: 0; 

    border: 2px solid var(--line); 

    border-radius: 50%; 

    background: none; 

    cursor: pointer; 

    display: inline-flex; 

    align-items: center; 

    justify-content: center; 

    transition: transform .12s ease, border-color .12s ease; 

} 

.swatch:hover { transform: scale(1.08); } 

.swatch .swatch-dot { 

    width: 20px; 

    height: 20px; 

    border-radius: 50%; 

    background: var(--swatch, #ccc); 

    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); 

} 

.swatch.is-selected { 

    border-color: var(--blue-700); 

    box-shadow: 0 0 0 2px var(--blue-050); 

} 

.swatch.is-oos { opacity: .4; } 

.swatch.is-oos .swatch-dot { position: relative; } 

.swatch.is-oos .swatch-dot::after { 

    content: ""; 

    position: absolute; 

    left: 50%; 

    top: -3px; 

    bottom: -3px; 

    width: 2px; 

    background: #e74c3c; 

    transform: rotate(45deg); 

} 

.variant-label { 

    font-size: .82rem; 

    color: var(--muted); 

    margin: 0 0 6px; 

} 

.variant-label span { color: var(--ink); font-weight: 600; } 

.cart-variant { color: var(--blue-700); font-weight: 600; } 

 

/* ---- Admin: colour-variation editor ---- */ 

.pac-variants { 

    margin: 10px 0 4px; 

    border-top: 1px dashed var(--line); 

    padding-top: 8px; 

} 

.pac-variants > summary { 

    cursor: pointer; 

    font-weight: 600; 

    font-size: .9rem; 

    color: var(--blue-900); 

} 

.pac-variants-hint { 

    font-size: .78rem; 

    color: var(--muted); 

    margin: 6px 0 8px; 

} 

.variant-form { margin: 0 0 6px; } 

.vf-line { 

    display: flex; 

    align-items: center; 

    gap: 6px; 

    flex-wrap: wrap; 

} 

.vf-thumb { 

    width: 34px; 

    height: 34px; 

    border-radius: 6px; 

    object-fit: cover; 

    border: 1px solid var(--line); 

    flex: none; 

} 

.vf-thumb-new { 

    display: inline-flex; 

    align-items: center; 

    justify-content: center; 

    font-size: 1.2rem; 

    color: var(--muted); 

    background: var(--blue-050); 

} 

.vf-hex { 

    width: 34px; 

    height: 34px; 

    padding: 0; 

    border: 1px solid var(--line); 

    border-radius: 6px; 

    background: none; 

    flex: none; 

    cursor: pointer; 

} 

.vf-name { flex: 1 1 90px; min-width: 80px; } 

.vf-num { width: 62px; flex: none; } 

.vf-file { 

    display: inline-flex; 

    align-items: center; 

    font-size: 1rem; 

    cursor: pointer; 

    flex: none; 

} 

.vf-file input[type=file] { width: 0; height: 0; opacity: 0; position: absolute; } 

.variant-add .vf-line { border-top: 1px dotted var(--line); padding-top: 8px; margin-top: 2px; } 

.vf-del-btn { padding: 2px 6px; } 

 

/* Dashboard: per-colour low-stock subheading */ 

.dash-subhead { 

    margin: 14px 0 6px; 

    font-size: .9rem; 

    color: var(--blue-900); 

} 

/* Orders table: colour chip on an item line */ 

.item-color { 

    display: inline-block; 

    background: var(--blue-050); 

    color: var(--blue-700); 

    border-radius: 4px; 

    padding: 0 5px; 

    font-size: .82em; 

    font-weight: 600; 

} 

 

/* ---- Stalls (off-site stock) ---- */ 

.card { 

    background: #fff; 

    border: 1px solid var(--line); 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 18px; 

    margin-bottom: 18px; 

} 

.num { text-align: right; white-space: nowrap; } 

.btn-danger-link { color: #c0392b; font-weight: 600; } 

 

.stall-create-title { margin: 0 0 12px; font-size: 1.05rem; } 

.stall-create-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } 

.stall-in { 

    padding: 9px 11px; 

    border: 1px solid var(--line); 

    border-radius: 8px; 

    font-size: 0.92rem; 

    color: var(--ink); 

    background: #fff; 

} 

.stall-in-wide { flex: 1 1 220px; min-width: 180px; } 

 

.stall { border-left: 4px solid var(--line); } 

.stall-open { border-left-color: var(--blue-700); } 

.stall-closed { opacity: 0.92; } 

.stall-head { 

    display: flex; flex-wrap: wrap; gap: 12px; 

    justify-content: space-between; align-items: flex-start; 

    margin-bottom: 14px; 

} 

.stall-name { margin: 0 0 4px; font-size: 1.15rem; } 

.stall-city { color: var(--muted); font-weight: 500; font-size: 0.95rem; } 

.stall-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--muted); } 

.stall-note { font-style: italic; } 

.stall-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.9rem; color: var(--ink); } 

.stall-stats strong { font-size: 1.05rem; } 

.stall-money { color: var(--blue-700); } 

 

.stall-table td, .stall-table th { padding: 8px 10px; } 

.stall-empty { color: var(--muted); font-style: italic; margin: 4px 0 12px; } 

 

.stall-send-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; } 

.stall-send-item { flex: 1 1 260px; min-width: 200px; } 

.stall-send-qty { width: 90px; } 

 

.stall-reconcile { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; } 

.stall-reconcile > summary { cursor: pointer; font-weight: 600; color: var(--blue-700); } 

.stall-reconcile-hint { font-size: 0.85rem; color: var(--muted); margin: 10px 0; } 

.stall-recon-in { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: right; } 

.stall-reconcile-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 12px; } 

.stall-amount-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink); } 

.stall-prefill-note { font-size: 0.8rem; color: var(--muted); align-self: center; } 

.stall-delete { margin-top: 10px; } 

 

.stall-toolbar { margin-bottom: 14px; } 

 

/* Record-a-sale panel */ 

.stall-subhead { margin: 16px 0 8px; font-size: 0.98rem; } 

.stall-sale-panel { margin-top: 6px; padding: 12px; background: var(--blue-050, #eef4fc); border-radius: 8px; } 

.stall-sale-form { display: flex; flex-direction: column; gap: 10px; } 

.stall-buyer-row { display: flex; flex-wrap: wrap; gap: 8px; } 

.stall-buyer-row .stall-in { flex: 1 1 160px; min-width: 130px; } 

.sale-lines { display: flex; flex-direction: column; gap: 8px; } 

.sale-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } 

.sale-item { flex: 1 1 240px; min-width: 180px; } 

.sale-price { width: 100px; } 

.sale-qty { width: 72px; } 

.sale-remove { color: var(--muted); font-weight: 700; padding: 0 6px; } 

.stall-sale-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } 

.sale-total { margin-left: auto; font-size: 0.95rem; color: var(--ink); } 

.sale-total strong { color: var(--blue-700); font-size: 1.05rem; } 

 

/* Buyers & sales list */ 

.stall-sales { margin-top: 14px; } 

.stall-sales-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; } 

.stall-sales-table td, .stall-sales-table th { padding: 7px 9px; font-size: 0.88rem; } 

.stall-when { white-space: nowrap; color: var(--muted); } 

.stall-contact { display: flex; flex-direction: column; gap: 2px; } 

.stall-email { color: var(--muted); font-size: 0.82rem; word-break: break-all; } 

.stall-lineitem { display: inline-block; background: var(--blue-050, #eef4fc); color: var(--blue-700); border-radius: 4px; padding: 1px 6px; margin: 1px 3px 1px 0; font-size: 0.82rem; } 