/* ============================================================
   theme.css — AURA BitMall Theme  (site-wide)
   ============================================================ */
:root {
    --brand:      #f7b740;
    --brand-dk:   #e0a030;
    --gold:       #f7b740;
    --text:       #1e1e1e;
    --mid:        #555;
    --muted:      #888;
    --border:     #e8e8e8;
    --bg:         #f7f7f7;
    --white:      #fff;
    --r:          6px;
    --t:          .2s ease;
    --sw:         250px;
    /* legacy compat */
    --brand-gold: #f7b740;
    --soft-cream: #f7f7f7;
    --text-dark:  #1e1e1e;
    --radius:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Poppins', sans-serif; color: var(--text); scroll-behavior: smooth; }
body { background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.serif { font-family: 'Playfair Display', serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Flash bars ─────────────────────────────────────────── */
.flash-bar { padding: 11px 20px; font-size: .84rem; text-align: center; border-bottom: 1px solid; }
.flash-bar.success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.flash-bar.error   { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.flash-bar.info    { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.t-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .77rem; color: var(--muted); padding: 14px 0; flex-wrap: wrap; }
.t-breadcrumb a { color: var(--muted); transition: color var(--t); }
.t-breadcrumb a:hover { color: var(--brand); }
.t-breadcrumb .sep { color: #ccc; }

/* ── Page header strip ──────────────────────────────────── */
.page-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 22px 0 18px; margin-bottom: 28px; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.page-header p  { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ── Section title ──────────────────────────────────────── */
.sec-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text); padding-bottom: 10px; border-bottom: 2px solid var(--brand); display: inline-block; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-brand { display: inline-flex; align-items: center; gap: 7px; background: var(--brand); color: white; padding: 11px 22px; border-radius: var(--r); font-size: .85rem; font-weight: 600; border: none; cursor: pointer; transition: background var(--t); font-family: inherit; }
.btn-brand:hover { background: var(--brand-dk); color: white; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--brand); color: var(--brand); padding: 11px 22px; border-radius: var(--r); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all var(--t); font-family: inherit; }
.btn-outline:hover { background: var(--brand); color: white; }
.btn-dark-sm { background: var(--text); color: white; padding: 8px 18px; border-radius: var(--r); font-size: .8rem; font-weight: 600; border: none; cursor: pointer; transition: background var(--t); font-family: inherit; }
.btn-dark-sm:hover { background: #333; }

/* Legacy: keep old btn-gold working */
.btn-gold { background: var(--brand); color: white; border: none; padding: 12px 24px; border-radius: var(--r); font-weight: 600; cursor: pointer; transition: background var(--t); }
.btn-gold:hover { background: var(--brand-dk); color: white; }
.btn-outline-gold { border: 1px solid var(--brand); color: var(--brand); border-radius: var(--r); padding: 9px 20px; background: white; cursor: pointer; transition: all var(--t); }
.btn-outline-gold:hover { background: var(--brand); color: white; }

/* ── Cards ──────────────────────────────────────────────── */
.t-card { background: white; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.t-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* Product cards (grid) */
.prod-card { background: white; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: box-shadow var(--t), transform var(--t); }
.prod-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.prod-card-img { position: relative; overflow: hidden; background: var(--bg); aspect-ratio: 3/4; }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-card-img img { transform: scale(1.05); }
.prod-card-badge { position: absolute; top: 10px; left: 10px; background: var(--brand); color: white; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; z-index: 2; }
.prod-card-badge.gold { background: var(--gold); }
.prod-card-body { padding: 14px; }
.prod-card-cat  { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.prod-card-name { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card-name:hover { color: var(--brand); }
.prod-card-stars { color: #ffc107; font-size: .7rem; margin-bottom: 8px; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-now  { font-size: .95rem; font-weight: 700; color: var(--brand); }
.price-was  { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: .7rem; background: #fff3f3; color: var(--brand); padding: 2px 7px; border-radius: 3px; font-weight: 600; }

/* Quick add overlay */
.prod-card-overlay { position: absolute; bottom: 0; width: 100%; background: rgba(255,255,255,.92); padding: 10px; transform: translateY(100%); transition: transform var(--t); }
.prod-card:hover .prod-card-overlay { transform: translateY(0); }
.btn-quick-add { width: 100%; background: var(--brand); color: white; border: none; padding: 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; border-radius: 4px; cursor: pointer; font-family: inherit; transition: background var(--t); }
.btn-quick-add:hover { background: var(--brand-dk); }
.wishlist-btn-card { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: white; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .9rem; color: var(--muted); transition: all var(--t); z-index: 2; }
.wishlist-btn-card:hover, .wishlist-btn-card.active { color: var(--brand); border-color: var(--brand); }

/* ── Forms ──────────────────────────────────────────────── */
.t-form-group { margin-bottom: 18px; }
.t-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; color: var(--mid); text-transform: uppercase; margin-bottom: 8px; }
.t-input { width: 100%; border: 1px solid var(--border); border-radius: var(--r); padding: 11px 14px; font-size: .88rem; font-family: inherit; color: var(--text); background: white; transition: border-color var(--t); outline: none; }
.t-input:focus { border-color: var(--brand); }
.t-input::placeholder { color: #bbb; }
textarea.t-input { resize: vertical; min-height: 90px; }
.t-select { width: 100%; border: 1px solid var(--border); border-radius: var(--r); padding: 11px 14px; font-size: .88rem; font-family: inherit; color: var(--text); background: white; cursor: pointer; outline: none; }
.t-select:focus { border-color: var(--brand); }

/* ── Tables ─────────────────────────────────────────────── */
.t-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.t-table th { background: var(--bg); padding: 12px 14px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--mid); border-bottom: 1px solid var(--border); text-align: left; }
.t-table td { padding: 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td { background: var(--bg); }

/* ── Status badges ──────────────────────────────────────── */
.status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-pending    { background: #fff3e0; color: #e65100; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-shipped    { background: #fff8e1; color: #f57f17; }
.status-delivered  { background: #e8f5e9; color: #2e7d32; }
.status-cancelled  { background: #fce4ec; color: #c62828; }
.status-paid       { background: #e8f5e9; color: #2e7d32; }
.status-refunded   { background: #f3e5f5; color: #6a1b9a; }

/* ── Pagination ─────────────────────────────────────────── */
.t-pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 32px; }
.t-page-btn { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--border); background: white; color: var(--text); font-size: .84rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t); font-family: inherit; }
.t-page-btn:hover { border-color: var(--brand); color: var(--brand); }
.t-page-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.t-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Qty picker ─────────────────────────────────────────── */
.qty-picker { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: white; }
.qty-picker button { background: none; border: none; padding: 8px 14px; cursor: pointer; font-size: 1rem; color: var(--text); transition: background var(--t); }
.qty-picker button:hover { background: var(--bg); }
.qty-val { min-width: 36px; text-align: center; font-size: .9rem; font-weight: 600; }

/* ── Size buttons ───────────────────────────────────────── */
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--r); background: white; font-size: .82rem; font-weight: 500; cursor: pointer; transition: all var(--t); font-family: inherit; position: relative; }
.size-btn:hover { border-color: var(--text); }
.size-btn.active { border-color: var(--text); background: var(--text); color: white; }
.size-btn.oos { color: #ccc; cursor: not-allowed; }

/* ── Custom-card compat ─────────────────────────────────── */
.custom-card { border: 1px solid var(--border); border-radius: var(--r); background: white; transition: transform var(--t), box-shadow var(--t); overflow: hidden; }
.custom-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.product-img-container { position: relative; background: var(--bg); overflow: hidden; }
.quick-add-overlay { position: absolute; bottom: 0; width: 100%; background: rgba(255,255,255,.92); padding: 10px; transform: translateY(100%); transition: transform var(--t); text-align: center; }
.custom-card:hover .quick-add-overlay { transform: translateY(0); }
.badge-new { background: var(--brand); color: white; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }

/* ── Review card ────────────────────────────────────────── */
.review-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.review-form-card { background: var(--bg); border-radius: var(--r); padding: 24px; border: 1px solid var(--border); }

/* ── Stars display ──────────────────────────────────────── */
.stars-display { display: flex; gap: 2px; color: #ffc107; }
.stars-display .bi { font-size: .9rem; }
.stars-sm .bi { font-size: .75rem; }

/* ── Star picker ────────────────────────────────────────── */
.star-picker { display: flex; gap: 6px; }
.star-pick-btn { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: #ffc107; padding: 0; transition: transform .15s; }
.star-pick-btn:hover { transform: scale(1.2); }

/* ── Trust row ──────────────────────────────────────────── */
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mid); }
.trust-item i { font-size: 1.1rem; color: var(--brand); }

/* ── Accordion ──────────────────────────────────────────── */
.t-accordion-item { border-bottom: 1px solid var(--border); }
.t-accordion-btn { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text); font-family: inherit; }
.t-accordion-btn:hover { color: var(--brand); }
.t-accordion-body { display: none; padding: 0 0 16px; font-size: .83rem; color: var(--mid); line-height: 1.7; }
.t-accordion-body.open { display: block; }

/* ── Footer link ─────────────────────────────────────────── */
.footer-link { display: block; font-size: .79rem; color: #888; margin-bottom: 8px; transition: color var(--t); }
.footer-link:hover { color: var(--brand); }

/* ── No-image placeholder ────────────────────────────────── */
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f0f0f0; color: #ccc; }

/* ── Scrollbar ───────────────────────────────────────────── */
.has-scrollbar::-webkit-scrollbar { height: 4px; width: 4px; }
.has-scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Responsive helpers ──────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mob { display: none !important; }
    .container { padding: 0 14px; }
}
