/* NurLife.my — Main Stylesheet */
/* Design: Warm gold + deep teal, Plus Jakarta Sans + Lora, mobile-first */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --gold: #C9922A;
    --gold-light: #F0C060;
    --gold-pale: #FDF3DC;
    --teal: #1A5C5A;
    --teal-dark: #0F3B39;
    --teal-mid: #2A7A77;
    --teal-light: #E6F4F3;
    --rose: #D4626A;
    --cream: #FDFAF5;
    --white: #FFFFFF;
    --text-dark: #1C1C1C;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --border: #E8E0D0;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --transition: .22s ease;
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
    background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-dark) 100%);
    color: var(--gold-light);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 8px 16px;
}
.topbar-icon { color: var(--gold); margin: 0 6px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo { display: flex; align-items: baseline; gap: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.logo-nur { color: var(--teal); }
.logo-life { color: var(--gold); }
.logo-dot { color: var(--text-light); font-size: 14px; }
.footer-logo { font-size: 20px; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
    color: var(--text-mid);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-light); }
.nav-link.nav-agent { color: var(--gold); font-weight: 600; }
.nav-link.nav-agent:hover { background: var(--gold-pale); color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.social-icon {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-mid);
    border-radius: 8px;
    transition: var(--transition);
}
.social-icon:hover { color: var(--teal); background: var(--teal-light); }

/* Cart button */
.cart-btn {
    position: relative;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--teal);
    border-radius: 10px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}
.cart-btn:hover { background: var(--teal-light); border-color: var(--teal); }
.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: .01em;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26,92,90,.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); box-shadow: 0 4px 16px rgba(26,92,90,.35); transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #E0A830 100%);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(201,146,42,.30);
}
.btn-gold:hover { background: linear-gradient(135deg, #B07A20 0%, var(--gold) 100%); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--teal);
    color: var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-danger { background: var(--rose); color: var(--white); }
.btn-danger:hover { background: #B84D55; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge-postage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold) 0%, #E0A830 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(201,146,42,.3);
}
.badge-postage::before { content: '✈'; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: #E6F9F1; color: #1A7A4A; }
.badge-red { background: #FDE8EA; color: #B84D55; }
.badge-gold { background: var(--gold-pale); color: var(--gold); }
.badge-grey { background: #F0F0F0; color: var(--text-light); }
.badge-blue { background: #E6F0FF; color: #3060C0; }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-mid) 100%);
    color: var(--white);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,146,42,.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(240,192,96,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(201,146,42,.25);
    border: 1px solid rgba(240,192,96,.4);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 6vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 460px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-postage { margin-top: 20px; }
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    max-height: 320px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}
.hero-img-placeholder {
    width: 260px; height: 260px;
    background: rgba(255,255,255,.1);
    border: 2px dashed rgba(255,255,255,.25);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    gap: 10px;
}

/* ─── Search Bar ─────────────────────────────────────────────────────────── */
.search-section { padding: 28px 0 0; }
.search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}
.search-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    outline: none;
    transition: var(--transition);
}
.search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,92,90,.1); }

/* ─── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 52px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 30px);
    color: var(--teal-dark);
    font-weight: 600;
}
.section-subtitle { color: var(--text-light); font-size: 14px; margin-top: 6px; }

/* ─── Product Grid ───────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gold-pale);
    position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 40px;
}
.sale-ribbon {
    position: absolute; top: 10px; left: 10px;
    background: var(--rose);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px;
    letter-spacing: .04em;
}
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}
.product-name a:hover { color: var(--teal); }
.product-price { margin-bottom: 12px; }
.price-current { font-weight: 700; color: var(--teal); font-size: 16px; }
.price-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-left: 6px; }
.product-actions { margin-top: auto; }

/* ─── Product Detail ─────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
.product-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--gold-pale);
    aspect-ratio: 1;
    max-width: 480px;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { padding: 4px 0; }
.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.detail-price-sale { font-size: 28px; font-weight: 700; color: var(--teal); }
.detail-price-orig { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.detail-desc { color: var(--text-mid); line-height: 1.7; margin: 16px 0; font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-label { font-weight: 600; font-size: 14px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn {
    width: 36px; height: 36px;
    background: var(--teal-light);
    border: none; cursor: pointer;
    font-size: 18px; font-weight: 600; color: var(--teal);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--teal); color: var(--white); }
.qty-input {
    width: 52px; height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    background: var(--white);
}
.stock-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; display: inline-block; }
.stock-in { background: #E6F9F1; color: #1A7A4A; }
.stock-out { background: #FDE8EA; color: #B84D55; }

/* ─── Cart ───────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.cart-item-img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--gold-pale); flex-shrink: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--text-light); font-size: 13px; }
.cart-item-subtotal { font-weight: 700; color: var(--teal); font-size: 15px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-info { flex: 1; }

.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.summary-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 18px; color: var(--teal-dark); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border: none; }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 700; font-size: 17px; color: var(--teal); }
.postage-note { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: 8px; padding: 10px 14px; margin: 14px 0; font-size: 12px; color: var(--gold); font-weight: 600; text-align: center; }

/* ─── Checkout ───────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
.checkout-form-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
}
.form-title { font-family: var(--font-display); font-size: 20px; color: var(--teal-dark); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-dark); }
.form-label span { color: var(--rose); }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,92,90,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── Payment Pages ──────────────────────────────────────────────────────── */
.payment-status-card {
    max-width: 500px;
    margin: 60px auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 36px;
    text-align: center;
}
.status-icon { font-size: 56px; margin-bottom: 20px; }
.status-title { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; }
.status-success .status-icon { color: #1A7A4A; }
.status-success .status-title { color: var(--teal-dark); }
.status-failed .status-icon { color: var(--rose); }
.status-failed .status-title { color: var(--rose); }

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 44px 36px;
    width: 100%;
    max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: var(--font-display); font-size: 22px; color: var(--teal-dark); margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: var(--text-light); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-light); }
.auth-footer a { color: var(--teal); font-weight: 600; }

/* ─── Admin/Dashboard ────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: var(--teal-dark);
    padding: 28px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { padding-top: 16px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.sidebar-link:hover, .sidebar-link.active { color: var(--white); background: rgba(255,255,255,.1); }
.sidebar-link.active { border-left: 3px solid var(--gold); }
.sidebar-section { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 16px 20px 6px; }

.admin-content { padding: 32px; background: #F4F6F8; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-page-title { font-family: var(--font-display); font-size: 22px; color: var(--teal-dark); }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.stat-sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Table */
.table-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-title { font-weight: 700; font-size: 15px; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #F8F8F8;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* ─── Agent Dashboard ────────────────────────────────────────────────────── */
.agent-link-box {
    background: var(--teal-light);
    border: 1.5px solid var(--teal);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.agent-link-url { flex: 1; font-weight: 600; color: var(--teal-dark); font-size: 15px; word-break: break-all; }

/* ─── Forms Alert ────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 500;
}
.alert-success { background: #E6F9F1; color: #1A7A4A; border: 1px solid #B6E8D0; }
.alert-error { background: #FDE8EA; color: #B84D55; border: 1px solid #F5B8BC; }
.alert-info { background: var(--teal-light); color: var(--teal-dark); border: 1px solid rgba(26,92,90,.2); }
.alert-warning { background: var(--gold-pale); color: var(--gold); border: 1px solid #F0C060; }

/* ─── Agent Banner (Homepage) ────────────────────────────────────────────── */
.agent-banner {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #1A4845 100%);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
.agent-banner::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201,146,42,.2) 0%, transparent 70%);
}
.agent-banner-icon { font-size: 42px; margin-bottom: 14px; }
.agent-banner-title { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px); font-weight: 600; margin-bottom: 10px; }
.agent-banner-title em { color: var(--gold-light); font-style: italic; }
.agent-banner-desc { color: rgba(255,255,255,.8); font-size: 14px; max-width: 420px; margin: 0 auto 24px; }
.agent-perks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.agent-perk {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light);
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.page-btn:hover, .page-btn.active { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 6px; align-items: center; padding: 14px 0; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--text-light); }

/* ─── WhatsApp Float ─────────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 20px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    z-index: 200;
    transition: var(--transition);
    animation: wa-pulse 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
    50% { box-shadow: 0 4px 28px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.8); margin-top: 60px; }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 18px 40px;
}
.footer-brand .footer-logo { margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social .social-icon { color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15); }
.footer-social .social-icon:hover { color: var(--gold-light); background: rgba(201,146,42,.2); border-color: var(--gold); }
.footer-links h4, .footer-coverage h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.coverage-label { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.states-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.state-tag {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.65);
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-note { color: var(--gold); font-weight: 600; }

/* ─── Misc UI ─────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.page-hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 0;
}
.page-hero-title { font-family: var(--font-display); font-size: clamp(20px, 4vw, 32px); }
.page-hero-sub { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 6px; }

/* ─── Analytics chart ────────────────────────────────────────────────────── */
.bar-chart { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; background: linear-gradient(180deg, var(--teal-mid) 0%, var(--teal) 100%); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .3s ease; }
.bar-label { font-size: 10px; color: var(--text-light); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-inner { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .cart-layout { grid-template-columns: 1fr 360px; }
    .checkout-layout { grid-template-columns: 1fr 360px; }
    .product-detail { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1.6fr 1fr 1.4fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; padding: 18px 0; }
}
@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
}
@media (min-width: 768px) {
    .admin-sidebar { display: block; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FREE POSTAGE HIGHLIGHT BANNER
═══════════════════════════════════════════════════════════════════════════ */
.postage-highlight {
    background: linear-gradient(135deg, #1A5C5A 0%, #2A7A77 60%, #1A5C5A 100%);
    padding: 36px 0;
    position: relative;
    overflow: hidden;
}
.postage-highlight::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(201,146,42,.15);
    pointer-events: none;
}
.postage-highlight::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 10%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.postage-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.postage-icon-wrap {
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.postage-text { flex: 1; min-width: 200px; }
.postage-headline {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 4px;
}
.postage-sub { color: rgba(255,255,255,.85); font-size: 14px; }
.postage-states-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 340px;
}
.postage-state {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500;
    transition: background .2s;
}
.postage-state:hover { background: rgba(201,146,42,.35); }

/* ═══════════════════════════════════════════════════════════════════════════
   SOCIAL MEDIA BAR
═══════════════════════════════════════════════════════════════════════════ */
.social-bar {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.social-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.social-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-right: 4px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    border: 1.5px solid transparent;
}
.social-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.social-fb  { background: #E8F0FE; color: #1877F2; border-color: rgba(24,119,242,.2); }
.social-fb:hover  { background: #1877F2; color: #fff; }
.social-ig  { background: #FCE4EC; color: #E1306C; border-color: rgba(225,48,108,.2); }
.social-ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-tt  { background: #F0F0F0; color: #000; border-color: rgba(0,0,0,.1); }
.social-tt:hover  { background: #000; color: #fff; }
.social-wa  { background: #E8F5E9; color: #25D366; border-color: rgba(37,211,102,.2); }
.social-wa:hover  { background: #25D366; color: #fff; }

/* Footer social update */
.footer-social .social-pill { padding: 6px 12px; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANALYTICS — LEAD PROGRESS BAR
═══════════════════════════════════════════════════════════════════════════ */
.lead-bar-wrap { display: flex; align-items: center; gap: 8px; }
.lead-bar-bg { background: #EEE; border-radius: 4px; height: 6px; width: 60px; overflow: hidden; flex-shrink: 0; }
.lead-bar-fill { background: var(--teal); height: 100%; border-radius: 4px; transition: width .4s; }

@media (max-width: 767px) {
    .postage-banner-inner { gap: 16px; }
    .postage-states-wrap { max-width: 100%; }
    .postage-headline { font-size: 18px; }
    .social-bar-inner { gap: 8px; }
    .social-pill { font-size: 12px; padding: 6px 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT IMAGE GALLERY
═══════════════════════════════════════════════════════════════════════════ */
.product-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gold-pale);
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 64px; height: 64px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background-size: cover; background-position: center;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    flex-shrink: 0;
}
.gallery-thumb:hover { border-color: var(--teal); transform: scale(1.05); }
.gallery-thumb.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(26,92,90,.25); }

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEWS SECTION
═══════════════════════════════════════════════════════════════════════════ */
.reviews-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}
.reviews-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.reviews-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--teal-dark);
    margin: 0 0 4px;
    min-width: 160px;
}
.reviews-avg {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.reviews-avg-score {
    font-size: 52px;
    font-weight: 800;
    color: var(--teal-dark);
    line-height: 1;
}
.star-row { display: flex; gap: 2px; }
.star-row-lg { gap: 4px; }
.star { font-size: 18px; color: #DDD; }
.star.filled { color: #F5A623; }
.rating-breakdown { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-row-label { font-size: 12px; color: var(--text-mid); width: 20px; text-align: right; flex-shrink: 0; }
.rating-bar-bg { flex: 1; height: 7px; background: #EEE; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #F5A623; border-radius: 4px; transition: width .4s; }
.rating-row-count { font-size: 12px; color: var(--text-light); width: 20px; flex-shrink: 0; }

/* Review cards grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card.review-featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E8 100%);
}
.review-featured-badge {
    position: absolute;
    top: -1px; right: 14px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: .04em;
}
.review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.reviewer-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.reviewer-name { font-weight: 700; font-size: 13px; color: var(--text-dark); }
.review-date { font-size: 11px; color: var(--text-light); margin-left: auto; white-space: nowrap; }
.review-title { font-weight: 700; font-size: 14px; color: var(--teal-dark); margin-bottom: 6px; font-style: italic; }
.review-text { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin: 0; }

/* ── Star picker (form) ─────────────────────────────────────────────────── */
.review-form-wrap {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-top: 8px;
}
.review-form-title {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--teal-dark);
    margin: 0 0 20px;
}
.star-picker { display: flex; align-items: center; gap: 6px; }
.star-pick-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #DDD;
    cursor: pointer;
    padding: 0 2px;
    transition: color .1s, transform .1s;
    line-height: 1;
}
.star-pick-btn.active,
.star-pick-btn.hover { color: #F5A623; transform: scale(1.15); }
.star-pick-label { font-size: 13px; color: var(--text-mid); margin-left: 6px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE TESTIMONIALS
═══════════════════════════════════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(26,92,90,.07);
    border: 1px solid rgba(26,92,90,.08);
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,92,90,.12); }
.testimonial-stars { color: #F5A623; font-size: 17px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-title { font-weight: 700; font-size: 15px; color: var(--teal-dark); margin-bottom: 8px; font-style: italic; }
.testimonial-text { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin: 0 0 16px; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.testimonial-name { font-weight: 700; font-size: 13px; color: var(--text-dark); }
.testimonial-product { font-size: 11px; color: var(--text-light); margin-top: 2px; }

@media (max-width: 767px) {
    .reviews-header { flex-direction: column; gap: 16px; }
    .reviews-avg { gap: 14px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .gallery-thumb { width: 52px; height: 52px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN SETTINGS PAGE
═══════════════════════════════════════════════════════════════════════════ */
.settings-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}
.settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.settings-section-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.settings-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--teal-dark);
    margin: 0 0 3px;
}
.settings-section-desc {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}
.settings-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.settings-fields .form-group:only-child,
.settings-fields .form-group:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.field-hint {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 6px;
}
.font-mono { font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .01em; }
.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    opacity: .6;
}
.pwd-toggle:hover { opacity: 1; }

/* Toggle switch */
.settings-toggle-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
.toggle-wrap { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #CCC;
    border-radius: 24px;
    transition: background .2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-wrap input:checked + .toggle-slider { background: var(--teal); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Sandbox badge */
.sandbox-badge {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.sandbox-on  { background: #FDF3DC; color: #8A6010; border: 1px solid #F0C060; }
.sandbox-off { background: #E6F9F1; color: #1A7A4A; border: 1px solid #B6E8D0; }

/* Hint/info box */
.settings-hint-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.copy-code {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
    color: var(--teal);
    transition: background .15s;
}
.copy-code:hover { background: var(--teal-pale); }

/* Social label icon */
.social-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 4px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .settings-fields { grid-template-columns: 1fr; }
    .settings-section-head { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO IMAGE — ACTUAL IMAGE STATE
═══════════════════════════════════════════════════════════════════════════ */
.hero-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    aspect-ratio: 1;
    max-width: 460px;
    margin: 0 auto;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.hero-img-wrap:hover .hero-img { transform: scale(1.03); }
.hero-img-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(201,146,42,.12) 0%, transparent 60%);
    pointer-events: none;
}
