/* ============================================================
   FILE: css/footer.css
   PURPOSE: Styles for the shared site footer (shared_footer.php)
   CONTAINS: Footer layout, social links, navigation grid,
             WhatsApp button, back-to-top, responsive breakpoints
   DEPENDS ON: Loaded by shared_footer.php on all customer pages
   SYNCED WITH: css/header.css (matching gradient & glass effect)
   ============================================================ */


/* ============================================
   SECTION 1: FOOTER BASE (SAME AS HEADER)
   ============================================ */

.footer {
    background: linear-gradient(
        135deg,
        rgba(255,179,230,0.45),
        rgba(230,179,255,0.45),
        rgba(179,217,255,0.45),
        rgba(179,255,230,0.45)
    );

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    will-change: backdrop-filter;

    border-top: 1px solid rgba(255,255,255,0.4);
    box-shadow:
        0 -8px 30px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.5);

    padding: 16px 20px 8px;
    display: block !important;

}




/* ============================================
   SECTION 2: DESKTOP GRID LAYOUT
   ┌───────────────┬──────────────────────────┐
   │ logo + social │ info buttons (single row) │
   └───────────────┴──────────────────────────┘
   ============================================ */

.footer-content {
    display: grid;
    grid-template-columns: 200px 1fr; /* 🔽 smaller */
    align-items: start;
    gap: 24px;
    margin-bottom: 8px;
}


/* ============================================
   SECTION 3: BRAND COLUMN (LEFT)
   ============================================ */

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* 🔽 tighter */
}

.footer-logo {
    max-width: 110px; /* 🔽 smaller */
}

.footer-logo-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.social-media {
    display: flex;
    gap: 6px; /* 🔽 tighter */
    justify-content: center;
}

.social-btn {
    width: 32px; /* 🔽 smaller */
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 15px;
    height: 15px;
}

.social-btn.whatsapp { background: #25D366; color: #fff; }
.social-btn.instagram {
    background: linear-gradient(45deg,#f09433,#dc2743,#bc1888);
    color: #fff;
}
.social-btn.facebook { background: #1877F2; color: #fff; }
.social-btn.youtube { background: #FF0000; color: #fff; }
.social-btn.email { background: #EA4335; color: #fff; }

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}


/* ============================================
   SECTION 4: INFO COLUMN (RIGHT)
   SINGLE ROW DESKTOP - CENTERED
   ============================================ */

.footer-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔹 Center everything */
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center; /* 🔹 Center title */
}

.info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center; /* 🔹 Center buttons */
}

.info-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px; /* 🔽 smaller */
    border-radius: 18px;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(155,89,182,0.25);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px; /* 🔽 smaller */
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.info-links a:hover {
    background: rgba(255,255,255,0.55);
    border-color: rgba(155,89,182,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* ============================================
   SECTION 5: FOOTER BOTTOM (COPYRIGHT)
   FIXED OVERLAP - ONE LINE DOWN
   ============================================ */

.footer-bottom {
    border-top: 1px solid rgba(155,89,182,0.25);
    padding-top: 10px;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(44,62,80,0.7);
    margin: 0;
}


/* ============================================
   SECTION 6: ANIMATION (SHARED WITH HEADER)
   DO NOT DUPLICATE IN HEADER
   ============================================ */

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ============================================
   SECTION 7: MOBILE RESPONSIVE
   UNCHANGED (as requested)
   ============================================ */

@media (max-width: 968px) {
    .footer {
        padding: 25px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h4 {
        text-align: center;
    }

    /* ✅ RESTORE MOBILE GRID (important) */
    .info-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        overflow-x: visible;
        flex-wrap: unset;
        padding-bottom: 0;
    }

    .info-links a {
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 8px 10px;
        background: rgba(255,255,255,0.35);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255,255,255,0.35);
    }

    .footer-bottom p {
        font-size: 11px;
        margin-top: 10px !important;

    }
}


/* ============================================
   FLOATING NOTICE PILL (stable, no flicker)
   ============================================ */
.floating-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    gap: 8px;
    align-items: center;
}

/* ============================================
   HOME HORIZONTAL PRODUCT ROW
   ============================================ */

.home-row {
    margin: 40px 0;
}

.home-row-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 15px 10px;
    color: var(--text-dark);
}

/* Horizontal scroll container */
.home-row-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide ugly scrollbar */
.home-row-scroll::-webkit-scrollbar {
    height: 6px;
}
.home-row-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* Each item */
.home-row-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* Make cards slightly smaller in row */
.home-row .product-card {
    margin: 0;
    height: 100%;
}

/* ============================================
   PAYMENT METHODS INLINE
   ============================================ */

.payment-methods-inline {
    text-align: center;
    padding: 20px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(155,89,182,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 768px) {
    .payment-methods-inline {
        padding-top: 15px;
        margin-top: 15px;
        gap: 3px;
    }
    
    .payment-methods-inline img {
        height: 28px !important;
    }
}
/* ============================================
   SECTION 8: FULLY RESPONSIVE MOBILE FOOTER
   clamp() scales on ALL screen sizes
   ============================================ */

@media (max-width: 768px) {

    /* ── Footer padding ── */
    .footer {
        padding: clamp(12px, 3vw, 20px) clamp(10px, 3vw, 15px);
    }

    /* ── Footer logo ── */
    .footer-logo {
        max-width: clamp(70px, 20vw, 110px);
    }

    /* ── Social buttons ── */
    .social-btn {
        width: clamp(26px, 7vw, 34px);
        height: clamp(26px, 7vw, 34px);
    }

    .social-btn svg {
        width: clamp(12px, 3vw, 16px);
        height: clamp(12px, 3vw, 16px);
    }

    .social-media {
        gap: clamp(4px, 1.5vw, 8px);
    }

    /* ── Info links grid ── */
    .info-links {
        grid-template-columns: 1fr 1fr;
        gap: clamp(5px, 1.5vw, 8px);
    }

    .info-links a {
        font-size: clamp(10px, 2.5vw, 12px);
        padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px);
    }

    /* ── Section heading ── */
    .footer-section h4 {
        font-size: clamp(13px, 3.5vw, 16px);
        margin-bottom: clamp(10px, 2.5vw, 20px);
    }

    /* ── Copyright text ── */
    .footer-bottom p {
        font-size: clamp(9px, 2.2vw, 11px);
    }

    /* ── Payment methods ── */
    .payment-methods-inline img {
        height: clamp(20px, 5vw, 28px) !important;
    }
}
/* ============================================
   END OF FOOTER.CSS
   Header & Footer now 100% synced
   ============================================ */
