/* ============================================================
 * Custom Footer – Phong cách Thế Giới Sâm Yến
 * File: assets/css/custom-footer.css
 * ============================================================ */

.custom-tgsy-footer {
    background-color: #ffffff;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    position: relative;
    width: 100%;
    clear: both;
    margin-top: 30px;
}

.tgsy-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
 * 1. Top Newsletter & Social Connect Bar (Red Background)
 * ============================================================ */
.tgsy-footer-newsletter-bar {
    background-color: #a80f14;
    padding: 12px 0;
    color: #ffffff;
}

.newsletter-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Newsletter Form */
.tgsy-newsletter-form {
    margin: 0;
}

.tgsy-newsletter-input-wrap {
    display: flex;
    align-items: center;
}

.tgsy-newsletter-input {
    height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 280px;
    max-width: 100%;
    background-color: #ffffff;
    color: #333333;
}

.tgsy-newsletter-input::placeholder {
    color: #888888;
}

.tgsy-newsletter-btn {
    height: 38px;
    padding: 0 22px;
    background-color: #6e0207;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.5px;
}

.tgsy-newsletter-btn:hover {
    background-color: #4a0104;
}

/* Social Connect */
.tgsy-social-connect {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.social-icons-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-badge {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-badge:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    color: #ffffff;
}

.badge-zalo {
    background-color: #0088ff;
    padding: 0 12px;
}

.badge-facebook {
    background-color: #1877f2;
    width: 34px;
    padding: 0;
}

.badge-youtube {
    background-color: #ff0000;
    width: 34px;
    padding: 0;
}

.badge-shopee {
    background-color: #ee4d2d;
    width: 34px;
    padding: 0;
    position: relative;
}

.shopee-txt {
    font-size: 11px;
    font-weight: 900;
    margin-left: -2px;
}

.badge-lazada {
    background-color: #0f146d;
    padding: 0 10px;
}

.laz-txt {
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
}


/* ============================================================
 * 2. Main 4-Column Footer Section
 * ============================================================ */
.tgsy-main-body {
    padding-top: 10px;
    padding-bottom: 45px;
}

.tgsy-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 36px;
}

.tgsy-footer-col {
    display: flex;
    flex-direction: column;
}

/* Headings */
.tgsy-footer-title {
    color: #111111;
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.tgsy-footer-title.title-second {
    margin-top: 22px;
}

/* Column 1: Logo & Brand Info */
.tgsy-logo-box {
    margin-bottom: 16px;
}

.tgsy-emblem-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sun-emblem-svg {
    margin-bottom: 4px;
}

.tgsy-brand-title {
    color: #a80f14;
    font-size: 26px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.tgsy-footer-logo {
    max-height: 160px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
}

.tgsy-info-block {
    margin-bottom: 18px;
}

.tgsy-info-item {
    margin: 0 0 9px 0;
    color: #333333;
    font-size: 13.5px;
    line-height: 1.5;
}

.tgsy-info-item strong {
    color: #111111;
    font-weight: 700;
}

.tgsy-blue-txt {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

a.tgsy-blue-txt:hover {
    text-decoration: underline;
}

.tgsy-muted-txt {
    color: #666666;
    font-size: 13px;
    margin-left: 2px;
}

/* Verification Badges */
.tgsy-trust-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tgsy-bct-badge-link {
    text-decoration: none;
}

.bct-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0077c8;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.bct-badge-container:hover {
    transform: translateY(-2px);
}

.bct-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bct-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.bct-top {
    font-size: 8px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bct-bot {
    font-size: 10px;
    font-weight: 900;
}

.tgsy-dmca-badge-link {
    text-decoration: none;
}

.dmca-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #0088cc;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.dmca-badge-container:hover {
    transform: translateY(-2px);
}

.dmca-check-icon {
    font-weight: 900;
    font-size: 13px;
}

.dmca-bold {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.dmca-sub {
    font-size: 9px;
    opacity: 0.9;
}

/* Column 2: Product Categories */
.tgsy-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgsy-category-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tgsy-category-list li:last-child {
    border-bottom: none;
}

.footer-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444444;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-cat-link:hover {
    color: #a80f14;
    transform: translateX(4px);
}

.footer-cat-icon-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
}

.footer-cat-icon-badge {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #a80f14;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 2px;
}

/* Column 3: Policies & Guidelines */
.tgsy-policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgsy-policy-list li {
    margin-bottom: 7px;
}

.tgsy-policy-list a {
    color: #444444;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.tgsy-policy-list a:hover {
    color: #a80f14;
}

/* Column 4: Store System, Support & Payment */
.tgsy-simple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.tgsy-simple-list a {
    color: #444444;
    text-decoration: none;
}

.tgsy-simple-list a:hover {
    color: #a80f14;
}

.tgsy-hotline-block p {
    margin: 0 0 6px 0;
    font-size: 13.5px;
}

.hotline-num-line .number-bold {
    font-size: 15px;
    font-weight: 700;
}

.key-press-line {
    color: #333333;
}

a.tgsy-blue-link {
    color: #0066cc;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;
}

a.tgsy-blue-link:hover {
    text-decoration: underline;
}

/* Payment Logos */
.tgsy-payment-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pay-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pay-momo {
    background-color: #a50064;
    border-color: #a50064;
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
    text-align: center;
    padding: 0 8px;
}

.pay-vnpay .vn-red {
    color: #ed1c24;
    font-weight: 900;
}

.pay-vnpay .pay-blue {
    color: #005baa;
    font-weight: 900;
}

.pay-visa {
    color: #1a1f71;
    font-style: italic;
    font-weight: 900;
}

.pay-mastercard {
    padding: 0 8px;
}

.mc-circles {
    display: flex;
    align-items: center;
}

.mc-red {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #eb001b;
}

.mc-yellow {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #f79e1b;
    margin-left: -6px;
    opacity: 0.9;
}


/* ============================================================
 * 3. Bottom Copyright Bar (Red Background)
 * ============================================================ */
.tgsy-footer-copyright-bar {
    background-color: #a80f14;
    padding: 12px 0;
    color: #ffffff;
}

.copyright-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.copyright-txt {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}


/* ============================================================
 * 4. Floating Action Widgets (Fixed Right Buttons)
 * ============================================================ */
.tgsy-floating-widgets {
    position: fixed;
    bottom: 35px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tgsy-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.tgsy-float-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.float-phone {
    background-color: #e50914;
    animation: tgsy-phone-pulse 2s infinite;
}

.float-messenger {
    background-color: #0084ff;
}

.float-zalo {
    background-color: #0088ff;
}

.zalo-float-txt {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.float-back-to-top {
    background-color: #111111;
    color: #ffffff;
}

.float-back-to-top:hover {
    background-color: #a80f14;
}

@keyframes tgsy-phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(229, 9, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}


/* ============================================================
 * Responsive Rules
 * ============================================================ */
@media (max-width: 992px) {
    .tgsy-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .newsletter-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .tgsy-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .tgsy-newsletter-input {
        width: 200px;
    }

    .tgsy-floating-widgets {
        bottom: 20px;
        right: 12px;
    }

    .tgsy-float-btn {
        width: 38px;
        height: 38px;
    }
}