/* =============================================
   MOBILE RESPONSIVE FIXES - AGYAPA TILES
   OPTIMIZED VERSION WITH COUNTDOWN + BETTER PRODUCT CARDS
   ONLY HERO SECTION UPDATED FOR SAMSUNG GALAXY A07
   ============================================= */

/* =============================================
   NAVIGATION FIX
   ============================================= */
@media (max-width: 768px) {
    /* Hide some nav links on mobile, show hamburger menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color, #1a202c);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
    }
    
    /* Make header phone smaller */
    .header-phone span {
        display: none;
    }
    
    /* Logo smaller on mobile */
    .logo-img {
        height: 35px !important;
    }
    
    .logo-text {
        font-size: 1rem !important;
    }
    
    /* Header actions */
    .header-actions {
        gap: 0.5rem;
    }
}

/* =============================================
   HERO SECTION FIX - OPTIMIZED FOR SAMSUNG A07
   Only this section updated - everything else unchanged
   ============================================= */
@media (max-width: 768px) {
    /* Hero Container - More compact for HD phones */
    .hero {
        min-height: 60vh !important;
        height: auto !important;
        max-height: none !important;
        padding: 1.5rem 0 2rem 0 !important;
        background-size: 150% 150% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Slower animation on mobile for better performance */
    .hero {
        animation: backgroundPanMobile 40s ease-in-out infinite;
    }
    
    @keyframes backgroundPanMobile {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
    
    /* Hero Content Container */
    .hero-content {
        padding: 1rem 1rem !important;
        max-width: 100% !important;
        text-align: center;
        width: 100% !important;
    }
    
    /* Hero Title - Smaller for better fit */
    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.6rem !important;
        padding: 0 0.5rem !important;
        text-shadow: 0 0 30px rgba(246,173,85,0.5);
    }
    
    /* Hero Subtitle - Smaller */
    .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Countdown Wrapper - Tighter gaps */
    .hero-countdown-wrapper {
        gap: 0.6rem !important;
        width: 100% !important;
        padding: 0 0.5rem !important;
        margin-top: 0 !important;
    }
    
    /* 40% OFF Badge - Keep your preferred size */
    .sale-badge-hero {
        padding: 0.4rem 1rem;
        font-size: 1rem;
        gap: 0.3rem !important;
        animation: none !important;
        transform: none !important;
        max-width: 90% !important;
    }
    
    .sale-icon {
        font-size: 1.3rem;
        animation: none !important;
    }
    
    .sale-text {
        font-size: 1.1rem;
        letter-spacing: 0.5px !important;
    }
    
    /* "Sale Ends In" Label - Slightly smaller */
    .hero-countdown-title {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
        margin: 0.2rem 0 !important;
    }
    
    /* Countdown Timer - More compact */
    .countdown-timer-compact {
        padding: 0.7rem 0.9rem !important;
        gap: 0.15rem !important;
        border-width: 1px !important;
        width: auto !important;
        max-width: 95% !important;
    }
    
    /* Time Units - Slightly smaller */
    .time-unit-compact {
        min-width: 48px !important;
        flex: 0 0 auto !important;
    }
    
    .time-number-compact {
        font-size: 1.5rem !important;
        line-height: 1 !important;
    }
    
    .time-label-compact {
        font-size: 0.55rem !important;
        margin-top: 0.15rem !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Separators - Smaller */
    .time-separator {
        font-size: 1.1rem !important;
        margin: 0 -0.25rem !important;
    }
    
    /* CTA Buttons - Tighter spacing */
    .hero-cta-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
        margin-top: 0.6rem !important;
        align-items: center !important;
    }
    
    .hero .btn,
    .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Lighter particles on mobile */
    .hero::after {
        opacity: 0.4;
    }
}

/* ===== SMALL MOBILE - HERO (480px and below) ===== */
@media (max-width: 480px) {
    /* Hero */
    .hero {
        min-height: 65vh !important;
        padding: 1.5rem 0 !important;
        background-size: 160% 160% !important;
    }
    
    .hero-content {
        padding: 1rem 0.75rem !important;
    }
    
    /* Typography */
    .hero-content h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .hero-content p {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    /* Countdown Elements */
    .hero-countdown-wrapper {
        gap: 0.6rem !important;
        padding: 0 0.25rem !important;
    }
    
    .sale-badge-hero {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.65rem !important;
        animation: none !important;
        transform: none !important;
    }
    
    .sale-icon {
        font-size: 0.75rem !important;
        animation: none !important;
    }
    
    .sale-text {
        font-size: 0.65rem !important;
    }
    
    .hero-countdown-title {
        font-size: 0.75rem !important;
    }
    
    .countdown-timer-compact {
        padding: 0.6rem 0.8rem !important;
    }
    
    .time-unit-compact {
        min-width: 45px !important;
    }
    
    .time-number-compact {
        font-size: 1.4rem !important;
    }
    
    .time-label-compact {
        font-size: 0.55rem !important;
    }
    
    .time-separator {
        font-size: 1rem !important;
        margin: 0 -0.3rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.2rem !important;
        font-size: 0.9rem !important;
        max-width: 250px !important;
    }
    
    /* Even lighter effects on small screens */
    .hero::before,
    .hero::after {
        opacity: 0.3;
    }
}

/* ===== VERY SMALL SCREENS - HERO (360px and below) ===== */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.2rem !important;
    }
    
    .hero-content p {
        font-size: 0.8rem !important;
    }
    
    .time-unit-compact {
        min-width: 40px !important;
    }
    
    .time-number-compact {
        font-size: 1.2rem !important;
    }
    
    .time-label-compact {
        font-size: 0.5rem !important;
    }
    
    .countdown-timer-compact {
        padding: 0.5rem 0.6rem !important;
    }
}

/* =============================================
   ALL SECTIONS BELOW UNCHANGED - YOUR ORIGINAL
   ============================================= */

/* =============================================
   PRODUCT CATEGORIES FIX
   ============================================= */
@media (max-width: 768px) {
    .categories {
        padding: 2rem 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
}

/* =============================================
   PRODUCTS SECTION FIX - OPTIMIZED FOR MOBILE
   ============================================= */
@media (max-width: 768px) {
    .products {
        padding: 2rem 1rem !important;
    }
    
    .products-container h2 {
        font-size: 1.5rem !important;
    }
    
    .search-bar-container {
        padding: 0 0.5rem !important;
    }
    
    .search-bar {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .filter-bar {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== OPTIMIZED PRODUCT GRID ===== */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* ===== PRODUCT CARD IMPROVEMENTS ===== */
    .product-card {
        padding: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* ===== PRODUCT IMAGE CONTAINER ===== */
    .product-img,
    .product-image-container {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .product-img img,
    .product-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* ===== PRODUCT INFO SECTION ===== */
    .product-info {
        padding: 1rem 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        flex-grow: 1 !important;
    }
    
    /* ===== PRODUCT NAME ===== */
    .product-name {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 2.6rem !important;
    }
    
    /* ===== PRODUCT DESCRIPTION ===== */
    .product-description {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin: 0.25rem 0 !important;
        color: #718096 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* ===== PRICE SECTION ===== */
    .product-price-container {
        margin: 0.5rem 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }
    
    .product-price-old {
        font-size: 0.8rem !important;
    }
    
    .product-discount {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
    
    /* ===== RATING & STOCK ===== */
    .product-rating {
        margin: 0.25rem 0 !important;
        font-size: 0.75rem !important;
    }
    
    .stars {
        font-size: 0.75rem !important;
    }
    
    .review-count {
        font-size: 0.7rem !important;
    }
    
    .stock-status {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
        margin: 0.25rem 0 !important;
    }
    
    /* ===== ADD TO CART BUTTON ===== */
    .add-to-cart {
        width: 100% !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin-top: auto !important;
    }
    
    /* ===== BADGES ===== */
    .product-badges {
        top: 6px !important;
        left: 6px !important;
    }
    
    .badge {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }
    
    /* ===== WISHLIST BUTTON ===== */
    .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .heart-icon {
        font-size: 0.9rem !important;
    }
    
    /* ===== PRODUCT ACTIONS ===== */
    .product-actions {
        margin-top: 0.5rem !important;
        gap: 0.5rem !important;
    }
}

/* ===== VERY SMALL SCREENS - PRODUCTS (< 400px) ===== */
@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .product-img,
    .product-image-container {
        height: 220px !important;
        min-height: 220px !important;
    }
    
    .product-info {
        padding: 1.25rem 1rem !important;
    }
    
    .product-name {
        font-size: 1.05rem !important;
    }
    
    .product-description {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .product-price {
        font-size: 1.3rem !important;
    }
    
    .add-to-cart {
        padding: 0.9rem !important;
        font-size: 0.95rem !important;
    }
}

/* =============================================
   CONTACT SECTION FIX
   ============================================= */
@media (max-width: 768px) {
    .contact-calbank-style {
        padding: 2rem 1rem !important;
    }
    
    .contact-container {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    .contact-left,
    .contact-right {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .contact-title {
        font-size: 1.4rem !important;
        text-align: center !important;
    }
    
    .contact-subtitle {
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    .support-image-framed {
        max-height: 250px !important;
    }
    
    /* Contact Form Fixes */
    .calbank-contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .calbank-contact-form .form-group {
        width: 100% !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .calbank-contact-form .form-input,
    .calbank-contact-form input,
    .calbank-contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    .calbank-contact-form .submit-btn {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* =============================================
   TEAM SLIDER FIX
   ============================================= */
@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1rem !important;
    }
    
    .slider-wrapper {
        padding: 0 !important;
    }
    
    .slider-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .slide img {
        height: 250px !important;
    }
}

/* =============================================
   REVIEWS SECTION FIX
   ============================================= */
@media (max-width: 768px) {
    .reviews-section {
        padding: 2rem 1rem !important;
    }
    
    .reviews-header {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .reviews-header h2 {
        font-size: 1.4rem !important;
    }
}

/* =============================================
   MAP SECTION FIX
   ============================================= */
@media (max-width: 768px) {
    .map-section {
        padding: 2rem 1rem !important;
    }
    
    .map-wrapper {
        height: 250px !important;
    }
    
    .location-info {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .location-card {
        width: 100% !important;
        padding: 1.25rem !important;
    }
    
    .location-icon {
        font-size: 2rem !important;
    }
    
    .location-card h3 {
        font-size: 1.1rem !important;
    }
}

/* =============================================
   FOOTER FIX
   ============================================= */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem !important;
    }
    
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem ;
        text-align: center;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    .footer-section h3 {
        font-size: 1.2rem !important;
    }
    
    .footer-section p,
    .footer-section a {
        justify-content: center !important;
    }
    
    .footer-bottom {
        text-align: center !important;
        padding-top: 1.5rem !important;
    }
}

/* =============================================
   CART MODAL FIX
   ============================================= */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem !important;
        padding: 1rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .modal-header h2 {
        font-size: 1.2rem !important;
    }
    
    .cart-item-content {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .cart-item-img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* =============================================
   BACK TO TOP & WHATSAPP BUTTONS
   ============================================= */
@media (max-width: 768px) {
    .back-to-top,
    .whatsapp-float {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
    }
    
    .back-to-top {
        right: 15px !important;
    }
    
    .whatsapp-float {
        right: 15px !important;
        bottom: 70px !important;
    }
    
    .whatsapp-float svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* =============================================
   GENERAL MOBILE FIXES
   ============================================= */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
    }
    
    /* Section padding */
    section {
        padding: 2rem 1rem !important;
    }
    
    /* All section titles centered */
    .section-title,
    h2.section-title {
        text-align: center !important;
        font-size: 1.5rem !important;
    }
}