/* ============================================
   BODY ORTHO CARE - PREMIUM STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #E6F0FA;
    --accent: #00B4D8;
    --accent-dark: #0096B4;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --white: #FFFFFF;
    --black: #0F172A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --white: #0F172A;
    --black: #F8FAFC;
    --gray-50: #1E293B;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748B;
    --gray-400: #94A3B8;
    --gray-500: #CBD5E1;
    --gray-600: #E2E8F0;
    --gray-700: #F1F5F9;
    --gray-800: #F8FAFC;
    --gray-900: #FFFFFF;
    --primary-light: #1E3A5F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: loadProgress 2.5s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.announcement-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
}

.nav-desktop {
    display: flex;
    gap: 32px;
}

.nav-desktop a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary);
}

.nav-desktop a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 50;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    font-size: 20px;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ISSUE 1 FIXED: High-end Glassmorphic Overlay --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(15, 23, 42, 0.2));
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-trust {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.trust-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 18px;
}

/* ============================================
   SIGNATURE PRODUCT
   ============================================ */
.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.signature-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.signature-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.signature-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--danger);
    color: var(--white);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
}

.signature-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.signature-content p {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--gray-600);
    font-size: 15px;
}

.signature-price {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 20px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.discount {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.signature-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   SHOP BY PAIN
   ============================================ */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pain-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.pain-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pain-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pain-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
}

.pain-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   BODY MAP
   ============================================ */
.body-map-section {
    background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
}

.body-map-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.body-svg {
    width: 300px;
    height: 500px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.body-part {
    fill: var(--gray-300);
    stroke: var(--gray-400);
    stroke-width: 1;
    cursor: pointer;
    transition: var(--transition);
}

.body-part:hover {
    fill: var(--primary);
    stroke: var(--primary-dark);
    filter: drop-shadow(0 0 10px rgba(0,102,204,0.4));
}

.body-map-info {
    max-width: 400px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.body-map-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.body-map-info p {
    color: var(--gray-500);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
}

.product-wishlist:hover,
.product-wishlist.active {
    background: var(--danger);
    color: var(--white);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
    color: var(--gray-800);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    color: var(--warning);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--gray-400);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-actions-footer {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
}

.product-actions-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* ============================================
   DOCTOR RECOMMENDED
   ============================================ */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.doctor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-light);
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.doctor-title {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.doctor-info p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.doctor-badge {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ============================================
   BULK DEALS
   ============================================ */
.bulk-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.bulk-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bulk-content p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 16px;
}

.bulk-tiers {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tier {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 100px;
}

.tier-range {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.tier-discount {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.bulk-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: calc(33.333% - 16px);
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.testimonial-card .stars {
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-card p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: var(--gray-800);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--gray-400);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    color: var(--white);
}

.newsletter-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-box p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 24px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: var(--font-main);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a:hover {
    color: var(--accent);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.whatsapp-text {
    display: inline;
}

/* ============================================
   POPUP
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popupIn 0.4s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--gray-200);
}

.popup-badge {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.popup-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.popup-content p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.popup-timer {
    margin-bottom: 24px;
}

.popup-timer span {
    font-size: 14px;
    color: var(--gray-500);
}

.timer {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 40px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 24px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 18px;
}

.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--gray-200);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group label:hover {
    color: var(--primary);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.products-toolbar select {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: var(--font-main);
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button.active,
.pagination button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   PRODUCT DETAILS
   ============================================ */
.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    border-color: var(--primary);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.product-brand {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-short-desc {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
}

.stock-status {
    margin-bottom: 24px;
    font-weight: 600;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.out-stock {
    color: var(--danger);
}

.size-selector {
    margin-bottom: 24px;
}

.size-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.size-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.size-guide-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: underline;
}

.quantity-selector {
    margin-bottom: 24px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    width: fit-content;
}

.qty-control button {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--gray-200);
}

.qty-control input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.feature-item {
    font-size: 14px;
    color: var(--gray-600);
}

.product-tabs {
    margin-top: 32px;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    color: var(--gray-600);
    line-height: 1.8;
}

.tab-content.active {
    display: block;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.size-table th,
.size-table td {
    padding: 14px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.size-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.size-table tr:nth-child(even) {
    background: var(--gray-50);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-info p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-600);
}

.summary-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 12px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

.discount-row {
    display: flex;
    gap: 8px;
    padding: 16px 0;
}

.discount-row input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
}

.discount-row button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.empty-cart,
.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-cart h2,
.empty-wishlist h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-cart p,
.empty-wishlist p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ============================================
   WISHLIST
   ============================================ */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wishlist-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    position: relative;
}

.wishlist-card .remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.wishlist-card .remove-btn:hover {
    background: var(--danger);
    color: var(--white);
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: var(--success);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
}

.checkout-step-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-step-content.active {
    display: block;
}

.checkout-step-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.checkout-cart-items {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.checkout-summary {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.shipping-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-method input {
    display: none;
}

.payment-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.payment-method input:checked + .payment-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-icon {
    font-size: 28px;
}

.payment-card strong {
    display: block;
    font-size: 16px;
}

.payment-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.payment-details {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
}

/* --- ISSUE 7 FIXED: Account Authentication Styling --- */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.auth-form-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    color: #0f172a;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #334155;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    border-color: #0284c7;
    outline: none;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s ease;
}

.google-btn:hover {
    background: #f8fafc;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.form-options a {
    color: var(--primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.back-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-500);
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-500);
}

.terms-check a {
    color: var(--primary);
}

.auth-image {
    position: relative;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(15, 23, 42, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-overlay h2 {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   ACCOUNT PAGES
   ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.account-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--gray-200);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 700;
}

.user-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.account-main h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

.dashboard-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.dashboard-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.orders-table th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.delivered {
    background: #DCFCE7;
    color: #166534;
}

.status.shipped {
    background: #DBEAFE;
    color: #1E40AF;
}

.status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.address-list {
    display: grid;
    gap: 16px;
}

.address-card {
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.address-card.default {
    border-color: var(--primary);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.default-badge {
    font-size: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Orders Page */
.orders-filters {
    margin-bottom: 24px;
}

.orders-filters select {
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.order-number {
    font-weight: 700;
    color: var(--gray-800);
}

.order-date {
    font-size: 14px;
    color: var(--gray-500);
    margin-left: 12px;
}

.order-items {
    padding: 20px 24px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.order-item p {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-item span {
    font-size: 14px;
    color: var(--gray-500);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.contact-form-wrap h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatsapp-section {
    text-align: center;
    margin-top: 60px;
    padding: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.whatsapp-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.whatsapp-section p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-500);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    text-align: center;
}

.value-item span {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.value-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    margin: 0;
}

.trust-section {
    margin-bottom: 80px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}

.trust-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.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: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.trust-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    color: var(--white);
}

.stats-grid .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
}

.stats-grid .stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   PRESCRIPTION PAGE
   ============================================ */
.prescription-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-card ol,
.info-card ul {
    padding-left: 20px;
    color: var(--gray-600);
    line-height: 2;
}

.prescription-upload {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.upload-form {
    margin-bottom: 40px;
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-hint {
    font-size: 13px;
    color: var(--gray-400);
}

.file-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: none;
}

.prescription-history h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.prescription-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prescription-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.prescription-icon {
    font-size: 32px;
}

.prescription-details p {
    margin-bottom: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.verified {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

/* ============================================
   BULK ORDER PAGE
   ============================================ */
.bulk-pricing-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
    margin-bottom: 40px;
}

.bulk-pricing-table h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tier-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.tier-card:hover,
.tier-card.highlight {
    border-color: var(--primary);
    background: var(--primary-light);
}

.tier-qty {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.tier-percent {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.tier-label {
    font-size: 13px;
    color: var(--gray-500);
}

.bulk-minimum {
    text-align: center;
    font-size: 16px;
    color: var(--gray-600);
}

.bulk-calculator {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
    margin-bottom: 40px;
}

.bulk-calculator h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.calculator-result {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.result-row.total {
    border-top: 2px solid var(--gray-300);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.result-row.per-unit {
    font-size: 14px;
    color: var(--gray-500);
}

.bulk-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bulk-checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.bulk-checkout-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.bulk-checkout-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.bulk-checkout-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-grid,
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pain-grid,
    .tiers-grid,
    .trust-grid,
    .stats-grid,
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .signature-grid,
    .about-hero,
    .contact-layout,
    .products-layout,
    .cart-layout,
    .account-layout,
    .prescription-layout,
    .bulk-checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .bulk-banner {
        grid-template-columns: 1fr;
    }
    
    .doctor-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .product-grid,
    .wishlist-grid,
    .pain-grid,
    .tiers-grid,
    .trust-grid,
    .stats-grid,
    .dashboard-stats,
    .about-values,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-trust {
        gap: 24px;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .checkout-steps {
        gap: 20px;
    }
    
    .step-label {
        font-size: 12px;
    }
}

/* Mobile Menu Active */
.mobile-menu.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}
/* ============================================
   FIX: CLEAN FULL-WIDTH PRODUCTS LAYOUT
   ============================================ */

.products-layout {
    display: block;
}

.products-main-fullwidth {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

#productsCount {
    font-size: 0.9375rem;
    color: var(--gray-500);
    font-weight: 500;
}

#sortSelect {
    padding: 0.625rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
    font-family: var(--font-main);
}

#sortSelect:hover,
#sortSelect:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* ============================================
   FIX: PREMIUM PRODUCT CARD HOVER (Apple-Style)
   ============================================ */

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Glass sheen overlay */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 55%,
        transparent 60%
    );
    background-size: 200% 200%;
    background-position: 100% 100%;
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Top reflection glow */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* HOVER STATE */
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(0, 102, 204, 0.08);
    animation: glassGlow 3s ease-in-out infinite;
}

/* Animate sheen on hover */
.product-card:hover::before {
    opacity: 1;
    background-position: 0% 0%;
    transition: background-position 0.8s ease, opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

/* Image zoom */
.product-card:hover .product-image img {
    transform: scale(1.08);
}

@keyframes glassGlow {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 102, 204, 0.1),
            0 0 60px rgba(0, 102, 204, 0.06);
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 102, 204, 0.2),
            0 0 80px rgba(0, 102, 204, 0.12);
    }
}

/* ============================================
   FIX: SIZE SELECTOR — Single Select + Active State
   ============================================ */

.size-selector {
    margin: 1.5rem 0;
}

.size-selector label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-options {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    align-items: center;
}

.size-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.size-btn:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ACTIVE STATE — Single selection highlight */
.size-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 
        0 4px 15px rgba(0, 102, 204, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    font-weight: 700;
}

/* Active glow ring */
.size-btn.active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid rgba(0, 102, 204, 0.3);
    pointer-events: none;
    animation: sizePulse 2s ease-in-out infinite;
}

@keyframes sizePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.size-guide-link {
    margin-left: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.size-guide-link:hover {
    color: var(--primary);
}

/* ============================================
   FIX: BUY NOW BUTTON STYLES
   ============================================ */

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.product-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .product-actions .btn {
        min-width: 120px;
    }
}