/* ===== Kundan Electronics - Custom Styles ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #2563eb;
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Header Styles ===== */
#main-header.scrolled .bg-kundan-navy {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ===== Hero Slider ===== */
.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}
.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #f59e0b;
    width: 32px;
    border-radius: 6px;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* ===== Product Cards ===== */
.product-card {
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.product-card .product-image {
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}
.product-card .add-inquiry-btn {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.product-card:hover .add-inquiry-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Category Cards ===== */
.category-card {
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.category-card .category-icon {
    transition: transform 0.3s ease;
}
.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* ===== Counter Animation ===== */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ===== Inquiry Badge Pulse ===== */
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.badge-animate {
    animation: badge-pulse 0.5s ease;
}

/* ===== Floating WhatsApp ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== Loading Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Toast Notification ===== */
.toast {
    animation: toast-in 0.4s ease forwards;
}
.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== Product Filters ===== */
.filter-chip {
    transition: all 0.2s ease;
}
.filter-chip.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ===== Form Styles ===== */
.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #1a2744 0%, #2563eb 100%);
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
    .product-card .add-inquiry-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .whatsapp-float, #inquiry-badge { display: none !important; }
    body { background: white !important; }
}
