/* CSS Variables */
:root {
    --primary-color: #FFB0BD;
    --primary-dark: #ff9bb0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Playfair Display', serif;
}

/* Logo Styling - Consistent across all pages */
.logo {
    transition: all 0.3s ease;
}

.logo a {
    text-decoration: none !important;
}

.logo-text h2 {
    color: var(--primary-color) !important;
    font-family: var(--font-family-heading);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 2px;
}

.logo-text small {
    color: var(--text-muted) !important;
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 5px;
    line-height: 1.2;
}

.mobile-logo {
    font-weight: 700 !important;
}

.mobile-logo > div {
    color: var(--primary-color) !important;
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    line-height: 1.2;
}

.mobile-logo small {
    color: var(--text-muted) !important;
    font-family: var(--font-family-base);
    font-weight: 400 !important;
    font-size: 0.6rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-top: 2px;
    line-height: 1.1;
}

/* Logo hover effects */
.logo:hover .logo-text h2,
.logo:hover .mobile-logo > div {
    color: var(--primary-dark) !important;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-text h2 {
        font-size: 1.5rem;
    }
    
    .mobile-logo > div {
        font-size: 1.1rem;
    }
    
    .mobile-logo small {
        font-size: 0.55rem !important;
    }
}

/* Base Styles */
body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden !important;
    position: relative;
}

html {
    overflow-x: hidden !important;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .container, .container-fluid {
        overflow-x: hidden !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
        max-width: calc(100% + 16px) !important;
    }
    
    .col, .col-*, [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Specific heading sizes */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Mobile responsive headings */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    h5 {
        font-size: 1.1rem;
    }
    h6 {
        font-size: 1rem;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}

/* Text and Background Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
.topbar {
    background-color: #000 !important;
    color: #fff;
    font-size: 0.875rem;
}

.topbar .social-links a {
    color: #fff;
    transition: color 0.3s ease;
}

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

.top-bar {
    font-size: 0.85rem;
    color: #FFB0BD !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.navbar-brand small {
    font-size: 0.6rem;
    font-weight: 400;
    display: block;
    line-height: 1;
    color: #6c757d;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: #ffc107;
    border-radius: 2px;
}

.navbar-nav .nav-item {
    white-space: nowrap;
    margin: 0 0.5rem;
}

.main-nav {
    z-index: 1030;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav .navbar-nav {
    gap: 1rem;
}

.main-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
}

.main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #ffc107;
    font-weight: 600;
}

.dropdown-menu {
    z-index: 1050 !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Search Form Styling */
.search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: var(--white);
    min-width: 300px;
}

.search-form .form-control {
    border: none;
    background: var(--white);
    padding: 12px 20px;
    font-size: 0.95rem;
}

.search-form .form-control:focus {
    box-shadow: none;
    border: none;
    background: var(--white);
}

.search-form .btn {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0;
}

.search-form .btn:hover {
    background: var(--primary-dark);
}

/* Mobile Search Styling */
.mobile-search .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: var(--white);
}

.mobile-search .form-control {
    border: none;
    background: var(--white);
    padding: 10px 15px;
    font-size: 0.9rem;
}

.mobile-search .form-control:focus {
    box-shadow: none;
    border: none;
    background: var(--white);
}

.mobile-search .btn {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 0;
}

.mobile-search .btn:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: var(--primary-color) !important;
    border: none !important;
    color: var(--white) !important;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

/* Bottom Navbar for Mobile - Sync with main navbar styling */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 15px rgba(255, 176, 189, 0.3);
    padding: 8px 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border-radius: 10px;
    margin: 3px;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ffc107;
    border-radius: 1px;
}

.bottom-nav-item i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.bottom-nav-item span {
    font-weight: 500;
}

/* Floating Corner Button */
.floating-corner {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 1040;
    display: none;
}

.floating-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.6);
    color: var(--white);
}

/* Hero/Banner Section */
.hero-section {
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section .btn {
    font-size: 1rem;
    padding: 0.6rem 3rem;
    border-radius: 5px !important;
    min-width: 100px;
    margin: 0.25rem;
}

.hero-section .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #ffffff !important;
}

.hero-section .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: #fff;
    color: #000;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

/* Desktop hover effects only */
@media (min-width: 769px) and (hover: hover) {
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .product-card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    .category-card:hover {
        background-color: #ffebf0;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 176, 189, 0.3);
    }
    
    .thumbnail-img:hover {
        border-color: var(--primary-color);
        transform: scale(1.05);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    .product-add-to-cart-btn:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 176, 189, 0.4);
    }
    
    .product-zalo-btn:hover {
        transform: translateY(-1px);
    }
    
    .product-wishlist-btn:hover {
        transform: translateY(-1px);
    }
}

/* Disable all hover effects on mobile and touch devices */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    * {
        transition: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important;
    }
    
    a, button, .btn, .card, .product-card {
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
    
    /* Disable all animations and transitions */
    .product-card,
    .product-card *,
    .category-card,
    .category-card *,
    .card,
    .card *,
    .thumbnail-img,
    .btn,
    .btn *,
    a,
    a * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .product-card:hover,
    .category-card:hover,
    .thumbnail-img:hover,
    .btn:hover,
    .product-add-to-cart-btn:hover,
    .product-zalo-btn:hover,
    .product-wishlist-btn:hover,
    a:hover,
    .card:hover {
        transform: none !important;
        box-shadow: none !important;
        background-color: initial !important;
        color: initial !important;
        border-color: initial !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Force remove all hover pseudo-classes */
    .product-card,
    .category-card,
    .thumbnail-img,
    .btn,
    .product-add-to-cart-btn,
    .product-zalo-btn,
    .product-wishlist-btn,
    a,
    .card {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    /* Ensure links work on first tap */
    .product-card a,
    .card a,
    a.text-decoration-none {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 176, 189, 0.3);
    background-color: #fce4ec;
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-section:last-child {
    border-bottom: none;
}

.category-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-section .category-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-section .btn-outline-primary {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.category-section .btn-outline-primary:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 176, 189, 0.3);
}

/* Category Banner Section */
.category-banner-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    min-height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
}

.category-banner-section .container {
    position: relative;
    z-index: 2;
}

.category-banner-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.category-banner-section .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    opacity: 0.9;
}

.category-banner-section .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

/* Category Page Styling */
.category-page body {
    background-color: var(--white);
}

.category-page .category-banner-section {
    background: #FFB0BD !important;
}

.category-page .btn-outline-primary {
    color: white;
    border-color: #FFB0BD;
}

.category-page .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: var(--white);
}

.category-page .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.category-page .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Fix button trong category page */
.category-page .btn-primary {
    background-color: #FFB0BD !important;
    border-color: #FFB0BD !important;
    color: white !important;
}

.category-page .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

.category-page .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.category-page .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Product Detail Page Headings */
.product-detail h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-detail h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}
.logo-text .product-detail h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;  
    padding-bottom: 0.5rem;
}

.product-detail h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    margin-top: 1.5rem;
}

.product-detail h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

.product-detail h5 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-detail h6 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Mobile product detail headings */
@media (max-width: 768px) {
    .product-detail h1 {
        font-size: 1.8rem;
    }
    .product-detail h2 {
        font-size: 1.5rem;
    }
    .product-detail h3 {
        font-size: 1.3rem;
    }
    .product-detail h4 {
        font-size: 1.1rem;
    }
}

/* Features Section */
.features-section {
    background: var(--bg-light);
}

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

.features-section .row {
    align-items: stretch;
}

.features-section .col-lg-3,
.features-section .col-md-6,
.features-section .col-4 {
    display: flex;
    align-items: stretch;
}

.features-section .text-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 120px;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* .features-section .text-center:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
} */

.features-section h6 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.features-section p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 176, 189, 0.4);
}

.category-tag.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(255, 176, 189, 0.4);
}

/* Cart Quantity Controls */
.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem;
    max-width: 150px;
}

.cart-quantity-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cart-quantity-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cart-quantity-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cart-quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    width: 60px;
    height: 35px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity-input:focus {
    background: var(--bg-light);
    border-radius: 4px;
}

.cart-remove-btn {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.cart-remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Fix triệt để slider ảnh: giữ đúng tỷ lệ ảnh, nút mũi tên luôn căn giữa, không bị méo */
.main-image-container {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: var(--white);
  width: 100%;
  margin: 0 auto 20px auto;
  display: block;
}
.product-image, .main-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  position: relative;
  z-index: 1;
  background: #fff;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.2s;
}
.image-nav-prev { left: 10px; right: auto !important; }
.image-nav-next { right: 10px; left: auto !important; }
@media (max-width: 768px) {
  .main-image-container {
    border-radius: 12px;
  }
  .product-image, .main-image-container img {
    border-radius: 12px;
  }
  .image-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .image-nav-prev { left: 4px; right: auto !important; }
  .image-nav-next { right: 4px; left: auto !important; }
}

.image-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    opacity: 1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.image-nav-prev {
    left: 15px;
}

.image-nav-next {
    right: 15px;
}

@media (max-width: 768px) {
    .image-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .image-nav-prev {
        left: 10px;
    }
    
    .image-nav-next {
        right: 10px;
    }
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 176, 189, 0.3);
}

/* Product Detail Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.nav-tabs .nav-item {
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
    background: rgba(255, 176, 189, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 176, 189, 0.1);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

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

.blog-card a {
    color: inherit;
    text-decoration: none;
}

.blog-card a:hover {
    color: inherit;
    text-decoration: none;
}

.blog-card .card-title {
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: var(--primary-color) !important;
}

.blog-image {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card .card-img-top {
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-body {
    background: white;
}

.blog-card .card-title {
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: var(--primary-color);
}

/* Link Colors */
a:not(.action-link):not(.nav-link):not(.dropdown-item):not(.category-tag) {
    color: var(--primary-color);
}

a:not(.action-link):not(.nav-link):not(.dropdown-item):not(.category-tag):hover {
    color: var(--primary-dark) !important;
}

.action-link {
    color: var(--text-dark) !important;
}

.action-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        min-height: 280px !important;
        max-height: 280px;
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        border-radius: 5px !important;
        min-width: 100px;
        margin: 0.25rem;
    }
    
    /* Features Section */
    .features-section {
        padding: 1rem 0 !important;
    }
    
    .features-section .col-4 {
        margin-bottom: 0.5rem;
    }
    
    .features-section i {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .features-section h6 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .features-section p {
        font-size: 0.65rem;
        margin-bottom: 0;
        line-height: 1.2;
    }
    
    /* Category */
    .category-description {
        display: none;
    }
    
    .btn-see-more {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Product Titles */
    .product-title-mobile {
        font-size: 0.8rem;
        line-height: 1.2;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* Mobile Logo */
    .mobile-logo {
        font-size: 1.4rem !important;
        font-weight: 600;
    }
    
    .mobile-logo small {
        margin-top: 2px !important;
        display: block;
        font-size: 0.55rem !important;
    }
    
    /* Top Navbar */
    .topbar {
        padding: 0.25rem 0;
        font-size: 0.75rem;
    }
    
    .topbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .topbar .top-bar {
        color: #FFB0BD;
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .topbar .top-bar i {
        margin-right: 0.25rem;
        font-size: 0.8rem;
    }
    
    /* Mobile Sidebar */
    .mobile-sidebar-btn {
        background-color: var(--primary-color) !important;
        border: none !important;
        color: var(--white) !important;
    }
    
    /* Search Form */
    .search-form {
        margin: 0.5rem 0;
    }
    
    .search-form .form-control {
        border-radius: 8px !important;
        border: 1px solid var(--primary-color);
    }
    
    .search-form .btn {
        border-radius: 8px !important;
    }
    
    /* Category Tags */
    .category-filter-mobile {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-filter-mobile::-webkit-scrollbar {
        display: none;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 3px;
    }
    
    /* Cart Quantity Controls Mobile */
    .cart-quantity-controls {
        max-width: 120px;
    }
    
    .cart-quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .cart-quantity-input {
        width: 50px;
        height: 30px;
        font-size: 12px;
    }
    
    .cart-remove-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* Product Detail Mobile */
    .thumbnail-gallery {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .thumbnail-img {
        height: 60px !important;
        width: 60px !important;
    }
    
    /* Tabs Mobile */
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-tabs .nav-link i {
        display: none;
    }
    
    /* Category Banner Mobile */
    .category-banner-section {
        min-height: 200px !important;
        padding: 1rem 0;
    }
    
    .category-banner-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .category-banner-section .lead {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem !important;
    }
    
    .category-header .py-4 {
        padding: 1.5rem 0 !important;
    }
    
    .category-header h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .category-header .text-muted {
        font-size: 0.85rem;
        margin-bottom: 0.75rem !important;
    }
    
    /* Ẩn chỉ phần social links trên mobile, giữ thông tin liên hệ */
    .topbar .social-links,
    .topbar .text-md-end,
    .top-bar .social-links,
    .social-links {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Đảm bảo cột thông tin liên hệ hiển thị full width */
    .topbar .col-md-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Đảm bảo cột social links nhưng giữ cột thông tin liên hệ */
    .topbar .col-md-6.text-md-end {
        display: none !important;
    }
    
    /* Hero section mobile buttons */
    .hero-section .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        min-width: 100px;
    }
    
    /* Features - show only 3 columns on mobile */
    .features-section .col-md-3 {
        display: none;
    }
    
    .features-section .col-md-3:nth-child(-n+3) {
        display: block;
    }
    
    /* Product features - hide shipping and warranty on mobile product pages */
    .product-features .col-6:nth-child(1),
    .product-features .col-6:nth-child(2) {
        display: none;
    }
    
    /* Hero Section Mobile Buttons */
    .hero-section .d-flex.flex-column.flex-sm-row {
        flex-direction: row !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .hero-section .btn {
        flex: 1 !important;
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        min-width: auto !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    
    .hero-section .btn i {
        margin-right: 0.3rem !important;
    }
}

/* Desktop Specific */
@media (min-width: 769px) {
    .category-banner-section h1 {
        font-size: 2.2rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.cart-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    position: sticky;
    top: 20px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Cart Page Buttons */
.cart-page .btn {
    color: #fff !important;
}

.cart-page .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

.cart-page .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
}

.cart-page .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Wishlist Remove Button */
.wishlist-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.8rem;
}

.wishlist-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
    color: white;
}

/* Product Detail Category Badges */
.product-detail .category-badge {
    background-color: #6c757d !important;
    color: #fff !important;
    border: 1px solid #6c757d;
    padding: 0.2rem 0.4rem;
    font-size: 0.675rem;
    text-decoration: none;
}

.product-detail .category-badge:hover {
    background-color: #5a6268 !important;
    color: #fff !important;
    text-decoration: none;
}

/* Breadcrumb Styling - Custom CSS for gray section with reduced height */
.breadcrumb {
    background-color: var(--bg-light);
    border-radius: 0;
    margin-top: 0.1rem;
    min-height: auto;
}

.breadcrumb-item {
    font-size: 0.85rem;
    line-height: 1.2;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-weight: bold;
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Breadcrumb trong category page */
.category-page .breadcrumb-item a {
    color: #007bff;
}

.category-page .breadcrumb-item a:hover {
    color: #0056b3;
}

/* Mobile breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        margin: 0;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
        line-height: 1.1;
    }
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;

}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,255,255,0.3);
    border-bottom: 2px solid #ffc107;
}

.nav-menu a i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* Cart Page Styles */
.cart-page .cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-page .cart-item:last-child {
    border-bottom: none;
}

.cart-page .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-page .cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.cart-page .cart-item-sku {
    font-size: 0.75rem;
    color: #6c757d;
}

.cart-page .cart-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-page .cart-item-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.cart-page .cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.cart-page .cart-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.cart-page .cart-quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-page .cart-quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: white;
}

.cart-page .cart-remove-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dc3545;
    background: #f8d7da;
    color: #dc3545;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.cart-page .cart-remove-btn:hover {
    background: #dc3545;
    color: white;
}

.cart-page .cart-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cart-page .cart-summary h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-page .cart-item .row > div {
        margin-bottom: 0.5rem;
    }
    
    .cart-page .cart-item-title {
        font-size: 0.85rem;
    }
    
    .cart-page .cart-item-price,
    .cart-page .cart-item-total {
        font-size: 0.8rem;
    }
    
    .cart-page .cart-quantity-controls {
        justify-content: flex-start;
    }
    
    .cart-page .cart-item-total {
        text-align: left;
        margin-top: 0.5rem;
    }
}

/* Mobile Responsive - Tablet và Mobile */
@media (max-width: 991px) {
    /* Ẩn chỉ phần social links, giữ lại thông tin liên hệ */
    .topbar .social-links,
    .top-bar .social-links,
    .social-links {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Đảm bảo cột đầu tiên (thông tin liên hệ) vẫn hiển thị full width */
    .topbar .col-md-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Product Detail Compact Layout */
.quantity-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: flex-end;
}

.quantity-section .form-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2;
}

.quantity-section .input-group {
    width: 120px !important;
    height: 38px; /* Match button height */
}

.quantity-section .btn-sm {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.8rem !important;
    height: 38px;
}

.quantity-section .form-control-sm {
    font-size: 0.9rem !important;
    padding: 0.375rem 0.5rem !important;
    height: 38px;
}

/* Desktop alignment fix */
.d-flex.gap-2.align-items-center.flex-wrap {
    align-items: flex-end !important;
}

.d-flex.gap-2.flex-fill {
    align-items: center;
    height: 38px; /* Match input group height */
}

.d-flex.gap-2.flex-fill .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive for product buttons */
@media (max-width: 768px) {
    .d-flex.gap-2.align-items-center.flex-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .quantity-section {
        align-self: flex-start !important;
    }
    
    .d-flex.gap-2.flex-fill {
        width: 100% !important;
        height: auto !important;
    }
    
    .d-flex.gap-2.flex-fill .btn {
        flex: 1 !important;
        min-width: auto !important;
        height: auto !important;
    }
    
    .wishlist-btn {
        width: 45px !important;
        flex: 0 0 45px !important;
    }
}

/* Ensure buttons have proper spacing */
.d-flex.gap-2.flex-fill {
    gap: 0.5rem !important;
}

.d-flex.gap-2.flex-fill .btn {
    white-space: nowrap;
}

/* Product Add to Cart Button Styling */
.product-add-to-cart-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    min-height: 44px;
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-add-to-cart-btn:active {
  background: var(--primary-dark) !important;
  box-shadow: 0 1px 2px rgba(255,176,189,0.12), 0 1px 2px rgba(0,0,0,0.08);
  transform: scale(0.97);
}
.product-add-to-cart-btn i {
  font-size: 1.2em;
}
@media (max-width: 768px) {
  .product-add-to-cart-btn {
    font-size: 0.98rem !important;
    min-width: 100px;
    min-height: 44px;
    padding: 0.55rem 0.9rem !important;
  }
}

.product-zalo-btn {
    border-radius: 8px;
    font-size: 0.85rem !important;
    padding: 0.45rem 0.9rem !important;
    min-width: 90px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.product-wishlist-btn {
    border-radius: 8px;
    font-size: 0.85rem !important;
    padding: 0.45rem !important;
    width: 42px;
    height: 42px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .product-add-to-cart-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        min-width: auto;
        width: 100% !important;
    }
    
    .product-zalo-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        min-width: auto;
        width: 100% !important;
    }
    
    .product-wishlist-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
        width: 100% !important;
        height: auto;
    }
}

/* Product Features Section - Custom Styling */
.product-features {
    margin-top: 2rem;
}

.product-features .feature-item {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* .product-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
} */

/* .product-features .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
} */

/* .product-features .feature-item:hover::before {
    opacity: 1;
} */

.product-features .feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

/* .product-features .feature-item:hover .feature-icon {
    transform: scale(1.1);
} */

.product-features .feature-icon.text-primary {
    color: var(--primary-color) !important;
}

.product-features .feature-icon.text-success {
    color: #28a745 !important;
}

.product-features .feature-icon.text-warning {
    color: #ffc107 !important;
}

.product-features .feature-icon.text-info {
    color: #17a2b8 !important;
}

.product-features .feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

/* .product-features .feature-item:hover .feature-text {
    color: var(--primary-color);
} */

@media (max-width: 768px) {
    .product-features .feature-item {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .product-features .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .product-features .feature-text {
        font-size: 0.8rem;
    }
    
    /* Mobile Specific Styles - Consolidated from mobile.css */
    
    /* Mobile Hero */
    .hero-section {
        min-height: 400px;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        margin: 0.25rem auto;
        display: block;
        width: 100%;
        max-width: 250px;
    }

    /* Mobile Product Cards */
    .product-title-mobile {
        font-size: 0.85rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-card .card-body {
        padding: 0.75rem !important;
    }

    .product-card .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    /* Mobile Logo */
    .mobile-logo {
        font-size: 1.2rem;
    }

    .mobile-logo small {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    /* Mobile Category Filter */
    .category-filter-mobile {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-filter-mobile::-webkit-scrollbar {
        display: none;
    }

    .category-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0 0.25rem;
        white-space: nowrap;
    }

    /* Mobile Cart */
    .cart-quantity-controls {
        max-width: 120px;
        font-size: 0.8rem;
    }

    .cart-quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .cart-quantity-input {
        width: 50px;
        height: 30px;
        font-size: 12px;
    }

    .cart-remove-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-left: 0.25rem;
    }

    /* Mobile Thumbnails */
    .thumbnail-gallery {
        justify-content: flex-start;
        gap: 5px;
    }

    .thumbnail-img {
        width: 100px;
        height: 100px;
    }

    /* Mobile Tabs */
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-tabs .nav-link i {
        margin-right: 0.25rem;
    }

    /* Mobile Category Banner */
    .category-banner-section {
        min-height: 150px !important;
        padding: 1rem 0;
    }

    .category-banner-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
    }

    .category-banner-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Mobile Category Header */
    .category-header .py-4 {
        padding: 1rem 0 !important;
    }

    .category-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .category-header .text-muted {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Mobile Product Features */
    .product-features .col-6:nth-child(1),
    .product-features .col-6:nth-child(2) {
        margin-bottom: 1rem;
    }

    /* Mobile Hero Button Container */
    .hero-section .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
        align-items: center;
        gap: 0.5rem;
    }

    /* Mobile Hero Button Styling */
    .hero-section .btn {
        width: 100%;
        max-width: 220px;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .hero-section .btn i {
        margin-right: 0.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px;
    }
    
    .features-section .col-4 {
        display: flex;
        align-items: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .product-card .card-body {
        padding: 0.5rem !important;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Common Reusable Classes to Replace Inline Styles */

/* Image classes */
.product-image-standard {
    height: 200px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.product-thumbnail {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.icon-badge {
    width: 60px;
    height: 60px;
}

/* Text styling */
.product-title-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

.text-truncate-120 {
    max-width: 120px;
}

.text-truncate-200 {
    max-width: 200px;
}

.small-badge {
    font-size: 0.7rem;
}

.tiny-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.micro-text {
    font-size: 0.65rem;
}

/* Layout and positioning */
.banner-overlay {
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content {
    z-index: 2;
}

.category-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fixed-bottom-navbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    border-top: 1px solid #dee2e6 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}

.bottom-nav-item-style {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-weight: 500;
}

.bottom-nav-icon {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

/* Form styling */
.quantity-input-group {
    width: 120px;
}

.quantity-label {
    font-size: 0.8rem;
}

.quantity-btn {
    padding: 0.25rem 0.5rem;
}

.quantity-input {
    border-left: none;
    border-right: none;
    color: #000 !important;
    background-color: #fff !important;
    font-size: 0.9rem;
}

/* Card styling */
.gradient-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.primary-header-card {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
}

/* Dropdown styling */
.custom-dropdown-menu {
    z-index: 1050;
    min-width: 200px;
}

/* Back to top button */
.back-to-top-btn {
    z-index: 1000;
}

/* Map styling */
.contact-map {
    border: 0;
    border-radius: 10px;
}

/* Monospace text */
.monospace {
    font-family: monospace;
}

/* Category Search in Admin */
.category-search-container {
    position: relative;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-item:hover {
    background-color: #f8f9fa !important;
}

.category-item.parent-category {
    font-weight: 500;
}

.category-item.child-category {
    background-color: #f8f9fa;
}

.toggle-children {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.selected-category .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Category Filter Buttons */
.category-filter-btn {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.category-filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 176, 189, 0.3);
}

/* Simple Button Filters */
.filter-group-btn {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
    position: relative;
}

.filter-group-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 176, 189, 0.3);
}

.filter-group-btn:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 176, 189, 0.25);
}

.filter-group-btn.show {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 176, 189, 0.2);
    min-width: 200px;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 176, 189, 0.1);
    color: var(--primary-color);
}

.dropdown-item:hover .fa-check {
    opacity: 1 !important;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: rgba(255, 176, 189, 0.2);
}

@media (max-width: 768px) {
    .category-filters .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .category-filters .fw-bold {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        text-align: center;
    }
    
    .filter-group-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        width: 100%;
        min-width: auto;
    }
    
    .dropdown-item {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    /* Reorganize mobile layout */
    .category-filters .d-flex.flex-wrap {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-filters .dropdown {
        width: 100%;
    }
}

/* Footer styling fixes */
footer.bg-dark h5,
footer.bg-dark h6,
footer.bg-dark p,
footer.bg-dark span,
footer.bg-dark a,
footer.bg-dark .text-light {
    color: #ffffff !important;
}

footer.bg-dark a:hover {
    color: var(--primary-color) !important;
}

/* Ensure footer brand name is always white */
footer h5 i {
    color: var(--primary-color) !important;
}

/* Product name display fixes */
.product-name,
.card-title,
h1.product-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.product-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    min-height: 2.8em;
}

/* Fix text overflow in product grids */
.product-grid .card-title a {
    display: block;
    word-wrap: break-word;
    text-decoration: none;
    color: inherit;
}

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

/* Category Filter Buttons - Custom Styling to Fix Color Conflicts */
.category-filters .btn-outline-primary {
    background-color: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-filters .btn-outline-primary:hover,
.category-filters .btn-outline-primary:focus,
.category-filters .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 176, 189, 0.3);
}

.category-filters .btn-outline-primary.show {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Filter Selected Indicator */
.filter-selected-indicator {
    font-weight: 600;
    color: #28a745;
}

.category-filters .btn-outline-primary .filter-selected-indicator {
    color: #28a745;
}

.category-filters .btn-outline-primary:hover .filter-selected-indicator,
.category-filters .btn-outline-primary.show .filter-selected-indicator {
    color: #ffffff !important;
}

/* Filter Dropdown Styling */
.category-filters .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 6px !important;
    min-width: 200px;
    max-height: 250px;
    overflow-y: auto;
}

.category-filters .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    color: #495057;
}

.category-filters .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.category-filters .dropdown-item[data-reset="true"] {
    color: #6c757d;
    font-style: italic;
}

.category-filters .dropdown-item[data-reset="true"]:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.category-filters .dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

.category-filters .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Active Filter Button State */
.category-filters .btn-outline-primary.has-active-filter {
    background-color: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.category-filters .btn-outline-primary.has-active-filter:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

/* Loading State */
.category-filters .btn-outline-primary.loading {
    opacity: 0.6;
    pointer-events: none;
}

.category-filters .btn-outline-primary.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Filter Styling */
@media (max-width: 768px) {
    .category-filters .btn-outline-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
        border-radius: 20px;
    }
    
    .category-filters .dropdown-menu {
        min-width: 180px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .category-filters .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .category-filters .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }
}

/* Filter UI Enhancements */
.filter-actions {
    margin-right: 1rem;
}

#clear-all-filters {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-color: #dc3545;
    color: #dc3545;
}

#clear-all-filters:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

#clear-all-filters.loading {
    opacity: 0.7;
    pointer-events: none;
}

#clear-all-filters.loading .fas {
    animation: spin 1s linear infinite;
}

.filter-group-btn.has-active-filter {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
}

.filter-group-btn.has-active-filter .filter-selected-indicator {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
}

.filter-group-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.filter-group-btn.loading .fas {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dynamic Filter Options */
.filter-option.disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f8f9fa;
}

.dropdown-item.filter-option:not(.disabled):hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.dropdown-item.filter-option.disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

/* Filter Group Button Count Indicator */
.filter-group-btn .filter-count {
    font-size: 0.8em;
    opacity: 0.8;
    font-weight: normal;
}

/* Category filters styling */
.category-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-filters .fw-bold {
    color: #495057;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}

/* Filter actions */
.filter-actions {
    margin-right: 1rem;
}

#clear-all-filters {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: white;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

#clear-all-filters:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Filter selected indicator styling */
.filter-selected-indicator .selected-value {
    color: white !important;
}

/* Filter button with active filter styling */
.filter-group-btn.has-active-filter {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Mobile Category Filter Improvements */
.category-scroll-container {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    min-width: max-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.category-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Mobile Filter Groups */
.mobile-filters-container {
    margin-top: 1rem;
}

.mobile-filter-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-filter-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group-title {
    background: #f8f9fa;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.filter-options-scroll {
    padding: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.filter-options-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-options-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.filter-options-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.mobile-filter-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    border-radius: 16px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-option:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.mobile-filter-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive category and filter improvements */
@media (max-width: 768px) {
    .category-filter .d-flex {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-filter-mobile {
        flex-grow: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .category-filter-mobile::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-filter-mobile::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .category-filter-mobile::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }
    
    /* Mobile collapse filter button */
    .mobile-filter-toggle .fas.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .mobile-filter-toggle[aria-expanded="true"] .fas.fa-chevron-down {
        transform: rotate(180deg);
    }
}

.category-filters .dropdown-menu {
    margin-top: 5px !important;
    transform: none !important;
    max-height: 250px;
    overflow-y: auto;
}

.product-title, .card-title, .product-title-mobile, .product-card .card-title, .category-tag, .category-scroll-container a, .blog-card .card-title {
  font-family: 'Inter', sans-serif !important;
}

/* Responsive: Category badge nhỏ gọn trên mobile */
@media (max-width: 576px) {
  .category-badge {
    font-size: 1rem !important;
    padding: 0.375rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 0.5rem !important;
    margin-right: 0.5rem !important;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: none;
    width: auto;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
  .category-badge i {
    font-size: 1em;
    margin-right: 0.5em;
  }
}

@media (max-width: 576px) {
  .product-detail .category-badge {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    margin-right: 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 25px !important;
    max-width: none !important;
    width: auto !important;
  }
  .product-detail .category-badge i {
    font-size: 1em !important;
    margin-right: 0.5em !important;
  }

  /* Ảnh sản phẩm hình vuông trong card trên mobile */
  .product-card .card-img-top {
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    background: #f8f9fa;
    display: block;
  }
}

/* Hiệu ứng bóng đen khi click/touch cho mobile và desktop */
a, button, .btn, .category-tag, .dropdown-item {
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(0,0,0,0.08); /* iOS/Safari */
}

a:active, button:active, .btn:active, .category-tag:active, .dropdown-item:active {
  background: rgba(0,0,0,0.08) !important;
}

/* Sửa nút Thêm vào giỏ: cho phép xuống dòng, tăng min-width, đảm bảo chữ không bị cắt */
.product-add-to-cart-btn {
  white-space: normal;
  min-width: 140px;
  font-size: 0.98rem !important;
  padding: 0.6rem 1.2rem !important;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .product-add-to-cart-btn {
    min-width: 120px;
    font-size: 0.95rem !important;
    padding: 0.55rem 0.8rem !important;
  }
}

/* Nút yêu thích thành hình vuông, icon căn giữa */
.product-wishlist-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 1.3rem;
}
@media (max-width: 768px) {
  .product-wishlist-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.1rem;
  }
}

/* Ẩn nút yêu thích trên mobile */
@media (max-width: 768px) {
  .product-wishlist-btn {
    display: none !important;
  }
}

/* Nút Thêm vào giỏ: tăng min-width, padding, icon nhỏ lại, text không xuống dòng */
.product-add-to-cart-btn {
  min-width: 170px;
  font-size: 0.95rem !important;
  padding: 0.6rem 1.4rem !important;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-add-to-cart-btn i {
  font-size: 1.05em;
}
@media (max-width: 768px) {
  .product-add-to-cart-btn {
    min-width: 140px;
    font-size: 0.93rem !important;
    padding: 0.55rem 1rem !important;
  }
  .product-add-to-cart-btn i {
    font-size: 0.98em;
  }
}

/* Hiệu ứng bóng đen khi click/touch vào ảnh sản phẩm */
.product-card .card-img-top {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.18s;
}
.product-card .card-img-top::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.18s;
  z-index: 2;
}
.product-card .card-img-top:active::after {
  opacity: 1;
}
@media (hover: hover) {
  .product-card .card-img-top:hover::after {
    opacity: 0.08;
  }
}

/* Swipeable image slider cho mobile */
@media (max-width: 768px) {
  .main-image-container.swipeable {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .cart-text {
    display: none !important;
  }
  .cart-count {
    display: none !important;
  }
}