/* ================= CSS VARIABLES ================= */
:root {
    --primary: #1A73E8;
    --primary-hover: #1557B0;
    --primary-light: #EFF6FF;
    --secondary: #00A86B;
    --secondary-hover: #008f5a;
    --secondary-light: #F0FDF4;
    --bg-white: #FFFFFF;
    --surface: #F8FAFC;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --danger: #EF4444;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.25s ease;
    --container-w: 1280px;
}

/* ================= RESET & TYPOGRAPHY ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; text-align: center; margin-bottom: 8px; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-subtext { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
section { padding: 80px 0; }

/* Focus styles for Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ================= HEADER TIER 1 ================= */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-center { display: flex; gap: 16px; }

/* ================= HEADER TIER 2 ================= */
.main-header {
    padding: 20px 0;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--secondary); font-size: 28px; }

.search-area {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.search-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.cat-select {
    padding: 0 16px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
}
.search-btn {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    font-size: 18px;
}
.search-btn:hover { background: var(--primary-hover); }

.header-icons { display: flex; gap: 24px; align-items: center; }
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}
.icon-item:hover { color: var(--primary); }
.icon-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.badge {
    position: absolute;
    top: -6px; right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

/* My Account Dropdown */
.account-dropdown {
    position: absolute;
    top: 100%; right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 160px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}
.icon-item.account:hover .account-dropdown {
    opacity: 1; visibility: visible; transform: translateY(5px);
}
.account-dropdown a { display: block; padding: 10px 16px; color: var(--text-primary); font-size: 14px; }
.account-dropdown a:hover { background: var(--surface); color: var(--primary); }

/* ================= HEADER TIER 3 ================= */
.nav-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nav-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
}
.nav-item {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    position: relative;
}
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item::after {
    content: ''; position: absolute; bottom: -18px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }
.nav-badge {
    background: var(--secondary); color: white; font-size: 10px;
    padding: 2px 6px; border-radius: 12px; margin-left: 6px; vertical-align: middle;
}
.mobile-menu-btn { display: none; font-size: 24px; }

/* ================= MINI CART DROPDOWN ================= */
.cart-dropdown {
    position: absolute;
    top: 100%; right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    width: 320px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 20;
    cursor: default;
}
.cart-dropdown.show {
    opacity: 1; visibility: visible; transform: translateY(5px);
}
.cart-items-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 16px;
}
.mini-cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}
.mini-cart-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-cart-img {
    width: 60px; height: 60px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.mini-cart-img svg { width: 40px; height: 40px; }
.mini-cart-details { flex: 1; text-align: left; }
.mini-cart-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mini-cart-price { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.mini-cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 20px; height: 20px; background: var(--surface); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.qty-btn:hover { background: var(--border); }
.remove-btn { color: var(--danger); font-size: 12px; cursor: pointer; }
.remove-btn:hover { text-decoration: underline; }

.cart-footer {
    padding: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); font-size: 16px; }
.btn-checkout {
    width: 100%;
    background: var(--secondary); color: white;
    padding: 12px; border-radius: var(--radius-sm);
    font-weight: 600; display: block; text-align: center;
}
.btn-checkout:hover { background: var(--secondary-hover); }

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}
.toast svg { fill: var(--secondary); width: 20px; height: 20px; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* ================= HERO SECTION ================= */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 48px;
    animation: fadeUp 0.6s ease;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px; font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero h1 { margin-bottom: 20px; color: var(--text-primary); }
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 520px; margin-bottom: 32px; }

.btn-group { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 16px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    text-align: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--bg-white); color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }

.trust-line { font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; align-items: center; }

.hero-img {
    position: relative;
    animation: float 3s ease-in-out infinite;
}
.hero-img svg { width: 100%; max-width: 500px; display: block; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ================= TRUST BADGE ROW ================= */
.trust-strip {
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-white);
}
.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.trust-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.trust-text h5 { font-weight: 700; font-family: 'Inter', sans-serif; font-size: 16px; margin-bottom: 4px; }
.trust-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* ================= CATEGORIES SECTION ================= */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.cat-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    transition: var(--transition);
}
.cat-card:hover .cat-icon { filter: brightness(1.1); transform: scale(1.05); }
.cat-1 .cat-icon { background: linear-gradient(135deg, #1A73E8, #7EB0FF); }
.cat-2 .cat-icon { background: linear-gradient(135deg, #8B5CF6, #C4B5FD); }
.cat-3 .cat-icon { background: linear-gradient(135deg, #1E1B4B, #4F46E5); }
.cat-4 .cat-icon { background: linear-gradient(135deg, #047857, #10B981); }
.cat-5 .cat-icon { background: linear-gradient(135deg, #EA580C, #F59E0B); }
.cat-6 .cat-icon { background: linear-gradient(135deg, #BE123C, #F43F5E); }

.cat-info h4 { margin-bottom: 4px; }
.cat-info p { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.cat-link { color: var(--primary); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.cat-card:hover .cat-link { gap: 8px; }

/* ================= PRODUCT CARDS ================= */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid transparent;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.p-actions {
    position: absolute; top: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}
.product-card:hover .p-actions { opacity: 1; transform: translateX(0); }
.p-action-btn {
    width: 36px; height: 36px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}
.p-action-btn:hover { background: var(--primary); color: white; }

.p-image { height: 200px; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 16px; position: relative; display: flex; align-items: center; justify-content: center;}
.p-image svg { width: 100px; height: 100px; fill: var(--border); }

.p-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-rx { background: var(--danger); color: white; }
.badge-best { background: var(--secondary); color: white; }
.badge-fast { background: #F59E0B; color: white; }

.p-rating { color: #F59E0B; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.p-rating span { color: var(--text-secondary); font-size: 12px; }

.p-title { font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.p-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; flex: 1;}

.p-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.p-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.p-old { font-size: 14px; text-decoration: line-through; color: var(--text-secondary); }

.btn-add {
    width: 100%;
    background: var(--secondary); color: white;
    padding: 10px; border-radius: var(--radius-sm);
    font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto;
}
.btn-add:hover { background: var(--secondary-hover); }

/* ================= FEATURES ================= */
.features { background: var(--surface); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.feat-icon { font-size: 48px; margin-bottom: 16px; }
.feat-grid h4 { margin-bottom: 12px; font-size: 18px; }
.feat-grid p { font-size: 14px; color: var(--text-secondary); }

/* ================= SOCIAL PROOF ================= */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--primary); color: white;
    border-radius: var(--radius-lg); padding: 40px;
    margin-bottom: 64px; text-align: center;
}
.stat-num { font-size: 40px; font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 8px; }
.stat-label { font-size: 14px; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.review-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.r-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.r-avatar { width: 48px; height: 48px; background: var(--border); border-radius: 50%; }
.r-info h5 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.r-info .check { color: var(--secondary); font-size: 14px; }
.r-info p { font-size: 12px; color: var(--text-secondary); }
.r-stars { color: #F59E0B; margin-bottom: 12px; }
.r-text { font-size: 14px; font-style: italic; color: var(--text-secondary); margin-bottom: 16px; }
.r-date { font-size: 12px; color: var(--text-secondary); text-align: right; }

.trust-badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.7; }
.t-badge { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--text-secondary); }

/* ================= BLOG ================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
    border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { height: 200px; background: var(--surface); }
.blog-content { padding: 24px; }
.blog-tag {
    display: inline-block; padding: 4px 12px; background: var(--primary-light);
    color: var(--primary); font-size: 12px; font-weight: 600; border-radius: 20px; margin-bottom: 12px;
}
.blog-content h4 { margin-bottom: 12px; font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.blog-link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ================= FINAL CTA ================= */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; text-align: center; padding: 100px 0;
}
.final-cta h2 { color: white; margin-bottom: 16px; }
.final-cta p { max-width: 600px; margin: 0 auto 32px; font-size: 18px; opacity: 0.9; }

/* ================= FOOTER ================= */
.footer { background: #0F172A; color: white; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.f-col h4 { color: white; margin-bottom: 24px; font-size: 18px; }
.f-logo { margin-bottom: 20px; filter: grayscale(1) brightness(2); }
.f-desc { color: #94A3B8; font-size: 14px; margin-bottom: 24px; }
.socials { display: flex; gap: 16px; }
.social-icon {
    width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.social-icon:hover { background: var(--primary); }

.f-links li { margin-bottom: 12px; }
.f-links a { color: #94A3B8; font-size: 14px; transition: var(--transition); display: inline-block; }
.f-links a:hover { color: white; transform: translateX(4px); }

.f-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: #94A3B8; font-size: 14px; }
.f-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

.footer-bottom {
    border-top: 1px solid #1E3A5F; padding: 24px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #64748B;
}
.payments { display: flex; gap: 12px; }
.pay-icon { width: 40px; height: 24px; background: #fff; border-radius: 4px; opacity: 0.6; }


/* ================= SHOP PAGE SPECIFIC ================= */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}
.sidebar-filter {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    align-self: start;
}
.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.filter-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}
.filter-opt input[type="checkbox"], .filter-opt input[type="radio"] {
    width: 16px; height: 16px; cursor: pointer;
    accent-color: var(--primary);
}

.shop-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ================= UPLOAD PRESCRIPTION SPECIFIC ================= */
.upload-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.file-upload-box {
    border: 2px dashed var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.file-upload-box:hover { background: #E0F0FE; }
.file-upload-box input[type="file"] { display: none; }
.file-icon { font-size: 32px; margin-bottom: 12px; }

/* ================= GENERIC PAGES ================= */
.generic-page-content {
    max-width: 800px;
    margin: 0 auto;
}
.generic-page-content h2 { text-align: left; margin-top: 32px; margin-bottom: 16px; }
.generic-page-content p { margin-bottom: 16px; color: var(--text-secondary); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 32px; }
    .btn-group { justify-content: center; }
    .cat-grid, .product-grid, .feat-grid, .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px;}
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .top-bar { display: none; }
    .nav-list { display: none; }
    .mobile-menu-btn { display: block; }
    .header-icons .icon-item:not(.cart) { display: none; }
    .search-area { position: absolute; top: 100%; left: 0; right: 0; margin: 10px; z-index: 10; padding-bottom: 10px; box-shadow: var(--shadow-md); display: none;}
    .main-header .container { flex-wrap: wrap;}
    .cat-grid, .product-grid, .feat-grid, .stats-bar, .trust-strip-grid, .review-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .stats-bar { padding: 20px; }
    .shop-product-grid { grid-template-columns: 1fr; }
    .cart-dropdown { width: 100%; position: fixed; top: 70px; right: 0; border-radius: 0; }
}
