/*
 * IPHOXY Modern Design System 2026
 * Premium B2B Wholesale Tech Theme
 * Colors: Black #000000, Red #FF0000
 */

:root {
    /* Brand Colors */
    --iphoxy-red: #FF0000;
    --iphoxy-red-dark: #CC0000;
    --iphoxy-red-light: #FF3333;
    --iphoxy-black: #000000;
    --iphoxy-dark: #0a0a0a;
    --iphoxy-darker: #050505;

    /* Neutral Colors */
    --iphoxy-gray-900: #111111;
    --iphoxy-gray-800: #1a1a1a;
    --iphoxy-gray-700: #2d2d2d;
    --iphoxy-gray-600: #4b4b4b;
    --iphoxy-gray-500: #6b6b6b;
    --iphoxy-gray-400: #9a9a9a;
    --iphoxy-gray-300: #c4c4c4;
    --iphoxy-gray-200: #e5e5e5;
    --iphoxy-gray-100: #f5f5f5;
    --iphoxy-white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --shadow-red: 0 4px 20px rgba(255,0,0,0.25);
    --shadow-red-lg: 0 10px 40px rgba(255,0,0,0.3);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Global Enhancements
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Hero Section - Futuristic 2026 Design
   ============================================ */
.hero-modern {
    background: linear-gradient(180deg, var(--iphoxy-black) 0%, var(--iphoxy-gray-900) 100%);
    color: var(--iphoxy-white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,0,0,0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255,0,0,0.1) 0%, transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(255,0,0,0.08) 0%, transparent 30%);
    pointer-events: none;
}

/* Animated grid lines */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255,0,0,0.2) 0%, rgba(255,0,0,0.1) 100%);
    color: var(--iphoxy-red);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,0,0,0.3);
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--iphoxy-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-modern h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-modern h1 .text-red {
    color: var(--iphoxy-red);
    text-shadow: 0 0 40px rgba(255,0,0,0.5);
}

.hero-lead {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.95;
    background: linear-gradient(90deg, var(--iphoxy-white) 0%, var(--iphoxy-gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--iphoxy-gray-400);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual - Product Showcase */
.hero-visual {
    position: relative;
    z-index: 1;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    max-width: 480px;
    margin-left: auto;
}

.showcase-item {
    background: var(--iphoxy-gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--iphoxy-gray-700);
}

.showcase-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--iphoxy-red);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-main {
    grid-row: span 2;
    height: 340px;
}

.showcase-secondary,
.showcase-tertiary {
    height: 162px;
}

/* ============================================
   Stats Bar - Glass Morphism
   ============================================ */
.stats-bar {
    background: var(--iphoxy-white);
    padding: 32px 0;
    border-bottom: 1px solid var(--iphoxy-gray-200);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.05) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iphoxy-red);
    border: 1px solid rgba(255,0,0,0.15);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--iphoxy-black);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--iphoxy-gray-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Categories Section
   ============================================ */
.categories-modern {
    padding: 100px 0;
    background: var(--iphoxy-gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--iphoxy-black);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--iphoxy-gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.section-header .btn {
    margin-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--iphoxy-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--iphoxy-red) 0%, var(--iphoxy-red-light) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--iphoxy-red);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--iphoxy-red);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--iphoxy-red) 0%, var(--iphoxy-red-dark) 100%);
    color: var(--iphoxy-white);
    box-shadow: var(--shadow-red);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--iphoxy-black);
    margin-bottom: 6px;
}

.category-count {
    font-size: 13px;
    color: var(--iphoxy-gray-500);
}

.category-all {
    background: linear-gradient(135deg, var(--iphoxy-black) 0%, var(--iphoxy-gray-900) 100%);
}

.category-all::before {
    background: var(--iphoxy-white);
}

.category-all h3,
.category-all .category-count {
    color: var(--iphoxy-white);
}

.category-all .category-icon {
    background: rgba(255,255,255,0.15);
    color: var(--iphoxy-white);
}

.category-all:hover .category-icon {
    background: var(--iphoxy-red);
}

/* ============================================
   Featured Products
   ============================================ */
.featured-modern {
    padding: 100px 0;
    background: var(--iphoxy-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card-modern {
    background: var(--iphoxy-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--iphoxy-gray-200);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--iphoxy-gray-300);
}

.product-card-modern .product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(180deg, var(--iphoxy-gray-100) 0%, var(--iphoxy-gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-card-modern .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card-modern:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.in-stock {
    background: #d1fae5;
    color: #059669;
}

.product-badge.low-stock {
    background: #fef3c7;
    color: #d97706;
}

.product-badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.product-details {
    padding: 24px;
}

.product-sku {
    font-size: 11px;
    color: var(--iphoxy-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--iphoxy-black);
    margin: 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stock-qty {
    font-size: 13px;
    color: var(--iphoxy-gray-600);
    font-weight: 500;
}

.login-prompt-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--iphoxy-gray-100) 0%, var(--iphoxy-gray-200) 100%);
    border-radius: var(--radius-lg);
    margin-top: 40px;
    border: 1px solid var(--iphoxy-gray-200);
}

.login-prompt-box p {
    font-size: 16px;
    color: var(--iphoxy-gray-600);
    margin-bottom: 20px;
}

.login-prompt-box a {
    color: var(--iphoxy-red);
    font-weight: 700;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-us-modern {
    padding: 100px 0;
    background: var(--iphoxy-gray-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--iphoxy-white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--iphoxy-red) 0%, var(--iphoxy-red-light) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--iphoxy-red);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--iphoxy-red) 0%, var(--iphoxy-red-dark) 100%);
    color: var(--iphoxy-white);
    box-shadow: var(--shadow-red);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--iphoxy-black);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--iphoxy-gray-500);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--iphoxy-black) 0%, var(--iphoxy-gray-900) 100%);
    color: var(--iphoxy-white);
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,0,0,0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255,0,0,0.1) 0%, transparent 30%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content h2 .text-red {
    color: var(--iphoxy-red);
    text-shadow: 0 0 30px rgba(255,0,0,0.5);
}

.cta-content p {
    font-size: 18px;
    color: var(--iphoxy-gray-400);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Buttons - Modern 2026 Style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--iphoxy-red) 0%, var(--iphoxy-red-dark) 100%);
    color: var(--iphoxy-white);
    border-color: var(--iphoxy-red);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--iphoxy-red-light) 0%, var(--iphoxy-red) 100%);
    border-color: var(--iphoxy-red-light);
    color: var(--iphoxy-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red-lg);
}

.btn-outline {
    background: transparent;
    color: var(--iphoxy-gray-600);
    border-color: var(--iphoxy-gray-300);
}

.btn-outline:hover {
    background: var(--iphoxy-gray-100);
    border-color: var(--iphoxy-gray-400);
    color: var(--iphoxy-black);
}

.btn-outline-dark {
    background: transparent;
    color: var(--iphoxy-white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline-dark:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--iphoxy-white);
    color: var(--iphoxy-white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--iphoxy-red);
    border-color: var(--iphoxy-red);
}

.btn-outline-primary:hover {
    background: var(--iphoxy-red);
    color: var(--iphoxy-white);
    box-shadow: var(--shadow-red);
}

.btn-white {
    background: var(--iphoxy-white);
    color: var(--iphoxy-black);
    border-color: var(--iphoxy-white);
}

.btn-white:hover {
    background: var(--iphoxy-gray-100);
    color: var(--iphoxy-black);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--iphoxy-white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--iphoxy-white);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Form Elements - Modern Style
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--iphoxy-gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--iphoxy-gray-200);
    border-radius: var(--radius-sm);
    background: var(--iphoxy-white);
    color: var(--iphoxy-black);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--iphoxy-red);
    box-shadow: 0 0 0 4px rgba(255,0,0,0.1);
}

.form-control::placeholder {
    color: var(--iphoxy-gray-400);
}

/* ============================================
   Alerts & Notifications
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gray { background: var(--iphoxy-gray-200); color: var(--iphoxy-gray-600); }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-green { background: #d1fae5; color: #059669; }
.badge-yellow { background: #fef3c7; color: #d97706; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 16px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--iphoxy-gray-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--iphoxy-red);
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 8px;
    color: var(--iphoxy-gray-400);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item.active {
    color: var(--iphoxy-black);
    font-weight: 600;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    background: #f8f9fa;
    color: #1d1d1f;
    padding: 25px 0 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e7;
}

.page-header::before {
    display: none;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    color: #1d1d1f;
}

.page-header p {
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: #666;
}

.page-header .breadcrumb-item a:hover {
    color: #000;
}

.page-header .breadcrumb-item.active,
.page-header .breadcrumb .current {
    color: #1d1d1f;
}

.page-header .separator {
    color: #999;
    margin: 0 8px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--iphoxy-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--iphoxy-gray-200);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--iphoxy-gray-200);
    background: var(--iphoxy-gray-100);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--iphoxy-gray-200);
    background: var(--iphoxy-gray-100);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        order: -1;
    }

    .product-showcase {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-modern h1 {
        font-size: 44px;
    }

    .stats-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 0 0 45%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 50px 0 70px;
    }

    .hero-modern h1 {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .product-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-main {
        grid-row: span 1;
        height: 160px;
    }

    .showcase-secondary,
    .showcase-tertiary {
        height: 160px;
    }

    .stats-row {
        flex-direction: column;
        gap: 24px;
    }

    .stat-item {
        flex: 0 0 100%;
        justify-content: flex-start;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .categories-modern,
    .featured-modern,
    .why-us-modern,
    .cta-modern {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-content h2 {
        font-size: 30px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-modern h1 {
        font-size: 28px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-card h3 {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}
