/* ==========================================================================
   CRERP - Custom Website Footer Styles (Compact & Responsive)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Caveat:wght@600;700&display=swap');

.custom-hnb-footer,
.web-footer .custom-footer-content {
    --coderiven-bg: var(--bg-color, var(--bs-body-bg, #ffffff));
    --coderiven-bg-strip: var(--coderiven-gray-50, var(--light-color, #f8fafc));
    --coderiven-primary: var(--primary, var(--primary-color, #1a7ef2));
    --coderiven-primary-hover: var(--coderiven-primary-hover, color-mix(in srgb, var(--coderiven-primary) 85%, black));
    --coderiven-primary-light: var(--coderiven-primary-light, color-mix(in srgb, var(--coderiven-primary) 12%, white));
    --coderiven-text: var(--coderiven-dark, var(--text-color, #0f172a));
    --coderiven-text-body: var(--coderiven-gray-700, var(--text-color, #334155));
    --coderiven-muted: var(--coderiven-gray-500, var(--text-muted, #64748b));
    --coderiven-hairline: var(--coderiven-gray-200, var(--border-color, #e2e8f0));
    --coderiven-radius-sm: var(--border-radius-sm, var(--border-radius, 8px));

    --hnb-bg: var(--coderiven-bg);
    --hnb-bg-strip: var(--coderiven-bg-strip);
    --hnb-primary: var(--coderiven-primary);
    --hnb-primary-hover: var(--coderiven-primary-hover);
    --hnb-primary-light: var(--coderiven-primary-light);
    --hnb-text: var(--coderiven-text);
    --hnb-text-body: var(--coderiven-text-body);
    --hnb-muted: var(--coderiven-muted);
    --hnb-hairline: var(--coderiven-hairline);
    --hnb-radius-sm: var(--coderiven-radius-sm);

    font-family: var(--coderiven-font, var(--font-stack, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
    background: var(--coderiven-bg);
    color: var(--coderiven-text);
    width: 100%;
}

/* If used inside frappe .web-footer */
footer.web-footer:has(.custom-footer-content) {
    padding: 0 !important;
    background: transparent !important;
    border-top: 1px solid var(--coderiven-hairline, #e2e8f0) !important;
}

footer.web-footer .custom-footer-content {
    width: 100%;
}

.custom-footer-content .footer-main {
    padding-top: 28px;
    padding-bottom: 20px;
}

/* Brand */
.custom-footer-content .brand-logo-link {
    display: inline-block;
    margin-bottom: 8px;
    text-decoration: none;
}

.custom-footer-content .footer-brand-logo {
    max-height: 40px;
    max-width: 180px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.custom-footer-content .brand-name {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.4px;
    margin-bottom: 2px;
    line-height: 1.15;
    color: var(--hnb-text);
}

.custom-footer-content .brand-name .hnb,
.custom-footer-content .brand-name .park {
    color: var(--hnb-primary);
}

.custom-footer-content .brand-tagline {
    font-size: .68rem;
    letter-spacing: 1.2px;
    color: var(--hnb-muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.custom-footer-content .brand-desc {
    font-size: .84rem;
    color: var(--hnb-text-body);
    line-height: 1.45;
    margin-bottom: 8px;
}

.custom-footer-content .shop-smart {
    font-family: 'Caveat', 'Dancing Script', cursive;
    color: var(--hnb-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.custom-footer-content .social-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-footer-content .social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--hnb-hairline);
    color: var(--hnb-text-body);
    font-size: .82rem;
    text-decoration: none;
    transition: all .2s ease;
}

.custom-footer-content .social-row a:hover {
    border-color: var(--hnb-primary);
    color: #ffffff;
    background-color: var(--hnb-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--hnb-primary) 20%, transparent);
}

/* Section heading */
.custom-footer-content .col-heading {
    font-weight: 700;
    font-size: .95rem;
    color: var(--hnb-text);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

/* Stores */
.custom-footer-content .store-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.custom-footer-content .store-block:last-child {
    margin-bottom: 0;
}

.custom-footer-content .store-block .pin {
    color: var(--hnb-text);
    font-size: .9rem;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.custom-footer-content .store-name {
    font-weight: 600;
    font-size: .88rem;
    color: var(--hnb-text);
    margin-bottom: 2px;
}

.custom-footer-content .store-addr {
    font-size: .8rem;
    color: var(--hnb-muted);
    line-height: 1.4;
    margin-bottom: 3px;
}

.custom-footer-content .store-phone {
    font-size: .82rem;
    color: var(--hnb-text-body);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color .15s ease;
}

.custom-footer-content .store-phone:hover {
    color: var(--hnb-primary);
    text-decoration: underline;
}

.custom-footer-content .store-phone svg,
.custom-footer-content .store-phone i {
    margin-right: 6px;
    color: var(--hnb-text);
    font-size: .75rem;
}

/* Quick links */
.custom-footer-content .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer-content .footer-links li {
    margin-bottom: 6px;
}

.custom-footer-content .footer-links li:last-child {
    margin-bottom: 0;
}

.custom-footer-content .footer-links a {
    font-size: .84rem;
    color: var(--hnb-text-body);
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
    display: inline-block;
}

.custom-footer-content .footer-links a:hover {
    color: var(--hnb-primary);
    text-decoration: none;
    transform: translateX(3px);
}

/* Payment strip */
.custom-footer-content .payment-strip {
    background: var(--hnb-bg-strip);
    border-top: 1px solid var(--hnb-hairline);
    border-bottom: 1px solid var(--hnb-hairline);
    padding: 8px 0;
}

.custom-footer-content .payment-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.custom-footer-content .accept-label {
    font-size: .72rem;
    letter-spacing: 0.8px;
    color: var(--hnb-muted);
    font-weight: 600;
    margin-right: 6px;
    white-space: nowrap;
    text-transform: uppercase;
}

.custom-footer-content .pay-badge {
    background: var(--hnb-bg);
    border: 1px solid var(--hnb-hairline);
    border-radius: var(--hnb-radius-sm);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: .75rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.custom-footer-content .pay-badge.visa {
    color: #1a1f71;
    font-style: italic;
}

.custom-footer-content .pay-badge.mc {
    padding: 5px 10px;
}

.custom-footer-content .pay-badge.mc .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.custom-footer-content .pay-badge.mc .dot.red {
    background: #eb001b;
}

.custom-footer-content .pay-badge.mc .dot.orange {
    background: #f79e1b;
    margin-left: -5px;
}

.custom-footer-content .pay-badge.bkash {
    color: #e2136e;
}

.custom-footer-content .pay-badge.nagad {
    color: #f5821f;
}

.custom-footer-content .pay-badge.cod {
    background: var(--hnb-bg);
    border: 1px solid var(--hnb-hairline);
    color: var(--hnb-muted);
    font-weight: 500;
}

.custom-footer-content .pay-badge.cod svg,
.custom-footer-content .pay-badge.cod i {
    color: var(--hnb-text);
    margin-right: 6px;
}

.custom-footer-content .delivery-note {
    font-size: .8rem;
    color: var(--hnb-muted);
    text-align: right;
    margin: 0;
}

.custom-footer-content .delivery-note svg,
.custom-footer-content .delivery-note i {
    color: var(--hnb-text);
    margin-right: 6px;
}

/* Bottom bar */
.custom-footer-content .bottom-bar {
    padding: 10px 0;
    font-size: .78rem;
    color: var(--hnb-muted);
}

.custom-footer-content .bottom-bar a {
    color: var(--hnb-primary);
    text-decoration: underline;
    font-weight: 600;
}

.custom-footer-content .bottom-bar a:hover {
    color: var(--hnb-text);
}

/* Responsive styles */
@media (max-width: 991px) {
    .custom-footer-content .col-heading {
        margin-top: 14px;
    }
    .custom-footer-content .delivery-note {
        text-align: left;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .custom-footer-content .footer-main {
        padding-top: 20px;
        padding-bottom: 16px;
        text-align: center;
    }
    .custom-footer-content .brand-logo-link {
        display: inline-flex;
        justify-content: center;
    }
    .custom-footer-content .footer-brand-logo {
        margin: 0 auto;
    }
    .custom-footer-content .brand-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .custom-footer-content .social-row {
        justify-content: center;
    }
    .custom-footer-content .store-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .custom-footer-content .store-block .pin {
        margin-right: 0;
        margin-bottom: 4px;
    }
    .custom-footer-content .payment-badges-wrap {
        justify-content: center;
    }
    .custom-footer-content .accept-label {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 6px;
    }
    .custom-footer-content .delivery-note {
        text-align: center;
        margin-top: 8px;
    }
    .custom-footer-content .bottom-bar {
        text-align: center;
    }
    .custom-footer-content .bottom-bar .container {
        flex-direction: column;
        gap: 6px;
    }
}

