/* Core Structural Definitions */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #020617; color: #f8fafc; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Custom Dark scroll design asset */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

/* Sticky Header Styling navbar */
header { background-color: #0f172a; border-bottom: 1px solid #1e293b; padding: 20px 0; position: sticky; top: 0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); z-index: 100; }
.header-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: 1px; color: #fbbf24; }
.header-actions { display: flex; align-items: center; gap: 15px; }

/* Inputs and Forms matrix controls */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"] { 
    background-color: #0f172a; color: #f8fafc; border: 1px solid #334155; padding: 10px 15px; border-radius: 8px; outline: none; font-size: 14px; transition: border-color 0.2s;
}
select:focus, input:focus { border-color: #f59e0b; }

/* Action Interface Buttons */
.btn-gold { background-color: #f59e0b; color: #020617; font-weight: bold; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.btn-gold:hover { background-color: #d97706; }
.btn-dark { background-color: #1e293b; color: #f8fafc; font-weight: bold; border: 1px solid #334155; padding: 12px 25px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.btn-dark:hover { border-color: #64748b; background-color: #334155; }

/* Central Inventory Matrix Grid system */
main { padding: 40px 0; flex-grow: 1; }
.view-title { font-size: 20px; margin-bottom: 25px; color: #94a3b8; border-bottom: 1px solid #1e293b; padding-bottom: 10px; }
.table-container { overflow-x: auto; background-color: #0b1329; border-radius: 12px; border: 1px solid #1e293b; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background-color: #0f172a; color: #94a3b8; padding: 15px 20px; font-size: 11px; text-transform: uppercase; tracking: 1px; border-bottom: 1px solid #1e293b; }
td { padding: 15px 20px; border-bottom: 1px solid #0f172a; font-size: 15px; }
tr:hover td { background-color: #0f172a; color: #f59e0b; }
.product-name { font-weight: 600; }
.product-desc { color: #94a3b8; font-size: 14px; }
.price { color: #f59e0b; font-weight: bold; font-family: monospace; }
.qty-input { width: 65px; text-align: center; color: #f59e0b; font-weight: bold; }
.flex-end { display: flex; justify-content: flex-end; margin-top: 25px; }

/* Checkout Structural Layout Split columns */
.grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
@media (min-width: 992px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background-color: #0f172a; padding: 25px; border-radius: 12px; border: 1px solid #1e293b; }
.card-title { font-size: 18px; margin-bottom: 20px; border-bottom: 1px solid #1e293b; padding-bottom: 10px; color: #cbd5e1; }

/* Selected Dynamic Nodes display elements */
.cart-item { display: flex; justify-content: space-between; align-items: center; background-color: #020617; padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #1e293b; }
.cart-item-sub { font-size: 12px; color: #64748b; margin-top: 3px; }
.total-box { display: flex; justify-content: space-between; font-weight: bold; font-size: 18px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #1e293b; }
.total-label { color: #94a3b8; font-size: 14px; text-transform: uppercase; }
.total-price { color: #fbbf24; }

/* Contact Interface Blocks */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 11px; text-transform: uppercase; color: #94a3b8; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; background-color: #020617; }
.grid-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; }
.radio-group { display: flex; gap: 20px; margin-top: 8px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cbd5e1; cursor: pointer; }
input[type="radio"] { accent-color: #f59e0b; }

/* Final Dispatch Action Elements */
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.btn-email { background-color: rgba(37, 99, 235, 0.1); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.4); padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
.btn-email:hover { background-color: rgba(37, 99, 235, 0.2); }
.btn-wa { background-color: rgba(5, 150, 105, 0.1); color: #34d399; border: 1px solid rgba(5, 150, 105, 0.4); padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
.btn-wa:hover { background-color: rgba(5, 150, 105, 0.2); }

/* Navigation and legal footnote elements */
footer { background-color: #020617; color: #475569; text-align: center; padding: 20px 0; font-size: 11px; font-family: monospace; border-top: 1px solid #0f172a; margin-top: auto; }
.back-btn { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 15px; margin-bottom: 25px; transition: color 0.2s; }
.back-btn:hover { color: #f59e0b; }
