/* ============================================================
   COMPLETE FOOTER REDESIGN & GAP FIX (STRICT DIRECT TARGETING)
   ============================================================ */

/* 1. Global Footer Base & Radial Lighting */
footer {
    background: radial-gradient(circle at 50% 0%, #151d2a 0%, #0a0e17 80%) !important;
    color: #e5e7eb !important;
    position: relative !important;
    border-top: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
}

/* Remove default thin horizontal border lines & giant vertical paddings */
footer div, footer section {
    border-bottom: 0 !important;
    border-bottom-width: 0 !important;
    border-top-width: 0 !important;
}

footer .py-12 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* 2. Top Section 1 (PS Fresh Description) */
footer .container > div:nth-of-type(1) {
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
}

footer .container > div:nth-of-type(1) h3,
footer .container > div:nth-of-type(1) .text-2xl,
footer .container > div:nth-of-type(1) .text-3xl {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.2rem !important;
}

footer .container > div:nth-of-type(1) p {
    color: #9ca3af !important;
    font-size: 0.95rem !important;
}

/* 3. Top Section 2 (Join Us Floating Glass Banner Card) */
footer .container > div:nth-of-type(2) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(30, 41, 59, 0.5) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem 2rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

footer .container > div:nth-of-type(2) h3 {
    color: #ffffff !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.2rem !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

footer .container > div:nth-of-type(2) p {
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* Join Us Buttons ("As Seller", "As Delivery Partner") */
footer a[href*="/seller/login"],
footer a[href*="/delivery_boy/login"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-radius: 9999px !important;
    padding: 0.7rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

footer a[href*="/seller/login"]:hover,
footer a[href*="/delivery_boy/login"]:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* 4. Section 3 (Main Grid Links & Store Info) */
footer .container > div:nth-of-type(3) {
    padding-top: 0.5rem !important;
    padding-bottom: 1.5rem !important;
    gap: 2.5rem !important;
}

footer .container > div:nth-of-type(3) h3 {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    display: inline-block !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

footer .container > div:nth-of-type(3) h3::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: #10b981;
    border-radius: 99px;
    margin-top: 6px;
}

/* Footer Link List */
footer ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

footer ul li a {
    color: #9ca3af !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

footer ul li a:hover {
    color: #10b981 !important;
    transform: translateX(6px) !important;
}

footer ul li a::before {
    content: '›';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease-in-out;
    color: #10b981;
    font-weight: 700;
}

footer ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Store Info Badges */
footer .iconBackgroundColor {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 0.85rem !important;
    color: #10b981 !important;
    transition: all 0.3s ease !important;
}

footer .iconBackgroundColor:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    transform: scale(1.04) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35) !important;
}

/* Social Media Icons */
footer .flex.gap-4.mt-1.iconBackgroundColor a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all 0.3s ease;
}

footer .flex.gap-4.mt-1.iconBackgroundColor a:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

/* 5. Bottom Sub-Footer Bar */
footer div:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

/* Header Enhancements */
header, nav {
    backdrop-filter: blur(16px) !important;
    transition: all 0.3s ease !important;
}

header .iconBackgroundColor,
nav .iconBackgroundColor {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 9999px !important;
    transition: all 0.3s ease !important;
}

header a[href^="tel:"],
nav a[href^="tel:"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.6rem 1.4rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

/* REMOVE ALL FOOTER DIV HORIZONTAL LINES */
footer div, 
footer section, 
footer [class*="border-b"],
footer div[class*="border-b"] {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-top: none !important;
    border-top-width: 0 !important;
}

/* RE-ENABLE SPECIFIC BORDERS FOR HERO GLASS CARD & BADGES ONLY */
footer div > div:nth-of-type(2) {
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

footer .iconBackgroundColor {
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

footer div:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* HIGH SPECIFICITY BORDER OVERRIDE */
html body footer .border-b-\[1px\] {
    border-bottom: 0px none transparent !important;
    border-bottom-width: 0px !important;
    border-color: transparent !important;
}

