:root {
    --dragon-red: #D32F2F;
    --dragon-red-hover: #b71c1c;
    --deep-charcoal: #1A1A1A;
    --gold-accent: #D4AF37;
    --gold-accent-hover: #b5952f;
    --warm-beige: #FDF3E1;
    --slate-gray: #78309C;
    --text-light: #6c757d;
}

html {
    background-color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--deep-charcoal);
    background-color: var(--warm-beige);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.text-dragon-red {
    color: var(--dragon-red) !important;
}

.text-deep-charcoal {
    color: var(--deep-charcoal) !important;
}

.text-gold-accent {
    color: var(--gold-accent) !important;
}

.bg-dragon-red {
    background-color: var(--dragon-red) !important;
}

.bg-deep-charcoal {
    background-color: var(--deep-charcoal) !important;
}

.bg-gold-accent {
    background-color: var(--gold-accent) !important;
}

.bg-soft-gradient {
    background: linear-gradient(135deg, #FDF3E1 0%, #FFFFFF 50%, #FDF3E1 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.py-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .py-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 992px) {
    .py-section {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

@media (max-width: 768px) {
    .py-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .py-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

.navbar-custom {
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    background-color: transparent;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.nav-link-custom {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-link-custom:hover {
    color: var(--dragon-red);
}

.navbar-scrolled .nav-link-custom {
    color: var(--deep-charcoal);
}

.navbar-scrolled .nav-link-custom:hover {
    color: var(--dragon-red);
}

#logo-text-box {
    transition: color 0.3s;
}

.btn-custom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-dragon {
    background-color: var(--dragon-red);
    color: white;
    border: 1px solid var(--dragon-red);
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.2);
}

.btn-primary-dragon:hover {
    background-color: var(--dragon-red-hover);
    border-color: var(--dragon-red-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.3);
}

.navbar-custom #mobile-menu-btn,
.navbar-custom .mobile-menu-toggle-btn {
    color: #ffffff;
    background: transparent !important;
    transition: color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.navbar-custom.navbar-scrolled #mobile-menu-btn,
.navbar-custom.navbar-scrolled .mobile-menu-toggle-btn {
    color: #0b0f19 !important;
}

.navbar-custom.navbar-scrolled #mobile-menu-btn:hover,
.navbar-custom.navbar-scrolled .mobile-menu-toggle-btn:hover {
    color: var(--dragon-red) !important;
}

/* Mobile Menu Backdrop Overlay (Lightweight & Smooth) */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.mobile-menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Drawer (Hardware-accelerated Smooth Slide from Right) */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    min-width: 270px;
    max-width: 360px;
    height: 100dvh;
    z-index: 1060;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
    box-sizing: border-box;
}

.mobile-menu-drawer.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
}

.mobile-menu-drawer-header {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mobile-drawer-logo {
    filter: none !important;
    height: 36px;
    width: auto;
    display: block;
}

.mobile-menu-close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:active {
    background: #D32F2F !important;
    border-color: #D32F2F !important;
    color: #ffffff !important;
}

.mobile-menu-close-btn i,
.mobile-menu-close-btn svg {
    display: inline-block !important;
    color: inherit !important;
    line-height: 1 !important;
    font-size: 1.15rem !important;
}

.mobile-menu-nav {
    padding: 0.75rem 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.4rem;
    color: #334155;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    color: #d32f2f;
    background: #fef2f2;
    border-left-color: #d32f2f;
}

.mobile-menu-link.active {
    color: #d32f2f !important;
    font-weight: 700;
    background: rgba(211, 47, 47, 0.08);
    border-left-color: #d32f2f;
}

.mobile-menu-footer {
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

/* Prevent page scrolling beneath overlay */
body.mobile-menu-open,
html.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--deep-charcoal);
    color: white;
}

.hero-badge {
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #FDF3E1;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap !important;
    max-width: 95vw;
    box-sizing: border-box;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold-accent);
    box-shadow: 0 0 8px var(--gold-accent);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.85rem);
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
    letter-spacing: 1.5px;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Scroll Down Indicator (Mouse Capsule & Green Wheel Animation) */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.85;
}

.hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

.hero-scroll-indicator .mouse-icon {
    width: 22px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 0.55rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.hero-scroll-indicator:hover .mouse-icon {
    border-color: rgba(255, 255, 255, 0.95);
}

.hero-scroll-indicator .mouse-wheel {
    width: 3.5px;
    height: 8px;
    background-color: #00d26a;
    border-radius: 2px;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(0, 210, 106, 0.8);
    animation: mouseWheelScroll 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes mouseWheelScroll {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

.hero-scroll-indicator .scroll-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    font-family: inherit;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-text {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 1.25rem;
    }
    .hero-scroll-indicator .mouse-icon {
        width: 19px;
        height: 32px;
        border-radius: 11px;
        margin-bottom: 0.4rem;
    }
    .hero-scroll-indicator .mouse-wheel {
        width: 3px;
        height: 6px;
        margin-top: 5px;
    }
    .hero-scroll-indicator .scroll-text {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5rem 1.25rem 3rem;
    }
    .hero-content {
        margin-top: -3.5rem;
    }
    .hero-badge {
        font-size: clamp(0.62rem, 2.7vw, 0.72rem) !important;
        letter-spacing: 0.6px !important;
        padding: 0.3rem 0.75rem !important;
        margin-bottom: 0.85rem !important;
        white-space: nowrap !important;
        max-width: 92vw !important;
    }
    .hero-title {
        font-size: clamp(1.75rem, 6.2vw, 2.35rem);
        line-height: 1.22;
        margin-bottom: 0.75rem !important;
    }
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.8px;
        line-height: 1.45;
        margin-bottom: 1.5rem !important;
    }
    .hero-actions {
        gap: 0.65rem !important;
    }
    .hero-actions .btn-custom {
        width: 100%;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.92rem !important;
    }
    .glow-red {
        width: 14rem;
        height: 14rem;
        left: 5%;
        filter: blur(70px);
    }
    .glow-gold {
        width: 14rem;
        height: 14rem;
        right: 5%;
        filter: blur(70px);
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-top: -7rem;
    }
    .hero-badge {
        font-size: clamp(0.56rem, 2.5vw, 0.66rem) !important;
        letter-spacing: 0.35px !important;
        padding: 0.25rem 0.6rem !important;
    }
    .hero-badge-dot {
        width: 5px !important;
        height: 5px !important;
        flex-shrink: 0;
    }
    .hero-title {
        font-size: clamp(1.5rem, 5.8vw, 1.95rem);
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 1.25rem !important;
    }
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
}

.glow-red {
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(211, 47, 47, 0.2);
}

.glow-gold {
    bottom: 0;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(212, 175, 55, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gradient-red {
    background: linear-gradient(to right, var(--dragon-red), #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(to right, var(--gold-accent), #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-glass {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    border-radius: 2.5rem;
    border: 1px solid white;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
}

.glass-card:hover {
    transform: translateY(-8px);
}

.glass-card.hover-shadow-red:hover {
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.08);
}

.glass-card.hover-shadow-gold:hover {
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}

.glass-card.hover-shadow-purple:hover {
    box-shadow: 0 20px 50px rgba(120, 48, 156, 0.08);
}

.card-img-wrapper {
    position: relative;
    height: 20rem;
    background-color: #f8f9fa;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.glass-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 10;
}

.glass-card:hover .card-overlay {
    opacity: 1;
}

.badge-gold {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--gold-accent), #eab308);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-card {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--dragon-red);
    background-color: var(--dragon-red);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;

    &:hover {
        background-color: var(--dragon-red-hover);
        border-color: var(--dragon-red-hover);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(211, 47, 47, 0.3);
    }
}

.about-image-wrapper {
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    transition: all 0.3s;
}

.feature-item:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1rem;
    border: 1px solid white;
    transition: all 0.5s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.news-img-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    height: 20rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease-out;
}

.footer-wrapper {
    background-color: var(--deep-charcoal);
    color: #ffffff;
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--dragon-red);
    position: relative;
    overflow: hidden;
}

.footer-wrapper p,
.footer-wrapper .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-wrapper .footer-links a,
.footer-wrapper .footer-list a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-wrapper .footer-links a:hover,
.footer-wrapper .footer-list a:hover {
    color: var(--gold-accent) !important;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-4px);
    color: white;
}

.social-link.fb:hover {
    background-color: var(--dragon-red);
}

.social-link.ig:hover {
    background-color: var(--gold-accent);
}

.footer-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-list li {
    margin-bottom: 1rem;
}

.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.floating-widgets {
    position: fixed;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#back-to-top {
    --scroll-progress: 0deg;
    width: 58px;
    height: 58px;
    background: conic-gradient(var(--dragon-red) 0deg var(--scroll-progress), transparent var(--scroll-progress) 360deg);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

#back-to-top::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background-color: var(--deep-charcoal);
    transition: background-color 0.3s ease;
    z-index: 0;
}

#back-to-top>svg {
    position: relative;
    z-index: 1;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover::before {
    background-color: var(--dragon-red);
}

.chat-widget-btn {
    width: 58px;
    height: 58px;
    background-color: var(--dragon-red);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.chat-widget-btn:hover {
    transform: scale(1.05);
}

.chat-widget-btn .icon-close {
    display: none;
}

.chat-widget-btn.active .icon-chat {
    display: none;
}

.chat-widget-btn.active .icon-close {
    display: block;
}

.chat-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--gold-accent);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.chat-panel {
    width: 360px;
    height: 500px;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    position: absolute;
    bottom: 10.5rem;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    z-index: 1060;
}

@media (max-width: 768px) {
    .chat-panel {
        position: fixed !important;
        bottom: 4rem !important;
        right: 0rem !important;
        width: calc(100vw - 2rem) !important;
        max-width: 400px !important;
        height: 72vh !important;
        max-height: 540px !important;
        margin: 0 auto !important;
        border-radius: 1.25rem !important;
        z-index: 1065 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
    }
}

.chat-panel.active,
.chat-panel.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    display: flex !important;
    pointer-events: auto !important;
}

.chat-active-hidden,
body.dragon-chat-open #arcontactus,
body.dragon-chat-open .arcontactus-widget {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    body.dragon-chat-open .floating-widgets #back-to-top {
        display: none !important;
    }
}


.chat-header {
    background-color: var(--dragon-red);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.25rem;
    background-color: rgba(253, 243, 225, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

.chat-scroll::-webkit-scrollbar {
    width: 6px;
}

.chat-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 4px;
}

/* Quick Suggestions Bar */
.chat-quick-suggestions {
    padding: 0.55rem 0.85rem;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
}

.chat-quick-suggestions.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.chat-quick-suggestions::-webkit-scrollbar {
    display: none;
}

.chat-suggestions-track {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    width: max-content;
}

.chat-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.38rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.chat-chip-btn i {
    font-size: 0.75rem;
}

.chat-chip-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

.chat-chip-btn:active {
    transform: scale(0.96);
}

.chat-input-area {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
    border: 1px solid #e9ecef;
}

.chat-form input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    outline: none;
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
}

.chat-form button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: var(--dragon-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat bubbles */
.msg-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 85%;
}

.msg-container.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.msg-avatar .msg-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.7);
    z-index: 2;
}

.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.msg-bubble-bot {
    background: white;
    color: var(--deep-charcoal);
    border: 1px solid #eee;
    border-top-left-radius: 0;
}

.msg-bubble-user {
    background: var(--dragon-red);
    color: white;
    border-top-right-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 4px;
    min-height: 18px;
}

.typing-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: messengerTyping 1.3s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes messengerTyping {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
        background-color: #94a3b8;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
        background-color: #D32F2F;
    }
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Swiper Navigation Buttons Customization */
.product-swiper,
.news-swiper {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    /* This allows the buttons to sit inside the container but outside the slides */
}

.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100 !important;
    /* Ensure they rise above everything */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--dragon-red);
    color: white !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-button-next {
    right: 0.5rem !important;
}

.swiper-button-prev {
    left: 0.5rem !important;
}

@media(max-width: 992px) {

    .product-swiper,
    .news-swiper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .swiper-button-next {
        right: 0 !important;
    }

    .swiper-button-prev {
        left: 0 !important;
    }
}

/* Footer text overrides */
.footer-list a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--gold-accent) !important;
    padding-left: 5px;
}

/* Header Logo & Actions */
.header-logo {
    height: 45px;
    width: auto;
}

.mobile-drawer-logo {
    height: 36px;
    width: auto;
}

.btn-open-cart {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Logo dynamic inversion */
.navbar-custom:not(.navbar-scrolled) .header-logo {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar-custom.navbar-scrolled .header-logo {
    transition: filter 0.3s ease;
}

/* Text clamping utilities */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Luxury Form Styling */
.luxury-form .form-control,
.luxury-form .form-select {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: var(--deep-charcoal);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.luxury-form .form-control:focus,
.luxury-form .form-select:focus {
    background-color: #ffffff;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
    outline: 0;
}

.luxury-form .form-label {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: #6c757d;
}

.luxury-form .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.luxury-form .form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.luxury-form option {
    padding: 0.5rem;
}



/* Luxury Custom Select Styling */
.luxury-custom-select {
    position: relative;
    user-select: none;
}

.luxury-select-trigger {
    height: 48px;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--deep-charcoal) !important;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.luxury-select-trigger:focus,
.luxury-custom-select.is-open .luxury-select-trigger {
    background-color: #ffffff !important;
    border-color: var(--dragon-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.12) !important;
    outline: none;
}

.luxury-custom-select.is-open .select-chevron {
    transform: rotate(180deg);
    color: var(--dragon-red) !important;
}

.luxury-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;
    z-index: 1050;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.35rem;
}

.luxury-custom-select.is-open .luxury-select-menu {
    display: block;
    animation: luxuryDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes luxuryDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxury-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--deep-charcoal);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.luxury-select-item:hover {
    background-color: rgba(211, 47, 47, 0.08);
    color: var(--dragon-red);
}

.luxury-select-item .item-check {
    opacity: 0;
    font-size: 0.82rem;
    color: currentColor;
    transition: opacity 0.15s ease;
}

.luxury-select-item.is-selected {
    background: linear-gradient(135deg, var(--dragon-red), #b71c1c) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.luxury-select-item.is-selected .item-check {
    opacity: 1;
    color: #ffffff !important;
}

.custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-option {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--deep-charcoal);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-select-option:hover {
    background: #f8f9fa;
    color: var(--dragon-red);
}

.custom-select-option[aria-selected="true"] {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-accent);
    font-weight: 500;
}

.custom-select-trigger svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Custom Radio Pills Styling */
.custom-radio-btn {
    background-color: transparent;
    color: #374151;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.custom-radio-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.btn-check:checked+.custom-radio-btn {
    background-color: #D32F2F !important;
    color: #ffffff !important;
    border-color: #D32F2F !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

/* ==========================================================================
   DESKTOP SNAP SCROLL (Home Page only)
   ========================================================================== */
@media (min-width: 992px) {
    body.page-home .hero-section,
    body.page-home .py-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        padding-top: 5.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    body.page-home #products {
        padding-top: 7.5rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ==========================================================================
   LUXURY FOOTER STYLING
   ========================================================================== */
.footer-wrapper {
    background-color: #0b0f19 !important;
    color: #ffffff;
    position: relative;
    z-index: 10;
    padding-top: 6rem !important;
}

.footer-top-badge {
    transition: all 0.3s ease;
}

.footer-top-badge:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.footer-col-title {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--dragon-red);
    border-radius: 2px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-accent) !important;
    transform: translateX(4px);
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background: var(--dragon-red);
    border-color: var(--dragon-red);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.footer-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(211, 47, 47, 0.12);
    color: var(--dragon-red);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .footer-col-title {
        font-size: 0.9rem;
    }
    .footer-links a {
        font-size: 0.84rem;
    }
}


/* ==========================================================================
   DESIGN.MD COMPLIANT SUBPAGE STYLES (About & Contact)
   ========================================================================== */
body.page-about,
body.page-contact,
body.page-portfolio,
body.page-blog,
body.page-blog-detail,
body.page-portfolio-detail {
    background-color: #FAF9F6;
    color: #374151;
    font-family: 'Roboto', sans-serif;
}

.subpage-hero {
    padding: 7rem 0 2rem;
    background: linear-gradient(180deg, rgba(253, 243, 225, 0.5) 0%, rgba(250, 249, 246, 1) 100%);
    position: relative;
    overflow: hidden;
}

.subpage-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 12px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--dragon-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-soft {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.rounded-pill {
    border-radius: 14px !important;
}

.rounded-4 {
    border-radius: 18px !important;
}


.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CART DRAWER & OVERLAY STYLES
   ========================================================================== */
.dragon-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dragon-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Dragon Box Cart Drawer (Modern Flex Structure with Fixed Header/Footer & Scrollable Body) */
.dragon-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    height: 100dvh;
    max-height: 100dvh;
    background: #ffffff;
    z-index: 1065;
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-sizing: border-box;
}

.dragon-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer-header {
    flex: 0 0 auto;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    z-index: 2;
}

.cart-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.5rem 1.25rem 1rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

.cart-drawer-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-drawer-item-img {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #f8fafc;
    flex-shrink: 0 !important;
}

.cart-drawer-footer {
    flex: 0 0 auto;
    padding: 1rem 1.25rem 1.5rem 1.25rem;
    border-top: 1px solid #E5E7EB;
    background: #ffffff !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

.cart-drawer-footer .btn-primary-dragon {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .dragon-cart-drawer {
        width: 88vw;
        max-width: 380px;
    }
    .cart-drawer-header {
        padding: 1rem 1rem;
    }
    .cart-drawer-body {
        padding: 0.5rem 1rem 0.75rem 1rem;
    }
    .cart-drawer-item-img {
        width: 78px !important;
        height: 78px !important;
        min-width: 78px !important;
        min-height: 78px !important;
        max-width: 78px !important;
        max-height: 78px !important;
    }
    .cart-drawer-footer {
        /* Generous solid white bottom spacing to comfortably clear mobile browser search/address bar */
        padding: 0.85rem 1rem max(75px, calc(60px + env(safe-area-inset-bottom, 0px))) 1rem !important;
        background: #ffffff !important;
    }
    .cart-drawer-footer .btn-primary-dragon {
        padding: 0.85rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

/* Responsive Floating Widgets (Comfortably elevated above mobile browser navigation bar) */
@media (max-width: 768px) {
    .floating-widgets {
        right: 1rem !important;
        bottom: 5.5rem !important;
        gap: 0.65rem !important;
        z-index: 1040 !important;
    }
    #back-to-top,
    .chat-widget-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }
    .chat-widget-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ==========================================================================
   MOBILE STICKY FILTER & SORT BAR
   ========================================================================== */
.mobile-sticky-filter-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 68px;
    z-index: 1015;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-sticky-filter-inner {
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.mobile-cat-chips-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: smooth;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.mobile-cat-chips-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.mobile-cat-chips-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-cat-chip {
    flex-shrink: 0;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.mobile-cat-chip:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.mobile-cat-chip.is-active {
    background: linear-gradient(135deg, var(--dragon-red), #b71c1c) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.25);
}

.mobile-filter-subbar {
    background: #ffffff;
    font-size: 0.85rem;
}

/* Mobile Filter Slide-up Sheet */
.mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-backdrop.is-visible,
.mobile-filter-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    z-index: 1070;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.2);
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-filter-sheet.is-open {
    transform: translateY(0);
}

.mobile-filter-sheet .sheet-body {
    padding-bottom: max(5.25rem, calc(2rem + env(safe-area-inset-bottom, 0px))) !important;
}

.mobile-price-label,
.mobile-sort-option {
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.mobile-price-label:has(input:checked),
.mobile-sort-option.is-selected {
    border-color: var(--dragon-red) !important;
    background-color: rgba(211, 47, 47, 0.05) !important;
}

/* ==========================================================================
   PRODUCT CARDS & LISTING
   ========================================================================== */
.product-card-box {
    border: 1px solid #f3f4f6;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-card-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    background-color: var(--dragon-red);
}

.product-card-img-link {
    display: block;
    height: 220px;
    background-color: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
    text-align: center;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.product-card-box:hover .product-card-img {
    transform: scale(1.04);
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (min-width: 768px) {
    .product-card-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.8rem;
        line-height: 1.4rem;
    }
}

.product-card-rating {
    font-size: 0.82rem;
}

.product-card-feat-tag {
    font-size: 0.72rem;
    font-weight: 400;
}

.product-card-price-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dragon-red);
}

.product-card-price-orig {
    font-size: 0.76rem;
    display: block;
}

.product-card-action-btn {
    font-size: 0.8rem;
    color: #ffffff !important;
}

/* Shopee Style Sold Out Overlay */
.shopee-sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(1px);
}

.shopee-sold-out-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
    .floating-widgets {
        right: 1rem !important;
        bottom: 1rem !important;
        gap: 0.65rem !important;
    }
    #back-to-top,
    .chat-widget-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }
    .chat-widget-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* Remove number input spinner arrows (Webkit & Firefox) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

#product-qty,
.cart-drawer-qty-input {
    text-align: center !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

/* Reviews Section Modern Mobile-First Styling */
.review-summary-card {
    background: #ffffff;
    border: 1px solid #fde8e8;
    border-radius: 1rem;
    padding: 1.15rem;
    position: -webkit-sticky;
    position: sticky;
    top: 75px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
    .review-summary-card {
        top: 60px;
        padding: 0.85rem 1rem;
        border-radius: 14px;
    }
}

.review-avg-score {
    font-size: 2.25rem;
    font-weight: 800;
    color: #d32f2f;
    line-height: 1;
}

.review-filter-scroll-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 8px 2px;
    touch-action: pan-x !important;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.review-filter-scroll-bar:active {
    cursor: grabbing;
}
.review-filter-scroll-bar::-webkit-scrollbar {
    display: none;
}

.review-filter-chip {
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.review-filter-chip:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

.review-filter-chip.active {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}

.review-form-card {
    background: #ffffff;
    border: 1.5px solid #fecaca;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.review-star-picker .star-item {
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.review-star-picker .star-item:hover {
    transform: scale(1.15);
}

.review-privacy-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
}

.review-avatar-circle {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.45rem !important;
}

/* Blog & Products Modern Pagination */
.dragon-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0 0;
    flex-wrap: wrap;
}

.dragon-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.dragon-pagination .page-item.active .page-link {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.dragon-pagination .page-item .page-link:hover:not(.disabled) {
    border-color: #d32f2f;
    color: #d32f2f;
    background: #fff8f8;
}

.dragon-pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #f3f4f6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dragon Box Luxury SweetAlert2 Custom Styling */
.dragon-swal-popup {
    border-radius: 1.25rem !important;
    padding: 1.75rem 1.5rem !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25) !important;
    font-family: inherit !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    background: #ffffff !important;
}

.dragon-swal-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.5rem !important;
    font-family: inherit !important;
}

.dragon-swal-content {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.55 !important;
    margin-top: 0.35rem !important;
}

.dragon-swal-confirm-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 0.65rem 1.85rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.35) !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0.5rem !important;
}

.dragon-swal-confirm-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.45) !important;
}

.dragon-swal-cancel-btn {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 0.65rem 1.6rem !important;
    border-radius: 50px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    margin: 0.5rem !important;
}

/* Blog Card Description 4-Line Clamping with Ellipsis */
.line-clamp-4,
.blog-article-excerpt {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.55 !important;
    max-height: calc(1.55em * 4) !important;
    word-break: break-word !important;
}

/* ==========================================================================
   Article Rich Content Styling (Blog Detail & Rich HTML)
   ========================================================================== */
.article-content {
    color: #374151;
    font-size: 1.02rem;
    line-height: 1.8;
    word-wrap: break-word;
}

/* Headings in Article Content */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: inherit;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-content h1 {
    font-size: 1.5rem !important;
    margin-top: 2.25rem !important;
    margin-bottom: 1rem !important;
}

.article-content h2 {
    font-size: 1.32rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0.85rem !important;
    padding-left: 0.75rem !important;
    border-left: 4px solid #d32f2f !important;
    line-height: 1.35 !important;
}

.article-content h3 {
    font-size: 1.18rem !important;
    margin-top: 1.65rem !important;
    margin-bottom: 0.75rem !important;
}

.article-content h4 {
    font-size: 1.08rem !important;
    margin-top: 1.35rem !important;
    margin-bottom: 0.5rem !important;
}

.article-content h5,
.article-content h6 {
    font-size: 1rem !important;
    margin-top: 1.15rem !important;
    margin-bottom: 0.5rem !important;
}

@media (max-width: 767.98px) {
    .article-content {
        font-size: 0.96rem;
        line-height: 1.75;
    }
    .article-content h1 {
        font-size: 1.32rem !important;
        margin-top: 1.75rem !important;
    }
    .article-content h2 {
        font-size: 1.18rem !important;
        margin-top: 1.6rem !important;
        padding-left: 0.6rem !important;
        border-left-width: 3.5px !important;
    }
    .article-content h3 {
        font-size: 1.08rem !important;
        margin-top: 1.35rem !important;
    }
    .article-content h4 {
        font-size: 1rem !important;
        margin-top: 1.15rem !important;
    }
}

/* Paragraphs & Lists */
.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.35rem;
    padding-left: 1.35rem;
}

.article-content li {
    margin-bottom: 0.45rem;
    line-height: 1.7;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #111827;
}

.article-content a {
    color: #d32f2f;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #b71c1c;
}

/* Images & Media in Article */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.85rem !important;
    margin: 1.25rem auto !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-content figure {
    margin: 1.75rem 0 !important;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Luxury Modern Tables in Article Content */
.article-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.75rem 0 !important;
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.article-content table thead th,
.article-content table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-right: 1px solid #e2e8f0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.article-content table tbody td,
.article-content table td {
    padding: 0.85rem 1rem !important;
    font-size: 0.92rem !important;
    color: #475569 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    line-height: 1.55 !important;
    vertical-align: middle !important;
}

.article-content table tr:last-child td {
    border-bottom: none !important;
}

.article-content table tr td:last-child,
.article-content table tr th:last-child {
    border-right: none !important;
}

.article-content table tbody tr:nth-child(even) td {
    background-color: #fafbfd !important;
}

.article-content table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

/* Responsive Table Wrapper */
.article-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.article-table-responsive table {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Header Cart Count Badge (Perfect Circle for 1-9, Capsule for 10+) */
.cart-badge,
#cart-badge-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    transform: none !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #d32f2f !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4) !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Interactive Article Tag Chips */
.article-tag-chip {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.35rem 0.85rem !important;
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.article-tag-chip:hover {
    background: #fef2f2 !important;
    color: #d32f2f !important;
    border-color: #fecaca !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.15) !important;
}

/* Checkout Section Header Icons (Aligned with Titles) */
.checkout-header-icon {
    width: 24px;
    height: 24px;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Checkout Page Dedicated Luxury Styles
   ========================================================================== */
.checkout-page-wrap {
    background-color: #FAF9F6;
    min-height: calc(100vh - 100px);
    padding-top: 5.5rem;
    padding-bottom: max(5rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
}

.checkout-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 1.25rem;
}

.checkout-addon-left {
    border-radius: 12px 0 0 12px !important;
    border-color: #E5E7EB !important;
}

.checkout-addon-right {
    border-radius: 0 12px 12px 0 !important;
    border-color: #E5E7EB !important;
}

.checkout-input-select {
    border-radius: 0 12px 12px 0 !important;
    background-color: #ffffff !important;
    border-color: #E5E7EB !important;
}

.checkout-summary-sticky {
    position: sticky;
    top: 95px;
    z-index: 100;
}

.checkout-items-scroll {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.checkout-submit-btn {
    border-radius: 14px !important;
    color: #ffffff !important;
}

.checkout-modal-content {
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.checkout-voucher-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.checkout-btn-voucher-apply {
    border-radius: 0 12px 12px 0 !important;
    color: #ffffff !important;
}

.checkout-input-coupon {
    border-radius: 12px 0 0 12px !important;
    border-color: #E5E7EB !important;
}

.checkout-qr-box {
    position: relative;
    display: inline-block;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.checkout-qr-img {
    max-width: 190px;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: block;
}

.checkout-qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.qr-sublogo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* VietQR Payment Modal Styles */
#qrPaymentModal .modal-dialog {
    max-width: 440px;
    margin: 1.5rem auto;
}

@media (max-width: 767.98px) {
    #qrPaymentModal .modal-dialog {
        margin: 0.75rem auto;
        width: calc(100% - 1.25rem);
        max-height: calc(100dvh - 1.5rem);
        display: flex;
        align-items: center;
    }

    #qrPaymentModal .modal-content {
        max-height: calc(100dvh - 2rem);
        display: flex;
        flex-direction: column;
        border-radius: 20px !important;
        overflow: hidden;
    }

    #qrPaymentModal .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1rem !important;
        max-height: calc(100dvh - 80px);
    }

    .checkout-qr-box {
        padding: 0.4rem;
    }

    .checkout-qr-img {
        max-width: 160px !important;
        max-height: 160px !important;
        object-fit: contain;
    }

    .checkout-qr-center-logo {
        width: 36px;
        height: 36px;
        padding: 3px;
        border-radius: 8px;
    }
}

.payment-method-tile {
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid #E5E7EB;
}

.payment-method-tile.is-selected {
    border-color: #D32F2F !important;
    background: rgba(211, 47, 47, 0.03) !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.08);
}

/* Clean Form Controls */
.form-control-custom {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    background-color: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
}
.form-control-custom:focus {
    border-color: #D32F2F;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background-color: #ffffff;
    color: #111827;
}
textarea.form-control-custom,
.checkout-page textarea {
    min-height: calc(1.5em + 3.75rem + calc(var(--bs-border-width, 1px) * 2));
}

/* Suggestion Floating Box */
.suggestion-floating-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    z-index: 1050;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}
.suggestion-floating-box.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.suggestion-items-list {
    max-height: min(320px, 46vh);
    overflow-y: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}
.suggestion-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #1f2937;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: rgba(211, 47, 47, 0.06);
    color: #D32F2F;
    font-weight: 500;
}
.suggestion-item.is-selected {
    background-color: rgba(211, 47, 47, 0.08);
    color: #D32F2F;
    font-weight: 600;
}

/* ==========================================================================
   VOUCHER POPUP MODAL & LUXURY MOBILE BOTTOM SHEET
   ========================================================================== */
.voucher-modal-custom .modal-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.voucher-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(211, 47, 47, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.voucher-modal-drag-bar {
    cursor: pointer;
}

.voucher-drag-pill {
    display: inline-block;
    width: 42px;
    height: 4.5px;
    border-radius: 99px;
    background-color: #d1d5db;
}

.voucher-modal-body {
    background-color: #f8fafc;
    max-height: min(65vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.voucher-input-card {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.voucher-input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.voucher-input-group:focus-within {
    border-color: var(--dragon-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background-color: #ffffff;
}

.voucher-input-field {
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    color: #111827;
}

.voucher-input-field:focus {
    box-shadow: none !important;
    background-color: #ffffff !important;
}

.voucher-apply-btn {
    border-radius: 0 10px 10px 0 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

/* Luxury Voucher Ticket Card */
.voucher-ticket-card {
    display: flex;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    position: relative;
    overflow: visible !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.voucher-ticket-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.voucher-ticket-card.is-active-voucher {
    border-color: var(--dragon-red) !important;
    background: #fffafa !important;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.12) !important;
}

/* Left Ticket Stub */
.voucher-ticket-stub {
    width: 82px;
    min-width: 82px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.4rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.voucher-theme-ruby .voucher-ticket-stub {
    background: linear-gradient(145deg, #e53935 0%, #b71c1c 100%);
}

.voucher-theme-gold .voucher-ticket-stub {
    background: linear-gradient(145deg, #374151 0%, #111827 100%);
}

.voucher-theme-green .voucher-ticket-stub {
    background: linear-gradient(145deg, #10b981 0%, #047857 100%);
}

.voucher-stub-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.voucher-stub-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Ticket Divider with Semi-circle Cutouts */
.voucher-ticket-divider {
    position: relative;
    width: 1px;
    border-left: 1.5px dashed #e5e7eb;
    background: transparent;
    flex-shrink: 0;
    z-index: 2;
}

.voucher-ticket-card.is-active-voucher .voucher-ticket-divider {
    border-left-color: rgba(211, 47, 47, 0.35);
}

.ticket-notch {
    position: absolute;
    width: 14px;
    height: 7px;
    background-color: #f8fafc;
    z-index: 10;
    left: -7px;
    box-sizing: border-box;
    pointer-events: none;
}

.ticket-notch.notch-top {
    top: -1.5px;
    border-radius: 0 0 14px 14px;
    border-bottom: 1.5px solid #e5e7eb;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    border-top: none;
}

.ticket-notch.notch-bottom {
    bottom: -1.5px;
    border-radius: 14px 14px 0 0;
    border-top: 1.5px solid #e5e7eb;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    border-bottom: none;
}

.voucher-ticket-card.is-active-voucher .ticket-notch.notch-top {
    border-bottom-color: var(--dragon-red) !important;
    border-left-color: var(--dragon-red) !important;
    border-right-color: var(--dragon-red) !important;
    border-top: none !important;
}

.voucher-ticket-card.is-active-voucher .ticket-notch.notch-bottom {
    border-top-color: var(--dragon-red) !important;
    border-left-color: var(--dragon-red) !important;
    border-right-color: var(--dragon-red) !important;
    border-bottom: none !important;
}

/* Ticket Body Content */
.voucher-ticket-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    min-width: 0;
}

.voucher-ticket-main {
    flex-grow: 1;
    min-width: 0;
}

.voucher-code-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.voucher-applied-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.voucher-ticket-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.voucher-ticket-desc {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single-line Horizontal Meta for Conditions & Expiry */
.voucher-ticket-meta {
    font-size: 0.72rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    margin-top: 2px;
}

.voucher-ticket-meta .meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.voucher-ticket-meta .meta-dot {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1;
}

/* Right Radio Checkbox */
.voucher-ticket-radio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.4rem;
}

.voucher-radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.68rem;
    color: #ffffff;
}

.voucher-radio-circle.is-checked {
    background: var(--dragon-red);
    border-color: var(--dragon-red);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.35);
    transform: scale(1.05);
}

/* Ineligible Card State (When Order < min_order_value) */
.voucher-ticket-card.is-ineligible-card {
    opacity: 0.65;
    background-color: #fafafa;
    border-color: #e5e7eb;
}

.voucher-ticket-card.is-ineligible-card:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    border-color: #e5e7eb;
}

.voucher-ticket-card.is-ineligible-card .voucher-radio-circle {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* ==========================================================================
   MOBILE RESPONSIVE: NATIVE BOTTOM-SHEET EXPERIENCE
   ========================================================================== */
@media (max-width: 767.98px) {
    .voucher-modal-custom .modal-dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .voucher-modal-custom.show .modal-dialog {
        transform: translateY(0) !important;
    }

    .voucher-modal-custom .modal-content {
        border-radius: 22px 22px 0 0 !important;
        max-height: 85vh !important;
        border: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    }

    .voucher-modal-body {
        max-height: calc(85vh - 145px) !important;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .voucher-modal-custom .modal-footer {
        padding-bottom: max(1rem, calc(0.65rem + env(safe-area-inset-bottom, 0px))) !important;
    }

    .voucher-ticket-stub {
        width: 70px;
        min-width: 70px;
        padding: 0.65rem 0.25rem;
    }

    .voucher-stub-icon {
        font-size: 1.1rem;
    }

    .voucher-stub-badge {
        font-size: 0.62rem;
    }

    .voucher-ticket-title {
        font-size: 0.82rem;
    }

    .voucher-ticket-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .voucher-ticket-meta {
        font-size: 0.68rem;
        gap: 4px;
    }

    .voucher-radio-circle {
        width: 20px;
        height: 20px;
        font-size: 0.62rem;
    }
}

/* ========================================================
   SHOPEE STYLE VARIANT SELECTOR (PORTFOLIO DETAIL)
   ======================================================== */
.shopee-variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease;

    &:hover {
        border-color: var(--dragon-red);
        color: var(--dragon-red);
    }

    &.is-selected {
        border-color: var(--dragon-red);
        color: var(--dragon-red);
        background: #ffffff;
        box-shadow: 0 0 0 1px var(--dragon-red);

        .shopee-check-corner {
            display: block;
        }
    }

    .shopee-variant-thumb {
        width: 34px;
        height: 34px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #f3f4f6;
        flex-shrink: 0;
    }

    .shopee-variant-info {
        flex: 1 1 0%;
        min-width: 0;
        overflow: hidden;
        text-align: left;
    }

    .shopee-variant-text {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .shopee-variant-badge {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.7rem;
        line-height: 1.1;
        margin-top: 2px;
    }

    .shopee-check-corner {
        display: none;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 15px;
        height: 15px;
        background: var(--dragon-red);
        color: #ffffff;
        clip-path: polygon(100% 0, 0 100%, 100% 100%);

        i {
            position: absolute;
            bottom: 1px;
            right: 1px;
            font-size: 7px;
            color: #ffffff;
        }
    }
}

/* 2 columns grid for linked products in a group */
.variant-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;

    .shopee-variant-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 8px 12px 8px 8px;
        border-radius: 8px;
        min-height: 56px;
        display: flex;
        align-items: center;

        .shopee-variant-thumb {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .shopee-variant-info {
            flex: 1 1 0%;
            min-width: 0;
            overflow: hidden;
            text-align: left;
        }

        .shopee-variant-text {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1.35;
            color: #1f2937;
        }

        .shopee-variant-badge {
            display: none !important;
        }
    }
}

@media (max-width: 480px) {
    .variant-grid-2col {
        gap: 8px;

        .shopee-variant-btn {
            padding: 6px 8px 6px 6px;
            gap: 6px;
            min-height: 50px;

            .shopee-variant-thumb {
                width: 34px;
                height: 34px;
            }

            .shopee-variant-text {
                font-size: 0.76rem;
                line-height: 1.3;
            }
        }
    }
}

/* 5 Thumbnails Grid in 1 Row (Width 100% flush with main product image) */
.thumbnail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.thumbnail-gallery-grid .thumb-item {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    cursor: pointer;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;

    &:hover {
        border-color: var(--dragon-red);
        transform: translateY(-2px);
    }

    &.border-danger {
        border-color: var(--dragon-red) !important;
        box-shadow: 0 0 0 1.5px var(--dragon-red);
    }
}

@media (max-width: 576px) {
    .thumbnail-gallery-grid {
        gap: 6px;
    }
    .thumbnail-gallery-grid .thumb-item {
        border-radius: 6px;
    }
}

/* Group Product Navigation Arrows (< and > straddling the left and right border [|]) */
.product-main-showcase-wrapper {
    position: relative;
}

.group-nav-arrow {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 56px; /* Chiều dài gấp đôi chiều rộng (2:1), dạng chữ nhật dẹp [|] */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1f2937;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    z-index: 12;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.22s ease;
    outline: none;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Viền dọc bên trái đi qua chính giữa nút lùi */
.group-nav-arrow.group-nav-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

/* Viền dọc bên phải đi qua chính giữa nút tiến */
.group-nav-arrow.group-nav-next {
    right: 0;
    transform: translate(50%, -50%);
}

.group-nav-arrow i {
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    transition: transform 0.18s ease;
}

.group-nav-arrow.group-nav-prev:hover {
    background: #ffffff;
    color: var(--dragon-red);
    border-color: var(--dragon-red);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.28);
    transform: translate(-50%, -50%) scale(1.08);
}

.group-nav-arrow.group-nav-next:hover {
    background: #ffffff;
    color: var(--dragon-red);
    border-color: var(--dragon-red);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.28);
    transform: translate(50%, -50%) scale(1.08);
}

.group-nav-arrow.group-nav-prev:hover i {
    transform: translateX(-1.5px);
}

.group-nav-arrow.group-nav-next:hover i {
    transform: translateX(1.5px);
}

.group-nav-arrow.group-nav-prev:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.group-nav-arrow.group-nav-next:active {
    transform: translate(50%, -50%) scale(0.95);
}

@media (max-width: 576px) {
    .group-nav-arrow {
        width: 24px;
        height: 48px; /* Tỉ lệ 2:1 trên mobile */
        border-radius: 6px;
    }

    .group-nav-arrow i {
        font-size: 11px;
    }
}

/* Main Image Loading Spinner & Transition Animation */
.main-image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-image-loader.is-active {
    opacity: 1;
    visibility: visible;
}

.main-image-loader .loader-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(211, 47, 47, 0.2);
    border-top-color: var(--dragon-red);
    border-radius: 50%;
    animation: spinMainLoader 0.65s linear infinite;
}

@keyframes spinMainLoader {
    to { transform: rotate(360deg); }
}

/* Fluid Image Slide & Zoom Animations */
#main-product-img {
    transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.24s cubic-bezier(0.25, 1, 0.5, 1), filter 0.24s ease;
    will-change: transform, opacity;
}

#main-product-img.img-anim-out-left {
    transform: translateX(-36px) scale(0.96);
    opacity: 0;
    filter: blur(2px);
}

#main-product-img.img-anim-out-right {
    transform: translateX(36px) scale(0.96);
    opacity: 0;
    filter: blur(2px);
}

#main-product-img.img-anim-out-fade {
    transform: scale(0.95);
    opacity: 0;
    filter: blur(2px);
}

#main-product-img.img-anim-in-right {
    animation: imgSlideInRight 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#main-product-img.img-anim-in-left {
    animation: imgSlideInLeft 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#main-product-img.img-anim-in-fade {
    animation: imgFadeInZoom 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes imgSlideInRight {
    0% {
        transform: translateX(36px) scale(0.96);
        opacity: 0;
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes imgSlideInLeft {
    0% {
        transform: translateX(-36px) scale(0.96);
        opacity: 0;
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes imgFadeInZoom {
    0% {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(2px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* ==========================================================================
   Page Preloader / Loading Layout (Luxury Spinner)
   ========================================================================== */
.page-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #FAF9F6;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    pointer-events: all;
}

.page-preloader.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-spinner-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

.preloader-ring-outer {
    border: 3px solid rgba(211, 47, 47, 0.12);
    border-top-color: #D32F2F;
    border-right-color: #D32F2F;
    animation: preloaderSpin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.preloader-ring-inner {
    inset: 6px;
    border: 2px dashed rgba(211, 47, 47, 0.45);
    border-bottom-color: transparent;
    animation: preloaderSpinReverse 1.4s linear infinite;
}

.preloader-center-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
    z-index: 2;
    overflow: hidden;
    padding: 4px;
}

.preloader-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: preloaderPulse 1.8s ease-in-out infinite alternate;
}

.preloader-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.preloader-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1e293b;
    margin-top: 0.5rem;
}

.preloader-subtext {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes preloaderPulse {
    0% { transform: scale(0.92); opacity: 0.85; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* ==========================================================================
   HOMEPAGE MOBILE RESPONSIVE & PERFORMANCE OPTIMIZATIONS
   Fixes: Hero badge nowrap, collection typography, swiper smoothness, touch targets
   ========================================================================== */

/* 1. Global Section Typography Standards */
.section-title-main {
    font-size: clamp(1.4rem, 3.2vw, 2.35rem);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.section-badge-sub {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.section-title-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--dragon-red), var(--gold-accent));
    margin: 0.5rem auto 1.25rem;
}

.section-lead-p {
    font-size: 0.98rem;
    line-height: 1.7;
}

.feature-item-title {
    font-size: 1.05rem;
    line-height: 1.35;
}

.feature-item-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
}

.product-card-price {
    font-size: 1.15rem;
}

.product-card-orig-price {
    font-size: 0.82rem;
}

.news-title {
    font-size: 1.1rem;
    line-height: 1.35;
}

.news-desc {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Hardware-accelerated Swipers for 60fps scrolling */
.product-swiper,
.news-swiper {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.product-swiper .swiper-pagination-bullet,
.news-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-swiper .swiper-pagination-bullet-active,
.news-swiper .swiper-pagination-bullet-active {
    background: var(--dragon-red) !important;
    width: 22px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
}

/* 2. Tablet & Mobile Overrides (<= 768px) */
@media (max-width: 768px) {
    /* Section Headings */
    .section-title-main {
        font-size: clamp(1.15rem, 4.6vw, 1.38rem) !important;
        line-height: 1.32 !important;
        letter-spacing: -0.2px !important;
    }

    .section-badge-sub {
        font-size: 0.7rem !important;
        letter-spacing: 1.2px !important;
    }

    .section-title-divider {
        width: 38px !important;
        height: 2.5px !important;
        margin: 0.35rem auto 1rem !important;
    }

    .section-lead-p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* Swiper Navigation: Hide bulky arrow buttons on touch devices to avoid touch conflicts */
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev,
    .news-swiper .swiper-button-next,
    .news-swiper .swiper-button-prev {
        display: none !important;
    }

    .product-swiper,
    .news-swiper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
        padding-top: 0.5rem !important;
    }

    /* Product Card Mobile Performance: Remove blur for 60fps GPU rasterization */
    .glass-card {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 1.25rem !important;
        padding: 0.75rem !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
        transform: none !important;
    }

    .glass-card:hover {
        transform: none !important;
    }

    /* Keep badge cleanly tucked inside the card on mobile */
    .badge-gold {
        position: absolute !important;
        top: 0.65rem !important;
        left: 0.65rem !important;
        transform: none !important;
        font-size: 0.62rem !important;
        padding: 0.22rem 0.65rem !important;
        letter-spacing: 0.5px !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        z-index: 20 !important;
    }

    /* Compact image wrapper */
    .card-img-wrapper {
        height: 12.5rem !important;
        border-radius: 0.85rem !important;
        margin-bottom: 0.35rem !important;
    }

    .product-card-hero-img {
        height: 12.5rem !important;
        object-fit: cover !important;
    }

    /* Product Details Typography */
    .product-card-body {
        padding: 0.5rem 0.25rem 0.25rem !important;
    }

    .product-card-title {
        font-size: 0.88rem !important;
        line-height: 1.3 !important;
        min-height: 2.3em;
        margin-bottom: 0.35rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-price {
        font-size: 0.98rem !important;
    }

    .product-card-orig-price {
        font-size: 0.72rem !important;
    }

    .product-card-rating {
        font-size: 0.75rem !important;
    }

    .product-card-reviews {
        font-size: 0.7rem !important;
    }

    .product-card-sold {
        font-size: 0.7rem !important;
    }

    .product-card-btn {
        font-size: 0.82rem !important;
        padding: 0.45rem 0.75rem !important;
    }

    /* About Section Mobile Tuning */
    .about-image-wrapper {
        border-radius: 1.5rem !important;
        max-height: 260px;
        overflow: hidden;
    }

    .icon-box {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        border-radius: 0.75rem !important;
    }

    .icon-box svg {
        width: 18px !important;
        height: 18px !important;
    }

    .feature-item-title {
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
    }

    .feature-item-desc {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    /* Contact Form Mobile Tuning */
    #contact .bg-white {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }

    #contact .form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }

    #contact .form-control-lg {
        font-size: 0.88rem !important;
        padding: 0.6rem 0.85rem !important;
    }

    #contact button[type="submit"] {
        font-size: 0.88rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* News Card Mobile Tuning */
    .news-card {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0.75rem !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    .news-img-wrapper {
        height: 10.5rem !important;
        border-radius: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .news-date {
        padding: 0.35rem 0.65rem !important;
        border-radius: 0.75rem !important;
    }

    .news-date .fs-3 {
        font-size: 1.25rem !important;
    }

    .news-badge {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    .news-title {
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.35rem !important;
    }

    .news-desc {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
    }
}

/* 3. Small Mobile Devices (<= 480px, e.g. iPhone SE, iPhone Mini, Galaxy A-series) */
@media (max-width: 480px) {
    .section-title-main {
        font-size: clamp(1.05rem, 4.8vw, 1.25rem) !important;
        line-height: 1.3 !important;
    }

    .section-badge-sub {
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }

    .card-img-wrapper {
        height: 11.5rem !important;
    }

    .product-card-hero-img {
        height: 11.5rem !important;
    }

    .news-img-wrapper {
        height: 9.5rem !important;
    }
}

/* Force Exactly 1 Full Item on Mobile Viewports (< 640px) */
@media (max-width: 639.98px) {
    .product-swiper,
    .news-swiper {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-swiper .swiper-slide,
    .news-swiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
    }

    .product-swiper .glass-card,
    .news-swiper .news-card {
        width: 100% !important;
        margin: 0 auto !important;
    }
}