/*
Theme Name: Shop2
Description: Child theme for Flatsome
Author: Son Phat
Template: flatsome
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1d71ab;
    --accent-color: #f1c40f;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body,
input,
button,
select,
textarea,
.nav>li>a,
h1,
h2,
h3,
h4,
h5,
h6,
.name a,
.price,
.amount,
.button,
.icon-box-text p,
.icon-box-text strong,
.sp-contact-btn {
    font-family: 'Inter', sans-serif !important;
}

/* Premium Card Style */
.premium-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.premium-card i,
.premium-card .icon-box-img {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* Step Process System */
.step-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(29, 113, 171, 0.3);
}

.step-item::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 45px;
    width: 2px;
    height: calc(100% - 10px);
    background: #e0e0e0;
}

.step-item:last-child::after {
    display: none;
}

/* Responsive Fixes */
@media screen and (max-width: 768px) {
    .premium-card {
        padding: 20px;
    }

    .step-item {
        padding-left: 50px;
    }
}

#mega-menu-wrap {
    background: #1d71ab;
}

.icon-box-text p a.sp-btn {
    padding: 14px 20px;
}

.woocommerce-Tabs-panel table tr th {
    text-transform: none !important;
}

/* ==========================================================
   WOOCOMMERCE PREMIUM STYLING (SYNC WITH HOMEPAGE)
   ========================================================== */
/* 1. Product Category / Archive Grid */
.products .product-small.box,
.product-small .box {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
}

.products .product-small.box:hover,
.product-small .box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent !important;
    z-index: 10 !important;
}

.product-small .box-image {
    background-color: #f9f9f9 !important;
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;
}

.product-small .box-text {
    padding: 20px 15px !important;
    text-align: center !important;
    background: #fff !important;
}

.product-small .box-text .category-excerpt,
.product-small .show-rating,
.product-small .tx-div,
.product-small .is-divider {
    display: none !important;
}

.product-small .title-wrapper {
    text-align: center !important;
}

.product-small .name {
    margin-bottom: 7px !important;
    min-height: 40px !important;
    text-align: center !important;
}

.sp-product-title {
    margin-bottom: 4px !important;
}

.sp-product-price {
    margin-bottom: 5px !important;
}

.product-small .name a {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a2b3c;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-right: 0px;
}

.product-small .box:hover .name a {
    color: #1d71ab !important;
}

.product-small .price-wrapper {
    margin-bottom: 5px !important;
    text-align: center !important;

}

.product-small .price-wrapper .price {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    margin-top: 0px !important;
}

.product-small .price-wrapper .price .amount {
    color: #111;
    font-weight: 700;
    white-space: nowrap;
}

.product-small .price-wrapper del .amount {
    font-size: 0.85rem !important;
    color: #999 !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
    text-decoration: line-through !important;
}

.product-small .price-wrapper ins {
    text-decoration: none !important;
}

.product-small .add-to-cart-button {
    text-align: center !important;
    margin-top: auto !important;
}

.product-small .add-to-cart-button .button {
    display: inline-block;
    padding: 0px 13px;
    background: #1d71ab !important;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 5px !important;
}

.product-small .add-to-cart-button .button:hover {
    background-color: #145a8a !important;
}

/* SALE BADGE */
.badge-container {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.badge-container .badge-inner.on-sale {
    background-color: #e74c3c !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    color: transparent !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    box-shadow: none !important;
    border: none !important;
}

.badge-container .badge-inner.on-sale::after {
    content: "Giảm giá" !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    white-space: nowrap !important;
}

/* 2. Single Product Page */
.single-product .product-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

span.amount {
    color: #d23327 !important;
}

.single-product .product-title {
    font-weight: 500;
    color: #0b1a2c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.single-product .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1c40f;
    margin-bottom: 20px;
}

.single-product form.cart {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e5e5e5;
}

.single-product .cart button.button {
    background: #1d71ab;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(29, 113, 171, 0.3);
    transition: all 0.3s ease;
    padding: 10px 25px;
}

.single-product .cart button.button:hover {
    background: #145a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 113, 171, 0.4);
}

.single-product .woocommerce-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
    padding: 30px;
    margin-top: 40px;
}

/* Contact Price Box on Single Product */
.sp-contact-price-box {
    background: #fdfbf1;
    border-left: 4px solid #f1c40f;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: inline-block;
    max-width: 100%;
}

.sp-contact-price-box .sp-contact-label {
    display: block;
    color: #d23327;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.sp-contact-price-box .sp-contact-desc {
    color: #6b7b8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sp-contact-price-box .sp-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d71ab;
    color: #fff !important;
    padding: 5px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(29, 113, 171, 0.3);
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.sp-contact-btn img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: -2px 9px 0 0 !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

.sp-contact-price-box .sp-contact-btn:hover {
    background: #145a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 113, 171, 0.4);
}

/* Ẩn chữ Liên Hệ nhỏ ở trang Single vì để nhường chỗ cho khối bự */
.single-product .summary .sp-empty-price {
    display: none !important;
}

.nav-spacing-xlarge>li {
    margin: 0 10px;
}

.nav>li>a {
    text-transform: uppercase;
}

.sp-product-info .sp-product-btn {
    display: inline-block;
    padding: 5px 15px;
    background: #1d71ab;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-btn-outline {
    padding: 5px 20px !important;
    border: 1px solid #1d71ab !important;
    font-size: 0.85rem !important;
}

#mega_menu li a {
    padding: 9.9px 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Xóa phần Absolute Footer (Webdemo.com) */
.absolute-footer {
    display: none !important;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ==========================================================
   SON PHAT PREMIUM GLOBAL COMPONENTS (Buttons & CTA)
   ========================================================== */

/* 1. Global Buttons Styling */
.sp-btn,
.sp-btn-outline,
.sp-btn-zalo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.sp-btn {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #1a1a1a !important;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.35);
}

.sp-btn-zalo {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.35);
}

.sp-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    /* color: #fff !important; */
    backdrop-filter: blur(10px);
}

.sp-btn:hover,
.sp-btn-zalo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.sp-btn-outline:hover {
    background: #fff !important;
    color: #1d71ab !important;
    border-color: #fff !important;
    transform: translateY(-5px);
}

/* Shine Animation Effect */
.sp-btn::after,
.sp-btn-zalo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
}

.sp-btn:hover::after,
.sp-btn-zalo:hover::after {
    left: 100%;
}

/* 2. Standardized CTA Section */
.sp-premium-cta {
    background: linear-gradient(135deg, #1d71ab 0%, #0f4c75 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-premium-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(241, 196, 15, 0.1);
}

.sp-premium-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.sp-premium-cta h2 {
    color: #fff !important;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.sp-premium-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.sp-premium-cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .sp-premium-cta h2 {
        font-size: 1.8rem;
    }

    .sp-premium-cta p {
        font-size: 1.05rem;
    }

    .sp-btn,
    .sp-btn-zalo,
    .sp-btn-outline {
        width: 100%;
        max-width: 350px;
    }

    #masthead {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    #main {
        background-color: #fff;
        position: relative;
        margin-top: 70px;
    }

    #masthead .header-inner {
        background: #03A9F4;
    }

    #masthead .header-inner .icon-menu {
        color: #ffffff;
    }

    .sp-section-title h2 {
        font-size: 1.4rem !important;
    }

    .sp-service-text h3 {
        font-size: 1.4rem !important;
    }

}

/* Product Commitments Redesign */
#product-sidebar #text-2,
.product-sidebar #text-2 {
    display: none !important;
}

.sp-product-commitments {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sp-commit-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 15px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sp-commit-card:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #1d71ab;
    transform: translateY(-2px);
}

.sp-commit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: #1d71ab;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-commit-icon svg {
    width: 100%;
    height: 100%;
}

.sp-commit-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1a2b3c;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {

    .ban-chay-nhat-tuan .post-item,
    .footer-section .gioi-thieu {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .sp-commit-card {
        padding: 15px 20px;
    }

    .sp-commit-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .sp-commit-text {
        font-size: 0.8rem;
    }
}

/* Khung thông tin liên hệ [sp_contact_info] */
.sp-contact-info-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1d71ab;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sp-contact-header h3 {
    color: #1d71ab;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-contact-header p {
    color: #64748b;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sp-company-name {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    display: inline-block;
}

.sp-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-contact-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sp-contact-list li strong {
    color: #475569;
    margin-right: 8px;
    white-space: nowrap;
}

.sp-icon {
    margin-right: 12px;
    width: 20px;
    display: inline-block;
    text-align: center;
}

.sp-highlight {
    color: #1d71ab !important;
    font-weight: 800;
    font-size: 1.1rem;
}

.sp-contact-list li a {
    color: #1d71ab;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-contact-list li a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .sp-contact-info-box {
        padding: 20px;
    }
    .sp-contact-header h3 {
        font-size: 1.2rem;
    }
    .sp-contact-list li {
        font-size: 0.9rem;
    }
}