/* ============================================================
   index.css — Home page specific styles
   ============================================================ */

/* ── Hero Header ─────────────────────────────────────────── */
.corporate-hero-header {
    background: linear-gradient(135deg, var(--corporate-blue), #3b82f6);
    color: white; padding: 100px 0 80px; position: relative; overflow: hidden;
}
.corporate-hero-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2071&q=80');
    background-size: cover; background-position: center; opacity: 0.1;
}
.corporate-hero-header .container { position: relative; z-index: 2; }

/* Device slideshow */
.ct-hero-showcase {
    position: relative; height: 340px;
    display: flex; align-items: center; justify-content: center;
}
.ct-hero-device {
    position: absolute; max-height: 300px; max-width: 90%; object-fit: contain;
    filter: drop-shadow(0 16px 48px rgba(0,0,0,0.35));
    opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; transform: scale(0.92);
}
.ct-hero-device.active { opacity: 1; transform: scale(1); }

/* Hero stat badges */
.ct-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ct-hero-stat {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 16px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
}
.ct-hero-stat i { font-size: 1rem; color: #93c5fd; }
.ct-hero-stat-text { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.ct-hero-stat-text strong { display: block; color: white; font-size: 1rem; font-weight: 700; }

/* ── Category Section ────────────────────────────────────── */
.ct-cats { padding: 56px 0; background: #fff; }
.ct-section-head { text-align: center; margin-bottom: 40px; }
.ct-section-head h2 { font-weight: 700; font-size: 1.7rem; color: var(--dark); margin-bottom: 10px; }
.ct-section-head h2 .ct-accent { color: var(--primary); }
.ct-section-head p { color: #64748b; font-size: 1rem; max-width: 520px; margin: 0 auto; }

.ct-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 14px; }
.ct-cat-card {
    background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px 14px;
    text-align: center; text-decoration: none; color: var(--dark); transition: all 0.3s; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ct-cat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); border-color: var(--primary); color: var(--primary); }
.ct-cat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary); transition: all 0.3s;
}
.ct-cat-card:hover .ct-cat-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; transform: scale(1.1); }
.ct-cat-label { font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.ct-cat-count { font-size: 0.68rem; color: #94a3b8; }

/* ── Featured Products Carousel ──────────────────────────── */
.featured-products-carousel { position: relative; overflow: hidden; padding: 20px 0; margin: 0 auto; }
.carousel-wrapper { position: relative; overflow: hidden; width: 100%; }
.carousel-track-container { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; gap: 20px; padding: 10px 5px; }
.product-slide-item { flex: 0 0 auto; width: 260px; background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.3s ease; border: 1px solid var(--border); cursor: pointer; }
.product-slide-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-color: var(--primary); }
.product-slide-item-image { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; padding: 15px; border-bottom: 1px solid var(--border); transition: transform 0.35s; }
.product-slide-item:hover .product-slide-item-image { transform: scale(1.05); }
.product-slide-item-content { padding: 15px; }
.product-slide-item-brand { font-size: 0.72rem; color: var(--corporate-blue); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.product-slide-item-title { font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.3; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-slide-item-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.product-slide-item-type { font-size: 0.72rem; color: #64748b; background: #f1f5f9; padding: 3px 8px; border-radius: 10px; display: inline-block; margin-bottom: 6px; }
.product-slide-item-sku { font-size: 0.7rem; color: #94a3b8; font-family: monospace; background: #f8fafc; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: white; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.carousel-nav:hover { background: var(--primary); color: white; border-color: var(--primary); }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }
.carousel-nav.disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.3s ease; }
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }
.carousel-loading { display: flex; justify-content: center; align-items: center; min-height: 300px; }

/* Carousel product badges */
.ct-idx-badge-row { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; }
.ct-idx-hot  { background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.ct-idx-feat { background: #2563eb; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.ct-idx-stock { display: block; font-size: .72rem; font-weight: 600; margin-top: 4px; }
.ct-idx-stock.low { color: #f59e0b; }
.ct-idx-stock.in  { color: #10b981; }
.product-slide-item { position: relative; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) { .ct-hero-showcase { height: 240px; margin-top: 20px; } .ct-hero-device { max-height: 210px; } }
@media (max-width: 767px) { .corporate-hero-header { padding: 80px 0 60px; } .ct-hero-showcase { height: 200px; } .ct-hero-stats { justify-content: center; } }
@media (max-width: 768px) { .product-slide-item { width: 240px; } .carousel-nav { display: none; } }
@media (max-width: 576px) { .product-slide-item { width: 200px; } .product-slide-item-image { height: 140px; } }
