/* public/assets/css/main.css */
:root {
    --primary: #6c63ff;
    --primary-dark: #5a52e8;
    --accent: #ff6584;
    --bg: #0f0f1a;
    --bg2: #1a1a2e;
    --bg3: #16213e;
    --card: #1e1e32;
    --border: rgba(255,255,255,0.08);
    --text: #e8e8f0;
    --text-muted: #8888aa;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.5rem; border-radius: 8px; font-weight: 600;
    font-size: .9rem; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    font-family: inherit;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: .9; color: #fff; }
.btn-ghost    { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-sm       { padding: .4rem 1rem; font-size: .8rem; }
.btn-full     { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,15,26,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text); background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-logo { height: 36px; }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.nav-cart { position: relative; font-size: 1.25rem; color: var(--text); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 0; background: var(--bg2); padding: 1rem; }
.mobile-nav a { padding: .75rem 1rem; color: var(--text); border-bottom: 1px solid var(--border); }

/* ── FLASH MESSAGES ── */
.flash { padding: .85rem 1.5rem; text-align: center; font-weight: 600; font-size: .9rem; }
.flash-success { background: rgba(34,197,94,0.15); color: var(--success); border-bottom: 1px solid rgba(34,197,94,0.3); }
.flash-error   { background: rgba(239,68,68,0.15); color: var(--danger); border-bottom: 1px solid rgba(239,68,68,0.3); }

/* ── HERO ── */
.hero {
    min-height: 82vh; display: flex; align-items: center;
    background: radial-gradient(ellipse at 70% 50%, rgba(108,99,255,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 10% 80%, rgba(255,101,132,0.1) 0%, transparent 50%),
                var(--bg);
    padding: 5rem 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); border-radius: 999px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600; color: var(--primary); margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat span { display: block; font-size: 1.75rem; font-weight: 800; color: var(--text); }
.hero-stat small { color: var(--text-muted); font-size: .8rem; }
.hero-image { position: relative; }
.hero-img-wrap { background: var(--card); border-radius: 20px; padding: 2rem; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(108,99,255,0.2); }
.hero-mockup { width: 100%; border-radius: 12px; background: var(--bg2); min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 3rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { font-size: 1.05rem; margin-top: .75rem; }

/* ── PRODUCT CARDS ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card {
    background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.4); box-shadow: 0 12px 40px rgba(108,99,255,0.15); }
.product-img { width: 100%; height: 180px; object-fit: cover; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 2rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.25rem; }
.product-cat { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.product-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .5rem; line-height: 1.3; }
.product-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.product-price .original { color: var(--text-muted); font-size: .85rem; text-decoration: line-through; margin-right: .4rem; font-weight: 400; }
.badge-featured { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.badge-sale     { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.badge-new      { background: var(--success); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }

/* ── CATEGORIES GRID ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.category-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; text-align: center; transition: all var(--transition); text-decoration: none; color: var(--text); }
.category-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.category-icon { font-size: 2rem; margin-bottom: .75rem; }
.category-name { font-weight: 700; font-size: .95rem; }
.category-count { color: var(--text-muted); font-size: .8rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
input, textarea, select {
    width: 100%; padding: .7rem 1rem; background: var(--bg3); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-family: inherit; font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg2); }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.error-text { font-size: .78rem; color: var(--danger); margin-top: .25rem; }

/* ── ALERTS ── */
.alert { padding: .85rem 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.alert-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert ul { padding-left: 1.25rem; }

/* ── STATUS BADGES ── */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; }
.status::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-pending_payment { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-pending_review  { background: rgba(59,130,246,0.15); color: var(--info); }
.status-approved        { background: rgba(34,197,94,0.15); color: var(--success); }
.status-rejected        { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-cancelled       { background: rgba(136,136,170,0.15); color: var(--text-muted); }
.status-refunded        { background: rgba(168,85,247,0.15); color: #a855f7; }
.status-open            { background: rgba(59,130,246,0.15); color: var(--info); }
.status-resolved        { background: rgba(34,197,94,0.15); color: var(--success); }
.status-closed          { background: rgba(136,136,170,0.15); color: var(--text-muted); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: .9rem 1rem; text-align: left; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg3); border-bottom: 1px solid var(--border); }
tbody td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { background: var(--card); }
tbody tr:hover { background: rgba(108,99,255,0.05); }

/* ── CARDS ── */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }

/* ── PAGE AUTH ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.1) 0%, transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 2.5rem; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: .5rem; }
.auth-card p { margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }

/* ── CART PAGE ── */
.cart-page { padding: 3rem 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--bg3); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: .95rem; color: var(--text); }
.cart-item-price { color: var(--primary); font-weight: 700; }
.cart-summary { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.summary-total { font-size: 1.1rem; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; }
.coupon-form { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-form input { flex: 1; }

/* ── PRODUCT DETAIL ── */
.product-detail { padding: 3rem 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.detail-gallery img { width: 100%; border-radius: var(--radius); margin-bottom: .5rem; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); }
.detail-sidebar { position: sticky; top: 80px; }
.detail-price-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.75rem; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--text); }
.detail-price .orig { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; }
.detail-tabs { margin-top: 2rem; }
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { padding: .6rem 1.25rem; background: none; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── CHECKOUT ── */
.checkout-page { padding: 3rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.payment-box { background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.2); border-radius: var(--radius); padding: 1.5rem; }
.payment-box h3 { margin-bottom: 1rem; color: var(--primary); }
.payment-box p { color: var(--text); white-space: pre-line; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--card); border: 1px solid var(--border); color: var(--text-muted); font-size: .875rem; transition: all var(--transition); }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── TRUST BADGES ── */
.trust-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { text-align: center; }
.trust-icon { font-size: 2rem; margin-bottom: .75rem; }
.trust-title { font-weight: 700; font-size: .95rem; color: var(--text); }
.trust-text  { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ── FOOTER ── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 2rem; }
.footer-brand p { margin-top: .5rem; font-size: .9rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: var(--text-muted); font-size: .85rem; }
.footer-links h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: .875rem; padding: .2rem 0; }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: .8rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .mobile-nav.open { display: flex; }
    .hero-inner, .detail-grid, .checkout-grid, .cart-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
