/* ================================================================
   TQB v2.0 — Te Quiero Bombón Boutique
   Moderno · Aesthetic · Minimalista · Responsive 100%
   ================================================================ */

/* =================================================================
   1. DESIGN TOKENS
   ================================================================= */
:root {
    /* === Bootstrap overrides === */
    --bs-primary: #224C9F;
    --bs-primary-rgb: 34, 76, 159;
    --bs-secondary: #2C2C2C;
    --bs-light: #FADADD;
    --bs-dark: #2C2C2C;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #2C2C2C;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-heading-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-link-color: #224C9F;
    --bs-link-hover-color: #1A3A7A;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.75rem;

    /* === Core palette === */
    --tqb-primary: #224C9F;
    --tqb-primary-rgb: 34, 76, 159;
    --tqb-primary-light: #5A8AD4;
    --tqb-primary-dark: #183870;
    --tqb-bg: #FADADD;
    --tqb-bg-rgb: 250, 218, 221;
    --tqb-text: #2C2C2C;
    --tqb-text-soft: #6B6B6B;
    --tqb-surface: #FFFFFF;
    --tqb-sale: #D32027;
    --tqb-sale-rgb: 211, 32, 39;
    --tqb-success: #5B8C5A;
    --tqb-success-rgb: 91, 140, 90;

    /* === Shadows === */
    --tqb-shadow-sm: 0 2px 8px rgba(34, 76, 159, 0.06);
    --tqb-shadow-md: 0 4px 16px rgba(34, 76, 159, 0.10);
    --tqb-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.08);
    --tqb-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
    --tqb-shadow-card: 0 2px 12px rgba(34, 76, 159, 0.07), 0 0 0 1px rgba(34, 76, 159, 0.04);
    --tqb-shadow-glow: 0 0 20px rgba(34, 76, 159, 0.15);

    /* === Spacing (4px scale) === */
    --tqb-space-xs: 0.25rem;
    --tqb-space-sm: 0.5rem;
    --tqb-space-md: 1rem;
    --tqb-space-lg: 1.5rem;
    --tqb-space-xl: 2rem;
    --tqb-space-2xl: 3rem;
    --tqb-space-3xl: 4rem;
    --tqb-space-4xl: 6rem;

    /* === Radius system === */
    --tqb-radius-sm: 6px;
    --tqb-radius-md: 10px;
    --tqb-radius-lg: 16px;
    --tqb-radius-xl: 24px;
    --tqb-radius-full: 9999px;

    /* === Typography === */
    --tqb-font-display: 'Inter', sans-serif;
    --tqb-font-body: 'Inter', sans-serif;
    --tqb-text-xs: clamp(0.75rem, 1.5vw, 0.8125rem);
    --tqb-text-sm: clamp(0.8125rem, 1.5vw, 0.875rem);
    --tqb-text-base: clamp(0.9375rem, 2vw, 1rem);
    --tqb-text-lg: clamp(1rem, 2vw, 1.125rem);
    --tqb-text-xl: clamp(1.25rem, 3vw, 1.5rem);
    --tqb-text-2xl: clamp(1.5rem, 4vw, 2rem);
    --tqb-text-3xl: clamp(2rem, 5vw, 2.75rem);
    --tqb-text-4xl: clamp(2.5rem, 6vw, 3.5rem);

    /* === Transitions === */
    --tqb-transition-fast: 150ms ease;
    --tqb-transition-base: 250ms ease;
    --tqb-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --tqb-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* === Glass effects === */
    --tqb-glass-bg: rgba(255, 255, 255, 0.65);
    --tqb-glass-border: rgba(34, 76, 159, 0.12);
    --tqb-glass-blur: blur(16px);

    /* === Metallic gradients === */
    --tqb-metallic-gold: linear-gradient(135deg, #BF953F, #FCF6B5 30%, #B38728 50%, #FBF5B7 70%, #AA771C);
    --tqb-metallic-silver: linear-gradient(135deg, #BCC6CC, #E8ECEF 30%, #B6B6B4 50%, #E8ECEF 70%, #98A2B3);
    --tqb-metallic-rosegold: linear-gradient(135deg, #B76E79, #FADADD 30%, #C08081 50%, #FADADD 70%, #9B5A63);
    --tqb-metallic-bronze: linear-gradient(135deg, #CD7F32, #E8C396 30%, #B87333 50%, #E8C396 70%, #966F33);
    --tqb-metallic-champagne: linear-gradient(135deg, #F7E7CE, #FFF8E7 30%, #E8D3B8 50%, #FFF8E7 70%, #D4B896);
    --tqb-metallic-gunmetal: linear-gradient(135deg, #2C3539, #5C6B73 30%, #2C3539 50%, #4A5559 70%, #1B2429);
    --tqb-metallic-copper: linear-gradient(135deg, #B87333, #E8A970 30%, #C67E4A 50%, #E8A970 70%, #8B5A2B);
    --tqb-metallic-platinum: linear-gradient(135deg, #E5E4E2, #FAFAFA 30%, #D4D4D2 50%, #FAFAFA 70%, #C0C0C0);
}

/* =================================================================
   2. RESET & BASE
   ================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tqb-font-body);
    color: var(--tqb-text);
    background-color: var(--tqb-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--tqb-font-display);
    font-weight: 600;
    color: var(--tqb-text);
}

a {
    transition: color var(--tqb-transition-fast);
}
a:hover {
    color: var(--tqb-primary);
}

[x-cloak] { display: none !important; }

/* Skip link */
.skip-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--tqb-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--tqb-radius-md) var(--tqb-radius-md);
    text-decoration: none;
}
.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.75rem 1.5rem;
}

/* =================================================================
   3. TYPOGRAPHY UTILITIES
   ================================================================= */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--tqb-primary), var(--tqb-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================================================
   4. BUTTONS
   ================================================================= */
.btn {
    transition: all var(--tqb-transition-base);
    font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: #224C9F;
    --bs-btn-border-color: #224C9F;
    --bs-btn-hover-bg: #1A3A7A;
    --bs-btn-hover-border-color: #1A3A7A;
    --bs-btn-active-bg: #142C5C;
    --bs-btn-active-border-color: #142C5C;
    background: linear-gradient(135deg, var(--tqb-primary), var(--tqb-primary-dark));
    border: none;
    border-radius: var(--tqb-radius-full);
    padding: 0.625rem 1.75rem;
    box-shadow: 0 4px 14px rgba(34, 76, 159, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 76, 159, 0.4);
    background: linear-gradient(135deg, var(--tqb-primary), var(--tqb-primary-dark));
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    --bs-btn-color: #224C9F;
    --bs-btn-border-color: #224C9F;
    --bs-btn-hover-bg: #224C9F;
    --bs-btn-hover-border-color: #224C9F;
    --bs-btn-active-bg: #1A3A7A;
    --bs-btn-active-border-color: #1A3A7A;
    border-radius: var(--tqb-radius-full);
    border-width: 1.5px;
}
.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--tqb-text-soft);
    padding: 0.5rem 0.75rem;
    transition: color var(--tqb-transition-fast);
}
.btn-ghost:hover {
    color: var(--tqb-primary);
}

/* =================================================================
   5. FORMS
   ================================================================= */
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.accordion-button:focus {
    border-color: #224C9F;
    box-shadow: 0 0 0 0.18rem rgba(34, 76, 159, 0.2);
    outline: none;
}

.page-link:focus {
    box-shadow: 0 0 0 0.18rem rgba(34, 76, 159, 0.2);
}

/* =================================================================
   6. CARDS
   ================================================================= */
.product-card {
    border: 1px solid #E8E8E8;
    border-radius: var(--bs-border-radius-lg);
    transition: box-shadow var(--tqb-transition-base), transform var(--tqb-transition-base);
    background: var(--tqb-surface);
    overflow: hidden;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(34, 76, 159, 0.15);
    transform: translateY(-2px);
}
.product-card .card-img-top {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}
.product-card .card-title {
    font-family: var(--tqb-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #2C2C2C;
}
.product-card .price {
    color: #224C9F;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Card image wrapper with hover zoom */
.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
    aspect-ratio: 3 / 4;
}
.card-img-top-wrapper .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img-top-wrapper .card-img-top {
    transform: scale(1.05);
}
.card-img-overlay-hover {
    position: absolute;
    inset: 0;
    background: rgba(34, 76, 159, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-img-overlay-hover span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
}
.product-card:hover .card-img-overlay-hover {
    opacity: 1;
}

/* Product card placeholders */
.product-card-placeholder {
    height: 280px;
    object-fit: cover;
    width: 100%;
}

/* Value cards */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--tqb-radius-lg);
    background: var(--tqb-surface);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 76, 159, 0.1);
}
.value-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FADADD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* =================================================================
   7. NAVIGATION
   ================================================================= */

/* Sticky header wrapper */
.tqb-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* --- Navbar --- */
.navbar-tqb {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E8E8E8;
    transition: background-color var(--tqb-transition-base), box-shadow var(--tqb-transition-base);
}
.navbar-tqb .navbar-brand {
    font-family: var(--tqb-font-display);
    font-weight: 700;
    color: #224C9F;
    font-size: 1.1rem;
}
.navbar-tqb .nav-link {
    color: #2C2C2C;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color var(--tqb-transition-fast);
}
.navbar-tqb .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tqb-primary), var(--tqb-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.navbar-tqb .nav-link:hover,
.navbar-tqb .nav-link.active {
    color: #224C9F;
}
.navbar-tqb .nav-link:hover::after,
.navbar-tqb .nav-link.active::after {
    transform: scaleX(1);
}
.navbar-tqb .nav-link-admin::after {
    display: none;
}

/* Navbar scroll shadow */
.navbar-scrolled {
    background-color: rgba(255, 248, 240, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Navbar dropdowns */
.navbar-tqb .dropdown-menu {
    border-radius: 0.75rem;
    padding: 0.5rem;
    z-index: 1025;
}
.navbar-tqb .dropdown-menu .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.navbar-tqb .dropdown-menu .dropdown-item i {
    color: #224C9F;
}
.navbar-tqb .dropdown-menu .dropdown-item:hover {
    color: #224C9F;
    background-color: #FADADD;
}

/* Dropdown entrance animation */
.dropdown-menu {
    display: block;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega menu */
.dropdown-mega {
    min-width: 380px;
    padding: 0.5rem;
}
.dropdown-mega .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background-color 0.15s ease;
}
.dropdown-mega .dropdown-item i {
    font-size: 1.15rem;
    color: #224C9F;
    width: 24px;
    text-align: center;
}
.dropdown-mega .dropdown-item:hover {
    background-color: #FADADD;
}

/* Desktop search (always visible) */
.search-form-nav-desktop {
    position: relative;
    max-width: 440px;
    width: 100%;
}
.search-form-nav-desktop .input-group {
    flex-wrap: nowrap;
}
.search-input-nav {
    border-color: #e0d8cc;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: var(--tqb-radius-full) 0 0 var(--tqb-radius-full);
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input-nav:focus {
    border-color: var(--tqb-primary);
    box-shadow: 0 0 0 0.18rem rgba(34, 76, 159, 0.15);
}
.search-submit-btn {
    background-color: rgba(34, 76, 159, 0.1);
    border: 1px solid #e0d8cc;
    border-left: none;
    color: var(--tqb-primary);
    border-radius: 0 var(--tqb-radius-full) var(--tqb-radius-full) 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.search-submit-btn:hover {
    background-color: var(--tqb-primary);
    color: #fff;
}
.search-form-nav-desktop .search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    margin-top: 0.25rem;
}

/* User avatar */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #224C9F;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
}
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.35); }
    70% { transform: scale(0.9); }
}
.cart-badge-bounce {
    animation: cartBounce 0.4s ease;
}

/* Mobile search */
.mobile-search-bar {
    padding: 0.5rem 1rem;
    background-color: #FFFFFF;
}
.mobile-search-bar .form-control {
    border-color: #E8E8E8;
    font-size: 0.875rem;
    border-radius: var(--tqb-radius-full);
}
.mobile-search-bar .form-control:focus {
    border-color: #224C9F;
    box-shadow: none;
}

/* Mobile sticky wrapper (search + categories) */
.mobile-nav-sticky {
    /* stays inside .tqb-header-sticky, no own sticky needed */
}

/* Mobile category row (db categories horizontal scroll) */
.mobile-category-row {
    background-color: #fff;
    border-bottom: 1px solid #E8E8E8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-category-row::-webkit-scrollbar {
    display: none;
}
.mobile-category-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.75rem;
    gap: 0.15rem;
    white-space: nowrap;
}
.mobile-category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    color: var(--tqb-text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 2rem;
    border: 1px solid #E8E8E8;
    transition: all var(--tqb-transition-fast);
}
.mobile-category-link:hover {
    background-color: var(--tqb-bg);
    color: var(--tqb-primary);
    border-color: var(--tqb-primary);
}

/* Offcanvas backdrop blur */
.offcanvas-backdrop {
    backdrop-filter: blur(4px);
}

/* Login / Register text link */
.login-text-btn {
    display: flex;
    align-items: center;
}
.login-text-links {
    font-size: 0.85rem;
    line-height: 1.3;
}
.login-text-links a {
    color: var(--tqb-text);
    text-decoration: none;
    transition: color 0.15s ease;
}
.login-text-links a:hover {
    color: var(--tqb-primary);
}
.login-text-sep {
    color: var(--tqb-text-soft);
    margin: 0 0.15rem;
}

/* Cart link desktop */
.cart-link-desktop {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tqb-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}
.cart-link-desktop:hover {
    color: var(--tqb-primary);
}
.cart-link-text {
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
}
.cart-total-count {
    font-weight: 400;
    color: var(--tqb-text-soft);
}
.cart-total-price {
    font-size: 0.8rem;
}

/* =================================================================
   7b. CATEGORY NAV ROW
   ================================================================= */
.category-nav-row {
    background-color: var(--tqb-primary);
    position: sticky;
    top: 132px;
    z-index: 1019;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.category-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.category-nav-item {
    position: relative;
}
.category-nav-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s ease, background-color 0.15s ease;
    border-radius: 4px 4px 0 0;
}
.category-nav-link:hover,
.category-nav-link.active {
    color: var(--tqb-primary);
    background-color: #fff;
}
.category-nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--tqb-primary);
    transition: transform 0.25s ease;
}
.category-nav-link:not(.dropdown-toggle):hover::after,
.category-nav-link:not(.dropdown-toggle).active::after {
    transform: translateX(-50%) scaleX(1);
}
.category-nav-dropdown-icon {
    font-size: 0.65rem;
    margin-left: 0.3rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.category-nav-item.dropdown.show .category-nav-dropdown-icon {
    transform: rotate(180deg);
}

.category-nav-row .dropdown-menu {
    background-color: #fff;
    border: none;
    border-radius: 0 0 var(--tqb-radius-md) var(--tqb-radius-md);
    box-shadow: var(--tqb-shadow-lg);
    margin-top: 0;
}
.category-nav-row .dropdown-toggle::after {
    display: none;
}
.category-nav-row .dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}
.category-nav-row .dropdown-item i {
    color: var(--tqb-primary);
}
.category-nav-row .dropdown-item:hover {
    background-color: var(--tqb-bg);
    color: var(--tqb-primary);
}

/* =================================================================
   8. HERO & CAROUSEL
   ================================================================= */
#heroCarousel {
    height: clamp(380px, 55svh, 600px);
    overflow: hidden;
}
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

/* Carousel slides */
.carousel-bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(44, 44, 44, 0.5) 0%,
        rgba(44, 44, 44, 0.15) 60%,
        rgba(44, 44, 44, 0.05) 100%
    );
}
.carousel-caption-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.carousel-caption-wrap .container {
    padding-left: 3rem;
    padding-right: 3rem;
    text-align: right;
}
.carousel-title {
    font-family: var(--tqb-font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}
.carousel-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.carousel-btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    color: #224C9F !important;
    border: none;
    transition: all var(--tqb-transition-base);
}
.carousel-btn:hover {
    background-color: #224C9F !important;
    color: #fff !important;
}

/* Ken Burns zoom */
.ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Text fade-up animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
.carousel-item.active .animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* Carousel controls */
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 50%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}
#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #224C9F;
}
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    margin: 0 6px;
    opacity: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
#heroCarousel .carousel-indicators .active {
    background-color: #224C9F;
    border-color: #224C9F;
}

/* Scroll indicator */
.scroll-indicator {
    text-align: center;
    padding: 0.75rem 0 0.25rem;
    color: #224C9F;
    font-size: 1.5rem;
    animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* =================================================================
   9. PRODUCT COMPONENTS
   ================================================================= */

/* Product detail image */
.product-detail-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
    cursor: zoom-in;
    border-radius: var(--tqb-radius-lg);
}
.product-detail-placeholder {
    aspect-ratio: 3 / 4;
}
.carousel-inner.overflow-hidden .carousel-item.active .product-detail-image:hover {
    transform: scale(1.3);
}

/* Quantity input */
.quantity-input-group {
    width: 140px;
}

/* Product card swatches */
.product-card-swatches {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}
.product-card-swatches .color-dot {
    width: 12px;
    height: 12px;
}

/* Search suggestions */
.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    margin-top: 0.25rem;
}
.search-suggestions-dropdown {
    background: #fff;
    border-radius: var(--tqb-radius-md);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #E8E8E8;
}
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: #2C2C2C;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f8f5f0;
}
.search-suggestion-item:last-of-type {
    border-bottom: none;
}
.search-suggestion-item:hover {
    background-color: #FADADD;
}
.search-suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.search-suggestion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.search-suggestion-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestion-price {
    font-size: 0.8rem;
    color: #224C9F;
    font-weight: 700;
}
.search-suggestion-all {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #224C9F;
    text-decoration: none;
    background-color: #FADADD;
    transition: background-color 0.15s ease;
}
.search-suggestion-all:hover {
    background-color: #f8e8d5;
    color: #1A3A7A;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 46px;
    height: 46px;
    background-color: #224C9F;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(34, 76, 159, 0.3);
    z-index: 1040;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.scroll-top-btn:hover {
    transform: scale(1.1);
    background-color: #1A3A7A;
}

/* Image placeholder with metallic shimmer */
.product-img-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    border-radius: var(--tqb-radius-lg);
}
.product-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(34, 76, 159, 0.05) 0%,
        rgba(253, 242, 233, 0.8) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(253, 242, 233, 0.8) 75%,
        rgba(34, 76, 159, 0.05) 100%
    );
    background-size: 400% 400%;
    animation: metallic-shimmer 3s ease infinite;
}
.product-img-placeholder::after {
    content: '✨';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.25;
}
@keyframes metallic-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* =================================================================
   10. METALLIC COLOR SYSTEM
   ================================================================= */

/* Base dot style */
.color-dot {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all var(--tqb-transition-base);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
}
.color-dot.selected,
.color-dot.active {
    border-color: var(--tqb-primary);
    box-shadow: 0 0 0 2px var(--tqb-bg), 0 0 0 4px var(--tqb-primary);
    transform: scale(1.1);
}
.color-dot:hover {
    transform: scale(1.08);
}

/* Metallic color dots */
.color-dot-oro { background: var(--tqb-metallic-gold); }
.color-dot-plata { background: var(--tqb-metallic-silver); }
.color-dot-rose-gold { background: var(--tqb-metallic-rosegold); }
.color-dot-bronce { background: var(--tqb-metallic-bronze); }
.color-dot-champagne { background: var(--tqb-metallic-champagne); }
.color-dot-gunmetal { background: var(--tqb-metallic-gunmetal); }
.color-dot-cobre { background: var(--tqb-metallic-copper); }
.color-dot-platino { background: var(--tqb-metallic-platinum); }

/* Classic solids with subtle gradient */
.color-dot-negro { background: linear-gradient(135deg, #2C2C2C, #4A4A4A, #1A1A1A); }
.color-dot-blanco { background: linear-gradient(135deg, #F5F5F5, #FFFFFF, #E8E8E8); border-color: #d0d0d0; }
.color-dot-beige { background: linear-gradient(135deg, #E8DCC8, #F5EFE0, #D4C8B0); }
.color-dot-terracota { background: linear-gradient(135deg, #C67E4A, #DFA878, #B56A3A); }
.color-dot-azul { background: linear-gradient(135deg, #5B7FA5, #7BA3C8, #4A6B8A); }
.color-dot-rojo { background: linear-gradient(135deg, #D32027, #D46560, #9A302A); }
.color-dot-rosa { background: linear-gradient(135deg, #D4A0B0, #E8C4D0, #C08898); }
.color-dot-verde { background: linear-gradient(135deg, #5B8C5A, #7DAA7C, #4A7049); }

/* =================================================================
   11. CART & CHECKOUT
   ================================================================= */

/* Cart offcanvas */
.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--tqb-radius-sm);
    object-fit: cover;
}
.cart-qty-input {
    width: 100px;
}

/* Checkout steps */
.checkout-steps-wrapper {
    position: relative;
}
.checkout-steps-wrapper .d-flex {
    position: relative;
    z-index: 1;
    gap: 0.25rem;
}

/* Checkout summary sticky */
@media (min-width: 992px) {
    .checkout-summary-sticky {
        position: sticky;
        top: 100px;
    }
}

/* =================================================================
   12. FOOTER
   ================================================================= */
.footer-tqb {
    background-color: #224C9F;
    color: #FFFFFF;
    padding: 3rem 0 1.5rem;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--tqb-primary), var(--tqb-primary-light), var(--tqb-primary-dark)) 1;
}
.footer-tqb h6,
.footer-tqb p,
.footer-tqb li,
.footer-tqb span,
.footer-tqb small,
.footer-tqb div {
    color: #FFFFFF;
}
.footer-tqb a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color var(--tqb-transition-fast);
}
.footer-tqb a:hover {
    color: rgba(255, 255, 255, 0.85);
}
.footer-tqb i {
    color: #FFFFFF;
}
.footer-tqb .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFFFFF;
    transition: all var(--tqb-transition-base);
}
.footer-tqb .social-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.footer-tqb .payment-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}
.footer-tqb .payment-badge i {
    color: #FADADD;
}

/* =================================================================
   13. GLASS EFFECTS
   ================================================================= */
.glass {
    background: var(--tqb-glass-bg);
    backdrop-filter: var(--tqb-glass-blur);
    -webkit-backdrop-filter: var(--tqb-glass-blur);
    border: 1px solid var(--tqb-glass-border);
    border-radius: var(--tqb-radius-lg);
}

.glass-card {
    background: var(--tqb-glass-bg);
    backdrop-filter: var(--tqb-glass-blur);
    -webkit-backdrop-filter: var(--tqb-glass-blur);
    border: 1px solid var(--tqb-glass-border);
    border-radius: var(--tqb-radius-lg);
    box-shadow: var(--tqb-shadow-sm);
    transition: box-shadow var(--tqb-transition-base);
}
.glass-card:hover {
    box-shadow: var(--tqb-shadow-md);
}

/* =================================================================
   14. SKELETON LOADING
   ================================================================= */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #E8E8E8 25%, #fdf2e9 50%, #E8E8E8 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--bs-border-radius);
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}
.skeleton-text-sm {
    height: 0.75rem;
    width: 60%;
}
.skeleton-btn {
    height: 2.5rem;
    width: 100%;
}
.htmx-indicator.skeleton-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E8E8E8;
    border-top-color: #224C9F;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================================================================
   15. ANIMATIONS & KEYFRAMES
   ================================================================= */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--tqb-space-3xl) var(--tqb-space-md);
    text-align: center;
}
.empty-state-icon {
    font-size: 3.5rem;
    color: var(--tqb-primary);
    opacity: 0.35;
    margin-bottom: var(--tqb-space-md);
}
.empty-state h4 {
    font-family: var(--tqb-font-display);
    color: var(--tqb-text);
    margin-bottom: var(--tqb-space-sm);
}
.empty-state p {
    color: var(--tqb-text-soft);
    max-width: 400px;
    margin-bottom: var(--tqb-space-lg);
}

/* Empty icon pulse */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.13; }
}
.empty-icon-pulse {
    animation: gentlePulse 3s ease-in-out infinite;
}

/* =================================================================
   16. TOAST NOTIFICATIONS
   ================================================================= */
.toast-tqb {
    background-color: var(--tqb-text);
    color: var(--tqb-bg);
    border-radius: var(--tqb-radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--tqb-shadow-lg);
    border-left: 4px solid var(--tqb-primary);
    font-weight: 500;
}
.toast-tqb.success {
    border-left-color: var(--tqb-success);
}
.toast-tqb.error {
    border-left-color: var(--tqb-sale);
}

/* =================================================================
   17. WHATSAPP WIDGET
   ================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFFFFF;
}

/* WhatsApp chat popup */
.whatsapp-chat-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 1051;
}
.whatsapp-chat-popup {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 48px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1052;
    overflow: hidden;
}
.whatsapp-chat-enter {
    animation: chatSlideUp 0.3s ease-out;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.whatsapp-chat-leave {
    animation: chatSlideDown 0.2s ease-in forwards;
}
@keyframes chatSlideDown {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.95); }
}
.whatsapp-chat-header {
    background-color: #224C9F;
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.whatsapp-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.whatsapp-chat-close:hover {
    color: #fff;
}
.whatsapp-chat-body {
    padding: 1rem;
    background-color: #f8f5f0;
}
.whatsapp-chat-message {
    margin-bottom: 0.75rem;
}
.whatsapp-bubble {
    display: inline-block;
    background-color: #fff;
    padding: 0.6rem 0.85rem;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    line-height: 1.4;
    color: #2C2C2C;
}
.whatsapp-chat-input {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.whatsapp-chat-input .form-control {
    font-size: 0.875rem;
    border-color: #e0d8cc;
    resize: none;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}
.whatsapp-chat-input .form-control:focus {
    border-color: #224C9F;
    box-shadow: 0 0 0 0.15rem rgba(34, 76, 159, 0.15);
}
.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    background-color: #25D366;
    border-color: #25D366;
}
.whatsapp-send-btn:hover {
    background-color: #1fb855;
    border-color: #1fb855;
}

/* =================================================================
   18. TOP BAR
   ================================================================= */
.top-bar {
    background: linear-gradient(90deg, var(--tqb-primary), var(--tqb-primary-dark));
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    min-height: 36px;
    overflow: hidden;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}
.top-bar-links {
    padding-right: 1rem;
}
.top-bar-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}
.top-bar-track {
    display: flex;
    white-space: nowrap;
    gap: 4rem;
    animation: topBarScroll 14s linear infinite;
}
.top-bar-track:hover {
    animation-play-state: paused;
}
.top-bar-message {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1.5rem;
    flex-shrink: 0;
}
@keyframes topBarScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =================================================================
   19. INFO BANNER STRIP
   ================================================================= */
.banner-strip {
    background: linear-gradient(135deg, var(--tqb-primary), var(--tqb-primary-dark));
    color: #fff;
    padding: 1.5rem 0;
}
.banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
.banner-item + .banner-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}
.banner-title {
    font-family: var(--tqb-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.15rem;
}
.banner-text {
    font-size: 0.8rem;
    color: #FFFFFF;
    opacity: 0.85;
    margin-bottom: 0;
}
.banner-icon {
    color: #FFFFFF;
}

/* =================================================================
   20. SALE COLORS
   ================================================================= */
.text-sale { color: var(--tqb-sale) !important; }
.bg-sale { background-color: var(--tqb-sale) !important; }
.badge.bg-sale { color: #fff; }

/* =================================================================
   21. UTILITY CLASSES
   ================================================================= */
.bg-tqb-light {
    background-color: #FADADD !important;
}
.text-tqb-primary {
    color: #224C9F !important;
}
.border-tqb {
    border-color: #E8E8E8 !important;
}
.text-pastel {
    color: #FADADD !important;
}

/* =================================================================
   22. CONFIRM MODAL
   ================================================================= */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.confirm-modal {
    background: #fff;
    border-radius: var(--tqb-radius-lg);
    padding: 2rem 1.75rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* =================================================================
   23. DASHBOARD
   ================================================================= */

/* Sidebar */
.sidebar {
    background-color: #1A3A7A;
    background-image: linear-gradient(180deg, #1A3A7A 0%, #224C9F 100%);
    min-height: 100vh;
    width: 260px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar .sidebar-brand {
    font-family: var(--tqb-font-display);
    font-weight: 700;
    color: #fff;
    font-size: 1.25rem;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    transition: all var(--tqb-transition-fast);
}
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--tqb-primary);
    border-radius: 0 0.5rem 0.5rem 0;
}
.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}
.sidebar .sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.75rem 1rem;
}

/* Dashboard misc */
.dashboard-action-col { width: 200px; }
.admin-thumb { width: 48px; height: 48px; }
.live-preview-sticky { top: 20px; }

/* Live preview card */
.live-preview-card {
    width: 300px;
    border: 1px solid #E8E8E8;
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: var(--tqb-shadow-sm);
}
.live-preview-card img {
    height: 280px;
    object-fit: cover;
    width: 100%;
}
.live-preview-mobile {
    width: 280px;
    margin: 0 auto;
}

/* Dropzone */
.dropzone-area {
    border: 2px dashed #E8E8E8;
    border-radius: var(--bs-border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}
.dropzone-area:hover,
.dropzone-area.dragover {
    border-color: #224C9F;
    background-color: rgba(34, 76, 159, 0.05);
}

/* Variant matrix */
.variant-matrix td,
.variant-matrix th {
    text-align: center;
    vertical-align: middle;
}
.variant-matrix input[type="number"] {
    width: 70px;
    text-align: center;
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

/* KPI cards */
.kpi-card-icon {
    font-size: 2rem;
    opacity: 0.5;
    flex-shrink: 0;
}
.dashboard .card.border-tqb {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard .card.border-tqb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 76, 159, 0.12);
}

/* =================================================================
   23a. WEBVIEW MODAL
   ================================================================= */
.tqb-webview-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tqb-webview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.tqb-webview-panel {
    position: relative;
    background: var(--tqb-surface);
    border-radius: var(--tqb-radius-lg);
    box-shadow: var(--tqb-shadow-xl);
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: webviewPanelIn 0.35s ease-out;
}
@keyframes webviewPanelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tqb-webview-modal.hidden .tqb-webview-panel {
    animation: webviewPanelOut 0.25s ease-in forwards;
}
@keyframes webviewPanelOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.97); }
}
.tqb-webview-header {
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem;
}
.tqb-webview-icon {
    width: 56px;
    height: 56px;
    background: var(--tqb-bg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--tqb-primary);
}
.tqb-webview-header h5 {
    font-family: var(--tqb-font-display);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}
.tqb-webview-body {
    padding: 0.5rem 1.5rem 1rem;
    overflow-y: auto;
    flex: 1;
}
.tqb-webview-body p {
    font-size: 0.9rem;
    color: var(--tqb-text-soft);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.tqb-webview-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--tqb-text);
}
.tqb-webview-steps li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.tqb-webview-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #E8E8E8;
    background: #fafafa;
}

/* =================================================================
   23b. COOKIE CONSENT BANNER
   ================================================================= */
.tqb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    padding: 1rem;
    background: var(--tqb-glass-bg);
    backdrop-filter: var(--tqb-glass-blur);
    -webkit-backdrop-filter: var(--tqb-glass-blur);
    border-top: 1px solid var(--tqb-glass-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.tqb-cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.tqb-cookie-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.tqb-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.tqb-cookie-banner-text {
    flex: 1;
    min-width: 0;
}
.tqb-cookie-banner-title {
    font-family: var(--tqb-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--tqb-text);
    margin-bottom: 0.25rem;
}
.tqb-cookie-banner-desc {
    font-size: 0.85rem;
    color: var(--tqb-text-soft);
    margin-bottom: 0;
    line-height: 1.45;
}
.tqb-cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Cookie preferences modal */
.tqb-cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tqb-cookie-pref-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}
.tqb-cookie-pref-panel {
    position: relative;
    background: var(--tqb-surface);
    border-radius: var(--tqb-radius-lg);
    box-shadow: var(--tqb-shadow-xl);
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cookiePanelIn 0.35s ease-out;
}
@keyframes cookiePanelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tqb-cookie-pref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E8E8E8;
}
.tqb-cookie-pref-header h5 {
    font-family: var(--tqb-font-display);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}
.tqb-cookie-pref-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.tqb-cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.tqb-cookie-category:last-child {
    border-bottom: none;
}
.tqb-cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.tqb-cookie-cat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tqb-text);
}
.tqb-cookie-cat-desc {
    font-size: 0.82rem;
    color: var(--tqb-text-soft);
    margin: 0;
    line-height: 1.4;
}
.tqb-cookie-pref-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #E8E8E8;
    background: #fafafa;
}

/* Form switch override */
.form-check-input:checked {
    background-color: var(--tqb-primary);
    border-color: var(--tqb-primary);
}

/* Cookie banner mobile */
@media (max-width: 767.98px) {
    .tqb-cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .tqb-cookie-banner-actions {
        justify-content: stretch;
    }
    .tqb-cookie-banner-actions .btn {
        flex: 1;
    }
}

/* =================================================================
   24. RESPONSIVE OVERRIDES
   ================================================================= */

/* Mobile: product cards & inputs */
@media (max-width: 576px) {
    .product-card-placeholder {
        height: 180px;
    }
    .product-card .card-title {
        font-size: 0.85rem;
    }
    .product-card .price {
        font-size: 0.95rem;
    }
    .quantity-input-group {
        width: 120px;
    }
    .cart-qty-input {
        width: 90px;
    }
    .checkout-steps .step-item {
        font-size: 0.75rem;
    }
    .checkout-steps .step-sep {
        font-size: 0.6rem;
    }
}

/* Mobile navbar layout: hamburger left | brand center | icons right */
@media (max-width: 991.98px) {
    .main-nav .container {
        flex-wrap: nowrap;
    }
    .main-nav .navbar-brand {
        flex: 1;
        text-align: center;
        margin: 0;
    }
    .main-nav .navbar-brand img {
        width: 80px !important;
        height: 80px !important;
    }
    .main-nav .navbar-brand {
        font-size: 1.1rem !important;
    }
    .navbar-toggler {
        padding: 0.25rem;
    }
}
@media (max-width: 576px) {
    .main-nav .navbar-brand img {
        width: 60px !important;
        height: 60px !important;
    }
    .main-nav .navbar-brand {
        font-size: 0.95rem !important;
    }
}

/* Dashboard: offcanvas sidebar on mobile */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1055;
        transition: left 0.3s ease;
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar-backdrop {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 1054;
        display: none;
    }
    .sidebar-backdrop.show {
        display: block;
    }
    main.flex-grow-1 {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
}
@media (min-width: 992px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

/* Dashboard: table → cards on mobile */
@media (max-width: 768px) {
    .dashboard-table thead {
        display: none;
    }
    .dashboard-table tbody tr {
        display: block;
        border: 1px solid #E8E8E8;
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        background: #fff;
    }
    .dashboard-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.35rem 0;
        border: none;
        text-align: right;
        font-size: 0.85rem;
    }
    .dashboard-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #2C2C2C;
        padding-right: 0.75rem;
        flex-shrink: 0;
    }
    .dashboard-table tbody td:empty {
        display: none;
    }
    .dashboard-table tbody td:last-child {
        padding-bottom: 0;
    }
    .dashboard-table tbody td:first-child {
        padding-top: 0;
    }
    .dashboard-table .admin-thumb {
        width: 36px !important;
        height: 36px !important;
    }
    .dashboard-table img.rounded[width="48"] {
        width: 36px !important;
        height: 36px !important;
    }
    .dashboard-table .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    .sidebar-brand img {
        width: 100px !important;
        height: 100px !important;
    }
    .variant-matrix-wrapper {
        overflow-x: auto;
    }
    main.flex-grow-1 > div {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .table-responsive {
        overflow-x: hidden;
    }
}

/* Dashboard: small mobile overrides */
@media (max-width: 576px) {
    .container-fluid > h1.fw-bold {
        font-size: 1.25rem;
    }
    .container-fluid .card-header {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .container-fluid .card-body {
        padding: 0.75rem;
    }
    .card-body.p-4 {
        padding: 1rem !important;
    }
    .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
    }
    .card-header.fw-semibold {
        font-size: 0.85rem;
    }
    h1.fw-bold {
        font-size: 1.5rem;
    }
    .table th,
    .table td {
        white-space: nowrap;
    }
    .kpi-card-icon {
        font-size: 1.5rem;
    }
}

/* Footer mobile */
@media (max-width: 576px) {
    .footer-tqb .row > div {
        text-align: center;
    }
}

/* Carousel mobile */
@media (max-width: 767.98px) {
    .carousel-subtitle {
        font-size: 0.95rem;
    }
    .carousel-caption-wrap .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .carousel-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .banner-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .banner-item + .banner-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Dashboard row mobile */
@media (max-width: 768px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .card-body {
        padding: 0.75rem !important;
    }
}

/* Checkout steps mobile */
@media (max-width: 768px) {
    .checkout-steps-wrapper {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .checkout-steps-wrapper .d-flex {
        min-width: 500px;
    }
}

/* Search suggestions mobile */
@media (max-width: 991.98px) {
    .search-suggestions-container {
        position: static;
        margin-top: 0.5rem;
    }
    .search-suggestions-dropdown {
        box-shadow: none;
        border: 1px solid #E8E8E8;
    }
    .search-form-nav-desktop {
        display: none;
    }
}

/* Category nav row — desktop only, mobile hidden via d-none d-lg-block */

/* Top bar mobile */
@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.72rem;
        min-height: 32px;
    }
    .top-bar-links {
        display: none !important;
    }
    .top-bar-message {
        padding: 0 1.5rem;
    }
}

/* WhatsApp chat mobile */
@media (max-width: 575.98px) {
    .whatsapp-chat-popup {
        bottom: 88px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

/* =================================================================
   25. REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .carousel-item {
        transition: none !important;
    }
    .top-bar-marquee {
        animation: none !important;
    }
    .ken-burns {
        animation: none !important;
    }
    .shimmer {
        animation: none !important;
    }
    .gentle-pulse {
        animation: none !important;
    }
    .metallic-shimmer {
        animation: none !important;
    }
}
