/*
 * IPHOXY Modern Design System
 * Classy, Professional B2B Theme
 */

:root {
    --iphoxy-red: #E82028;
    --iphoxy-red-dark: #c41a21;
    --iphoxy-dark: #1a1a2e;
    --iphoxy-darker: #16213e;
    --iphoxy-gray: #4b5563;
    --iphoxy-gray-light: #9ca3af;
    --iphoxy-light: #f8f9fa;
    --iphoxy-white: #ffffff;
    --iphoxy-border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============================================
   Hero Section - Modern & Classy
   ============================================ */
.hero-modern {
    background: linear-gradient(135deg, var(--iphoxy-dark) 0%, var(--iphoxy-darker) 100%);
    color: var(--iphoxy-white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(232, 32, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 32, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-tag {
    display: inline-block;
    background: rgba(232, 32, 40, 0.2);
    color: var(--iphoxy-red);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-modern h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-modern h1 .text-red {
    color: var(--iphoxy-red);
}

.hero-lead {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    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: 15px;
    max-width: 450px;
    margin-left: auto;
}

.showcase-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-5px);
}

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

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

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

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

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

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(232, 32, 40, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iphoxy-red);
}

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

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

.stat-label {
    font-size: 13px;
    color: var(--iphoxy-gray-light);
    margin-top: 4px;
}

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

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

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--iphoxy-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--iphoxy-gray);
}

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

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

.category-card {
    background: var(--iphoxy-white);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(232, 32, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--iphoxy-red);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--iphoxy-red);
    color: var(--iphoxy-white);
}

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

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

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

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

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

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

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

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

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

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card-modern .product-image {
    position: relative;
    height: 180px;
    background: var(--iphoxy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.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: 20px;
}

.product-sku {
    font-size: 12px;
    color: var(--iphoxy-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--iphoxy-dark);
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.login-prompt-box {
    text-align: center;
    padding: 30px;
    background: var(--iphoxy-light);
    border-radius: var(--radius-md);
    margin-top: 30px;
}

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

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

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

.feature-card {
    background: var(--iphoxy-white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(232, 32, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--iphoxy-red);
}

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

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

/* ============================================
   CTA Section
   ============================================ */
.cta-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--iphoxy-red) 0%, var(--iphoxy-red-dark) 100%);
    color: var(--iphoxy-white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

/* ============================================
   Buttons - Modern Style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

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

.btn-primary:hover {
    background: var(--iphoxy-red-dark);
    border-color: var(--iphoxy-red-dark);
    color: var(--iphoxy-white);
}

.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);
}

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

.btn-white:hover {
    background: var(--iphoxy-light);
    color: var(--iphoxy-dark);
}

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

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

/* ============================================
   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: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .product-showcase {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-modern h1 {
        font-size: 42px;
    }
    
    .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: 40px 0 60px;
    }
    
    .hero-modern h1 {
        font-size: 32px;
    }
    
    .hero-lead {
        font-size: 18px;
    }
    
    .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: 150px;
    }
    
    .showcase-secondary,
    .showcase-tertiary {
        height: 150px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .categories-modern,
    .featured-modern,
    .why-us-modern,
    .cta-modern {
        padding: 50px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-modern h1 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
}
