/* =========================
   TOAN PHAT THEME OVERRIDES
   Loaded after /assets/css/main.css
========================= */

:root {
    --primary-color: #0d47a1;
    --secondary-color: #00a86b;
    --text-color: #4b5563;
    --button-color: #0d47a1;
    --button-text-color: #ffffff;
    --menu-bg-color: #ffffff;
    --menu-text-color: #1f2937;
    --menu-hover-color: #0d47a1;
    --footer-bg-color: #ffffff;
    --footer-text-color: #4b5563;
    --tp-primary: var(--primary-color);
    --tp-primary-hover: var(--menu-hover-color);
    --tp-primary-soft: #e8f1ff;
    --tp-primary-border: #b8d4ff;
    --tp-accent: var(--secondary-color);
    --tp-accent-hover: var(--secondary-color);
    --tp-danger: #e53935;
    --tp-warning: #f59e0b;
    --tp-heading: var(--text-color);
    --tp-body: var(--text-color);
    --tp-muted: #6b7280;
    --tp-border: #e5e7eb;
    --tp-surface: #ffffff;
    --tp-surface-soft: #f8fafc;
    --tp-radius: 8px;
    --tp-radius-sm: 6px;
    --tp-shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
    --tp-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
    --tp-font-body: "Lato", Arial, sans-serif;
    --tp-font-heading: "Quicksand", Arial, sans-serif;
}

/* Base */
body {
    color: var(--tp-body);
    font-family: var(--tp-font-body);
    background-color: var(--tp-surface);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    color: var(--tp-heading);
    font-family: var(--tp-font-heading);
}

a {
    color: var(--tp-primary);
}

a:hover {
    color: var(--tp-primary-hover);
}

.text-brand {
    color: var(--tp-primary) !important;
}

.text-brand:hover {
    color: var(--tp-primary-hover) !important;
}

::selection {
    background: var(--tp-primary);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(13, 71, 161, 0.28);
    outline-offset: 2px;
}

/* Header and menu */
.mobile-promotion {
    background-color: var(--tp-primary) !important;
}

.header-bottom-bg-color {
    background-color: var(--menu-bg-color) !important;
    border-top: 1px solid var(--tp-border);
    border-bottom: 1px solid var(--tp-border);
}

.main-menu > nav > ul > li > a {
    color: var(--menu-text-color) !important;
}

.main-menu > nav > ul > li:hover > a,
.main-menu > nav > ul > li.active > a,
.main-menu nav ul li ul li a:hover,
.mobile-menu li a:hover {
    color: var(--menu-hover-color) !important;
}

.categories-button-active {
    background: var(--tp-accent) !important;
    border-radius: var(--tp-radius-sm);
}

.categories-button-active:hover {
    background: var(--tp-accent-hover) !important;
}

.categories-dropdown-wrap,
.main-menu nav ul li ul.sub-menu {
    border-color: var(--tp-primary-border);
    box-shadow: var(--tp-shadow-md);
}

.hotline p,
.hotline span {
    color: var(--tp-primary) !important;
}

.header-area .hotline p,
footer.main .hotline p {
    color: var(--primary-color) !important;
}

.header-area .hotline p span,
footer.main .hotline p span {
    color: var(--text-color) !important;
}

.header-address .lable {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-address img {
    width: 22px;
    opacity: 0.9;
}

/* Forms and search */
input,
textarea,
select,
.select2-container--default .select2-selection--single {
    border-color: var(--tp-border);
    border-radius: var(--tp-radius-sm);
}

input:focus,
textarea:focus,
select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--tp-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.search-style-2 form,
.mobile-search form,
.form-subcriber {
    border-color: var(--tp-primary) !important;
}

.search-style-2 form input,
.mobile-search form input {
    color: var(--tp-heading);
}

/* Buttons */
.btn,
.button,
button.submit,
button[type="submit"],
.button.button-add-to-cart,
.submit-auto-width {
    background: var(--button-color) !important;
    border-color: var(--button-color) !important;
    color: var(--button-text-color) !important;
    border-radius: var(--tp-radius-sm);
}

.btn:hover,
.button:hover,
button.submit:hover,
button[type="submit"]:hover,
.button.button-add-to-cart:hover,
.submit-auto-width:hover {
    background: var(--menu-hover-color) !important;
    border-color: var(--menu-hover-color) !important;
    color: var(--button-text-color) !important;
    transform: translateY(-1px);
}

.product-extra-link2 .button.button-add-to-cart.product-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    padding: 0 24px;
    white-space: nowrap;
}

.btn.btn-xs,
.button.btn-xs,
.btn.btn-sm,
.button.btn-sm {
    border-radius: var(--tp-radius-sm);
}

.slick-arrow,
.btn-close,
.close-style,
.qty-down,
.qty-up {
    transform: none;
}

/* Pages and sections */
.tp-home-slider {
    padding-top: 10px;
}

.tp-home-slider .home-slide-cover {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.tp-home-slider .hero-slider-1,
.tp-home-slider .single-hero-slider {
    border-radius: 24px;
}

.tp-home-slider .hero-slider-1 .single-hero-slider {
    min-height: 520px;
    background-size: cover;
    background-position: center right;
}

.tp-home-slider .hero-slider-1 .slider-content {
    padding-left: 90px;
    max-width: 680px;
}

.tp-home-slider .hero-slider-1 .slider-content h1 {
    color: var(--tp-heading);
    letter-spacing: 0;
}

.tp-home-slider .hero-slider-1 .slider-content p {
    color: var(--tp-muted);
}

.tp-home-slider .slider-arrow {
    left: 22px;
    right: 22px;
}

.tp-home-slider .slider-arrow .slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--tp-border);
    color: var(--tp-heading);
}

.tp-home-slider .dot-style-1 ul {
    bottom: 24px;
}

.archive-header,
.page-header .archive-header {
    background: var(--tp-page-header-bg) no-repeat center center;
    background-size: cover;
    border: 1px solid var(--tp-primary-border);
    border-radius: var(--tp-radius);
}

.section-title.style-1::after,
.product-tabs .section-title.style-2::after {
    background-color: var(--tp-primary);
}

.section-title a.show-all {
    color: var(--tp-primary);
}

/* Product cards */
.product-cart-wrap,
.card-2,
article.hover-up,
.contact-info,
.custom-modal .modal-dialog {
    border-color: var(--tp-border);
    border-radius: var(--tp-radius);
}

.product-cart-wrap:hover,
.card-2:hover,
article.hover-up:hover {
    border-color: var(--tp-primary-border);
    box-shadow: var(--tp-shadow-sm);
}

.product-cart-wrap .product-content-wrap h2 a,
.post-title a {
    color: var(--tp-heading) !important;
     font-size: 14px !important;
}

.product-cart-wrap .product-content-wrap h2 a:hover,
.post-title a:hover {
    color: var(--tp-primary) !important;
    font-size: 14px !important;
}

.product-price span,
.product-cart-wrap .product-content-wrap .product-price span,
.detail-info .product-price .current-price {
    color: var(--tp-primary) !important;
}

.product-price .old-price,
.product-cart-wrap .product-content-wrap .product-price span.old-price,
.detail-info .product-price .old-price {
    color: var(--tp-muted) !important;
}

.product-cart-wrap .product-card-bottom {
    align-items: center;
    gap: 12px;
}

.product-cart-wrap .product-content-wrap .product-price {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}

.product-cart-wrap .product-content-wrap .product-price span {
    display: block;
    font-size: 17px !important;
    line-height: 1.25;
    word-break: normal;
}

.product-cart-wrap .product-content-wrap .product-price span.old-price {
    display: block;
    margin-top: 6px;
    font-size: 14px !important;
    line-height: 1.2;
}

.product-cart-wrap .product-card-bottom .add-cart {
    flex: 0 0 auto;
}

.product-cart-wrap .product-card-bottom .add-cart .add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 48px;
    padding: 10px 16px;
    white-space: nowrap;
    line-height: 1.2;
}

.product-cart-wrap .product-card-bottom .add-cart .add i {
    margin-right: 6px !important;
}

@media (max-width: 575.98px) {
    .product-cart-wrap .product-content-wrap .product-price span {
        font-size: 18px !important;
    }

    .product-cart-wrap .product-content-wrap .product-price span.old-price {
        font-size: 13px !important;
    }

    .product-cart-wrap .product-card-bottom .add-cart .add {
        min-width: 96px;
        min-height: 44px;
        padding: 9px 12px;
    }
}

.product-cart-wrap .product-action-1 a.action-btn:hover,
.product-cart-wrap .product-action-1 button:hover {
    background-color: var(--tp-primary) !important;
    color: #fff !important;
}

.product-cart-wrap .product-badges span,
.pro-count {
    background-color: var(--tp-danger) !important;
}

/* Pagination and badges */
.pagination-area .page-item.active .page-link,
.page-item.active .page-link {
    background-color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
    color: #fff !important;
}

.pagination-area .page-link:hover,
.page-link:hover {
    color: #fff !important;
    background-color: var(--tp-primary-hover) !important;
    border-color: var(--tp-primary-hover) !important;
}

/* Footer */
footer.main {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
}

footer.main p,
footer.main li,
footer.main a,
footer.main span,
footer.main .font-lg,
footer.main .text-heading,
footer.main .contact-infor span {
    color: var(--footer-text-color) !important;
}

footer.main h1,
footer.main h2,
footer.main h3,
footer.main h4,
footer.main h5,
footer.main h6,
footer.main .widget-title {
    color: var(--footer-text-color) !important;
}

.newsletter-inner {
    background-color: var(--tp-primary-soft);
    border-radius: var(--tp-radius);
}

.banner-left-icon {
    border-color: var(--tp-border);
    border-radius: var(--tp-radius);
}

.banner-left-icon:hover {
    border-color: var(--tp-primary-border);
    box-shadow: var(--tp-shadow-sm);
}

.footer-list li a:hover,
.contact-infor strong {
    color: var(--tp-primary) !important;
}

footer.main .text-brand,
footer.main .newsletter-inner .text-brand {
    color: var(--tp-primary) !important;
}

.footer-social-list {
    list-style: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.footer-social-list li {
    margin: 0 0 12px;
    padding: 0 !important;
}

.footer-social-list li:hover {
    padding-left: 0 !important;
}

.footer-social-link {
    align-items: center;
    border-radius: var(--tp-radius-sm);
    display: inline-flex !important;
    gap: 10px;
    line-height: 1.2;
    padding: 2px 0;
}

.footer-social-link img,
footer.main .footer-social-link img {
    border-radius: 50%;
    display: inline-block !important;
    flex: 0 0 24px;
    height: 24px !important;
    max-height: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    min-width: 24px !important;
    object-fit: contain;
    width: 24px !important;
}

.footer-social-link span {
    color: var(--footer-text-color) !important;
    font-size: 15px;
}

.footer-social-link:hover span {
    color: var(--tp-primary) !important;
}

footer .mobile-social-icon a img {
    border-radius: 50%;
}

.footer-map iframe {
    width: 100%;
    min-height: 180px;
    border: 0;
    border-radius: var(--tp-radius-sm);
}

/* Floating contact buttons */
.floating-contact {
    align-items: center;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    right: 20px;
    z-index: 9999;
}

.floating-contact__btn {
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    display: inline-flex;
    height: 60px;
    justify-content: center;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    width: 60px;
}

.floating-contact__btn:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
    transform: scale(1.08);
}

.floating-contact__btn::before,
.floating-contact__pulse {
    animation: floating-contact-pulse 1.8s ease-out infinite;
    border-radius: 50%;
    content: "";
    inset: 0;
    opacity: 0.35;
    position: absolute;
    z-index: -1;
}

.floating-contact__btn::before {
    animation-delay: 0.45s;
}

.floating-contact__btn img {
    display: block;
    height: 32px;
    max-height: 32px;
    max-width: 32px;
    object-fit: contain;
    width: 32px;
}

.floating-contact__btn--facebook {
    background: #1877F2;
}

.floating-contact__btn--facebook::before,
.floating-contact__btn--facebook .floating-contact__pulse {
    background: rgba(24, 119, 242, 0.45);
}

.floating-contact__btn--zalo {
    background: #0068FF;
}

.floating-contact__btn--zalo::before,
.floating-contact__btn--zalo .floating-contact__pulse {
    background: rgba(0, 104, 255, 0.45);
}

.floating-contact__btn--zalo img {
    border-radius: 50%;
    height: 42px;
    max-height: 42px;
    max-width: 42px;
    width: 42px;
}

.floating-contact__btn--hotline {
    background: #E53935;
}

.floating-contact__btn--hotline::before,
.floating-contact__btn--hotline .floating-contact__pulse {
    background: rgba(229, 57, 53, 0.45);
}

@keyframes floating-contact-pulse {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@media (max-width: 767px) {
    .floating-contact {
        bottom: 14px;
        gap: 11px;
        right: 14px;
    }

    .floating-contact__btn {
        height: 50px;
        width: 50px;
    }

    .floating-contact__btn img {
        height: 27px;
        max-height: 27px;
        max-width: 27px;
        width: 27px;
    }

    .floating-contact__btn--zalo img {
        border-radius: 50%;
        height: 36px;
        max-height: 36px;
        max-width: 36px;
        width: 36px;
    }
}

/* Error pages */
.page-404 img {
    max-width: 420px;
    width: 100%;
}

.page-404 .search-form {
    max-width: 520px;
    margin: 0 auto;
}

.page-404 .search-form form {
    border-color: var(--tp-primary-border);
    box-shadow: var(--tp-shadow-sm);
}

/* PJAX */
main.main {
    transition: opacity 0.16s ease;
}

.pjax-loading main.main {
    cursor: progress;
}

/* Preloader */
.preloader img.jump {
    max-height: 48px;
    width: auto;
}

/* Home-specific legacy helpers */
.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--tp-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--tp-primary);
}

.hero-features {
    margin-top: 25px;
    max-width: 420px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--tp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 18px;
    color: var(--tp-primary);
    font-weight: 700;
}

.feature-item span {
    color: var(--tp-muted);
}

.categories-dropdown-wrap ul li a img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.popular-categories .card-2 figure img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .tp-home-slider {
        padding-top: 0;
    }

    .tp-home-slider .home-slide-cover,
    .tp-home-slider .hero-slider-1,
    .tp-home-slider .single-hero-slider {
        border-radius: 16px;
    }

    .tp-home-slider .hero-slider-1 .single-hero-slider {
        min-height: 360px;
        background-position: center;
    }

    .tp-home-slider .hero-slider-1 .slider-content {
        padding-left: 28px;
        padding-right: 28px;
        max-width: 100%;
    }

    .tp-home-slider .hero-slider-1 .single-hero-slider .display-2 {
        font-size: 34px;
        line-height: 1.15;
    }

    .hero-title {
        font-size: 36px;
    }

    .newsletter-content h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .form-subcriber {
        max-width: 100%;
    }

    .preloader img.jump {
        max-height: 38px;
    }
}
