/* ================================================================
   PROFESSIONAL ECOMMERCE TYPOGRAPHY SYSTEM (Plus Jakarta Sans & Inter)
   The industry-standard font pairing used by leading modern eCommerce sites
   ================================================================ */
:root {
    --rb-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --rb-font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rb-text-main: #0f172a;        /* Deep slate for crisp, high-contrast headings */
    --rb-text-body: #334155;        /* Balanced contrast for comfortable reading */
    --rb-text-muted: #64748b;       /* Clean slate for subtitles & secondary copy */
    --rb-text-light: #94a3b8;       /* Subtle tone for placeholders & helper hints */
    --rb-primary: #c4161c;          /* Red Blooz Brand Red */
    --rb-primary-hover: #a51217;
    --rb-primary-light: #fff1f2;
}

/* 1. Global Font Override */
html,
body,
button,
input,
optgroup,
select,
textarea {
    font-family: var(--rb-font-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--rb-font-sans) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--rb-text-body) !important;
    font-weight: 400;
}

/* 2. Global Headings Hierarchy - Balanced eCommerce Proportions */
h1, h2, h3, h4, h5, h6,
.title-display,
.title-display-2,
.font-main {
    font-family: var(--rb-font-sans) !important;
    color: var(--rb-text-main) !important;
}

h1 {
    font-size: clamp(28px, 3.5vw, 36px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

h2 {
    font-size: clamp(24px, 2.8vw, 28px) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

h3 {
    font-size: clamp(20px, 2.2vw, 24px) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}

h5 {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

h6 {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
}

/* 3. Header & Navigation Typography */
.tf-topbar {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}
.tf-topbar strong {
    font-weight: 600 !important;
}

.rb-logo-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.rb-logo-tagline {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.rb-nav-link {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: #1e293b !important;
    transition: color 0.18s ease !important;
}
.rb-nav-link:hover,
.rb-nav-item.active .rb-nav-link {
    color: var(--rb-primary) !important;
    font-weight: 600 !important;
}

.rb-wa-pill {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* 4. Page Title Banners Across the Site (Login, Cart, Shop, Checkout, Account) */
.tf-page-title {
    padding: 24px 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.tf-page-title h1,
.tf-page-title h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    color: var(--rb-text-main) !important;
    margin-bottom: 4px !important;
}
.tf-page-title p {
    font-size: 14px !important;
    color: var(--rb-text-muted) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

/* 5. Modern eCommerce Auth & Login Forms */
.auth-container-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06);
    padding: 36px 32px;
}
@media (max-width: 576px) {
    .auth-container-card {
        padding: 24px 20px;
    }
}

.auth-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: var(--rb-text-main) !important;
    margin-bottom: 6px !important;
}

.auth-card-subtitle {
    font-size: 13.5px !important;
    color: var(--rb-text-muted) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.auth-form-label {
    display: inline-block;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.005em !important;
}

.auth-input,
.form-control {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--rb-text-main) !important;
    height: 46px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.auth-input:focus,
.form-control:focus {
    border-color: var(--rb-primary) !important;
    box-shadow: 0 0 0 3.5px rgba(196, 22, 28, 0.12) !important;
    outline: none !important;
}

.auth-input::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}

.auth-check-label {
    font-size: 13.5px !important;
    color: #475569 !important;
    font-weight: 400 !important;
    user-select: none;
}

.auth-link-forgot {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--rb-primary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.auth-link-forgot:hover {
    color: var(--rb-primary-hover) !important;
    text-decoration: underline !important;
}

.auth-submit-btn {
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    border-radius: 8px !important;
    background-color: var(--rb-primary) !important;
    border: 1px solid var(--rb-primary) !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(196, 22, 28, 0.2) !important;
}
.auth-submit-btn:hover {
    background-color: var(--rb-primary-hover) !important;
    border-color: var(--rb-primary-hover) !important;
    box-shadow: 0 6px 16px rgba(196, 22, 28, 0.28) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-switch-text {
    font-size: 13.5px !important;
    color: var(--rb-text-muted) !important;
}
.auth-switch-link {
    color: var(--rb-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.auth-switch-link:hover {
    text-decoration: underline !important;
    color: var(--rb-primary-hover) !important;
}

/* Trust features section */
.trust-feature-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.trust-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05) !important;
}
.trust-feature-card h6 {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--rb-text-main) !important;
    margin-bottom: 2px !important;
}
.trust-feature-card p {
    font-size: 12px !important;
    color: var(--rb-text-muted) !important;
    line-height: 1.4 !important;
}

/* Custom Styles extracted from inline styles */

/* Search Modal */
.search-cat-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.search-cat-pill:hover,
.search-cat-pill.active {
    background: #242f66;
    color: white;
}

.icon-close-popup:hover {
    color: #ef4444;
}

/* Notify Modal Animations */
@keyframes nmFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes nmSlideUp { from { transform:translateY(30px) scale(0.95); opacity:0; } to { transform:translateY(0) scale(1); opacity:1; } }
#notifyModal.nm-show { display:flex !important; }

/* Add To Cart Overlay Animations */
@keyframes atcSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#atc-card {
    animation: atcSlideUp 0.35s cubic-bezier(.34,1.4,.64,1) both;
}
.atc-act-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.atc-act-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Product Info */
.tf-product-info-list .text-caption-1 {
    color: #222 !important;
}

/* Custom Menu Dropdown Styling */
.box-nav-ul .menu-item .item-link {
    white-space: nowrap;
    margin: 0 5px;
}

.box-nav-ul .menu-item .sub-menu {
    padding: 15px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border: none !important;
    border-radius: 4px !important;
    min-width: 240px !important;
}

.box-nav-ul .menu-item .sub-menu .menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.box-nav-ul .menu-list .menu-link-text {
    display: block !important;
    padding: 12px 35px !important;
    color: #334155 !important;
    text-transform: none !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    transition: all 0.2s ease-in-out;
}

.box-nav-ul .menu-list .menu-link-text::before {
    display: none !important;
}

.box-nav-ul .menu-list .menu-link-text:hover {
    color: #0f172a !important;
    background-color: #f8fafc !important;
}

/* ================================================================
   PERFECT PRODUCT CARD & UI ENHANCEMENTS (Red Blooz)
   ================================================================ */

/* Card Container */
.card-product {
    background: #ffffff !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.card-product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 28px rgba(196, 22, 28, 0.1) !important;
    border-color: rgba(196, 22, 28, 0.28) !important;
}

/* Card Wrapper - Perfect 1:1 Aspect Ratio without gaps */
.card-product .card-product-wrapper,
.card-product:not(.list-st-3, .list-st-2, .style-list) .card-product-wrapper {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    position: relative !important;
    background: linear-gradient(180deg, #fbfbfb 0%, #f4f5f7 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

/* Image Anchor Container */
.card-product .product-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    text-decoration: none !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Product Image */
.card-product .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 16px !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

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

/* Badges */
.card-product .badge-order-wa {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #128c7e !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(18, 140, 126, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-product .badge-tag-custom {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e293b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-product .badge-tag-couple {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c4161c !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(196, 22, 28, 0.25);
}

.card-product .badge-discount-red {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #c4161c 0%, #e63946 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 9px !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(196, 22, 28, 0.3);
}

/* Card Content / Details */
.card-product-info {
    padding: 16px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
    text-align: center !important;
}

.card-product-info .card-rating-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.card-product-info .card-rating-wrap .stars-gold {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 13px;
}

.card-product-info .card-rating-wrap .rating-val {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
}

.card-product-info .product-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
}

.card-product-info .product-card-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.card-product-info .product-card-title a:hover {
    color: #c4161c !important;
}

.card-product-info .product-card-subtitle {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-product-info .price-wrap {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.card-product-info .price-wrap .sale-price {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #c4161c !important;
}

.card-product-info .price-wrap .mrp-price {
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

/* Action Buttons */
.card-product-info .btn-action-wa {
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: auto !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25) !important;
    transition: all 0.2s ease !important;
}

.card-product-info .btn-action-wa:hover {
    background: #1ebc59 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-1px) !important;
}

.card-product-info .btn-action-view {
    background: #ffffff !important;
    color: #c4161c !important;
    border: 1.5px solid #c4161c !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: auto !important;
    transition: all 0.2s ease !important;
}

.card-product-info .btn-action-view:hover {
    background: #c4161c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(196, 22, 28, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================
   Modern Shopping Cart Drawer Modal Styling
   ========================================================== */
.offcanvas-cart-drawer {
    width: 420px !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    border-left: none !important;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.16) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 2050 !important;
}

.cart-drawer-content-container,
#shoppingCartDrawerContent {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    overflow: hidden !important;
}

.cart-drawer-root {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    overflow: hidden !important;
}

.offcanvas-cart-drawer .offcanvas-header {
    background: #ffffff !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.offcanvas-cart-drawer .offcanvas-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.cart-header-icon-box {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.offcanvas-cart-drawer .cart-badge-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.offcanvas-cart-drawer .drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
}

.offcanvas-cart-drawer .drawer-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

/* Shipping Progress Bar */
.cart-drawer-shipping-box {
    background: #fbfbfb;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 20px;
}

.cart-drawer-shipping-text {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-drawer-progress-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cart-drawer-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f87171, #22c55e);
    transition: width 0.4s ease;
}

/* Drawer Body & Items */
.offcanvas-cart-drawer .offcanvas-body {
    padding: 16px 18px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-cart-drawer .offcanvas-body::-webkit-scrollbar {
    width: 5px;
}

.offcanvas-cart-drawer .offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}

.offcanvas-cart-drawer .offcanvas-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.offcanvas-cart-drawer .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cart Item Card */
.cart-drawer-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
}

.cart-drawer-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cart-drawer-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-drawer-item-info {
    flex-grow: 1;
    min-width: 0;
}

.cart-drawer-item-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.cart-drawer-item-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.cart-drawer-item-title a:hover {
    color: #c4161c !important;
}

.cart-drawer-item-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.cart-drawer-variant-tag {
    font-size: 10.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    padding: 1px 6px;
    text-transform: uppercase;
}

.cart-drawer-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Quantity Control Pill */
.cart-drawer-qty-pill {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2px 4px;
}

.cart-drawer-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.cart-drawer-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cart-drawer-qty-val {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    min-width: 20px;
    text-align: center;
}

.cart-drawer-item-price {
    font-size: 14.5px;
    font-weight: 800;
    color: #c4161c;
}

.cart-drawer-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 2px 4px;
    cursor: pointer;
    transition: color 0.15s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-item-remove:hover {
    color: #ef4444;
}

/* Drawer Footer */
.offcanvas-cart-drawer .offcanvas-footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
}

.cart-drawer-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cart-drawer-subtotal-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}

.cart-drawer-subtotal-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.cart-drawer-footer-note {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    margin-bottom: 12px;
}

.cart-drawer-wa-btn {
    background: #25d366 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
    transition: all 0.2s ease !important;
    margin-bottom: 8px;
}

.cart-drawer-wa-btn:hover {
    background: #1ebc59 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-1px);
}

.cart-drawer-checkout-btn {
    background: #c4161c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 1.5px solid #c4161c !important;
    transition: all 0.2s ease !important;
    flex: 1;
}

.cart-drawer-checkout-btn:hover {
    background: #a30e13 !important;
    border-color: #a30e13 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.cart-drawer-viewcart-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    transition: all 0.2s ease !important;
    flex: 1;
}

.cart-drawer-viewcart-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Empty State */
.cart-drawer-empty {
    text-align: center;
    padding: 50px 20px;
}

.cart-drawer-empty-icon {
    width: 68px;
    height: 68px;
    background: #fee2e2;
    color: #c4161c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 26px;
}

/* ==========================================================================
   MOBILE VIEW LAYOUT FIXES (Scoped to Mobile Screens <= 767px)
   ========================================================================== */

/* Ensure mobile navigation drawer does not participate in scroll layout when closed */
.mobile-nav-drawer {
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.mobile-nav-drawer.show {
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 767px) {
    /* Prevent horizontal overflow strictly on mobile */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
    }

    #wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }

    .container {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .tf-topbar {
        font-size: 11px;
    }
    
    .rb-header-inner {
        padding: 10px 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .rb-logo-name {
        font-size: 16px;
    }

    .rb-logo-tagline {
        font-size: 9.5px;
    }

    .rb-logo-img {
        max-height: 38px;
    }

    .rb-icons {
        gap: 8px;
    }

    .rb-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Breadcrumb wrap */
    .tf-breadcrumb-list {
        font-size: 13px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Product Page Mobile Enhancements */
    .product-gallery-box {
        padding: 12px !important;
    }

    .main-image-container {
        min-height: 260px !important;
        padding: 12px !important;
    }

    .product-thumb-item {
        width: 60px !important;
        height: 60px !important;
    }

    /* Prevent tables or tab navigations from breaking page */
    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Shopping Cart Drawer Mobile Fixes: Guarantee View Cart & Checkout Always Visible */
    .offcanvas-cart-drawer {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .offcanvas-cart-drawer .offcanvas-header {
        padding: 12px 16px !important;
    }

    .cart-drawer-shipping-box {
        padding: 8px 16px !important;
    }

    .offcanvas-cart-drawer .offcanvas-body {
        padding: 10px 14px !important;
    }

    .cart-drawer-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
        gap: 10px !important;
    }

    .cart-drawer-item-img {
        width: 58px !important;
        height: 58px !important;
    }

    .cart-drawer-item-title {
        font-size: 13px !important;
    }

    .offcanvas-cart-drawer .offcanvas-footer {
        padding: 10px 14px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
        position: sticky !important;
        bottom: 0 !important;
        flex-shrink: 0 !important;
        z-index: 25 !important;
    }

    .cart-drawer-subtotal-row {
        margin-bottom: 2px !important;
    }

    .cart-drawer-subtotal-label {
        font-size: 13px !important;
    }

    .cart-drawer-subtotal-val {
        font-size: 16px !important;
    }

    .cart-drawer-footer-note {
        font-size: 10.5px !important;
        margin-bottom: 6px !important;
    }

    .cart-drawer-wa-btn {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
    }

    .cart-drawer-viewcart-btn,
    .cart-drawer-checkout-btn {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        min-height: 38px !important;
        border-radius: 8px !important;
    }
}
