/* ═══════════════════════════════════════════════════════════
   BGadi Store — Base Stylesheet
   ═══════════════════════════════════════════════════════════ */
*{box-sizing:border-box;margin:0;padding:0}
:root{--brand:#ff3f6c;--dark:#282c3f;--muted:#94969f;--bg:#fff;--bg2:#f5f5f6;--border:#eaeaec;--ok:#03a685;--accent:#ff3f6c}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',system-ui,-apple-system,sans-serif;color:var(--dark);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}
.wrap{max-width:1400px;margin:0 auto;padding:0 16px}

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6{font-family:'Josefin Sans',sans-serif;font-weight:700;line-height:1.2}

/* ── Buttons ───────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 24px;border:1.5px solid transparent;border-radius:4px;font:600 .88rem 'DM Sans',sans-serif;cursor:pointer;transition:all .15s;text-decoration:none}
.btn-accent{background:var(--brand);color:#fff;border-color:var(--brand)}.btn-accent:hover{background:#e63565}
.btn-dark{background:var(--dark);color:#fff}.btn-dark:hover{background:#3d4152}
.btn-ghost{background:transparent;color:var(--dark);border-color:var(--border)}.btn-ghost:hover{border-color:var(--dark)}
.btn-block{display:flex;width:100%}
.btn-sm{font-size:.82rem;padding:8px 18px}

/* ── Alerts ────────────────────────────────────────────────── */
.alert{padding:12px 16px;border-radius:6px;font-size:.86rem;margin-bottom:12px}
.alert-success{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.alert-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}

/* ── Forms ──────────────────────────────────────────────────── */
input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="date"],input[type="url"],input[type="search"],select,textarea{font-family:'DM Sans',sans-serif}

/* ── Product grid (used by shop, related, etc.) ────────────── */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1024px){.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}}
.product-card-wrap{position:relative}
.product-card{display:block;background:var(--bg);border:1px solid var(--border);border-radius:4px;overflow:hidden;text-decoration:none;color:inherit;transition:all .2s}
.product-card:hover{box-shadow:0 8px 24px rgba(40,44,63,.08);border-color:transparent;transform:translateY(-3px)}
.pc-image{width:100%;aspect-ratio:3/4;background:var(--bg2);overflow:hidden;position:relative}
.pc-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.product-card:hover .pc-image img{transform:scale(1.04)}
.pc-noimg{display:flex;align-items:center;justify-content:center;height:100%;color:#d1d5db;font-size:.8rem}
.pc-tag{position:absolute;top:8px;left:8px;background:var(--dark);color:#fff;font-size:.62rem;font-weight:700;padding:3px 7px;border-radius:2px;text-transform:uppercase}
.pc-body{padding:12px 14px}
.pc-name{display:block;font-size:.84rem;font-weight:500;color:var(--dark);line-height:1.3;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.2em}
.pc-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:.88rem}
.pc-price .now{font-weight:700;color:var(--dark)}
.pc-price .was{font-size:.76rem;color:var(--muted);text-decoration:line-through}
.wish-btn{position:absolute;top:8px;right:8px;width:30px;height:30px;background:rgba(255,255,255,.92);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ccc;z-index:2;box-shadow:0 1px 4px rgba(0,0,0,.06);transition:all .15s}
.wish-btn:hover,.wish-btn.wishlisted{color:var(--brand)}

/* ── Related products ──────────────────────────────────────── */
.related-section{padding:32px 0;border-top:1px solid var(--border)}
.related-title{font-size:1.2rem;margin-bottom:20px}
.related-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.related-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.related-grid{grid-template-columns:repeat(2,1fr)}}

/* ── Reviews ───────────────────────────────────────────────── */
.reviews-section{padding:32px 0;border-top:1px solid var(--border)}
.rev-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:12px}
.rev-head h2{font-size:1.2rem;margin:0}
.rev-summary{display:flex;align-items:center;gap:12px}
.rev-avg{font-size:2rem;font-weight:700;color:var(--dark)}
.rev-stars-lg{display:flex;gap:2px;color:#f59e0b}
.rev-form-card{background:var(--bg2);border-radius:8px;padding:20px;margin-bottom:20px}
.rev-form-card h3{font-size:1rem;margin:0 0 14px}
.rev-form{display:flex;flex-direction:column;gap:12px}
.rev-form-rating{display:flex;align-items:center;gap:10px}
.rev-form-label{font-size:.86rem;font-weight:600}
.star-picker{display:flex;gap:4px}
.star-pick{cursor:pointer;display:flex}.star-pick input{display:none}
.star-pick.active svg{fill:#d4a017}
.rev-form-field label{display:block;font-size:.82rem;font-weight:600;margin-bottom:4px}
.rev-form-field input,.rev-form-field textarea{width:100%;padding:10px 14px;border:1.5px solid var(--border);border-radius:6px;font:400 .88rem 'DM Sans',sans-serif;outline:none}
.rev-form-field input:focus,.rev-form-field textarea:focus{border-color:var(--dark)}
.rev-success{background:#dcfce7;color:#15803d;padding:14px;border-radius:6px;margin-bottom:14px;font-size:.88rem}
.rev-note{font-size:.86rem;color:var(--muted);margin-bottom:14px}.rev-note a{color:var(--dark);font-weight:600;text-decoration:underline}
.rev-list{display:flex;flex-direction:column;gap:12px}
.rev-item{border-bottom:1px solid var(--border);padding-bottom:14px}
.rev-item-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:.84rem}
.rev-stars{display:flex;gap:1px;color:#f59e0b}
.rev-verified{font-size:.68rem;font-weight:600;color:var(--ok);background:#dcfce7;padding:2px 6px;border-radius:3px}
.rev-date{font-size:.76rem;color:var(--muted)}
.rev-item-title{font-weight:600;margin-bottom:4px;font-size:.88rem}
.rev-item-body{font-size:.86rem;color:#535766;line-height:1.6}

/* ── Utilities ─────────────────────────────────────────────── */
.muted{color:var(--muted)}
.text-center{text-align:center}
.opacity-half{opacity:.5}

/* ── Money helper ──────────────────────────────────────────── */
/* money() PHP function handles formatting */
</style>
