/* --- Hide ALL browser progress bars and loading indicators --- */
::-webkit-progress-bar,
::-webkit-progress-value,
::-moz-progress-bar,
progress,
progress[value],
.navbar progress,
nav progress,
body > progress,
html > progress,
header progress,
.navbar::before,
.navbar::after,
nav::before,
nav::after,
.navbar .progress,
nav .progress,
body::before,
body::after,
html::before,
html::after,
.navbar + *,
* + .navbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    content: none !important;
}

/* Hide browser progress bars on mobile specifically */
@media (max-width: 768px) {
    /* Hide any progress elements */
    progress,
    progress[value],
    ::-webkit-progress-bar,
    ::-webkit-progress-value,
    ::-moz-progress-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: fixed !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    
    /* Hide progress bars above and below navbar */
    .navbar::before,
    .navbar::after,
    nav::before,
    nav::after,
    body > .navbar::before,
    body > .navbar::after,
    .navbar + progress,
    progress + .navbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        content: none !important;
        background: none !important;
    }
    
    /* Hide any loading bars near navbar */
    .navbar ~ progress,
    progress ~ .navbar,
    .sticky-top::before,
    .sticky-top::after {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* TWA/WebView specific: Hide ALL progress indicators */
body[data-twa="true"],
html[data-twa="true"],
body[data-webview="true"],
html[data-webview="true"] {
    overflow-x: hidden;
}

body[data-twa="true"] progress,
html[data-twa="true"] progress,
body[data-webview="true"] progress,
html[data-webview="true"] progress,
body[data-twa="true"]::before,
body[data-twa="true"]::after,
html[data-twa="true"]::before,
html[data-twa="true"]::after,
body[data-twa="true"] .navbar::before,
body[data-twa="true"] .navbar::after,
html[data-twa="true"] nav::before,
html[data-twa="true"] nav::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    content: none !important;
    background: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* --- Mobile tap/press visual cleanup (hamburger and nav) --- */
html, body, a, button, .navbar-toggler, .nav-link {
	-webkit-tap-highlight-color: transparent;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.navbar .nav-link:active,
.dropdown-item:active {
	background-color: transparent !important;
}

/* Optional: uncomment to remove offcanvas backdrop dim
.offcanvas-backdrop.show {
	opacity: 0 !important;
}
*/


/* Tigule Marketplace - Custom Styles */

/* Force light mode across browsers (prevents auto dark-mode) */
html {
    color-scheme: light;
}



:root {
    /* Malawi Flag Colors */
    --primary-color: #C8102E;      /* Red */
    --secondary-color: #000000;     /* Black */
    --accent-color: #007A3D;       /* Green */
    --warning-color: #FFD700;       /* Gold */
    
    /* Additional Colors */
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* Font Display Optimization - Prevent invisible text */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

/* ========================================
   LOGO LOADING STATE ANIMATIONS
   ======================================== */

/* Page Loader - Full Screen */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ensure loader is completely hidden when removed */
#page-loader.hidden,
#page-loader[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Progress bars removed - only logo loader remains */
.loader-progress {
    display: none !important;
    visibility: hidden !important;
}

#page-loader .loader-progress,
#page-loader.hidden .loader-progress,
#page-loader[style*="display: none"] .loader-progress {
    display: none !important;
    visibility: hidden !important;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logo Container */
.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

/* Logo Image */
.loader-logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0) saturate(100%) invert(24%) sepia(94%) saturate(3089%) hue-rotate(341deg) brightness(85%) contrast(96%);
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* Spinning Ring Around Logo */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-top-color: var(--accent-color);
    border-right-color: var(--warning-color);
    animation-duration: 2s;
    animation-direction: reverse;
}

/* Mobile - Thinner rings */
@media (max-width: 576px) {
    .loader-ring {
        border-width: 3px;
    }
}

@media (max-width: 400px) {
    .loader-ring {
        border-width: 2px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Loading Progress Bar - REMOVED (only logo loader remains) */
.loader-progress {
    display: none !important;
    visibility: hidden !important;
    width: 0;
    height: 0;
    overflow: hidden;
}

.loader-progress-bar {
    display: none !important;
    visibility: hidden !important;
}

@keyframes progressMove {
    /* Animation removed - progress bar no longer used */
}

/* Content Loader - Inline */
.content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.content-loader-logo {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(94%) saturate(3089%) hue-rotate(341deg) brightness(85%) contrast(96%);
    animation: logoSpin 2s linear infinite, logoScale 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoScale {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Small Inline Loader */
.inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.inline-loader-logo {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(94%) saturate(3089%) hue-rotate(341deg) brightness(85%) contrast(96%);
    animation: logoSpin 1.5s linear infinite;
}

/* Button Loader */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loader with Logo Pulse */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 2s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loader-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .loader-logo {
        width: 50px;
        height: 50px;
    }
    
    .loader-text {
        font-size: 0.95rem;
    }
    
    /* Progress bar removed */
    .loader-progress {
        display: none !important;
        visibility: hidden !important;
    }
    
    .content-loader-logo {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .loader-logo-container {
        width: 70px;
        height: 70px;
    }
    
    .loader-logo {
        width: 40px;
        height: 40px;
    }
    
    .loader-text {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Progress bar removed - only logo loader */
    .loader-progress {
        display: none !important;
        visibility: hidden !important;
    }
    
    .loader-progress-bar {
        display: none !important;
        visibility: hidden !important;
    }
    
    .content-loader {
        padding: 40px 20px;
        min-height: 200px;
    }
    
    .content-loader-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .loader-logo-container {
        width: 60px;
        height: 60px;
    }
    
    .loader-logo {
        width: 35px;
        height: 35px;
    }
    
    .loader-text {
        font-size: 0.8rem;
    }
    
    /* Progress bar removed */
    .loader-progress {
        display: none !important;
        visibility: hidden !important;
    }
    
    .content-loader-logo {
        width: 35px;
        height: 35px;
    }
}

/* Global Styles */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Hero Title */
.hero-title {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a00d25;
    border-color: #a00d25;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Home CTA buttons: make "View All Listings" and "View All Shops" transparent with red text/border */
main a.btn[href="/marketplace/"],
main a.btn[href="/shops/"] {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: none !important;
    font-weight: 600;
}

main a.btn[href="/marketplace/"]:hover,
main a.btn[href="/shops/"]:hover,
main a.btn[href="/marketplace/"]:focus,
main a.btn[href="/shops/"]:focus,
main a.btn[href="/marketplace/"]:active,
main a.btn[href="/shops/"]:active {
    background-color: var(--primary-color) !important; /* solid red */
    color: #ffffff !important; /* white text */
    border-color: var(--primary-color) !important;
}

/* Keep both buttons on one row on small screens */
@media (max-width: 576px) {
    main a.btn[href="/marketplace/"],
    main a.btn[href="/shops/"] {
        display: inline-block !important;
        width: calc(50% - 0.5rem) !important;
        margin: 0 0.25rem 0.75rem 0.25rem !important;
        padding: 0.6rem 0.5rem !important;
        text-align: center !important;
        white-space: nowrap;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(200, 16, 46, 0.1) 0%, 
        rgba(0, 122, 61, 0.1) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 16, 46, 0.2);
}

.hero-icon-container {
    position: relative;
    display: inline-block;
}

.hero-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(200, 16, 46, 0.2) 0%, 
        rgba(0, 122, 61, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(200, 16, 46, 0.3);
    box-shadow: 
        0 8px 32px rgba(200, 16, 46, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(200, 16, 46, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Hero Icon */
@media (max-width: 992px) {
    .hero-icon {
        width: 160px;
        height: 160px;
    }
    
    .hero-icon i {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .hero-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .hero-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .hero-icon i {
        font-size: 2rem;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}

@media (max-width: 400px) {
    .hero-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 0.75rem;
    }
    
    .hero-icon i {
        font-size: 1.6rem;
    }
    
    .hero-section .btn {
        max-width: 260px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
}

/* Responsive Hero Subtitle - Match "Find exactly what you're looking for" size */
@media (max-width: 768px) {
    .hero-section .lead {
        font-size: 0.875rem;
        line-height: 1.5;
        font-weight: 400;
    }
}

@media (max-width: 576px) {
    .hero-section .lead {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 1.5rem !important;
        font-weight: 400;
    }
}

@media (max-width: 400px) {
    .hero-section .lead {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 1.25rem !important;
        font-weight: 400;
    }
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(200, 16, 46, 0.08) 0%, 
        rgba(0, 122, 61, 0.08) 50%, 
        rgba(255, 215, 0, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(200, 16, 46, 0.15);
    border-bottom: 1px solid rgba(200, 16, 46, 0.15);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 16, 46, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Modern Dropdown Styling */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    animation: dropdownFadeIn 0.3s ease-out;
    transform-origin: top;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.125rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(0, 122, 61, 0.1));
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .dropdown-item:hover::before {
    left: 0;
}

.navbar-nav .dropdown-item:hover {
    color: var(--primary-color);
    background: transparent;
    transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-item:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(200, 16, 46, 0.2);
    border-width: 1px;
}

/* Dropdown Toggle Styling */
.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    border-top-color: var(--medium-gray);
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: var(--primary-color);
}

.navbar-nav .dropdown-toggle:hover::after {
    border-top-color: var(--primary-color);
}

/* Account dropdown specific styling */
.navbar-nav .dropdown-item[href*="logout"] {
    color: #dc3545;
    font-weight: 600;
}

.navbar-nav .dropdown-item[href*="logout"]:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.1);
}

.navbar-nav .dropdown-item[href*="logout"] i {
    color: #dc3545;
}

/* Sell dropdown specific styling */
.navbar-nav .dropdown-item[href*="create_listing"] {
    color: var(--accent-color);
}

.navbar-nav .dropdown-item[href*="create_listing"]:hover {
    color: #005a2c;
}

.navbar-nav .dropdown-item[href*="create_listing"] i {
    color: var(--accent-color);
}

.navbar-nav .dropdown-item[href*="create_shop"] {
    color: var(--primary-color);
}

.navbar-nav .dropdown-item[href*="create_shop"]:hover {
    color: #a00d25;
}

.navbar-nav .dropdown-item[href*="create_shop"] i {
    color: var(--primary-color);
}

/* Navbar adjustments for 1200px-1398px - hamburger menu with desktop-style dropdowns */
@media (min-width: 1200px) and (max-width: 1398px) {
    /* Force hamburger menu to show */
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Hamburger menu layout (mobile-style) */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(200, 16, 46, 0.1);
    }
    
    .navbar-collapse .d-flex {
        margin-bottom: 1rem;
        max-width: 100% !important;
        width: 100%;
    }
    
    .navbar-collapse .input-group {
        width: 100%;
    }
    
    /* BUT: Use desktop-style dropdowns (same as 1399px+) */
    .navbar-nav .dropdown-menu {
        margin-top: 0.125rem !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        background: #fff !important;
        border-top: none !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
    }
    
    .navbar-nav .dropdown-item {
        margin: 0.125rem 0.5rem !important;
        border-radius: 8px !important;
        padding: 0.75rem 1.25rem !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        transform: translateX(5px) !important;
        color: var(--primary-color) !important;
        background: transparent !important;
    }
    
    /* Reduce sizes to match 1399px-1400px */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        height: 32px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.65rem !important;
    }
    
    .navbar-nav .nav-link i {
        font-size: 0.9rem !important;
    }
    
    .navbar-nav .btn {
        font-size: 0.9rem !important;
        padding: 0.45rem 0.8rem !important;
    }
    
    .navbar-collapse .input-group .form-control {
        font-size: 0.9rem;
        padding: 0.45rem 0.8rem;
    }
    
    .navbar-collapse .input-group .btn {
        font-size: 0.9rem;
        padding: 0.45rem 0.8rem;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 1199.98px) {
    .navbar-nav .dropdown-menu {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(248, 249, 250, 0.95);
        border-top: 1px solid rgba(200, 16, 46, 0.1);
    }
    
    .navbar-nav .dropdown-item {
        margin: 0.125rem 0;
        border-radius: 0;
    }
    
    .navbar-nav .dropdown-item:hover {
        transform: none;
    }
    
    /* Mobile navbar spacing */
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
        margin-right: 0.5rem;
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-brand {
        margin-right: 0.5rem;
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(200, 16, 46, 0.1);
    }
    
    .navbar-collapse .d-flex {
        margin-bottom: 1rem;
        max-width: 100% !important;
        width: 100%;
    }
    
    .navbar-collapse .input-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        margin-right: 0.25rem;
    }
    
    .navbar-collapse .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .navbar-collapse .btn {
        padding: 0.6rem 0.8rem;
    }
}

/* Mobile Search Form Styling */
@media (max-width: 768px) {
    /* Search form mobile layout */
    .search-form .row {
        margin: 0;
    }
    
    .search-form .col-md-6,
    .search-form .col-md-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .search-form .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Keep dropdown column normal size */
    .search-form .col-md-3:has(.form-select) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Keep button column normal size */
    .search-form .col-md-3:has(.btn) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Form controls mobile styling */
    .search-form .form-control,
    .search-form .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
        border-radius: 0.5rem;
    }
    
    .search-form .form-select {
        /* Ensure select dropdown stays within viewport */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .search-form .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    /* Input group mobile adjustments */
    .search-form .input-group-text {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Stack form elements vertically on very small screens */
    .search-form .col-md-3 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Keep normal sizes for mobile */
    .search-form .col-md-3:has(.form-select) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .search-form .col-md-3:has(.btn) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .search-form .form-control,
    .search-form .form-select {
        font-size: 0.85rem;
        padding: 0.55rem 0.7rem;
    }
    
    .search-form .btn {
        font-size: 0.85rem;
        padding: 0.55rem 0.7rem;
    }
    
    .search-form .input-group-text {
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Fix for select dropdown overflow on mobile */
@media (max-width: 768px) {
    .search-form {
        /* Ensure form container doesn't overflow */
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    .search-form .form-select {
        /* Force dropdown to stay within viewport */
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        
        /* Prevent text overflow */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        
        /* Better mobile touch targets */
        min-height: 44px;
        padding: 0.6rem 2rem 0.6rem 0.75rem;
        
        /* Ensure proper positioning */
        position: relative;
        z-index: 1;
        
        /* Force native mobile behavior */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
    }
    
    /* Style search form dropdown options like navbar dropdown */
    .search-form .form-select option {
        /* Modern navbar-like styling */
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--dark-gray);
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 8px;
        margin: 0.125rem 0.5rem;
        transition: all 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 4rem);
        line-height: 1.4;
        cursor: pointer;
        position: relative;
        
        /* Modern shadow and effects */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    /* Hover effect for dropdown options */
    .search-form .form-select option:hover {
        background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(0, 122, 61, 0.1));
        color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: 0 4px 16px rgba(200, 16, 46, 0.2);
        font-weight: 600;
    }
    
    /* Selected option styling */
    .search-form .form-select option:checked,
    .search-form .form-select option:selected {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        font-weight: 600;
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
    }
    
    /* Additional mobile-specific select styling */
    .search-form .form-select {
        /* Ensure the dropdown popup is constrained */
        max-width: calc(100vw - 2rem) !important;
        font-size: 0.9rem;
    }
    
    /* Target the native dropdown popup */
    .search-form .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
    }
    
    /* Additional container constraints */
    .search-form .col-md-3 {
        max-width: 100% !important;
        overflow: hidden;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Extra constraints for very small screens */
@media (max-width: 576px) {
    .search-form {
        padding: 0 0.5rem;
        margin: 0;
    }
    
    .search-form .form-select {
        width: 100% !important;
        max-width: calc(100vw - 1rem) !important;
        font-size: 0.85rem;
        padding: 0.55rem 1.5rem 0.55rem 0.7rem;
    }
    
    .search-form .col-md-3 {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }
}

/* Force viewport constraints on all mobile devices */
@media (max-width: 768px) {
    .search-form .form-select {
        /* Use viewport units to ensure it never exceeds screen width */
        max-width: calc(100vw - 2rem) !important;
        width: calc(100% - 0.5rem) !important;
    }
    
    /* Mobile dropdown options styling - navbar-like */
    .search-form .form-select option {
        /* Mobile navbar-like styling */
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--dark-gray);
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 6px;
        margin: 0.1rem 0.25rem;
        transition: all 0.25s ease;
        line-height: 1.3;
        max-width: calc(100vw - 6rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        position: relative;
        
        /* Modern shadow and effects */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile hover effects */
    .search-form .form-select option:hover {
        background: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(0, 122, 61, 0.08));
        color: var(--primary-color);
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(200, 16, 46, 0.15);
        font-weight: 600;
    }
    
    /* Mobile selected state */
    .search-form .form-select option:checked,
    .search-form .form-select option:selected {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        transform: translateX(2px);
        box-shadow: 0 3px 12px rgba(200, 16, 46, 0.25);
        font-weight: 600;
    }
    
    /* Ensure dropdown popup stays within screen bounds */
    .search-form .form-select {
        /* Force mobile dropdown to respect viewport */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
    }
}

/* Extra small screens - keep normal sizes but focus on dropdown options */
@media (max-width: 480px) {
    .search-form .col-md-3:has(.form-select) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .search-form .col-md-3:has(.btn) {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Price Display */
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 1rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.badge-featured {
    background-color: var(--warning-color);
    color: var(--secondary-color);
}

.badge-urgent {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-verified {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
}

.form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.form-select:focus {
    z-index: 9999;
    position: relative;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
}

/* Ensure native dropdown appearance */
select.form-select {
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-image: none;
    background-color: white;
}

/* Ensure dropdown options are visible */
select.form-select option {
    background-color: white;
    color: #333;
    padding: 4px 8px;
}

.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d1edff;
    color: var(--accent-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Listing Cards */
.listing-card {
    position: relative;
    overflow: hidden;
}

/* Ensure placeholder icon centers consistently (esp. on mobile) */
.listing-card .card-img-top.bg-light {
    display: flex;
    align-items: center;
    justify-content: center;
}



.listing-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.listing-badges .badge {
    margin: 0;
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-card.promoted {
    border: 2px solid rgba(255, 193, 7, 0.35);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.18);
    position: relative;
}

.listing-card.promoted::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0.75rem;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.25), transparent 55%);
}

.badge-promoted {
    background: linear-gradient(135deg, #ffbf3c 0%, #ff8a00 100%);
    color: #1f1f1f;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.promotion-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff9800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.promotion-meta i {
    font-size: 0.9rem;
}

.btn-promote {
    background: linear-gradient(135deg, #ffbf3c 0%, #ff8a00 100%);
    border: none;
    color: #1f1f1f;
    box-shadow: 0 8px 18px rgba(255, 166, 0, 0.25);
}

.btn-promote:hover,
.btn-promote:focus {
    color: #111;
    box-shadow: 0 12px 22px rgba(255, 166, 0, 0.35);
}

.listing-badges .badge-urgent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    animation: pulse-urgent 2s infinite;
}

/* Discount Badge - Unique styling */
.listing-badges .badge-discount {
    background: linear-gradient(135deg, #FF6B35 0%, #DC3545 100%);
    color: white;
    animation: pulse-discount 2s ease-in-out infinite;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4),
                0 0 20px rgba(220, 53, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-discount {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4),
                    0 0 20px rgba(220, 53, 69, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6),
                    0 0 30px rgba(220, 53, 69, 0.4);
    }
}

/* Discount Card Styling */
.listing-card.has-discount {
    border: 2px solid #FF6B35;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    animation: discount-shimmer 3s ease-in-out infinite;
}

@keyframes discount-shimmer {
    0%, 100% {
        border-color: #FF6B35;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    }
    50% {
        border-color: #DC3545;
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
    }
}

/* Post Card with Discount */
.post-card.has-discount {
    border: 2px dashed #FF6B35;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

/* Discount Price Styling */
.listing-card .text-decoration-line-through {
    font-size: 0.85rem;
    opacity: 0.6;
}

.listing-card .text-danger.listing-price-inline {
    font-size: 1.1rem;
    font-weight: 700;
}

.listing-price {
    position: absolute;
    bottom: 4rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    z-index: 2;
}

.listing-timestamp {
    position: absolute;
    top: 4rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.listing-like {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
}

.listing-like .like-btn {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.listing-like .like-btn:hover {
    transform: scale(1.1);
}

/* Ensure proper colors for liked state */
.listing-like .like-btn.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.listing-like .like-btn.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
}

/* Ensure proper colors for unliked state */
.listing-like .like-btn.btn-outline-danger {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.listing-like .like-btn.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Listing Description - 2 lines max */
.listing-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em; /* 2 lines * 1.4 line-height */
}

/* Inline Price in Card Body */
.listing-price-inline {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Shop Detail Page Styling */
.shop-banner-large {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.shop-logo-large {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Shop Banner Placeholder - Better Colors */
.shop-banner-large.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Shop Logo Placeholder - Better Colors */
.shop-logo-large.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
}

.shop-logo-large.bg-light i {
    color: #6c757d !important;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.category-card:hover .card-title {
    color: var(--white) !important;
}

.category-card:hover .card-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-card:hover .category-icon {
    color: var(--white);
}

/* Shop Cards */
.shop-card {
    position: relative;
}

.shop-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shop-banner {
    height: 120px;
    object-fit: cover;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 0.5rem;
    margin: 0 0.125rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--secondary-color) !important;
}

footer h5, footer h6 {
    color: var(--white) !important;
}

footer p, footer li {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a,
footer .text-muted {
    color: var(--white) !important;
    transition: color 0.3s ease;
}

footer a:hover,
footer .text-muted:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-img-top {
        height: 120px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 1rem 0.5rem;
    }
}

/* Loading States */
/* Only apply to elements with .loading class, NOT html.loading */
*:not(html).loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Page-level loading state for html element */
html.loading body {
    cursor: wait;
    /* DO NOT use pointer-events: none - blocks all clicks! */
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.border-radius-lg {
    border-radius: 1rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Shop Card Styles */
.shop-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.shop-image-container {
    height: 200px;
}

.shop-banner, .shop-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-banner,
.shop-card:hover .shop-logo {
    transform: scale(1.05);
}

.shop-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.shop-logo-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Facebook-style Shop Card Design */
.shop-image-container {
    height: 200px;
    position: relative;
}

.shop-banner, .shop-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-banner,
.shop-card:hover .shop-logo {
    transform: scale(1.05);
}

.shop-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circular Logo Overlay */
.shop-logo-overlay {
    position: absolute;
    bottom: -20px;
    left: 20px;
    z-index: 10;
}

.shop-logo-circular {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    background: white;
}

.shop-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: #6c757d;
    font-size: 24px;
}

/* Adjust card body to accommodate logo */
.shop-card .card-body {
    padding-top: 45px; /* Make space for the circular logo */
}

/* Font Awesome Icon Fixes */
.fa-user-plus:before {
    content: "\f234";
}

.fa-spinner:before {
    content: "\f110";
}

.fa-heart:before {
    content: "\f004";
}

.fa-store:before {
    content: "\f54e";
}

/* Ensure Font Awesome icons are visible */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

.far {
    font-weight: 400;
}

/* ============================================
   GLOBAL LISTING CARD STYLES - Modern Mobile/Desktop
   Apply to ALL listing pages across platform
   ============================================ */

/* Force 2 cards per row on mobile - ONLY LISTING CARDS (not shops) */
@media (max-width: 767px) {
    /* Target ONLY rows that contain listing-card, not categories or shops */
    .row.g-4:has(.listing-card) .col-lg-3.col-md-4.col-sm-6,
    .row.g-4:has(.listing-card) .col-md-4.col-sm-6,
    .row.g-4:has(.listing-card) .col-sm-6,
    section:has(.listing-card) .row.g-4 .col-lg-3.col-md-4.col-sm-6,
    section:has(.listing-card) .row.g-4 .col-md-4.col-sm-6,
    section:has(.listing-card) .row.g-4 .col-sm-6,
    .row.row-cols-1:has(.listing-card) .col-sm-6,
    .row.row-cols-md-2:has(.listing-card) .col-sm-6 {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        margin: 0 !important;
    }
    
    /* Reduce gap between listing cards ONLY */
    .row.g-4:has(.listing-card),
    .row.row-cols-1:has(.listing-card),
    .row.row-cols-md-2:has(.listing-card) {
        gap: 0.5rem !important;
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
    
    /* Ensure listing cards fit properly */
    .row.g-4:has(.listing-card) > *,
    .row.row-cols-1:has(.listing-card) > *,
    .row.row-cols-md-2:has(.listing-card) > * {
        box-sizing: border-box !important;
    }
    
    /* Ensure listing cards don't overflow */
    .listing-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        height: 100% !important;
        cursor: pointer !important;
    }
    
    .listing-card:active {
        transform: scale(0.98) !important;
    }
    
    /* Clear, visible images - optimized for mobile */
    .listing-card .card-img-top {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        object-position: center !important;
        background-color: #f8f9fa !important;
        display: block !important;
        image-rendering: auto !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        /* Prevent layout shift (CLS) - Use aspect-ratio but allow width/height attributes */
        aspect-ratio: 4 / 3 !important;
        /* Allow width/height attributes to work with CSS */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Width/height attributes work with CSS height */
    .listing-card .card-img-top[width][height] {
        /* Let CSS height take precedence, but use aspect-ratio */
        aspect-ratio: 267 / 200;
    }
    /* Ensure placeholder icon/image inside bg-light is centered and contained */
    .listing-card .card-img-top.bg-light img,
    .listing-card .listing-image.bg-light img,
    .listing-card .card-img-top.bg-light svg,
    .listing-card .listing-image.bg-light svg,
    .listing-card .card-img-top.d-flex img,
    .listing-card .card-img-top.d-flex svg {
        max-width: 60% !important;
        max-height: 60% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Ensure placeholder images same size and centered */
    .listing-card .card-img-top.bg-light,
    .listing-card .card-img-top.d-flex,
    .listing-card .listing-image.bg-light {
        height: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Compact card body */
    .listing-card .card-body {
        padding: 0.75rem 0.5rem !important;
    }
    
    /* Compact title */
    .listing-card .card-title {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        min-height: 2.34rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Hide description on mobile */
    .listing-card .listing-description,
    .listing-card .card-text.text-muted.small.listing-description {
        display: none !important;
    }
    
    /* Price emphasis */
    .listing-card .listing-price-inline,
    .listing-card .fw-bold.text-primary {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #C8102E !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    /* Location below price */
    .listing-card .d-flex.justify-content-between.mt-auto {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
        width: 100% !important;
    }
    
    .listing-card .text-muted small {
        font-size: 0.75rem !important;
    }
    
    /* Hide footer button - make card clickable */
    .listing-card .card-footer {
        display: none !important;
    }
    
    /* Compact badges */
    .listing-card .listing-badges {
        top: 6px !important;
        left: 6px !important;
    }
    
    .listing-card .listing-badges .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    /* Compact like button */
    .listing-card .listing-like {
        top: 6px !important;
        right: 6px !important;
    }
    
    .listing-card .listing-like .btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(4px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }
    
    .listing-card .listing-like .btn i {
        font-size: 0.8rem !important;
    }
    
    /* Liked state - Red background */
    .listing-card .listing-like .btn-danger,
    .listing-card .listing-like .btn.btn-danger {
        background: rgba(220, 53, 69, 0.95) !important;
        color: white !important;
        border: none !important;
    }
    
    .listing-card .listing-like .btn-danger i,
    .listing-card .listing-like .btn.btn-danger i {
        color: white !important;
    }
    
    /* Unliked state - White background with outline */
    .listing-card .listing-like .btn-outline-danger {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1.5px solid rgba(220, 53, 69, 0.6) !important;
        color: #dc3545 !important;
    }
    
    .listing-card .listing-like .btn-outline-danger i {
        color: #dc3545 !important;
    }
    
    /* Prevent like button from triggering card click */
    .listing-card .listing-like,
    .listing-card .listing-like .btn {
        pointer-events: auto !important;
        z-index: 10 !important;
    }
    
    /* Ensure badges don't interfere */
    .listing-card .listing-badges {
        pointer-events: none !important;
        z-index: 5 !important;
    }
    
    .listing-card .listing-badges .badge {
        pointer-events: auto !important;
    }
    
    /* Hide timestamp on mobile to save space */
    .listing-card .listing-timestamp {
        display: none !important;
    }
}

/* Tablet (768px to 991px) - 2 columns for listings */
@media (min-width: 768px) and (max-width: 991px) {
    section:has(.listing-card) .row.g-4 .col-md-4.col-sm-6,
    section:has(.listing-card) .row.g-4 .col-sm-6,
    .row.g-4:has(.listing-card) .col-md-4.col-sm-6,
    .row.g-4:has(.listing-card) .col-sm-6 {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
    }
}

/* Post badge styling - Global */
.badge-post {
    background: linear-gradient(135deg, #007A3D 0%, #00A859 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 122, 61, 0.3);
}

/* Post card styling - Global */
.post-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* Desktop: Post cards - Title and description below badges and like icon */
@media (min-width: 769px) {
    .post-card {
        position: relative;
        padding-top: 0;
    }
    
    /* Ensure badges are at top */
    .post-card .listing-badges {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 10;
    }
    
    /* Ensure like icon is at top right */
    .post-card .listing-like {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
    }
    
    /* Hide timestamp on desktop for post cards */
    .post-card .listing-timestamp {
        display: none !important;
    }
    
    /* Card body (title and description) must start below badges/like row */
    .post-card .card-body {
        margin-top: 3.5rem !important; /* Space for badges, timestamp, and like icon row */
        padding-top: 0 !important;
    }
    
    /* Title and description are in card-body, so they will naturally be below */
    .post-card .card-title {
        margin-top: 0 !important;
    }
    
    .post-card .post-description {
        margin-top: 0 !important;
    }
}

.post-description {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem !important;
}

/* ============================================
   MOBILE POST CARDS - GLOBAL STYLING
   Applied to ALL post cards everywhere on mobile
   ============================================ */

/* Hide POST badge on trending cards (trending cards should only show TRENDING badge) */
.trending-listing-card .badge-post,
.trending-listing-card.post-card .badge-post,
.post-card.trending-listing-card .badge-post {
    display: none !important;
}

/* Hide Urgent badge on mobile for posts in category/subcategory pages */
@media (max-width: 768px) {
    .post-card .listing-badges .badge-urgent {
        display: none !important;
    }
}

/* Mobile: Post cards - POST badge and like icon on same row, title/description below */
@media (max-width: 768px) {
    /* Hide POST badge on trending cards on mobile */
    .trending-listing-card .badge-post,
    .trending-listing-card.post-card .badge-post,
    .post-card.trending-listing-card .badge-post {
        display: none !important;
    }
    
    .post-card {
        min-height: 200px;
        position: relative;
        padding-top: 0.5rem; /* Add space at top for badges */
    }
    
    /* POST badge and like button on same horizontal line */
    .post-card .listing-badges {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 10;
        display: flex;
        flex-direction: row; /* Horizontal layout */
        align-items: center;
        gap: 0.5rem;
    }
    
    /* But on trending cards, don't apply mobile badge positioning - use normal positioning */
    .trending-listing-card.post-card .listing-badges,
    .post-card.trending-listing-card .listing-badges {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 10;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .post-card .listing-badges .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 !important;
    }
    
    /* Like button on same row as POST badge */
    .post-card .listing-like {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 10;
        margin: 0 !important;
    }
    
    .post-card .listing-like .btn {
        padding: 0.35rem 0.5rem !important;
        width: auto !important;
        min-width: auto !important;
    }
    
    /* Hide timestamp on mobile for posts */
    .post-card .listing-timestamp {
        display: none !important; /* Hide on mobile to keep it clean */
    }
    
    /* Card body starts below badge/like row */
    .post-card .card-body {
        margin-top: 3rem !important; /* Space for badge and like button row */
        padding-top: 0.5rem !important;
    }
    
    .post-card .post-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Show 3 lines on mobile */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.5rem !important;
    }
    
    .post-card .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
}

/* Very small screens - even tighter */
@media (max-width: 576px) {
    /* Hide POST badge on trending cards on very small screens */
    .trending-listing-card .badge-post,
    .trending-listing-card.post-card .badge-post,
    .post-card.trending-listing-card .badge-post {
        display: none !important;
    }
    
    .post-card .listing-badges {
        top: 6px;
        left: 6px;
        gap: 0.4rem;
    }
    
    /* Trending cards use normal positioning */
    .trending-listing-card.post-card .listing-badges,
    .post-card.trending-listing-card .listing-badges {
        top: 0.75rem;
        left: 0.75rem;
        gap: 0.4rem;
    }
    
    .post-card .listing-badges .badge {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.5rem !important;
    }
    
    .post-card .listing-like {
        top: 6px;
        right: 6px;
    }
    
    .post-card .listing-like .btn {
        padding: 0.3rem 0.45rem !important;
        font-size: 0.75rem !important;
    }
    
    .post-card .card-body {
        margin-top: 2.5rem !important;
    }
    
    .post-card .post-description {
        -webkit-line-clamp: 2; /* Show 2 lines on very small screens */
        font-size: 0.8rem !important;
    }
}

/* ======================================================================
   PROMOTIONAL DISCOUNT CARD STYLES
   ====================================================================== */

.promotional-discount-card {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 400px;
}

/* Background Image */
.promotional-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradient fallback when no image */
.promotional-card-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B00 100%);
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Overlay for text readability */
.promotional-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

/* Content Container */
.promotional-card-content {
    position: relative;
    z-index: 3;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Icon Animation */
.promotional-card-icon {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite, iconRotate 4s linear infinite;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.5));
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Headline */
.promotional-card-headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subheadline */
.promotional-card-subheadline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Button Wrapper */
.promotional-card-button-wrapper {
    width: 100%;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

/* Button */
.promotional-card-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA500 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-overflow: ellipsis;
}

.promotional-card-button .promotional-button-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.promotional-card-button i {
    flex-shrink: 0;
    margin-left: 0;
    transition: transform 0.3s ease;
}

.promotional-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.promotional-card-button:hover::before {
    left: 100%;
}

.promotional-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.promotional-card-button:hover i {
    transform: translateX(5px);
}

/* Sparkles Animation */
.promotional-card-sparkles {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.promotional-card-sparkles i {
    font-size: 0.75rem;
    color: #FFD700;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0;
}

.promotional-card-sparkles i:nth-child(1) {
    animation-delay: 0s;
}

.promotional-card-sparkles i:nth-child(2) {
    animation-delay: 0.5s;
}

.promotional-card-sparkles i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Hover Effects */
.promotional-discount-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.promotional-discount-card:hover .promotional-card-icon {
    animation: iconPulse 1s ease-in-out infinite, iconRotate 2s linear infinite;
}

/* Card Glow Effect */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                    0 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                    0 0 20px 5px rgba(255, 215, 0, 0.3);
    }
}

.promotional-discount-card {
    animation: cardGlow 3s ease-in-out infinite;
}

/* Animation Speed Variations */
.promotional-discount-card[data-speed="slow"] .promotional-card-icon,
.promotional-discount-card[data-speed="slow"] .promotional-card-sparkles i {
    animation-duration: 3s;
}

.promotional-discount-card[data-speed="fast"] .promotional-card-icon,
.promotional-discount-card[data-speed="fast"] .promotional-card-sparkles i {
    animation-duration: 1s;
}

/* Mobile Responsive - Tablet */
@media (max-width: 991px) {
    .promotional-card-content {
        padding: 1.5rem 1rem;
    }
    
    .promotional-card-icon {
        font-size: 3rem;
    }
    
    .promotional-card-headline {
        font-size: 1.3rem;
    }
    
    .promotional-card-subheadline {
        font-size: 0.95rem;
    }
    
    .promotional-card-button {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }
}

/* Mobile Responsive - Small screens */
@media (max-width: 767px) {
    .promotional-card-content {
        padding: 1.25rem 0.75rem;
    }
    
    .promotional-card-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .promotional-card-headline {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .promotional-card-subheadline {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .promotional-card-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        width: 100%;
        min-height: 44px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .promotional-card-button .promotional-button-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .promotional-card-button i {
        font-size: 0.75rem;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .promotional-discount-card {
        min-height: 320px;
    }
}

/* Very Small Screens */
@media (max-width: 576px) {
    .promotional-card-content {
        padding: 1rem 0.5rem;
    }
    
    .promotional-card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .promotional-card-headline {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .promotional-card-subheadline {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }
    
    .promotional-card-button {
        padding: 0.55rem 0.875rem;
        font-size: 0.8rem;
        min-height: 42px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .promotional-card-button .promotional-button-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .promotional-card-button i {
        font-size: 0.7rem;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .promotional-discount-card {
        min-height: 300px;
    }
    
    .promotional-card-sparkles {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .promotional-card-sparkles i {
        font-size: 0.65rem;
    }
}

/* Extra Small Screens */
@media (max-width: 400px) {
    .promotional-card-headline {
        font-size: 0.95rem;
    }
    
    .promotional-card-subheadline {
        font-size: 0.75rem;
    }
    
    .promotional-card-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .promotional-card-button .promotional-button-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .promotional-card-button i {
        flex-shrink: 0;
        margin-left: 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .promotional-discount-card,
    .promotional-card-icon,
    .promotional-card-sparkles i,
    .promotional-card-button {
        animation: none !important;
        transition: none !important;
    }
}

