/* DigiByteStore Core Styles (V5 Hybrid) */
:root {
    /* Palette */
    --bg-body: #f8f9fa;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;

    /* Layout Constants */
    --nav-height-desktop: 80px;
    --nav-height-mobile: 60px;
    --bottom-bar-height: 65px;

    /* UI */
    --radius-card: 16px;
    --radius-btn: 50px;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-main: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-accent {
    color: var(--accent);
}

/* ========================
   HEADER (DESKTOP)
   ======================== */
header {
    height: var(--nav-height-desktop);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

/* Desktop Menu */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active {
    font-weight: 600;
}

/* Search Bar (Deprecated - See Premium below) */
.search-bar {
    display: none;
}

/* Premium Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-bar-premium {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.search-bar-premium:focus-within {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar-premium input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    outline: none;
}

.search-bar-premium button {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar-premium button:hover {
    background: var(--accent-hover);
}

/* Icons */
.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

.icon-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* ========================
   BOTTOM NAV (MOBILE)
   ======================== */
.bottom-nav {
    display: none;
    /* Hidden on Desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--bottom-bar-height);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: 5px;
    /* iOS Safe Area */
}

.b-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    width: 25%;
    font-weight: 600;
    padding: 8px 0;
}

.b-item.active {
    color: var(--accent);
}

.b-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

/* ========================
   COMPONENTS
   ======================== */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.card {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* ========================================================
   Product Rich Description & Specs System - Ultra Modern
   ======================================================== */
.product-quick-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.product-description-content {
    color: #334155;
    font-size: 1.025rem;
    line-height: 1.8;
}

.product-description-content article,
.product-description-content .product-description {
    display: block;
}

/* Headings */
.product-description-content h1,
.product-description-content h2,
.product-desc-lead-title {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 1.5rem 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description-content h3,
.product-section-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.25rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description-content h3::before,
.product-section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 4px;
}

.product-description-content h4 {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

/* Text */
.product-description-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #475569;
}

.product-description-content strong,
.product-description-content b {
    color: #0f172a;
    font-weight: 700;
}

/* Feature Lists & Checkmarks */
.product-description-content ul,
.product-feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 2rem 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-description-content ul li,
.product-feature-list li {
    position: relative;
    padding: 14px 18px 14px 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
    transition: all 0.25s ease;
}

.product-description-content ul li:hover,
.product-feature-list li:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.product-description-content ul li::before,
.product-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 14px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.product-description-content ul li strong,
.product-feature-list li strong {
    color: #1e40af;
    font-weight: 700;
}

.product-description-content ol {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
    color: #334155;
}

.product-description-content ol li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

/* Modern Specs Table */
.product-description-content table,
.product-description-content .specs-table,
.specs-table {
    width: 100% !important;
    max-width: 880px !important;
    margin: 1.5rem 0 2rem 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    background: #ffffff !important;
}

.product-description-content table tbody tr,
.specs-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9 !important;
}

.product-description-content table tbody tr:hover,
.specs-table tbody tr:hover {
    background-color: #f8fafc;
}

.product-description-content table tbody tr:last-child,
.specs-table tbody tr:last-child {
    border-bottom: none !important;
}

.product-description-content table td:first-child,
.product-description-content table th:first-child,
.specs-table td:first-child,
.specs-table th:first-child {
    width: 32% !important;
    min-width: 160px !important;
    max-width: 260px !important;
    background: #f8fafc;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    padding: 14px 18px !important;
    border-right: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

.product-description-content table tr:last-child td:first-child,
.specs-table tr:last-child td:first-child {
    border-bottom: none !important;
}

.product-description-content table td:last-child,
.product-description-content table th:last-child,
.specs-table td:last-child,
.specs-table th:last-child {
    background: transparent;
    color: #0f172a !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    padding: 14px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

.product-description-content table tr:last-child td:last-child,
.specs-table tr:last-child td:last-child {
    border-bottom: none !important;
}

.product-spec-row {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #3b82f6;
}