/* ===============================
   GENERAL & LOGO
================================ */
.site-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ===============================
   HERO SECTION (DESKTOP)
================================ */
.hero-section { margin-top: 20px; }

.hero-big {
    background: linear-gradient(90deg,#ff8c42,#ff7a18);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    position: relative;
    min-height: 320px;
    color: #fff;
}

.hero-content { max-width: 50%; }
.hero-content h1 { font-size: 36px; font-weight: 700; }
.hero-content p { font-size: 14px; opacity: 0.9; }

.hero-img {
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.hero-small {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.hero-small.phone { background: linear-gradient(90deg,#ff9a76,#ff6a6a); }
.hero-small.tv { background: linear-gradient(90deg,#ff5f6d,#ffc371); }

.hero-small img {
    max-width: 120px;
    position: absolute;
    right: 15px;
    bottom: 10px;
    object-fit: contain;
}

.hero-small-content { max-width: 65%; position: relative; z-index: 2; }
.hero-small h4 { font-size: 18px; font-weight: 600; }

/* ===============================
   WHATSAPP & UTILITIES
================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    text-decoration: none;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    animation: whatsapp-shake 5s infinite;
} 
/* Icon size ko bada karne ke liye */
.floating-whatsapp i {
    font-size: 38px !important; /* Isse center wala white part bada ho jayega */
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes whatsapp-shake {
    0%, 90% { transform: scale(1); }
    92% { transform: scale(1.1) rotate(5deg); }
    94% { transform: scale(1.1) rotate(-5deg); }
    96% { transform: scale(1.1) rotate(5deg); }
    98% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1); }
}

.whatsapp-top-icon { color: #25d366; font-size: 20px; cursor: pointer; transition: 0.3s; }
.whatsapp-top-icon:hover { transform: scale(1.2); }

/* ===============================
   MOBILE RESPONSIVE (Fixes)
================================ */
@media (max-width: 768px) {
    /* Hero Big */
    .hero-big {
        padding: 15px;
        min-height: 180px;
    }
    .hero-content { max-width: 60%; }
    .hero-content h1 { font-size: 16px; margin-bottom: 4px; }
    .hero-content p { display: none; } /* Mobile par space bachane ke liye p hide */
    .hero-big .hero-img { max-width: 35%; max-height: 120px; }

    /* Hero Small (FIXING OVERLAP) */
    .hero-small {
        padding: 10px;
        min-height: 85px; /* Ratio maintain karne ke liye */
    }
    .hero-small-content { max-width: 75% !important; }
    .hero-small h4 { font-size: 11px !important; margin: 0; line-height: 1.2; }
    .hero-small a { font-size: 9px; font-weight: bold; text-decoration: none; color: #fff; }
    
    .hero-small img {
        max-width: 45px !important; /* Image size kam kiya */
        right: 5px;
        bottom: 5px;
    }

    /* Product Cards */
    .px-2 { padding: 0 4px !important; }
    .card-img-top { height: 120px !important; padding: 5px; }
    .card-body h6 { font-size: 12px; }
    .card-body .btn { font-size: 10px; padding: 4px; }

    /* Utilities */
    .floating-whatsapp { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .mobile-call-wa { display: flex; align-items: center; gap: 8px; }
}

/* Duplicated/Repeated Code Commented Out
.hero-section .row { display: flex; } 
.hero-small.mb-3 { margin-bottom: 12px !important; }
.top-link { font-size: 14px; }
*/

/* --- TOP HEADER USER DROPDOWN UPDATED --- */

.top-header .dropdown-menu {
    z-index: 9999 !important;
    display: none; 
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    /* Width fix karne ke liye aur right side align karne ke liye */
    min-width: 160px; 
    right: 0; 
    left: auto; /* Isse menu screen ke andar rahega */
}

/* Jab dropdown open ho toh horizontal scroll na aaye */
.top-header .dropdown-menu.show {
    display: block !important;
}

/* Desktop & Tablet Hover Effect (Width 768px se upar) */
@media (min-width: 768px) {
    .top-header .dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
    }
}

/* Mobile Mouse-over Support (Special tablets ya hybrid devices ke liye) */
@media (max-width: 767px) {
    /* Agar mobile par mouse connect ho toh hover kaam karega */
    .top-header .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* Link Styling */
.top-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* Card ko relative banana zaroori hai and wishlist ke liye */
.card.position-relative {
    position: relative !important;
}

/* Wishlist button ko image ke upar set karne ke liye */
.wishlist-btn-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Thoda white background taaki image par dikhe */
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.wishlist-btn-overlay:hover {
    transform: scale(1.1);
    background: #fff;
}

.wishlist-btn-overlay i {
    font-size: 1.2rem;
}

/* Green border aur Tick mark hatane ke liye */
.was-validated .form-control:valid {
    border-color: #dee2e6 !important; /* Normal grey border */
    background-image: none !important; /* Tick mark gayab */
    box-shadow: none !important;
}

/* Red border (errors) ko rehne dene ke liye ye zaroori hai */
.was-validated .form-control:invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,...") !important; /* Default error icon */
}