/**
 * GLOBAL SOKO DIGITAL THEME STYLESHEET
 * Integrates 'Dark Mode Glassmorphism' aesthetic layout and fully responsive constraints 
 * to adhere strictly to mobile accessibility (Opera Mini, Safari) compatibility guidelines.
 */

/* ==========================================================
   CSS Variables (Design Tokens) encapsulating Global Themes
   ========================================================== */
:root {
    /* PRIMARY COLORS: Sky blue accent consistent with Kenyan digital brand aesthetics */
    --primary-color: #16dbe9;
    --primary-dark: #1231b9;
    ;

    /* SYSTEM COLORS: Ultra-dark palette for high-end Glassmorphism feel */
    --background: #0f172a;
    /* Global background */
    --surface: #1e293b;
    /* Card/Section surfaces */
    --text-primary: #f8fafc;
    /* Maximum readability white */
    --text-secondary: #94a3b8;
    /* Muted descriptions */
    --glass-bg: rgba(30, 41, 59, 0.7);
    /* Navbar transparency */
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Rest CSS logic explicitly removing default browser padding padding metrics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Ensures intrinsic border width calculation */
}

/* Standardized responsive wrapper encapsulating standard typography framework */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal responsive clipping */
}

a {
    text-decoration: none;
    /* Strip native hyperlink underlining */
    color: inherit;
}

/* Margin wrapper ensuring container limits don't stretch onto giant monitors */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header typography mapping using viewport-relative calculations */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

/* ==========================================================
   Navigation (Glassmorphism Implementations) 
   ========================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    /* Pin to top natively allowing continuous scroll */
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    /* Apple-like frosted glass blur effect constraints */
    -webkit-backdrop-filter: blur(12px);
    /* Specifically targeting Safari compatibility structure */
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    /* Smooth visual logic when heavily manipulated */
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hidden hamburger core logic until mobile breakpoints are triggered dynamically */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--text-primary);
}

/* ==========================================================
   Hero Landing Modules
   ========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 0;
    position: relative;
    /* Context for absolute image and overlay */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.46);
    /* ZOOM 46 applied to the tag */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85));
    z-index: -1;
}

@media (max-width: 768px) {
    .hero {
        background-size: cover;
        /* Revert to cover on mobile to avoid over-zooming graininess */
        background-attachment: scroll;
        /* Disable fixed BG for better mobile performance */
    }
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    /* Binding custom keyframe sequence natively */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================================
   Universal UI Button System Logic 
   ========================================================== */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Hover dynamics interpolation mapping */
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Signature brand button format mapping */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    /* Physical 2px structural vertical hop logic */
}

/* Secondary outline formatting schema */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================
   Structural CSS Grid Implementations (Storefronts/Features) 
   ========================================================== */
.features {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Dynamic responsive column injection natively relying strictly on minimum widths */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    /* Dropshadow highlight interaction */
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ==========================================================
   Storefront Pages Product Formatting Logic
   ========================================================== */
.page-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--primary-color);
}

/* Simulated Image block generator targeting generic layout rendering checks */
.product-img-placeholder {
    background: #334155;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: bold;
    font-size: 3rem;
}

.price-tag {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================
   Mobile-First Media Query Adjustments (< 768px Widths)
   ========================================================== */
@media (max-width: 768px) {

    /* Converts structural horizontal navbar physically into absolute fixed side panel */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--surface);
        width: 100%;
        text-align: center;
        transition: 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
        /* JS trigger sliding panel visually into DOM layout constraints */
    }

    .hamburger {
        display: block;
        /* Activate interaction layer exclusively on Mobile width thresholds */
        order: 3;
    }

    /* Target physical child layers mapping natively directly creating structural 'X' icon sequence dynamically */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }

    .search-container {
        max-width: 200px;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .navbar {
        flex-wrap: wrap;
        /* Permits stacking logic within fixed navigation bounding boxes physically */
    }
}

/* ==========================================================
   Micro-Animations Injection Sequences
   ========================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   In-Navbar Live Search Interface Styles Configs
   ========================================================== */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.2rem 1rem;
    max-width: 300px;
    width: 100%;
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    padding: 0.5rem;
    font-family: inherit;
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* High Visibility Red Notification Bubble Cart Item Ticker */
.badge {
    background: #ef4444;
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.3rem;
}

/* ==========================================================
   Forms & Price-Guide HTML Table Styling Framework 
   ========================================================== */
.vendor-form .form-group {
    margin-bottom: 1.5rem;
}

.vendor-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vendor-form input[type="text"],
.vendor-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
}

.vendor-form input[type="text"]:focus,
.vendor-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Sub-selection layer overrides for dropdown option UI */
.vendor-form select option {
    background: var(--surface);
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* Responsive wrapper natively preventing absolute Table overlap breaks strictly on tiny mobile screens */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9em;
    min-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    /* Hide structural corner overflow */
}

.styled-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.3s;
}

/* Zebra striping structural logic natively built to visually distinct separate HTML table data rows */
.styled-table tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}

.styled-table tbody tr:hover {
    background-color: rgba(14, 165, 233, 0.05);
}

/* ==========================================================
   Tab Navigation Logic (Auth)
   ========================================================== */
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}