/* ── Reset & Base ─────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0a;
    color: #e4e4e7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: #e11d48; text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e11d48 !important;
    text-decoration: none !important;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: #a1a1aa; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.btn-nav {
    background: #e11d48 !important;
    color: #fff !important;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-nav:hover { background: #be123c !important; text-decoration: none !important; }
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #27272a;
    color: #e4e4e7;
    font-size: 1.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

/* ── Container ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: radial-gradient(ellipse at center top, #e11d4810 0%, transparent 60%);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero h1 span { color: #e11d48; }
.hero p {
    color: #71717a;
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}
.btn-primary { background: #e11d48; color: #fff; }
.btn-primary:hover { background: #be123c; }
.btn-outline { background: transparent; color: #e4e4e7; border: 1px solid #27272a; }
.btn-outline:hover { background: #18181b; border-color: #3f3f46; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ── Stats strip ─────────────────────────────────────────────────── */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .number { font-size: 2rem; font-weight: 800; color: #e11d48; }
.stat .label { font-size: 0.8rem; color: #71717a; margin-top: 0.15rem; }

/* ── Section header ──────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.section-header p { color: #71717a; font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ── Product cards ───────────────────────────────────────────────── */
.category-section { margin-bottom: 2.5rem; }
.category-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e1e22;
}
.product-card-link {
    text-decoration: none !important;
    color: inherit;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    border-color: #e11d48;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px #e11d4825;
}
.product-icon {
    width: 50px;
    height: 50px;
    background: #e11d4812;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.product-card h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.product-card .desc { color: #71717a; font-size: 0.85rem; line-height: 1.5; margin-bottom: 1.25rem; }
.product-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1.25rem; }
.product-price .label { color: #52525b; font-size: 0.8rem; }
.product-price .amount { color: #e11d48; font-size: 1.5rem; font-weight: 800; }

/* ── Review cards ────────────────────────────────────────────────── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.review-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.5rem;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.review-user { font-weight: 700; color: #fff; }
.review-product { font-size: 0.8rem; color: #e11d48; background: #e11d4815; padding: 0.2rem 0.6rem; border-radius: 999px; }
.review-stars { color: #facc15; font-size: 0.95rem; margin-bottom: 0.5rem; }
.review-text { color: #a1a1aa; font-size: 0.9rem; line-height: 1.55; }
.review-date { color: #52525b; font-size: 0.75rem; margin-top: 0.75rem; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: #18181b; }
.faq-question .arrow { color: #e11d48; font-size: 1.1rem; transition: transform 0.3s; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 1.25rem 1.1rem; }
.faq-answer p { color: #a1a1aa; font-size: 0.9rem; line-height: 1.6; }

/* ── Contact form ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.contact-info h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.contact-info p { color: #71717a; font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    color: #e4e4e7;
    text-decoration: none;
    transition: border-color 0.2s;
}
.contact-link:hover { border-color: #e11d48; text-decoration: none; }
.contact-link .icon { font-size: 1.25rem; }
.contact-link .text { font-size: 0.9rem; }
.form-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: #a1a1aa; }
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
input:focus, textarea:focus { border-color: #e11d48; }
textarea { min-height: 120px; resize: vertical; }

/* ── Flash messages ──────────────────────────────────────────────── */
.flash { padding: 0.75rem 1rem; border-radius: 8px; margin: 1rem 0; font-size: 0.9rem; }
.flash.error { background: #2d1215; border: 1px solid #e11d48; color: #fca5a5; }
.flash.success { background: #0d2818; border: 1px solid #22c55e; color: #86efac; }

/* ── Features strip ──────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}
.feature .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature p { color: #71717a; font-size: 0.82rem; line-height: 1.5; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #1a0a12 0%, #0a0a1a 100%);
    border: 1px solid #1e1e22;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-section h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.cta-section p { color: #71717a; font-size: 0.95rem; margin-bottom: 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { color: #e11d48; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-desc { color: #52525b; font-size: 0.85rem; line-height: 1.5; max-width: 300px; }
footer h4 { color: #a1a1aa; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
footer a { display: block; color: #52525b; font-size: 0.85rem; padding: 0.2rem 0; transition: color 0.2s; text-decoration: none; }
footer a:hover { color: #e11d48; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 1.25rem; text-align: center; }
.footer-bottom p { color: #3f3f46; font-size: 0.8rem; }

/* ── Checkout ─────────────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.checkout-summary h2,
.checkout-payment h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}
.checkout-product-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.checkout-product-card .product-icon { margin-bottom: 0.75rem; }
.checkout-product-card h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.checkout-product-card .desc { color: #71717a; font-size: 0.85rem; line-height: 1.5; }
.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.checkout-total span:first-child { color: #a1a1aa; font-size: 1rem; font-weight: 600; }
.checkout-total .amount { color: #e11d48; font-size: 1.75rem; font-weight: 800; }
.checkout-payment {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.75rem;
}
.payment-btn { margin-top: 0.5rem; font-size: 1rem; padding: 0.85rem; }
.payment-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}
.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #27272a;
}
.payment-divider span {
    position: relative;
    background: #111113;
    padding: 0 1rem;
    color: #52525b;
    font-size: 0.85rem;
}
.checkout-secure {
    margin-top: 1.25rem;
    text-align: center;
    color: #52525b;
    font-size: 0.8rem;
}
#paypal-button-container { min-height: 55px; }

/* CashApp */
.btn-cashapp { background: #00d632; color: #000; font-weight: 700; }
.btn-cashapp:hover { background: #00b82b; }
.cashapp-instructions {
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.cashapp-instructions p { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 0.5rem; }
.cashapp-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d632;
    margin: 0.5rem 0 1rem;
}
.cashapp-instructions ol {
    color: #a1a1aa;
    font-size: 0.85rem;
    line-height: 1.8;
    padding-left: 1.25rem;
}
.cashapp-instructions ol strong { color: #e4e4e7; }

/* ── Success ─────────────────────────────────────────────────────── */
.success-box {
    max-width: 550px;
    margin: 0 auto;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 16px;
    padding: 3rem 2rem;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-box h1 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.success-box p { color: #a1a1aa; font-size: 0.95rem; line-height: 1.6; }
.success-note { color: #71717a !important; font-size: 0.85rem !important; margin-top: 0.75rem; }

/* ── Invoice page ─────────────────────────────────────────────────── */
.invoice-page { max-width: 700px; margin: 0 auto; }
.invoice-header { text-align: center; margin-bottom: 2rem; }
.invoice-header h1 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.mono { font-family: 'Courier New', Courier, monospace; }
.accent { color: #e11d48; font-weight: 700; }
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-pending { background: #422006; color: #fbbf24; border: 1px solid #92400e; }
.status-delivered { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.invoice-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.invoice-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #1e1e22; }
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #0e0e10;
}
.invoice-row:last-child { border-bottom: none; }
.invoice-row span:first-child { color: #71717a; font-size: 0.9rem; }
.invoice-row span:last-child { color: #e4e4e7; font-size: 0.9rem; text-align: right; max-width: 60%; word-break: break-all; }
.delivered-card { border-color: #166534; }
.delivered-card h3 { border-bottom-color: #166534; }
.pending-card { border-color: #92400e; }
.pending-card h3 { border-bottom-color: #92400e; }
.invoice-save {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 12px;
}
.invoice-save p { color: #71717a; font-size: 0.85rem; }
.invoice-save .mono { color: #e11d48; font-weight: 700; }

/* ── Lookup ───────────────────────────────────────────────────────── */
.lookup-box {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.lookup-box h1 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.lookup-box > p { color: #71717a; font-size: 0.95rem; margin-bottom: 2rem; }
.lookup-form {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.75rem;
}

/* ── Admin ────────────────────────────────────────────────────────── */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-header h1 { color: #fff; font-size: 1.5rem; font-weight: 800; }
.admin-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.orders-table-wrap { overflow-x: auto; }
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    overflow: hidden;
}
.orders-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    background: #18181b;
    color: #a1a1aa;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #1e1e22;
}
.orders-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #0e0e10;
    color: #e4e4e7;
}
.orders-table tbody tr:hover { background: #18181b; }
.orders-table tbody tr:last-child td { border-bottom: none; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-detail-grid .invoice-card:first-child { grid-column: 1 / -1; }
.order-detail-grid .invoice-card:last-child { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: #52525b; font-size: 1rem; }

/* admin login */
.admin-login-box {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}
.admin-login-box h1 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.admin-login-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.75rem;
}

/* admin nav */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 10px;
}
.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.admin-nav a:hover { background: #18181b; color: #fff; text-decoration: none; }
.admin-nav a.active { background: #e11d48; color: #fff; }

/* ── Product Form Layout ──────────────────────────────────────────── */
.product-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.form-section {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.form-section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1e1e22;
}
.form-section-header h2 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.form-section-header p {
    color: #52525b;
    font-size: 0.82rem;
    margin: 0;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-hint {
    display: block;
    color: #52525b;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.form-select {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.form-select:focus { border-color: #e11d48; }

/* ── Toggle switches ──────────────────────────────────────────────── */
.toggle-group { display: flex; flex-direction: column; gap: 0.5rem; }
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    cursor: pointer;
    border-bottom: 1px solid #0e0e10;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { color: #e4e4e7; font-size: 0.9rem; font-weight: 500; }
.toggle-input { display: none; }
.toggle-slider {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #27272a;
    border-radius: 999px;
    transition: background 0.25s;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #52525b;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.25s, background 0.25s;
}
.toggle-input:checked + .toggle-slider { background: #e11d48; }
.toggle-input:checked + .toggle-slider::after {
    transform: translateX(20px);
    background: #fff;
}

/* ── File upload ──────────────────────────────────────────────────── */
.file-upload-area {
    position: relative;
}
.file-upload-area input[type="file"] {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 0.85rem;
    cursor: pointer;
}
.file-upload-area input[type="file"]::file-selector-button {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    margin-right: 0.75rem;
    transition: background 0.2s;
}
.file-upload-area input[type="file"]::file-selector-button:hover { background: #3f3f46; }
.current-image { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.preview-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #27272a; }

/* ── Price input group ────────────────────────────────────────────── */
.price-input-group {
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
    overflow: hidden;
    transition: border 0.2s;
}
.price-input-group:focus-within { border-color: #e11d48; }
.price-currency {
    padding: 0.65rem 0.85rem;
    background: #18181b;
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 600;
    border-right: 1px solid #27272a;
}
.price-input-group input {
    border: none !important;
    background: transparent !important;
    padding: 0.65rem 1rem;
    flex: 1;
}

/* ── Variant selector ─────────────────────────────────────────────── */
.variant-list { display: flex; flex-direction: column; gap: 0.5rem; }
.variant-selector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.variant-selector-item:hover { border-color: #3f3f46; background: #18181b; }
.variant-selector-item.active { border-color: #e11d48; background: #1a0a12; }
.variant-selector-info strong { color: #fff; font-size: 0.9rem; display: block; margin-bottom: 0.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-selector-meta { display: flex; align-items: center; gap: 0.5rem; }
.variant-price-badge {
    font-size: 0.82rem;
    color: #e11d48;
    font-weight: 700;
}
.variant-stock-badge {
    font-size: 0.78rem;
    color: #71717a;
    background: #18181b;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #27272a;
}
.empty-variant-notice {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #52525b;
    font-size: 0.9rem;
}

/* ── Variant panels ───────────────────────────────────────────────── */
.variant-panel { display: none; }
.variant-panel.active { display: block; }

/* ── Variant tabs ─────────────────────────────────────────────────── */
.variant-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    background: #0a0a0a;
    border-radius: 10px;
    border: 1px solid #1e1e22;
    overflow-x: auto;
}
.variant-tab {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.variant-tab:hover { color: #e4e4e7; background: #18181b; }
.variant-tab.active { color: #fff; background: #e11d48; }

/* ── Variant tab content ──────────────────────────────────────────── */
.variant-tab-content { display: none; }
.variant-tab-content.active { display: block; }

/* ── UUID display ─────────────────────────────────────────────────── */
.uuid-display {
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}
.uuid-display code {
    color: #e11d48;
    font-size: 0.82rem;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
}

/* ── Inline forms ─────────────────────────────────────────────────── */
.inline-add-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.inline-add-form input {
    flex: 1;
}
.inline-edit-form {
    display: inline;
}
.inline-edit-form input[name="name"] {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    width: auto;
    transition: border 0.2s;
}
.inline-edit-form input[name="name"]:focus { border-color: #e11d48; background: #0a0a0a; }
.inline-edit-form input[name="sort_order"] {
    background: transparent;
    border: 1px solid transparent;
    color: #a1a1aa;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: border 0.2s;
    text-align: center;
}
.inline-edit-form input[name="sort_order"]:focus { border-color: #e11d48; background: #0a0a0a; }

/* status badges for product statuses */
.status-active { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.status-coming_soon { background: #422006; color: #fbbf24; border: 1px solid #92400e; }
.status-out_of_stock { background: #2d1215; color: #fca5a5; border: 1px solid #7f1d1d; }

/* ── Publish status bar ───────────────────────────────────────────── */
.publish-status-bar {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.publish-status-bar.published {
    background: #052e16;
    border: 1px solid #166534;
    color: #4ade80;
}
.publish-status-bar.published a { color: #86efac; text-decoration: underline; }
.publish-status-bar.draft {
    background: #422006;
    border: 1px solid #92400e;
    color: #fbbf24;
}

/* ── Publish / unpublish buttons ──────────────────────────────────── */
.btn-publish {
    background: #16a34a !important;
    color: #fff !important;
    font-weight: 700;
}
.btn-publish:hover { background: #15803d !important; }
.btn-unpublish {
    background: #92400e !important;
    color: #fbbf24 !important;
    font-weight: 700;
}
.btn-unpublish:hover { background: #78350f !important; }

/* ── Sticky save bar ──────────────────────────────────────────────── */
.save-bar {
    position: sticky;
    bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(17, 17, 19, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #1e1e22;
    border-radius: 12px;
    margin-top: 1.25rem;
    z-index: 50;
}
.save-bar .btn { flex: 1; text-align: center; padding: 0.75rem; font-size: 0.95rem; }

/* ── Product Detail ───────────────────────────────────────────────── */
.pd-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.pd-image { margin-bottom: 1.5rem; }
.pd-image img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #1e1e22;
}
.pd-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.pd-icon {
    width: 56px;
    height: 56px;
    background: #e11d4812;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}
.pd-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.pd-cat-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: #e11d48;
    background: #e11d4815;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    margin-top: 0.25rem;
}
.pd-short-desc {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Feature list (description lines) */
.pd-description {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1e1e22;
}
.pd-feature-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e4e4e7;
    font-size: 0.9rem;
}
.pd-feature-check {
    color: #e11d48;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Purchase card */
.pd-purchase-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 84px;
}
.pd-price-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1e1e22;
}
.pd-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #e11d48;
    letter-spacing: -0.02em;
}
.pd-label {
    display: block;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

/* Quantity control */
.pd-quantity-section {
    margin-bottom: 1.5rem;
}
.pd-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}
.pd-qty-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #e4e4e7;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-qty-btn:hover { background: #18181b; }
.pd-qty-btn:active { background: #27272a; }
.pd-qty-value {
    width: 48px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border-left: 1px solid #27272a;
    border-right: 1px solid #27272a;
    line-height: 44px;
}

/* Variant cards */
.pd-variants-section {
    margin-bottom: 1.5rem;
}
.pd-variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.pd-variant-card {
    background: #0a0a0a;
    border: 2px solid #27272a;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
}
.pd-variant-card:hover {
    border-color: #3f3f46;
    background: #131315;
}
.pd-variant-card.active {
    border-color: #e11d48;
    background: #1a0a12;
    box-shadow: 0 0 0 1px #e11d4840;
}
.pd-variant-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.pd-variant-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}
.pd-variant-price {
    color: #e11d48;
    font-size: 1rem;
    font-weight: 800;
}
.pd-variant-desc {
    color: #71717a;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 0.25rem;
}
.pd-variant-stock {
    color: #52525b;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

/* Buy button */
.pd-buy-btn {
    padding: 0.9rem;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}
.pd-secure-note {
    text-align: center;
    color: #52525b;
    font-size: 0.78rem;
    margin-top: 1rem;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0a0a0a;
        border-bottom: 1px solid #1a1a1a;
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    .nav-links.open { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .stats-strip { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-grid .invoice-card:first-child,
    .order-detail-grid .invoice-card:last-child { grid-column: auto; }
    .orders-table { font-size: 0.82rem; }
    .orders-table th, .orders-table td { padding: 0.6rem 0.65rem; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .product-form-grid { grid-template-columns: 1fr; }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-purchase-card { position: static; }
    .form-row-2 { grid-template-columns: 1fr; }
    .variant-tabs { flex-wrap: nowrap; }
}

/* ── Discord Popup ──────────────────────────────────────────────── */
.discord-popup {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: #1a1a2e;
    border: 1px solid #e11d48;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(225, 29, 72, .25);
    animation: popupSlide .4s ease-out;
    max-width: 260px;
}
@keyframes popupSlide {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.discord-popup-close {
    position: absolute;
    top: .4rem;
    right: .7rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.discord-popup-close:hover { color: #fff; }
.discord-popup-icon { font-size: 1.8rem; }
.discord-popup-text {
    color: #ccc;
    font-size: .85rem;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}
.discord-popup-btn {
    font-size: .8rem;
    padding: .45rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
}
