/* =========================================
   TIYENI XPRESS GLOBAL STYLES
   PRIMARY FONT: POPPINS (LIVE REVISION)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root { 
    --tx-red: #ed1c24; 
    --tx-red-glow: rgba(237, 28, 36, 0.4); 
    --tx-black: #000000; 
    --tx-gradient: linear-gradient(135deg, #ed1c24 0%, #000000 100%); 
    --text-main: #ffffff; 
    --text-muted: rgba(255, 255, 255, 0.7); 
    --bg-body: #121212; 
    --card-bg: rgba(255, 255, 255, 0.05); 
    --card-bg-hover: rgba(255, 255, 255, 0.1); 
    --border-light: rgba(255, 255, 255, 0.15); 
    --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.3); 
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5); 
    --badge-bg: rgba(0, 0, 0, 0.8); 
    --badge-text: #ffffff; 
    --grid-gap: 20px; 
    --tx-green: #34d186; 
    --radius: 24px; 
    --side-gutter: 3%; 
    --bg-body-checkout: var(--bg-body); 
    --text-checkout: #ffffff; 

    /* THE WEB STANDARD FIX: Single Source of Truth for Fixed Headers */
    --header-height: 90px;
    --header-offset: calc(var(--header-height) + 15px); /* Header + Breathing Room */
}

/* --- LIGHT THEME OVERRIDES --- */
[data-theme="light"] { --tx-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); --text-main: #111111; --text-muted: rgba(0, 0, 0, 0.6); --bg-body: #f8f9fa; --card-bg: #ffffff; --card-bg-hover: rgba(255, 255, 255, 0.9); --border-light: rgba(0, 0, 0, 0.08); --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.05); --badge-bg: #ffffff; --badge-text: #000000; --bg-body-checkout: var(--bg-body); --text-checkout: #111111; }

/* --- BASE & TYPOGRAPHY --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: var(--bg-body); color: var(--text-main); font-family: 'Poppins', sans-serif; min-height: 100vh; background-attachment: fixed; overflow-x: hidden; transition: color 0.4s ease, background-color 0.4s ease; display: flex; flex-direction: column; }

/* MOBILE ACCESSIBILITY: Typography Scaling */
@media (max-width: 768px) {
    html { font-size: 15px; } 
}

input, button, textarea, select, a { font-family: inherit; }

/* --- GLOBAL LAYOUT UTILITIES --- */
.tx-full-width { width: 100%; padding-left: var(--side-gutter); padding-right: var(--side-gutter); max-width: none; margin: 0; }

/* MOBILE GLOBAL WRAPPER FIX: Safely clears the fixed header on all modules */
.page-wrapper {
    padding-top: var(--header-offset);
    padding-bottom: 40px; 
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- PRELOADER --- */
#preloader { position: fixed; inset: 0; background: var(--bg-body); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.6s ease; }

.preload-img-logo { width: 160px; height: auto; object-fit: contain; animation: textPulse 2s infinite ease-in-out; }

.preload-slogan { font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: 1px; margin-top: 10px; }

.preload-icons { position: relative; height: 80px; width: 100px; display: flex; justify-content: center; align-items: center; }

.p-icon { position: absolute; font-size: 3.5rem; opacity: 0; transform: scale(0.5); transition: 0.4s; }

.p-icon.active { opacity: 1; transform: scale(1.1); }

@keyframes textPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }

.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }

.delay-2 { transition-delay: 0.2s; }

.delay-3 { transition-delay: 0.3s; }

/* --- HEADER & NAVIGATION --- */
.app-header { padding: 0 var(--side-gutter); height: var(--header-height); display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; background: transparent; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: none; }

.header-img-logo { height: 35px; width: auto; object-fit: contain; }

.nav-menu-container { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; }

.nav-menu { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; height: 100%; }

.nav-item-top { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: 0.3s; cursor: pointer; display: flex; align-items: center; height: 100%; }

.nav-item-top:hover { color: var(--tx-red); }

.header-search { display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 30px; padding: 5px 15px; height: 40px; margin-right: 15px; backdrop-filter: blur(10px); transition: 0.3s; }

.header-search:focus-within { border-color: var(--tx-red); box-shadow: 0 0 15px var(--tx-red-glow); background: var(--card-bg-hover); }

.header-search input { background: transparent; border: none; color: var(--text-main); font-size: 0.9rem; outline: none; width: 150px; transition: width 0.3s; }

.header-search input:focus { width: 220px; }

.header-search input::placeholder { color: var(--text-muted); }

.header-search i { color: var(--text-muted); margin-right: 8px; font-size: 0.9rem; }

.top-controls { display: flex; gap: 12px; align-items: center; }

.wallet-badge { background: var(--card-bg); padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 800; border: 1px solid var(--border-light); color: var(--text-main); backdrop-filter: blur(10px); }

.theme-toggle { background: var(--card-bg); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); color: var(--text-main); }

/* =========================================
   MEGA MENU & DROPDOWN STYLES
   ========================================= */
.nav-item-dropdown { position: relative; display: flex; align-items: center; height: 100%; }

.mega-menu { visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); width: 950px; background-color: #ffffff; border-radius: 16px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); padding: 30px; z-index: 1000; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 30px; pointer-events: none; }

[data-theme="dark"] .mega-menu { background-color: #1a1a1a; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); }

.nav-item-dropdown:hover .mega-menu { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.nav-item-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }

.mega-menu-column { display: flex; flex-direction: column; gap: 15px; }

.mega-menu-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 5px; color: var(--text-color, #333); border-bottom: 2px solid rgba(128, 128, 128, 0.2); padding-bottom: 8px; }

[data-theme="dark"] .mega-menu-title { color: #fff; }

.mega-menu-item { display: flex; align-items: flex-start; gap: 15px; padding: 10px; border-radius: 12px; text-decoration: none !important; color: inherit !important; transition: background-color 0.2s; cursor: pointer; }

.mega-menu-item:hover, .mega-menu-item.active { background-color: rgba(128, 128, 128, 0.1); }

[data-theme="dark"] .mega-menu-item:hover, [data-theme="dark"] .mega-menu-item.active { background-color: rgba(255, 255, 255, 0.1); }

.mega-menu-icon { font-size: 1.8rem; line-height: 1; }

.mega-menu-text h4 { margin: 0 0 4px 0; font-size: 1rem; font-weight: 800; }

.mega-menu-text p { margin: 0; font-size: 0.8rem; color: var(--text-muted, #6c757d); line-height: 1.4; }

.video-card { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); cursor: pointer; }

.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.3s, transform 0.5s; }

.video-card:hover img { opacity: 0.8; transform: scale(1.05); }

.play-button { position: absolute; width: 45px; height: 45px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-size: 1rem; padding-left: 3px; transition: transform 0.2s; }

.video-card:hover .play-button { transform: scale(1.1); }

.video-caption { margin-top: 5px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; transition: all 0.3s ease; }

.step-item { display: flex; gap: 12px; align-items: flex-start; margin-top: 5px; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.step-number { background: rgba(128, 128, 128, 0.1); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; color: var(--text-color, #333); }

[data-theme="dark"] .step-number { background: rgba(255, 255, 255, 0.1); color: #fff; }

.step-text h5 { margin: 0 0 3px 0; font-size: 0.9rem; font-weight: 700; }

.step-text p { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }

/* --- DIVIDERS --- */
.header-divider, .top-footer-divider, .footer-divider { width: 100%; height: 1.5px; background: linear-gradient(to right, var(--tx-red), transparent); border: none; opacity: 0.7; }

.header-divider { position: fixed; top: var(--header-height); left: 0; z-index: 2000; margin: 0; }

.top-footer-divider { margin: 80px 0 0 0; }

.footer-divider { margin: 40px 0 20px 0; }

/* --- HERO SEARCH (GLOBAL) --- */
.search-container { padding: 120px var(--side-gutter) 0; max-width: 800px; margin: 0 auto; position: relative; z-index: 10; }

.floating-search-form { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: 50px; padding: 10px 20px; display: flex; align-items: center; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }

.floating-search-form:focus-within { border-color: var(--tx-red); box-shadow: 0 0 20px var(--tx-red-glow); background: var(--card-bg-hover); }

.global-search-input { width: 100%; background: transparent; border: none; color: var(--text-main); font-size: 1.1rem; outline: none; margin-left: 15px; }

.global-search-input::placeholder { color: var(--text-muted); }

[data-theme="light"] .search-icon { filter: brightness(0); }

/* --- HERO SECTION --- */
.hero { min-height: 80vh; display: flex; align-items: center; padding: 130px var(--side-gutter) 60px; width: 100%; position: relative; max-width: 1800px; margin: 0 auto; }

.hero-content { flex: 1; z-index: 10; max-width: 700px; }

.hero-tag { display: inline-block; padding: 8px 16px; background: var(--tx-red-glow); color: #fff; border-radius: 20px; font-weight: 800; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; }

[data-theme="light"] .hero-tag { color: var(--tx-red); }

.hero h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 900; line-height: 1.05; margin-bottom: 20px; letter-spacing: -2px; }

.hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }

.hero-btn { background: var(--tx-red); color: #fff; padding: 18px 40px; border-radius: 40px; font-size: 1.2rem; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px var(--tx-red-glow); display: inline-block; transition: 0.3s; }

.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px var(--tx-red-glow); color: #fff; }

.hero-visual { flex: 1; height: 500px; position: relative; display: flex; justify-content: center; align-items: center; }

.center-orb { width: 260px; height: 260px; border-radius: 50%; background: linear-gradient(135deg, var(--tx-red), #ff4b4b); box-shadow: 0 0 80px var(--tx-red-glow); display: flex; justify-content: center; align-items: center; z-index: 10; animation: pulseOrb 4s infinite alternate; }

@keyframes pulseOrb { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

.floating-element { position: absolute; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: var(--shadow-sm); animation: float 6s infinite ease-in-out; border: 1px solid var(--border-light); background: var(--card-bg); backdrop-filter: blur(10px); font-size: 2.2rem; width: 85px; height: 85px; z-index: 5; }

.float-1 { top: 10%; right: 20%; animation-delay: 0s; }

.float-2 { bottom: 15%; left: 15%; animation-delay: -1s; }

.float-3 { top: 20%; left: 15%; width: 100px; height: 100px; font-size: 2.8rem; animation-delay: -2s; }

.float-4 { bottom: 10%; right: 15%; animation-delay: -3s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-25px) rotate(5deg); } }

/* --- BENTO & BLOG GRID CORE STYLES --- */
.bento-card, .blog-card { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; text-decoration: none !important; color: var(--text-main) !important; box-shadow: var(--shadow-sm); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); min-height: 280px; }

.bento-card:hover, .blog-card:hover { transform: translateY(-5px); border-color: var(--tx-red); background: var(--card-bg-hover); text-decoration: none !important; color: var(--text-main) !important; }

.blog-card:hover { box-shadow: var(--shadow-lg); }

.bento-card h3, .blog-card h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -1px; z-index: 2; }

.bento-card h3 { margin-top: 10px; }

.blog-card h3 { margin-bottom: 15px; }

/* --- BENTO SPECIFICS --- */
.story-section { padding: 60px var(--side-gutter); width: 100%; max-width: 1800px; margin: 0 auto; position: relative; z-index: 2; }

.section-header { margin-bottom: 40px; text-align: left; }

.section-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); width: 100%; }

.bento-content { z-index: 2; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.icon-3d { position: absolute; font-size: 9rem; opacity: 0.9; filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3)); z-index: 1; right: -10px; bottom: -10px; transition: 0.4s; }

.bento-card:hover .icon-3d { transform: scale(1.1); }

@media (min-width: 992px) {
   .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }
   .card-shop { grid-column: 1 / span 2; grid-row: 1 / span 2; }
   .card-shop h3 { font-size: 3.5rem; }
   .card-shop .icon-3d { font-size: 20rem; right: -30px; bottom: -30px; }
   .card-stays { grid-column: 3 / span 2; grid-row: 1; }
   .card-ride { grid-column: 3; grid-row: 2; }
   .card-eats { grid-column: 4; grid-row: 2; }
}

/* --- STATS --- */
.glass-panel { background: var(--card-bg); backdrop-filter: blur(25px); border: 1px solid var(--border-light); border-radius: 40px; padding: 50px; box-shadow: var(--shadow-sm); }

.stat-text { font-size: 3.5rem; font-weight: 900; color: var(--tx-red); line-height: 1; margin-bottom: 5px; }

/* --- BLOG SPECIFICS --- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); width: 100%; }

.blog-card { justify-content: flex-start; }

.blog-card p { font-size: 1.05rem; line-height: 1.5; z-index: 2; opacity: 0.8; font-weight: 400; margin: 0; }

.blog-hero h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-top: 20px; }

.blog-hero p { max-width: 80%; }

.blog-view-all { align-items: center; justify-content: center; text-align: center; }

.blog-icon-3d { position: absolute; font-size: 14rem; opacity: 0.4; filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3)); z-index: 1; right: -20px; bottom: -30px; transition: 0.4s ease; pointer-events: none; }

.blog-hero .blog-icon-3d { font-size: 22rem; right: -40px; bottom: -40px; opacity: 0.2; }

.blog-card:hover .blog-icon-3d { transform: scale(1.05); }

.arrow-circle { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-light); display: flex; justify-content: center; align-items: center; font-size: 2rem; margin-bottom: 15px; transition: 0.4s ease; }

.blog-view-all:hover .arrow-circle { transform: translateX(10px); background: var(--tx-red); color: #fff; border-color: var(--tx-red); }

@media (min-width: 992px) {
   .blog-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }
   .blog-hero { grid-column: 1 / span 2; grid-row: 1 / span 2; }
   .blog-merchant { grid-column: 3 / span 2; grid-row: 1; }
   .blog-merchant .blog-icon-3d { font-size: 14rem; right: 20px; top: 50%; transform: translateY(-50%); bottom: auto; }
   .blog-merchant:hover .blog-icon-3d { transform: translateY(-50%) scale(1.05); }
   .blog-journey { grid-column: 3; grid-row: 2; }
   .blog-view-all { grid-column: 4; grid-row: 2; }
}

/* --- FOOTER --- */
.app-footer { background: transparent; padding: 40px var(--side-gutter); border-top: none; margin-top: 40px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }

@media (min-width: 992px) {
   .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.f-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-light); color: var(--text-main); font-size: 1.1rem; transition: 0.3s; text-decoration: none; }

.f-socials a:hover { background: var(--tx-red); border-color: var(--tx-red); transform: translateY(-3px); color: #fff; }

.f-links { list-style: none; padding: 0; }

.f-links li { margin-bottom: 12px; }

.f-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; font-size: 0.95rem; }

.f-links a:hover { color: var(--tx-red); }

.footer-bottom { padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

.footer-badges a { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); color: var(--text-main); padding: 8px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: 0.3s; }

.footer-badges a:hover { background: var(--tx-red); border-color: var(--tx-red); color: #fff; }

/* --- MOBILE NAV --- */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-light); display: flex; justify-content: space-around; padding: 12px 0 20px; z-index: 3000; }

[data-theme="light"] .mobile-bottom-nav { background: rgba(255, 255, 255, 0.6); }

@media (min-width: 992px) {
   .mobile-bottom-nav { display: none; }
}

.b-nav-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.6; transition: 0.3s; }

.b-nav-item.active { opacity: 1; transform: translateY(-2px); }

.b-nav-item img { width: 24px; height: 24px; }

.b-nav-item span { font-size: 0.65rem; font-weight: 700; color: var(--text-main); }

/* ==============================================================
   ⚠️ RETAIL / EATS MODULE OVERLAPS
   ============================================================== */

/* 1. MODULE OVERLAP FIX (Desktop & Mobile) */
.eats-main-container,
.retail-main-container,
.stays-main-container,
.rides-main-container {
    padding-top: var(--header-offset);
    min-height: 100vh;
    width: 100%;
}

/* STRIP OUT HARDCODED MOBILE PADDING - RELY ON .page-wrapper INSTEAD */
@media (max-width: 991px) {
   .header-divider { display: none !important; }
   
   /* THE FIX: Pushes module search safely below the fixed header */
   .mobile-search-wrapper { 
       display: block !important; 
       margin-top: var(--header-offset) !important; 
       position: relative; 
       z-index: 10; 
   }
   .glass-search-box input { font-size: 16px !important; }
}

.retail-search-container { padding: 15px var(--side-gutter) 5px; margin-top: 15px; }
.floating-search-form { background: var(--card-bg); border-radius: 50px; padding: 8px 12px; display: flex; align-items: center; border: 1px solid var(--border-light); transition: all 0.3s ease; backdrop-filter: blur(10px); }
.floating-search-form:focus-within { border-color: var(--tx-red); background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2); }
.global-search-input { width: 100%; background: transparent; border: none; color: var(--text-main); font-size: 0.95rem; font-weight: 600; outline: none; }
.global-search-input::placeholder { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

/* --- SECTION HEADER OVERRIDES --- */
.section-header { padding: 0 var(--side-gutter); display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; width: 100%; }
.section-header h2 { font-size: 1.25rem; font-weight: 800; color: inherit; letter-spacing: -0.5px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-icon-circle { width: 36px; height: 36px; background: rgba(0, 0, 0, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.search-input-wrapper { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ==============================================================
   FIX APPLIED HERE: Changed max-width from 1400px to none
   ============================================================== */
.promo-banner { background: linear-gradient(135deg, #ed1c24, #1a0000); border-radius: var(--radius); padding: 35px; color: white; position: relative; overflow: hidden; margin: 15px auto 25px auto; width: calc(100% - (var(--side-gutter) * 2)); max-width: none; border: 1px solid var(--border-light); }
/* ============================================================== */

@media (max-width: 768px) {
    .promo-banner { padding: 25px 20px; }
    .promo-banner h2 { font-size: 1.7rem !important; }
}
.section { margin: 25px 0; background: transparent; }
.see-all { color: inherit; font-size: 0.8rem; font-weight: 700; text-decoration: underline; opacity: 0.8; white-space: nowrap; flex-shrink: 0; }
.h-scroll { display: flex; overflow-x: auto; gap: 14px; scrollbar-width: none; padding: 0 var(--side-gutter) 20px; }
.h-scroll::-webkit-scrollbar { display: none; }
.cat-pill { background: var(--card-bg); padding: 14px 18px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; border: 1px solid var(--border-light); min-width: 95px; backdrop-filter: blur(10px); }
.cat-pill img { width: 30px; height: 30px; object-fit: contain; }
.cat-pill span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: inherit; }

/* ==============================================================
   BULLETPROOF PRODUCT CARD HARDENING (Equal Height, Truncation & Images)
   ============================================================== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 var(--side-gutter); align-items: stretch; }
@media (min-width: 576px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; } }

.product-card { background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-light); position: relative; display: flex; flex-direction: column; height: 100%; backdrop-filter: blur(10px); opacity: 0; animation: fadeIn 0.8s ease forwards; transition: all 0.3s ease; }
.product-card > a { display: flex; flex-direction: column; flex-grow: 1; text-decoration: none !important; color: inherit !important; min-width: 0; }
.product-card:hover { border-color: var(--tx-red); box-shadow: 0 10px 30px var(--tx-red-glow); transform: translateY(-5px); }

.card-image-wrap { width: 100%; position: relative; background: rgba(255, 255, 255, 0.02); padding-top: 100%; overflow: hidden; flex-shrink: 0; display: block; }
@media (min-width: 992px) { .card-image-wrap { padding-top: 0; height: 200px; } }
.floating-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain !important; object-position: center; padding: 10px; }

.card-info-block { padding: 12px 15px; display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.item-name { font-size: 0.85rem; font-weight: 700; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; }
.item-price { font-size: 0.9rem; font-weight: 800; color: inherit; margin-top: 4px; white-space: nowrap; }
[data-theme="light"] .item-price { color: var(--tx-red); }
.item-meta-row { margin-top: auto; padding-top: 8px; min-width: 0; }
.store-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.add-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 10px; background: #fff; border: none; color: var(--tx-red); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); z-index: 5; }

/* --- PAGINATION --- */
.pagination-wrapper { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 20px; margin: 40px var(--side-gutter); flex-wrap: wrap; gap: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.limit-selector { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.limit-selector select { padding: 6px 30px 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: inherit; font-size: 0.95rem; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; background-size: 1em; }
.limit-selector select option { background: #1a1a1a; color: #fff; }
.page-numbers { display: flex; gap: 6px; align-items: center; }
.page-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); color: inherit; text-decoration: none; font-weight: 600; transition: all 0.2s ease; }
.page-link:hover:not(.disabled) { background: rgba(255, 255, 255, 0.1); }
.page-link.active { background: var(--tx-red); border-color: var(--tx-red); color: white; }
.page-link.disabled { opacity: 0.4; pointer-events: none; cursor: not-allowed; }
@media (max-width: 767px) {
   .pagination-wrapper { flex-direction: row; justify-content: space-between; gap: 5px; padding: 10px 12px; }
   .page-numbers { flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
   .page-link { width: 32px; height: 32px; font-size: 0.85rem; }
   .limit-selector { gap: 5px; }
   .limit-selector span { font-size: 0.85rem; }
   .limit-selector select { padding: 4px 20px 4px 6px; font-size: 0.85rem; }
}
[data-theme="light"] .pagination-wrapper { background: #f8f9fa; border-color: #dee2e6; color: #212529; }
[data-theme="light"] .limit-selector select { border-color: #ced4da; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); }
[data-theme="light"] .limit-selector select option { background: #fff; color: #333; }
[data-theme="light"] .page-link { border-color: #ced4da; }
[data-theme="light"] .page-link:hover:not(.disabled) { background: #e9ecef; }

/* =========================================
   DRAWER & CART STYLES (HARDENED)
   ========================================= */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; z-index: 2000; backdrop-filter: blur(8px); }
.drawer { position: fixed; bottom: -100%; left: 0; width: 100%; background: #000; padding: 35px 25px 45px; border-radius: 35px 35px 0 0; z-index: 2001; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-top: 3px solid var(--tx-red); color: #fff; }
[data-theme="light"] .drawer { background: #fff; color: #000; }
.drawer.active { bottom: 0; }
#drawer-item-price { color: var(--text-main) !important; }
@media (max-width: 991px) {
   .drawer { max-height: 82vh; max-height: 82dvh; overflow-y: auto; padding-bottom: 130px !important; }
   .checkout-btn, .secondary-btn { flex-shrink: 0; }
}
.cart-grid { display: grid; grid-template-columns: 85px 1fr 50px; gap: 15px; align-items: center; }
.vert-qty { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 6px; border: 1px solid var(--border-light); }
.vert-qty button { background: none; border: none; color: inherit; cursor: pointer; padding: 5px; }
.vert-qty span { font-weight: 800; font-size: 1rem; }
.checkout-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; background: var(--tx-red); border: none; border-radius: 18px; color: #fff !important; font-weight: 800; font-size: 1.1rem; text-decoration: none; margin-top: 20px; box-shadow: 0 4px 20px rgba(237, 28, 36, 0.4); }
.secondary-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 55px; background: rgba(255, 255, 255, 0.1); color: inherit; border: 1px solid var(--border-light); border-radius: 18px; font-weight: 700; margin-bottom: 12px; text-decoration: none; }

/* =========================================
   STANDALONE CART PAGE (cart.php)
   ========================================= */
.cart-page-wrapper { padding: 120px var(--side-gutter) 120px; min-height: 80vh; width: 100%; }
.cart-title-row { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.cart-back-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--text-main); text-decoration: none; transition: 0.3s; }
.cart-back-btn:hover { background: var(--tx-red); border-color: var(--tx-red); color: #fff; }
.cart-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 20px; padding: 15px; display: grid; grid-template-columns: 80px 1fr 40px; gap: 15px; align-items: center; margin-bottom: 15px; backdrop-filter: blur(10px); transition: 0.3s ease; }
.cart-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.cart-card .img-wrapper img { width: 100%; height: 80px; object-fit: cover; border-radius: 12px; }
.cart-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
.item-cart-price { font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
.item-store-meta { font-size: 0.75rem; margin-top: 8px; display: flex; align-items: center; gap: 5px; opacity: 0.7; color: var(--text-main); }
.item-store-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === UPDATED CLEAR BASKET FULL-WIDTH BUTTON === */
.btn-empty-wrapper { margin: 20px 0 30px; width: 100%; }
.btn-empty { width: 100%; background: var(--card-bg); border: 1px solid var(--border-light); color: var(--text-main); padding: 16px; border-radius: 18px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 10px; backdrop-filter: blur(10px); }
.btn-empty:hover { background: rgba(237, 28, 36, 0.1); color: var(--tx-red); border-color: var(--tx-red); }
.summary-box { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 20px; padding: 25px; backdrop-filter: blur(10px); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-main); font-weight: 600; opacity: 0.8; }
.total-row { border-top: 1px solid var(--border-light); padding-top: 15px; margin-bottom: 0; opacity: 1; font-size: 1.2rem; font-weight: 900; }
.empty-cart-msg { text-align: center; padding: 60px 20px; background: var(--card-bg); border-radius: 24px; border: 1px solid var(--border-light); }
.empty-cart-icon { font-size: 5rem; margin-bottom: 25px; opacity: 0.1; color: var(--text-main); }
.empty-cart-title { font-weight: 800; color: var(--text-main); font-size: 1.5rem; }
.empty-cart-desc { opacity: 0.6; margin-top: 10px; color: var(--text-main); }
.empty-browse-btn { margin-top: 35px; background: var(--card-bg); border: 1px solid var(--border-light); color: var(--text-main) !important; display: inline-block; padding: 15px 30px; border-radius: 18px; font-weight: 800; text-decoration: none; transition: 0.3s; }
.empty-browse-btn:hover { background: var(--card-bg-hover); border-color: var(--tx-red); }

.checkout-footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 15px var(--side-gutter); background: rgba(20, 20, 20, 0.85); border-top: 1px solid var(--border-light); z-index: 1000; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }
[data-theme="light"] .checkout-footer { background: rgba(248, 249, 250, 0.85); }
@media (min-width: 992px) {
   .checkout-footer { position: relative; background: transparent; border: none; padding: 30px 0 0; }
}

/* =========================================
   HARDENED SQUARE LOCK FOR STAYS MODULE
   ========================================= */
.ts-img-wrapper { width: 100% !important; position: relative !important; height: 0 !important; padding-bottom: 100% !important; border-radius: 16px !important; overflow: hidden !important; }
.ts-img-wrapper img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* =========================================
   TIYENI PRICING COMPONENT
   ========================================= */
:root { --tiyeni-red: #ed1c24; --tiyeni-black: #000000; --glass-panel: rgba(255, 255, 255, 0.03); --glass-border: rgba(255, 255, 255, 0.1); --section-top-spacing: 140px; --section-bottom-spacing: 0px; }
.app-pricing-container { padding: var(--section-top-spacing) 5% var(--section-bottom-spacing); min-height: auto; background: var(--tiyeni-black); color: #ffffff; }
.pricing-hero-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.pricing-hero-header h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -2px; line-height: 1; margin: 0; white-space: nowrap; }
.pricing-subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.7); max-width: 700px; margin-top: 15px; line-height: 1.6; font-weight: 400; }
.view-control-wrapper { display: flex; gap: 8px; background: rgba(255, 255, 255, 0.05); padding: 6px; border-radius: 12px; border: 1px solid var(--glass-border); }
.control-btn { border: none; background: transparent; padding: 10px 24px; border-radius: 8px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; color: rgba(255, 255, 255, 0.5); }
.control-btn.active { background: var(--tiyeni-red); color: #ffffff; box-shadow: 0 4px 20px rgba(237, 28, 36, 0.4); }
.pricing-grid { display: grid; gap: 25px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 60px; }
.price-card { background: var(--glass-panel); backdrop-filter: blur(15px); border-radius: 24px; padding: 40px; border: 1.5px solid var(--glass-border); transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; box-sizing: border-box; }
.price-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.08); border-color: var(--tiyeni-red); box-shadow: 0 10px 30px rgba(237, 28, 36, 0.2); }
.price-card .category { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #ffffff; opacity: 0.7; margin-bottom: 15px; }
.price-card .percentage { font-size: 4rem; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.price-card .desc { margin-top: 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.list-layout { grid-template-columns: 1fr !important; }
.list-layout .price-card { flex-direction: row; min-height: auto; padding: 25px 40px; align-items: center; }

@media (max-width: 991px) {
   .app-pricing-container { padding-top: 110px !important; padding-left: var(--side-gutter); padding-right: var(--side-gutter); }
   .pricing-hero-header { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
   .pricing-hero-header h1 { white-space: normal; font-size: 2.8rem; letter-spacing: -1px; }
   .view-control-wrapper { width: 100%; display: flex; justify-content: stretch; }
   .control-btn { flex: 1; text-align: center; padding: 12px 0; }
}

/* =========================================
   CENTRALIZED CHECKOUT STYLES (SAFE SCOPE)
   ========================================= */
.checkout-page-wrapper { padding-top: 120px; padding-bottom: 180px; width: 100%; }
.checkout-container { width: 100%; padding-left: var(--side-gutter); padding-right: var(--side-gutter); margin: 0 auto; }
.checkout-form-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.checkout-form-row { display: flex; gap: 10px; margin-top: 10px; }
.checkout-form-group { flex: 1; }
.checkout-form-group-full { width: 100%; }
.checkout-page-wrapper .section-title { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); margin: 25px 0 12px 0; font-weight: 800; letter-spacing: 1px; }
.checkout-page-wrapper .method-selector { display: flex; gap: 10px; margin-bottom: 15px; }
.checkout-page-wrapper .method-option { flex: 1; background: var(--card-bg); padding: 16px 8px; border-radius: 20px; border: 1px solid var(--border-light); text-align: center; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.checkout-page-wrapper .method-option .icon-3d { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.checkout-page-wrapper .method-option span { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.checkout-page-wrapper .method-option.active { border: 2px solid var(--tx-red) !important; background: rgba(237, 28, 36, 0.1); transform: translateY(-2px); }
.checkout-page-wrapper .method-option.active span { color: var(--tx-red); }
.checkout-page-wrapper input { width: 100%; background: var(--card-bg); border: 1px solid var(--border-light); padding: 18px; border-radius: 18px; color: var(--text-main); outline: none; font-size: 0.95rem; font-weight: 600; }
.checkout-page-wrapper .gps-btn { width: 100%; padding: 18px; background: transparent; border: 2px dashed var(--tx-red); border-radius: 18px; color: var(--tx-red); font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.checkout-page-wrapper .summary-card { background: var(--card-bg); border-radius: 24px; padding: 22px; margin-bottom: 20px; border: 1px solid var(--border-light); backdrop-filter: blur(10px); }
.checkout-page-wrapper .summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.checkout-page-wrapper .total-row { border-top: 1px solid var(--border-light); padding-top: 15px; margin-top: 10px; font-weight: 800; font-size: 1.4rem; color: var(--text-main); }
.checkout-page-wrapper .footer-action { position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px; background: var(--bg-body); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-top: 1px solid var(--border-light); z-index: 1001; display: flex; justify-content: center; padding-bottom: max(25px, env(safe-area-inset-bottom)); }
.checkout-page-wrapper .place-order-btn { width: 100%; color: #fff !important; background: var(--tx-red); border: none; padding: 20px; border-radius: 20px; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; box-shadow: 0 10px 25px rgba(237, 28, 36, 0.4); cursor: pointer; }
.checkout-page-wrapper .hidden { display: none !important; }

@media (min-width: 992px) {
    .checkout-form-grid { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 50px; }
    .checkout-right-col { position: sticky; top: 110px; } 
    .checkout-page-wrapper .footer-action { position: relative !important; bottom: auto; left: auto; width: 100%; padding: 0 !important; background: transparent !important; border: none !important; backdrop-filter: none !important; }
    .checkout-page-wrapper { padding-bottom: 60px; }
}

/* =========================================
   HOMEPAGE (INDEX.PHP) SPECIFIC STYLES
   ========================================= */

/* --- Blog Title Line Limiter --- */
.blog-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Desktop Blog Excerpt Line Limiter --- */
.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Desktop Blog Image Overrides --- */
.desktop-view .blog-card {
    position: relative;
    overflow: hidden;
    /* Add a gradient overlay so text remains readable over images */
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.6); 
    background-size: cover;
    background-position: center;
    /* Ensure flex layout to push text to bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
}
.desktop-view .blog-card > * {
    position: relative;
    z-index: 2;
}
.desktop-view .blog-icon-3d {
    display: none; /* Hide emojis since we are using images now */
}

/* Hide Mobile Nav on Desktop */
@media (min-width: 993px) {
    .mobile-nav-only { display: none !important; }
}

/* ==============================================================
   MOBILE GLOBAL HEADER COMPONENTS (services-nav & search)
   ============================================================== */

@media (max-width: 991px) {
    /* Hide desktop elements */
    .search-bar, 
    .search-container, 
    .header-search, 
    #search-form, 
    form[role="search"],
    .mobile-search-trigger,
    .hero,
    .desktop-view {
        display: none !important;
    }

    /* This clears the fixed app-header for the mobile nav block in header.php */
    .mobile-view.d-lg-none {
        padding-top: var(--header-offset);
        width: 100%;
        display: block;
    }

    /* --- Mobile Services Navigation (.services-nav) --- */
    .services-nav {
        display: flex; 
        overflow-x: auto; 
        gap: 24px;
        padding: 10px 20px 20px 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
        width: 100%;
    }
    .services-nav::-webkit-scrollbar { display: none; }
    
    .service-item {
        display: flex; flex-direction: column; align-items: center;
        min-width: 65px; text-decoration: none; opacity: 0.85; transition: 0.3s;
    }
    .service-item:active { opacity: 1; transform: scale(0.95); }
    .service-item img { 
        width: 45px; height: 45px; margin-bottom: 8px; 
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); 
    }
    .service-item span { 
        font-size: 0.75rem; font-weight: 700; color: var(--text-main); 
    }

    /* --- Mobile Search Box (.mobile-search-box) --- */
    .mobile-search-container {
        padding: 0 20px 15px 20px;
        width: 100%;
    }
    .mobile-search-box {
        display: flex;
        align-items: center;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
        border-radius: 30px;
        padding: 10px 20px;
        height: 50px;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    .mobile-search-box:focus-within {
        border-color: var(--tx-red);
        box-shadow: 0 0 15px var(--tx-red-glow);
        background: var(--card-bg-hover);
    }
    .mobile-search-box i {
        color: var(--text-muted);
        margin-right: 12px;
        font-size: 1.1rem;
    }
    .mobile-search-box input {
        width: 100%;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1rem;
        outline: none;
    }
    .mobile-search-box input::placeholder {
        color: var(--text-muted);
        font-weight: 500;
    }

    /* --- Homepage Specific Overrides (.m-section & .m-carousel) --- */
    .mobile-view { display: block; }
    
    .m-section {
        margin-bottom: 35px;
        padding-left: 20px; /* Left align but allows right scroll bleed */
    }
    .mobile-view .m-section:last-child {
        margin-bottom: 0; /* Tightens the gap specifically on the last section */
    }
    .m-section-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 15px; padding-right: 20px;
    }
    .m-section-header h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
    .m-section-header a { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }

    .m-carousel {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 12px; padding-right: 20px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .m-carousel::-webkit-scrollbar { display: none; }

    .m-card {
        flex: 0 0 42vw; scroll-snap-align: start;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
        border-radius: 16px; text-decoration: none; color: inherit;
        overflow: hidden; display: flex; flex-direction: column;
    }
    .m-card-img {
        width: 100%; aspect-ratio: 1 / 1; background: rgba(0,0,0,0.2);
        display: flex; align-items: center; justify-content: center;
        font-size: 3rem; position: relative;
    }
    .m-card-img img { width: 100%; height: 100%; object-fit: cover; }
    
    .m-card-info { padding: 12px; }
    .m-card-info h3 {
        font-size: 0.9rem; font-weight: 700; margin-bottom: 4px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mobile-view .m-card-info p {
        font-size: 0.75rem; opacity: 0.7; margin: 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Page-Specific Overrides */
    .mobile-bottom-nav { display: none !important; }
}

#preloader {
    background: var(--tx-gradient) !important;
}

#explore-mobile { padding-top: 5px; padding-bottom: 30px; }