/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* 
==========================================================================
   ZORINLAB THEME - Minimalist Tech & Decor
   Style: Elegant, Light (White & Blue), Glassmorphism, Modern Serif
========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Colors - Light White/Blue Theme */
    --color-bg: #ffffff;
    /* Crisp white background */
    --color-bg-light: #f8fafc;
    /* Very light slate-blue for cards/backgrounds */
    --color-text: #0f172a;
    /* Deep slate blue for high contrast text */
    --color-text-muted: #64748b;
    /* Muted slate for secondary text */
    --color-border: rgba(15, 23, 42, 0.08);
    /* Subtle border */
    --color-primary: #2563eb;
    /* Bright Royal Blue for accents/hover */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    /* Shadows & Transitions */
    --shadow-glass: 0 8px 32px rgba(15, 23, 42, 0.06);
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 500;
    /* Slightly bolder for light mode */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   FLOATING HEADER
   ========================================================================== */
.site-header-floating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.header-pill {
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    pointer-events: auto;
    /* Re-enable clicks on the pills */
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-glass);
}

/* Left Nav Pill */
.header-nav {
    padding: 12px 24px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
    font-family: var(--font-body);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text);
}

.menu-icon {
    font-size: 1.2rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-icon:hover {
    color: var(--color-primary);
}


/* Right Actions Pill */
.header-actions {
    padding: 12px 20px;
    gap: 20px;
}

.action-link {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.action-link:hover {
    color: var(--color-text);
}

.badge {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-text);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-elegant {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
    /* Subtle background for hero */
}

.hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.1));
}

/* Gradient fade at the bottom of the image to blend into the text */
.image-fade-bottom {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 250px;
    /* Increased height for smoother blend in light mode */
    background: linear-gradient(to top, var(--color-bg-light) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-heading {
    font-size: clamp(2rem, 4.5vw, 80px);
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    text-align: center;
    margin-top: -100px;
    /* Adjusted pulling since font is smaller */
    margin-bottom: 70px;
    z-index: 3;
    position: relative;
    max-width: 1200px;
    margin-inline: auto;
    color: var(--color-text);
}

.hero-bottom-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    z-index: 3;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hero-specs-pill {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-glass);
}

.hero-specs-pill span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.hero-specs-pill span i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.btn-pill-primary {
    background: var(--color-text);
    /* Very dark blue */
    border: 1px solid var(--color-text);
    color: #ffffff;
    padding: 16px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    font-weight: 500;
}

.btn-pill-primary:hover {
    background: var(--color-primary);
    /* Turns bright blue */
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   GENERAL UI COMPONENTS (Adapted for Light White/Blue theme)
   ========================================================================== */
.section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-text);
}

.grid-4,
.grid-3 {
    display: grid;
    gap: 30px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Product Cards for Light Theme */
.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    /* Soft large shadow */
    border-color: rgba(37, 99, 235, 0.15);
    /* Subtle blue tint on border */
}

.product-card img {
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-title a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
}

.product-title a:hover {
    color: var(--color-primary);
}

.product-price {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 8px;
}

.product-category {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-muted);
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
}

.btn-primary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Page Headers */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    margin-bottom: 60px;
}

.breadcrumb a {
    color: var(--color-text-muted);
    font-weight: 500;
}

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

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 80px 0 30px;
    background-color: var(--color-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Helper classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix product details spacing for unified header */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-bottom-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-heading {
        font-size: 45px;
        margin-top: -50px;
    }

    .hero-specs-pill {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header-floating {
        flex-direction: column;
        top: 15px;
        gap: 10px;
    }

    .hero-elegant {
        padding-top: 180px;
    }

    .hero-heading {
        font-size: 32px;
        margin-top: -30px;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ===================================================
   SỬA LỖI GIAO DIỆN WOOCOMMERCE (CHECKOUT & CART)
   =================================================== */

/* 1. Sửa lỗi chồng chéo SePay ở trang Hoàn tất đơn hàng */
.woocommerce-order {
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-order > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px;
}

/* 2. Ép khung bảng Giỏ hàng không được tràn viền đè nhau */
.woocommerce-cart form.woocommerce-cart-form {
    max-width: 98% !important; 
    overflow: visible !important;
}
.cart-sidebar {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
.cart-sidebar .cart_totals table {
    table-layout: fixed !important; 
    width: 100% !important;
}

/* 3. Xử lý rớt chữ và xuống dòng tự động */
.cart-sidebar .cart_totals table th, 
.cart-sidebar .cart_totals table td,
p.woocommerce-shipping-destination {
    white-space: normal !important;
    word-break: break-word !important;
}
.woocommerce-cart table.cart th.product-name,
.woocommerce-cart table.cart td.product-name {
    min-width: 120px !important;
    white-space: normal !important;
}

/* 4. Căn chỉnh đồng bộ Hàng - Cột hạng nặng */
body.woocommerce-cart table.shop_table th, 
body.woocommerce-cart table.shop_table td {
    vertical-align: middle !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}
body.woocommerce-cart table.shop_table th.product-name, 
body.woocommerce-cart table.shop_table td.product-name {
    text-align: left !important;
}
body.woocommerce-cart table.shop_table th.product-price, 
body.woocommerce-cart table.shop_table td.product-price,
body.woocommerce-cart table.shop_table th.product-quantity, 
body.woocommerce-cart table.shop_table td.product-quantity {
    text-align: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 90px !important;
}
body.woocommerce-cart table.shop_table th.product-subtotal, 
body.woocommerce-cart table.shop_table td.product-subtotal {
    text-align: right !important;
    justify-content: flex-end !important;
    padding-right: 15px !important;
}

/* 5. Định dạng lại Nút bấm Số lượng và Cỡ chữ Tiền */
.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-subtotal .amount {
    font-size: 16px !important; 
    font-weight: 600 !important;
    color: #333 !important;
}
.woocommerce .quantity {
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 auto !important;
}
.woocommerce .quantity .minus,
.woocommerce .quantity .plus {
    width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.woocommerce .quantity .minus { border-radius: 4px 0 0 4px !important; }
.woocommerce .quantity .plus { border-radius: 0 4px 4px 0 !important; }
.woocommerce .quantity input.qty {
    height: 35px !important;
    width: 40px !important;
    min-height: 35px !important;
    line-height: 35px !important;
    padding: 0 !important;
    text-align: center !important;
}
