/* ============================================================
   MOBILE HEADER SPECIFIC CSS (Screens <= 1024px)
   Colors: Purple #7B2FF7, Dark Purple #6B2FA0, Pink #E91E8C
   Light Lavender #F3EEFF, Dark Text #1A1A2E
   ============================================================ */

/* Import Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.fifo-mobile-site-header {
    display: none;
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    background: #ffffff;
    width: 100%;
    z-index: 9999;
    position: sticky;
    top: 0;
    left: 0;
    box-shadow: 0 2px 12px rgba(123, 47, 247, 0.08);
}

@media (max-width: 1024px) {
    /* Hide desktop header */
    .fifo-site-header {
        display: none !important;
    }
    
    /* Show mobile header */
    .fifo-mobile-site-header {
        display: block;
    }
}

/* Row 1: Top Bar */
.fifo-mob-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #ffffff;
    position: relative;
    z-index: 3;
}

.fifo-mob-hamburger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.fifo-mob-hamburger:active {
    background: #F3EEFF;
}

.fifo-mob-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1;
}

.fifo-mob-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.fifo-mob-tagline {
    font-size: 10px;
    font-style: italic;
    color: #6B7280;
    margin-top: 2px;
    font-weight: 500;
}

.fifo-mob-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fifo-mob-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1A1A2E;
    transition: color 0.2s;
}

.fifo-mob-icon-link:active {
    color: #7B2FF7;
}

.fifo-mob-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
}

.fifo-mob-icon-label {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
}

.fifo-mob-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #7B2FF7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    line-height: 1;
}

/* Row 2: Delivery Location */
.fifo-mob-row-2 {
    padding: 0 15px 10px 15px;
    background: #ffffff;
    transition: transform 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    transform-origin: top;
    position: relative;
    z-index: 2;
}

.fifo-mob-row-2.hide-on-scroll {
    transform: translateY(-100%);
    margin-top: -38px;
    opacity: 0;
    pointer-events: none;
}

.fifo-mob-deliver-pill {
    background: linear-gradient(135deg, #F3EEFF 0%, #EDE5FF 100%);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(123, 47, 247, 0.1);
    transition: border-color 0.2s;
}

.fifo-mob-deliver-pill:active {
    border-color: #7B2FF7;
}

.fifo-mob-deliver-text {
    font-size: 13px;
    color: #7B2FF7;
    font-weight: 500;
}

.fifo-mob-deliver-text strong {
    color: #1A1A2E;
    font-weight: 700;
    margin-left: 2px;
}

/* Row 3: Search Bar */
.fifo-mob-row-3 {
    padding: 0 15px 12px 15px;
    background: #ffffff;
    position: relative;
    z-index: 4;
}

.fifo-mob-search-form {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 24px;
    padding: 4px;
    gap: 4px;
    transition: border-color 0.2s;
}

.fifo-mob-search-form:focus-within {
    border-color: #7B2FF7;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.08);
}

.fifo-mob-search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 12px;
}

.fifo-mob-search-icon-left {
    flex-shrink: 0;
    opacity: 0.5;
}

.fifo-mob-search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    color: #1A1A2E;
    outline: none;
    font-family: inherit;
}

.fifo-mob-search-input::placeholder {
    color: #9CA3AF;
}

.fifo-mob-search-input:focus {
    outline: none;
    box-shadow: none;
}

.fifo-mob-search-submit {
    background: linear-gradient(135deg, #7B2FF7 0%, #A855F7 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
    font-family: inherit;
}

.fifo-mob-search-submit:active {
    opacity: 0.85;
}

/* ============================================================
   MOBILE DRAWER (PREMIUM PET STORE STYLE)
   Matches the Supertails-inspired design reference
   ============================================================ */

/* Overlay */
.fifo-mobile-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fifo-mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Container */
.fifo-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.fifo-mobile-drawer.active {
    transform: translateX(0);
}

/* Drawer Header (Purple Gradient) */
.fifo-drawer-header-pro {
    background: linear-gradient(135deg, #7B2FF7 0%, #A855F7 50%, #C084FC 100%);
    color: #ffffff;
    padding: 28px 20px 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 130px;
}

/* Paw print background decorations */
.fifo-paw-bg {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.fifo-paw-1 { top: -5px; right: 40px; transform: rotate(15deg); }
.fifo-paw-2 { bottom: 20px; right: -10px; transform: rotate(-20deg); }

.fifo-drawer-close {
    position: absolute;
    top: 14px; right: 14px;
    cursor: pointer;
    z-index: 2;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.fifo-drawer-close:active {
    background: rgba(255, 255, 255, 0.3);
}

.fifo-drawer-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.fifo-drawer-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fifo-drawer-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fifo-drawer-user-details {
    flex: 1;
    min-width: 0;
}

.fifo-drawer-user-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fifo-drawer-welcome {
    margin: 2px 0 8px 0;
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
}

.fifo-drawer-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.2px;
}

.fifo-drawer-auth-btn:active {
    background: rgba(255, 255, 255, 0.35);
}

/* Stats Pill */
.fifo-drawer-stats-wrapper {
    padding: 0 16px;
    margin-top: -22px;
    position: relative;
    z-index: 3;
}

.fifo-drawer-stats-pill {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(123, 47, 247, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid rgba(123, 47, 247, 0.08);
}

.fifo-stat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1A1A2E;
    flex: 1;
    justify-content: center;
    transition: opacity 0.2s;
}

.fifo-stat-item:active {
    opacity: 0.7;
}

.fifo-stat-text {
    display: flex;
    flex-direction: column;
}

.fifo-stat-label {
    font-size: 10px;
    color: #9CA3AF;
    line-height: 1;
    font-weight: 500;
}

.fifo-stat-value {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
    color: #1A1A2E;
}

.fifo-stat-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #E5E7EB, transparent);
    flex-shrink: 0;
}

/* Drawer Body */
.fifo-drawer-body {
    flex: 1;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.fifo-drawer-menu-list {
    display: flex;
    flex-direction: column;
}

.fifo-drawer-item-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 2px 0;
}

.fifo-drawer-accordion-item {
    display: flex;
    flex-direction: column;
}

.fifo-drawer-accordion-header {
    display: flex;
    align-items: center;
    padding: 11px 0;
    cursor: pointer;
    text-decoration: none;
    color: #1A1A2E;
    border-radius: 10px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.fifo-drawer-accordion-header:active {
    background: #F9FAFB;
}

.fifo-accordion-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fifo-drawer-accordion-header:active .fifo-accordion-icon {
    transform: scale(0.92);
}

.fifo-accordion-icon svg {
    width: 20px; height: 20px;
}

.fifo-accordion-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fifo-accordion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    line-height: 1.3;
}

.fifo-accordion-subtitle {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 1px;
    line-height: 1.3;
}

.fifo-accordion-chevron {
    color: #C4B5FD;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.fifo-drawer-accordion-item.open .fifo-accordion-chevron {
    transform: rotate(180deg);
    color: #7B2FF7;
}

.fifo-drawer-accordion-content {
    display: none;
    padding-left: 52px;
    padding-bottom: 8px;
}

.fifo-drawer-accordion-item.open .fifo-drawer-accordion-content {
    display: block;
    animation: fifoDrawerFadeIn 0.3s ease;
}

@keyframes fifoDrawerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fifo-accordion-sublist {
    list-style: none;
    padding: 0; margin: 0;
}

.fifo-accordion-sublist li {
    margin-bottom: 0;
}

.fifo-accordion-sublist a {
    text-decoration: none;
    color: #4B5563;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    transition: color 0.15s;
    border-radius: 6px;
}

.fifo-accordion-sublist a:active {
    color: #7B2FF7;
}

/* "View All" link inside accordion */
.fifo-accordion-sublist li:first-child a {
    color: #7B2FF7;
    font-weight: 600;
}

/* ============================================================
   WHY FIFOZONE - TRUST SECTION (Premium Card)
   ============================================================ */

.fifo-why-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #F8F4FF 0%, #F3EEFF 100%);
    border-radius: 16px;
    padding: 20px 16px;
    border: 1px solid rgba(123, 47, 247, 0.08);
}

.fifo-why-title {
    font-size: 15px;
    font-weight: 700;
    color: #7B2FF7;
    margin: 0 0 16px 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.fifo-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fifo-why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #4B5563;
    line-height: 1.3;
}

.fifo-why-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(123, 47, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fifo-why-icon svg {
    width: 20px; height: 20px;
}

/* ============================================================
   FOOTER LINKS (Horizontal Wrap)
   ============================================================ */

.fifo-drawer-footer-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
}

.fifo-drawer-footer-links a {
    text-decoration: none;
    color: #9CA3AF;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    transition: color 0.15s;
    white-space: nowrap;
}

.fifo-drawer-footer-links a:active {
    color: #7B2FF7;
}

.fifo-drawer-footer-links a svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ============================================================
   BOTTOM WAVE DECORATION
   ============================================================ */

.fifo-drawer-bottom-wave {
    margin-top: 24px;
    position: relative;
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: -20px;
    background: linear-gradient(135deg, #7B2FF7 0%, #A855F7 100%);
    height: 90px;
}

.fifo-wave-svg {
    position: absolute;
    bottom: 100%; left: 0; width: 100%;
    height: 40px;
    display: block;
}

.fifo-wave-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fifo-mascot-img {
    position: absolute;
    bottom: 0;
    right: 20px;
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ============================================================
   WHATSAPP FLOATING CHAT BUTTON (Mobile Only)
   ============================================================ */

.fifo-whatsapp-float {
    display: none;
}

@media (max-width: 1024px) {
    .fifo-whatsapp-float {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 16px;
        z-index: 9998;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, #7B2FF7 0%, #9333EA 100%);
        color: #ffffff;
        text-decoration: none;
        padding: 10px 18px;
        border-radius: 28px;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
        box-shadow: 0 4px 20px rgba(123, 47, 247, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        animation: fifoFloatPulse 3s ease-in-out infinite;
    }

    .fifo-whatsapp-float:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(123, 47, 247, 0.3);
    }

    .fifo-whatsapp-float svg {
        flex-shrink: 0;
    }

    .fifo-whatsapp-float .fifo-chat-text {
        line-height: 1.2;
    }

    .fifo-whatsapp-float .fifo-chat-text small {
        display: block;
        font-size: 10px;
        font-weight: 400;
        opacity: 0.85;
    }

    @keyframes fifoFloatPulse {
        0%, 100% { box-shadow: 0 4px 20px rgba(123, 47, 247, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1); }
        50% { box-shadow: 0 4px 30px rgba(123, 47, 247, 0.5), 0 2px 12px rgba(0, 0, 0, 0.15); }
    }
}

/* ============================================================
   DRAWER SECTION LABELS
   ============================================================ */

.fifo-drawer-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C4B5FD;
    padding: 12px 0 4px 0;
    margin-top: 4px;
}

/* ============================================================
   MEDIA QUERIES & RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 360px) {
    .fifo-mob-icons {
        gap: 8px;
    }
    
    .fifo-mob-icon-label {
        font-size: 9px;
    }
    
    .fifo-mob-search-submit {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .fifo-why-grid {
        gap: 6px;
    }
    
    .fifo-why-item {
        font-size: 9px;
    }
    
    .fifo-why-icon {
        width: 36px; height: 36px;
    }

    .fifo-stat-label {
        font-size: 9px;
    }
    
    .fifo-stat-value {
        font-size: 12px;
    }
}

@media (min-width: 1025px) {
    .fifo-mobile-drawer,
    .fifo-mobile-drawer-overlay,
    .fifo-mobile-site-header,
    .fifo-whatsapp-float {
        display: none !important;
    }
}
