/* ===================================
   PREMIUM FOOTER — Award-Winning Aesthetic
   Refined dark theme · Orange gradient accents
   Generous whitespace · Polished typography
   =================================== */

:root {
    --footer-bg: #0c0f16;
    --footer-surface: rgba(255, 255, 255, 0.04);
    --footer-border: rgba(255, 255, 255, 0.07);
    --footer-text: rgba(255, 255, 255, 0.55);
    --footer-text-muted: rgba(255, 255, 255, 0.32);
    --footer-white: #ffffff;
    --footer-accent: #FF6B35;
    --footer-accent-light: #F7931E;
    --footer-gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --footer-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --footer-max-w: 1200px;
    --footer-px: 48px;
}

/* Reset theme defaults */
footer.premium-footer {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===================================
   1. BENEFITS BAR
   Thin trust strip above everything
   =================================== */
.footer-benefits {
    background: var(--footer-bg);
    border-bottom: 1px solid var(--footer-border);
    padding: 0;
}

.footer-benefits-inner {
    max-width: var(--footer-max-w);
    margin: 0 auto;
    padding: 24px var(--footer-px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.footer-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--footer-surface);
    border: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-benefit:hover .footer-benefit-icon {
    background: var(--footer-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.footer-benefit-icon svg {
    color: var(--footer-accent);
    transition: color 0.3s ease;
}

.footer-benefit:hover .footer-benefit-icon svg {
    color: var(--footer-white);
}

.footer-benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--footer-white);
    font-family: var(--footer-font);
    letter-spacing: 0.01em;
}

.footer-benefit-desc {
    font-size: 12px;
    color: var(--footer-text-muted);
    font-family: var(--footer-font);
    line-height: 1.4;
}

/* ===================================
   2. FOOTER MAILING COLUMN
   Compact inline subscribe form
   =================================== */
.footer-mailing {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-mailing h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--footer-white) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 22px 0 !important;
    padding-bottom: 14px !important;
    position: relative !important;
    font-family: var(--footer-font) !important;
    white-space: nowrap !important;
}

.footer-mailing h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--footer-gradient);
    border-radius: 2px;
}

.footer-mailing-desc {
    font-size: 13.5px;
    color: var(--footer-text);
    line-height: 1.65;
    margin: 0;
    font-family: var(--footer-font);
}

.footer-mailing-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 400px;
    background: var(--footer-surface);
    border: 1px solid var(--footer-border);
    border-radius: 50px;
    padding: 4px 4px 4px 6px;
    transition: all 0.35s ease;
    margin-top: 4px;
}

.footer-mailing-form:focus-within {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.06);
}

.footer-mailing-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--footer-white);
    font-size: 13px;
    font-family: var(--footer-font);
    outline: none;
    min-width: 0;
}

.footer-mailing-form input[type="email"]::placeholder {
    color: var(--footer-text-muted);
}

.footer-mailing-form button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: var(--footer-gradient) !important;
    border: none !important;
    border-radius: 50% !important;
    color: var(--footer-white) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    font-size: 0;
    /* hide any text fallback */
    line-height: 1;
}

.footer-mailing-form button svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    stroke: #ffffff !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

.footer-mailing-form button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}

/* ===================================
   3. MAIN FOOTER COLUMNS
   Balanced 5-column grid
   =================================== */
.footer-main {
    background: var(--footer-bg);
    padding: 56px 0 48px;
}

.footer-main-inner {
    max-width: var(--footer-max-w);
    margin: 0 auto;
    padding: 0 var(--footer-px);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.footer-social a,
.footer-social .social-icon,
.footer-social .ps-list--social a {
    width: 36px !important;
    height: 36px !important;
    background: var(--footer-surface) !important;
    border: 1px solid var(--footer-border) !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--footer-text) !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-social a:hover,
.footer-social .social-icon:hover,
.footer-social .ps-list--social a:hover {
    background: var(--footer-gradient) !important;
    border-color: transparent !important;
    color: var(--footer-white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3) !important;
}

.footer-social .ps-list--social {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-social .ps-list--social li {
    margin: 0 !important;
}

/* Footer Link Columns */
.footer-column h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--footer-white) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 22px 0 !important;
    padding-bottom: 14px !important;
    position: relative !important;
    font-family: var(--footer-font) !important;
    white-space: nowrap !important;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--footer-gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column ul li {
    margin-bottom: 11px !important;
}

.footer-column ul li:last-child {
    margin-bottom: 0 !important;
}

.footer-column .footer-link {
    color: var(--footer-text) !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    font-family: var(--footer-font) !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    position: relative !important;
}

.footer-column .footer-link::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-column .footer-link:hover {
    color: var(--footer-white) !important;
    transform: translateX(3px) !important;
}

.footer-column .footer-link:hover::before {
    width: 100%;
}

.footer-column .vendor-signup-link {
    color: var(--footer-accent) !important;
    font-weight: 600 !important;
}

.footer-column .vendor-signup-link:hover {
    color: var(--footer-accent-light) !important;
}

/* ===================================
   4. PAYMENT & TRUST BAR
   Subtle divider section
   =================================== */
.footer-bottom-bar {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-inner {
    max-width: var(--footer-max-w);
    margin: 0 auto;
    padding: 24px var(--footer-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Payment Methods */
.footer-payment {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-payment-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--footer-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--footer-font);
    white-space: nowrap;
}

.footer-payment .payment-img,
.footer-payment img {
    height: 20px !important;
    width: auto !important;
    opacity: 0.35 !important;
    transition: all 0.25s ease !important;
    vertical-align: middle !important;
    filter: brightness(0) invert(1) !important;
}

.footer-payment .payment-img:hover,
.footer-payment img:hover {
    opacity: 0.85 !important;
}

/* Copyright */
.footer-copyright-text {
    font-size: 12px;
    color: var(--footer-text-muted);
    font-family: var(--footer-font);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ===================================
   RESPONSIVE
   =================================== */



@media (max-width: 1100px) {
    :root {
        --footer-px: 28px;
    }

    .footer-benefits-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 columns: mailing form keeps PC-like appearance alongside link columns */
    .footer-main-inner {
        grid-template-columns: 1.4fr 1fr 1fr !important;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-payment {
        justify-content: center;
    }
}

/* Tablet portrait (768px) — explicit rule so nothing falls through */
@media (max-width: 768px) {
    :root {
        --footer-px: 20px;
    }

    .footer-main-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px;
    }

    .footer-main-inner>.footer-mailing {
        grid-column: 1 / -1 !important;
        align-items: flex-start;
        text-align: left;
    }

    .footer-mailing .footer-social {
        justify-content: flex-start;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column .footer-link:hover {
        transform: none !important;
    }
}


@media (max-width: 640px) {
    .footer-benefits-inner {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .footer-benefit {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px 0;
    }

    .footer-benefit-icon {
        width: 40px;
        height: 40px;
    }

    .footer-newsletter-inner {
        padding: 40px var(--footer-px);
    }

    .footer-newsletter-inner h3 {
        font-size: 24px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 5px;
    }

    .footer-newsletter-form input[type="email"] {
        text-align: center;
        padding: 14px 16px;
    }

    .footer-newsletter-form button {
        border-radius: 12px;
    }

    .footer-main {
        padding: 40px 0 32px;
    }

    .footer-main-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px;
    }

    .footer-main-inner>.footer-mailing {
        grid-column: 1 / -1 !important;
        align-items: flex-start;
        text-align: left;
    }
}


@media (max-width: 420px) {
    .footer-benefits-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-benefit {
        flex-direction: column;
        text-align: center;
    }

    /* Keep 2-column grid — footer-mailing stays full-width on its own row */
    .footer-main-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main-inner>.footer-mailing {
        grid-column: 1 / -1 !important;
    }
}

/* ===================================
   QUICK VIEW MODAL STYLING
   =================================== */
#product-quickview .modal-content {
    border: none;
    border-radius: 8px;
}

#product-quickview .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
}