﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.cart-icon-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

    .cart-icon-link:hover {
        transform: scale(1.1);
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Khi badge xuất hiện */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation khi thêm item */
.cart-badge-pulse {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

/* Animation cho cart icon */
.cart-shake {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-badge {
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

/* Language Switcher */
.language-switcher {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

    .language-switcher:hover {
        background-color: rgba(214, 35, 0, 0.1);
    }

/* User dropdown */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: none;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

    .dropdown-item:hover {
        background-color: rgba(214, 35, 0, 0.1);
        color: #D62300;
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
    }

/* Navbar styling */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    color: #D62300 !important;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
}

    .navbar-nav .nav-link:hover {
        color: #D62300 !important;
        background-color: rgba(214, 35, 0, 0.05);
    }

.btn-primary {
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    border: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(214, 35, 0, 0.3);
    }

:root {
    --bk-red: #D62300;
    --bk-orange: #F5A623;
    --bk-yellow: #FFC72C;
    --bk-brown: #512314;
    --bk-beige: #F4EBD9;

    --font-stack: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Global base */
html, body {
    height: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: #f8f9fa;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Theme / Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--bk-red) !important;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--bk-brown) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bk-red) !important;
}

/* Header buttons */
.btn-primary, .btn-primary:active, .btn-primary:focus {
    background-color: var(--bk-red);
    border-color: var(--bk-red);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--bk-brown);
    border-color: var(--bk-brown);
    color: #fff;
}

.btn-secondary, .btn-secondary:active, .btn-secondary:focus {
    background-color: var(--bk-orange);
    border-color: var(--bk-orange);
    color: #fff;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--bk-red) 0%, var(--bk-orange) 100%);
    color: #fff;
    padding: 100px 0;
    margin-bottom: 50px;
}
    .hero-section h1 {
        font-weight: 800;
        letter-spacing: 1px;
    }

    .hero-section p {
        font-size: 1.25rem;
        opacity: 0.95;
    }

    /* Order Now Button */
    .hero-section .btn {
        padding: 15px 40px;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 50px;
        transition: all 0.3s ease;
    }

        .hero-section .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
        }

/* ===== CAROUSEL ARROWS ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 55px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* nền đậm */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 60% 60%;
}

/* Hover cho rõ hơn */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Footer */
.footer {
    background-color: var(--bk-brown);
    color: #ffffff;
    padding: 40px 0;
}

.footer a {
    color: #ffffff;
}

/* Badges & Cart */
.badge-new {
    background-color: var(--bk-orange);
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--bk-red);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Language switcher */
.language-switcher {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--bk-brown);
}

.language-switcher:hover,
.language-switcher:focus {
    background-color: var(--bk-beige);
}

/* Utility helpers */
.position-fixed.top-0.end-0 {
    right: 0;
    left: auto;
}

/* Accessibility / small screens */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        margin: 6px 0;
    }

    .btn-primary {
        padding: 8px 16px;
        border-radius: 20px;
    }
}

.promotion-section {
    margin: 60px auto;
}

#promotionCarousel {
    max-width: 900px;
    margin: auto;
}

    #promotionCarousel .card {
        border: none;
        border-radius: 20px;
        background: linear-gradient(135deg, #fff4e6, #ffe0b2);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    #promotionCarousel .card-body {
        padding: 60px 40px;
    }

    #promotionCarousel h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    #promotionCarousel p {
        font-size: 1.1rem;
        color: #555;
    }

    #promotionCarousel h2 {
        font-size: 3rem;
        font-weight: 800;
        margin-top: 20px;
    }

    .carousel-item {
    transition: transform 0.8s ease-in-out;
}
