/* Base styles */
:root {
    --primary-color: #f59e0b;
    --secondary-color: #4b5563;
    --accent-color: #ef4444;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header styles */
header {
    background-color: #f59e0b;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

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

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

header nav {
    margin-top: 15px;
}

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;
}

header a.back-btn:hover {
    background-color: white;
    color: #f59e0b;
}

/* 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: #f59e0b;
    margin-bottom: 10px;
}

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

.view-details {
    display: inline-block;
    background-color: #f59e0b;
    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: #e78e02;
}

/* 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: #f59e0b;
    margin-bottom: 20px;
}

.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 #f59e0b;
}

.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 #f59e0b;
    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, #f59e0b, #d97706);
}

.season-badge.season-tết {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* 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: #f59e0b;
}

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

.product-card.season-tết:hover {
    border-color: #ef4444;
}

/* Season-specific product info styling */
.product-card.season-trung-thu .product-price {
    color: #f59e0b;
}

.product-card.season-tết .product-price {
    color: #ef4444;
}

/* 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 #f59e0b;
    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: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
} 

/* 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-orange-500 { color: #f97316; }
.text-red-500 { color: #ef4444; }
.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: #fff7ed; --tw-gradient-to: rgb(255 247 237 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-yellow-50 { --tw-gradient-to: #fefce8; }
.from-red-50 { --tw-gradient-from: #fef2f2; --tw-gradient-to: rgb(254 242 242 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-pink-50 { --tw-gradient-to: #fdf2f8; }
.from-gray-800 { --tw-gradient-from: #1f2937; --tw-gradient-to: rgb(31 41 55 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-gray-900 { --tw-gradient-to: #111827; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-600 { background-color: #16a34a; }
.text-orange-800 { color: #9a3412; }
.text-orange-700 { color: #c2410c; }
.text-red-800 { color: #991b1b; }
.text-red-700 { color: #b91c1c; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-orange-400:hover { color: #fb923c; }
.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: #1f2937;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 40%),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 35%),
        #f8fafc;
}

header {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
    padding: 26px 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

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

.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;
}

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

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

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;
}

header nav a:hover {
    color: #111827;
    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) ========== */
.blog-main {
    padding-top: 16px;
    padding-bottom: 32px;
}

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

.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.35rem;
    color: #0f172a;
}

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

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

.blog-breadcrumb {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.blog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

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

.blog-breadcrumb-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

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

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

.blog-index-lead {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.55;
}

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

.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.blog-card-media {
    display: block;
    margin: -20px -22px 4px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.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);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.blog-card-date {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}

.blog-card-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #ea580c;
}

.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: #fff7ed;
    color: #c2410c;
    padding: 3px 8px;
    border-radius: 6px;
}

.blog-card-read {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #ea580c;
    text-decoration: none;
}

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

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

.blog-index-footer a {
    color: #ea580c;
    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: #0f172a;
    line-height: 1.3;
}

.home-blog-all {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ea580c;
    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 #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.blog-post-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-post-title {
    color: #0f172a;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.25;
    margin: 0 0 12px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: #6b7280;
    font-size: 0.9rem;
}

.blog-meta-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-post-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.blog-post-body h2 {
    color: #111827;
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #fed7aa;
}

.blog-post-body h3 {
    color: #1f2937;
    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(15, 23, 42, 0.1);
}

.blog-post-body a {
    color: #ea580c;
    font-weight: 500;
    text-decoration: none;
}

.blog-post-body a:hover {
    text-decoration: underline;
}

.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 #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.blog-post-body th {
    background: #f8fafc;
    font-weight: 600;
}

.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 #fdba74;
    padding: 12px 16px;
    margin: 1.25rem 0;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 0 8px 8px 0;
}

.blog-post-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.blog-back-link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-back-link-secondary {
    color: #64748b;
}

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

.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) {
    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: linear-gradient(135deg, #ea580c 0%, #f59e0b 45%, #fbbf24 100%);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.25);
}

.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: #c2410c;
    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: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.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: #dc2626;
}

.badge-4 {
    background: #2563eb;
}

.badge-6 {
    background: #7c3aed;
}

.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: 14px;
}

.home-hot-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 12px;
    text-decoration: none;
    color: #9a3412;
    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: #ea580c;
    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: #7c2d12;
}

.home-hot-promo-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ea580c;
}

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

.catalog-nav-link-hot {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
    font-weight: 600;
}

.catalog-nav-link-hot:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}

.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, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 14px;
    margin-bottom: 16px;
}

.home-cta-compact p {
    margin: 0;
    font-weight: 600;
    color: #9a3412;
}

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

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

.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) {
    .header-compact-inner {
        text-align: center;
        justify-content: center;
    }

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

    .home-toolbar-lead {
        text-align: center;
    }

    .catalog-nav-inline {
        justify-content: center;
    }

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

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

/* ========== Product detail page (product.html) ========== */
.pd-body {
    background: #f1f5f9;
}

.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: #ea580c;
    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, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}

.pd-gallery-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.pd-viewer.gallery-container {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid #e2e8f0;
    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: #94a3b8;
    text-align: center;
}

.pd-thumbs.gallery-indicators {
    margin-top: 14px;
    max-height: none;
    padding: 10px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    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: #ea580c;
    transform: none;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.pd-sidebar {
    position: sticky;
    top: 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.pd-title {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 12px;
}

.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, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

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

.pd-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ea580c;
    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-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;
}

@media (max-width: 900px) {
    .pd-layout.product-info-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .pd-main {
        padding-bottom: 88px;
    }

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

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

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