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;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.product-overlay {
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0,0,0,0.4);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-img {
    transition: transform 0.4s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* =========================================================
   CATEGORY TEXT SLIDER
========================================================= */

.category-slider-section {
    background: transparent;
    position: relative;
}

.categorySwiper {
    padding: 30px 0 !important;
}

.categorySwiper .swiper-slide {
    width: auto !important;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-text-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.15); /* Chữ xám nhạt cho mục không active */
    letter-spacing: 2px;
    transition: all 0.4s ease;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0;
}

[data-bs-theme="dark"] .category-text-title {
    color: rgba(255, 255, 255, 0.15); /* Chữ trắng mờ khi ở dark mode */
}

.categorySwiper .swiper-slide-active .category-text-title {
    color: #111111; /* Chữ đen đậm cho mục active */
    text-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .categorySwiper .swiper-slide-active .category-text-title {
    color: #ffffff; /* Chữ trắng đậm cho mục active khi ở dark mode */
    text-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .category-text-title {
        font-size: 2rem;
        padding: 0 10px;
    }
}

/* =========================================================
   TOP BAR
========================================================= */

.top-bar a {
    text-decoration: none;
}

.top-bar a:hover {
    color: #ffc107 !important;
}

.navbar .dropdown-menu {
    min-width: 220px;
    border-radius: 18px;
    background: #ffffff;
    border: none;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.navbar .dropdown-menu .dropdown-item {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #212529;
    transition: all 0.2s ease-in-out;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: #fff4ce;
    color: #b36b00;
}

.navbar .dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: rgba(33, 37, 41, 0.08);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.35rem;
}

header.sticky-top {
    z-index: 1020;
}

/* =========================================================
   HERO BANNER
========================================================= */

.banner-container {
    display: flex;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #0c0c14;
}

.banner-left {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

.product-price {
    font-size: 32px;
    font-weight: bold;
    color: #f59e0b;
}

.product-availability {
    padding: 0.35rem 0.9rem;
}

.product-gallery {
    padding-top: 10px;
}

.product-gallery .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.product-gallery .thumb:hover {
    transform: scale(1.05);
    border-color: #f59e0b;
}

.product-gallery .thumb.active {
    border-color: #f59e0b;
}

.product-tags li span {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-detail-tabs .nav-link {
    color: #495057;
    background: rgba(248,249,250,0.9);
    border-radius: 50px;
    padding: 0.55rem 1rem;
    transition: all 0.3s;
}

.product-detail-tabs .nav-link.active {
    background: #000;
    color: #fff;
}

.product-detail-tabs .nav-link:hover {
    background: #f59e0b;
    color: #fff;
}

.detail-list li {
    margin-bottom: 10px;
}

.detail-list strong {
    color: #333;
}

.product-care {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.product-care h6 {
    margin-bottom: 10px;
}

.product-care p {
    margin: 0;
    line-height: 1.7;
}

/* =========================================================
   REVIEW
========================================================= */

.review-card {
    background: linear-gradient(180deg, #121318 0%, #151827 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.30);
    color: white;
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-card .fw-bold {
    color: white;
}

.review-card p {
    color: #cdd0dc;
}

.review-card small {
    color: rgba(255,255,255,0.65);
}

.rating-distribution .progress {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
}

.rating-distribution .progress-bar {
    background: linear-gradient(90deg, #f59e0b, #ffcc00);
}

.card.bg-black {
    background: #080a10;
}

.card.bg-black .btn-outline-light {
    border-color: rgba(255,255,255,0.18);
}

.card.bg-black .btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
}

/* =========================================================
   REVIEW MODAL
========================================================= */

.modal .star-select i {
    cursor: pointer;
    color: #f59e0b;
    transition: 0.2s;
}

.modal .star-select i:hover {
    transform: scale(1.1);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .banner-container {
        height: 50vh;
        min-height: 300px;
        padding: 10px;
    }

    .banner-left {
        height: 100%;
    }

    .product-price {
        font-size: 26px;
    }

    .product-gallery .thumb {
        width: 60px;
        height: 60px;
    }

    .review-card,
    .rating-distribution .progress {
        border-radius: 18px;
    }
}

/* =========================================================
   PREMIUM UI/UX HOVER EFFECTS
========================================================= */

/* 1. Hiệu ứng quét sáng (Shine) cho Nút bấm */
.btn-warning, .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-warning::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}
.btn-warning:hover::before, .btn-primary:hover::before {
    left: 125%;
}
.btn-warning:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.4);
}

/* 2. Hiệu ứng gạch dưới mượt mà cho Menu/Link (Underline Sweep) */
.nav-link.fw-semibold {
    position: relative;
    display: inline-block;
}
.nav-link.fw-semibold::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--gold-primary, #D4AF37);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}
.nav-link.fw-semibold:hover::after {
    width: 100%;
}

/* 3. Hiệu ứng ánh sáng viền (Glow) cho Card cao cấp */
.luxury-card {
    transition: all 0.4s ease;
}
.luxury-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3) !important;
}

/* 4. Hiệu ứng nhịp đập nhẹ (Pulse) cho Icon */
.pulse-hover:hover {
    animation: pulse-soft 1s infinite;
}
@keyframes pulse-soft {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}