@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* Custom stylesheet for Ly & Báo Pet Shop */
/* Style theme: Premium Modern Cartoon (Kawaii Soft Modernism) */

:root {
    --primary: #a63ef7;
    --primary-dark: #63286b;
    --secondary: #e5aab6;
    --secondary-light: #fbe5e9;
    --bg-warm: #fff1eb;
    --white: #ffffff;
    --dark: #2d2d2d;
    --gray-light: #f8f9fa;

    /* Modern Soft Cartoon Border & Shadow variables */
    --border-color: rgba(99, 40, 107, 0.08);
    --border-width: 2px;
}

html {
    overflow-x: hidden;
}

@font-face {
    font-family: 'Cadena';
    src: local('#9Slide07 Cadena Regular'),
        local('#9Slide07 Cadena'),
        local('9Slide07 Cadena'),
        local('Cadena'),
        url('../fonts/%239Slide07%20Cadena.ttf') format('truetype'),
        url('../fonts/9Slide07-Cadena.ttf') format('truetype'),
        url('../fonts/9Slide07%20Cadena.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Reset & Body Styles */
body {
    background-color: var(--bg-warm);
    color: var(--dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
    /* Offset for desktop/tablet fixed header */
}

/* Headings optimization: Normal font-weight on Cadena to prevent Vietnamese diacritics distortion */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    color: var(--primary-dark);
    font-weight: normal;
    /* Tránh faux-bold gây lỗi hiển thị dấu tiếng Việt */
}

/* Modern Rounded Cartoon Card */
.brutal-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(99, 40, 107, 0.04), 0 4px 10px rgba(99, 40, 107, 0.01);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.brutal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(166, 62, 247, 0.08), 0 6px 15px rgba(166, 62, 247, 0.02);
    border-color: rgba(166, 62, 247, 0.2);
}

/* Duolingo-style 3D Cartoon Clickable Buttons */
.brutal-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: 30px;
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: normal;
    padding: 12px;
    /* box-shadow: 0 5px 0px #8222d3, 0 8px 20px rgba(166, 62, 247, 0.15); */
    transition: all 0.15s ease;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: 0;
    line-height: normal;
}

.brutal-btn.brutal-btn-center {
    margin-left: auto !important;
    display: block !important;
    width: fit-content !important;
}

.brutal-btn:hover {
    background-color: #b556ff;
    transform: translateY(-2px);
    box-shadow: 0 7px 0px #8222d3, 0 10px 22px rgba(166, 62, 247, 0.2);
}

.brutal-btn:active {
    top: 4px;
    box-shadow: 0 1px 0px #8222d3, 0 4px 10px rgba(166, 62, 247, 0.1);
}

.brutal-btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark) !important;
    /* box-shadow: 0 5px 0px #d48e9c, 0 8px 20px rgba(229, 170, 182, 0.15); */
}

.brutal-btn-secondary:hover {
    background-color: #f1bdc7;
    transform: translateY(-2px);
    box-shadow: 0 7px 0px #d48e9c, 0 10px 22px rgba(229, 170, 182, 0.2);
}

.brutal-btn-secondary:active {
    top: 4px;
    box-shadow: 0 1px 0px #d48e9c, 0 4px 10px rgba(229, 170, 182, 0.1);
}

/* WooCommerce notices */
.woocommerce-notices-wrapper {
    margin: 0 0 22px 0;
}

.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .is-success,
.woocommerce-notices-wrapper .is-info,
.woocommerce-notices-wrapper .is-error {
    position: relative;
    display: block;
    margin: 0 0 12px 0;
    border-radius: 22px;
    border: 2px solid rgba(99, 40, 107, 0.12);
    border-left-width: 6px;
    box-shadow: 0 14px 32px rgba(99, 40, 107, 0.08);
    padding: 16px 18px 16px 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: notice-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .is-success::before,
.woocommerce-notices-wrapper .is-info::before,
.woocommerce-notices-wrapper .is-error::before {
    display: none;
    content: none;
}

.woocommerce-notices-wrapper .woocommerce-message {
    border-left-color: #46b450;
}

.woocommerce-notices-wrapper .woocommerce-info {
    border-left-color: var(--primary);
}

.woocommerce-notices-wrapper .woocommerce-error {
    border-left-color: #dc3545;
}

.woocommerce-notices-wrapper .woocommerce-message:last-child,
.woocommerce-notices-wrapper .woocommerce-info:last-child,
.woocommerce-notices-wrapper .woocommerce-error:last-child,
.woocommerce-notices-wrapper .is-success:last-child,
.woocommerce-notices-wrapper .is-info:last-child,
.woocommerce-notices-wrapper .is-error:last-child {
    margin-bottom: 0;
}

.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-info a,
.woocommerce-notices-wrapper .woocommerce-error a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-notices-wrapper .woocommerce-message a:hover,
.woocommerce-notices-wrapper .woocommerce-info a:hover,
.woocommerce-notices-wrapper .woocommerce-error a:hover {
    text-decoration: underline;
}

@keyframes notice-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soft Rounded Cartoon Badges */
.brutal-badge {
    background-color: var(--secondary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(229, 170, 182, 0.5);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Header & Glassmorphic Navigation */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--secondary);
    border-bottom: 1px solid rgb(99 40 107 / 11%);
    padding: 16px 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Hardware acceleration & scroll performance optimization */
    will-change: padding, background-color, box-shadow;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.custom-header.sticky-header {
    background-color: rgba(229, 170, 182, 0.92);
    /* Make background semi-transparent to showcase backdrop blur */
    box-shadow: 0 8px 30px rgba(99, 40, 107, 0.12);
    border-bottom: 1px solid rgba(99, 40, 107, 0.08);
    padding: 10px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%
}

.logo-img {
    height: 70px !important;
    width: auto;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.1) rotate(-6deg);
}

.nav-link-custom {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 12px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after {
    width: 80%;
}

/* Header layout helpers */
.header-middle {
    min-width: 0;
    gap: 18px;
}

.header-middle-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.header-middle .search-container {
    flex-shrink: 0;
}

.header-actions {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .header-middle {
        display: none !important;
    }
}

/* Blog Nav Dropdown (Hover) */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-chevron {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.nav-dropdown-wrapper:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--white);
    border: 2.5px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--border-color);
    min-width: 230px;
    /* padding-top bridges the visual gap without breaking hover continuity */
    padding: 10px;
    padding-top: 20px;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

/* Arrow tip — positioned inside padding-top area */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--border-color);
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--white);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Keep hover active while cursor is over the menu itself */
.nav-dropdown-menu:hover {
    opacity: 1;
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-dropdown-item:last-child {
    margin-bottom: 0;
}

.nav-dropdown-item:hover {
    background: var(--bg-warm);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-dropdown-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Modern Rounded Input Box */
.search-container {
    position: relative;
    border: 1.5px solid rgba(99, 40, 107, 0.12);
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 62, 247, 0.12);
}

.search-input {
    border: none;
    padding: 8px 18px;
    outline: none;
    width: 200px;
    font-size: 0.95rem;
    /* font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif; */
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    padding: 8px 14px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--primary);
}

/* Profile Icon & Shopping Cart */
.cart-icon-wrapper {
    position: relative;
    font-size: 1.35rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(166, 62, 247, 0.12);
}

.cart-icon-wrapper:hover {
    transform: scale(1.08);
    color: var(--primary);
    background-color: rgba(166, 62, 247, 0.08);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(166, 62, 247, 0.2);
}

/* Offcanvas Sidebar Mobile */
.offcanvas-custom {
    background-color: var(--bg-warm);
    border-left: var(--border-width) solid var(--border-color);
    z-index: 9999999;
}

.offcanvas-body .nav-link-custom::after {
    display: none
}

.offcanvas-header {
    border-bottom: 1.5px solid var(--border-color);
}

/* 2. Full-Width Hero Slideshow */
.hero-section {
    /* padding-top: 72px; */
    /* offset for fixed header */
    position: relative;
    width: 100%;
}

/* Hero carousel takes full width, no container restriction */
#heroCarousel {
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide img.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transition: transform 0.8s ease;
}

#heroCarousel .carousel-item.active .slide-bg,
#heroCarousel .carousel-item .slide-bg:hover {
    transform: scale(1.03);
}

/* Gradient overlay for text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(99, 40, 107, 0.72) 0%,
            rgba(99, 40, 107, 0.45) 40%,
            rgba(99, 40, 107, 0.05) 75%,
            transparent 100%);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6% 0 7%;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: 'Cadena', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
    width: fit-content;
}

.hero-title {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.18;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: normal;
    text-shadow: 0 2px 24px rgba(50, 0, 80, 0.18);
}

.hero-title span {
    color: #f8c5d8;
}

.hero-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.12rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    max-width: 480px;
    text-shadow: 0 1px 8px rgba(50, 0, 80, 0.15);
}

/* Carousel controls - modern floating arrows */
.hero-carousel-controls {
    position: absolute;
    bottom: 36px;
    right: 5%;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-ctrl-btn:hover {
    background: rgba(166, 62, 247, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Carousel indicators - slim dots at bottom */
#heroCarousel .carousel-indicators {
    bottom: 38px;
    left: 7%;
    right: auto;
    margin: 0;
    justify-content: flex-start;
    gap: 6px;
    z-index: 15;
}

#heroCarousel .carousel-indicators button {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.45);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    cursor: pointer;
}

#heroCarousel .carousel-indicators button.active {
    width: 52px;
    background-color: #ffffff;
}

/* Smooth fade transition */
#heroCarousel .carousel-item {
    transition: transform 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Polaroid Collage (Modern Curved Cartoon Photo Frames) */
.polaroid-collage {
    position: relative;
    height: 440px;
    width: 100%;
    z-index: 2;
}

.polaroid-item {
    position: absolute;
    background-color: var(--white);
    padding: 12px 12px 22px 12px;
    border: 1px solid rgba(99, 40, 107, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(99, 40, 107, 0.05), 0 4px 10px rgba(99, 40, 107, 0.01);
    width: 230px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-item img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.04);
    border-radius: 16px;
}

.polaroid-caption {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 1.05rem;
    text-align: center;
    margin-top: 10px;
    color: var(--primary-dark);
}

.polaroid-1 {
    top: 12%;
    left: 4%;
    transform: rotate(-6deg);
}

.polaroid-2 {
    top: 6%;
    right: 4%;
    transform: rotate(5deg);
}

.polaroid-3 {
    bottom: 6%;
    left: 28%;
    transform: rotate(-2deg);
}

.polaroid-collage:hover .polaroid-item {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 45px rgba(166, 62, 247, 0.1);
    z-index: 10;
}

/* 3. Best Sellers Section */
.section-title-wrapper {
    margin-bottom: 45px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.6rem;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '🐾';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    filter: drop-shadow(0 4px 8px rgba(99, 40, 107, 0.18));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-title:hover::after {
    transform: translateX(-50%) scale(1.2) rotate(12deg);
}

/* Decorative Floating Icons (Diverse Colors & Integrated Style) */
.deco-icon {
    display: inline-block;
    font-size: 1.8rem;
    position: absolute;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(2px 5px 8px rgba(99, 40, 107, 0.12));
    animation: floatAnimation 4s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.text-muted {
    --bs-text-opacity: 1;
    color: rgb(0 0 0 / 75%) !important;
}

.deco-icon.text-primary {
    color: var(--primary) !important;
}

.deco-icon.text-secondary {
    color: var(--secondary) !important;
}

.deco-icon.text-warning {
    color: #ffb703 !important;
    /* Sweet orange-gold */
}

.deco-icon.text-info {
    color: #219ebc !important;
    /* Calm cyan */
}

.deco-icon.text-danger {
    color: #ff5e7e !important;
    /* Soft rose red */
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-12px) rotate(15deg);
    }
}

.float-1 {
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.float-2 {
    animation-delay: 0.7s;
    animation-duration: 4.2s;
    animation-name: floatAnimationAlt;
}

.float-3 {
    animation-delay: 1.4s;
    animation-duration: 4.8s;
}

.float-4 {
    animation-delay: 2.1s;
    animation-duration: 3.9s;
    animation-name: floatAnimationAlt;
}

@keyframes floatAnimationAlt {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-8px) rotate(-12deg);
    }
}


/* Optimized Staggered Grid for Cartoon Layout */
.staggered-col {
    transition: transform 0.3s ease;
}

/* @media (min-width: 992px) {
    .staggered-col:nth-child(odd) {
        transform: translateY(18px);
    }

    .staggered-col:nth-child(even) {
        transform: translateY(-18px);
    }
} */

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Home best-sellers share the complete product action set used by the shop. */
.home-bestseller-section .product-card {
    overflow: hidden;
}

.home-bestseller-section .product-content {
    gap: 2px;
}

.home-bestseller-section .product-content>.d-flex:last-child {
    padding-top: 4px;
}

.product-img-wrapper {
    position: relative;
    border-bottom: 1px solid rgba(99, 40, 107, 0.05);
    height: 220px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    transition: color 0.2s ease;
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
}

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

/* Clickable product name links (dynamically generated via JS) */
.product-content a.text-primary {
    color: var(--primary-dark) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    cursor: pointer;
}

.product-content a.text-primary:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: auto;
}

/* 4. Charity Campaign Section */
.charity-section {
    background-color: var(--white);
    border-top: 1px solid rgba(99, 40, 107, 0.06);
    border-bottom: 1px solid rgba(99, 40, 107, 0.06);
    padding: 80px 0;
    position: relative;
}

.charity-section-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    border-radius: 32px;
    box-shadow: 0 12px 36px rgba(99, 40, 107, 0.05);
    padding: 48px;
}

.charity-dashboard {
    background-color: var(--bg-warm);
    border: 1px solid rgba(99, 40, 107, 0.08);
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 15px 40px rgba(99, 40, 107, 0.03);
}

/* Modern Rounded Progress Bar */
.progress-container-custom {
    position: relative;
    height: 16px;
    background-color: var(--white);
    border: 1px solid rgba(99, 40, 107, 0.1);
    border-radius: 30px;
    margin: 35px 0;
    overflow: visible;
}

.progress-bar-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 30px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(166, 62, 247, 0.2);
}

.progress-paw-marker {
    position: absolute;
    top: -13px;
    right: -14px;
    font-size: 1.8rem;
    color: var(--primary-dark);
    transform: rotate(15deg);
}

.stat-box {
    text-align: center;
    padding: 24px 20px;
    border: 1.5px dashed rgba(99, 40, 107, 0.15);
    border-radius: 20px;
    background-color: var(--white);
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
}

/* 3D Soft Countdown Block */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.countdown-box {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 72px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(99, 40, 107, 0.12);
}

.countdown-number {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
}

/* 4.2 Event Cards Layout */
.event-card-custom {
    background-color: var(--white);
    border: 2px solid rgba(99, 40, 107, 0.08);
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 40, 107, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.event-card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(166, 62, 247, 0.08);
    border-color: rgba(166, 62, 247, 0.2);
}

.event-card-custom.active-event {
    border: 2.5px solid var(--primary);
    background-color: rgba(255, 241, 235, 0.3);
    box-shadow: 0 18px 40px rgba(166, 62, 247, 0.12), inset 0 0 10px rgba(166, 62, 247, 0.03);
}

.event-countdown-mini {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.event-countdown-mini .mini-box {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 10px;
    padding: 6px 8px;
    min-width: 48px;
    text-align: center;
}

.event-countdown-mini .mini-number {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.1;
}

.event-countdown-mini .mini-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-view-products-link {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-weight: normal;
}

.event-view-products-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.event-card-custom:hover .event-view-products-link i {
    transform: translateX(4px);
}

/* Event Products Wrapper */
.event-products-wrapper {
    scroll-margin-top: 90px;
}

.tab-content-custom {
    display: none;
}

.tab-content-custom.active-content {
    display: block;
    animation: fadeInTab 0.35s ease-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nhu yếu phẩm needed grid */
.charity-item-card,
.event-overview-card {
    background-color: var(--white);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    border-radius: 20px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(99, 40, 107, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.charity-item-card:hover,
.event-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 40, 107, 0.06);
}

.charity-item-img,
.event-overview-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.04);
    border-radius: 12px;
    margin-bottom: 12px;
}

.charity-item-title,
.event-overview-card__title-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.event-overview-card.active-event {
    border-color: rgba(166, 62, 247, 0.22);
    box-shadow: 0 15px 30px rgba(99, 40, 107, 0.08);
}

.event-overview-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-overview-card__title {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.event-overview-card__title-link:hover {
    color: var(--primary);
}

.event-overview-card__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.event-overview-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 60px;
}

.event-overview-card__funds {
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background-color: var(--bg-warm);
    border: 1px solid rgba(99, 40, 107, 0.08);
}

.event-overview-card__funds-value {
    font-size: 1.6rem;
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
}

.event-overview-card__cta {
    display: block;
}

.charity-progress-bar {
    height: 8px;
    background-color: var(--bg-warm);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.charity-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #d96fd6);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Stage: Đang Tiến Triển (Early / Normal) → Teal */
.progress-fill-normal {
    background: linear-gradient(90deg, #0097a7, #4dd0e1) !important;
}

/* Stage: Đang Diễn Ra (Active / Mid) → Primary Accent */
.progress-fill-active {
    background: linear-gradient(90deg, var(--primary), #c46fd6) !important;
}

/* Stage: Sắp Kết Thúc / Khẩn Cấp (Urgent) → Orange → Red */
.progress-fill-urgent {
    background: linear-gradient(90deg, #e65100, #ff6d00, #ff9800) !important;
    animation: urgentPulse 1.8s ease-in-out infinite;
}

@keyframes urgentPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

/* Countdown mini-box stage colors */
.mini-box-normal {
    background-color: #00838f !important;
}

.mini-box-active {
    background-color: var(--primary-dark) !important;
}

.mini-box-urgent {
    background-color: #bf360c !important;
}


/* 5. Footer Layout Optimization */
.custom-footer {
    background-color: var(--secondary);
    color: var(--bg-warm);
    border-top: 1px solid rgba(99, 40, 107, 0.05);
    padding: 70px 0 35px 0;
    border-radius: 40px 40px 0 0;
    /* Bo cong cạnh trên tạo hiệu ứng hoạt hình mềm mại */
}

.custom-footer h5 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-link {
    color: var(--primary-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
    opacity: 1;
}

.social-icons-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.contact-social-menu p {
    color: var(--primary-dark) !important;
}

.social-icon {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    margin-top: 5px
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 170, 182, 0.2);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-bottom p {
    color: var(--primary-dark);
}

.charity-title {
    font-size: 2.8rem;
    text-shadow: 2px 2px 0 var(--border-color);
}

.campaign-title {
    color: var(--primary-dark);
    font-size: 2.2rem;
    text-align: center;
}

.charity-hero-sec {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0 45px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.personal-thankyou-banner {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    color: var(--primary-dark);
    box-shadow: 5px 5px 0 var(--border-color);
    margin-top: 30px;
}

.charity-dashboard-v2 {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--border-color);
    padding: 30px;
    margin-bottom: 50px;
}

.charity-stat-card {
    background: var(--bg-warm);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--border-color);
    transition: all 0.2s ease;
}

.charity-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--primary);
}

.charity-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.charity-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Cadena', sans-serif;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.leaderboard-row {
    background: var(--white);
    border: 2px solid var(--border-color) !important;
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--border-color);
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    transform: scale(1.01);
    box-shadow: 4px 4px 0 var(--primary);
}

.leaderboard-cell {
    padding: 16px 20px;
    vertical-align: middle;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-cell:first-child {
    border-left: 2px solid var(--border-color);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    width: 70px;
    text-align: center;
}

.leaderboard-cell:last-child {
    border-right: 2px solid var(--border-color);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-dark);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1 {
    background: #fef08a;
    color: #a16207;
}

.rank-2 {
    background: #e2e8f0;
    color: #475569;
}

.rank-3 {
    background: #ffedd5;
    color: #c2410c;
}

.rank-other {
    background: var(--bg-warm);
    color: var(--dark);
}

.charity-banner-sec {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px 0;
    color: var(--white);
    margin-bottom: 40px;
}

.charity-detail-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border: 4px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--border-color);
    margin-bottom: 30px;
}

.content-card {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 6px 6px 0 var(--border-color);
    margin-bottom: 40px;
}

.countdown-container-v2 {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.countdown-box-v2 {
    background: #fff1f2;
    border: 3px solid #e11d48;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0 #e11d48;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 4px 4px 0 rgba(225, 29, 72, 1);
    }

    50% {
        box-shadow: 4px 4px 0 rgba(225, 29, 72, 0.4);
    }

    100% {
        box-shadow: 4px 4px 0 rgba(225, 29, 72, 1);
    }
}

.countdown-num-v2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #be123c;
    font-family: 'Cadena', sans-serif;
}

.countdown-label-v2 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #e11d48;
    margin-top: 4px;
}

.progress-wrapper {
    background: var(--bg-warm);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    height: 25px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.progress-fill {
    background: var(--secondary);
    height: 100%;
    border-right: 2px solid var(--border-color);
    transition: width 1s ease-out;
}

.leaderboard-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
}

.leaderboard-container::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-container::-webkit-scrollbar-track {
    background: var(--bg-warm);
    border-radius: 4px;
}

.leaderboard-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.charity-detail-page {
    padding-top: 50px;
}

span.required {
    color: red;
}

.charity-detail-page .leaderboard-table,
.charity-archive-page .leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95rem;
}

.charity-detail-page .leaderboard-table thead,
.charity-archive-page .leaderboard-table thead {
    background-color: #6b2b7d;
    color: #ffffff;
}

.charity-detail-page .leaderboard-table th,
.charity-archive-page .leaderboard-table th {
    padding: 12px 15px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #14404d;
}

.charity-detail-page .leaderboard-table td,
.charity-archive-page .leaderboard-table td {
    padding: 10px 15px;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #333;
}

.charity-detail-page .leaderboard-table tbody tr:nth-child(odd),
.charity-archive-page .leaderboard-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.charity-detail-page .leaderboard-table tbody tr:nth-child(even),
.charity-archive-page .leaderboard-table tbody tr:nth-child(even) {
    background-color: #e9ecef;
}

.charity-detail-page .leaderboard-row,
.charity-archive-page .leaderboard-row {
    border-radius: 0;
    box-shadow: none;
}

.charity-detail-page .leaderboard-row:hover,
.charity-archive-page .leaderboard-row:hover {
    transform: none;
    box-shadow: none;
}

.charity-detail-page .leaderboard-cell:first-child,
.charity-detail-page .leaderboard-cell:last-child,
.charity-archive-page .leaderboard-cell:first-child,
.charity-archive-page .leaderboard-cell:last-child {
    border-radius: 0;
    width: auto;
}

.donation-summary-banner {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 40px;
    text-align: center;
    color: #0f5132;
    font-weight: 600;
}

.charity-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1.5px solid rgba(99, 40, 107, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(99, 40, 107, 0.06);
    overflow: visible;
}

.charity-products-toolbar__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: rgba(99, 40, 107, 0.64);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.charity-products-toolbar__title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.charity-products-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .polaroid-collage {
        margin-top: 45px;
        height: 380px;
    }

    .polaroid-item {
        width: 180px;
    }

    .polaroid-item img {
        height: 130px;
    }

    .polaroid-1 {
        left: 10%;
    }

    .polaroid-2 {
        right: 10%;
    }

    .polaroid-3 {
        left: 28%;
        bottom: 0%;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 82px;
        /* Offset for mobile fixed header */
    }

    .hero-section {
        padding-top: 0;
    }

    .hero-slide {
        height: fit-content;
    }

    #heroCarousel .carousel-indicators,
    .hero-carousel-controls {
        bottom: 20px
    }

    .logo-img {
        height: 50px;

    }

    .swal2-brutal-popup {
        padding: 15px !important;
    }

    h1#post-main-title {
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .polaroid-collage {
        height: 310px;
    }

    .blog-content-card {
        padding: 40px 15px !important;
    }

    .polaroid-item {
        width: 135px;
        padding: 8px 8px 18px 8px;
    }

    .polaroid-item img {
        height: 90px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-title-wrapper {
        margin-bottom: 10px;
    }

    .brutal-btn {
        font-size: 0.85rem;
    }

    .charity-section {
        padding: 48px 0;
    }

    .charity-section-shell {
        padding: 32px 24px;
        border-radius: 28px;
    }

    .event-card-v2 {
        padding: 14px;
    }

    span.d-block.fw-bold.text-success {
        font-size: 1.6rem !important;
    }

    .stat-box {
        padding: 0 20px !important;
    }

    .event-products-wrapper .brutal-card {
        border-radius: 0px !important;
        box-shadow: none !important;
        border: none
    }

    .content-card {
        padding: 20px 16px;
        border-width: 2px;
        border-radius: 20px;
        box-shadow: 4px 4px 0 var(--border-color);
    }

    .fundraising-amount {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        align-items: start !important;
    }

    #detail-raised {
        max-width: 100%;
        font-size: clamp(2.15rem, 12vw, 2.8rem) !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    .fundraising-amount .fs-4 {
        font-size: 1rem !important;
        line-height: 1.35;
    }

    .progress-wrapper {
        height: 24px !important;
        margin-bottom: 22px;
    }

    .countdown-container-v2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 0;
    }

    .countdown-box-v2 {
        width: 100%;
        height: 74px;
        border-width: 2px;
        border-radius: 14px;
        box-shadow: 3px 3px 0 #e11d48;
    }

    .countdown-num-v2 {
        font-size: 1.7rem;
    }

    .countdown-label-v2 {
        font-size: 0.68rem;
    }

    .donation-summary-banner {
        padding: 14px 15px;
        border-radius: 18px;
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }

    .charity-products-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 15px;
        border-radius: 20px;
    }

    .charity-products-toolbar__title {
        font-size: 1.05rem;
    }

    .charity-products-toolbar__filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .charity-detail-page .leaderboard-container,
    .charity-archive-page .leaderboard-container {
        max-height: none;
        overflow: visible;
        border-radius: 0;
    }

    .charity-detail-page .leaderboard-table,
    .charity-archive-page .leaderboard-table,
    .charity-detail-page .leaderboard-table tbody,
    .charity-archive-page .leaderboard-table tbody,
    .charity-detail-page .leaderboard-row,
    .charity-archive-page .leaderboard-row,
    .charity-detail-page .leaderboard-cell,
    .charity-archive-page .leaderboard-cell {
        display: block;
        width: 100%;
    }

    .charity-detail-page .leaderboard-table,
    .charity-archive-page .leaderboard-table {
        border-collapse: separate;
        border-spacing: 0;
        font-size: 0.9rem;
    }

    .charity-detail-page .leaderboard-table thead,
    .charity-archive-page .leaderboard-table thead {
        display: none;
    }

    .charity-detail-page .leaderboard-table tbody,
    .charity-archive-page .leaderboard-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .charity-detail-page .leaderboard-row,
    .charity-archive-page .leaderboard-row {
        padding: 16px;
        border: 1.5px solid rgba(99, 40, 107, 0.1) !important;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 10px 24px rgba(99, 40, 107, 0.08);
    }

    .charity-detail-page .leaderboard-cell,
    .charity-archive-page .leaderboard-cell {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        padding: 9px 0;
        border: 0 !important;
        color: var(--primary-dark) !important;
        text-align: right !important;
        line-height: 1.45;
        white-space: normal;
    }

    .charity-detail-page .leaderboard-cell+.leaderboard-cell,
    .charity-archive-page .leaderboard-cell+.leaderboard-cell {
        border-top: 1px dashed rgba(99, 40, 107, 0.1) !important;
    }

    .charity-detail-page .leaderboard-cell::before,
    .charity-archive-page .leaderboard-cell::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: rgba(45, 45, 45, 0.62);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: left;
    }

    .profile-wallet-history .table-responsive,
    .profile-charity-contributions .table-responsive {
        overflow: visible;
    }

    .profile-wallet-history .wallet-history-table,
    .profile-wallet-history .wallet-history-table tbody,
    .profile-wallet-history .wallet-history-table tr,
    .profile-wallet-history .wallet-history-table td,
    .profile-charity-contributions .charity-contributions-table,
    .profile-charity-contributions .charity-contributions-table tbody,
    .profile-charity-contributions .charity-contributions-table tr,
    .profile-charity-contributions .charity-contributions-table td {
        display: block;
        width: 100%;
    }

    .profile-wallet-history .wallet-history-table thead,
    .profile-charity-contributions .charity-contributions-table thead {
        display: none;
    }

    .profile-wallet-history .wallet-history-table tbody,
    .profile-charity-contributions .charity-contributions-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .profile-wallet-history .wallet-history-table tr,
    .profile-charity-contributions .charity-contributions-table tr {
        padding: 14px 14px 10px;
        border: 1.5px solid rgba(99, 40, 107, 0.1);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 18px rgba(99, 40, 107, 0.06);
    }

    .profile-wallet-history .wallet-history-table td,
    .profile-charity-contributions .charity-contributions-table td {
        border: 0 !important;
        padding: 8px 0;
        text-align: right !important;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        line-height: 1.45;
        white-space: normal !important;
    }

    .profile-wallet-history .wallet-history-table td+td,
    .profile-charity-contributions .charity-contributions-table td+td {
        border-top: 1px dashed rgba(99, 40, 107, 0.1) !important;
    }

    .profile-wallet-history .wallet-history-table td::before,
    .profile-charity-contributions .charity-contributions-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        text-align: left;
        color: rgba(45, 45, 45, 0.62);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .lead {
        font-size: 14px !important;
    }

    .cart-page__count-chip {
        padding: 8px 18px !important;
        font-size: 14px !important;
    }

    .charity-title,
    .campaign-title {
        font-size: 1.5rem;
        margin-bottom: 10px !important;
    }

    .personal-thankyou-banner {
        flex-direction: column;
        align-items: center !important;
        gap: 12px !important;
        padding: 18px 16px !important;
        margin-top: 22px;
        border-width: 2px;
        border-radius: 18px;
        box-shadow: 4px 4px 0 var(--border-color);
        text-align: center !important;
    }

    .personal-thankyou-banner__icon {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: rgba(229, 170, 182, 0.24);
        font-size: 2rem !important;
    }

    .leaderboard-table {
        border-spacing: 0;
    }

    .leaderboard-table tbody,
    .leaderboard-row {
        display: block;
    }

    .leaderboard-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .leaderboard-row {
        position: relative;
        min-height: 78px;
        padding: 17px 16px 17px 68px;
        border: 1.5px solid rgba(99, 40, 107, 0.1) !important;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 24px rgba(99, 40, 107, 0.08);
    }

    .leaderboard-row:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(99, 40, 107, 0.08);
    }

    .leaderboard-cell {
        display: block;
        padding: 0;
        border: 0 !important;
        text-align: left !important;
    }

    .leaderboard-cell:first-child {
        position: absolute;
        top: 18px;
        left: 18px;
        width: auto;
    }

    .leaderboard-cell:nth-child(2) {
        margin-bottom: 7px;
        color: var(--primary-dark);
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .leaderboard-cell:last-child {
        color: var(--primary);
        font-size: 0.94rem;
        font-weight: 700;
        letter-spacing: 0;
    }

    .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    #thanks-user-title {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    #thanks-user-desc {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    #thanks-action-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .content-card {
        padding: 25px 20px;
    }
}

/* Language Switcher Styles (Premium Modern Cartoon Theme) */
.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: rgba(166, 62, 247, 0.04);
    border: 2px solid rgba(99, 40, 107, 0.08);
    border-radius: 30px;
    padding: 3px;
    transition: all 0.3s ease;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    font-family: 'Lexend', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--primary);
    transform: scale(1.03);
}

.lang-btn.active {
    background-color: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(166, 62, 247, 0.15);
}

.lang-btn:active {
    transform: scale(0.95);
}

/* Dropdown specific overrides & interactive element fixes */
.dropdown-menu.brutal-card:hover {
    transform: none !important;
    /* Prevent dropdown menu from jumping on hover and breaking click targets */
}

#cart-dropdown-items-list {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

#mobile-cart-items {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

#cart-dropdown-items-list::-webkit-scrollbar,
#mobile-cart-items::-webkit-scrollbar {
    width: 5px;
}

#cart-dropdown-items-list::-webkit-scrollbar-track,
#mobile-cart-items::-webkit-scrollbar-track {
    background: rgba(99, 40, 107, 0.05);
    border-radius: 10px;
}

#cart-dropdown-items-list::-webkit-scrollbar-thumb,
#mobile-cart-items::-webkit-scrollbar-thumb {
    background: rgba(99, 40, 107, 0.25);
    border-radius: 10px;
}

#cart-dropdown-items-list::-webkit-scrollbar-thumb:hover,
#mobile-cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 40, 107, 0.45);
}

.cart-item-mini {
    transition: all 0.2s ease;
    padding: 10px 8px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.cart-item-mini:hover {
    background-color: rgba(166, 62, 247, 0.02);
    border-radius: 12px;
}

.cart-item-mini__image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-mini__content {
    min-width: 0;
}

.cart-item-mini__head,
.cart-item-mini__meta,
.cart-item-mini__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-mini__head {
    margin-bottom: 4px;
    min-width: 0;
}

.cart-item-mini__name {
    font-size: 0.85rem;
    min-width: 0;
    max-width: none;
}

.cart-item-mini__meta {
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: rgba(45, 45, 45, 0.68);
}

.cart-item-mini__meta strong {
    color: var(--primary-dark);
    font-size: 0.8rem;
}

.cart-item-mini__actions {
    align-items: flex-end;
}

.cart-item-mini__badge {
    font-size: 0.72rem;
    text-align: right;
}

.remove-cart-item-btn {
    transition: all 0.2s ease;
}

.remove-cart-item-btn:hover {
    transform: scale(1.15) rotate(5deg);
    color: #ff3366 !important;
}

.cart-item-mini__head {
    align-items: flex-start;
}

.cart-item-mini__remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 51, 102, 0.18);
    background: rgba(255, 51, 102, 0.06);
    color: #d92d5e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-mini__remove:hover {
    color: #ff3366;
    background-color: rgba(255, 51, 102, 0.14);
    border-color: rgba(255, 51, 102, 0.35);
    transform: translateY(-1px);
}

.cart-item-mini__remove:focus-visible {
    outline: 3px solid rgba(166, 62, 247, 0.28);
    outline-offset: 2px;
}

.cart-item-mini__remove.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.cart-item-mini--removing {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .home-bestseller-section .product-content>.d-flex:last-child>.d-flex {
        flex-direction: column;
    }

    .home-bestseller-section .product-content>.d-flex:last-child .brutal-btn,
    .home-bestseller-section .product-content>.d-flex:last-child .btn {
        width: 100%;
    }
}

/* Auth Form Custom Styles */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 60px;
    background-color: var(--bg-warm);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 28px;
    padding: 40px 30px;
    animation: authBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes authBounceIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-title {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #88748a;
    text-align: center;
    margin-bottom: 30px;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    display: block;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-wrapper-custom {
    position: relative;
    width: 100%;
}

.input-wrapper-custom>i {
    position: absolute;
    left: 16px;
    top: 53%;
    transform: translateY(-50%);
    color: #a63ef7;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
}

.form-control-custom {
    width: 100%;
    padding: 10px 40px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    border: 2.5px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--white);
    color: var(--primary-dark);
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(166, 62, 247, 0.08);
    background-color: var(--white);
}

.form-control-custom.is-invalid,
.form-control-custom[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.12);
}

.form-control-custom.is-invalid:focus,
.form-control-custom[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #88748a;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    width: 100%;
    font-weight: 700;
    color: var(--primary-dark);
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.auth-social-btn:hover {
    background-color: var(--bg-warm);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.auth-social-btn img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #88748a;
    margin: 25px 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid rgba(99, 40, 107, 0.08);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Auth page layout */
.auth-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(166, 62, 247, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(229, 170, 182, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 241, 235, 0.95));
    padding: 28px 0 70px;
}

.auth-page__hero {
    padding: 8px 0 26px;
}

.auth-page__breadcrumb .breadcrumb {
    margin-bottom: 18px;
    background: transparent;
    padding: 0;
    gap: 8px;
}

.auth-page__breadcrumb .breadcrumb-item,
.auth-page__breadcrumb .breadcrumb-item a {
    color: rgba(99, 40, 107, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.auth-page__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.auth-page__hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.auth-page__eyebrow {
    width: fit-content;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    color: var(--primary-dark);
    max-width: 12ch;
}

.auth-page__subtitle {
    margin: 0;
    color: rgba(45, 45, 45, 0.76);
    max-width: 56ch;
    font-size: 1rem;
}

.auth-page__hero-note {
    display: inline-flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    color: rgba(99, 40, 107, 0.82);
    box-shadow: 0 10px 24px rgba(99, 40, 107, 0.04);
}

.auth-page__hero-note i {
    font-size: 1.05rem;
    color: var(--primary);
    margin-top: 1px;
}

.auth-page__hero-visual {
    position: relative;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 244, 0.96));
}

.auth-page__hero-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.auth-page__hero-image-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.auth-page__hero-visual-copy h2,
.auth-page__panel-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    color: var(--primary-dark);
}

.auth-page__hero-visual-copy p,
.auth-page__panel-text {
    margin: 0;
    color: rgba(45, 45, 45, 0.7);
    font-size: 0.95rem;
}

.auth-page__content {
    padding-top: 8px;
}

.auth-page__panel,
.auth-page__form-card {
    height: 100%;
}

.auth-page__panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(166, 62, 247, 0.06), transparent 28%),
        rgba(255, 255, 255, 0.97);
}

.auth-page__panel-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(99, 40, 107, 0.74);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.auth-page__benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-page__benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 241, 235, 0.85);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.auth-page__benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(166, 62, 247, 0.16);
}

.auth-page__benefit-icon i {
    font-size: 1.2rem;
}

.auth-page__benefit-copy h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--primary-dark);
}

.auth-page__benefit-copy p {
    margin: 0;
    color: rgba(45, 45, 45, 0.7);
    font-size: 0.92rem;
}

.auth-page__form-card {
    max-width: none;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-card__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-card__eyebrow {
    color: rgba(99, 40, 107, 0.68);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.auth-form__check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(45, 45, 45, 0.72);
    font-weight: 700;
}

.auth-form__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.auth-form__link,
.auth-form__strong-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
}

.auth-form__footer {
    font-size: 0.92rem;
}

.auth-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    border: 2px solid rgba(99, 40, 107, 0.1);
    box-shadow: 0 10px 22px rgba(99, 40, 107, 0.05);
    background: rgba(255, 255, 255, 0.96);
    animation: notice-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-notice strong {
    font-size: 0.96rem;
    color: var(--primary-dark);
}

.auth-notice div {
    font-size: 0.92rem;
    color: rgba(45, 45, 45, 0.76);
}

.auth-notice--success {
    border-left: 6px solid #46b450;
}

.auth-notice--warning {
    border-left: 6px solid #f0ad4e;
}

.auth-notice--error {
    border-left: 6px solid #dc3545;
    margin-bottom: 12px
}

.auth-notice--info {
    border-left: 6px solid var(--primary);
}

@media (max-width: 991.98px) {
    .auth-page__hero-grid {
        grid-template-columns: 1fr;
    }

    .auth-page__title {
        max-width: none;
    }

    .auth-page__form-card {
        padding: 26px 22px;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding-top: 18px;
    }

    .auth-page__hero {
        padding-bottom: 18px;
    }

    .auth-page__hero-note {
        flex-direction: column;
    }

    .auth-form__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   9. Floating Contact Widget (Premium Cartoon Style)
   ========================================================= */
.floating-contact-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-contact-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 0 var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.floating-contact-btn img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.floating-contact-btn i {
    font-size: 1.3rem;
}

.floating-contact-btn.btn-phone {
    background-color: #4ebd74;
    color: var(--white);
}

.floating-contact-btn.btn-zalo {
    background-color: var(--white);
}

.floating-contact-btn.btn-messenger {
    background-color: var(--white);
}

/* Hover & Active states (Cartoon Lift and Press Animation) */
.floating-contact-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 0 var(--border-color);
}

.floating-contact-btn:active {
    transform: translateY(2px) scale(0.95);
    box-shadow: 0 2px 0 var(--border-color);
}

/* =========================================================
   10. Profile Dashboard & Tab Custom Styling
   ========================================================= */
.avatar-option-label {
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

input[type="radio"]:checked+.avatar-option-label {
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 0 var(--border-color) !important;
    background-color: var(--primary-light) !important;
}

.avatar-option-label:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 40, 107, 0.3);
}

.remove-fav-btn {
    transition: all 0.2s ease;
}

.remove-fav-btn:hover {
    transform: scale(1.15);
    background-color: #ffeef0 !important;
}

/* Profile Sidebar Buttons */
.profile-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2.5px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 0 var(--border-color);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    margin-bottom: 12px;
    text-align: left;
}

.profile-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--border-color);
    background-color: var(--bg-warm);
    color: var(--primary-dark);
    text-decoration: none;
}

.profile-sidebar-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--border-color);
}

.profile-sidebar-btn.active {
    /* background-color: var(--primary-light) !important; */
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 0 var(--border-color) !important;
    color: var(--primary-dark) !important;
}

.profile-sidebar-btn i {
    font-size: 1.2rem;
}

.brutal-card {
    overflow: visible !important;
}

.member-tier-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.member-tier-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(99, 40, 107, 0.2);
    border-radius: 50%;
    background: rgba(166, 62, 247, 0.08);
    color: var(--primary-dark, #63286b);
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(99, 40, 107, 0.15);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.member-tier-info-btn i {
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none;
}

.member-tier-info-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 0 rgba(99, 40, 107, 0.25);
    background: rgba(166, 62, 247, 0.18);
    color: var(--primary, #a63ef7);
}

.member-tier-popover-card {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px) scale(0.96);
    width: 265px;
    background: #ffffff;
    border: 2.5px solid var(--border-color, #2d2d2d);
    border-radius: 20px;
    box-shadow: 0 10px 0 var(--border-color, #2d2d2d), 0 12px 30px rgba(99, 40, 107, 0.15);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    overflow: hidden;
}

/* Arrow on left side pointing at info icon */
.member-tier-popover-card::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 9px 8px 0;
    border-style: solid;
    border-color: transparent #2d2d2d transparent transparent;
}

.member-tier-info-wrapper:hover .member-tier-popover-card,
.member-tier-popover-card:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0) scale(1);
}

.member-tier-popover-card .popover-header {
    padding: 12px 16px 10px;
    background: linear-gradient(135deg, rgba(166, 62, 247, 0.08) 0%, rgba(255, 248, 245, 0.8) 100%);
    border-bottom: 2px dashed rgba(99, 40, 107, 0.15);
    color: var(--primary-dark, #63286b);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.member-tier-popover-card .popover-body {
    padding: 12px 16px;
    background: #ffffff;
}

.member-tier-popover__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333333;
    font-weight: 500;
    background: #fffdfb;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.member-tier-popover__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-tier-popover__list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    line-height: 1.45;
}

.member-tier-popover__list li:last-child {
    margin-bottom: 0;
}

.member-tier-popover__list li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary, #a63ef7);
}

.member-tier-popover__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.member-tier-popover__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-dark, #63286b);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--border-color, #2d2d2d);
    box-shadow: 0 3px 0 var(--border-color, #2d2d2d);
    transition: all 0.2s ease;
}

.member-tier-popover__link:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--primary, #a63ef7);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 var(--border-color, #2d2d2d);
}

.member-tier-popover__link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.member-tier-popover__link:hover i {
    transform: translateX(3px);
}

/* Member Tiers Modal Styling */
.member-tiers-modal-content {
    border-radius: 24px !important;
    border: 2.5px solid var(--border-color, #2d2d2d) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden;
    background: #ffffff;
}

.member-tiers-modal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(166, 62, 247, 0.15) 0%, rgba(99, 40, 107, 0.05) 100%);
    color: var(--primary, #a63ef7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid rgba(166, 62, 247, 0.2);
}

.tier-card-modal-item {
    position: relative;
    height: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 16px 18px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-card-modal-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 40, 107, 0.12);
    border-color: rgba(166, 62, 247, 0.4);
}

.tier-card-modal-item.is-current-tier {
    border: 2.5px solid var(--primary, #a63ef7);
    background: linear-gradient(180deg, rgba(166, 62, 247, 0.04) 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(166, 62, 247, 0.18);
}

.current-tier-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary, #a63ef7);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(166, 62, 247, 0.3);
    border: 2px solid #ffffff;
}

.tier-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tier-min-spend-pill {
    font-size: 0.78rem;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.tier-modal-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.tier-modal-benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #334155;
}

.tier-modal-benefits-list li:last-child {
    margin-bottom: 0;
}

.tier-modal-benefits-list li i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 575.98px) {
    .member-tier-popover-card {
        left: 50%;
        top: 100%;
        transform: translateX(-50%) translateY(10px) scale(0.96);
        width: 240px;
    }

    .member-tier-popover-card::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 100%;
        transform: translateX(-50%);
        border-width: 0 8px 8px 8px;
        border-color: transparent transparent #2d2d2d transparent;
    }

    .member-tier-info-wrapper:hover .member-tier-popover-card,
    .member-tier-popover-card:hover {
        transform: translateX(-50%) translateY(8px) scale(1);
    }

    .member-tiers-modal-content {
        border-radius: 20px !important;
        margin: 8px;
    }

    .tier-card-modal-item {
        padding: 20px 14px 16px;
    }
}

.lyvabao-tooltip .tooltip-inner {
    max-width: 280px;
    white-space: pre-line;
    text-align: left;
    background: #fff;
    color: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 0 var(--border-color);
    padding: 12px 14px;
    font-weight: 600;
}

.lyvabao-tooltip.bs-tooltip-top .tooltip-arrow::before,
.lyvabao-tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: var(--border-color);
}

.lyvabao-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.lyvabao-tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: var(--border-color);
}

.lyvabao-tooltip.bs-tooltip-start .tooltip-arrow::before,
.lyvabao-tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: var(--border-color);
}

.lyvabao-tooltip.bs-tooltip-end .tooltip-arrow::before,
.lyvabao-tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: var(--border-color);
}

.profile-tier-progress {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(99, 40, 107, 0.08);
    box-shadow: inset 0 1px 2px rgba(99, 40, 107, 0.08);
}

.profile-tier-progress__fill {
    position: relative;
    height: 100%;
    border-radius: 999px;
    background-image:
        linear-gradient(90deg, #3b82f6 0%, #60a5fa 35%, #7c3aed 100%);
    background-size: 220% 100%;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.28);
    transition: width 0.35s ease;
    animation: profile-tier-gradient-move 2.8s linear infinite;
}

.profile-tier-progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: translateX(-70%);
    animation: profile-tier-shine 2.1s ease-in-out infinite;
    opacity: 0.9;
}

.form-help-text {
    color: #88748a;
    font-size: 0.82rem;
    line-height: 1.45;
}

@keyframes profile-tier-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

@keyframes profile-tier-shine {
    0% {
        transform: translateX(-75%);
    }

    100% {
        transform: translateX(175%);
    }
}

button.btn.remove-fav-btn {
    right: 0px;
    width: 35px;
    height: 35px;
}

/* SweetAlert2 Neobrutalist custom styling */
.swal2-container {
    z-index: 10000000 !important;
}

.swal2-brutal-popup {
    border: 3.5px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: 6px 6px 0 var(--border-color) !important;
    background-color: var(--white) !important;
    padding: 24px !important;
}

.swal2-brutal-title {
    color: var(--primary-dark) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    padding-top: 10px !important;
}

.swal2-brutal-html {
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
}

.swal2-brutal-confirm-btn {
    margin-right: 10px !important;
}

/* Custom Theme Brand Focus Outline & Ring */
/* a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-control-custom:focus,
.form-select:focus,
select:focus,
textarea:focus {
    outline: 2.5px solid var(--primary) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
} */

/* Clear outline for mouse clicks while keeping accessibility for keyboard navigation */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Additional focus state overrides for Bootstrap items */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    outline: none !important;
}

.nav-link:focus,
.nav-link:focus-visible {
    outline: 2.5px solid var(--primary) !important;
    outline-offset: 2px !important;
}

/* Custom product card tags and buttons layout */
.product-health-badge {
    background-color: var(--secondary-light) !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    display: inline-block;
    margin-bottom: 6px;
}

span.badge a {
    color: #fff !important;
    text-decoration: none !important;
}

.charity-contribution-tag {
    background-color: #f7eefc !important;
    color: var(--primary-dark) !important;
    border: 1.5px dashed var(--primary-light) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Custom styles for range slider and checkbox in Neobrutalist filter */
.form-range::-webkit-slider-runnable-track {
    background: var(--bg-warm);
    border: 2px solid var(--border-color);
    height: 8px;
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
    border: 2px solid var(--border-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: -6px;
    box-shadow: 0 2px 0 var(--border-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--border-color) !important;
}

.products-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.products-filter-section {
    border-bottom: 1px solid rgba(99, 40, 107, 0.1);
    padding-bottom: 12px;
}

.products-filter-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.products-filter-section__icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.products-filter-section.is-open .products-filter-section__icon {
    transform: rotate(180deg);
}

.products-filter-section__body {
    padding-top: 14px;
}

.products-filter-section__body[hidden] {
    display: none !important;
}

.products-filter-subcategories {
    margin: 0 0 10px 22px;
    padding-left: 12px;
    border-left: 1px solid rgba(99, 40, 107, 0.14);
}

.products-filter-category-group {
    margin-bottom: 12px;
}

.products-filter-category-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-filter-category-group__toggle {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
}

.products-filter-category-group__toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.products-filter-category-group.is-open .products-filter-category-group__toggle i {
    transform: rotate(180deg);
}

.products-filter-toggle,
.products-filter-close {
    display: none;
}

.products-filter-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .products-filter-toggle {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 160px;
        gap: 7px;
        padding: 8px 13px;
        border: 1.5px solid rgba(99, 40, 107, 0.14);
        border-radius: 12px;
        background: rgba(229, 170, 182, 0.22);
        color: var(--primary-dark);
        font-size: 0.85rem;
        font-weight: 800;
        box-shadow: 0 7px 16px rgba(99, 40, 107, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .products-filter-toggle:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0 4px 10px rgba(99, 40, 107, 0.08);
    }

    .products-filter-overlay {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(45, 24, 49, 0.32);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1080;
        transition: opacity 0.34s ease, visibility 0.34s ease;
    }

    .products-filter-column {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(88vw, 360px);
        max-width: 360px;
        height: min(82dvh, 680px);
        padding: 0;
        z-index: 1090;
        transform: translate3d(-50%, calc(-50% + 28px), 0) scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease;
        will-change: transform;
    }

    .products-filter-card {
        position: relative !important;
        top: auto !important;
        height: 100%;
        max-height: 100%;
        margin: 0 !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 24px 60px rgba(45, 24, 49, 0.22);
    }

    .products-filter-close {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid rgba(99, 40, 107, 0.14);
        border-radius: 12px;
        background: #fff7f4;
        color: var(--primary-dark);
        font-size: 0.95rem;
    }

    body.products-filter-open {
        overflow: hidden;
        touch-action: none;
    }

    body.products-filter-open .products-filter-overlay {
        opacity: 1;
        margin-top: 0;
        visibility: visible;
        pointer-events: auto;
    }

    body.products-filter-open .products-filter-column {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .floating-contact-widget {
        right: 14px;
        bottom: 14px;
        gap: 8px;
        z-index: 1030;
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .floating-contact-btn {
        width: 52px;
        height: 52px;
        border-width: 2px;
        box-shadow: 0 3px 0 var(--border-color);
    }

    .floating-contact-btn img {
        width: 32px;
        height: 32px;
    }

    .floating-contact-btn i {
        font-size: 1.05rem;
    }

    body.products-filter-open .floating-contact-widget {
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
    }
}

@media (max-width: 575.98px) {
    .products-filter-column {
        width: min(92vw, 350px);
        height: min(84dvh, 620px);
    }

    .products-filter-card {
        border-radius: 22px !important;
    }

    .products-filter-toggle {
        width: 100%;
    }

    .floating-contact-widget {
        right: 10px;
        bottom: 12px;
        gap: 7px;
    }

    .floating-contact-btn {
        width: 46px;
        height: 46px;
    }

    .floating-contact-btn img {
        width: 28px;
        height: 28px;
    }

    #detail-product-name {
        font-size: 1.4rem !important;
    }

    .product-info {
        margin-top: 30px !important;
    }
}

/* Thumbnail Scroll Container */
.thumbnail-scroll-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar visually but keep functionality */
.thumbnail-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-warm);
    border-radius: 4px;
}

.thumbnail-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.7;
}

/* Thumbnail Preview Buttons */
.thumbnail-btn {
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2.5px solid var(--border-color) !important;
    padding: 0;
    background: none;
}

button.btn.btn-outline-dark.btn-sm.rounded-pill.fw-bold {
    padding: 7px !important;
    margin-top: 3px;
}

.table-responsive {
    overflow: hidden;
}

span.badge.rounded-pill.text-uppercase.fw-bold {
    padding: 10px 0px;
}

span.d-block.fw-bold.fs-4.text-success,
.font-cadena,
span.text-muted.fw-bold.fs-4 {
    font-family: 'Cadena';
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
    opacity: 1;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 3px 3px 0 var(--primary) !important;
}

/* Product Detail Tabs override */
#detail-tabs-list .profile-sidebar-btn {
    margin-bottom: 0 !important;
    width: auto !important;
}

#detail-tabs-list .profile-sidebar-btn.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 0 var(--primary-dark) !important;
    color: var(--white) !important;
}

/* Product detail active thumbnail image styling */
.main-image-viewport img {
    object-fit: cover;
}

/* Horizontal Slider track & navigation */
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2.5px solid var(--border-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 3px 3px 0 var(--border-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    cursor: pointer;
}

.slider-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--border-color);
    transform: translateY(-50%) translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--primary-dark);
}

.slider-nav-btn:active {
    transform: translateY(-50%) translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--border-color);
}

.slider-nav-btn.prev-btn {
    left: 15px;
}

.slider-nav-btn.next-btn {
    right: 15px;
}

h1#post-main-title,
h1#blog-hero-title {
    color: white;
}

h1#post-main-title {
    font-size: 2.5rem;
    line-height: 1.3;
}

/* Tạm ẩn menu Liên hệ theo yêu cầu */
#nav-contact,
#mobile-nav-contact {
    display: none !important;
}

#footer-link-contact {
    display: none !important;
}

img.event-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.event-card-v2 {
    background: #fff;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-v2 .event-card-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-funds-box {
    border: 2px dashed #28a745;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 20px;
    background-color: rgba(40, 167, 69, 0.05);
}

.btn-charity {
    background-color: var(--primary);
    color: white !important;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-charity:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

span.d-block.fw-bold.text-success {
    font-size: 2rem;
    font-family: 'Cadena';
}

.event-card-v2 p.text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 2000px) {
    .hero-slide {
        height: min(84vh, 980px);
    }

    #heroCarousel .carousel-item:nth-child(1) .slide-bg {
        object-position: 66% center;
    }

    #heroCarousel .carousel-item:nth-child(2) .slide-bg {
        object-position: 62% center;
    }

    #heroCarousel .carousel-item:nth-child(3) .slide-bg {
        object-position: 68% center;
    }

    .hero-slide-content {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1320px, calc(100% - 3rem));
        max-width: none;
        padding: 0 clamp(0px, 0.4vw, 12px);
        gap: 14px;
        align-items: flex-start;
        justify-content: center;
    }

    .hero-slide-content::before {
        content: '';
        position: absolute;
        inset: clamp(-18px, -1vw, -10px) clamp(-22px, -1.2vw, -12px) clamp(-18px, -1vw, -10px) clamp(-22px, -1.2vw, -12px);
        border-radius: 28px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: -1;
        pointer-events: none;
    }

    .hero-badge {
        margin-bottom: 16px;
        padding: 8px 20px;
        font-size: 0.9rem;
        letter-spacing: 1.7px;
        box-shadow: 0 8px 18px rgba(50, 0, 80, 0.14);
    }

    .hero-title {
        font-size: clamp(3.4rem, 2.8vw, 5.1rem);
        line-height: 1.06;
        margin-bottom: 14px;
        text-shadow: 0 4px 26px rgba(50, 0, 80, 0.28);
    }

    .hero-description {
        max-width: 560px;
        font-size: 1.18rem;
        margin-bottom: 28px;
        text-shadow: 0 2px 10px rgba(50, 0, 80, 0.2);
    }

    .hero-slide .brutal-btn {
        padding: 14px 26px;
        font-size: 1rem;
        box-shadow: 0 12px 28px rgba(130, 34, 211, 0.22);
    }

    #heroCarousel .carousel-indicators {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1320px, calc(100% - 3rem));
        bottom: 46px;
    }

    .hero-carousel-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1320px, calc(100% - 3rem));
        bottom: 46px;
        gap: 12px;
        justify-content: flex-end;
    }

    .hero-ctrl-btn {
        width: 50px;
        height: 50px;
        border-width: 2.5px;
    }

    #heroCarousel .carousel-indicators button {
        width: 30px;
        height: 5px;
    }

    #heroCarousel .carousel-indicators button.active {
        width: 60px;
    }
}

/* Cart Page BEM Layout */
.cart-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 26%),
        radial-gradient(circle at 90% 10%, rgba(166, 62, 247, 0.08), transparent 18%),
        linear-gradient(180deg, #fff7f3 0%, #fff1eb 36%, #fff7f4 100%);
    padding-bottom: 72px;
}

.cart-page__hero {
    padding: 68px 0 12px;
}

.cart-page__breadcrumb {
    margin-bottom: 14px;
}

.cart-page__breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.cart-page__breadcrumb .breadcrumb-item,
.cart-page__breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

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

.cart-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.cart-page__eyebrow {
    margin-bottom: 12px;
    background: rgba(229, 170, 182, 0.28);
    border-color: rgba(99, 40, 107, 0.08);
    color: #6e3577;
    font-weight: 500;
}

.cart-page__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.06;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cart-page__description {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.98rem;
    line-height: 1.75;
}

.cart-page__count-chip {
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    color: #6e3577;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 40, 107, 0.06);
}

.cart-page__content {
    position: relative;
    z-index: 2;
}

.cart-page__items-panel,
.cart-summary__card,
.cart-summary__note,
.cart-page__empty {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: 0 14px 34px rgba(99, 40, 107, 0.08);
}

.cart-page__items-panel {
    border-radius: 30px;
    padding: 22px;
}

.cart-page__items-head {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 220px;
    gap: 16px;
    padding: 0 16px 14px;
    margin-bottom: 18px;
    color: rgba(99, 40, 107, 0.52);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.cart-page__items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-page__item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: center;
    padding: 15px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: 0 10px 24px rgba(99, 40, 107, 0.05);
}

.cart-page__item-media {
    width: 112px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--secondary-light);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.cart-page__item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-page__item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-page__item-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.03rem;
    line-height: 1.35;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cart-page__item-note {
    margin: 6px 0 0;
    color: #7a7f88;
    font-size: 0.88rem;
}

.cart-page__item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cart-page__quantity {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-warm);
    border: 1.5px solid rgba(99, 40, 107, 0.1);
}

.cart-page__quantity-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: rgba(99, 40, 107, 0.86);
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-page__quantity-btn:hover {
    background: rgba(166, 62, 247, 0.08);
    color: #7f33c4;
}

.cart-page__quantity-input {
    width: 46px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    outline: none;
    font-size: 0.95rem;
}

.cart-page__quantity.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.cart-page__quantity--mini {
    transform: scale(0.92);
    transform-origin: left center;
}

.cart-page__quantity--mini .cart-page__quantity-btn,
.cart-page__quantity--checkout .cart-page__quantity-btn {
    width: 32px;
    height: 32px;
}

.cart-page__quantity--mini .cart-page__quantity-input,
.cart-page__quantity--checkout .cart-page__quantity-input {
    width: 38px;
    font-size: 0.88rem;
}

.cart-page__quantity--checkout {
    background: #fff;
}

.cart-page__remove-btn {
    border: 0;
    background: transparent;
    color: #c45a67;
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cart-page__remove-btn:hover {
    color: #a94757;
    transform: translateY(-1px);
}

.cart-page__item-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    text-align: right;
}

.cart-page__item-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(99, 40, 107, 0.52);
}

.cart-page__item-price,
.cart-page__item-subtotal {
    color: var(--primary-dark);
    font-size: 0.98rem;
    font-weight: 700;
}

.cart-page__item-subtotal {
    color: #8a40d8;
    font-size: 1.08rem;
}

/* Single product quantity control */
#detail-qty-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    background: transparent;
    padding: 0;
    line-height: 1.2;
}

#detail-qty-input[type="number"]::-webkit-outer-spin-button,
#detail-qty-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#detail-qty-input {
    box-sizing: border-box;
}

.cart-summary {
    position: sticky;
    top: 112px;
}

.cart-summary__card {
    border-radius: 30px;
    padding: 22px;
}

.cart-summary__title {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cart-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(45, 45, 45, 0.78);
    font-size: 0.94rem;
}

.cart-summary__row strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.cart-summary__row--total {
    padding-top: 14px;
    border-top: 1.5px dashed rgba(99, 40, 107, 0.12);
    margin-top: 8px;
    font-size: 1.02rem;
    font-weight: 700;
}

.cart-summary__row--total strong {
    color: #8a40d8;
    font-size: 1.18rem;
}

.cart-summary__coupon {
    display: flex;
    gap: 10px;
    margin: 18px 0 10px;
}

.cart-summary__coupon-input {
    min-width: 0;
    border: 1.5px solid rgba(99, 40, 107, 0.12);
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    outline: none;
    font-size: 0.94rem;
}

.cart-summary__coupon-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(166, 62, 247, 0.12);
}

.cart-summary__coupon-button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 18px;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-summary__feedback {
    min-height: 20px;
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
}

.cart-summary__checkout {
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
}

.cart-summary__note {
    margin-top: 16px;
    border-radius: 24px;
    padding: 18px 20px;
}

.cart-summary__note-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
}

.cart-summary__note-text {
    margin: 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}

.cart-page__empty {
    display: none;
    border-radius: 32px;
    padding: 56px 28px;
    text-align: center;
}

.cart-page__empty-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 18px;
}

.cart-page__empty-title {
    margin: 0 0 10px;
    font-size: 1.55rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
}

.cart-page__empty-text {
    margin: 0 auto 24px;
    max-width: 560px;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.95rem;
    line-height: 1.72;
}

.cart-page .brutal-btn {
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 10px 20px rgba(99, 40, 107, 0.08);
}

.cart-page .brutal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(99, 40, 107, 0.1);
}

.cart-page .brutal-btn-secondary {
    background-color: #e4b2bf;
    color: var(--primary-dark) !important;
}

.cart-page .brutal-btn-secondary:hover {
    background-color: #dc9fb0;
}

.cart-page .brutal-badge {
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .cart-page__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-page__items-panel {
        padding: 18px;
    }

    .cart-page__items-head {
        display: none;
    }

    .cart-page__item {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
    }

    .cart-page__item-media {
        width: 96px;
    }

    .cart-page__item-summary {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
        padding-top: 4px;
        border-top: 1px dashed rgba(99, 40, 107, 0.1);
        margin-top: 4px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .cart-page__hero {
        padding-top: 18px;
    }

    .cart-page__title {
        font-size: 1.8rem;
    }

    .cart-page__description {
        font-size: 0.95rem;
    }

    .cart-page__item {
        gap: 12px;
        padding: 14px;
    }

    .cart-page__item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary__coupon {
        flex-direction: column;
    }

    .cart-summary__coupon-button {
        width: 100%;
    }
}

/* Checkout Page BEM Layout */
.checkout-page {
    background:
        radial-gradient(circle at top right, rgba(229, 170, 182, 0.18), transparent 22%),
        radial-gradient(circle at 8% 15%, rgba(166, 62, 247, 0.05), transparent 16%),
        linear-gradient(180deg, #fff8f5 0%, #fff2ee 44%, #fff8f6 100%);
    padding-bottom: 72px;
}

.checkout-page__hero {
    padding: 68px 0 12px;
}

.checkout-page__breadcrumb {
    margin-bottom: 14px;
}

.checkout-page__breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.checkout-page__breadcrumb .breadcrumb-item,
.checkout-page__breadcrumb .breadcrumb-item a {
    color: rgba(99, 40, 107, 0.76);
    text-decoration: none;
    font-weight: 700;
}

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

.checkout-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.checkout-page__eyebrow {
    margin-bottom: 12px;
    background: rgba(229, 170, 182, 0.28);
    border-color: rgba(99, 40, 107, 0.08);
    color: #6e3577;
    font-weight: 700;
}

.checkout-page__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.06;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.checkout-page__description {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.98rem;
    line-height: 1.75;
}

.checkout-page__count-chip {
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    color: #6e3577;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 40, 107, 0.06);
}

.checkout-page__content {
    position: relative;
    z-index: 2;
}

.checkout-page__panel,
.checkout-summary__card,
.checkout-summary__note {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: 0 14px 34px rgba(99, 40, 107, 0.08);
}

.checkout-page__panel {
    border-radius: 30px;
    padding: 24px;
}

.checkout-page__section {
    padding: 0;
    margin: 0 0 20px;
}

.checkout-page__section:last-child {
    margin-bottom: 0;
}

.checkout-page__section-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.checkout-page__section-text {
    margin: 0 0 14px;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.93rem;
    line-height: 1.72;
}

.checkout-page__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-page__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-page__field--full {
    grid-column: 1 / -1;
}

.checkout-page__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(99, 40, 107, 0.72);
    letter-spacing: 0.04em;
}

.checkout-page__input,
.checkout-page__select,
.checkout-page__textarea {
    width: 100%;
    border: 1.5px solid rgba(99, 40, 107, 0.12);
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    outline: none;
    font-size: 0.94rem;
    color: var(--primary-dark);
}

.checkout-page__input:focus,
.checkout-page__select:focus,
.checkout-page__textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(166, 62, 247, 0.12);
}

.checkout-page__input.is-invalid,
.checkout-page__select.is-invalid,
.checkout-page__textarea.is-invalid,
.checkout-page__input[aria-invalid="true"],
.checkout-page__select[aria-invalid="true"],
.checkout-page__textarea[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.12);
}

.checkout-page__input.is-invalid:focus,
.checkout-page__select.is-invalid:focus,
.checkout-page__textarea.is-invalid:focus,
.checkout-page__input[aria-invalid="true"]:focus,
.checkout-page__select[aria-invalid="true"]:focus,
.checkout-page__textarea[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.checkout-page__textarea {
    min-height: 96px;
    resize: vertical;
}

.checkout-page__helper {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(45, 45, 45, 0.62);
}

.checkout-page__shipping {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-page__shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 241, 235, 0.68);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.checkout-page__shipping-option input {
    margin-top: 4px;
}

.checkout-page__shipping-copy {
    min-width: 0;
}

.checkout-page__shipping-title {
    display: block;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.96rem;
}

.checkout-page__shipping-desc {
    display: block;
    margin-top: 3px;
    color: rgba(45, 45, 45, 0.7);
    font-size: 0.88rem;
    line-height: 1.55;
}

.checkout-page__payment {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-page__payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.checkout-page__payment-option input {
    margin-top: 0;
}

.checkout-page__payment-title {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.96rem;
}

.checkout-page__payment-desc {
    margin-top: 2px;
    color: rgba(45, 45, 45, 0.68);
    font-size: 0.88rem;
}

.checkout-page__payment-details {
    margin-top: 14px;
}

.checkout-page__payment-detail-wrap[hidden] {
    display: none !important;
}

.checkout-page__payment-detail {
    border-radius: 22px;
    border: 1.5px solid rgba(99, 40, 107, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 229, 233, 0.42));
    padding: 18px;
    box-shadow: 0 12px 30px rgba(99, 40, 107, 0.06);
}

.checkout-page__payment-detail-title {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-page__payment-detail-text {
    margin: 0 0 14px;
    color: rgba(45, 45, 45, 0.74);
    font-size: 0.92rem;
    line-height: 1.6;
}

.checkout-page__payment-empty {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(99, 40, 107, 0.14);
    color: rgba(45, 45, 45, 0.7);
    font-size: 0.92rem;
}

.checkout-page__payment-banks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-page__bank-account {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 40, 107, 0.08);
    padding: 14px;
}

.checkout-page__bank-account-name {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.checkout-page__bank-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.checkout-page__bank-account-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-page__bank-account-row span {
    color: rgba(45, 45, 45, 0.6);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-page__bank-account-row strong {
    color: var(--primary-dark);
    font-size: 0.94rem;
    word-break: break-word;
}

.checkout-page__bank-qr {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-page__bank-qr-label {
    color: rgba(45, 45, 45, 0.64);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-page__bank-qr-image {
    width: 180px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(99, 40, 107, 0.08);
    background: #fff;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(99, 40, 107, 0.06);
}

.checkout-summary {
    position: sticky;
    top: 112px;
}

.checkout-summary__card {
    border-radius: 30px;
    padding: 22px;
}

.checkout-summary__title {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.checkout-summary__account-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 241, 235, 0.8);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.checkout-summary__account-text {
    margin: 0;
    color: rgba(45, 45, 45, 0.74);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.checkout-summary__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(45, 45, 45, 0.78);
    font-size: 0.94rem;
}

.checkout-summary__row strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.checkout-summary__row--total {
    padding-top: 14px;
    border-top: 1.5px dashed rgba(99, 40, 107, 0.12);
    margin-top: 8px;
    font-size: 1.02rem;
    font-weight: 700;
}

.checkout-summary__row--total strong {
    color: #8a40d8;
    font-size: 1.18rem;
}

.checkout-summary__items {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid rgba(99, 40, 107, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-summary__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.checkout-summary__thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.08);
}

.checkout-summary__name {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.94rem;
    line-height: 1.35;
}

.checkout-summary__item-content {
    min-width: 0;
}

.checkout-summary__item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.checkout-summary__item-actions {
    margin-bottom: 8px;
}

.checkout-summary__item-subtotal {
    color: #8a40d8;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.checkout-summary__meta {
    color: rgba(45, 45, 45, 0.68);
    font-size: 0.84rem;
}

.checkout-summary__section {
    padding: 16px 0;
    border-bottom: 1.5px solid rgba(99, 40, 107, 0.08);
}

.checkout-summary__section-title {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.checkout-summary__section .checkout-page__shipping-option,
.checkout-summary__section .checkout-page__payment-option {
    padding: 12px 13px;
}

.checkout-summary__section+.checkout-summary__list {
    margin-top: 16px;
}

.checkout-summary__note {
    margin-top: 16px;
    border-radius: 24px;
    padding: 18px 20px;
}

.checkout-summary__note-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
}

.checkout-summary__note-text {
    margin: 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}

.checkout-summary__submit {
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(99, 40, 107, 0.08);
}

.checkout-summary__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(99, 40, 107, 0.1);
}

.checkout-page .brutal-btn {
    text-transform: none;
    letter-spacing: 0;
}

.checkout-page .brutal-btn-secondary {
    background-color: #e4b2bf;
    color: var(--primary-dark) !important;
}

.checkout-page .brutal-btn-secondary:hover {
    background-color: #dc9fb0;
}

@media (max-width: 991.98px) {
    .checkout-page__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-page__panel {
        padding: 18px;
    }

    .checkout-page__fields {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .checkout-page__hero {
        padding-top: 18px;
    }

    .checkout-page__title {
        font-size: 1.8rem;
    }

    .checkout-page__description {
        font-size: 0.95rem;
    }

    .checkout-summary__submit {
        width: 100%;
    }

    .checkout-summary__account-actions {
        flex-direction: column;
    }
}

/* Thank You Page BEM Layout */
.thankyou-page {
    background:
        radial-gradient(circle at top right, rgba(229, 170, 182, 0.2), transparent 22%),
        radial-gradient(circle at 8% 18%, rgba(166, 62, 247, 0.05), transparent 16%),
        linear-gradient(180deg, #fff8f5 0%, #fff2ee 44%, #fff8f6 100%);
    padding-bottom: 72px;
}

.thankyou-page__hero {
    padding: 68px 0 18px;
}

.thankyou-page__breadcrumb {
    margin-bottom: 16px;
}

.thankyou-page__breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.thankyou-page__breadcrumb .breadcrumb-item,
.thankyou-page__breadcrumb .breadcrumb-item a {
    color: rgba(99, 40, 107, 0.76);
    text-decoration: none;
    font-weight: 700;
}

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

.thankyou-page__header {
    position: relative;
    padding: 30px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: 0 18px 44px rgba(99, 40, 107, 0.08);
}

.thankyou-page__status-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e5aab6, #a63ef7);
    color: #fff;
    font-size: 1.9rem;
    box-shadow: 0 12px 24px rgba(99, 40, 107, 0.12);
}

.thankyou-page__eyebrow {
    margin-bottom: 12px;
    background: rgba(229, 170, 182, 0.28);
    border-color: rgba(99, 40, 107, 0.08);
    color: #6e3577;
    font-weight: 700;
}

.thankyou-page__title {
    max-width: 760px;
    margin: 0;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.thankyou-page__description {
    margin: 14px 0 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.98rem;
    line-height: 1.75;
}

.thankyou-page__content {
    position: relative;
    z-index: 2;
}

.thankyou-page__panel,
.thankyou-summary__card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(99, 40, 107, 0.08);
    box-shadow: 0 14px 34px rgba(99, 40, 107, 0.08);
}

.thankyou-page__panel {
    border-radius: 30px;
    padding: 24px;
}

.thankyou-page__payment-detail {
    border-radius: 22px;
    border: 1.5px solid rgba(99, 40, 107, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 229, 233, 0.4));
    padding: 18px;
}

.thankyou-page__payment-detail .checkout-page__payment-detail {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.thankyou-page__order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid rgba(99, 40, 107, 0.08);
}

.thankyou-page__label {
    display: block;
    margin-bottom: 4px;
    color: rgba(99, 40, 107, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thankyou-page__order-code {
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.thankyou-page__status-chip {
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(229, 170, 182, 0.24);
    color: #6e3577;
    font-size: 0.86rem;
    font-weight: 700;
}

.thankyou-page__overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.thankyou-page__overview-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 241, 235, 0.68);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.thankyou-page__overview-item span,
.thankyou-page__item-meta {
    display: block;
    color: rgba(45, 45, 45, 0.66);
    font-size: 0.84rem;
}

.thankyou-page__overview-item strong {
    display: block;
    margin-top: 5px;
    color: var(--primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
}

.thankyou-page__section {
    padding-top: 4px;
}

.thankyou-page__section--payment .thankyou-page__payment-detail {
    margin-top: 10px;
}

.thankyou-page__payment-detail {
    border-radius: 22px;
    border: 1.5px solid rgba(99, 40, 107, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 229, 233, 0.4));
    padding: 18px;
}

.thankyou-page__section-title,
.thankyou-summary__title {
    margin: 0 0 14px;
    color: var(--primary-dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.thankyou-page__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thankyou-page__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
}

.thankyou-page__item-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.08);
}

.thankyou-page__item-name {
    margin: 0 0 3px;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.35;
}

.thankyou-page__item strong {
    color: var(--primary-dark);
    font-weight: 700;
    white-space: nowrap;
}

.thankyou-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.thankyou-page__primary-action,
.thankyou-page__secondary-action {
    padding: 12px 18px;
    border-radius: 18px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.thankyou-summary {
    position: sticky;
    top: 112px;
}

.thankyou-summary__card {
    border-radius: 28px;
    padding: 22px;
    margin-bottom: 16px;
}

.thankyou-summary__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thankyou-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(45, 45, 45, 0.78);
    font-size: 0.94rem;
}

.thankyou-summary__row strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.thankyou-summary__row--total {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1.5px dashed rgba(99, 40, 107, 0.12);
    font-weight: 700;
}

.thankyou-summary__row--total strong {
    color: #8a40d8;
    font-size: 1.18rem;
}

.thankyou-page__steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thankyou-page__step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.thankyou-page__step span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(229, 170, 182, 0.26);
    color: #6e3577;
    font-weight: 700;
}

.thankyou-page__step p {
    margin: 3px 0 0;
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
}

.thankyou-page .brutal-btn {
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {
    .thankyou-page__overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thankyou-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {

    .thankyou-page__header,
    .thankyou-page__panel {
        padding: 18px;
        border-radius: 24px;
    }

    .thankyou-page__title {
        font-size: 1.8rem;
    }

    .thankyou-page__overview,
    .thankyou-page__item {
        grid-template-columns: 1fr;
    }

    .thankyou-page__item-image {
        width: 100%;
        height: 150px;
    }

    .thankyou-page__actions .brutal-btn {
        width: 100%;
        text-align: center;
    }
}

/* (10-08-26) */
#checkout-summary-fragment input[name=payment_method] {
    display: block !important;
}

/* Stack footer columns on tablet/iPad and mobile (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .custom-footer .row>[class*="col-"] {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}