/* ============================================
   MINIWEAR OVERSEAS - PROFESSIONAL TYPOGRAPHY SYSTEM
   Font Pairing: Inter (Body) + Merriweather (Headings)
   Color Palette: Premium Gradient Collection
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Merriweather:wght@700;800;900&display=swap');

:root {
    /* Modern Minimal Colors */
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    
    /* Accent Colors */
    --purple: #6366F1;
    --pink: #EC4899;
    --indigo: #6366F1;
    --gradient-cta: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
    
    /* Semantic Colors */
    --primary-color: #6366F1;
    --secondary-color: #EC4899;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Shadows - Minimal */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes - Desktop */
    --fs-logo: 20px;
    --fs-menu: 15px;
    --fs-h1: 42px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-h4: 18px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-button: 16px;
    
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* Line Heights */
    --lh-tight: 1.1;
    --lh-heading: 1.2;
    --lh-normal: 1.6;
    
    /* Spacing */
    --header-height: 70px;
    --section-padding: 80px;
    --card-padding: 24px;
    --card-radius: 12px;
}

/* Mobile Font Sizes */
@media (max-width: 768px) {
    :root {
        --fs-logo: 18px;
        --fs-menu: 14px;
        --fs-h1: 28px;
        --fs-h2: 24px;
        --fs-h3: 20px;
        --fs-h4: 16px;
        --fs-body: 15px;
        --fs-small: 13px;
        --fs-button: 14px;
        --header-height: 60px;
        --section-padding: 50px;
        --card-padding: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix zoom/scaling issues */
html {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transform: none !important;
    zoom: 1 !important;
    -webkit-transform: none !important;
}

/* Container constraints for proper desktop sizing */
.container, .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1400px) {
    .container, .wrap {
        max-width: 1320px;
    }
}

/* Hero and large sections responsive */
.hero-inner, .hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 28px;
}

@media (max-width: 768px) {
    .hero-inner, .hero-section .container {
        padding: 40px 20px;
    }
}

/* Remove any scale/zoom transforms */
.site-wrapper, #root, #app {
    transform: none !important;
    zoom: 1 !important;
    -webkit-transform: none !important;
}

/* Mobile: Prevent zoom on input focus */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Ensure all text is visible */
p, span, li, td, label, .text-muted {
    color: #374151 !important;
}

/* Light background sections */
section, .section {
    color: #1f2937;
}

/* Dark background sections */
footer, .bg-dark, [style*="background: linear-gradient(135deg, #0f172a"] {
    color: #e2e8f0 !important;
}

footer p, footer span, footer li {
    color: #e2e8f0 !important;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

/* Headings - Merriweather Serif (Premium Feel) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    margin-bottom: 24px;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-extrabold);
    margin-bottom: 20px;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    margin-bottom: 16px;
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    margin-bottom: 12px;
}

h5 {
    font-size: 18px;
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
}

h6 {
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    margin-bottom: 8px;
}

/* Body Text - Inter Sans-Serif */
p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Small Text */
small, .small-text {
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}

/* Lead Text */
.lead {
    font-size: 18px;
    font-weight: var(--fw-medium);
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: var(--fw-medium);
    font-family: var(--font-body);
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

body.dark-mode a {
    color: var(--secondary-color);
}

body.dark-mode a:hover {
    color: var(--accent-color);
}

/* ============================================
   BUTTONS - Premium Style
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-size: var(--fs-button);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-normal);
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    box-shadow: var(--button-shadow);
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 44, 244, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
    font-weight: var(--fw-bold);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
}

.btn-sm {
    font-size: 14px;
    padding: 12px 24px;
    font-weight: var(--fw-bold);
}

.btn-lg {
    font-size: 18px;
    padding: 16px 32px;
}

/* ============================================
   NAVBAR - Premium Header
   ============================================ */
.navbar {
    height: var(--header-height);
    box-shadow: 0 8px 32px rgba(10, 15, 46, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding: 20px 0;
}

.navbar-brand {
    font-family: var(--font-body);
    font-size: var(--fs-logo);
    font-weight: var(--fw-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: var(--lh-tight);
}

.navbar-brand i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--fs-menu);
    font-weight: var(--fw-bold);
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 10px;
    padding: 8px 12px !important;
    line-height: var(--lh-normal);
}

.nav-link:hover {
    color: #8b5cf6 !important;
    -webkit-text-fill-color: #8b5cf6 !important;
    background-clip: text;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: var(--section-padding) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: white !important;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    font-size: 52px;
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    margin-bottom: 24px;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 18px;
    font-weight: var(--fw-medium);
    line-height: 1.7;
    max-width: 600px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-extrabold);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   CARDS - Product & Content Cards
   ============================================ */
.card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.card-body {
    padding: var(--card-padding);
}

.card-title {
    font-family: var(--font-body);
    font-size: var(--fs-card-title);
    font-weight: var(--fw-bold);
    line-height: var(--lh-normal);
    color: var(--text-dark);
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
}

.card-text {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* Product Cards */
.product-card {
    overflow: hidden;
}

.product-card img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-title {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
}

.product-description {
    font-size: 15px;
    color: var(--text-muted);
}

/* Additional Button Styles */
.btn-secondary {
    background: var(--gradient-accent) !important;
    color: white !important;
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* ============================================
   FORMS
   ============================================ */
.form-control, .form-select {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background-color: white;
    line-height: var(--lh-normal);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(58, 44, 244, 0.1);
    outline: none;
}

.form-label {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.badge {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-bold);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-card);
    color: white;
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 8px;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.active {
    background: var(--gradient-card);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-primary);
    color: #e2e8f0;
    padding: 60px 0 30px;
}

footer h5, footer h6 {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    color: white !important;
    background: none;
    -webkit-text-fill-color: white;
    margin-bottom: 20px;
    line-height: var(--lh-relaxed);
}

footer p, footer li {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: var(--lh-normal);
}

footer a {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white !important;
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile Typography
   ============================================ */
@media (max-width: 768px) {
    :root {
        /* Mobile Font Sizes */
        --fs-logo: 20px;
        --fs-menu: 18px;
        --fs-h1: 34px;
        --fs-h2: 28px;
        --fs-h3: 22px;
        --fs-h4: 18px;
        --fs-card-title: 17px;
        --fs-body: 15px;
        --fs-small: 13px;
        --fs-button: 16px;
        
        /* Mobile Spacing */
        --header-height: 70px;
        --section-padding: 50px;
        --card-padding: 20px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .hero-section {
        padding: 50px 0;
        min-height: 400px;
    }

    .hero-section h1 {
        font-size: 34px;
    }
    
    .hero-section p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }
    
    section {
        padding: 50px 0;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 16px 28px;
    }
    
    .card-body {
        padding: 20px;
    }
}
