/**
 * Oyescripts Mobile Version
 * Same colors as desktop
 */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --accent: #f97316;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   MOBILE HEADER
   ======================================== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 6px 15px;
    font-size: 11px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top i {
    color: var(--accent);
    font-size: 10px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
}

.header-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.header-logo img {
    height: 28px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a {
    color: var(--dark);
    font-size: 20px;
    position: relative;
}

.header-actions .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark);
    padding: 5px;
}

/* Search Bar */
.search-bar {
    padding: 0 15px 12px;
    background: var(--white);
}

.search-bar form {
    display: flex;
    background: var(--light);
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 12px 18px;
    font-size: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
    margin: 0 auto;
}

.btn-primary-mobile {
    background: var(--white);
    color: var(--primary);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

.btn-outline-mobile {
    background: transparent;
    color: var(--white);
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-block;
    text-align: center;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-feature {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--dark);
    padding: 20px 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

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

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 25px 15px;
}

.section-light {
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.view-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.category-card .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--white);
    font-size: 16px;
}

.category-card h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.category-card span {
    font-size: 10px;
    color: var(--gray);
}

/* ========================================
   FILTER TABS
   ======================================== */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
    border: none;
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.product-image {
    position: relative;
    height: 120px;
    background: var(--light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-badge.new {
    background: var(--success);
}

.product-content {
    padding: 10px;
}

.product-category {
    font-size: 9px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-author {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--light);
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.product-price .old {
    font-size: 11px;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--gray);
}

.product-rating i {
    color: #fbbf24;
    font-size: 10px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.feature-card .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--white);
    font-size: 18px;
}

.feature-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: 35px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-section p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.cta-section .btn-primary-mobile {
    padding: 14px 30px;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 10px;
    font-weight: 500;
    padding: 5px 15px;
}

.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav a.active {
    color: var(--primary);
}

/* ========================================
   MOBILE FOOTER
   ======================================== */
.mobile-footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 15px 20px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

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

.footer-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: var(--gray);
    font-size: 13px;
    padding: 5px 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: var(--gray);
}

.desktop-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--primary);
    font-size: 13px;
    margin-top: 15px;
    border-radius: 8px;
}

/* ========================================
   SIDE MENU
   ======================================== */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.menu-overlay.show {
    display: block;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light);
}

.menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
}

.menu-user {
    padding: 20px 15px;
    background: var(--light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-user .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.menu-user .info h4 {
    font-size: 14px;
    font-weight: 600;
}

.menu-user .info p {
    font-size: 12px;
    color: var(--gray);
}

.menu-nav {
    padding: 15px;
}

.menu-nav h5 {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--dark);
    font-size: 14px;
    border-bottom: 1px solid var(--light);
}

.menu-nav a i {
    width: 20px;
    color: var(--gray);
}

.menu-nav a:last-child {
    border-bottom: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.bg-light { background: var(--light) !important; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
