/* ============================================================
   assets/css/style.css
   XVaporid - Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --color-black:      #0d0d0d;
    --color-dark:       #1a1a1a;
    --color-dark-2:     #212121;
    --color-dark-3:     #2c2c2c;
    --color-gray:       #6c757d;
    --color-gray-light: #adb5bd;
    --color-white:      #ffffff;
    --color-red:        #dc3545;
    --color-red-hover:  #b02a37;
    --radius:           10px;
    --shadow:           0 4px 20px rgba(0,0,0,0.3);
    --transition:       0.25s ease;
}

/* ---- Global ---- */
* { box-sizing: border-box; }

body {
    background-color: var(--color-black);
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

a { color: var(--color-red); text-decoration: none; }
a:hover { color: var(--color-red-hover); }

img { max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray); }

/* ---- Navbar ---- */
.navbar {
    background-color: #111111 !important;
    border-bottom: 1px solid #2a2a2a;
    padding: 0.6rem 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.nav-link {
    color: #ccc !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.06);
}

.nav-search { max-width: 320px; width: 100%; }
.nav-search .form-control {
    background: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    color: #fff !important;
    font-size: 0.875rem;
}
.nav-search .form-control::placeholder { color: #888; }
.nav-search .form-control:focus { box-shadow: none; border-color: var(--color-red) !important; }

.dropdown-menu-dark {
    background: #1e1e1e;
    border: 1px solid #333;
}
.dropdown-item { color: #ccc !important; font-size: 0.875rem; }
.dropdown-item:hover { background: #2a2a2a !important; color: #fff !important; }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 50%, #0d0d0d 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #2a2a2a;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220,53,69,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--color-gray-light);
    line-height: 1.6;
}

/* ---- Section Titles ---- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
}

/* ---- Product Card ---- */
.product-card {
    background: var(--color-dark-2);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #3a3a3a;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: #1a1a1a;
}

.product-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .sku-badge {
    font-size: 0.72rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-red);
    margin-top: auto;
}

.product-card .card-footer {
    background: transparent;
    border-top: 1px solid #2a2a2a;
    padding: 0.75rem 1rem;
}

/* Product image placeholder */
.product-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
}

/* ---- Buttons ---- */
.btn-danger {
    background-color: var(--color-red);
    border-color: var(--color-red);
    font-weight: 500;
    transition: all var(--transition);
}

.btn-danger:hover {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
    transform: translateY(-1px);
}

.btn-outline-danger {
    color: var(--color-red);
    border-color: var(--color-red);
    font-weight: 500;
    transition: all var(--transition);
}

.btn-outline-danger:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: #aaa;
    border-color: #444;
}

.btn-outline-secondary:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* ---- Forms ---- */
.form-control, .form-select {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 8px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    background-color: #1e1e1e;
    border-color: var(--color-red);
    color: #e0e0e0;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.15);
}

.form-control::placeholder { color: #666; }
.form-label { color: #bbb; font-size: 0.875rem; font-weight: 500; }

/* ---- Cards (general) ---- */
.card {
    background: var(--color-dark-2);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    color: #e0e0e0;
}

.card-header {
    background: var(--color-dark-3);
    border-bottom: 1px solid #333;
    font-weight: 600;
    color: #fff;
}

/* ---- Tables ---- */
.table {
    color: #ddd;
    margin-bottom: 0;
}

.table thead th {
    background: var(--color-dark-3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3a3a3a;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: background var(--transition);
}

.table tbody tr:hover { background: rgba(255,255,255,0.03); }
.table td { vertical-align: middle; font-size: 0.875rem; border-color: #2a2a2a; }

/* ---- Badges ---- */
.badge { font-weight: 500; font-size: 0.75rem; }

/* ---- Alerts ---- */
.alert {
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* ---- Age Verification ---- */
.age-verification-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-card {
    background: rgba(26,26,26,0.95);
    border: 1px solid #3a0000;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(220,53,69,0.15);
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    background: var(--color-black);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--color-dark-2);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

/* ---- Stat Cards (Dashboard) ---- */
.stat-card {
    background: var(--color-dark-2);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #3a3a3a;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.red   { background: rgba(220,53,69,0.15);  color: var(--color-red); }
.stat-icon.blue  { background: rgba(13,110,253,0.15); color: #0d6efd; }
.stat-icon.green { background: rgba(25,135,84,0.15);  color: #198754; }
.stat-icon.yellow{ background: rgba(255,193,7,0.15);  color: #ffc107; }
.stat-icon.cyan  { background: rgba(13,202,240,0.15); color: #0dcaf0; }

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Footer ---- */
.footer-dark {
    background: #0d0d0d;
    border-top: 1px solid #1e1e1e;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #888; font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links li:not(a) { color: #888; font-size: 0.875rem; }
.bg-dark-secondary { background: #1e1e1e; }
.x-small { font-size: 0.75rem; }

/* ---- Order Status Timeline ---- */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-item:not(:last-child) .timeline-dot::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 0.5rem);
    background: #2a2a2a;
}

.timeline-content { padding-top: 4px; }
.timeline-content .title { font-size: 0.875rem; font-weight: 600; color: #fff; }
.timeline-content .subtitle { font-size: 0.78rem; color: #888; }

/* ---- Cart ---- */
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a1a1a;
}

.cart-item-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .hero-section { min-height: 320px; padding: 2rem 0; }
    .auth-card { padding: 1.5rem; margin: 1rem; }
    .age-card { margin: 1rem; padding: 1.5rem; }
    .stat-value { font-size: 1.2rem; }
    .nav-search { max-width: 100%; }
}

@media (min-width: 992px) {
    .nav-search { max-width: 300px; }
}

/* ---- Misc ---- */
.text-red { color: var(--color-red) !important; }
.bg-dark-card { background: var(--color-dark-2) !important; }
.border-dark-3 { border-color: #333 !important; }
.rounded-10 { border-radius: var(--radius) !important; }
.stock-habis { opacity: 0.6; }

/* ---- Review Stars ---- */
.star-rating .bi-star-fill { color: #ffc107; }
.star-rating .bi-star      { color: #555; }

/* ---- Payment Info Box ---- */
.payment-info-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    padding: 1.25rem;
}

.payment-info-box .label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-info-box .value {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

/* ---- Category Pills ---- */
.category-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #ccc;
    font-size: 0.825rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

/* ---- Pagination ---- */
.pagination .page-link {
    background: #1e1e1e;
    border-color: #333;
    color: #ccc;
    font-size: 0.875rem;
}

.pagination .page-link:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* ---- Input number controls for cart ---- */
.qty-input { width: 60px; text-align: center; }

/* ---- Product Detail ---- */
.product-detail-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    background: #1a1a1a;
}

.product-detail-placeholder {
    width: 100%;
    height: 360px;
    background: #1e1e1e;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 4rem;
}
