/* =====================================
   Custom CSS cho Siin Store
   ===================================== */

:root {
    --primary-color: #f43f5e;
    --secondary-color: #ec4899;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* =====================================
   Smooth Scrolling
   ===================================== */
html {
    scroll-behavior: smooth;
}

/* =====================================
   Loading Animation
   ===================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================
   Custom Scrollbar
   ===================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* =====================================
   Hero Section
   ===================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 650px;
    min-height: 650px;
}

@media (max-width: 1023px) {
    .hero-slider {
        height: 520px;
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 220px;
        min-height: 220px;
    }
}

.hero-slide {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.8) 0%, rgba(236, 72, 153, 0.6) 100%);
}

/* =====================================
   Buttons
   ===================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* =====================================
   Product Cards
   ===================================== */
.product-grid {
    display: grid;
    gap: 24px;
}

/* Mobile: 1-2 cột */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Tablet: 2-3 cột */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Desktop: tối đa 5 cột - Áp dụng từ 1024px trở lên */
@media (min-width: 1024px) {
    /* Base rule cho tất cả product-grid */
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
    
    /* Đảm bảo product-grid trên index.php và tất cả trang hiển thị đủ 5 cột - Specificity cao nhất */
    section.bg-gray-50 .product-grid,
    section .product-grid,
    .container .product-grid,
    .container.mx-auto .product-grid,
    div.product-grid,
    section.py-8 .product-grid,
    section.py-8.lg\:py-10 .product-grid,
    section.bg-gray-50 .container .product-grid,
    section .container.mx-auto .product-grid,
    section.py-8.lg\:py-10.bg-gray-50 .container.mx-auto .product-grid,
    section.py-8.lg\:py-10 .container.mx-auto .product-grid,
    body .container .product-grid,
    body section .product-grid,
    html body .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        max-width: 100% !important;
        width: 100% !important;
        display: grid !important;
        gap: 24px !important;
    }
}

/* =====================================
   Category Cards
   ===================================== */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 200px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =====================================
   Badge & Tags
   ===================================== */
.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-sale {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =====================================
   Rating Stars
   ===================================== */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 14px;
}

/* =====================================
   Breadcrumb
   ===================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px !important;
    padding-bottom: 5px !important;
}

/* Breadcrumb container - Đảm bảo không tràn ra ngoài trên desktop */
.container.mx-auto.px-4[style*="max-height: 40px"] {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.container.mx-auto.px-4[style*="max-height: 40px"] .breadcrumb {
    width: 100% !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: #d1d5db;
}

/* Breadcrumb Responsive - Mobile */
@media (max-width: 768px) {
    /* Container breadcrumb trên mobile */
    .container.mx-auto.px-4[style*="max-height: 40px"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-height: 40px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Breadcrumb trên mobile */
    .container.mx-auto.px-4[style*="max-height: 40px"] .breadcrumb {
        width: 100% !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin: 0 !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        overflow: visible !important;
        align-items: center !important;
        line-height: 1.3 !important;
    }
    
    /* Giảm margin của separator trên mobile */
    .container.mx-auto.px-4[style*="max-height: 40px"] .breadcrumb .separator {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Giảm padding của container div (cho các breadcrumb khác) */
    .bg-rose-50 .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Giảm padding của breadcrumb div (cho các breadcrumb khác) */
    .breadcrumb {
        padding-top: 12px !important;
        padding-bottom: 8px !important;
        gap: 6px;
    }
    
    /* Giảm margin của separator (cho các breadcrumb khác) */
    .breadcrumb .separator {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Container breadcrumb trên mobile nhỏ */
    .container.mx-auto.px-4[style*="max-height: 40px"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-height: 40px !important;
    }
    
    /* Breadcrumb trên mobile nhỏ */
    .container.mx-auto.px-4[style*="max-height: 40px"] .breadcrumb {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        gap: 3px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .container.mx-auto.px-4[style*="max-height: 40px"] .breadcrumb .separator {
        margin-left: 0.2rem !important;
        margin-right: 0.2rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Giảm thêm padding cho mobile nhỏ (cho các breadcrumb khác) */
    .bg-rose-50 .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .breadcrumb {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        gap: 4px;
        font-size: 15px !important;
        max-height: 30px;
    }
    
    .breadcrumb .separator {
        margin-left: 0.2rem !important;
        margin-right: 0.2rem !important;
    }
}

/* =====================================
   Pagination
   ===================================== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =====================================
   Modal
   ===================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.modal-backdrop.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: block;
}

/* =====================================
   Toast Notification
   ===================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

/* =====================================
   Container Padding - Override Tailwind px-4
   ===================================== */
.container.px-4,
.container {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

/* =====================================
   Responsive Design
   ===================================== */
@media (max-width: 1024px) {
    .container.px-4,
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    .container.px-4,
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 300px;
    }
    
    .category-card {
        height: 150px;
    }
}

/* =====================================
   Utilities
   ===================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
    line-height: 1.5 !important;
    padding-top: 0.15em !important;
    padding-bottom: 0.15em !important;
    display: inline-block !important;
    vertical-align: baseline !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

/* Đảm bảo heading có đủ không gian cho dấu tiếng Việt */
h2 .text-gradient,
h3 .text-gradient {
    line-height: 1.6 !important;
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
}

/* Đặc biệt cho text-3xl (font lớn) */
.text-3xl .text-gradient {
    line-height: 1.7 !important;
    padding-top: 0.25em !important;
    padding-bottom: 0.25em !important;
}

.shadow-primary {
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =====================================
   Footer Icon Alignment - Icon to hơn và căn giữa trong div
   ===================================== */

footer .container ul li > div[class*="w-10"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

footer .container ul li > div[class*="w-10"] i {
    display: inline-block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 18px !important;
    width: auto !important;
    height: auto !important;
}

/* =====================================
   Footer Grid Spacing - Giảm khoảng cách giữa các cột
   ===================================== */
.footer-main-content {
    max-width: 100% !important;
    padding-left: 1rem !important; /* 16px thay vì 50px */
    padding-right: 1rem !important; /* 16px thay vì 50px */
}

@media (min-width: 768px) {
    .footer-main-content {
        padding-left: 1.5rem !important; /* 24px trên tablet */
        padding-right: 1.5rem !important; /* 24px trên tablet */
    }
}

@media (min-width: 1024px) {
    .footer-main-content {
        padding-left: 2rem !important; /* 32px trên desktop */
        padding-right: 2rem !important; /* 32px trên desktop */
    }
}

.footer-grid {
    gap: 0 !important;
    column-gap: 0.75rem !important; /* 12px - khoảng cách ngang */
    row-gap: 1rem !important; /* 16px cho khoảng cách dọc khi responsive */
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 1rem !important; /* 16px trên tablet */
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        column-gap: 1rem !important; /* 16px trên desktop - đều nhau */
    }
}

/* Đảm bảo các column không có margin/padding thừa và căn đều */
.footer-grid > div {
    box-sizing: border-box !important;
}

/* =====================================
   Navigation Dropdown Menu
   ===================================== */
.main-nav {
    min-height: 64px;
    height: auto !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    align-items: center !important;
}

.main-nav > li {
    height: auto !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Navigation - Style đồng nhất cho tất cả nút */
/* Đảm bảo TẤT CẢ nút có cùng kích thước: padding, height, border-radius */
.main-nav > li > a,
.main-nav > li .nav-dropdown-trigger {
    color: #f43f5e !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important; /* px-4 py-2 */
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important; /* rounded-lg */
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

/* Hover: nền hồng gradient, chữ trắng - Áp dụng cho TẤT CẢ nút */
/* Đảm bảo kích thước KHÔNG thay đổi khi hover */
.main-nav > li > a:hover,
.main-nav > li .nav-dropdown-trigger:hover,
.main-nav > li.group:hover > a,
.main-nav > li.group:hover .nav-dropdown-trigger,
.group:hover .nav-dropdown-trigger {
    color: #ffffff !important;
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
    padding: 0.5rem 1rem !important; /* Giữ nguyên padding */
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important;
    transform: none !important; /* Không scale hay translate */
}

/* Active state: nền hồng gradient, chữ trắng - Chỉ khi trang được mở */
/* Đảm bảo kích thước đồng nhất với các nút khác */
.main-nav > li > a.bg-gradient-to-r,
.main-nav > li .nav-dropdown-trigger.bg-gradient-to-r,
.main-nav > li > a.from-rose-500,
.main-nav > li .nav-dropdown-trigger.from-rose-500 {
    color: #ffffff !important;
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
    padding: 0.5rem 1rem !important;
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important;
}

/* Đảm bảo active state không bị override bởi hover */
.main-nav > li > a.bg-gradient-to-r:hover,
.main-nav > li .nav-dropdown-trigger.bg-gradient-to-r:hover,
.main-nav > li > a.from-rose-500:hover,
.main-nav > li .nav-dropdown-trigger.from-rose-500:hover {
    color: #ffffff !important;
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
    padding: 0.5rem 1rem !important;
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important;
    transform: none !important;
}

/* Đảm bảo container cha không có overflow */
nav.border-t {
    overflow: visible !important;
    height: auto !important;
}

/* Tablet và Desktop - Cho phép navigation xuống dòng tự nhiên */
@media (min-width: 768px) {
    .main-nav {
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: 64px;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.5rem 0 !important;
        row-gap: 1px !important;
    }
    
    .main-nav > li {
        height: auto !important;
        min-height: 44px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    nav.border-t {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Desktop - Tối ưu để hiển thị tất cả mục trong 1 dòng */
@media (min-width: 1024px) {
    .main-nav {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important; /* Giảm từ gap-8 (2rem) xuống 0.5rem */
    }
    
    .main-nav > li > a,
    .main-nav > li .nav-dropdown-trigger {
        padding: 0.5rem 0.625rem !important; /* Giảm từ px-4 (1rem) xuống 0.625rem */
        font-size: 0.875rem !important; /* Giảm font-size một chút */
        min-height: 40px !important;
        height: 40px !important;
    }
    
    .main-nav > li > a:hover,
    .main-nav > li .nav-dropdown-trigger:hover,
    .main-nav > li.group:hover > a,
    .main-nav > li.group:hover .nav-dropdown-trigger,
    .group:hover .nav-dropdown-trigger {
        padding: 0.5rem 0.625rem !important;
        min-height: 40px !important;
        height: 40px !important;
    }
    
    .main-nav > li > a.bg-gradient-to-r,
    .main-nav > li .nav-dropdown-trigger.bg-gradient-to-r,
    .main-nav > li > a.from-rose-500,
    .main-nav > li .nav-dropdown-trigger.from-rose-500 {
        padding: 0.5rem 0.625rem !important;
        min-height: 40px !important;
        height: 40px !important;
    }
    
    .main-nav > li > a.bg-gradient-to-r:hover,
    .main-nav > li .nav-dropdown-trigger.bg-gradient-to-r:hover,
    .main-nav > li > a.from-rose-500:hover,
    .main-nav > li .nav-dropdown-trigger.from-rose-500:hover {
        padding: 0.5rem 0.625rem !important;
        min-height: 40px !important;
        height: 40px !important;
    }
}

/* Dropdown Menu Container */
.nav-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0; /* bỏ khoảng hở để không bị mất hover */
    width: 224px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 4px 0;
    pointer-events: none;
}

/* Caret (mũi tên trỏ lên) */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

/* Show dropdown on hover */
.group:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Base state cho trigger: đồng nhất với các nút khác */
.nav-dropdown-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important; /* gap-1.5 */
    padding: 0.5rem 1rem !important; /* px-4 py-2 - đồng nhất với các nút khác */
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important; /* rounded-lg */
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    width: auto !important; /* Không phủ toàn bộ li */
}

/* Hover state - không thay đổi kích thước - Đồng bộ với các nút khác */
.group:hover .nav-dropdown-trigger {
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
    color: white !important;
    padding: 0.5rem 1rem !important; /* Giữ nguyên padding */
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 0.5rem !important;
    width: auto !important;
    transform: none !important;
}

/* Icon trong dropdown trigger - màu trắng khi hover và active */
.group:hover .nav-dropdown-trigger i,
.main-nav > li > a.bg-gradient-to-r i,
.main-nav > li .nav-dropdown-trigger.bg-gradient-to-r i,
.main-nav > li > a.from-rose-500 i,
.main-nav > li .nav-dropdown-trigger.from-rose-500 i {
    color: white !important;
}

/* Icon mặc định - màu hồng */
.main-nav > li > a i,
.main-nav > li .nav-dropdown-trigger i {
    color: #f43f5e !important;
    transition: color 0.2s ease !important;
}

/* Icon khi hover */
.main-nav > li > a:hover i,
.main-nav > li .nav-dropdown-trigger:hover i {
    color: white !important;
}

/* Đảm bảo dropdown vẫn hiển thị khi hover vào chính nó */
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Styling cho các item trong dropdown */
.nav-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #ec4899;
    color: #ffffff !important;
}

/* =====================================
   Footer Policies Alignment - Đảm bảo thẳng hàng trên mobile
   ===================================== */
.policies-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.policies-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.policies-list li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.policies-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.policies-list li a span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: auto !important;
    margin-right: 8px !important;
}

.policies-list li a span:last-child {
    display: inline-block !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

/* Đảm bảo trên mobile các phần tử thẳng hàng và đóng khối */

@media (min-width: 1024px) {
    .policies-column{
        padding-left: 40px !important;
    }
    .contact-column{
        padding-left: 15px !important;
    }
}

/* =====================================
   Footer - Shop Name Uppercase
   ===================================== */
footer .text-sm.font-medium.text-black.uppercase,
footer span.uppercase,
footer .bg-gray-50 .text-sm.font-medium.text-black,
footer .bg-gray-50 span.text-sm.font-medium.text-black,
footer .bg-gray-50 .flex.items-center.gap-2 span.text-sm.font-medium.text-black.uppercase {
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    font-variant: normal !important;
    text-rendering: optimizeLegibility !important;
}
@media (max-width: 1023px) {
    .policies-column {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .policies-list {
        width: 100% !important;
        display: block !important;
    }
    
    .policies-list li a {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 0 !important;
    }
}



/* =====================================
   Floating Action Buttons - Mobile
   ===================================== */
.floating-action-buttons {
    position: fixed !important;
    right: 1rem !important;
    bottom: 1rem !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.floating-btn {
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    min-height: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
        justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

/* Hiệu ứng nhấp nháy lan tỏa */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

.floating-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.5s;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.floating-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    }
    
.floating-btn:hover::before,
.floating-btn:hover::after {
    animation-play-state: paused;
}

.floating-btn:active {
    transform: scale(0.95) !important;
}

/* Đảm bảo hiển thị trên mobile */
@media (max-width: 768px) {
    .floating-action-buttons {
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        z-index: 9999 !important;
    }
    
    .floating-btn {
        width: 3rem !important;
        height: 3rem !important;
        min-width: 3rem !important;
        min-height: 3rem !important;
    }
    
    .floating-btn i {
        font-size: 1.25rem !important;
    }
}

/* Đảm bảo không bị che bởi các element khác */
body {
    position: relative !important;
    padding-top: 0; /* Sẽ được tính toán động bởi JavaScript */
}

/* Header Scroll Effect */
#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
    will-change: transform, opacity;
    background-color: #ffffff !important;
    z-index: 9999 !important;
}

/* Header Hidden State - Phải có specificity cao hơn */
#main-header.header-hidden,
header#main-header.header-hidden,
header#main-header.header-hidden.bg-white {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Bù lại chiều cao header khi fixed */
body.has-fixed-header {
    padding-top: 80px; /* Chiều cao header, sẽ được điều chỉnh */
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Footer sticks to bottom */
main.page-main {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
}

body > footer {
    margin-top: auto;
    margin-bottom: 0 !important;
    width: 100%;
    flex-shrink: 0;
}

footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer > div:last-child {
    margin-bottom: 0 !important;
}

/* =====================================
   Cart Badge Animation
   ===================================== */
#cart-count {
    transition: transform 0.2s ease;
}

#cart-count.scale-125 {
    transform: scale(1.25);
}

/* =====================================
   Cart Page Styling
   ===================================== */
.cart-card {
    border-radius: 18px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.cart-header {
    background: linear-gradient(90deg, #fff5f7 0%, #fff1f2 100%);
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-row {
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-item-row:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.cart-price {
    color: #f43f5e;
    font-weight: 700;
}

.cart-total {
    color: #f43f5e;
    font-weight: 800;
}

.cart-qty-input input {
    width: 3rem;
}

/* Cart desktop width */
@media (min-width: 1024px) {
    .cart-list-wrapper {
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Cart grid layout */
.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .cart-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.cart-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Cart item typography improvements for desktop */
@media (min-width: 1024px) {
    .cart-item {
        transition: all 0.3s ease;
    }
    
    .cart-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }
    
    /* Line clamp for product name */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* =====================================
   Header Layout - Logo, Title, Search
   ===================================== */
.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    z-index: 1;
    width: max-content;
}

.header-logo-img {
    height: 5rem;
    width: 8rem;
    transition: opacity 0.3s ease;
}

.header-title {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* Mobile menu panel */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 200;
    display: none;
}

#mobile-menu.open {
    display: block;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile Menu - Tất cả text in hoa */
#mobile-menu,
#mobile-menu * {
    text-transform: uppercase !important;
    font-variant: normal !important;
}

/* Mobile Menu Items - Màu và hover effect */
#mobile-menu > ul > li > a,
#mobile-menu > ul > li > button {
    text-transform: uppercase !important;
    font-variant: normal !important;
}

/* Dropdown items trong mobile menu - Màu và hover giống parent */
#mobile-menu ul ul li a,
#mobile-menu ul[id*="submenu"] li a {
    text-transform: uppercase !important;
    font-variant: normal !important;
    color: #f43f5e !important;
    text-decoration: none !important;
}

#mobile-menu ul ul li a:hover,
#mobile-menu ul[id*="submenu"] li a:hover {
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
    color: #ffffff !important;
}

/* Mobile Menu Toggle Button */
.header-mobile-menu {
    position: relative;
    z-index: 50;
}

.header-mobile-menu button {
    position: relative;
    z-index: 51;
    cursor: pointer;
    pointer-events: auto;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Title Link */
.header-title-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.header-title-link:hover {
    transform: translateY(-2px);
}

/* Header Title Icon */
.header-title-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
    opacity: 0.85;
    transition: all 0.4s ease;
    margin-top: 10px !important;
}

.header-title-icon {
    font-size: 1.25rem;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(244, 63, 94, 0.3));
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.header-title-link:hover .header-title-icon-wrapper {
    opacity: 1;
    transform: scale(1.1);
}

.header-title-link:hover .header-title-icon {
    animation: float-icon-hover 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(244, 63, 94, 0.5));
}

@keyframes float-icon-hover {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-3px) rotate(-3deg) scale(1.05);
    }
    75% {
        transform: translateY(-3px) rotate(3deg) scale(1.05);
    }
}

/* Header Title Main */
.header-title-main {
    position: relative;
    font-family: 'Charm', 'Beau Rivage', 'Love Light', cursive;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.15;
    color: #f43f5e; /* Fallback color */
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f43f5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.3);
    transition: all 0.4s ease;
    font-style: normal;
}

/* Fallback cho trình duyệt không hỗ trợ background-clip */
@supports not (-webkit-background-clip: text) {
    .header-title-main {
        color: #f43f5e;
        background: none;
        -webkit-text-fill-color: #f43f5e;
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.header-title-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
    background-clip: inherit;
}

.header-title-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f43f5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: gradient-shift 3s ease infinite;
}

.header-title-link:hover .header-title-main {
    transform: scale(1.02);
    animation: gradient-shift 1.5s ease infinite;
}

.header-title-link:hover .header-title-glow {
    opacity: 0.8;
    filter: blur(12px);
}

/* Header Title Tagline */
.header-title-tagline {
    font-family: 'Dancing Script', 'Great Vibes', cursive;
    font-weight: 500;
    letter-spacing: 0.08em;
    opacity: 0.9;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.header-title-tagline i {
    transition: all 0.4s ease;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.header-title-link:hover .header-title-tagline {
    opacity: 1;
    color: #f43f5e;
    transform: translateY(-1px);
}

.header-title-link:hover .header-title-tagline i {
    animation: heartbeat-hover 1s ease-in-out infinite;
    color: #ec4899;
}

@keyframes heartbeat-hover {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Header Title Underline */
.header-title-underline {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f43f5e, #ec4899, transparent);
    margin: 0.375rem auto 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.header-title-link:hover .header-title-underline {
    width: 60%;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .header-title-icon {
        font-size: 1rem;
    }
    
    .header-title-main {
        font-size: 1.5rem !important;
    }
    
    .header-title-tagline {
        font-size: 0.75rem !important;
    }
    
    .header-title-underline {
        height: 1.5px;
    }
}

@media (max-width: 768px) {
    .header-title-icon-wrapper {
        margin-bottom: 0.125rem;
    }
    
    .header-title-icon {
        font-size: 0.875rem;
    }
    
    .header-title-main {
        font-size: 1.25rem !important;
        letter-spacing: 0.03em;
    }
    
    .header-title-tagline {
        font-size: 0.7rem !important;
        letter-spacing: 0.05em;
        margin-top: 0.25rem;
    }
    
    .header-title-underline {
        height: 1px;
        margin-top: 0.25rem;
    }
    
    .header-title-link:hover .header-title-underline {
        width: 50%;
    }
}

/* Responsive cho tablet */
@media (max-width: 1023px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .header-search {
        display: none !important;
    }
    
    .header-logo-img {
        height: 6rem;
        width: 6rem;
    }
    
    .header-title-main {
        font-size: 1.5rem !important;
    }
    
    .header-title-tagline {
        font-size: 0.75rem !important;
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    /* Tăng chiều cao header */
    #main-header {
        min-height: 90px;
    }
    
    .header-content {
        grid-template-columns: 0 1fr auto;
        gap: 0.4rem;
        padding: 1rem 0 !important;
        min-height: 90px;
    }
    
    /* Ẩn logo trên mobile */
    .header-logo {
        display: none !important;
    }
    
    .header-logo-img {
        height: 4rem;
        width: 4rem;
    }
    
    .header-title {
        padding: 0 0.5rem !important;
        /* Đảm bảo không che button toggle */
        pointer-events: none;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 80px); /* Trừ đi không gian cho toggle bar */
        max-width: 100%;
        text-align: center;
    }
    
    .header-title-link {
        pointer-events: auto;
    }
    
    /* Làm banner to hơn trên mobile */
    .header-title-main {
        font-size: 1.75rem !important;
    }
    
    .header-title-tagline {
        font-size: 0.85rem !important;
    }
    
    .header-title-icon {
        font-size: 1.5rem !important;
    }
    
    /* Đảm bảo toggle bar luôn ở góc phải */
    .header-mobile-menu {
        z-index: 100;
        position: relative;
        margin-left: auto;
    }
    
    .header-mobile-menu button {
        z-index: 101;
    }
}

/* =====================================
   Product Description Images - Tự động căn chỉnh kích thước ảnh
   ===================================== */
.product-description {
    max-width: 100%;
    overflow: hidden;
}

/* Tự động resize tất cả ảnh trong phần mô tả */
.product-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Đảm bảo ảnh không vượt quá container */
.product-description p img,
.product-description div img,
.product-description img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .product-description img {
        margin: 0.75rem auto;
        border-radius: 6px;
    }
}

/* Đảm bảo ảnh trong các thẻ HTML khác cũng được resize */
.product-description figure img,
.product-description .wp-image,
.product-description .image {
    max-width: 100% !important;
    height: auto !important;
}

/* =====================================
   Mobile Filter Panel
   ===================================== */
.filter-panel {
    position: relative;
}

.filter-form {
    position: relative;
}

.filter-overlay {
    display: none;
}

.mobile-filter-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: #ffffff;
        z-index: 9998;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateX(-110%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 1.5rem;
        border-radius: 0 12px 12px 0;
    }

    .filter-panel.open {
        transform: translateX(0);
    }

    .filter-form {
        max-height: none;
        overflow: visible;
        position: relative;
    }

    .filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9997;
    }

    .filter-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        background: #f43f5e;
        color: #fff;
        z-index: 9999;
        box-shadow: 0 10px 20px rgba(244, 63, 94, 0.35);
        border: none;
    }

    .mobile-filter-toggle.open {
        left: calc(80% - 1.25rem);
        top: 50%;
        transform: translateY(-50%);
    }

    body.no-scroll {
        overflow: hidden;
        touch-action: none;
    }
}

/* =====================================
   FIX TRIỆT ĐỂ: Product Grid 5 cột cho index.php
   CSS này phải ở cuối file để override mọi rule khác
   ===================================== */
@media (min-width: 1024px) {
    /* Override tất cả với specificity cực cao */
    html body .product-grid,
    html body section .product-grid,
    html body .container .product-grid,
    html body .container.mx-auto .product-grid,
    html body section.bg-gray-50 .product-grid,
    html body section.py-8 .product-grid,
    html body section.py-8.lg\:py-10 .product-grid,
    html body section.bg-gray-50 .container .product-grid,
    html body section .container.mx-auto .product-grid,
    html body div.product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        display: grid !important;
        gap: 24px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Đặc biệt cho index.php - section với bg-gray-50 */
    html body section.bg-gray-50 .container.mx-auto.px-4 .product-grid,
    html body section.py-8.lg\:py-10.bg-gray-50 .container.mx-auto.px-4 .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        display: grid !important;
        gap: 24px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* =====================================
   Giảm khoảng cách giữa các sections - Mobile
   ===================================== */
@media (max-width: 1023px) {
    /* Giảm padding vertical cho sections */
    section.py-16,
    section[class*="py-16"] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    section.py-12,
    section[class*="py-12"] {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    section.py-10,
    section[class*="py-10"] {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    
    section.py-8,
    section[class*="py-8"] {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Giảm margin bottom cho headings */
    .mb-12,
    [class*="mb-12"] {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-10,
    [class*="mb-10"] {
        margin-bottom: 1.25rem !important;
    }
    
    .mb-8,
    [class*="mb-8"] {
        margin-bottom: 1rem !important;
    }
    
    /* Giảm margin top */
    .mt-10,
    [class*="mt-10"] {
        margin-top: 1.25rem !important;
    }
    
    .mt-12,
    [class*="mt-12"] {
        margin-top: 1.5rem !important;
    }
}

/* =====================================
   FIX TRIỆT ĐỂ: Product Grid 5 cột cho index.php - CSS CUỐI CÙNG
   Override mọi rule khác kể cả Tailwind CSS
   ===================================== */
@media (min-width: 1024px) {
    /* Override tất cả với specificity cực cao - Áp dụng cho mọi product-grid */
    html body .product-grid,
    html body section .product-grid,
    html body .container .product-grid,
    html body .container.mx-auto .product-grid,
    html body section.bg-gray-50 .product-grid,
    html body section.py-8 .product-grid,
    html body section.py-8.lg\:py-10 .product-grid,
    html body section.bg-gray-50 .container .product-grid,
    html body section .container.mx-auto .product-grid,
    html body div.product-grid,
    html body section.bg-gray-50 .container.mx-auto.px-4 .product-grid,
    html body section.py-8.lg\:py-10.bg-gray-50 .container.mx-auto.px-4 .product-grid,
    html body section.py-8.lg\:py-10 .container.mx-auto.px-4 .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        display: grid !important;
        gap: 24px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Desktop - Giữ spacing lớn hơn một chút */
@media (min-width: 1024px) {
    section.py-16,
    section[class*="py-16"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.py-12,
    section[class*="py-12"] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* =====================================
   CSS cho trang Shop - Mỗi thông tin 1 dòng
   ===================================== */
.shop-page .product-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

/* Tên sản phẩm - 1 dòng */
.shop-page .product-name {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
}

/* Rating - 1 dòng riêng */
.shop-page .product-rating {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

.shop-page .product-rating-stars-score {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.25rem !important;
}

.shop-page .product-rating-stars {
    display: flex !important;
    align-items: center !important;
    gap: 0.125rem !important;
}

.shop-page .product-rating-score {
    display: inline !important;
    margin-left: 0.25rem !important;
}

.shop-page .product-rating-reviews {
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}

/* Đã bán - 1 dòng riêng */
.shop-page .product-card-info > div.text-sm.text-gray-600 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

/* Giá - Mỗi giá 1 dòng */
.shop-page .product-price {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

.shop-page .product-price-current {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.25rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #f43f5e !important;
}

.shop-page .product-price-original {
    display: block !important;
    width: 100% !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
}

/* Còn hàng và Mua ngay - Mỗi cái 1 dòng */
.shop-page .product-stock-buy-wrapper {
    display: block !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
}

.shop-page .product-stock-status {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
}

.shop-page .product-buy-button {
    display: block !important;
    width: 100% !important;
}

.shop-page .product-buy-btn {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(244, 63, 94, 0.2) !important;
}

.shop-page .product-buy-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(244, 63, 94, 0.3) !important;
    background: linear-gradient(135deg, #e11d48 0%, #db2777 100%) !important;
}

.shop-page .product-buy-btn:active {
    transform: translateY(0) !important;
}

/* Đảm bảo vẫn 5 sản phẩm 1 hàng trên shop page */
@media (min-width: 1024px) {
    .shop-page .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}

