/* Import Google Fonts - Inter and Outfit */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-red: #e01a22;
    --primary-red-hover: #c61118;
    --bg-gray: #fbf9f9;
    --bg-light: #f5f5f5;
    --accent-orange: #fea03c;
    --accent-orange-hover: #e58f2d;
    --text-dark: #1b2a32;
    --text-muted: #6c8ea0;
    --white: #ffffff;
    --border-color: #e5e9eb;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: #e01a22; /* Red overscroll bounce / drag-down refresh area at the top */
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    min-height: 100vh;
    min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Common Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Desktop Header */
header.main-header {
    background-color: var(--primary-red);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.Muqdisho-logo {
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.Muqdisho-logo:hover {
    transform: translateY(-1.5px) scale(1.02);
}

.muqdisho-main-logo-svg {
    height: 48px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.Muqdisho-logo:hover .muqdisho-main-logo-svg {
    transform: translateY(-1px) scale(1.03);
}

.brand-logo-badge-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: #ffffff;
    flex-shrink: 0;
}

.brand-logo-text-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-name-main {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1;
}

.brand-app-badge {
    background: #ffffff;
    color: var(--primary-red, #e01a22);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 900;
    padding: 2.5px 7px;
    border-radius: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

/* Mobile top bar logo link */
.mobile-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mobile-logo-link:hover {
    transform: scale(1.03);
}

.mobile-logo-badge-svg {
    height: 42px;
    width: auto;
    max-width: 165px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.mobile-brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #ffffff;
    line-height: 1;
}

.brand-app-badge-sm {
    background: #ffffff;
    color: var(--primary-red, #e01a22);
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.header-tagline {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 12px;
}

/* Header Taglines */
.desktop-header-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-left: 20px;
    white-space: nowrap;
    letter-spacing: 0.4px;
    display: inline-block;
    vertical-align: middle;
    color: #ffffff;
    cursor: default;
    user-select: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    cursor: pointer;
}

.lang-selector:hover {
    opacity: 1;
}

.auth-link {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
}

.auth-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.sell-btn {
    background-color: #d4ff2a;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 36px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(212, 255, 42, 0.2);
    text-transform: uppercase;
    transition: var(--transition);
}

.sell-btn:hover {
    background-color: #c0eb20;
    box-shadow: 0 6px 14px rgba(212, 255, 42, 0.35);
    transform: translateY(-2px);
}

/* Hero Section (Search Banner) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #990c11 100%);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 700;
}

.search-bar-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.search-region {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border-right: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 140px;
}

.search-region svg {
    color: var(--text-muted);
}

.search-input-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-container input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text-dark);
}

.search-input-container input::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-submit-btn:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.05);
}

/* Category Quick Suggestions below search */
.search-suggestions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.suggestion-pill {
    background-color: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-pill:hover {
    background-color: rgba(255,255,255,0.25);
    color: var(--white);
}

/* Homepage main content split layout */
.main-content {
    padding: 32px 0 64px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.main-feed-area, .listings-area {
    min-width: 0;
}

/* Left Sidebar Categories (Desktop) */
.sidebar-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    height: fit-content;
}

.sidebar-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-left: 3px solid transparent;
}

.sidebar-category-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* Banners list */
.banners-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    margin-bottom: 24px;
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.banners-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
}

.banner-item {
    flex: 0 0 260px;
    height: 76px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.banner-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.banner-text-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.banner-text-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}


/* Grid & Cards (Trending ads) */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.toggle-btn.active, .toggle-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Ads Grid & Product Archives (eBay Style 2-Column Responsive Grid) */
.ads-grid,
.ads-grid.single-view,
.ads-grid:not(.list-view) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
}

@media (min-width: 768px) {
    .ads-grid,
    .ads-grid.single-view,
    .ads-grid:not(.list-view) {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 20px 14px !important;
    }
}

.ads-grid .ad-card,
.ad-card.ebay-style-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: none !important;
    overflow: hidden !important;
    position: relative !important;
    transition: transform 0.25s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.ads-grid .ad-card:hover,
.ad-card.ebay-style-card:hover {
    transform: translateY(-2px) !important;
}

.ads-grid .ad-card > a,
.ad-card.ebay-style-card > a {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.ads-grid .card-img-wrapper,
.ad-card .card-img-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1.45 !important;
    height: auto !important;
    background-color: #0b0c16 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding-top: 0 !important;
}

.ads-grid .card-img-wrapper img,
.ad-card .card-img-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.ads-grid .ad-card:hover .card-img-wrapper img,
.ad-card:hover .card-img-wrapper img {
    transform: scale(1.03) !important;
}

/* eBay Top Overlay on Image/Video */
.ebay-card-overlay-top {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.ebay-card-live-pill {
    background: rgba(0, 0, 0, 0.52) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    padding: 2.5px 7.5px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4.5px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.ebay-card-live-dot {
    width: 6px !important;
    height: 6px !important;
    background-color: #10b981 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35) !important;
    animation: ebayDotPulse 1.8s infinite ease-in-out !important;
}

.ebay-card-play-icon {
    background: rgba(0, 0, 0, 0.52) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.ebay-card-play-icon svg {
    margin-left: 1px !important;
}

.card-badge.promoted-pill {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    background-color: #0088cc !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    text-transform: capitalize !important;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.35);
    z-index: 5 !important;
}

.photo-count-overlay {
    display: none !important;
}

/* Card Details (Under Image: Title -> Description -> Category & Price) */
.ads-grid .card-details,
.ad-card .card-details {
    padding: 10px 4px 4px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    background: transparent !important;
    position: relative !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 1. Title of the Product */
.ads-grid .card-title,
.ad-card .card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0b192c !important;
    line-height: 1.28 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-width: 0 !important;
}

/* 2. Description (2-line clamped) */
.ads-grid .card-description,
.ad-card .card-description {
    font-family: 'Inter', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 2px 0 4px 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-width: 0 !important;
}

/* 3. Category and Price at Bottom */
.card-bottom-row {
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
    min-width: 0 !important;
}

.card-category-tag {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    color: #0b192c !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.card-dot-sep {
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.ads-grid .card-price,
.ad-card .card-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #00875a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.card-meta-info,
.card-attributes,
.card-footer,
.card-location {
    display: none !important;
}


/* Grid View Mode */
.ads-grid.grid-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.ads-grid.grid-view .ad-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
}

.ads-grid.grid-view .card-img-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: var(--bg-light);
    overflow: hidden;
    height: auto !important;
}

.ads-grid.grid-view .card-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.ads-grid.grid-view .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    padding-right: 0;
    height: 38px;
}

.ads-grid.grid-view .card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.ads-grid.grid-view .card-description,
.ads-grid.grid-view .card-attributes,
.ads-grid.grid-view .card-footer {
    display: flex;
}

/* Ad Card styles base */
.ad-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
}

.ad-card.promoted {
    border-color: #0088cc;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ad-card > a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.card-img-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: var(--bg-light);
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: var(--text-muted);
    z-index: 10;
    transition: var(--transition);
}

.fav-btn:hover {
    transform: scale(1.1);
    color: #ff3b30;
}

.fav-btn.active {
    color: #ff3b30;
}

.card-badge-container {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.card-badge {
    background-color: rgba(27, 42, 50, 0.75);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.card-badge.verified-badge {
    background-color: rgba(0, 86, 147, 0.85);
}

.card-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
    line-height: 1.4;
}

.card-description {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
    line-height: 1.4;
}

.card-attributes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: auto;
    padding-bottom: 8px;
}

.attr-pill {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* List View Mode overrides */
.ads-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.ads-grid.list-view .ad-card {
    flex-direction: row !important;
}

.ads-grid.list-view .ad-card > a {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
    align-items: stretch !important;
}

.ads-grid.list-view .card-img-wrapper {
    width: 160px !important;
    min-width: 160px !important;
    height: 160px !important;
    padding-top: 0 !important;
    flex-shrink: 0 !important;
}

.ads-grid.list-view .card-details,
.ads-grid.list-view .card-details-wrapper {
    padding: 8px 8px 0 8px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
}

.ads-grid.list-view .card-title {
    height: auto;
    margin-bottom: 4px;
    font-size: 14px;
    -webkit-line-clamp: 1;
}

.ads-grid.list-view .card-description {
    height: auto;
    margin-bottom: 8px;
    font-size: 12px;
    -webkit-line-clamp: 2;
}

.ads-grid.list-view .card-attributes {
    margin-bottom: 8px;
    padding-bottom: 0;
}

.ads-grid.list-view .card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .ads-grid.list-view .card-img-wrapper {
        width: 110px;
        min-width: 110px;
        height: 110px;
    }
    .ads-grid.list-view .card-details {
        padding: 8px 10px;
    }
    .ads-grid.list-view .card-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    .ads-grid.list-view .card-description {
        display: none;
    }
    .ads-grid.list-view .card-attributes {
        display: none;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000010 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    font-size: 20px;
    color: var(--text-muted);
}

.modal-body {
    padding: 20px;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 8px;
    font-weight: 500;
}

.location-item:hover {
    background-color: var(--bg-light);
}

.location-item.selected {
    background-color: rgba(224, 26, 34, 0.1);
    color: var(--primary-red);
}

/* Location Modal Custom Styles */
#location-modal .modal-content,
#subcategory-modal .modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    height: 90%;
    max-height: 700px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

#location-modal.active .modal-content,
#subcategory-modal.active .modal-content {
    transform: scale(1);
}

.location-modal-header {
    background-color: var(--primary-red);
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.location-search-box {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 4px;
    padding: 6px 8px;
    box-shadow: var(--shadow-sm);
}

.location-back-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    margin-right: 4px;
}

.location-back-btn:hover {
    opacity: 0.8;
}

#location-search-input {
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    color: var(--text-dark);
    font-family: inherit;
}

.location-modal-body {
    flex: 1;
    overflow-y: auto;
    background-color: var(--white);
}

.location-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.location-list-item:hover {
    background-color: var(--bg-light);
}

.location-list-item.selected {
    background-color: rgba(224, 26, 34, 0.05); /* Red tint */
    border-left: 3px solid var(--primary-red);
}

.location-list-item.selected .location-item-name {
    color: var(--primary-red);
    font-weight: 700;
}

.location-item-text {
    font-size: 15px;
    color: var(--text-dark);
}

.location-item-name {
    font-weight: 500;
}

.location-item-ads {
    color: #8c9096;
}

.location-item-arrow {
    color: #8c9096;
    display: flex;
    align-items: center;
}

.location-section-header {
    background-color: #edf1f5;
    color: #7c8b9a;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    #location-modal,
    #subcategory-modal {
        align-items: stretch;
        justify-content: stretch;
    }
    
    #location-modal .modal-content,
    #subcategory-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    }
    
    #location-modal.active .modal-content,
    #subcategory-modal.active .modal-content {
        transform: translateY(0) !important;
    }
}

/* Auth Modal specifics */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(224, 26, 34, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    margin-top: 8px;
}

.submit-btn:hover {
    background-color: var(--primary-red-hover);
}

/* Bottom Navigation (Visible across devices) */
.mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--primary-red, #e01a22) !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18) !important;
    z-index: 9999 !important;
    height: 56px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1) !important;
}

body:not(.is-fullscreen) {
    padding-bottom: 68px;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 10.5px;
    font-weight: 500;
    gap: 3px;
    flex: 1;
    height: 100%;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.nav-item.active {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.nav-item.active svg {
    fill: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

.nav-item:hover {
    color: #ffffff !important;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background-color: #ffffff !important;
    color: var(--primary-red, #e01a22) !important;
    font-size: 9.5px;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    box-sizing: border-box;
    border: 1px solid var(--primary-red, #e01a22);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile search UI elements (Hidden on Desktop) */
.mobile-search-header {
    display: none;
    background-color: var(--primary-red);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-search-bar {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mobile-search-bar input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
}

/* Category Grid (Mobile) */
.mobile-categories-section {
    display: none;
    background-color: transparent;
    padding: 0 0 16px 0 !important;
    margin-bottom: 16px;
}

.mobile-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mobile-category-card {
    background-color: #f4f6f7;
    border-radius: var(--radius-md);
    padding: 12px 4px 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    min-height: 86px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.mobile-category-card:hover {
    background-color: #ebf0f2;
    transform: translateY(-1px);
}

.mobile-category-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Page (search.html) Styles */
.search-results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px 0;
}

.filter-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
}

/* Product Detail Page (product.html) Styles */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 24px 0;
}

.product-main-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.product-gallery {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image-view {
    height: 450px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-view img {
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.thumb-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumb-img.active {
    border-color: var(--primary-red);
    opacity: 1;
}

.product-info-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.product-info-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.product-info-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-info-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.product-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-attribute-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
}

.attr-name {
    color: var(--text-muted);
    font-weight: 500;
}

.attr-value {
    color: var(--text-dark);
    font-weight: 600;
}

.product-description-section {
    padding-top: 20px;
}

.product-description-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-description-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-line;
}

/* Sidebar Seller Card */
.sticky-seller-card {
    position: sticky;
    top: 96px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.seller-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.seller-rating {
    display: flex;
    gap: 2px;
    color: #ffcc00;
    font-size: 12px;
}

.seller-meta-info {
    font-size: 12px;
    color: var(--text-muted);
}

.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-call {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-call:hover {
    background-color: var(--primary-red-hover);
}

.btn-chat {
    background-color: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-chat:hover {
    background-color: rgba(224, 26, 34, 0.05);
}

.safety-card {
    background-color: #fff9e6;
    border: 1px solid #ffe89e;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 12px;
    color: #7a5f00;
}

.safety-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.safety-list {
    list-style-type: disc;
    padding-left: 16px;
}

/* Post Ad Form Styles */
.post-ad-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 24px auto;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.post-ad-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary-red);
}

.drag-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.drag-drop-zone:hover {
    border-color: var(--primary-red);
    background-color: rgba(224, 26, 34, 0.02);
}

.upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.uploaded-previews {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background-color: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Page (chat.html) Styles */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 72px);
    background-color: var(--white);
}

.chat-inbox-sidebar {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.inbox-header {
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.inbox-list-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.inbox-list-item:hover, .inbox-list-item.active {
    background-color: var(--bg-light);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-info {
    flex-grow: 1;
    overflow: hidden;
}

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

.chat-partner-name {
    font-weight: 600;
    font-size: 14px;
}

.chat-timestamp {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-snippet-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.chat-snippet {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f0f2f5;
}

.chat-window-header {
    background-color: var(--white);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-window-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-bubble {
    max-width: 60%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.msg-bubble.sent {
    background-color: #e2f7cb;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.msg-bubble.received {
    background-color: var(--white);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.chat-window-footer {
    background-color: var(--white);
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input-wrapper {
    flex-grow: 1;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 44px;
}

.chat-input-wrapper input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
}

.chat-send-btn {
    background-color: var(--primary-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Page (profile.html) Styles */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px 0;
}

.profile-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 16px auto;
}

.profile-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-card-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    color: #ffcc00;
    margin-bottom: 12px;
}

.profile-menu {
    list-style-type: none;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: left;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.profile-menu-item:hover, .profile-menu-item.active {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.profile-details-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.profile-content-tab.active {
    display: block;
}

.profile-tab-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Responsive Styles - Mobile-First Overrides */
@media (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide desktop elements */
    header.main-header,
    .split-layout > .sidebar-card,
    .search-results-layout > .filter-sidebar,
    .product-detail-layout > .sticky-seller-card,
    .profile-layout > .profile-card,
    .chat-layout > .chat-inbox-sidebar {
        display: none !important;
    }

    body {
        padding-bottom: 68px !important;
    }

    .container {
        padding: 0 12px;
    }

    /* Show mobile elements */
    .mobile-search-header,
    .mobile-categories-section {
        display: block !important;
    }
    
    .mobile-bottom-nav {
        display: block !important;
    }

    .banner-item {
        flex: 0 0 110px !important;
        height: 120px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    .banner-item img {
        width: 50px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    .banner-item .banner-text-subtitle {
        display: none !important;
    }
    .banner-item .banner-text-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    /* Homepage full width */
    .split-layout, .search-results-layout, .product-detail-layout, .profile-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Mobile ads list - eBay 2-column grid */
    .ads-grid,
    .ads-grid.single-view,
    .ads-grid:not(.list-view) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-section {
        display: none;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .search-bar-wrapper {
        display: none; /* Desktop search banner not on mobile */
    }

    /* Detail page responsive */
    .main-image-view {
        height: 280px;
    }

    .product-info-title {
        font-size: 16px;
    }

    .product-info-price {
        font-size: 20px;
    }

    .product-attributes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Mobile Detail Sticky Bottom Action Bar */
    .mobile-product-sticky-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
        padding: 10px 16px;
        display: flex;
        gap: 12px;
        z-index: 101;
    }

    .mobile-product-sticky-bottom .seller-action-btn {
        flex: 1;
        padding: 12px;
        font-size: 13px;
    }

    /* Chat layout responsive */
    .chat-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 120px);
    }

    .chat-window {
        display: flex;
    }

    .chat-window-messages {
        padding: 12px;
    }

    .msg-bubble {
        max-width: 80%;
    }

    .post-ad-card {
        padding: 16px;
        margin: 12px;
    }

    /* Mobile Header & Hero Styles (Image 2) */
    .mobile-header-container {
        display: contents !important;
    }
    
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 14px;
        position: sticky;
        top: 0;
        z-index: 102;
        background-color: var(--primary-red);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--white);
        min-height: 56px;
    }
    
    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-search-body {
        background-color: var(--primary-red);
        padding: 16px 16px 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        color: var(--white);
    }
    
    .mobile-logo-text {
        font-family: 'Outfit', sans-serif;
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: var(--white);
        flex-shrink: 0;
    }

    .mobile-header-center-tagline {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
        padding: 0 4px;
    }

    .mobile-header-tagline {
        font-family: 'Outfit', sans-serif;
        font-size: 17.5px;
        font-weight: 800;
        letter-spacing: 0.4px;
        white-space: nowrap;
        display: inline-block;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }

    @media (max-width: 410px) {
        .mobile-header-tagline {
            font-size: 15.5px;
            letter-spacing: 0.2px;
        }
    }

    @media (max-width: 350px) {
        .mobile-header-tagline {
            font-size: 13.5px;
            letter-spacing: 0px;
        }
    }
    
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .mobile-header-circle-btn {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background-color: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        transition: var(--transition);
    }
    
    .mobile-header-circle-btn:hover {
        background-color: rgba(255,255,255,0.3);
    }
    
    .mobile-hero-search {
        display: none !important;
    }
    
    .mobile-hero-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
        font-family: 'Outfit', sans-serif;
        color: var(--white);
        text-align: center;
    }
    
    .mobile-hero-form {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-bottom: 0;
        align-items: center;
    }
    
    .mobile-hero-loc-btn {
        flex: 0 0 115px;
        height: 52px;
        background-color: var(--white);
        color: var(--text-dark);
        border-radius: 12px;
        padding: 4px 10px;
        font-size: 13.5px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        border: none;
        cursor: pointer;
        box-sizing: border-box;
        text-align: center;
    }

    .mobile-hero-loc-btn .location-picker-text {
        flex: 1;
        text-align: center;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        color: #1e293b;
        font-size: 13.5px;
        font-weight: 700;
    }
    
    .mobile-hero-loc-btn svg {
        color: #64748b;
        flex-shrink: 0;
    }
    
    .mobile-hero-search-input-wrapper {
        flex-grow: 1;
        height: 52px;
        background-color: var(--white);
        border-radius: 12px;
        display: flex;
        align-items: center;
        padding: 0 12px 0 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }
    
    .mobile-hero-search-input-wrapper input {
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        padding: 0 8px 0 0;
        font-size: 15px;
        background: transparent;
        color: #1e293b;
        font-family: inherit;
    }

    .mobile-hero-search-input-wrapper input::placeholder {
        color: #64748b;
        font-size: 14.5px;
        opacity: 0.9;
    }
    
    .mobile-hero-search-submit {
        background: transparent;
        border: none;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    
    .mobile-hero-suggestions {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-suggestion-pill {
        background-color: rgba(255,255,255,0.15);
        padding: 4px 10px;
        border-radius: var(--radius-full);
        font-size: 11px;
        cursor: pointer;
        font-weight: 500;
        color: var(--white);
    }
    
    .mobile-suggestion-pill:hover {
        background-color: rgba(255,255,255,0.25);
    }
    
    .video-showcase-container {
        grid-template-columns: 1fr;
        padding: 16px;
        margin-bottom: 16px;
    }
}

/* Video Showcase Section */
.video-showcase-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.video-player-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-products-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-products-title svg {
    color: var(--primary-red);
}

.video-product-card {
    display: flex;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.video-product-card:hover {
    border-color: #000000;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.video-product-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.video-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.video-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.video-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-red);
}
/* Video Promo Alert Banner */
.video-promo-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border-left: 4px solid var(--primary-red);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.video-promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.video-promo-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.promo-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.promo-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.video-promo-btn {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.video-promo-btn:hover {
    background-color: #b8141a;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 576px) {
    .video-promo-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }
    .video-promo-content {
        align-items: flex-start;
    }
    .video-promo-btn {
        text-align: center;
        width: 100%;
    }
    .video-showcase-container {
        margin-left: -12px !important;
        margin-right: -12px !important;
        margin-bottom: 12px !important;
        width: calc(100% + 24px) !important;
    }
    .video-player-wrapper {
        border-radius: 0 !important;
    }
}

/* Post Ad Native Jiji Style Redesign */
.form-group-field-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-field-trigger:hover {
    border-color: var(--primary-red);
}

.form-group-field-trigger .field-placeholder {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.form-group-field-trigger .field-placeholder.selected {
    color: var(--text-dark);
    font-weight: 600;
}

.form-group-field-trigger .field-caret {
    color: #7c8b9a;
    font-size: 22px;
    line-height: 1;
}

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

.input-char-counter {
    position: absolute;
    top: -20px;
    right: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.photo-uploader-label-green {
    color: #2baf5c !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Category Select Modal Overlays */
.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.category-modal-header {
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
}

.category-modal-back {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.category-modal-search-wrapper {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 8px;
}

.category-modal-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    color: var(--text-dark);
}

.category-modal-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 28px; /* Offset back button for center alignment */
}

.category-modal-clear {
    background: none;
    border: none;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.category-modal-body {
    flex: 1;
    overflow-y: auto;
}

.category-select-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f3f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-select-list-item:hover {
    background-color: #f8fafc;
}

.category-select-list-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
}

.category-select-list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.category-select-list-arrow {
    color: #cbd5e1;
    font-size: 20px;
}

.mobile-header-container {
    display: none; /* Hidden on desktop */
}

/* ========================================================
   🎬 FLOAT VIDEO PLAYER INTEGRATION IN MUQDISHO
   ======================================================== */
:root {
  --right-icon-size: 40px;
  --right-icon-img-size: 30px;
  --right-icon-font-size: 16px;
}

#homepage-video-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  background: #000000 !important;
  overflow: hidden !important;
  user-select: none;
  -webkit-user-select: none;
}

#homepage-video-wrapper #player {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000000 !important;
  overflow: hidden !important;
  touch-action: none;
  z-index: 1;
}

#homepage-video-wrapper video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
  background-color: transparent !important;
  will-change: transform;
}

#homepage-video-wrapper video.hidden {
  opacity: 0;
  pointer-events: none;
}

#homepage-video-wrapper video.visible {
  opacity: 1;
}

/* Fullscreen Mode for Player */
#homepage-video-wrapper:fullscreen,
#homepage-video-wrapper:-webkit-full-screen,
#homepage-video-wrapper:-moz-full-screen,
#homepage-video-wrapper:-ms-fullscreen,
#homepage-video-wrapper.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background-color: #000000 !important;
  z-index: 999999 !important;
  overflow: hidden !important;
}

#homepage-video-wrapper:fullscreen #player,
#homepage-video-wrapper:-webkit-full-screen #player,
#homepage-video-wrapper:-moz-full-screen #player,
#homepage-video-wrapper:-ms-fullscreen #player,
#homepage-video-wrapper.is-fullscreen #player {
  width: 100vw !important;
  height: 100vh !important;
}

#homepage-video-wrapper:fullscreen video,
#homepage-video-wrapper:-webkit-full-screen video,
#homepage-video-wrapper:-moz-full-screen video,
#homepage-video-wrapper:-ms-fullscreen video,
#homepage-video-wrapper.is-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
}

/* Video in Minimized Browser State: Contained without stretching or cropping */
#homepage-video-wrapper:not(.is-fullscreen):not(:fullscreen):not(:-webkit-full-screen) video {
  object-fit: contain !important;
  object-position: center !important;
  background-color: #000000 !important;
  pointer-events: none !important;
}

/* Fullscreen Button in Browser State (Positioned cleanly on Bottom-Right) */
.video-center-fullscreen-btn {
  position: absolute !important;
  bottom: 14px !important;
  right: 14px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.68) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 30 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  outline: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.video-center-fullscreen-btn:hover {
  background: rgba(224, 26, 34, 0.95) !important;
  border-color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(224, 26, 34, 0.55) !important;
}

.video-center-fullscreen-btn:active {
  transform: scale(0.92) !important;
}

.video-center-fullscreen-btn svg {
  width: 22px !important;
  height: 22px !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4)) !important;
}

#homepage-video-wrapper:fullscreen .video-center-fullscreen-btn,
#homepage-video-wrapper:-webkit-full-screen .video-center-fullscreen-btn,
#homepage-video-wrapper:-moz-full-screen .video-center-fullscreen-btn,
#homepage-video-wrapper:-ms-fullscreen .video-center-fullscreen-btn,
#homepage-video-wrapper.is-fullscreen .video-center-fullscreen-btn,
.is-fullscreen .video-center-fullscreen-btn {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 🔲 INLINE MODE (DEFAULT): Hide ALL overlay icons, bars & nav */
#homepage-video-wrapper #videoInfo,
#homepage-video-wrapper #controls,
#homepage-video-wrapper #topCitiesBar,
#homepage-video-wrapper #soundContainer,
#homepage-video-wrapper #searchContainer,
#homepage-video-wrapper #bottomNavBar,
#homepage-video-wrapper #progressWrap,
#homepage-video-wrapper #tapControls,
#homepage-video-wrapper #nextLock {
  display: none !important;
  pointer-events: none !important;
}

/* 🖥️ FULLSCREEN MODE: Show icons, controls, city tabs & bottom nav */
#homepage-video-wrapper:fullscreen #videoInfo,
#homepage-video-wrapper:-webkit-full-screen #videoInfo,
#homepage-video-wrapper.is-fullscreen #videoInfo {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #controls,
#homepage-video-wrapper:-webkit-full-screen #controls,
#homepage-video-wrapper.is-fullscreen #controls {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #topCitiesBar,
#homepage-video-wrapper:-webkit-full-screen #topCitiesBar,
#homepage-video-wrapper.is-fullscreen #topCitiesBar {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #soundContainer,
#homepage-video-wrapper:-webkit-full-screen #soundContainer,
#homepage-video-wrapper.is-fullscreen #soundContainer {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #searchContainer,
#homepage-video-wrapper:-webkit-full-screen #searchContainer,
#homepage-video-wrapper.is-fullscreen #searchContainer {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #bottomNavBar,
#homepage-video-wrapper:-webkit-full-screen #bottomNavBar,
#homepage-video-wrapper.is-fullscreen #bottomNavBar {
  display: flex !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #progressWrap,
#homepage-video-wrapper:-webkit-full-screen #progressWrap,
#homepage-video-wrapper.is-fullscreen #progressWrap {
  display: block !important;
  pointer-events: auto !important;
}

#homepage-video-wrapper:fullscreen #tapControls,
#homepage-video-wrapper:-webkit-full-screen #tapControls,
#homepage-video-wrapper.is-fullscreen #tapControls {
  display: flex !important;
  pointer-events: none !important;
}

#homepage-video-wrapper:fullscreen #nextLock,
#homepage-video-wrapper:-webkit-full-screen #nextLock,
#homepage-video-wrapper.is-fullscreen #nextLock {
  display: block !important;
  pointer-events: auto !important;
}

/* Side Controls */
#homepage-video-wrapper #controls {
  position: absolute !important;
  right: calc(14px + env(safe-area-inset-right)) !important;
  bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  z-index: 2010 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: center !important;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}

#homepage-video-wrapper:fullscreen #controls,
#homepage-video-wrapper:-webkit-full-screen #controls,
#homepage-video-wrapper.is-fullscreen #controls {
  right: calc(14px + env(safe-area-inset-right)) !important;
  bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  gap: 16px !important;
  display: flex !important;
}

/* 🚩 COUNTRY FLAGS SIDEBAR STYLING */
.flags-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.flags-container .flag-btn {
  width: 32px !important;
  height: 23px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease !important;
}

.flags-container .flag-btn img {
  width: 30px !important;
  height: 21px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.7) !important;
  filter: none !important;
}

.flags-container .flag-btn:active {
  transform: scale(0.85) !important;
}

#homepage-video-wrapper #controls button:not(.call-agent-btn):not(#whatsappBtn):not(.flag-btn):not(.tiktok-action-item) {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: transform 0.15s ease, opacity 0.5s ease, visibility 0.5s ease !important;
  margin-bottom: 0px !important;
  filter: none !important;
}

#homepage-video-wrapper #controls button:not(.call-agent-btn):not(#whatsappBtn):not(.flag-btn):not(.tiktok-action-item):active {
  transform: scale(0.85) !important;
}

#homepage-video-wrapper #controls button:not(.call-agent-btn):not(#whatsappBtn):not(.flag-btn):not(.tiktok-action-item) img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.15s ease !important;
}

#homepage-video-wrapper #controls #heartBtn,
#homepage-video-wrapper #controls #commentBtn {
  margin-bottom: 8px !important;
}

.btn-count {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9), 0px 0px 2px rgba(0, 0, 0, 0.9);
}

.liked img {
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Product & Seller Profile Floating Action Buttons */
/* Product & Seller Profile Floating Action Buttons */
#homepage-video-wrapper #controls .tiktok-action-item,
.tiktok-action-item {
  width: auto !important;
  min-width: 44px !important;
  height: auto !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
  color: #ffffff !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#homepage-video-wrapper #controls #sellerProfileBtn {
  padding-bottom: 28px !important;
}

.tiktok-action-item:hover {
  transform: scale(1.1) !important;
}

.tiktok-action-item:active {
  transform: scale(0.9) !important;
}

/* 1. Product / Shop Website Button (Browser Key) */
.tiktok-product-btn,
.tiktok-shop-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.tiktok-action-item:hover .tiktok-product-btn,
.tiktok-action-item:hover .tiktok-shop-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.1) !important;
}

.tiktok-product-btn svg,
.tiktok-shop-btn svg {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)) !important;
}

/* 2. Profile Button (Static Clean Profile Icon) */
#sellerProfileBtn img,
#sellerProfileIcon,
.tiktok-action-item img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.15s ease !important;
}

.tiktok-action-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
  letter-spacing: 0.2px !important;
  margin-top: 3px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  display: block !important;
  white-space: nowrap !important;
}

/* Sound Button in Top Left Corner */
#homepage-video-wrapper #soundContainer {
  position: absolute !important;
  top: calc(10px + env(safe-area-inset-top)) !important;
  left: 10px !important;
  z-index: 2000 !important;
  align-items: center !important;
  gap: 8px !important;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}

#soundToggle {
  width: calc(var(--right-icon-size) * 1.12) !important;
  height: calc(var(--right-icon-size) * 1.12) !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#soundToggle img {
  width: calc(var(--right-icon-img-size) * 1.12) !important;
  height: calc(var(--right-icon-img-size) * 1.12) !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.2s ease !important;
}

#soundToggle:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  transform: scale(1.1) !important;
}

#soundToggle:active {
  transform: scale(0.9) !important;
}

/* Search Button in Top Right Corner (Opposite to Sound) */
#homepage-video-wrapper #searchContainer {
  position: absolute !important;
  top: calc(10px + env(safe-area-inset-top)) !important;
  right: 10px !important;
  z-index: 2000 !important;
  align-items: center !important;
  gap: 8px !important;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}

#searchToggleBtn {
  width: calc(var(--right-icon-size) * 1.12) !important;
  height: calc(var(--right-icon-size) * 1.12) !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

#searchToggleBtn img,
#searchIcon {
  width: calc(var(--right-icon-img-size) * 1.12) !important;
  height: calc(var(--right-icon-img-size) * 1.12) !important;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.2s ease !important;
}

#searchToggleBtn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  transform: scale(1.1) !important;
}

#searchToggleBtn:active {
  transform: scale(0.9) !important;
}


/* Top Cities Navigation Bar */
#homepage-video-wrapper #topCitiesBar {
  position: absolute !important;
  top: calc(10px + env(safe-area-inset-top)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2000 !important;
  align-items: center !important;
  height: 32px !important;
  box-sizing: border-box;
  gap: 14px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 0 14px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  max-width: calc(100% - 110px) !important;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}

#topCitiesBar::-webkit-scrollbar {
  display: none;
}

.city-tab {
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  padding: 0 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  user-select: none;
  position: relative;
}

.city-tab:hover {
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

.city-tab.active-city {
  color: #007aff !important;
  font-weight: 800 !important;
  transform: scale(1.05) !important;
}

.city-tab.active-city::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #007aff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.6);
}

#topCitiesBar.hud-hidden {
  transform: translate(-50%, -15px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Bottom Navigation Bar with Horizontal Scrolling */
#homepage-video-wrapper #bottomNavBar {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
  z-index: 2005 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 10px calc(12px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)) !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.75) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease !important;
  box-sizing: border-box !important;
}

#homepage-video-wrapper #bottomNavBar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#bottomNavBar.hud-hidden {
  transform: translateY(calc(100% + 20px)) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nav-btn {
  /* Exactly 8 icons visible in initial view */
  flex: 0 0 calc((100% - 76px) / 8) !important;
  width: calc((100% - 76px) / 8) !important;
  height: 40px !important;
  min-width: 36px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: scale(1.08) !important;
}

.nav-btn:active {
  transform: scale(0.9) !important;
}

.nav-btn img {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.6)) !important;
  transition: transform 0.15s ease !important;
  pointer-events: none !important;
}

.nav-btn i {
  font-size: 18px !important;
  color: #ffffff !important;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.6)) !important;
  transition: transform 0.15s ease !important;
  pointer-events: none !important;
}

.nav-btn.active-cat {
  background: rgba(0, 122, 255, 0.4) !important;
  border-color: #007aff !important;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.7) !important;
  transform: scale(1.08) !important;
}

.nav-btn.active-cat img {
  filter: brightness(0) invert(1) drop-shadow(0 0 5px #007aff) !important;
}

.nav-btn.active-cat i {
  color: #ffffff !important;
  filter: drop-shadow(0 0 5px #007aff) !important;
}

/* Progress Bar */
#homepage-video-wrapper #progressWrap {
  position: absolute !important;
  left: 0 !important;
  bottom: calc(34px + env(safe-area-inset-bottom)) !important;
  width: 100% !important;
  height: 3px !important;
  background: rgba(255,255,255,0.15) !important;
  z-index: 1500 !important;
  overflow: hidden !important;
  opacity: 0;
  transition: opacity 0.25s ease !important;
}

#homepage-video-wrapper:fullscreen #progressWrap,
#homepage-video-wrapper:-webkit-full-screen #progressWrap,
#homepage-video-wrapper.is-fullscreen #progressWrap {
  bottom: calc(35px + env(safe-area-inset-bottom)) !important;
}

#progressWrap.visible {
  opacity: 1 !important;
}

#progressBar {
  height: 100% !important;
  width: 0% !important;
  background: #4AA3FF !important;
  box-shadow: 0 0 6px rgba(74,163,255,0.9), 0 0 12px rgba(74,163,255,0.7) !important;
  transition: width 0.08s linear !important;
}

.playing #progressBar {
  animation: glowPulse 1.4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%   { box-shadow: 0 0 4px rgba(74,163,255,0.5); }
  50%  { box-shadow: 0 0 12px rgba(74,163,255,1); }
  100% { box-shadow: 0 0 4px rgba(74,163,255,0.5); }
}

/* Tap Controls Overlay */
#homepage-video-wrapper #tapControls {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 30px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: 1000 !important;
}

#homepage-video-wrapper:fullscreen #tapControls,
#homepage-video-wrapper:-webkit-full-screen #tapControls,
#homepage-video-wrapper.is-fullscreen #tapControls {
  position: fixed !important;
  inset: 0 !important;
  gap: 40px !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}

#tapControls.visible {
  opacity: 1 !important;
  pointer-events: none !important;
}

#tapControls.visible .ctrl,
#tapControls .ctrl {
  pointer-events: auto !important;
}

.ctrl {
  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  transform: scale(0.85) !important;
  animation: ctrlPulse 1.6s ease-in-out infinite;
  transition: transform 0.2s ease, opacity 0.25s ease !important;
  user-select: none !important;
}

#homepage-video-wrapper:fullscreen .ctrl,
#homepage-video-wrapper:-webkit-full-screen .ctrl {
  width: 64px !important;
  height: 64px !important;
}

.ctrl-back, .ctrl-fwd {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.ctrl-play i {
  font-size: 24px !important;
  transition: transform 0.18s ease, opacity 0.18s ease !important;
}

.ctrl-play.morph i {
  transform: scale(0.6) !important;
  opacity: 0 !important;
}

.ctrl:active {
  transform: scale(0.92) !important;
}

#tapControls.visible .ctrl {
  transform: scale(1) !important;
}

#tapControls.hiding .ctrl {
  opacity: 0 !important;
  transform: scale(0.6) !important;
}

@keyframes ctrlPulse {
  0%   { transform: scale(0.95); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(0.95); }
}

/* Next Lock */
#nextLock {
  position: absolute !important;
  left: 10px !important;
  bottom: 10px !important;
  font-size: 14px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
  filter: drop-shadow(0 0 4px rgba(255, 204, 0, 0.6)) !important;
  z-index: 9999 !important;
}

#nextLock.locked {
  opacity: 1 !important;
  animation: lockPulse 1.4s ease-in-out infinite;
}

#nextLock.unlocked {
  animation: unlockPop 0.35s ease-out forwards;
}

@keyframes lockPulse {
  0%   { transform: scale(0.9); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(0.9); }
}

@keyframes unlockPop {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.6); }
}

/* Whatsapp info button */
#homepage-video-wrapper #controls #whatsappBtn {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 10px !important;
  margin-bottom: 5px !important;
  box-sizing: border-box !important;
  z-index: 10002 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: transform 0.15s ease, opacity 0.5s ease, visibility 0.5s ease !important;
}

#homepage-video-wrapper #controls #whatsappBtn:active {
  transform: scale(0.85) !important;
}

#homepage-video-wrapper #controls #whatsappBtn img.info-icon-img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.15s ease !important;
}

#controls.only-whatsapp button:not(#whatsappBtn):not(.keep-permanent) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hud-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#videoInfo.hud-hidden,
#controls.hud-hidden {
  transform: translateY(15px) !important;
}

#soundContainer.hud-hidden,
#searchContainer.hud-hidden {
  transform: translateY(-15px) !important;
}

.animate {
  transition: transform 0.25s ease-out;
}

/* Comments, Auth, Search, Info Sheets (Modals) */
#commentPanel {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 70vh !important;
  background: #ffffff !important;
  z-index: 10000001 !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  transform: translateY(100%) !important;
  color: #000 !important;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2) !important;
}

#commentPanel.visible {
  transform: translateY(0) !important;
}

.panel-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 15px 20px !important;
  border-bottom: 1px solid #eee !important;
}

.panel-header h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #111 !important;
}

.panel-header button {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  color: #555 !important;
  cursor: pointer !important;
}

.panel-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 15px 20px !important;
}

.comment-item {
  margin-bottom: 15px !important;
  display: flex !important;
  flex-direction: column !important;
}

.comment-author {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #333 !important;
}

.comment-text {
  font-size: 15px !important;
  color: #111 !important;
  margin-top: 2px !important;
}

.panel-footer {
  padding: 15px 20px !important;
  border-top: 1px solid #eee !important;
  background: #fff !important;
  position: relative !important;
}

.input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #f8f8f8 !important;
  border: 1px solid #ddd !important;
  border-radius: 20px !important;
  padding-right: 15px !important;
}

.input-wrap:focus-within {
  border-color: #4AA3FF !important;
  background: #fff !important;
}

.input-wrap input {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: none !important;
  background: transparent !important;
  font-size: 15px !important;
  outline: none !important;
}

#sendCommentBtn {
  background: none !important;
  border: none !important;
  color: #4AA3FF !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.1s ease !important;
}

.comment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 5px !important;
}

.comment-actions button {
  background: none !important;
  border: none !important;
  color: #777 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.comment-actions button.liked { color: #ff2b54 !important; }
.comment-actions button.disliked { color: #ffa500 !important; }

.reply-list {
  margin-left: 30px !important;
  margin-top: 10px !important;
  border-left: 2px solid #eee !important;
  padding-left: 10px !important;
}

.reply-item { margin-bottom: 10px !important; }

.reply-indicator {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #f0f0f0 !important;
  padding: 8px 15px !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  font-size: 13px !important;
  color: #555 !important;
}

.reply-indicator.hidden { display: none !important; }

#cancelReplyBtn {
  background: none !important;
  border: none !important;
  color: #999 !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

#emojiToggleBtn {
  background: none !important;
  border: none !important;
  color: #777 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 5px !important;
  margin-left: 5px !important;
}

.emoji-picker {
  position: absolute !important;
  bottom: 100% !important;
  left: 20px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1) !important;
  margin-bottom: 10px !important;
  z-index: 10000002 !important;
}

.emoji-picker.hidden { display: none !important; }

.emoji {
  font-size: 24px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: transform 0.1s !important;
}

.emoji:active { transform: scale(0.8) !important; }

/* Auth Modals */
/* Agent Info & Contact Bottom Sheet & Info Sheet & Product Sheet */
#agentInfoSheet, #contactUsSheet, #infoBoxSheet, #productDetailsSheet, #sellerProfileSheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000005 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: visibility 0.3s ease !important;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
}

#agentInfoSheet.visible, #contactUsSheet.visible, #infoBoxSheet.visible, #productDetailsSheet.visible, #sellerProfileSheet.visible {
  pointer-events: auto !important;
  visibility: visible !important;
}

.sheet-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: auto !important;
}

#agentInfoSheet.visible .sheet-backdrop, 
#contactUsSheet.visible .sheet-backdrop,
#infoBoxSheet.visible .sheet-backdrop,
#productDetailsSheet.visible .sheet-backdrop,
#sellerProfileSheet.visible .sheet-backdrop {
  opacity: 1 !important;
}

.sheet-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 80vh !important;
  background: #ffffff !important;
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateY(100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #161823 !important;
  overflow: hidden !important;
}

#agentInfoSheet.visible .sheet-content, 
#infoBoxSheet.visible .sheet-content, 
#contactUsSheet.visible .sheet-content,
#productDetailsSheet.visible .sheet-content,
#sellerProfileSheet.visible .sheet-content {
  transform: translateY(0) !important;
}

.sheet-drag-handle {
  width: 40px !important;
  height: 5px !important;
  background: #eaeaea !important;
  border-radius: 3px !important;
  margin: 12px auto 6px auto !important;
  flex-shrink: 0 !important;
}

.sheet-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  background: #f1f1f2 !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #8a8b90 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  z-index: 10 !important;
}

.sheet-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 24px 24px 24px !important;
}

.sheet-body h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  color: #161823 !important;
}

.sheet-body div {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #2f3036 !important;
}

.sheet-footer {
  display: flex !important;
  gap: 12px !important;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom)) 24px !important;
  background: #ffffff !important;
  border-top: 1px solid #eaeaea !important;
  flex-shrink: 0 !important;
}

.sheet-footer .modal-btn {
  flex: 1 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  border-radius: 23px !important;
  border: none !important;
  color: #ffffff !important;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 16px 0 40px !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

.sheet-footer .modal-btn .whatsapp-icon-circle,
.sheet-footer .modal-btn .phone-icon-circle {
  position: absolute !important;
  left: 3px !important;
  top: 3px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sheet-footer .modal-btn .whatsapp-icon-circle { background-color: #25D366 !important; }
.sheet-footer .modal-btn .phone-icon-circle { background-color: #007AFF !important; }

.sheet-footer .modal-btn .whatsapp-icon-circle img {
  width: 22px !important;
  height: 22px !important;
  filter: none !important;
}

.sheet-footer .modal-btn .phone-icon-circle i {
  font-size: 16px !important;
  color: #ffffff !important;
}

.sheet-footer .whatsapp-modal-btn { background-color: #25D366 !important; }
.sheet-footer .phone-modal-btn { background-color: #007AFF !important; }

/* 🌟 Product Details Sheet Dedicated Styling */
.product-sheet-content {
  max-height: 85vh !important;
  background: #ffffff !important;
}

.product-sheet-body {
  padding: 8px 20px 20px 20px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.product-popup-gallery {
  margin-bottom: 14px;
}

.popup-main-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f2f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.popup-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.popup-image-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(224, 26, 34, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.popup-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.popup-thumb-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #f0f2f5;
}

.popup-thumb-img:hover,
.popup-thumb-img.active {
  border-color: #e01a22;
  opacity: 1;
  transform: scale(1.04);
}

.product-popup-header {
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 12px;
}

.popup-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.popup-product-price {
  font-size: 24px;
  font-weight: 800;
  color: #e01a22;
  letter-spacing: -0.5px;
}

.popup-fav-btn {
  background: #f4f5f7;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8b90;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-fav-btn:hover {
  background: #e0e2e8;
}

.popup-fav-btn.active {
  color: #e01a22;
  background: rgba(224, 26, 34, 0.1);
}

.popup-product-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #161823 !important;
  line-height: 1.35 !important;
  margin: 0 0 8px 0 !important;
}

.popup-product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #73747b;
}

.popup-product-meta i {
  color: #e01a22;
  margin-right: 4px;
}

.popup-attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.popup-attr-item {
  background: #f7f8f9;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.popup-attr-name {
  font-size: 11px;
  color: #8a8b90;
  font-weight: 500;
  text-transform: capitalize;
}

.popup-attr-value {
  font-size: 13px;
  font-weight: 700;
  color: #161823;
  margin-top: 2px;
}

.popup-description-box {
  margin-bottom: 16px;
}

.popup-section-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #161823 !important;
  margin-bottom: 8px !important;
}

.popup-description-text {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #3b3c42 !important;
  white-space: pre-line;
  word-break: break-word;
}

.popup-seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 4px;
}

.popup-seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e01a22;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.popup-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-seller-info {
  flex: 1;
}

.popup-seller-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.popup-seller-name {
  font-size: 14px;
  font-weight: 700;
  color: #161823;
}

.popup-seller-badge {
  font-size: 11px;
  background: rgba(37, 211, 102, 0.15);
  color: #15803d;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.popup-seller-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #73747b;
}

.popup-seller-rating {
  color: #f59e0b;
  font-weight: 600;
}

.product-sheet-footer {
  display: flex !important;
  gap: 8px !important;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom)) 18px !important;
  background: #ffffff !important;
  border-top: 1px solid #eaeaea !important;
}

.product-sheet-footer .modal-btn {
  flex: 1 !important;
  padding: 0 8px 0 34px !important;
  height: 44px !important;
  font-size: 12.5px !important;
}

.chat-modal-btn {
  background-color: #e01a22 !important;
}

.sheet-footer .modal-btn .chat-icon-circle {
  position: absolute !important;
  left: 3px !important;
  top: 3px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
}

.sheet-footer .modal-btn .chat-icon-circle i {
  font-size: 15px !important;
  color: #ffffff !important;
}

/* 🌟 Seller Profile & Products Sheet Dedicated Styling */
.seller-sheet-content {
  max-height: 88vh !important;
  background: #ffffff !important;
}

.seller-sheet-body {
  padding: 10px 18px 24px 18px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.seller-profile-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4f5f7 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.seller-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.seller-hero-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e01a22;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(224, 26, 34, 0.25);
}

.seller-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-verified-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.seller-hero-details {
  flex: 1;
  min-width: 0;
}

.seller-hero-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.seller-hero-name {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #161823 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.seller-hero-badge {
  font-size: 11px;
  background: rgba(0, 122, 255, 0.12);
  color: #007AFF;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.seller-hero-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.seller-hero-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.seller-hero-rating-score {
  font-size: 12px;
  font-weight: 600;
  color: #73747b;
}

.seller-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #4b4c52;
  background: #ffffff;
  border: 1px solid #e2e5e9;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.seller-tag i {
  color: #e01a22;
  font-size: 10px;
}

.seller-about-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.seller-about-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #495057;
  margin: 0;
}

.seller-products-section {
  margin-top: 4px;
}

.seller-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.seller-section-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #161823 !important;
  margin: 0 !important;
}

.seller-products-count {
  font-size: 12px;
  font-weight: 700;
  color: #e01a22;
  background: rgba(224, 26, 34, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
}

/* 2-col on mobile, 3-col on desktop */
.seller-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 600px) {
  .seller-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.seller-product-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.seller-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #e01a22;
}

.seller-product-card:active {
  transform: scale(0.98);
}

.seller-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f2f5;
}

.seller-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.seller-product-card:hover .seller-card-thumb {
  transform: scale(1.05);
}

.seller-card-info {
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.seller-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #e01a22;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.seller-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #161823;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 31px;
}

.seller-card-meta {
  font-size: 10.5px;
  color: #8a8b90;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seller-card-meta i {
  color: #e01a22;
  font-size: 9.5px;
}

.seller-sheet-footer {
  display: flex !important;
  gap: 8px !important;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom)) 18px !important;
  background: #ffffff !important;
  border-top: 1px solid #eaeaea !important;
}

.seller-sheet-footer .modal-btn {
  flex: 1 !important;
  padding: 0 8px 0 34px !important;
  height: 44px !important;
  font-size: 12.5px !important;
}

/* Mobile Category Grid - Neon Red Style */
#mobile-categories-target.style-neon-red {
    background-color: transparent !important;
}

#mobile-categories-target.style-neon-red .mobile-category-card {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
    gap: 8px !important;
}

#mobile-categories-target.style-neon-red .mobile-category-card:hover {
    background-color: transparent !important;
    transform: translateY(-2px) !important;
}

#mobile-categories-target.style-neon-red .mobile-category-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    margin-top: 4px;
}

/* Mobile Category Grid - Red Background Style */
#mobile-categories-target.style-red-bg {
    background-color: transparent !important;
}

#mobile-categories-target.style-red-bg .mobile-category-card {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
    gap: 8px !important;
}

#mobile-categories-target.style-red-bg .mobile-category-card:hover {
    background-color: transparent !important;
    transform: translateY(-2px) !important;
}

#mobile-categories-target.style-red-bg .mobile-category-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-top: 4px;
}

/* Mobile Category Grid - Gumtree Red Slider Style */
#mobile-categories-target.style-gumtree-red {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

#mobile-categories-target.style-gumtree-red::-webkit-scrollbar {
    display: none;
}

#mobile-categories-target.style-gumtree-red .mobile-category-card {
    flex: 0 0 auto !important;
    width: 90px !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 6px !important;
}

#mobile-categories-target.style-gumtree-red .mobile-category-card:hover {
    background-color: transparent !important;
    transform: translateY(-3px) !important;
}

#mobile-categories-target.style-gumtree-red .red-icon-wrapper {
    width: 72px !important;
    height: 72px !important;
    background-color: #f1f5f9 !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
}

#mobile-categories-target.style-gumtree-red .red-icon-wrapper i {
    color: #1e293b !important;
}

#mobile-categories-target.style-gumtree-red .mobile-category-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-top: 4px;
    white-space: normal !important;
    line-height: 1.25 !important;
}

/* Mobile Category Grid - Gumtree Photo Cards Style */
.mobile-categories-grid.style-gumtree-photo {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding-left: 0 !important;
    padding-right: 12px !important;
    padding-bottom: 14px !important;
    margin-left: 0 !important;
    margin-bottom: 10px !important;
    gap: 8.5px !important;
    grid-template-columns: none !important;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-categories-grid.style-gumtree-photo::-webkit-scrollbar {
    display: none;
}

.mobile-categories-grid.style-gumtree-photo.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.mobile-categories-grid.style-gumtree-photo .mobile-category-card {
    flex: 0 0 calc((100% - 17px) / 2.7) !important;
    min-width: 125px !important;
    max-width: 175px !important;
    height: 156px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    scroll-snap-align: start !important;
}

.mobile-categories-grid.style-gumtree-photo .mobile-category-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
}

.mobile-categories-grid.style-gumtree-photo .photo-img-wrapper {
    width: 100% !important;
    height: 110px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.mobile-categories-grid.style-gumtree-photo .photo-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.mobile-categories-grid.style-gumtree-photo .mobile-category-card:hover .photo-img-wrapper img {
    transform: scale(1.06) !important;
}

.mobile-categories-grid.style-gumtree-photo .mobile-category-name {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0b192c !important;
    text-align: center !important;
    padding: 4px 6px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Google Sign-In & Auth Modal Enhancements */
.google-signin-btn {
    width: 100%;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 2px 6px rgba(60,64,67,0.15);
}

.google-signin-btn:active {
    background-color: #f1f3f4;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google Account Picker Card */
.account-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.account-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    background-color: var(--white);
}

.account-option-card:hover {
    background-color: #f8fafd;
    border-color: #4285f4;
    transform: translateY(-1px);
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.account-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.account-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.account-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logged-in-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.logged-in-user-badge:hover {
    background-color: rgba(255,255,255,0.25);
}

.user-avatar-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
}

/* Jiji Cars Layout Styles */
.quick-price-filters-row::-webkit-scrollbar,
.quick-filters-bar::-webkit-scrollbar {
    display: none;
}

.quick-price-filters-row,
.quick-filters-bar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.brand-grid-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-red) !important;
}

.brand-grid-card.active {
    border-color: var(--primary-red) !important;
    background-color: rgba(224, 26, 34, 0.03) !important;
}

.dropdown-item:hover {
    background-color: #f7f9fa;
}

.quick-filter-pill {
    transition: all 0.2s;
}

.quick-filter-pill:hover {
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

.promo-card:hover {
    transform: translateY(-2px);
}

.active-price-pill {
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
    background-color: rgba(224, 26, 34, 0.05) !important;
}

/* Header 2 - Gumtree Red Compact Header */
.gumtree-red-header {
    background-color: #e01a22 !important;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.gumtree-red-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-m-logo-link {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.m-logo-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s, background 0.2s;
}

.m-logo-img-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-m-logo-link:hover .m-logo-img-badge {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.m-logo-badge:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.gumtree-red-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 25px;
    height: 42px;
    padding: 0 12px 0 16px;
    flex-grow: 1;
    max-width: 480px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.gumtree-red-search-input {
    border: none;
    outline: none;
    background: transparent;
    flex-grow: 1;
    font-size: 14px;
    color: #1e293b;
    width: 100%;
}

.gumtree-red-search-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gumtree-red-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.gumtree-red-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff !important;
    gap: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.gumtree-red-action-item:hover {
    opacity: 0.85;
}

.gumtree-red-action-item i {
    font-size: 22px;
}

.gumtree-red-action-item span {
    font-size: 13px;
    font-weight: 400 !important;
    white-space: nowrap;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.1px;
}

@media (max-width: 600px) {
    .gumtree-red-action-item span {
        font-size: 10px;
    }
    .gumtree-red-actions {
        gap: 10px;
    }
    .m-logo-badge {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .gumtree-red-search-form {
        height: 38px;
        padding: 0 10px 0 14px;
    }
}

/* Category Menu Side Drawer */
.category-menu-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-menu-drawer-backdrop.active {
    display: flex !important;
    justify-content: flex-end;
    opacity: 1;
}

.category-menu-drawer-content {
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.category-menu-drawer-backdrop.active .category-menu-drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px 20px;
    background: var(--primary-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.drawer-category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.drawer-category-item:hover {
    background: #f8fafc;
}

.drawer-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.drawer-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #0b192c;
    flex-grow: 1;
}

/* Subcategory Modal Specific Styles (Full Screen) */
#subcategory-modal {
    z-index: 2500 !important;
}

#subcategory-modal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    transform: none !important;
}

#subcategory-modal .location-modal-header {
    padding: 14px 18px !important;
    flex-shrink: 0 !important;
}

#subcategory-modal .location-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-top: 12px !important; /* Spacing between header and list */
}

#subcategory-modal .location-list-item {
    padding: 16px 20px !important;
}

/* Homepage Full-Bleed Section Wrapper */
.homepage-red-section-wrapper {
    background-color: transparent !important;
    background: transparent !important;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 0;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 768px) {
    .homepage-red-section-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Top Red Mini Categories Header Strip (Bigger Bar, 6 Icons Per Row) */
.top-red-mini-strip {
    background-color: transparent !important;
    background: transparent !important;
    padding: 8px 12px;
    position: relative;
    z-index: 1100;
    border-bottom: none !important;
    box-shadow: none !important;
}

.mini-grid-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mini-slider-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8.5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding: 4px 2px 10px 2px !important;
    box-sizing: border-box !important;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mini-slider-row::-webkit-scrollbar {
    display: none !important;
}

.mini-slider-row.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.mini-grid-card {
    flex: 0 0 calc((100% - 17px) / 2.7) !important;
    min-width: 125px !important;
    scroll-snap-align: start !important;
    height: 156px !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.mini-grid-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
}

.mini-grid-card:active {
    transform: scale(0.98) !important;
}

.mini-grid-card.post-ad {
    background-color: #ffffff !important;
}

.mini-grid-card.trending {
    background-color: #ffffff !important;
}

.mini-grid-card .photo-img-wrapper {
    width: 100% !important;
    height: 110px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.mini-grid-card .photo-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.mini-grid-card:hover .photo-img-wrapper img {
    transform: scale(1.06) !important;
}

.mini-grid-card .mini-card-icon {
    width: 100% !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    background-color: #e2e8f0 !important;
}

.mini-grid-card .mini-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

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

.mini-card-name {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0b192c !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding: 4px 6px !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Outfit', sans-serif !important;
}

.mini-grid-card.post-ad .mini-card-name {
    color: #e01a22 !important;
    font-weight: 800 !important;
}

.mini-grid-card.trending .mini-card-name {
    color: #0b192c !important;
    font-weight: 800 !important;
}

@media (max-width: 600px) {
    .top-red-mini-strip {
        padding: 6px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .mini-grid-container {
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .mini-slider-row {
        gap: 8px !important;
        padding: 2px 2px 8px 2px !important;
    }
    .mini-grid-card {
        flex: 0 0 calc((100% - 16px) / 2.7) !important;
        min-width: 115px !important;
        height: 152px !important;
        border-radius: 18px !important;
        border: 2px solid #000000 !important;
    }
    .mini-grid-card .photo-img-wrapper,
    .mini-grid-card .mini-card-icon {
        height: 106px !important;
    }
    .mini-card-name {
        font-size: 13px !important;
        font-weight: 800 !important;
        height: 42px !important;
        padding: 4px 4px !important;
    }
}

/* Top 4 Action Cards Header Strip Custom Styling */
.top-four-actions-strip {
    background-color: var(--primary-red, #e01a22) !important;
    padding: 10px 16px !important;
    min-height: auto !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.top-four-actions-strip .mini-grid-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 !important;
    min-height: auto !important;
}

.top-red-hero-banner {
    width: 100% !important;
    padding: 6px 0 12px 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.top-red-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(16px, 4.2vw, 24px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    margin: 0 !important;
    padding: 0 4px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    .top-four-actions-strip {
        padding: 10px 10px 10px 10px !important;
        min-height: auto !important;
    }
    .top-red-hero-banner {
        padding: 4px 0 10px 0 !important;
    }
    .top-red-hero-title {
        font-size: clamp(13.5px, 4.5vw, 17px) !important;
        padding: 0 2px !important;
    }
}

.top-actions-slider-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.top-actions-slider-row .mini-grid-card,
.top-actions-slider-row .mini-grid-card.post-ad,
.top-actions-slider-row .mini-grid-card.trending,
.top-actions-slider-row .top-action-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 52px !important;
    border-radius: 10px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    cursor: pointer !important;
}

.top-actions-slider-row .mini-grid-card:hover,
.top-actions-slider-row .top-action-card:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
    transform: translateY(-2px) !important;
}

.top-actions-slider-row .mini-card-icon,
.top-actions-slider-row .top-action-icon {
    width: 28px !important;
    height: 28px !important;
    margin: 0 0 3px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    color: #ffffff !important;
}

.top-actions-slider-row .mini-card-icon svg,
.top-actions-slider-row .top-action-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    display: block !important;
}

.top-actions-slider-row .mini-card-icon svg path,
.top-actions-slider-row .mini-card-icon svg circle,
.top-actions-slider-row .mini-card-icon svg line,
.top-actions-slider-row .mini-card-icon svg polyline,
.top-actions-slider-row .top-action-icon svg path,
.top-actions-slider-row .top-action-icon svg circle,
.top-actions-slider-row .top-action-icon svg line,
.top-actions-slider-row .top-action-icon svg polyline {
    stroke: #ffffff !important;
}

.top-actions-slider-row .mini-card-name,
.top-actions-slider-row .top-action-name,
.top-actions-slider-row .top-postad-card .mini-card-name,
.top-actions-slider-row .top-profile-card .mini-card-name,
.top-actions-slider-row .top-signup-card .mini-card-name,
.top-actions-slider-row .top-login-card .mini-card-name {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-shadow: none !important;
}

@media (max-width: 600px) {
    .top-actions-slider-row .mini-grid-card,
    .top-actions-slider-row .mini-grid-card.post-ad,
    .top-actions-slider-row .mini-grid-card.trending,
    .top-actions-slider-row .top-action-card {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 48px !important;
        border-radius: 8px !important;
        border: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    .top-actions-slider-row .mini-card-icon,
    .top-actions-slider-row .top-action-icon {
        width: 26px !important;
        height: 26px !important;
        background: transparent !important;
        background-color: transparent !important;
    }
    .top-actions-slider-row .mini-card-name,
    .top-actions-slider-row .top-action-name {
        font-size: 11px !important;
        font-weight: 700 !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #ffffff !important;
    }
}

/* ==========================================================================
   STRICT LOCKDOWN: INLINE / MINIMIZED MODE VS FULLSCREEN MODE
   ========================================================================== */

/* 🔒 1. Locked Non-Fullscreen Mode: Show Minimized Main Video Player in Website Mode */
html:not(.is-fullscreen) {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

body:not(.is-fullscreen) {
  background-color: #fbf9f9 !important;
  background: #fbf9f9 !important;
  color: #1b2a32 !important;
}

html:not(.is-fullscreen) .fullscreen-player-container,
body:not(.is-fullscreen) .fullscreen-player-container {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html:not(.is-fullscreen) #homepage-video-wrapper,
body:not(.is-fullscreen) #homepage-video-wrapper,
#homepage-video-wrapper:not(.is-fullscreen) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 520px !important;
  background: #000000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  cursor: pointer !important;
  z-index: 10 !important;
}

#homepage-video-wrapper:not(.is-fullscreen) #player {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

#homepage-video-wrapper:not(.is-fullscreen) video:not(.ambient-video-bg) {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  background-color: transparent !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

/* Ambient Blurred Live Video Background */
.ambient-video-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: blur(28px) brightness(0.65) saturate(1.6) !important;
  transform: scale(1.35) !important;
  opacity: 0.45 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
  background: transparent !important;
  background-color: transparent !important;
}

.ambient-backdrop-poster {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(28px) brightness(0.65) saturate(1.6) !important;
  transform: scale(1.35) !important;
  opacity: 0.4 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
  transition: opacity 0.4s ease !important;
}

#homepage-video-wrapper.is-fullscreen .ambient-video-bg,
#homepage-video-wrapper.is-fullscreen .ambient-backdrop-poster {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================================================
   BROWSER (NON-FULLSCREEN) MODE vs FULLSCREEN MODE
   ========================================================================== */
body:not(.is-fullscreen) #homepage-video-wrapper,
html:not(.is-fullscreen) #homepage-video-wrapper {
  display: none !important;
  pointer-events: none !important;
}

body.is-fullscreen #youtube-showcase-section,
html.is-fullscreen #youtube-showcase-section {
  display: none !important;
  pointer-events: none !important;
}

body:not(.is-fullscreen) #youtube-showcase-section,
html:not(.is-fullscreen) #youtube-showcase-section {
  display: block !important;
}

/* ==========================================================================
   YOUTUBE SHOWCASE PLAYER (FULL-WIDTH STRETCHED WITH TOP & BOTTOM BLACK BARS)
   ========================================================================== */
.youtube-player-section {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  overflow: hidden !important;
}

.youtube-player-card {
  position: relative !important;
  width: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000000 !important;
  box-shadow: none !important;
  border: none !important;
  /* Solid black bars on top and bottom matching reference image */
  border-top: 14px solid #000000 !important;
  border-bottom: 14px solid #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.youtube-embed-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 560px !important;
  background: #000000 !important;
  overflow: hidden !important;
}

.youtube-embed-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}

/* Nav Buttons (Left & Right Arrows: 5s Auto-Fade & Click-to-Reveal) */
.yt-nav-btn {
  position: absolute !important;
  top: 38% !important;
  transform: translateY(-50%) !important;
  z-index: 99999 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.25s ease, background 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
  padding: 0 !important;
  outline: none !important;
}

.yt-nav-btn svg {
  display: block !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.yt-prev-btn {
  left: 12px !important;
}

.yt-next-btn {
  right: 12px !important;
}

.yt-nav-btn:hover {
  background: #e01a22 !important;
  border-color: #ffffff !important;
  transform: translateY(-50%) scale(1.12) !important;
  box-shadow: 0 6px 20px rgba(224, 26, 34, 0.6) !important;
}

.yt-nav-btn:active {
  transform: translateY(-50%) scale(0.92) !important;
}

/* 🔒 5-Second Inactivity Hidden State */
.youtube-player-section.yt-arrows-hidden .yt-nav-btn,
.youtube-player-card.yt-arrows-hidden .yt-nav-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.85) !important;
}

/* Tap surface: Captures clicks on player when arrows are hidden to reveal them */
.yt-tap-surface {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 80 !important;
  background: transparent !important;
  cursor: pointer !important;
  pointer-events: none !important;
}

.youtube-player-card.yt-arrows-hidden .yt-tap-surface,
.youtube-player-section.yt-arrows-hidden .yt-tap-surface {
  pointer-events: auto !important;
}

@media (max-width: 600px) {
  .youtube-player-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .youtube-player-card {
    border-top: 12px solid #000000 !important;
    border-bottom: 12px solid #000000 !important;
  }
  .yt-nav-btn {
    top: 36% !important;
    width: 38px !important;
    height: 38px !important;
  }
  .yt-prev-btn { left: 8px !important; }
  .yt-next-btn { right: 8px !important; }
}

/* ⭐ YouTube-Style Featured Showcase Section Styles (Non-Fullscreen Website Mode) */
.yt-showcase-container {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin: 6px 0 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .yt-showcase-container {
    padding: 0 0 14px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 0 14px 0;
    box-shadow: none;
    border-top: none;
  }
}

.yt-player-layout {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.yt-player-main {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 16:9 Video Canvas Wrapper */
.yt-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  user-select: none;
  -webkit-user-select: none;
}

/* Left & Right Switcher Arrow Buttons */
.yt-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.yt-nav-arrow:hover {
  background: rgba(224, 26, 34, 0.95);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.12);
}

.yt-nav-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.yt-nav-prev {
  left: 14px;
}

.yt-nav-next {
  right: 14px;
}

@media (max-width: 860px) {
  .yt-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .yt-nav-prev {
    left: 8px;
  }
  .yt-nav-next {
    right: 8px;
  }
}

@media (max-width: 860px) {
  .yt-video-wrapper {
    border-radius: 0;
    box-shadow: none;
  }
}

.yt-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000000;
}

/* YouTube Interactive Controls Overlay */
.yt-controls-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.yt-controls-overlay.yt-idle {
  opacity: 0;
}

.yt-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.yt-badge-pill {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 6px #ff0000;
}

.yt-badge-text {
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.yt-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-control-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.yt-control-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}

.yt-center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, opacity 0.2s ease;
  pointer-events: auto;
}

.yt-center-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: #e01a22;
  border-color: #ffffff;
}

.yt-bottom-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  pointer-events: auto;
}

.yt-progress-container {
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.yt-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.yt-progress-container:hover .yt-progress-bar {
  height: 5px;
}

.yt-progress-scrubber {
  height: 100%;
  width: 0%;
  background: #ff0000;
  position: relative;
  border-radius: 2px;
}

.yt-progress-scrubber::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff0000;
  transition: transform 0.15s ease;
}

.yt-progress-container:hover .yt-progress-scrubber::after {
  transform: translateY(-50%) scale(1);
}

.yt-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-left-ctrls,
.yt-right-ctrls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-inline-play {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.yt-time-display {
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Video Metadata Section (Below Player) */
.yt-meta-section {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 860px) {
  .yt-meta-section {
    padding: 12px 14px 0 14px;
  }
}

.yt-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.yt-video-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f0f0f;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  flex: 1;
}

.yt-price-tag {
  font-size: 15.5px;
  font-weight: 800;
  color: #e01a22;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

/* YouTube Pill Action Buttons */
.yt-action-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.yt-action-buttons-row::-webkit-scrollbar {
  display: none;
}

.yt-pill-btn {
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0f0f0f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.yt-pill-btn:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.yt-pill-btn.yt-primary-pill {
  background: #0f0f0f;
  color: #ffffff;
  border-color: #0f0f0f;
}

.yt-pill-btn.yt-primary-pill:hover {
  background: #272727;
}

.yt-pill-btn.yt-whatsapp-pill {
  background: #e8f9ee;
  color: #128c7e;
  border-color: #c4eed3;
}

.yt-pill-btn.yt-whatsapp-pill:hover {
  background: #d2f4dc;
}

/* Channel / Seller Card */
.yt-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 8px;
}

.yt-channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #e5e7eb;
}

.yt-channel-info {
  flex: 1;
  min-width: 0;
}

.yt-channel-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.yt-channel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f0f0f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-verified-badge {
  color: #007aff;
  font-size: 12px;
  flex-shrink: 0;
}

.yt-channel-subs {
  font-size: 11.5px;
  color: #606060;
  display: block;
  margin-top: 1px;
}

.yt-channel-action-btn {
  background: #0f0f0f;
  color: #ffffff;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.yt-channel-action-btn:hover {
  background: #e01a22;
}

/* Right / Bottom: YouTube Playlist Shelf */
.yt-playlist-sidebar {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 860px) {
  .yt-playlist-sidebar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 10px 14px;
    background: #fafafa;
  }
}

.yt-playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.yt-playlist-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f0f0f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-promote-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #e01a22;
  text-decoration: none;
}

.yt-playlist-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (max-width: 860px) {
  .yt-playlist-slider {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
}

.yt-playlist-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .yt-playlist-item {
    width: 220px;
    flex-direction: column;
    padding: 6px;
    scroll-snap-align: start;
  }
}

.yt-playlist-item:hover,
.yt-playlist-item.active {
  border-color: #e01a22;
  background: #fff8f8;
  transform: translateY(-1px);
}

.yt-thumb-wrap {
  width: 95px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #000;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .yt-thumb-wrap {
    width: 100%;
    border-radius: 8px;
  }
}

.yt-playlist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-duration-tag {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
}

.yt-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f0f0f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-item-price {
  font-size: 11.5px;
  font-weight: 800;
  color: #e01a22;
  margin-top: 3px;
}

.yt-item-seller {
  font-size: 10.5px;
  color: #606060;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 📱 2. Fullscreen Portrait Overlay on iPhone & all devices */
html.is-fullscreen,
body.is-fullscreen {
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  height: -webkit-fill-available !important;
  background: #000000 !important;
  touch-action: none !important;
}

#homepage-video-wrapper:fullscreen,
#homepage-video-wrapper:-webkit-full-screen,
#homepage-video-wrapper.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  height: -webkit-fill-available !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  z-index: 999999 !important;
  background: #000000 !important;
  overflow: hidden !important;
  touch-action: none !important;
}

#homepage-video-wrapper:fullscreen #player,
#homepage-video-wrapper:-webkit-full-screen #player,
#homepage-video-wrapper.is-fullscreen #player {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  height: -webkit-fill-available !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  overflow: hidden !important;
  touch-action: none !important;
}

#homepage-video-wrapper:fullscreen video,
#homepage-video-wrapper:-webkit-full-screen video,
#homepage-video-wrapper.is-fullscreen video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  height: -webkit-fill-available !important;
  object-fit: cover !important;
  object-position: center !important;
  pointer-events: auto !important;
  background: #000000 !important;
}

#homepage-video-wrapper:fullscreen .video-center-fullscreen-btn,
#homepage-video-wrapper:-webkit-full-screen .video-center-fullscreen-btn,
#homepage-video-wrapper.is-fullscreen .video-center-fullscreen-btn {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 🌟 Guaranteed Fullscreen Display for Bottom Category Bar & Side Controls */
#homepage-video-wrapper.is-fullscreen #bottomNavBar,
#homepage-video-wrapper:fullscreen #bottomNavBar,
#homepage-video-wrapper:-webkit-full-screen #bottomNavBar {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 2005 !important;
  padding: 10px calc(12px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)) !important;
}

#homepage-video-wrapper.is-fullscreen #controls,
#homepage-video-wrapper:fullscreen #controls,
#homepage-video-wrapper:-webkit-full-screen #controls {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  position: absolute !important;
  right: calc(14px + env(safe-area-inset-right)) !important;
  bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  gap: 16px !important;
  z-index: 2010 !important;
}

/* 🌟 Guaranteed Fullscreen Display for TikTok Product Title, Price & Check Details Overlay */
#homepage-video-wrapper.is-fullscreen #videoInfo,
#homepage-video-wrapper:fullscreen #videoInfo,
#homepage-video-wrapper:-webkit-full-screen #videoInfo {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  position: absolute !important;
  left: calc(14px + env(safe-area-inset-left)) !important;
  bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  max-width: calc(100% - 95px) !important;
  z-index: 2010 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  color: #ffffff !important;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease !important;
}

#videoInfo.hud-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(15px) !important;
  pointer-events: none !important;
}

.tiktok-overlay-title {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.75) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease !important;
}

.tiktok-overlay-title:hover {
  opacity: 0.9 !important;
  text-decoration: underline !important;
}

.tiktok-overlay-price-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.tiktok-overlay-price {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: -0.2px !important;
}

.tiktok-check-details-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 4px 10px !important;
  border-radius: 16px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease !important;
}

.tiktok-check-details-btn i {
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
}

.tiktok-check-details-btn:hover {
  background: rgba(224, 26, 34, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.tiktok-check-details-btn:hover i {
  transform: translateX(2px) !important;
}

.tiktok-check-details-btn:active {
  transform: scale(0.94) !important;
  background: rgba(224, 26, 34, 1) !important;
}

/* =======================================================
   🔍 FULL-SCREEN TIKTOK STYLE SEARCH OVERLAY (FROM FLOAT)
   ======================================================= */
#searchOverlayPanel {
  position: fixed !important;
  inset: 0 !important;
  background: #ffffff !important;
  color: #161823 !important;
  z-index: 10000005 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, "Outfit", "Segoe UI", Roboto, sans-serif !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
}

#searchOverlayPanel.hidden-search-panel {
  transform: translateY(35px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.search-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-bottom: 0.5px solid #eaeaea !important;
  box-sizing: border-box !important;
}

.search-hdr-btn {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  color: #161823 !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.15s ease !important;
}

.search-hdr-btn:active {
  opacity: 0.6 !important;
}

.search-hdr-btn.submit-btn {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--primary-red, #e01a22) !important;
  padding: 6px 4px !important;
}

.search-input-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  background: #f1f1f2 !important;
  border-radius: 20px !important;
  padding: 8px 14px !important;
  gap: 8px !important;
  border: 1.5px solid transparent !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.search-input-wrap:focus-within {
  background: #ffffff !important;
  border-color: rgba(224, 26, 34, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(224, 26, 34, 0.1) !important;
}

.search-input-icon {
  color: #8a8b90 !important;
  font-size: 14px !important;
}

.search-input-wrap input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px !important;
  color: #161823 !important;
  font-family: inherit !important;
  padding: 0 !important;
}

.search-input-wrap input::placeholder {
  color: #8a8b90 !important;
}

#searchClearBtn {
  background: transparent !important;
  border: none !important;
  font-size: 16px !important;
  color: #8a8b90 !important;
  cursor: pointer !important;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

#searchClearBtn:hover {
  color: #161823 !important;
}

#searchClearBtn.hidden {
  display: none !important;
}

.search-content {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #ffffff !important;
}

/* Suggestions view */
#searchSuggestionsView {
  padding: 20px 16px !important;
}

.suggestion-section {
  display: flex !important;
  flex-direction: column !important;
}

.suggestion-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #161823 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.3px !important;
}

.suggestion-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  padding: 4px 0 12px 0 !important;
  border-bottom: 0.5px solid #f2f2f2 !important;
  transition: background-color 0.15s ease !important;
}

.suggestion-item:active {
  opacity: 0.5 !important;
}

.suggestion-item .bullet {
  color: var(--primary-red, #e01a22) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.suggestion-item .suggestion-text {
  font-size: 15px !important;
  color: #161823 !important;
  font-weight: 500 !important;
}

/* Results view */
#searchResultsView {
  padding: 12px 10px 60px 10px !important;
  animation: fadeIn 0.3s ease !important;
}

#searchResultsView.hidden-results {
  display: none !important;
}

.results-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.thumbnail-card {
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #eeeeee !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.thumbnail-card:active {
  transform: scale(0.97) !important;
}

.thumbnail-card-media {
  position: relative !important;
  width: 100% !important;
  padding-top: 130% !important; /* 4:5.2 aspect ratio */
  background: #000000 !important;
  overflow: hidden !important;
}

.thumbnail-card-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

.thumbnail-card:hover .thumbnail-card-media img {
  transform: scale(1.04) !important;
}

.thumbnail-card-play-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.25) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.thumbnail-card:hover .thumbnail-card-play-overlay {
  opacity: 1 !important;
}

.thumbnail-card-play-overlay i {
  color: #ffffff !important;
  font-size: 28px !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)) !important;
}

.thumbnail-card-info {
  padding: 8px 10px 10px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.thumbnail-card-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #161823 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.thumbnail-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  color: #8a8b90 !important;
  margin: 0 !important;
}

.thumbnail-card-meta i {
  font-size: 10px !important;
  color: var(--primary-red, #e01a22) !important;
}

/* ==========================================================================
   eBay Pill Chips Slider Layout (Layout 2)
   ========================================================================== */
.ebay-pill-slider-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8.5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding: 6px 2px 8px 2px !important;
    box-sizing: border-box !important;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ebay-pill-slider-row::-webkit-scrollbar {
    display: none !important;
}

.ebay-pill-slider-row.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.ebay-pill-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 18px !important;
    height: 38px !important;
    border-radius: 9999px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #191919 !important;
    color: #191919 !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    cursor: pointer !important;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.ebay-pill-card:hover {
    background-color: #f7f7f7 !important;
    border-color: #000000 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.ebay-pill-card:active {
    transform: scale(0.97) !important;
    background-color: #efefef !important;
}

.ebay-live-dot {
    display: inline-block !important;
    width: 7.5px !important;
    height: 7.5px !important;
    background-color: #10b981 !important;
    border-radius: 50% !important;
    margin-right: 7px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.25) !important;
    animation: ebayDotPulse 1.8s infinite ease-in-out !important;
}

@keyframes ebayDotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.65;
    }
}

.ebay-pill-text {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: inherit !important;
    line-height: 1 !important;
    letter-spacing: -0.1px !important;
}

/* Layout 3: Dark Neon Pill Chips */
.ebay-pill-card.dark-neon {
    background-color: #13131c !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}
.ebay-pill-card.dark-neon .ebay-pill-text {
    color: #ffffff !important;
}
.ebay-pill-card.dark-neon:hover {
    background-color: #1e1e2d !important;
    border-color: var(--primary-red, #e01a22) !important;
    box-shadow: 0 4px 12px rgba(224, 26, 34, 0.25) !important;
}

/* Layout 4: Red Accent Pill Chips */
.ebay-pill-card.red-accent {
    background-color: #ffffff !important;
    border: 1.5px solid var(--primary-red, #e01a22) !important;
    color: var(--primary-red, #e01a22) !important;
}
.ebay-pill-card.red-accent .ebay-pill-text {
    color: var(--primary-red, #e01a22) !important;
    font-weight: 700 !important;
}
.ebay-pill-card.red-accent:hover {
    background-color: #fff5f5 !important;
    box-shadow: 0 4px 10px rgba(224, 26, 34, 0.15) !important;
}

@media (max-width: 600px) {
    .ebay-pill-card {
        padding: 7px 15px !important;
        height: 35px !important;
        font-size: 13px !important;
    }
    .ebay-pill-text {
        font-size: 12.5px !important;
    }
    .ebay-pill-slider-row {
        gap: 7px !important;
        padding: 4px 2px 6px 2px !important;
    }
}

/* =========================================================
   eBay Live Style Category Cards Slider (eBay Cards Layout)
   ========================================================= */
.ebay-cards-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 14px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.ebay-cards-slider-row::-webkit-scrollbar {
    display: none;
}

.ebay-live-card {
    flex: 0 0 135px;
    width: 135px;
    min-width: 135px;
    height: 135px;
    background-color: #ffffff;
    border: 1.2px solid #707070;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    scroll-snap-align: start;
}

.ebay-live-card:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    border-color: #222222;
}

.ebay-live-card:active {
    transform: scale(0.96);
}

/* First Featured Card: Solid Black background (Bajaj) */
.ebay-live-card.featured-black-card {
    background-color: #000000 !important;
    border: 1.2px solid #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.ebay-live-card.featured-black-card:hover {
    background-color: #111111 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) !important;
}

.ebay-card-icon-wrap {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.ebay-card-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ebay-card-icon-wrap .ebay-card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.ebay-card-icon-wrap i {
    font-size: 28px;
    color: #111111;
}

.ebay-live-card.featured-black-card .ebay-card-icon-wrap i {
    color: #ffffff;
}

.ebay-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.15px;
    padding: 0 4px;
}

.ebay-live-card.featured-black-card .ebay-card-title {
    color: #ffffff !important;
    font-weight: 700;
}

@media (max-width: 600px) {
    .ebay-cards-slider-row {
        gap: 10px;
        padding: 6px 4px 12px 4px;
    }
    .ebay-live-card {
        flex: 0 0 calc((100% - 20px) / 3);
        width: calc((100% - 20px) / 3);
        min-width: 102px;
        max-width: 130px;
        height: 118px;
        border-radius: 18px;
        padding: 8px 5px;
        border-width: 1px;
    }
    .ebay-card-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }
    .ebay-card-icon-wrap i {
        font-size: 24px;
    }
    .ebay-card-title {
        font-size: 12px;
        line-height: 1.18;
    }
}

/* Mobile Category Grid - eBay Live Style */
.mobile-categories-grid.style-ebay-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    gap: 10px !important;
    padding: 6px 2px 14px 2px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory !important;
}
.mobile-categories-grid.style-ebay-cards::-webkit-scrollbar {
    display: none;
}
.mobile-categories-grid.style-ebay-cards.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-card {
    flex: 0 0 calc((100% - 20px) / 3) !important;
    width: calc((100% - 20px) / 3) !important;
    min-width: 102px !important;
    max-width: 130px !important;
    height: 118px !important;
    background-color: #ffffff !important;
    border: 1px solid #707070 !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 5px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    scroll-snap-align: start !important;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
    border-color: #222222 !important;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-card.featured-black-card {
    background-color: #000000 !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-card.featured-black-card:hover {
    background-color: #111111 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) !important;
}
.mobile-categories-grid.style-ebay-cards .ebay-card-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
}
.mobile-categories-grid.style-ebay-cards .ebay-card-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.mobile-categories-grid.style-ebay-cards .ebay-card-icon-wrap .ebay-card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    text-align: center !important;
    line-height: 1.18 !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    letter-spacing: -0.15px !important;
    padding: 0 !important;
}
.mobile-categories-grid.style-ebay-cards .mobile-category-card.featured-black-card .mobile-category-name {
    color: #ffffff !important;
    font-weight: 700 !important;
}

@media (max-width: 600px) {
    .mobile-categories-grid.style-ebay-cards {
        gap: 10px !important;
        padding: 6px 4px 12px 4px !important;
    }
    .mobile-categories-grid.style-ebay-cards .mobile-category-card {
        flex: 0 0 calc((100% - 20px) / 3) !important;
        width: calc((100% - 20px) / 3) !important;
        min-width: 102px !important;
        max-width: 130px !important;
        height: 118px !important;
        border-radius: 18px !important;
        padding: 8px 5px !important;
    }
    .mobile-categories-grid.style-ebay-cards .ebay-card-icon-wrap {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 6px !important;
    }
    .mobile-categories-grid.style-ebay-cards .ebay-card-icon-wrap i {
        font-size: 24px !important;
    }
    .mobile-categories-grid.style-ebay-cards .mobile-category-name {
        font-size: 12px !important;
        line-height: 1.18 !important;
    }
}


