@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #17332c;
    --muted: #6c7570;
    --soft: #f5f5f4;
    --soft-2: #ececea;
    --line: #e3e2dd;
    --white: #ffffff;
    --success: #18794e;
    --danger: #b3401f;
    --warning: #966a1a;
    --brand: #17332c;
    --brand-dark: #0c1e19;
    --accent: #c1502e;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 18px 60px rgba(23, 51, 44, 0.12);
    --font-body: "Momo Trust Display", sans-serif;
    --font-display: "Momo Trust Display", sans-serif;

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell {width:100%; max-width:none; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
/* Display type: reserved for marketing headings & big single-page titles.
   Dense/functional headings (admin tables, cart, product-grid titles) stay on
   the body face so small sizes remain crisp and legible. */
.hero-content h1,
.compact-page-hero h1,
.product-detail-info h1,
.success-box h1, .error-box h1,
.section-heading h2,
.full-category-card h2,
.home-carousel-caption h2,
.promo-grid h2,
.referral-confirm-card h2,
.admin-header h1,
.logo {
    font-family: var(--font-display);
    font-weight: 600;
}
.hero-content h1 em, .compact-page-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }

/* Header */
.announcement-bar { background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: .01em; }
.announcement-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.announcement-dot { opacity: .55; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { height: 104px; display: grid; grid-template-columns: 320px minmax(280px, 1fr) 100px; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; letter-spacing: -.01em; white-space: nowrap; min-width: 0; max-width: 100%; overflow: hidden; }
.logo-mark { width: 70px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--white); font-size: 19px; }
.header-search { display: flex; min-width: 0; background: var(--soft); border: 1px solid transparent; border-radius: 999px; overflow: hidden; transition: .2s ease; }
.header-search:focus-within { background: var(--white); border-color: #b8b8b4; }
.header-search input { width: 100%; min-width: 0; height: 52px; padding: 0 8px 0 20px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.header-search button { width: 54px; border: 0; background: transparent; cursor: pointer; font-size: 26px; }
.cart-button { position: relative; min-height: 52px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; }
.cart-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 11px; }
.site-nav { background: var(--ink); border-top: 1px solid var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.nav-inner { min-height: 62px; display: flex; align-items: center; gap: 25px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a, .nav-link-button { color: var(--white); font-size: 14.5px; font-weight: 650; white-space: nowrap; padding: 4px 2px; border-bottom: 2px solid transparent; transition: opacity .15s ease, border-color .15s ease; }
.nav-inner a:hover, .nav-link-button:hover { opacity: .75; border-bottom-color: var(--white); }
.nav-inner .nav-highlight-link { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-logout-form { margin: 0; }
.nav-link-button { padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle, .mobile-search-wrap { display: none; }

/* Shared */
.eyebrow, .section-label { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.eyebrow::before, .section-label::before { content: ""; width: 14px; height: 1px; background: var(--accent); opacity: .6; }
.btn { min-height: 46px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; border: 1px solid transparent; transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,51,44,.16); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--line); }
.btn-white { background: var(--white); color: var(--ink); }
.store-section { padding: 68px 0; }
.section-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.04; }
.view-all { font-size: 13px; font-weight: 750; padding-bottom: 3px; border-bottom: 1px solid var(--brand); }
.page-hero { background: var(--soft); }
.compact-page-hero { padding: 55px 0; }
.compact-page-hero h1 { margin: 8px 0 10px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.055em; line-height: .98; }
.compact-page-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; }

/* Hero */
.hero-section { overflow: hidden; background: #f7f7f6; }
.hero-grid { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 55px; align-items: center; }
.hero-content { padding: 70px 0; position: relative; z-index: 2; }
.hero-content h1 { margin: 12px 0 18px; font-size: clamp(52px, 7vw, 86px); letter-spacing: -.07em; line-height: .88; max-width: 720px; }
.hero-content p { max-width: 590px; margin: 0; color: #5b5548; font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 17px; color: #635d50; font-size: 12px; font-weight: 650; }
.hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(23,51,44,.15); border-radius: 50%; }
.hero-orbit-one { width: 460px; height: 460px; }
.hero-orbit-two { width: 330px; height: 330px; border-style: dashed; border-color: rgba(193,80,46,.4); }
.hero-product-card, .hero-empty-card { width: min(360px, 85%); position: relative; z-index: 2; padding: 18px; border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.hero-product-label { display: inline-block; margin-bottom: 12px; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.hero-product-image { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; background: #f0f0ee; margin-bottom: 14px; }
.hero-product-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-product-card strong { display: block; font-size: 16px; line-height: 1.25; }
.hero-product-card > span:last-child { display: block; margin-top: 7px; font-weight: 800; }
.hero-empty-card { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.hero-empty-card > span { font-size: 48px; }
.hero-empty-card small { color: var(--muted); }

/* Categories */
.category-section { padding-bottom: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card { min-height: 104px; padding: 18px; display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(0,0,0,.06); }
.category-icon, .full-category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); border: 1px dashed var(--line); font-size: 23px; }
.category-card strong { display: block; font-size: 15px; }
.category-card small { margin-top: 3px; display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-arrow { font-size: 22px; }
.full-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.full-category-card { min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; display: flex; gap: 20px; align-items: flex-start; transition: .2s ease; }
.full-category-card:hover { background: var(--soft); }
.full-category-card h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.03em; }
.full-category-card p { margin: 0 0 18px; color: var(--muted); }
.full-category-card div > span { font-weight: 750; font-size: 13px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.product-card { min-width: 0; background: var(--white); }
.product-image-link { display: block; }
.product-image { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-badge, .detail-badge {
    position: absolute; z-index: 2; top: 12px; left: 12px;
    padding: 6px 10px; border-radius: 999px;
    background: var(--accent); color: var(--white);
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 11px; letter-spacing: -.01em;
    transform: rotate(-6deg);
    box-shadow: 0 0 0 3px var(--white);
    outline: 1px dashed rgba(255,255,255,.55);
    outline-offset: -4px;
}
.placeholder-image { width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #8f897a; }
.placeholder-image span { font-size: 36px; color: #b3ab94; }
.placeholder-image small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.product-info { padding: 13px 2px 0; }
.product-category { display: block; margin-bottom: 4px; color: #7c7566; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.product-title h3 { min-height: 42px; margin: 0; font-size: 14px; font-weight: 650; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 15px; font-weight: 800; }
.old-price { color: #9a9384; text-decoration: line-through; font-size: 12px; }
.product-card-bottom { margin-top: 12px; }
.card-cart-form { margin: 0; }
.buy-button { width: 100%; min-height: 38px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 750; cursor: pointer; transition: opacity .18s ease; }
.buy-button:hover { opacity: .8; }
.buy-button.sold-out { background: #eee; border-color: #eee; color: #888; cursor: not-allowed; }
.promo-band { margin: 20px 0; padding: 58px 0; background: var(--ink); color: var(--white); }
.promo-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.promo-grid .eyebrow { color: #aaa; }
.promo-grid h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.promo-grid p { margin: 0; color: #bdbdb8; max-width: 680px; }
.products-page { padding-top: 40px; }
.product-filters { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 230px; gap: 12px; }
.filter-search { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.filter-search input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; outline: 0; }
.filter-search button { padding: 0 22px; border: 0; background: var(--ink); color: var(--white); font-weight: 750; cursor: pointer; }
.product-filters select { height: 46px; padding: 0 38px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); outline: 0; }
.active-filter { margin: 0 0 20px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-radius: 10px; background: var(--soft); font-size: 12px; }
.active-filter a { font-weight: 800; }
.results-heading { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.results-heading strong { color: var(--ink); }
.empty-products { min-height: 280px; padding: 45px; border: 1px dashed #cfcfcb; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fafaf8; }
.empty-products h3, .empty-products h2 { margin: 0 0 8px; }
.empty-products p { margin: 0 0 20px; color: var(--muted); }
.image-arrow.left { left: 20px; }
.image-arrow.right { right: 20px; }
button.image-arrow.left { left: 10px; }
button.image-arrow.right { right: 5px; }


/* Product detail */
.product-detail-page { padding-top: 35px; padding-bottom: 70px; }
.breadcrumb { margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; color: #7c7566; font-size: 12px; }
.breadcrumb a { color: var(--ink); font-weight: 700; }
.product-detail { display: grid; grid-template-columns: 1.02fr .98fr; gap: 58px; align-items: start; }
.product-detail-image { position: sticky; top: 190px; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--soft); }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.large-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; }
.large-placeholder span { font-size: 70px; color: #bbb; }
.large-placeholder small { text-transform: uppercase; letter-spacing: .1em; }
.product-detail-info { padding-top: 20px; }
.product-detail-category { color: #6e6e69; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-detail-info h1 { margin: 10px 0 0; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.055em; line-height: 1.02; }
.detail-price { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.detail-sale-price { font-size: 27px; font-weight: 850; }
.detail-old-price { color: #888; text-decoration: line-through; }
.detail-stock { margin-top: 17px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.detail-stock span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.detail-stock.available { color: var(--success); }
.detail-stock.unavailable { color: var(--danger); }
.product-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-description h3 { margin: 0 0 8px; font-size: 14px; }
.product-description p { margin: 0; white-space: pre-line; color: var(--muted); line-height: 1.75; }
.product-sku { margin-top: 18px; color: #888; font-size: 11px; }
.quantity-cart { margin-top: 28px; display: grid; grid-template-columns: 132px 1fr; gap: 10px; }
.quantity-selector { display: grid; grid-template-columns: 38px 1fr 38px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quantity-selector button { border: 0; background: var(--white); cursor: pointer; font-size: 18px; }
.quantity-selector input { width: 100%; border: 0; text-align: center; outline: 0; -moz-appearance: textfield; }
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }
.detail-add-cart { min-height: 30px; border: 0; border-radius: 400px; background: var(--ink); color: var(--white); font-weight: 800; cursor: pointer; }
.detail-add-cart.disabled { width: 100%; margin-top: 28px; background: #e7e0cd; color: #7c7566; cursor: not-allowed; }
.detail-assurance { margin-top: 22px; display: grid; gap: 7px; color: #666; font-size: 12px; }
.related-products { margin-top: 78px; }

/* Cart / checkout */
.cart-page, .checkout-page { padding-top: 40px; padding-bottom: 75px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 30px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { padding: 22px 0; display: grid; grid-template-columns: 118px 1fr auto; gap: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-image { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { margin: 0 0 5px; font-size: 16px; }
.cart-item-info p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.cart-quantity { display: flex; align-items: center; gap: 8px; }
.cart-quantity form { margin: 0; }
.cart-quantity button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.cart-quantity button:disabled { opacity: .35; cursor: not-allowed; }
.cart-quantity span { min-width: 20px; text-align: center; font-weight: 750; }
.remove-cart { margin-top: 10px; padding: 0; border: 0; background: none; color: #7c7566; text-decoration: underline; cursor: pointer; font-size: 11px; }
.cart-item-subtotal { white-space: nowrap; }
.cart-summary, .checkout-summary { padding: 26px; border-radius: 18px; background: var(--soft); position: sticky; top: 190px; }
.cart-summary h2, .checkout-summary h2, .checkout-form h2 { margin: 6px 0 20px; font-size: 24px; letter-spacing: -.035em; }
.summary-row, .summary-total { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; font-size: 13px; border-top: 1px solid #dcdcd8; }
.summary-row strong { text-align: right; }
.summary-total { margin-top: 5px; padding-top: 18px; align-items: baseline; font-weight: 800; }
.summary-total strong { font-size: 20px; }
.checkout-button, .place-order-button { width: 100%; min-height: 48px; margin-top: 17px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 800; cursor: pointer; }
.continue-shopping { margin-top: 13px; display: block; text-align: center; font-size: 12px; font-weight: 700; text-decoration: underline; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); margin-bottom: 16px; }
.form-alert { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f1b5ae; border-radius: 10px; background: #fff2f0; color: var(--danger); font-weight: 650; }
.checkout-form { padding: 4px 0; }
.checkout-form form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .form-group label { font-size: 12px; font-weight: 750; }
.field input, .field textarea, .form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 13px 14px; border: 1px solid #d8d8d3; border-radius: 10px; background: var(--white); outline: none; color: var(--ink);
    font-size: 16px; /* keeps iOS Safari from auto-zooming the page on focus */
}
.field input:focus, .field textarea:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #7c7566; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.field textarea, .form-group textarea { resize: vertical; }
.payment-method { padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; }
.payment-method span { display: block; color: var(--muted); font-size: 11px; }
.payment-method strong { display: block; margin-top: 2px; }
.cod-badge { padding: 6px 9px; border-radius: 999px; background: var(--ink); color: var(--white) !important; font-weight: 850; }
.place-order-button { margin-top: 2px; }
.checkout-note { margin: -5px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.checkout-item { padding: 13px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #dcdcd8; font-size: 12px; }
.checkout-item div { min-width: 0; }
.checkout-item div strong { display: block; line-height: 1.35; }
.checkout-item span { display: block; margin-top: 3px; color: var(--muted); }
.checkout-item > strong { white-space: nowrap; }

/* Success/error */
.order-success, .error-page { min-height: 620px; padding-top: 70px; padding-bottom: 70px; display: grid; place-items: center; }
.success-box, .error-box { width: min(620px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 24px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 28px; }
.success-box h1, .error-box h1 { margin: 8px 0 10px; font-size: 36px; letter-spacing: -.045em; }
.success-box > p, .error-box p { color: var(--muted); }
.order-number { margin: 25px 0 16px; padding: 17px; border-radius: 12px; background: var(--soft); }
.order-number span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.order-number strong { display: block; margin-top: 5px; font-size: 18px; }
.success-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.success-summary div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.success-summary span, .success-summary strong { display: block; }
.success-summary span { color: var(--muted); font-size: 11px; }
.whatsapp-button { min-height: 46px; margin: 10px 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #166534; color: var(--white); font-weight: 750; }
.whatsapp-hint { display: block; margin-bottom: 18px; color: var(--muted); }
.error-code { font-size: 72px; font-weight: 900; letter-spacing: -.08em; }

/* Services/footer */
.service-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafaf8; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-item { min-height: 118px; padding: 20px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.service-item:first-child { border-left: 1px solid var(--line); }
.service-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 850; }
.service-item strong, .service-item small { display: block; }
.service-item strong { font-size: 13px; }
.service-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.site-footer { padding-top: 60px; background: var(--ink); color: var(--white); }
.footer-grid { padding-bottom: 55px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 45px; }
.footer-logo .logo-mark { background: var(--white); color: var(--ink); }
.footer-logo-img { width: 180px; height: autopx; object-fit: contain; }
.footer-brand p { max-width: 420px; margin: 18px 0 0; color: #aaa; line-height: 1.7; }
.footer-grid h3 { margin: 4px 0 15px; font-size: 13px; }
.footer-grid > div:not(.footer-brand) a { margin: 9px 0; display: block; color: #bdbdb8; font-size: 12px; }
.footer-hours { margin: 9px 0; display: block; color: #8a8a86; font-size: 12px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { min-height: 65px; border-top: 1px solid #2d2d2d; display: flex; justify-content: space-between; align-items: center; color: #888; font-size: 11px; }

/* Admin */
.admin-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 45px 0 75px; }
.admin-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-header h1 { margin: 6px 0 0; font-size: 38px; letter-spacing: -.045em; }
.admin-back { font-size: 12px; font-weight: 750; text-decoration: underline; }
.admin-form-container { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.product-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { display: grid; gap: 7px; }
.form-group small { color: var(--muted); font-size: 11px; }
.admin-submit { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-weight: 750; cursor: pointer; }
.form-error, .admin-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 9px; background: #fff2f0; color: var(--danger); font-weight: 650; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat-card { min-height: 125px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card-warning { background: #fff9e8; border-color: #ead9a2; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.stat-value { font-size: 25px; font-weight: 850; letter-spacing: -.04em; }
.admin-table-container { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--white); }
.admin-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.admin-table th { padding: 13px 14px; background: var(--soft); text-align: left; color: #666; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.admin-table td { padding: 14px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.admin-actions { display: flex; align-items: center; gap: 7px; }
.admin-actions form { margin: 0; }
.edit-button, .delete-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 11px; font-weight: 750; cursor: pointer; }
.delete-button { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stock-status { color: var(--success); font-weight: 750; }
.stock-status.out-of-stock { color: var(--danger); }
.order-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #eee; font-size: 10px; font-weight: 800; }
.status-pending { background: #fff3cd; color: #795c00; }
.status-confirmed { background: #e8f1ff; color: #1d4e89; }
.status-shipped { background: #ede9fe; color: #5b21b6; }
.status-delivered { background: #e7f7ed; color: #166534; }
.status-cancelled { background: #feeceb; color: #b42318; }
.order-totals { margin-top: 20px; margin-left: auto; max-width: 340px; }
.order-totals p { display: flex; justify-content: space-between; gap: 20px; }
.order-grand-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }

/* Tablet */
@media (max-width: 1020px) {
    .site-shell { width: min(100% - 30px, 1240px); }
    .header-main { grid-template-columns: 220px 1fr 76px; gap: 18px; }
    .nav-inner { gap: 18px; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item:nth-child(3) { border-left: 1px solid var(--line); }
    .service-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1.7fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
    .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 760px) {
    .site-shell { width: 100%; padding-left: 16px; padding-right: 16px; }
    .announcement-inner { min-height: 30px; font-size: 10px; }
    .announcement-inner span:nth-child(3), .announcement-dot { display: none; }
    .site-header { position: relative; }
    .header-main { height: 68px; grid-template-columns: 40px 1fr 66px; gap: 10px; }
    .header-main > .header-search { display: none; }
    .menu-toggle { width: 38px; height: 38px; padding: 9px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
    .menu-toggle span { height: 1.5px; width: 100%; background: var(--ink); }
    .logo { font-size: 14px; overflow: hidden; }
    .logo-mark { width: 46px; height: 30px; flex: 0 0 46px; }
    .site-logo-img { max-height: 44px; max-width: 125px; width: auto; }
    .cart-button { min-height: 38px; font-size: 0; }
    .cart-icon { font-size: 11px; }
    .site-nav { display: none; border-top: 1px solid var(--ink); }
    .site-nav.is-open { display: block; }
    .nav-inner { padding: 14px 0; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; overflow: visible; }
    .nav-inner a, .nav-link-button { padding: 11px 6px; font-size: 12px; text-align: left; border-bottom: none; }
    .nav-spacer { display: none; }
    .mobile-search-wrap { display: block; padding-bottom: 12px; }
    .mobile-search { display: flex; }
    .mobile-search input { height: 40px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; }
    .hero-content { padding: 55px 0 25px; }
    .hero-content h1 { font-size: clamp(50px, 15vw, 76px); }
    .hero-content p { font-size: 15px; }
    .hero-meta { gap: 9px 14px; }
    .hero-visual { min-height: 390px; }
    .hero-orbit-one { width: 330px; height: 330px; }
    .hero-orbit-two { width: 240px; height: 240px; }
    .hero-product-card { width: min(300px, 84%); }
    .store-section { padding: 48px 0; }
    .section-heading { margin-bottom: 22px; align-items: end; }
    .section-heading h2 { font-size: 29px; }
    .category-grid { grid-template-columns: 1fr; gap: 9px; }
    .category-card { min-height: 88px; grid-template-columns: 42px 1fr 24px; padding: 14px; }
    .category-icon { width: 42px; height: 42px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
    .product-image { border-radius: 11px; }
    .product-info { padding-top: 10px; }
    .product-title h3 { min-height: 39px; font-size: 12.5px; }
    .price { font-size: 13px; }
    .old-price { font-size: 10px; }
    .buy-button { min-height: 35px; font-size: 11px; }
    .promo-band { padding: 44px 0; }
    .promo-grid { align-items: flex-start; flex-direction: column; }
    .promo-grid h2 { font-size: 33px; }
    .full-category-grid { grid-template-columns: 1fr; }
    .compact-page-hero { padding: 42px 0; }
    .compact-page-hero h1 { font-size: 42px; }
    .product-filters { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .product-detail-image { position: relative; top: auto; border-radius: 14px; }
    .product-detail-info { padding-top: 0; }
    .product-detail-info h1 { font-size: 36px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: relative; top: auto; }
    .cart-item { grid-template-columns: 88px 1fr; gap: 14px; }
    .cart-item-subtotal { grid-column: 2; grid-row: 2; margin-top: -12px; }
    .field-row { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .service-item, .service-item:first-child, .service-item:nth-child(3) { min-height: 90px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .admin-form-container { padding: 20px; }
}

@media (max-width: 640px) {
    .site-shell { padding-left: 12px; padding-right: 12px; }
    .logo span:last-child { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
    .site-logo-img { max-height: 48px; max-width: 120px; width:120px; height:auto; }
    .product-grid { column-gap: 8px; }
    .quantity-cart { grid-template-columns: 1fr; }
    .success-box, .error-box { padding: 30px 20px; }
    .success-summary { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
}.announcement-bar {

    overflow: hidden;
    white-space: nowrap;
    background: var(--ink);
    color: white;
    height: 38px;

    display:flex;
    align-items:center;

}


.announcement-text {

    display:inline-block;

    padding-left:100%;

    animation: announcementMove 15s linear infinite;

    font-size:14px;

}


@keyframes announcementMove {

    from {

        transform:translateX(0);

    }


    to {

        transform:translateX(-100%);

    }

}

/* ----------------------------
   Homepage full-width carousel
---------------------------- */
.home-carousel { position: relative; width: 100%; overflow: hidden; background: var(--ink); }
.home-carousel-track { position: relative; height: clamp(300px, 25vw, 620px); }
.home-carousel-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease;
    display: grid; align-items: flex-end;
}
.home-carousel-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.home-carousel-slide img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.home-carousel-slide::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%);
}
.home-carousel-caption {
    position: relative; z-index: 2; color: var(--white);
    padding: 0 40px 46px; width: 100%; max-width: 720px;
}
.home-carousel-caption .eyebrow { color: rgba(255,255,255,.75); }
.home-carousel-caption h2 { margin: 10px 0 10px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.03; }
.home-carousel-caption p { margin: 0 0 20px; color: rgba(255,255,255,.85); font-size: 15px; max-width: 520px; }
.home-carousel-caption .btn-dark { background: var(--white); color: var(--ink); }
.home-carousel-dots {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; gap: 8px;
}
.home-carousel-dots button {
    width: 28px; height: 28px; border-radius: 999px; border: 0; padding: 0;
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.home-carousel-dots button::after {
    content: ""; width: 9px; height: 9px; border-radius: 999px;
    background: rgba(255,255,255,.45); transition: transform .2s ease, background .2s ease;
}
.home-carousel-dots button.is-active::after { background: var(--white); transform: scale(1.25); }
.home-carousel-arrow {
    position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,0,0,.25); color: var(--white); font-size: 18px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
}
.home-carousel:hover .home-carousel-arrow { display: flex; }
.home-carousel-arrow.prev { left: 18px; }
.home-carousel-arrow.next { right: 18px; }

@media (max-width: 768px) {
    .home-carousel-track { height: 380px; }
    .home-carousel-slide img { object-fit: cover; object-position: center center; }
    .home-carousel-caption { padding: 0 20px 40px; max-width: 100%; }
    .home-carousel-caption h2 { font-size: 32px; line-height: 1.05; }
    .home-carousel-caption p { font-size: 13px; margin-bottom: 15px; }
    .home-carousel-caption .btn { min-height: 42px; padding: 0 24px; }
}
@media (max-width: 640px) {
    .home-carousel-track { height: 320px; }
    .home-carousel-arrow { display: none !important; }
}

/* ----------------------------
   Admin: carousel manager
---------------------------- */
.carousel-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.carousel-admin-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--white); display: grid; gap: 12px; align-content: start; }
.carousel-admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.carousel-admin-preview { aspect-ratio: 16 / 6; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.carousel-admin-preview img { width: 100%; height: 100%; object-fit: cover; }
.carousel-admin-placeholder { color: var(--muted); font-size: 12px; font-weight: 650; }
.carousel-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; cursor: pointer; }
.carousel-toggle input { width: 16px; height: 16px; }

@media (max-width: 780px) {
    .carousel-admin-grid { grid-template-columns: 1fr; }
}

/* ----------------------------
   Low-stock urgency badge
---------------------------- */
.low-stock-badge {
    position: absolute; z-index: 2; top: 12px; right: 12px;
    padding: 6px 9px; border-radius: 999px; background: #d92d20; color: #fff;
    font-size: 10px; font-weight: 800;
}

/* ----------------------------
   Nav highlight (Refer & Earn)
---------------------------- */
.nav-highlight-link { color: var(--accent) !important; font-weight: 800 !important; }


/* ----------------------------
   Social proof floating toast
---------------------------- */
.social-proof-toast {
    position: fixed; z-index: 60; left: 12px; bottom: 18px;
    display: flex; align-items: center; gap: 10px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 34px 10px 12px; max-width: min(340px, calc(100% - 24px));
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    transform: translateY(140%); opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
    pointer-events: none;
}
.social-proof-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.social-proof-dot {
    flex: 0 0 auto; width: 9px; height: 9px; border-radius: 999px; background: #17a34a;
    box-shadow: 0 0 0 4px rgba(23,163,74,.18);
}
.social-proof-text {
    font-size: 10.5px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.social-proof-text small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; -webkit-line-clamp: unset; }
.social-proof-close {
    position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
    border: 0; background: transparent; color: var(--muted); font-size: 11px;
    border-radius: 999px; cursor: pointer; line-height: 1;
}
.social-proof-close:hover { background: var(--soft); color: var(--ink); }

@media (max-width: 640px) {
    .social-proof-toast {
        left: 10px; right: 10px; bottom: 10px; max-width: none;
        padding: 9px 30px 9px 10px;
    }
    .social-proof-text { font-size: 10px; -webkit-line-clamp: 2; }
}

/* ----------------------------
   Spin-the-wheel popup
---------------------------- */
.spin-wheel-overlay {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(8,10,25,.72);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0; transition: opacity .3s ease;
}
.spin-wheel-overlay.is-visible { opacity: 1; }
.spin-wheel-modal {
    position: relative; width: 100%; max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow: hidden auto;
    background: linear-gradient(180deg, #eef2ff 0%, #dbe4ff 55%, #cddbff 100%);
    border-radius: 28px; padding: clamp(28px, 4vw, 48px) 24px 34px;
    text-align: center; transform: scale(.9); transition: transform .3s ease;
    box-shadow: 0 30px 80px rgba(10,15,40,.45);
    margin: auto;
}
.spin-wheel-overlay.is-visible .spin-wheel-modal { transform: scale(1); }
.spin-wheel-dismiss {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 32px; height: 32px;
    border-radius: 999px; border: 1px solid rgba(30,58,138,.25); background: rgba(255,255,255,.85);
    cursor: pointer; font-size: 14px; line-height: 1; color: #1e3a8a;
}

/* Decorative props scattered around the modal */
.spin-wheel-prop { position: absolute; z-index: 1; opacity: .9; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); pointer-events: none; }
.spin-wheel-prop-gift-1 { bottom: 10px; left: 14px; font-size: clamp(30px, 5vw, 46px); transform: rotate(-12deg); }
.spin-wheel-prop-gift-2 { bottom: 6px; right: 16px; font-size: clamp(28px, 4.5vw, 42px); transform: rotate(10deg); }
.spin-wheel-prop-confetti-1 { top: 18px; left: 8%; font-size: clamp(20px, 3vw, 28px); animation: spinPropFloat 3.2s ease-in-out infinite; }
.spin-wheel-prop-confetti-2 { top: 30%; right: 6%; font-size: clamp(16px, 2.4vw, 22px); animation: spinPropFloat 2.6s ease-in-out infinite .4s; }
.spin-wheel-prop-confetti-3 { top: 12%; right: 20%; font-size: clamp(14px, 2vw, 20px); animation: spinPropFloat 2.8s ease-in-out infinite .9s; }
@keyframes spinPropFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(8deg); }
}

.spin-wheel-pill {
    position: relative; z-index: 2; display: inline-block;
    background: #f4b93e; color: #1e2a4a; font-weight: 800; font-size: 12.5px;
    letter-spacing: .03em; padding: 7px 18px; border-radius: 999px; margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(244,185,62,.45);
}
.spin-wheel-headline {
    position: relative; z-index: 2; margin: 4px 0 22px; font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 900; letter-spacing: -.02em; color: #ffffff; line-height: 1.05;
    -webkit-text-stroke: 1.5px #1e2a4a;
    text-shadow: 2px 2px 0 #1e2a4a, -2px 2px 0 #1e2a4a, 2px -2px 0 #1e2a4a, -2px -2px 0 #1e2a4a, 0 6px 0 rgba(30,42,74,.25);
}

.spin-wheel-wrap {
    position: relative; z-index: 2;
    width: min(78vw, 380px); height: min(78vw, 380px);
    margin: 0 auto 26px;
}
.spin-wheel-pointer {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    z-index: 4; width: 0; height: 0;
}
.spin-wheel-pointer span {
    display: block; width: 0; height: 0;
    border-left: 16px solid transparent; border-right: 16px solid transparent;
    border-top: 26px solid #f4b93e;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.spin-wheel-rim {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #f9d879, #c9932c 55%, #f9d879);
    padding: 14px;
    box-shadow: 0 20px 45px rgba(20,30,70,.35), inset 0 0 0 2px rgba(255,255,255,.4);
}
.spin-wheel-light {
    position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 999px;
    background: #fff6d8; box-shadow: 0 0 6px 2px rgba(255,235,150,.9);
    transform: rotate(calc(360deg / 20 * var(--i))) translate(0, calc(min(39vw, 190px))) translate(-50%, -50%);
    animation: spinWheelTwinkle 1.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}
@keyframes spinWheelTwinkle {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}
.spin-wheel-dial {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    border: 5px solid #1e2a4a; overflow: hidden;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.5);
}
.spin-wheel-label {
    position: absolute; top: 50%; left: 50%; width: 46%;
    transform-origin: 0 0;
    transform: rotate(calc(360deg / var(--segment-count) * var(--i) + (360deg / var(--segment-count) / 2))) translate(10px, -11px);
    font-size: clamp(13px, 2.6vw, 18px); font-weight: 900; text-align: left;
    letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.spin-wheel-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
    width: 17%; height: 17%; border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #fff6d8, #f4b93e 55%, #c9932c 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.5);
    color: #1e2a4a; font-size: clamp(14px, 2.2vw, 20px);
}
.spin-wheel-btn {
    position: relative; z-index: 2; width: min(100%, 320px); margin: 0 auto;
    font-size: 16px; padding: 15px 20px; border-radius: 999px;
    background: linear-gradient(180deg, #2a3f7a, #16224d);
    box-shadow: 0 12px 26px rgba(20,30,70,.4);
}
.spin-wheel-skip {
    position: relative; z-index: 2; display: block; margin: 14px auto 0;
    background: none; border: 0; color: #3a4a7a; font-size: 12.5px;
    text-decoration: underline; cursor: pointer;
}
.spin-wheel-result { position: relative; z-index: 2; }
.spin-wheel-result h2 { margin: 6px 0 10px; color: #1e2a4a; }
.spin-wheel-result p { color: #445; font-size: 13.5px; margin-bottom: 16px; }
.spin-wheel-code-row {
    display: flex; gap: 8px; margin-bottom: 16px; max-width: 320px; margin-left: auto; margin-right: auto;
}
.spin-wheel-code-row input {
    flex: 1; min-width: 0; padding: 12px 14px; border: 2px dashed #1e3a8a;
    border-radius: 10px; font-weight: 800; letter-spacing: .04em; text-align: center;
    background: rgba(255,255,255,.7); color: #1e2a4a; font-size: 16px;
}
.spin-wheel-code-row button {
    padding: 10px 16px; border: 1px solid #1e2a4a; border-radius: 10px;
    background: #1e2a4a; color: #fff; font-weight: 700; cursor: pointer;
}

@media (max-width: 640px) {
    .spin-wheel-modal { padding: 40px 18px 30px; border-radius: 22px; }
    .spin-wheel-prop { opacity: .55; }
}


/* ----------------------------
   Admin: spin wheel segment builder
---------------------------- */
.spin-segment-row {
    display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr auto;
    gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.spin-segment-row:last-child { border-bottom: 0; }
.remove-segment-btn { height: 40px; align-self: end; }
@media (max-width: 720px) {
    .spin-segment-row { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------
   Referral page
---------------------------- */
.referral-page { max-width: 760px; margin: 0 auto; padding-top: 30px; padding-bottom: 60px; }
.referral-steps { display: grid; gap: 22px; margin-bottom: 32px; }
.referral-step { display: flex; gap: 16px; align-items: flex-start; }
.referral-step-num {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
    background: var(--ink); color: var(--white); display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 14px;
}
.referral-step h3 { margin: 0 0 4px; font-size: 16px; }
.referral-step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.referral-link-row { display: flex; gap: 8px; margin: 10px 0; }
.referral-link-row input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--soft); font-size: 16px;
}
.referral-link-row button {
    padding: 10px 16px; border: 1px solid var(--ink); border-radius: 10px;
    background: var(--white); color: var(--ink); font-weight: 700; cursor: pointer; white-space: nowrap;
}
.referral-whatsapp-btn { display: inline-block; margin-top: 4px; }
.referral-form-card { max-width: 100%; }
.referral-confirm-card {
    text-align: center; padding: 50px 20px; border: 1px solid var(--line); border-radius: 18px;
}
.referral-confirm-icon {
    display: inline-flex; width: 56px; height: 56px; border-radius: 999px;
    background: #e8f7ee; color: #17a34a; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
}
.referral-confirm-card h2 { margin: 0 0 8px; }
.referral-confirm-card p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }

/* ----------------------------
   Admin action groups (shared)
---------------------------- */
.admin-actions { display: flex; gap: 8px; }

/* ----------------------------
   Admin: Analytics dashboard
---------------------------- */
.analytics-range-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.analytics-range-tabs a {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.analytics-range-tabs a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.analytics-stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 24px;
}

.analytics-panel {
    border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
    margin-bottom: 20px; background: var(--white);
}
.analytics-panel h2 { margin: 0 0 16px; font-size: 15px; font-weight: 800; }
.analytics-empty { color: var(--muted); font-size: 13px; margin: 0; }
.analytics-caption { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.analytics-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .analytics-grid-2 { grid-template-columns: 1fr; } }

.analytics-bar-chart {
    display: flex; align-items: flex-end; gap: 4px; height: 160px;
    border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.analytics-bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.analytics-bar { width: 100%; max-width: 26px; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s ease; }
.analytics-bar-chart-alt .analytics-bar { background: var(--brand); }
.analytics-bar-label { font-size: 9px; color: var(--muted); margin-top: 6px; white-space: nowrap; }

.analytics-status-list { display: grid; gap: 10px; }
.analytics-status-row { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }

.analytics-click-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.analytics-click-card { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; }
.analytics-click-count { display: block; font-size: 26px; font-weight: 900; }
.analytics-click-label { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.seo-score-badge {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800;
}
.seo-score-good { background: #e8f7ee; color: #176b2c; }
.seo-score-ok { background: #fff3cd; color: #7a5b00; }
.seo-score-bad { background: #feeceb; color: #b42318; }
.seo-issue-list { margin: 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.seo-issue-list li { margin-bottom: 2px; }

/* ----------------------------
   Admin: branding (logo/favicon)
---------------------------- */
.branding-preview {
    display: flex; align-items: center; justify-content: center;
    min-height: 100px; border: 1px dashed var(--line); border-radius: 12px;
    background: var(--soft); margin-bottom: 16px; padding: 16px;
}
.branding-preview img { max-height: 90px; max-width: 100%; object-fit: contain; }
.branding-preview-small { min-height: 70px; }
.branding-preview-small img { max-height: 48px; max-width: 48px; }
.branding-preview-placeholder { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Uploaded logo shown in the navbar */
.site-logo-img { max-height: 60px; max-width: auto; object-fit: contain; display: block; }

/* ----------------------------
   Footer social media icons
---------------------------- */
.footer-social-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px;
    background: rgba(255,255,255,.08); color: #d8d8d3;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social-icon svg { width: 17px; height: 17px; }
.footer-social-icon:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

/* ----------------------------
   Analytics: revenue/profit dual bars
---------------------------- */
.analytics-legend { display: flex; gap: 16px; margin-bottom: 12px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.analytics-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 5px; }
.analytics-bar-group { display: flex; gap: 2px; align-items: flex-end; width: 100%; height: 100%; justify-content: center; }
.analytics-bar-group .analytics-bar { max-width: 12px; }
.analytics-bar-profit { background: #17a34a; }
/* ----------------------------
   Product description (rich text)
---------------------------- */
.description { color: var(--ink); font-size: 14.5px; line-height: 1.7; margin: 18px 0; }
.product-description-rich p { margin: 0 0 12px; }
.product-description-rich ul, .product-description-rich ol { margin: 0 0 12px; padding-left: 22px; }
.product-description-rich li { margin-bottom: 6px; }
.product-description-rich b, .product-description-rich strong { font-weight: 700; }

/* ----------------------------
   Admin: rich text editor (product description)
---------------------------- */
.rte-wrapper { border: 1px solid #d8d8d3; border-radius: 10px; overflow: hidden; }
.rte-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 8px; background: var(--soft); border-bottom: 1px solid #d8d8d3;
}
.rte-btn {
    min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--white); cursor: pointer; font-size: 13px; color: var(--ink);
}
.rte-btn:hover { background: var(--soft-2); }
.rte-divider { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.rte-color-label {
    display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 13px; cursor: pointer;
}
.rte-color { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.rte-font-size {
    height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
    font-size: 12.5px; padding: 0 6px;
}
.rte-clear { margin-left: auto; }
.rte-editable {
    min-height: 160px; padding: 14px 16px; font-size: 14px; line-height: 1.6;
    background: var(--white); outline: none;
}
.rte-editable ul, .rte-editable ol { margin: 0 0 10px; padding-left: 22px; }
.rte-editable p { margin: 0 0 10px; }
.rte-hidden-textarea { display: none; }

/* ----------------------------
   Homepage: horizontal category strip (under header, above carousel)
---------------------------- */
.category-strip-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.category-strip {
    display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; padding: 2px 2px 4px;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip-item {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 74px; text-align: center;
}
.category-strip-icon {
    width: 58px; height: 58px; border-radius: 999px; background: var(--soft);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    border: 1px solid var(--line); overflow: hidden;
}
.category-strip-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-strip-label {
    font-size: 11px; font-weight: 650; color: var(--ink); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 74px;
}

/* ----------------------------
   Homepage: hot-selling category rows (horizontal product scroll)
---------------------------- */
.category-row-section { padding: 32px 0; }
.product-scroll-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px;
}
.product-scroll-item { flex: 0 0 auto; width: 190px; scroll-snap-align: start; }

@media (max-width: 640px) {
    .category-strip-item { width: 64px; }
    .category-strip-icon { width: 50px; height: 50px; font-size: 20px; }
    .product-scroll-item { width: 150px; }
}
/* ----------------------------
   Homepage: reviews & star ratings
---------------------------- */
.reviews-summary { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.reviews-star-row { display: inline-flex; gap: 2px; }
.reviews-star-row .star { color: var(--line); font-size: 16px; line-height: 1; }
.reviews-star-row .star.filled { color: #f4b93e; }
.reviews-count { color: var(--muted); font-size: 12.5px; }

.reviews-scroll-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; padding-bottom: 10px; margin-bottom: 28px;
}
.review-card {
    flex: 0 0 auto; width: 260px; scroll-snap-align: start;
    border: 1px solid var(--line); border-radius: 14px; padding: 18px;
    background: var(--white); display: flex; flex-direction: column; gap: 10px;
}
.review-card .reviews-star-row .star { font-size: 14px; }
.review-comment { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0; }
.review-author { font-size: 12px; color: var(--muted); font-weight: 650; }

.review-form-card {
    max-width: 480px; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
    background: var(--soft);
}
.review-form-card h3 { margin: 0 0 16px; font-size: 17px; }

.star-input { display: flex; gap: 6px; margin-bottom: 18px; }
.star-input-btn {
    background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer;
    color: var(--line); padding: 0; transition: color .15s ease, transform .15s ease;
}
.star-input-btn.is-active { color: #f4b93e; transform: scale(1.08); }

@media (max-width: 640px) {
    .review-card { width: 220px; }
    .reviews-summary { flex-wrap: wrap; }
}

/* ----------------------------
   Admin: categories page
---------------------------- */
.category-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.category-admin-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--white); }
.category-admin-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.category-admin-thumb {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    background: var(--soft); display: flex; align-items: center; justify-content: center;
    font-size: 22px; border: 1px solid var(--line);
}
.category-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-admin-card-top strong { display: block; font-size: 14px; margin-bottom: 2px; }
.category-admin-card-top p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.category-edit-details summary { cursor: pointer; list-style: none; display: inline-block; }
.category-edit-details summary::-webkit-details-marker { display: none; }
