/* Base styles — Trung Thu 2026 palette */
:root {
    /* Đêm trăng & đèn lồng */
    --tt-crimson: #9b1c31;
    --tt-crimson-dark: #6d1222;
    --tt-crimson-light: #c41e3a;
    --tt-gold: #d4a017;
    --tt-gold-light: #f0c14b;
    --tt-gold-pale: #fef3d8;
    --tt-gold-soft: #fdecc8;
    --tt-gold-border: #e8c872;
    --tt-amber: #b8860b;
    --tt-lantern: #d4380d;
    --tt-night: #1a1520;
    --tt-night-mid: #2a1f35;
    --tt-cream: #fff8f0;
    --tt-cream-warm: #fdf5e8;
    --tt-text: #2d1810;
    --tt-text-muted: #4a362e;
    --tt-text-subtle: #5c483c;
    --tt-link: #8b1528;
    --tt-link-hover: #6d1222;
    --tt-shadow: rgba(109, 18, 34, 0.18);
    --tt-border: rgba(232, 200, 114, 0.45);
    --tt-surface: #ffffff;
    --tt-radius-md: 14px;
    --tt-radius-sm: 10px;
    --tt-shadow-card: 0 8px 24px rgba(109, 18, 34, 0.07);


    --primary-color: var(--tt-gold);
    --secondary-color: var(--tt-night-mid);
    --accent-color: var(--tt-crimson);
    --light-color: var(--tt-cream);
    --dark-color: var(--tt-night);

    --tt-gradient-header: linear-gradient(125deg, var(--tt-night-mid) 0%, var(--tt-crimson-dark) 38%, var(--tt-crimson) 68%, var(--tt-gold) 100%);
    --tt-gradient-promo: linear-gradient(135deg, var(--tt-crimson) 0%, var(--tt-lantern) 45%, var(--tt-gold) 100%);
    --tt-gradient-gold-box: linear-gradient(135deg, var(--tt-gold-pale) 0%, var(--tt-gold-soft) 100%);

    --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--tt-text);
    background-color: var(--tt-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles — chỉ header site (body > header), không áp blog-post-header */
body > header {
    background-color: var(--tt-gold);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

body > header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

body > header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

body > header nav {
    margin-top: 15px;
}

body > header a.back-btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    border: 2px solid white;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

body > header a.back-btn:hover {
    background-color: white;
    color: var(--tt-gold);
}

.pd-top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pd-top-nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pd-top-nav-link:hover {
    background: #fff;
    color: var(--tt-gold);
}

body > header a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.product-price {
    font-weight: 600;
    color: var(--tt-gold);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    white-space: pre-line;
}

.view-details {
    display: inline-block;
    background-color: var(--tt-gold);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: var(--tt-amber);
}

/* Product detail styles */
.product-detail {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.product-detail h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.product-info-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .product-info-detail {
        grid-template-columns: 1fr;
    }
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
    overflow: hidden;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tt-gold);
    margin-bottom: 20px;
}

.product-info .description {
    white-space: pre-line;
}

.buy-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shopee-button {
    background-color: #ee4d2d;
    color: white;
}

.shopee-button:hover {
    background-color: #d43c20;
}

.zalo-button {
    background-color: #0068ff;
    color: white;
}

.zalo-button:hover {
    background-color: #0052cc;
}

/* Image Gallery Styles */
.gallery-title {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
}

.product-images {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.product-video {
    margin-bottom: 30px;
}

.video-player {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 100%);
    max-height: 92vh;
}

.lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 100%);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Blog specific styles */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-content h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tt-gold);
}

.blog-content h3 {
    color: #444;
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
}

.blog-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-content ul, 
.blog-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-content blockquote {
    border-left: 4px solid var(--tt-gold);
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #555;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-info-detail {
        grid-template-columns: 1fr;
    }
    
    .product-images {
        height: 300px;
    }
}

/* Cải thiện gallery indicators */
.gallery-indicators {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 120px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.gallery-indicators::-webkit-scrollbar {
    height: 8px;
}

.gallery-indicators::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-indicators::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.gallery-indicators::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.gallery-indicators img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
    flex-shrink: 0;
    position: relative;
}

.gallery-indicators img:hover {
    transform: scale(1.05);
    border-color: #3498db;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gallery-indicators img.active {
    border-color: #e74c3c;
    opacity: 1;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
}

.gallery-indicators img.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Thêm counter cho số lượng ảnh */
.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Cải thiện product image display */
.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-image:hover {
    transform: scale(1.02);
}

/* Thumbnail previews under main gallery image */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.gallery-indicators img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.gallery-indicators img.active {
    border-color: var(--primary-color);
}

/* Thumbnail strip under each product card on homepage */
.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 8px 0;
}

.product-thumbnails img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Loading animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery container improvements */
.gallery-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Responsive gallery indicators */
@media (max-width: 768px) {
    .gallery-indicators {
        flex-wrap: wrap;
        max-height: 120px;
        overflow-y: auto;
    }
    
    .gallery-indicators img {
        width: 45px;
        height: 45px;
        margin: 2px;
    }
}

/* Thumb container styling */
.thumb-container {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.thumb-container .thumb-number {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumb-container:hover .thumb-number {
    opacity: 1;
}

/* Responsive design cho mobile */
@media (max-width: 768px) {
    .gallery-indicators {
        padding: 8px;
        max-height: 100px;
    }
    
    .gallery-indicators img {
        width: 60px;
        height: 60px;
        margin: 0 4px;
    }
    
    .gallery-counter {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .thumb-number {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }
}

/* Loading state cho gallery */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.gallery-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Season Badge Styles */
.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #f3f4f6;
}

.season-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thumb-video-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 6px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.season-badge.season-trung-thu {
    background: linear-gradient(135deg, var(--tt-gold), var(--tt-amber));
}

.season-badge.season-tết {
    background: linear-gradient(135deg, var(--tt-crimson-light), var(--tt-crimson-dark));
}

/* Product Card Season Styling */
.product-card.season-trung-thu {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-card.season-trung-thu:hover {
    border-color: var(--tt-gold);
}

.product-card.season-tết {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-card.season-tết:hover {
    border-color: var(--tt-crimson-light);
}

/* Season-specific product info styling */
.product-card.season-trung-thu .product-price {
    color: var(--tt-crimson-dark);
}

.product-card.season-tết .product-price {
    color: var(--tt-crimson);
}

/* Responsive season badges */
@media (max-width: 768px) {
    .season-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
}

/* Animation for season badges */
.season-badge {
    animation: fadeInScale 0.3s ease-in-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pagination styles */
.pagination-container {
    margin-top: 20px;
}
.pagination-btn {
    display: inline-block;
    background: #f3f4f6;
    color: #333;
    border: 1px solid var(--tt-gold);
    border-radius: 4px;
    padding: 6px 14px;
    margin: 0 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pagination-btn.active, .pagination-btn:hover {
    background: var(--tt-gold);
    color: #fff;
    border-color: var(--tt-gold);
} 

/* Tailwind replacement utilities used in HTML */
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-12 { padding-top: 3rem; }
.pb-8 { padding-bottom: 2rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.min-h-screen { min-height: 100vh; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-700 { color: #374151; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.border-t { border-top: 1px solid; }
.border-gray-600 { border-color: #4b5563; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-orange-50 { --tw-gradient-from: var(--tt-gold-pale); --tw-gradient-to: rgb(254 243 216 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-yellow-50 { --tw-gradient-to: var(--tt-cream-warm); }
.from-red-50 { --tw-gradient-from: #fce8ec; --tw-gradient-to: rgb(252 232 236 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-pink-50 { --tw-gradient-to: #fdf2f4; }
.from-gray-800 { --tw-gradient-from: var(--tt-night-mid); --tw-gradient-to: rgb(42 31 53 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-gray-900 { --tw-gradient-to: var(--tt-night); }
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-600 { background-color: #16a34a; }
.text-orange-800 { color: var(--tt-crimson-dark); }
.text-orange-700 { color: var(--tt-crimson); }
.text-red-800 { color: var(--tt-crimson-dark); }
.text-red-700 { color: var(--tt-crimson); }
.text-orange-500 { color: var(--tt-gold); }
.text-red-500 { color: var(--tt-crimson-light); }
.hover\:text-orange-400:hover { color: var(--tt-gold-light); }
.hover\:text-orange-300:hover { color: var(--tt-gold-light); }
.bg-orange-400 { background-color: var(--tt-gold); }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:bg-gray-700\/50:hover { background-color: rgba(55, 65, 81, 0.5); }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.transform { transform: translateZ(0); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.pointer-events-none { pointer-events: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bg-messenger { background-color: #0084ff; }
.hover-bg-messenger:hover { background-color: #0066cc; }
.bg-blue-400\/40 { background-color: rgba(96, 165, 250, 0.4); }

/* --- UI Refresh (global) --- */
body {
    color: var(--tt-text);
    background:
        radial-gradient(ellipse at 92% 0%, rgba(212, 160, 23, 0.14), transparent 42%),
        radial-gradient(ellipse at 8% 0%, rgba(155, 28, 49, 0.1), transparent 38%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 160, 23, 0.06), transparent 50%),
        var(--tt-cream);
}

body > header {
    background: var(--tt-gradient-header);
    box-shadow: 0 12px 32px var(--tt-shadow);
    padding: 26px 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    position: relative;
    overflow: hidden;
}

body > header::before {
    content: '';
    position: absolute;
    top: -18px;
    right: 10%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #fff9e6 0%, #f0d78c 52%, transparent 54%);
    opacity: 0.4;
    pointer-events: none;
}

body > header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 75% 35%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 55% 18%, rgba(240, 193, 75, 0.6), transparent),
        radial-gradient(1px 1px at 88% 55%, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
    opacity: 0.7;
}

header.header-compact {
    padding: 14px 0;
}

.header-compact-inner,
.header-compact-brand,
.header-compact-nav {
    position: relative;
    z-index: 1;
}

body > header a.back-btn:hover {
    background-color: white;
    color: var(--tt-crimson);
}

.header-compact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    text-align: left;
}

.header-compact-brand h1 {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.header-compact-tagline {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.92;
}

.header-compact-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-nav-zalo {
    background: #0068ff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body > header h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

body > header p {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.96;
}

body > header nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
    margin: 0 4px;
    transition: all 0.25s ease;
}

body > header nav a:hover {
    color: var(--tt-crimson-dark);
    background: #fff;
    border-color: #fff;
}

main.container {
    padding-top: 8px;
    padding-bottom: 8px;
}

main.container > section:not(.pd-layout):not(.community-block) {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.55);
}

.pd-main > section,
.pd-main .pd-layout {
    box-shadow: none;
    border: none;
}

.product-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.product-card a,
.product-card-link {
    color: inherit;
    text-decoration: none;
}

.product-info h3 {
    font-size: 1.06rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #111827;
}

.product-short-desc {
    color: #4b5563;
    line-height: 1.55;
}

.product-thumbnails {
    justify-content: flex-start;
    padding: 0 12px;
    margin: 10px 0 0;
}

.product-thumbnails img {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.pagination-btn {
    min-width: 40px;
    border-radius: 999px;
    font-weight: 600;
}

.product-detail {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    padding: 24px;
}

.gallery-container {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.gallery-indicators {
    border: 1px solid #e5e7eb;
}

.buy-buttons {
    gap: 12px;
}

.buy-button {
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

/* ========== Blog (Jekyll) — palette đồng bộ Trung Thu ========== */
.blog-main {
    padding-top: 20px;
    padding-bottom: 40px;
}

.blog-content {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
}

body.blog-index-page .blog-main {
    padding-top: 16px;
}

body.blog-index-page .blog-content {
    max-width: 1080px;
}

.blog-content:has(.blog-post-with-catalog) {
    max-width: 1200px;
}

.blog-post-catalog {
    margin: 28px 0 8px;
}

.blog-post-catalog .catalog-section-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.blog-post-catalog .catalog-section-subtitle {
    margin: 0 0 18px;
    color: var(--tt-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-post-with-catalog .blog-post-body {
    margin-bottom: 0;
}

.blog-breadcrumb {
    margin: 0 0 20px;
    font-size: 0.84rem;
    color: var(--tt-text-subtle);
    line-height: 1.5;
}

.blog-breadcrumb a {
    color: var(--tt-link);
    text-decoration: none;
    font-weight: 600;
}

.blog-breadcrumb a:hover {
    color: var(--tt-link-hover);
    text-decoration: underline;
}

.blog-breadcrumb-sep {
    margin: 0 6px;
    color: rgba(155, 28, 49, 0.25);
}

.header-brand-link {
    color: inherit;
    text-decoration: none;
}

.header-brand-link:hover {
    opacity: 0.92;
}

.blog-index-lead {
    margin: 0 0 28px;
    padding: 14px 18px;
    color: var(--tt-text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 42rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(232, 200, 114, 0.45);
    border-radius: 12px;
    border-left: 4px solid var(--tt-crimson);
}

.blog-index-lead a {
    color: var(--tt-link);
    font-weight: 600;
}

.blog-index .blog-card-tags {
    display: none;
}

/* Header blog — gọn khi đọc bài */
.header-compact--article {
    padding: 10px 0;
}

.header-compact-brand--article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.header-article-back {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.header-article-back:hover {
    color: #fff;
    text-decoration: underline;
}

.header-brand-short {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.header-brand-short:hover {
    opacity: 0.9;
}

.header-nav-active {
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

body.blog-article-page .blog-main {
    padding-top: 12px;
}

body.blog-index-page .blog-index-lead strong {
    color: var(--tt-crimson-dark);
}

body.blog-index-page .blog-main,
body.blog-article-page .blog-main {
    background: transparent;
}

body.blog-index-page .header-compact-brand h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(232, 200, 114, 0.45);
    border-radius: 14px;
    padding: 0 0 18px;
    box-shadow: 0 8px 22px rgba(109, 18, 34, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.blog-card-media {
    display: block;
    margin: 0 0 4px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tt-gold-pale);
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.03);
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--tt-gold);
    box-shadow: 0 14px 28px rgba(109, 18, 34, 0.1);
}

.blog-card-date,
.blog-card-title,
.blog-card-tags,
.blog-card-read {
    padding-left: 20px;
    padding-right: 20px;
}

.blog-card-date {
    font-size: 0.82rem;
    color: var(--tt-text-subtle);
    font-weight: 600;
    padding-top: 14px;
}

.blog-card-title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--tt-text);
    text-decoration: none;
    font-weight: 700;
}

.blog-card-title a:hover {
    color: var(--tt-link);
}

.blog-card-tags {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: lowercase;
    background: var(--tt-gold-pale);
    color: var(--tt-crimson);
    padding: 3px 8px;
    border-radius: 6px;
}

.blog-card-read {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--tt-crimson-light);
    text-decoration: none;
}

.blog-card-read:hover {
    text-decoration: underline;
}

.blog-index-footer {
    margin-top: 32px;
    text-align: center;
}

.blog-index-footer a {
    color: var(--tt-crimson-light);
    font-weight: 600;
    text-decoration: none;
}

.home-blog-section {
    margin: 48px 0 40px;
    padding-top: 8px;
}

.home-blog-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.home-section-title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--tt-text);
    line-height: 1.3;
}

.home-blog-all {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tt-crimson-light);
    text-decoration: none;
}

.home-blog-all:hover {
    text-decoration: underline;
}

.home-blog-section .blog-card-title {
    font-size: 1.05rem;
}

.blog-post {
    background: #fff;
    border: 1px solid rgba(232, 200, 114, 0.45);
    border-radius: 16px;
    padding: 28px 32px 36px;
    box-shadow: 0 8px 28px rgba(109, 18, 34, 0.07);
}

.blog-post-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(232, 200, 114, 0.4);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-top: 0;
    text-align: left;
    color: inherit;
    overflow: visible;
    position: static;
}

.blog-post-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    line-height: 1.3;
    font-weight: 800;
    color: var(--tt-text);
    letter-spacing: -0.02em;
    max-width: 40rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    color: var(--tt-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.blog-meta-topic {
    color: var(--tt-crimson-dark);
    font-weight: 600;
}

.blog-meta-cats {
    display: none;
}

.blog-post-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tt-text-muted);
}

.blog-post-body h2 {
    color: var(--tt-text);
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--tt-gold-border);
}

.blog-post-body h3 {
    color: var(--tt-crimson-dark);
    font-size: 1.12rem;
    margin: 1.5rem 0 0.5rem;
}

.blog-post-body p {
    margin-bottom: 1rem;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
    box-shadow: 0 8px 20px rgba(109, 18, 34, 0.1);
    border: 1px solid rgba(232, 200, 114, 0.35);
}

.blog-post-body a {
    color: var(--tt-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-body a:hover {
    color: var(--tt-link-hover);
}

.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.92rem;
}

.blog-post-body th,
.blog-post-body td {
    border: 1px solid rgba(232, 200, 114, 0.45);
    padding: 10px 12px;
    text-align: left;
}

.blog-post-body th {
    background: var(--tt-gold-pale);
    font-weight: 700;
    color: var(--tt-crimson-dark);
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 1.25rem 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.4rem;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--tt-gold-light);
    padding: 12px 16px;
    margin: 1.25rem 0;
    background: var(--tt-gold-pale);
    color: var(--tt-text-muted);
    border-radius: 0 8px 8px 0;
}

.blog-post-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 200, 114, 0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.blog-back-link {
    color: var(--tt-link);
    font-weight: 700;
    text-decoration: none;
}

.blog-back-link:hover {
    color: var(--tt-link-hover);
    text-decoration: underline;
}

.blog-back-link-secondary {
    color: var(--tt-text-muted);
    font-weight: 600;
}

.blog-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    color: var(--tt-text);
}

.blog-content p,
.blog-content li {
    color: #334155;
}

footer {
    margin-top: 36px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

footer a {
    text-decoration: none;
}

.fixed.bottom-6.right-6 .shake-animation > a {
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

@media (max-width: 768px) {
    body > header {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .product-detail,
    .blog-content {
        padding: 16px;
    }

    .product-grid {
        gap: 14px;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .catalog-nav {
        gap: 8px;
    }

    .catalog-nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* --- Sales / conversion UI --- */
.cta-banner {
    border-radius: 16px;
    overflow: hidden;
    background: var(--tt-gradient-promo);
    box-shadow: 0 12px 28px var(--tt-shadow);
}

.cta-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    color: #fff;
}

.cta-banner-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-banner-text {
    margin: 0;
    opacity: 0.95;
    max-width: 520px;
    line-height: 1.55;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn-zalo {
    background: #0068ff;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.35);
}

.cta-btn-call {
    background: #fff;
    color: var(--tt-crimson);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.trust-block {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 20px 24px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 8px;
}

.trust-item strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}

.trust-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.45;
}

.catalog-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.catalog-nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.catalog-nav-link:hover {
    background: var(--tt-gold-pale);
    border-color: var(--tt-gold-light);
    color: var(--tt-crimson);
}

.catalog-section {
    margin-bottom: 48px;
    scroll-margin-top: 16px;
}

.catalog-section-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.catalog-section-subtitle {
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: block;
}

.product-posted-date {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0 6px;
    line-height: 1.3;
}

.pd-posted-meta {
    margin: 0 0 10px;
}

.pd-posted-meta .product-posted-date {
    font-size: 0.9rem;
    margin: 0;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

.product-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.2;
}

.badge-new {
    background: var(--tt-crimson);
}

.badge-4 {
    background: var(--tt-crimson-dark);
}

.badge-6 {
    background: var(--tt-amber);
}

.badge-hard {
    background: #059669;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #f3f4f6;
}

.product-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 14px;
    margin-top: auto;
}

.btn-detail,
.btn-zalo-card {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-detail {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-detail:hover {
    background: #e5e7eb;
}

.btn-zalo-card {
    background: #0068ff;
    color: #fff;
}

.btn-zalo-card:hover {
    background: #0052cc;
}

.btn-shopee-card {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    background: #ee4d2d;
    color: #fff;
}

.btn-shopee-card:hover {
    background: #d43c20;
}

/* ========== Landing 18 mẫu hot 2026 ========== */
.hot-18-main {
    padding-top: 12px;
    padding-bottom: 40px;
}

.hot-18-hero {
    margin-bottom: 20px;
}

.hot-18-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.hot-18-lead {
    margin: 0 0 14px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155;
}

.hot-18-lead strong {
    color: #0f172a;
}

.hot-18-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 0.92rem;
    color: #64748b;
}

.hot-18-trust li::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: 700;
}

.hot-18-section-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #0f172a;
}

.hot-18-section-subtitle {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hot-18-guide {
    margin: 36px 0 28px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.hot-18-guide h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: #0f172a;
}

.hot-18-guide table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hot-18-guide th,
.hot-18-guide td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.hot-18-guide th {
    background: #f8fafc;
    font-weight: 600;
}

.hot-18-faq {
    margin: 28px 0;
}

.hot-18-faq h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.hot-18-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.hot-18-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.hot-18-faq p {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.55;
}

.hot-18-cta {
    margin-top: 32px;
}

.product-trust-list {
    list-style: none;
    padding: 14px 16px;
    margin: 16px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
}

.product-trust-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-trust-list li:last-child {
    margin-bottom: 0;
}

.product-trust-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.community-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.community-block-compact {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 16px 18px;
}

.community-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.community-block-compact .community-title {
    font-size: 1.1rem;
}

.community-desc {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.community-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.community-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.community-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.community-card-name {
    font-size: 1rem;
    font-weight: 600;
}

.community-fb {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.community-fb:hover {
    border-color: #93c5fd;
}

.community-zalo {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.community-zalo:hover {
    border-color: #7dd3fc;
}

.footer-social-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* ========== Homepage: ưu tiên ảnh sản phẩm ========== */
.home-main {
    padding-top: 12px;
}

.home-toolbar {
    margin-bottom: 10px;
}

.home-hot-promo--slim {
    margin-bottom: 8px;
    padding: 10px 14px;
}

.home-promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.home-promo-row .home-hot-promo--slim {
    margin-bottom: 0;
}

.home-hot-promo--cap {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.home-hot-promo--cap .home-hot-promo-badge {
    background: #ea580c;
}

@media (max-width: 640px) {
    .home-promo-row {
        grid-template-columns: 1fr;
    }
}

.home-hot-promo--slim .home-hot-promo-text {
    font-size: 0.9rem;
}

.home-aux-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.home-aux-strip--solo {
    grid-template-columns: 1fr;
}

.home-aux-item {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--tt-gold-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.88rem;
}

.home-aux-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--tt-link);
    list-style: none;
    line-height: 1.35;
}

.home-aux-item summary::-webkit-details-marker {
    display: none;
}

.home-aux-item[open] summary {
    margin-bottom: 8px;
}

.home-aux-item.pack-dim-ref {
    margin: 0;
}

.home-aux-item .pack-dim-ref-list {
    margin-top: 8px;
    font-size: 0.82rem;
}

.catalog-nav--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    padding: 0;
}

.home-toolbar .catalog-nav--compact {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 -12px 8px;
    padding: 8px 12px;
    background: rgba(255, 248, 240, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(232, 200, 114, 0.35);
}

.catalog-nav-label {
    font-size: 0.82rem;
    color: var(--tt-text-muted);
    font-weight: 600;
    margin-right: 2px;
}

.catalog-nav--compact .catalog-nav-link {
    padding: 5px 10px;
    font-size: 0.82rem;
}

.home-rfq-trending-slot {
    margin: 20px 0 8px;
}

@media (max-width: 640px) {
    .home-aux-strip {
        grid-template-columns: 1fr;
    }

    .catalog-nav--compact {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .catalog-nav--compact::-webkit-scrollbar {
        display: none;
    }

    .catalog-nav--compact .catalog-nav-link {
        flex-shrink: 0;
    }
}

.home-hot-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--tt-gold-pale) 0%, var(--tt-gold-soft) 100%);
    border: 1px solid var(--tt-gold-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--tt-crimson-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hot-promo:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
}

.home-hot-promo-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tt-crimson-light);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-hot-promo-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--tt-text);
}

.home-hot-promo-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tt-crimson-light);
}

.header-nav-hot {
    font-weight: 700;
}

.catalog-nav-link-hot {
    background: var(--tt-gold-pale);
    border-color: var(--tt-gold-light);
    color: var(--tt-crimson);
    font-weight: 600;
}

.catalog-nav-link-hot:hover {
    background: var(--tt-gold-soft);
    border-color: var(--tt-lantern);
    color: var(--tt-crimson-dark);
}

.home-toolbar-lead {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.45;
}

.catalog-nav-inline {
    margin-bottom: 0;
    justify-content: flex-start;
}

.home-catalog {
    margin-top: 4px;
}

.catalog-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

.catalog-section-skeleton {
    min-height: 240px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: catalog-shimmer 1.4s ease-in-out infinite;
}

@keyframes catalog-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.home-catalog .catalog-section:first-child {
    margin-top: 0;
}

.home-catalog .catalog-section-title {
    font-size: 1.2rem;
}

.home-after-catalog {
    margin-top: 40px;
    padding-top: 8px;
}

.home-cta-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tt-gold-pale), var(--tt-gold-soft));
    border: 1px solid var(--tt-gold-border);
    border-radius: 14px;
    margin-bottom: 16px;
}

.home-cta-compact p {
    margin: 0;
    font-weight: 600;
    color: var(--tt-crimson-dark);
}

.home-cta-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-cta-compact .cta-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.home-cta-compact--secondary {
    background: #fff;
    border-color: #e2e8f0;
}

.home-cta-compact--secondary p {
    color: var(--tt-text-muted);
    font-weight: 600;
}

.home-trust-strip {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0;
    margin: 0 0 20px;
}

.home-trust-strip li {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 999px;
}

.home-more-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    margin-top: 8px;
}

.home-more-info summary {
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    padding: 14px 0;
    list-style-position: inside;
}

.home-more-info-body {
    padding-bottom: 16px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
}

.home-more-info-body p {
    margin: 0 0 10px;
}

#community-section-home .community-block {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .home-toolbar-lead {
        text-align: center;
    }

    .home-cta-compact {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== Product detail page (product.html) ========== */
.pd-body {
    background: var(--tt-cream-warm);
}

.pd-main {
    padding-top: 8px;
    padding-bottom: 100px;
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.pd-breadcrumb a {
    color: var(--tt-crimson-light);
    font-weight: 600;
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

.pd-breadcrumb-sep {
    color: #cbd5e1;
}

#product-breadcrumb-name {
    color: #334155;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-layout.product-info-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    grid-template-areas:
        "gallery buy"
        "details buy";
    gap: 24px 28px;
    align-items: start;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 32px;
}

.pd-gallery-col {
    grid-area: gallery;
}

.pd-buy-col {
    grid-area: buy;
}

.pd-details-section {
    grid-area: details;
    margin-top: 0;
    position: relative;
}

.pd-details-title {
    margin: 0 0 14px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--tt-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tt-gold-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-details-title::before {
    content: '';
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--tt-crimson) 0%, var(--tt-gold) 100%);
    flex-shrink: 0;
}

.pd-desc-panel {
    background: #fff;
    border: 1px solid rgba(232, 200, 114, 0.45);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(109, 18, 34, 0.06);
    max-width: none;
}

.pd-buy-col.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: static;
    top: auto;
    align-self: start;
}

.pd-gallery-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(232, 200, 114, 0.4);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(109, 18, 34, 0.07);
}

.pd-viewer.gallery-container {
    position: relative;
    background: linear-gradient(180deg, var(--tt-cream-warm) 0%, #fff 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid rgba(232, 200, 114, 0.35);
    overflow: hidden;
    contain: layout style;
}

.pd-viewer .product-images,
.pd-viewer-stage {
    width: 100%;
    height: min(52vh, 480px);
    min-height: 280px;
    margin-bottom: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.pd-viewer .pd-main-image {
    transition: opacity 0.2s ease;
}

.pd-viewer .pd-main-image.is-loading {
    opacity: 0.45;
}

.pd-viewer .product-images img,
.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.pd-viewer .product-images .video-player,
.pd-viewer-stage .video-player {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

.pd-viewer .gallery-counter {
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.pd-viewer .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.pd-viewer .gallery-nav:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.pd-viewer .gallery-nav:active {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.pd-viewer .gallery-nav[hidden] {
    display: none;
}

.pd-viewer .prev-btn {
    left: 12px;
}

.pd-viewer .next-btn {
    right: 12px;
}

.pd-viewer .pd-main-image:hover {
    transform: none;
}

.pd-gallery-hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--tt-text-subtle);
    text-align: center;
}

.pd-thumbs.gallery-indicators {
    margin-top: 14px;
    max-height: none;
    padding: 10px 8px;
    background: var(--tt-cream-warm);
    border: 1px solid rgba(232, 200, 114, 0.35);
    gap: 8px;
}

.pd-thumbs .thumb-container {
    border-radius: 10px;
    overflow: hidden;
}

.pd-thumbs.gallery-indicators img {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 8px;
    border-width: 2px;
}

.pd-thumbs.gallery-indicators img.active {
    border-color: var(--tt-crimson-light);
    transform: none;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.pd-sidebar {
    position: static;
    top: auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(232, 200, 114, 0.45);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(109, 18, 34, 0.07);
}

@media (min-width: 901px) {
    .pd-layout .pd-buy-col.pd-sidebar {
        position: sticky;
        top: 12px;
    }
}

.pd-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--tt-text);
    margin: 0 0 10px;
}

.pd-variant-picker {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pd-variant-picker-label {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

.pd-variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-variant-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    max-width: 96px;
    padding: 8px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-variant-chip img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.pd-variant-chip:hover {
    border-color: var(--tt-lantern);
}

.pd-variant-chip--active {
    border-color: var(--tt-crimson-light);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
    color: var(--tt-crimson);
}

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pd-badges .season-badge {
    position: static;
}

.pd-price-box {
    background: linear-gradient(135deg, var(--tt-gold-pale) 0%, #fff 100%);
    border: 1px solid var(--tt-gold-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 4px;
}

.pd-price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tt-crimson);
    margin-bottom: 4px;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tt-crimson-light);
    margin: 0;
    line-height: 1.3;
}

.pd-desc-box {
    margin-bottom: 16px;
}

.pd-desc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    margin: 0 0 8px;
}

.pd-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

.pd-desc-intro {
    margin: 0 0 16px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--tt-text-muted);
}

.pd-specs-panel {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(232, 200, 114, 0.3);
}

.pd-specs-panel-title,
.pd-pricing-title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tt-crimson-dark);
}

.pd-meta-dl {
    margin: 0;
    font-size: 0.9rem;
}

.pd-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(232, 200, 114, 0.25);
}

.pd-meta-row:last-child {
    border-bottom: none;
}

.pd-meta-dt {
    margin: 0;
    color: var(--tt-text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.pd-meta-dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--tt-text);
    line-height: 1.45;
}

.pd-meta-size {
    color: var(--tt-crimson);
    font-variant-numeric: tabular-nums;
}

.pd-pricing {
    margin-top: 4px;
}

.pd-pricing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-pricing-item {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 8px 14px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(232, 200, 114, 0.45);
    font-size: 0.88rem;
    line-height: 1.5;
}

.pd-pricing-item:last-child {
    border-bottom: none;
}

.pd-pricing-label {
    font-weight: 600;
    color: var(--tt-text-muted);
}

.pd-pricing-value {
    color: var(--tt-text);
}

.pd-specs {
    margin-top: 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, var(--tt-gold-pale) 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.pd-specs-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #fcd34d;
}

.pd-specs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fef3c7;
    color: var(--tt-amber);
    flex-shrink: 0;
}

.pd-specs-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #b45309;
}

.pd-spec-list {
    margin: 0;
    padding: 0;
}

.pd-spec-row {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 8px 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.pd-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-spec-row:first-child {
    padding-top: 0;
}

.pd-spec-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.45;
}

.pd-spec-value {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.pd-spec-size {
    font-weight: 600;
    color: var(--tt-crimson);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.pd-spec-variant {
    margin-bottom: 12px;
}

.pd-spec-variant:last-child {
    margin-bottom: 0;
}

.pd-spec-variant-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tt-crimson-dark);
    background: var(--tt-gold-soft);
    border: 1px solid var(--tt-gold-light);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .pd-spec-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }

    .pd-spec-label {
        font-size: 0.78rem;
        color: #b45309;
    }
}

.pd-trust-mini {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pd-trust-mini li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

.pd-trust-mini li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.pd-btn:hover {
    transform: translateY(-1px);
}

.pd-btn-zalo {
    background: #0068ff;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.35);
}

.pd-btn-zalo:hover {
    background: #0052cc;
}

.pd-btn-shopee {
    background: #ee4d2d;
    color: #fff;
    box-shadow: 0 8px 20px rgba(238, 77, 45, 0.3);
}

.pd-btn-shopee:hover {
    background: #d43c20;
}

.pd-btn-outline {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.pd-btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pd-community-wrap {
    margin-top: 8px;
}

.pd-community-wrap .community-block {
    margin-bottom: 0;
}

.pd-videos {
    margin-bottom: 24px;
}

.pd-videos .product-video {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.pd-not-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.pd-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: none;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.pd-mobile-btn {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.pd-mobile-zalo {
    background: #0068ff;
}

.pd-mobile-shopee {
    background: #ee4d2d;
}

/* Related products (cùng loại) */
.pd-related {
    margin: 8px 0 32px;
    padding: 24px 0 8px;
    border-top: 1px solid rgba(155, 28, 49, 0.12);
}

.pd-related-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: var(--tt-text);
}

.pd-related-lead {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--tt-text-muted);
    line-height: 1.45;
}

.pd-related-grid.product-grid {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .pd-layout.product-info-detail {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "buy"
            "details";
        gap: 16px;
    }

    .pd-layout .pd-buy-col.pd-sidebar,
    .pd-buy-col.pd-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: static;
        top: auto;
        z-index: auto;
    }

    .pd-details-section {
        position: relative;
        z-index: 1;
        clear: both;
    }

    .pd-buy-head {
        order: 1;
    }

    .pd-rfq-wrap {
        order: 2;
    }

    .pd-buy-foot {
        order: 3;
    }

    .pd-desc-panel {
        padding: 16px;
    }

    .pd-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .pd-meta-dd {
        text-align: left;
        width: 100%;
    }

    .pd-pricing-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pd-viewer .product-images,
    .pd-viewer-stage {
        height: min(45vh, 400px);
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .pd-main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .pd-mobile-bar {
        display: flex;
    }

    .pd-sidebar .pd-actions--quick .pd-btn-shopee,
    .pd-sidebar .pd-actions--quick .pd-btn-zalo {
        display: none;
    }

    .pd-thumbs.gallery-indicators img {
        width: 64px;
        height: 64px;
    }
}

/* ========== Trung Thu 2026 — theme refinements ========== */
.product-card .product-price,
.product-price {
    color: var(--tt-crimson);
}

.product-card.season-trung-thu .product-price {
    color: var(--tt-crimson-dark);
}

.product-card {
    border-color: rgba(155, 28, 49, 0.1);
}

.product-card.season-trung-thu {
    border-color: rgba(212, 160, 23, 0.28);
}

.pd-price-box {
    background: var(--tt-gradient-gold-box);
    border-color: var(--tt-gold-border);
}

.pd-price {
    color: var(--tt-crimson);
}

.pd-breadcrumb a {
    color: var(--tt-crimson);
}

.catalog-section-title {
    color: var(--tt-text);
}

.home-hot-promo {
    border-color: var(--tt-gold-border);
}

.header-nav-hot {
    background: rgba(240, 193, 75, 0.22);
    border-color: rgba(240, 193, 75, 0.55);
    font-weight: 700;
}

.header-nav-rfq {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

#bao-gia {
    scroll-margin-top: 72px;
}

.btn-detail:hover {
    background: var(--tt-gold-pale);
    border-color: var(--tt-gold-border);
    color: var(--tt-crimson-dark);
}

footer.bg-gradient-to-b.from-gray-800.to-gray-900 {
    border-top: 3px solid var(--tt-gold);
    background: linear-gradient(180deg, var(--tt-night-mid) 0%, var(--tt-night) 100%) !important;
}

footer h3 .bg-orange-400,
footer h3 .bg-blue-400,
footer h3 .bg-green-400 {
    background-color: var(--tt-gold) !important;
}

footer .border-gray-600 {
    border-color: rgba(212, 160, 23, 0.22);
}

.cta-btn-call {
    color: var(--tt-crimson);
}

.blog-card-tag {
    background: var(--tt-gold-pale);
    color: var(--tt-crimson);
}

.hot-18-lead,
.hot-18-page-intro {
    color: var(--tt-text-muted);
}

/* ========== UX readability v2 — link & contrast ========== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--tt-gold);
    outline-offset: 2px;
}

/* Footer: chữ link sáng hơn trên nền tối */
footer.bg-gradient-to-b {
    color: #f5ebe0;
}

footer .text-gray-300 {
    color: #e8d9c8;
}

footer .text-gray-400 {
    color: #d4c4a8;
}

footer a {
    color: #fdecc8;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover,
footer .hover\:text-orange-300:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Thẻ sản phẩm — tiêu đề & giá rõ, không “chìm” trong link */
.product-info h3 {
    color: var(--tt-text);
    font-weight: 700;
}

.product-card:hover .product-info h3,
.product-card-link:hover h3 {
    color: var(--tt-link);
}

.product-short-desc {
    color: var(--tt-text-muted);
    font-size: 0.9rem;
}

.product-posted-date {
    color: var(--tt-text-subtle);
}

.product-card .product-price,
.product-price {
    color: var(--tt-link);
    font-weight: 700;
    font-size: 1.02rem;
}

/* Nút hành động trên thẻ — tách bạch “xem” vs “mua” */
.btn-detail {
    background: var(--tt-gold-pale);
    color: var(--tt-link);
    border: 1px solid var(--tt-gold-border);
    font-weight: 700;
}

.btn-detail:hover {
    background: var(--tt-gold-soft);
    border-color: var(--tt-gold);
    color: var(--tt-link-hover);
}

.btn-zalo-card,
.btn-shopee-card {
    font-weight: 700;
}

/* Menu danh mục — link dạng pill, đủ đậm */
.catalog-nav-link {
    color: var(--tt-link);
    border-color: rgba(139, 21, 40, 0.18);
    background: #fff;
}

.catalog-nav-link:hover,
.catalog-nav-link-hot:hover {
    color: var(--tt-link-hover);
    background: var(--tt-gold-pale);
    border-color: var(--tt-gold);
}

.catalog-section-subtitle,
.home-toolbar-lead {
    color: var(--tt-text-muted);
}

.catalog-section-title,
.home-section-title {
    color: var(--tt-text);
}

/* Blog & liên kết nội dung */
.blog-card-title a {
    color: var(--tt-text);
    font-weight: 700;
}

.blog-card-title a:hover {
    color: var(--tt-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-card-read,
.home-blog-all,
.blog-index-footer a,
.cap-nhat-btn-detail {
    color: var(--tt-link);
    font-weight: 700;
}

.blog-card-read:hover,
.home-blog-all:hover,
.cap-nhat-btn-detail:hover {
    color: var(--tt-link-hover);
}

.blog-card-date {
    color: var(--tt-text-subtle);
}

/* Trang chi tiết SP */
.pd-breadcrumb a {
    color: var(--tt-link);
    font-weight: 600;
}

.pd-breadcrumb a:hover {
    color: var(--tt-link-hover);
    text-decoration: underline;
}

.pd-price {
    color: var(--tt-link);
}

.pd-desc-title {
    color: var(--tt-text);
}

.pd-desc,
.pd-desc-intro {
    color: var(--tt-text-muted);
}

.pd-desc a {
    color: var(--tt-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-btn-outline {
    background: #fff;
    color: var(--tt-link);
    border: 2px solid var(--tt-gold-border);
    font-weight: 700;
}

.pd-btn-outline:hover {
    background: var(--tt-gold-pale);
    border-color: var(--tt-gold);
    color: var(--tt-link-hover);
}

.pd-related-lead {
    color: var(--tt-text-muted);
}

/* Cộng đồng / CTA */
.community-title {
    color: var(--tt-text);
}

.community-desc {
    color: var(--tt-text-muted);
}

.community-card-name {
    color: inherit;
}

.home-cta-compact p {
    color: var(--tt-text-muted);
    font-weight: 600;
}

/* Promo banner — nhấn mạnh là link */
.home-hot-promo {
    color: var(--tt-link);
    border-color: var(--tt-gold-border);
    box-shadow: 0 2px 10px var(--tt-shadow);
}

.home-hot-promo:hover {
    border-color: var(--tt-gold);
    box-shadow: 0 6px 18px var(--tt-shadow);
}

.home-hot-promo-text {
    color: var(--tt-text);
}

.home-hot-promo-text strong {
    color: var(--tt-link);
}

.home-hot-promo-arrow {
    color: var(--tt-link);
}

/* ========== Tìm kiếm sản phẩm (toàn site) ========== */
.site-search-wrap {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 10px;
}

.header-compact-inner {
    align-items: flex-start;
}

@media (min-width: 720px) {
    .site-search-wrap {
        flex: 1 1 220px;
        max-width: 340px;
        margin-top: 0;
        margin-left: auto;
        margin-right: 12px;
        order: 2;
    }

    .header-compact-nav {
        order: 3;
    }
}

.site-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--tt-gold-border, #e8d5c0);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 24, 16, 0.06);
}

.site-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 9px 14px;
    font-size: 0.92rem;
    color: var(--tt-text, #2d1810);
    background: transparent;
}

.site-search-input:focus {
    outline: none;
}

.site-search-form:focus-within {
    border-color: var(--tt-gold, #f0c14b);
    box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.35);
}

.site-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    border: none;
    background: var(--tt-gold-pale, #fff8e8);
    color: var(--tt-link, #8b1528);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border-left: 1px solid var(--tt-gold-border, #e8d5c0);
}

.site-search-btn:hover {
    background: var(--tt-gold-soft, #fdecc8);
}

.site-search-btn-text {
    display: none;
}

@media (min-width: 480px) {
    .site-search-btn-text {
        display: inline;
    }
}

.site-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--tt-gold-border, #e8d5c0);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(45, 24, 16, 0.14);
    max-height: 320px;
    overflow-y: auto;
}

.site-search-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--tt-text, #2d1810);
    border-bottom: 1px solid #f3ebe0;
}

.site-search-suggest-item:last-child {
    border-bottom: none;
}

.site-search-suggest-item:hover {
    background: var(--tt-gold-pale, #fff8e8);
}

.site-search-suggest-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.site-search-suggest-item strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.3;
}

.site-search-suggest-item em {
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--tt-link, #8b1528);
    font-weight: 600;
}

.site-search-suggest-empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--tt-text-muted, #4a362e);
}

.search-main {
    padding: 20px 0 48px;
}

.search-results-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tt-text, #2d1810);
    margin: 0 0 8px;
}

.search-results-lead {
    color: var(--tt-text-muted, #4a362e);
    margin: 0 0 20px;
    line-height: 1.5;
}

.search-empty {
    padding: 24px 20px;
    background: var(--tt-gold-pale, #fff8e8);
    border: 1px solid var(--tt-gold-border, #e8d5c0);
    border-radius: 12px;
    color: var(--tt-text-muted);
    line-height: 1.6;
}

.search-empty a {
    color: var(--tt-link);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Thẻ sản phẩm cap-nhat (trang chủ + cập nhật 2026) ========== */
.cap-nhat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.cap-nhat-card {
    border: 1px solid rgba(155, 28, 49, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px var(--tt-shadow);
}

.cap-nhat-card-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.cap-nhat-card-thumbs {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px 0;
    background: var(--tt-cream-warm);
    border-bottom: 1px solid rgba(232, 200, 114, 0.35);
}

.cap-nhat-card-thumbs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(232, 200, 114, 0.5);
    box-shadow: 0 1px 4px rgba(109, 18, 34, 0.08);
}

.cap-nhat-card-body {
    padding: 14px 16px 16px;
}

.cap-nhat-card-body h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--tt-text);
    line-height: 1.35;
}

.cap-nhat-meta {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.cap-nhat-meta div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.cap-nhat-meta dt {
    color: var(--tt-text-muted);
    font-weight: 500;
}

.cap-nhat-meta dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--tt-text);
}

.cap-nhat-price {
    color: var(--tt-link);
    font-weight: 700;
}

.cap-nhat-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--tt-gold-pale);
    color: var(--tt-crimson);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 4px;
}

.cap-nhat-group-meta {
    font-size: 0.85rem;
    color: var(--tt-text-muted);
    margin: 0 0 12px;
}

.cap-nhat-variants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.cap-nhat-variant-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid rgba(155, 28, 49, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: var(--tt-text);
    background: var(--tt-cream);
    font-size: 0.72rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cap-nhat-variant-chip:hover {
    border-color: var(--tt-gold);
    box-shadow: 0 2px 8px var(--tt-shadow);
}

.cap-nhat-variant-chip img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.cap-nhat-variant-chip em {
    font-style: normal;
    color: var(--tt-link);
    font-weight: 600;
    font-size: 0.68rem;
}

.cap-nhat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cap-nhat-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cap-nhat-card-body h3 a:hover {
    color: var(--tt-link);
}

.cap-nhat-btn-detail {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--tt-gold-pale);
    color: var(--tt-link);
    border: 1px solid var(--tt-gold-border);
    text-decoration: none;
}

.cap-nhat-btn-detail:hover {
    background: var(--tt-gold-soft);
    border-color: var(--tt-gold);
    color: var(--tt-link-hover);
}

.cap-nhat-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 0 0 28px;
}

.cap-nhat-rule {
    background: var(--tt-gold-pale);
    border: 1px solid var(--tt-gold-border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--tt-text-muted);
}

.cap-nhat-rule strong {
    display: block;
    font-size: 1.2rem;
    color: var(--tt-link);
}

.home-catalog .catalog-section .cap-nhat-grid {
    margin-bottom: 0;
}

.cap-nhat-main {
    padding: 24px 0 48px;
}

.cap-nhat-lead {
    max-width: 48rem;
    color: var(--tt-text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cap-nhat-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--tt-text);
}

.cap-nhat-trust li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tt-gold-pale);
    border: 1px solid var(--tt-gold-border);
}

.cap-nhat-section-title {
    font-size: 1.25rem;
    margin: 0 0 16px;
    color: var(--tt-text);
}

.cap-nhat-error {
    color: var(--tt-crimson);
}

.home-toolbar .cap-nhat-rules {
    margin-bottom: 16px;
}

.pack-dim-ref {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--tt-gold-border);
    border-radius: 10px;
    background: #fff;
}

.pack-dim-ref summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--tt-link);
}

.pack-dim-ref-list {
    margin: 12px 0 0;
    padding-left: 1.1rem;
    color: var(--tt-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.pack-dim-ref-list li {
    margin-bottom: 6px;
}

.cap-nhat-size {
    font-size: 0.82rem;
    line-height: 1.35;
    max-width: 11rem;
}

/* ========== RFQ + activity toast ========== */
.rfq-banner {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--tt-gold-border);
    background: linear-gradient(135deg, var(--tt-gold-pale) 0%, #fff 100%);
}

.rfq-banner--inline {
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tt-gold-pale) 0%, #fff 70%);
}

.rfq-banner summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--tt-link);
    list-style: none;
}

.rfq-banner summary::-webkit-details-marker {
    display: none;
}

.rfq-banner[open] summary {
    margin-bottom: 12px;
}

.rfq-block {
    margin: 20px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(155, 28, 49, 0.15);
    background: var(--tt-cream);
}

.rfq-block--compact {
    margin: 0;
}

.rfq-block--hero {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--tt-gold-border);
    background: linear-gradient(145deg, #fff 0%, var(--tt-gold-pale) 100%);
    box-shadow: 0 10px 28px var(--tt-shadow);
}

.rfq-block--hero .rfq-block-title {
    font-size: 1.2rem;
    color: var(--tt-crimson-dark);
}

.rfq-block--product {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--tt-gold-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(254, 243, 216, 0.35) 0%, #fff 70%);
    box-shadow: none;
}

.rfq-block--product .rfq-block-title {
    font-size: 1.05rem;
    color: var(--tt-crimson-dark);
}

.rfq-block--product .rfq-submit {
    background: var(--tt-crimson);
    font-size: 1rem;
}

.rfq-block--product .rfq-submit:hover {
    background: var(--tt-crimson-dark);
}

/* Khu vực báo giá trang chủ */
.home-rfq-zone {
    margin: 36px 0 32px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--tt-gold-border);
    background: linear-gradient(180deg, rgba(254, 243, 216, 0.5) 0%, #fff 100%);
    box-shadow: 0 12px 32px rgba(109, 18, 34, 0.08);
}

.home-rfq-zone--cap {
    margin-top: 28px;
}

.home-rfq-zone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 900px) {
    .home-rfq-zone-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 20px;
    }
}

.home-rfq-zone-aside .rfq-trend {
    margin: 0;
    height: 100%;
}

.home-rfq-zone-aside .rfq-trend-title {
    font-size: 0.95rem;
}

.pd-rfq-wrap {
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(232, 200, 114, 0.35);
}

.pd-actions--quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.pd-actions--quick .pd-btn {
    padding: 12px 10px;
    font-size: 0.92rem;
}

.pd-btn--outline.pd-btn-zalo {
    background: #fff;
    color: #0068ff;
    border: 2px solid #0068ff;
    box-shadow: none;
}

.pd-btn--outline.pd-btn-zalo:hover {
    background: #eff6ff;
}

.pd-btn--back {
    margin-top: 4px;
}

.pd-mobile-rfq {
    background: var(--tt-crimson);
    color: #fff;
}

.rfq-block-title {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: var(--tt-text);
}

.rfq-block-lead {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--tt-text-muted);
    line-height: 1.5;
}

.rfq-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rfq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .rfq-row {
        grid-template-columns: 1fr;
    }
}

.rfq-field label,
.rfq-field .rfq-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tt-text);
}

.rfq-req {
    color: var(--tt-crimson);
}

.rfq-field input,
.rfq-field select,
.rfq-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(155, 28, 49, 0.2);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.rfq-field--static {
    font-size: 0.9rem;
}

.rfq-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--tt-text-muted);
    line-height: 1.4;
}

.rfq-consent input {
    margin-top: 3px;
}

.rfq-submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: var(--tt-crimson);
    color: #fff;
}

.rfq-submit:hover {
    filter: brightness(1.05);
}

.rfq-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.rfq-status {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.45;
}

.rfq-status--success {
    color: #166534;
}

.rfq-status--error {
    color: var(--tt-crimson);
}

.rfq-status--info {
    color: var(--tt-text-muted);
}

.rfq-trend {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--tt-gold-border);
    background: #fff;
}

.rfq-trend-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.rfq-trend-title {
    font-size: 0.95rem;
    margin: 0;
    color: var(--tt-text);
}

.rfq-trend-stat {
    font-size: 0.82rem;
    color: var(--tt-text-muted);
}

.rfq-trend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rfq-trend-chip {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tt-gold-pale);
    border: 1px solid var(--tt-gold-border);
    color: var(--tt-link);
    text-decoration: none;
    font-weight: 600;
}

.rfq-trend-chip:hover {
    background: var(--tt-gold-soft);
}

.activity-toast-root {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 45;
    max-width: min(320px, calc(100vw - 24px));
    pointer-events: none;
}

.activity-toast {
    pointer-events: auto;
    margin-top: 8px;
    padding: 12px 14px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(155, 28, 49, 0.15);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.activity-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.activity-toast--real {
    border-left: 3px solid var(--accent, #c9a227);
}

.activity-toast-kicker {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tt-text-muted);
}

.activity-toast-body {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--tt-text);
}

.activity-toast-body em {
    font-style: normal;
    color: var(--tt-link);
    font-weight: 600;
}

.activity-toast-note,
.activity-toast-need {
    color: var(--tt-crimson-dark);
    font-weight: 600;
}

.activity-toast-qty {
    color: var(--tt-text-muted);
    font-weight: 500;
}

.activity-toast-region {
    color: var(--tt-text-muted);
    font-weight: 500;
    font-size: 0.92em;
}

.activity-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--tt-text-muted);
}

.activity-toast {
    position: relative;
}

.activity-toast-mute {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.75rem;
    color: var(--tt-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 640px) {
    .activity-toast-root {
        bottom: 72px;
        left: max(12px, env(safe-area-inset-left));
    }

    body.pd-body .activity-toast-root {
        bottom: 64px;
    }
}

/* ========== Mobile — tối ưu hiển thị điện thoại ========== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

@media (max-width: 768px) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    body > header {
        margin-bottom: 16px;
        padding: 12px 0;
    }

    body > header h1 {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        line-height: 1.25;
    }

    body > header p {
        font-size: 0.88rem;
    }

    body > header.header-compact {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .header-compact-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: left;
    }

    .header-compact-brand {
        width: 100%;
    }

    .header-compact-brand h1 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .header-compact-tagline {
        font-size: 0.8rem;
    }

    .site-search-wrap {
        order: 2;
        width: 100%;
        margin: 0;
        flex: none;
    }

    .header-compact-nav {
        order: 3;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 2px;
        justify-content: flex-start;
        width: 100%;
    }

    .header-compact-nav::-webkit-scrollbar {
        display: none;
    }

    .header-compact-nav a {
        flex-shrink: 0;
        margin: 0;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .pd-top-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 6px;
        padding-bottom: 4px;
    }

    .pd-top-nav::-webkit-scrollbar {
        display: none;
    }

    .pd-top-nav-link,
    body > header a.back-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 6px 12px;
        margin-top: 0;
    }

    .home-main {
        padding-top: 4px;
    }

    .home-hot-promo--slim {
        padding: 10px 12px;
    }

    .home-hot-promo--slim .home-hot-promo-text {
        font-size: 0.85rem;
    }

    .home-hot-promo-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    .catalog-nav--compact {
        justify-content: flex-start;
    }

    .home-catalog .catalog-section-title {
        font-size: 1.05rem;
    }

    .catalog-section {
        margin-bottom: 32px;
        scroll-margin-top: 72px;
    }

    .cap-nhat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 24px;
    }

    .cap-nhat-card-body {
        padding: 10px 10px 12px;
    }

    .cap-nhat-card-body h3 {
        font-size: 0.86rem;
        line-height: 1.3;
    }

    .cap-nhat-meta {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .cap-nhat-btn-detail {
        font-size: 0.8rem;
        padding: 6px 10px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .cap-nhat-variants {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .cap-nhat-variant-chip {
        padding: 6px 4px;
        font-size: 0.65rem;
    }

    .cap-nhat-variant-chip img {
        width: 44px;
        height: 44px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .blog-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-blog-section {
        margin: 32px 0 28px;
    }

    .home-section-title {
        font-size: 1.15rem;
    }

    .home-cta-compact {
        padding: 14px 16px;
    }

    .home-cta-compact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .home-cta-compact-actions .cta-btn:last-child {
        grid-column: 1 / -1;
    }

    .home-cta-compact .cta-btn {
        padding: 12px 10px;
        font-size: 0.88rem;
        text-align: center;
        justify-content: center;
    }

    .home-trust-strip {
        gap: 6px;
    }

    .home-trust-strip li {
        font-size: 0.76rem;
        padding: 5px 10px;
    }

    .home-rfq-zone {
        margin: 28px 0 24px;
        padding: 14px;
    }

    .rfq-block--hero {
        padding: 14px;
    }

    .home-rfq-zone-grid {
        gap: 12px;
    }

    .rfq-block {
        padding: 12px;
    }

    .rfq-block-title {
        font-size: 1rem;
    }

    .rfq-submit {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .rfq-trend-chips {
        gap: 6px;
    }

    footer .pt-12 {
        padding-top: 2rem;
    }

    footer .gap-10 {
        gap: 1.5rem;
    }

    footer .text-lg {
        font-size: 1rem;
    }

    /* Nút chat nổi — gọn hàng ngang, không che nội dung */
    body:not(.pd-body) {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.pd-body .fixed.bottom-6.right-6 {
        display: none;
    }

    .fixed.bottom-6.right-6 {
        flex-direction: row !important;
        align-items: center;
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 4px !important;
        padding: 5px;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 999px;
        box-shadow: 0 6px 22px rgba(15, 23, 42, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .fixed.bottom-6.right-6 .pulse-ring {
        display: none;
    }

    .fixed.bottom-6.right-6 .shake-animation > a {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    .fixed.bottom-6.right-6 .w-16.h-16 {
        width: 2.75rem;
        height: 2.75rem;
    }

    .fixed.bottom-6.right-6 .w-10.h-10 {
        width: 1.6rem;
        height: 1.6rem;
    }

    .fixed.bottom-6.right-6 .w-8.h-8 {
        width: 1.35rem;
        height: 1.35rem;
    }

    .activity-toast-root {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        max-width: none;
    }

    .activity-toast {
        max-width: none;
    }
}

@media (max-width: 380px) {
    .header-compact-nav a {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .cap-nhat-variants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta-compact-actions {
        grid-template-columns: 1fr;
    }

    .home-cta-compact-actions .cta-btn:last-child {
        grid-column: auto;
    }
}


/* ========== Site chrome — footer & chat FABs (theme thuần) ========== */
.site-footer {
    margin-top: 48px;
    background: linear-gradient(180deg, var(--tt-night-mid) 0%, var(--tt-night) 100%);
    color: #f5ebe0;
    border-top: 3px solid var(--tt-gold);
    padding: 40px 0 28px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
}

.site-footer-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tt-gold);
    display: inline-block;
}

.site-footer-link {
    display: block;
    color: #fdecc8;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.site-footer-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-link--shopee {
    color: #ffd4c4;
}

.site-footer-note,
.site-footer-contact {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: #d4c4a8;
    line-height: 1.5;
}

.site-footer-contact a {
    color: #fdecc8;
    text-decoration: none;
    font-weight: 600;
}

.site-footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 160, 23, 0.25);
    text-align: center;
    font-size: 0.9rem;
    color: #e8d9c8;
}

.site-footer-bottom strong {
    color: #fff;
}

.site-footer-nav {
    margin-top: 10px;
    font-size: 0.85rem;
}

.site-footer-nav a {
    color: #fdecc8;
    text-decoration: none;
    font-weight: 600;
}

.site-footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-chat-fabs {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.site-chat-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 20px rgba(26, 21, 32, 0.28);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-chat-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(26, 21, 32, 0.35);
}

.site-chat-fab--zalo {
    background: #0068ff;
}

.site-chat-fab--zalo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.site-chat-fab--more {
    background: var(--tt-night-mid);
    border: 2px solid var(--tt-gold-border);
    list-style: none;
}

.site-chat-fab--more::-webkit-details-marker {
    display: none;
}

.site-chat-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.site-chat-fab--messenger {
    background: #0084ff;
}

.site-chat-fab--call {
    background: var(--tt-crimson);
}

body.pd-body .site-chat-fabs {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-chat-fabs {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    body.pd-body .site-chat-fabs {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .site-chat-fab {
        width: 48px;
        height: 48px;
    }
}

.activity-toast-note {
    color: var(--tt-text-subtle);
    font-weight: 500;
    font-style: italic;
}

/* ========== Ưu đãi sỉ — promo box (blog) + banner trang chủ ========== */
.promo-offer-box {
    margin: 1.5rem 0 2rem;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--tt-gold-pale) 0%, var(--tt-cream-warm) 100%);
    border: 1px solid var(--tt-gold-border);
    border-radius: var(--tt-radius-md);
    box-shadow: 0 6px 20px rgba(109, 18, 34, 0.06);
    color: var(--tt-text);
}

.promo-offer-badge {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tt-crimson);
}

.promo-offer-headline {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--tt-text);
}

.promo-offer-lead {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--tt-text-muted);
}

.promo-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.promo-offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.promo-offer-btn--zalo {
    background: #0068ff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}

.promo-offer-btn--zalo:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 104, 255, 0.35);
    color: #fff;
}

.promo-offer-btn--secondary {
    background: #fff;
    color: var(--tt-crimson-dark);
    border: 1px solid var(--tt-gold-border);
}

.promo-offer-btn--secondary:hover {
    background: var(--tt-gold-pale);
    color: var(--tt-crimson-dark);
}

.promo-offer-deadline {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tt-text-subtle);
}

.home-hot-promo--uu-dai {
    border-color: var(--tt-gold-border);
    background: linear-gradient(135deg, #fff8f0 0%, var(--tt-gold-pale) 100%);
}

.home-hot-promo--uu-dai .home-hot-promo-badge {
    background: var(--tt-crimson-dark);
}

.home-hot-promo--uu-dai .home-hot-promo-text strong {
    color: var(--tt-crimson-dark);
}

.blog-card-tag--promo {
    background: var(--tt-crimson-dark);
    color: #fff;
    text-transform: none;
}

.home-blog-section .blog-card-tags {
    display: flex;
    margin: 0;
    padding: 0 20px 4px;
}
