/* Leviccons - Electronic E-commerce Theme CSS */

/* Variables */
:root {
    --primary-color: #dc5e4f;
    --primary-light: #ffeae8;
    --primary-dark: #b94a3d;
    --secondary-color: #e58179;
    --accent-color: #ff4e64;
    --light-color: #F9FAFB;
    --dark-color: #1E293B;
    --text-color: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
    --animation-duration: 0.5s;
    --header-height: 80px;
    --header-bg: #ffffff;
    --nav-text-color: #334155;
    --nav-active-color: var(--primary-color);
    --nav-hover-color: var(--primary-dark);
    
    /* Thêm các biến mới */
    --header-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --input-bg: #f8fafc;
    --input-focus-shadow: 0 0 0 3px rgba(220, 94, 79, 0.15);
    --button-hover-transform: translateY(-2px);
    --icon-hover-scale: scale(1.1);
    --dropdown-shadow: 0 10px 15px rgba(0,0,0,0.1);
    --dropdown-animation-duration: 0.25s;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: auto;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.section-title:hover h2::after {
    width: 100%;
}

.btn {
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(220, 94, 79, 0.3);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(220, 94, 79, 0.3);
}

.btn-pulse {
    animation: btnPulse 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heart-beat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cart-pulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.heart-beat {
    animation: heart-beat 0.8s ease;
}

.cart-pulse {
    animation: cart-pulse 0.8s ease;
}

.star-animate {
    animation: heart-beat 0.5s ease;
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Header */
.main-header {
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}

.main-header .container {
    position: relative;
}

.main-header .row {
    min-height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.logo a {
    display: block;
    text-decoration: none;
}

/* Header Navigation Styles */
.header-nav {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.nav-menu .nav-item {
    position: relative;
}

.nav-menu .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--nav-text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-menu .nav-link:hover {
    color: var(--nav-hover-color);
}

.nav-menu .nav-item.active .nav-link {
    color: var(--nav-active-color);
    position: relative;
}

.nav-menu .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 0.75rem 0;
    margin: 0.25rem 0 0;
    background-color: var(--header-bg);
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--dropdown-animation-duration) ease;
}

.nav-menu .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--nav-text-color);
    transition: var(--transition);
    position: relative;
}

.nav-menu .dropdown-item:hover,
.nav-menu .dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-menu .dropdown-item:hover {
    padding-left: 1.75rem;
}

/* Search form */
.search-form {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.search-form input {
    padding: 0.625rem 3rem 0.625rem 1rem;
    height: 45px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    width: 100%;
    background-color: var(--input-bg);
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--input-focus-shadow);
    outline: none;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 35px;
    width: 35px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) var(--icon-hover-scale);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    height: 100%;
}

.header-icons a {
    position: relative;
    color: var(--dark-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    transition: var(--transition);
}

.header-icons a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: var(--button-hover-transform);
}

.header-icons a:hover i {
    transform: var(--icon-hover-scale);
}

.header-icons .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Navigation */
.mobile-nav {
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav .navbar-toggler {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--light-color);
    border: none;
    text-align: left;
    border-radius: 0;
}

.mobile-nav .navbar-collapse {
    background-color: var(--header-bg);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.mobile-nav .nav-link {
    padding: 0.75rem 1rem;
    color: var(--nav-text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav .nav-item:last-child .nav-link {
    border-bottom: none;
}

.mobile-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0 1.5rem;
    margin: 0;
    background-color: var(--light-color);
}

.mobile-nav .dropdown-item {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav .dropdown-item:last-child {
    border-bottom: none;
}

/* Mobile Search */
.mobile-search {
    padding: 1rem 0;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-search .search-form {
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .nav-menu {
        justify-content: flex-start;
    }
    
    .nav-menu .nav-item {
        margin: 0 1px;
    }
    
    .nav-menu .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .search-form {
        max-width: 220px;
    }
}

@media (max-width: 767.98px) {
    .main-header .row {
        min-height: 60px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .header-icons {
        gap: 0.5rem;
    }
    
    .header-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin: 2rem 0;
}

.hero-slide {
    padding: 3rem 0;
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
}

.hero-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-slide:hover .hero-image {
    transform: scale(1.05);
}

/* Slick Slider Customization */
.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--border-color);
    opacity: 1;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
}

.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    z-index: 1;
    transition: var(--transition);
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:hover, .slick-next:hover {
    background-color: var(--primary-color);
}

.slick-prev:hover:before, .slick-next:hover:before {
    color: white;
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: var(--primary-color);
    opacity: 1;
}

.slick-prev:before {
    content: '\f104';
}

.slick-next:before {
    content: '\f105';
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.feature-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.feature-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-notification {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 15px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-notification.success {
    border-left: 4px solid var(--success-color);
}

.toast-notification.error {
    border-left: 4px solid var(--danger-color);
}

.toast-notification.warning {
    border-left: 4px solid var(--warning-color);
}

.toast-notification.info {
    border-left: 4px solid #17a2b8;
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.toast-notification.success .toast-icon {
    color: var(--success-color);
}

.toast-notification.error .toast-icon {
    color: var(--danger-color);
}

.toast-notification.warning .toast-icon {
    color: var(--warning-color);
}

.toast-notification.info .toast-icon {
    color: #17a2b8;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    padding-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-about h4,
.footer-links h4,
.footer-newsletter h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    height: 50px;
    border-radius: 5px;
    border: none;
    padding-right: 120px;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0 1.5rem;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.payment-methods img {
    height: 20px;
    width: auto;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 1rem 0;
    background-color: var(--light-color);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--text-muted);
}

/* Card hover effect */
.card-hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

/* Input focus effect */
.input-focused {
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-item.active::after,
    .navbar-nav .nav-item:hover::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-price {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .feature-content h3 {
        font-size: 0.9rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .footer {
        padding-top: 3rem;
    }
    
    .footer-about, .footer-links, .footer-newsletter {
        margin-bottom: 2rem;
    }
}

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image .main-image {
    opacity: 1;
}

.product-image .hover-image {
    opacity: 0;
}

.product-card:hover .main-image {
    opacity: 0;
}

.product-card:hover .hover-image {
    opacity: 1;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

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

.action-btn .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background-color: var(--success-color);
    color: var(--white);
}

.product-badge.sale {
    background-color: var(--danger-color);
    color: var(--white);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-rating i {
    color: var(--warning-color);
    font-size: 14px;
    margin-right: 2px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-footer {
    padding: 0 15px 15px;
}

.product-footer .btn {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding: 8px 10px;
}

@media (max-width: 576px) {
    .product-footer .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .product-footer .btn i {
        margin-right: 3px;
    }
}

.floating-contact-group {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.floating-contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.floating-contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.floating-contact-btn:hover::before {
    transform: translateX(0);
}
.zalo-btn {
    background: radial-gradient(circle at 30% 30%, #4da7ff 80%, #2196f3 100%);
    animation: pulse 2s infinite;
}
.phone-btn {
    background: radial-gradient(circle at 30% 30%, #7be86c 80%, #43c800 100%);
    animation: pulse 2s infinite;
}
.floating-contact-btn img,
.floating-contact-btn i {
    width: 32px;
    height: 32px;
    font-size: 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(33, 150, 243, 0.2);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
        transform: scale(1);
    }
}


