/* ============ SKELETON LOADING PLACEHOLDERS ============ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Product Card Skeleton */
.product-card-skeleton {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.product-card-skeleton .skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    max-height: 160px;
}

.product-card-skeleton .skeleton-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-skeleton .skeleton-title {
    height: 20px;
    margin-bottom: 10px;
}

.product-card-skeleton .skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.product-card-skeleton .skeleton-text:last-child {
    width: 60%;
}

/* Business Card Skeleton */
.business-card-skeleton {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card-skeleton .skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.business-card-skeleton .skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

.business-card-skeleton .skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.business-card-skeleton .skeleton-text:nth-child(3) {
    width: 80%;
}

.business-card-skeleton .skeleton-text:nth-child(4) {
    width: 60%;
}

/* Flash Sale Card Skeleton */
.flash-sale-card-skeleton {
    background: linear-gradient(180deg, #fff 0%, #fffaf9 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    position: relative;
}

.flash-sale-card-skeleton .skeleton-header {
    background: linear-gradient(90deg, rgba(255, 245, 238, 0.95), rgba(255, 250, 240, 0.95));
    padding: 18px 18px 16px 18px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.flash-sale-card-skeleton .skeleton-title {
    height: 20px;
    width: 60%;
}

.flash-sale-card-skeleton .skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: 12px;
}

.flash-sale-card-skeleton .skeleton-products {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.flash-sale-card-skeleton .skeleton-product-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash-sale-card-skeleton .skeleton-product-image {
    width: 100%;
    height: 100px;
    border-radius: 8px;
}

.flash-sale-card-skeleton .skeleton-product-title {
    height: 14px;
    width: 80%;
}

.flash-sale-card-skeleton .skeleton-product-price {
    height: 16px;
    width: 60%;
}

/* Text Skeleton Lines */
.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-line:last-child {
    width: 70%;
}

.skeleton-line.wide {
    width: 100%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.narrow {
    width: 60%;
}

/* ============ MODERN CART PAGE STYLING ============ */
.cart-page main.main-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.cart-page main.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.cart-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.cart-page h1 {
    color: #1f2937;
    margin-bottom: 32px;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    margin-top: 32px;
}

.cart-page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6b7280, #4b5563);
    border-radius: 2px;
}

.cart-page h1 i {
    color: #6b7280;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(107, 114, 128, 0.2));
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.cart-page .cart-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 32px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 56px 48px 48px 48px;
    margin: 0 auto 48px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.cart-page .cart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #4b5563, #374151);
    border-radius: 32px 32px 0 0;
}

/* Empty State - Modern Design */
.cart-page .empty-state {
    text-align: center;
    padding: 100px 40px 80px 40px;
    position: relative;
}

.cart-page .empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.cart-page .empty-state i {
    font-size: 4rem;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
    animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.cart-page .empty-state h2 {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.cart-page .empty-state p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cart-page .empty-state .btn-primary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-page .empty-state .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cart-page .empty-state .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(107, 114, 128, 0.4);
}

.cart-page .empty-state .btn-primary:hover::before {
    left: 100%;
}

.cart-page .empty-state .btn-primary i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cart-page .empty-state .btn-primary:hover i {
    transform: translateX(4px);
}

/* Layout Buttons */
.cart-page .btn-primary,
.cart-page .btn-outline {
    font-size: 1rem;
    padding: 13px 24px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-page .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cart-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.cart-page .btn-primary:active {
    transform: translateY(0);
}

.cart-page .btn-outline {
    background: #f1f5f9;
    color: #2563eb;
    border: 2px solid #e2e8f0;
}

.cart-page .btn-outline:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Cart Layout */
.cart-page .cart-layout {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cart-page .cart-items-column {
    flex: 2 1 400px;
    min-width: 0;
}

/* Cart Items Styling */
#cartItems {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-page .cart-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cart-page .cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.cart-page .cart-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

.cart-page .cart-item:hover::before {
    opacity: 1;
}

.cart-page .cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.cart-page .cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-page .cart-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.cart-page .cart-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-page .cart-item-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-page .cart-item-qty {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 8px;
}

.cart-page .cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-page .remove-btn {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
    color: #dc2626;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-page .remove-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.cart-page .remove-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.cart-page .remove-btn:hover::before {
    width: 100%;
    height: 100%;
}

.cart-page .remove-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

/* New Cart Item Styling for Seller Groups */
.cart-page .cart-item-image {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cart-page .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.cart-page .cart-item:hover .cart-item-image {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.cart-page .cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-page .cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-page .cart-item-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-page .cart-item-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-page .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.cart-page .qty-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid rgba(226, 232, 240, 0.8);
    color: #374151;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-page .qty-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.cart-page .qty-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.cart-page .qty-btn:hover::before {
    width: 100%;
    height: 100%;
}

.cart-page .qty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.cart-page .qty-display {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    min-width: 50px;
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cart-page .cart-item-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    margin-left: auto;
    text-align: right;
}

min-width: 50px;
text-align: center;
background: #ffffff;
border: 2px solid rgba(226, 232, 240, 0.8);
border-radius: 8px;
padding: 8px 12px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-page .cart-item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.cart-page .cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.cart-page .remove-btn {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-page .remove-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.cart-page .remove-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.cart-page .remove-btn:hover::before {
    width: 100%;
    height: 100%;
}

.cart-page .remove-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

/* Seller Cart Section - Modern Card Design */
.cart-page .seller-cart-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cart-page .seller-cart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    border-radius: 24px 24px 0 0;
}

.cart-page .seller-cart-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cart-page .seller-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    padding: 32px 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    backdrop-filter: blur(12px);
}

.cart-page .seller-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.01em;
}

.cart-page .seller-header h3 i {
    color: #10b981;
    font-size: 1.5rem;
    filter: drop-shadow(0 3px 6px rgba(16, 185, 129, 0.3));
    background: rgba(16, 185, 129, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.cart-page .seller-item-count {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-page .seller-item-count i {
    font-size: 0.9rem;
}

.cart-page .seller-cart-items {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-page .seller-cart-items .cart-item:nth-child(1) {
    animation-delay: 0.1s;
}

.cart-page .seller-cart-items .cart-item:nth-child(2) {
    animation-delay: 0.2s;
}

.cart-page .seller-cart-items .cart-item:nth-child(3) {
    animation-delay: 0.3s;
}

.cart-page .seller-cart-items .cart-item:nth-child(4) {
    animation-delay: 0.4s;
}

.cart-page .seller-cart-items .cart-item:nth-child(5) {
    animation-delay: 0.5s;
}

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

    to {
        opacity: 1;
        transform: none;
    }
}

/* Modern Cart Sidebar */
.cart-page .cart-sidebar {
    flex: 1 1 340px;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.06),
        0 6px 14px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 40px 32px 32px 32px;
    align-self: flex-start;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 120px;
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.cart-page .cart-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309, #92400e);
    border-radius: 24px 24px 0 0;
}

.cart-page .cart-summary-box {
    margin-bottom: 32px;
}

.cart-page .cart-summary {
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.cart-page .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.cart-page .summary-row:hover {
    background: rgba(59, 130, 246, 0.03);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}

.cart-page .summary-row span:first-child {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-page .summary-row strong {
    color: #0f172a;
    font-weight: 700;
}

.cart-page .summary-row.summary-total {
    border-top: 2px solid rgba(245, 158, 11, 0.3);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-radius: 12px;
    padding: 20px 16px;
    margin: 20px -4px 0 -4px;
}

.cart-page .summary-row.summary-total strong {
    color: #92400e;
    font-size: 1.4rem;
    font-weight: 900;
}

align-items: center;
font-size: 1rem;
margin-bottom: 12px;
color: #475569;
}

.cart-page .summary-row strong {
    color: #1e293b;
    font-weight: 700;
}

.cart-page .summary-row:last-child {
    margin-bottom: 0;
}

.cart-page .summary-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: right;
}

#cartTotal {
    color: #fff !important;
}

.cart-page .cart-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.cart-page .cart-actions .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 12px 32px rgba(245, 158, 11, 0.3),
        0 6px 16px rgba(245, 158, 11, 0.2),
        0 2px 8px rgba(245, 158, 11, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-page .cart-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cart-page .cart-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(245, 158, 11, 0.4),
        0 12px 24px rgba(245, 158, 11, 0.3),
        0 4px 12px rgba(245, 158, 11, 0.2);
}

.cart-page .cart-actions .btn-primary:hover::before {
    left: 100%;
}

.cart-page .cart-actions .btn-primary:active {
    transform: translateY(-1px);
}

.cart-page .cart-actions .btn-primary i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cart-page .cart-actions .btn-primary:hover i {
    transform: translateX(4px);
}

.cart-page .cart-actions .btn.hidden {
    display: none;
}

.cart-page .cart-actions .btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #f59e0b;
    border: 2px solid #f59e0b;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-page .cart-actions .btn-outline:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cart-page .alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fef5f5 100%);
    color: #7f1d1d;
    border: 2px solid #fca5a5;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.cart-page .alert-error i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-page .cart-sidebar {
        position: relative;
        top: auto;
    }

    .cart-page .cart-layout {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .cart-page .cart-layout {
        flex-direction: column;
        gap: 20px;
    }

    .cart-page .cart-items-column {
        order: -1;
        /* Move items above sidebar on mobile */
    }

    .cart-page .cart-sidebar {
        align-self: stretch;
        top: auto;
    }

    .cart-page .cart-card {
        padding: 24px 20px 20px 20px;
    }

    .cart-page .seller-cart-items {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .cart-page main.main-content {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .cart-page h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cart-page h1 i {
        font-size: 2rem;
    }

    .cart-page .cart-card {
        padding: 20px 16px 16px 16px;
        border-radius: 12px;
        margin: 0 8px 20px 8px;
    }

    .cart-page .seller-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cart-page .seller-header h3 {
        font-size: 1.1rem;
    }

    .cart-page .seller-cart-items {
        padding: 16px 12px;
        gap: 12px;
    }

    .cart-page .cart-item {
        padding: 16px 12px;
        gap: 16px;
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cart-page .cart-item-image {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .cart-page .cart-item-details {
        text-align: center;
        gap: 6px;
    }

    .cart-page .cart-item-details h4 {
        font-size: 1rem;
        text-align: center;
        -webkit-line-clamp: 3;
    }

    .cart-page .cart-item-price {
        text-align: center;
        font-size: 1.1rem;
    }

    .cart-page .cart-item-quantity {
        justify-content: center;
        margin-top: 12px;
        gap: 12px;
    }

    .cart-page .cart-item-total {
        text-align: center;
        font-size: 1.2rem;
        margin-top: 8px;
    }

    .cart-page .cart-item-actions {
        align-self: center;
        margin-top: 12px;
    }

    .cart-page .remove-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

.cart-page .cart-sidebar {
    padding: 24px 16px;
    border-radius: 16px;
    margin-top: 16px;
}

.cart-page .cart-summary {
    padding: 20px 16px;
    border-radius: 12px;
}

.cart-page .summary-row {
    font-size: 0.95rem;
    padding: 8px 0;
}

.cart-page .summary-row.summary-total {
    font-size: 1.1rem;
    padding: 16px 12px;
    margin: 16px -4px 0 -4px;
}

.cart-page .summary-row.summary-total strong {
    font-size: 1.2rem;
}

.cart-page .cart-actions {
    gap: 12px;
    margin-top: 16px;
}

.cart-page .cart-actions .btn-primary,
.cart-page .cart-actions .btn-outline {
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: 12px;
}

.cart-page .cart-footer {
    text-align: center;
    margin-top: 20px;
}

.cart-page .empty-state {
    padding: 60px 20px 50px 20px;
}

.cart-page .empty-state i {
    font-size: 4rem;
}

.cart-page .empty-state h2 {
    font-size: 1.8rem;
}

.cart-page .empty-state p {
    font-size: 1rem;
}

.cart-page .empty-state .btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
}
}

@media (max-width: 480px) {
    .cart-page h1 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .cart-page h1 i {
        font-size: 1.8rem;
    }

    .cart-page .cart-card {
        padding: 16px 12px 12px 12px;
        margin: 0 4px 16px 4px;
    }

    .cart-page .seller-header {
        padding: 10px 12px;
    }

    .cart-page .seller-header h3 {
        font-size: 1rem;
    }

    .cart-page .seller-item-count {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .cart-page .seller-cart-items {
        padding: 12px 8px;
        gap: 10px;
    }

    .cart-page .cart-item {
        padding: 14px 10px;
        gap: 12px;
    }

    .cart-page .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-page .cart-item-details h4 {
        font-size: 0.95rem;
    }

    .cart-page .cart-item-price,
    .cart-page .cart-item-total {
        font-size: 1rem;
    }

    .cart-page .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cart-page .qty-display {
        font-size: 0.95rem;
        min-width: 40px;
        padding: 6px 12px;
    }

    .cart-page .remove-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .cart-page .cart-sidebar {
        padding: 16px 12px 12px 12px;
    }

    .cart-page .summary-row {
        font-size: 0.9rem;
    }

    .cart-page .summary-total {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .cart-page .cart-actions .btn {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .cart-page .cart-footer .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .cart-page .empty-state {
        padding: 30px 16px 20px 16px;
    }

    .cart-page .empty-state i {
        font-size: 3rem;
    }

    .cart-page .empty-state h2 {
        font-size: 1.3rem;
    }

    .cart-page .empty-state p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .cart-page .empty-state .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cart-page .alert-error {
        padding: 12px 14px;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {

    /* Touch-friendly buttons */
    .cart-page .qty-btn,
    .cart-page .remove-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    /* Better spacing for mobile */
    .cart-page .cart-item {
        margin-bottom: 8px;
    }

    /* Improve readability on small screens */
    .cart-page .seller-header h3 {
        word-break: break-word;
    }

    .cart-page .cart-item-details h4 {
        word-break: break-word;
        line-height: 1.3;
    }

    /* Better button layout on mobile */
    .cart-page .cart-actions {
        flex-direction: column;
    }

    .cart-page .cart-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Extra small screen optimizations */
    .cart-page .cart-item-quantity {
        flex-wrap: wrap;
        gap: 4px;
    }

    .cart-page .qty-btn {
        flex: 1;
        max-width: 40px;
    }

    .cart-page .qty-display {
        flex: 2;
        text-align: center;
    }

    /* Ensure cart summary is readable */
    .cart-page .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cart-page .summary-row strong {
        align-self: flex-end;
    }
}

/* ============ MARKETPLACE PAGE ENHANCEMENTS ============ */
.marketplace-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

.marketplace-page .marketplace-hero {
    position: relative;
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
    padding: 40px 0 32px 0;
    margin-bottom: 30px;
}

.marketplace-page .featured-products-section,
.marketplace-page .categories-section,
.marketplace-page .flash-sales-section,
.marketplace-page .promotional-products-section,
.marketplace-page .seasonal-products-section,
.marketplace-page .marketplace-cta {
    padding: 40px 0;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out both;
}

.marketplace-page .featured-products-section:nth-child(2) {
    animation-delay: 0.1s;
}

.marketplace-page .categories-section:nth-child(3) {
    animation-delay: 0.2s;
}

.marketplace-page .flash-sales-section:nth-child(4) {
    animation-delay: 0.3s;
}

.marketplace-page .promotional-products-section:nth-child(5) {
    animation-delay: 0.4s;
}

.marketplace-page .seasonal-products-section:nth-child(6) {
    animation-delay: 0.5s;
}

.marketplace-page .marketplace-cta {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.marketplace-page .featured-products-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 3px solid #e2e8f0;
    border-bottom: 3px solid #e2e8f0;
}

.marketplace-page .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 64, 175, 0.18) 100%);
    z-index: 1;
}

.marketplace-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.marketplace-page .hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}

.marketplace-page .hero-badge {
    background: #fff;
    color: #2563eb;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.marketplace-page .hero-badge-accent {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    font-weight: 900;
}

.marketplace-page .hero-content h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(30, 64, 175, 0.13);
}

.marketplace-page .hero-content p {
    font-size: 1.25rem;
    color: #e0e7ff;
    margin-bottom: 24px;
}

.marketplace-page .marketplace-search {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.marketplace-page .search-container {
    display: flex;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.marketplace-page .search-input {
    border: none;
    padding: 14px 18px;
    font-size: 1.1rem;
    outline: none;
    flex: 1;
    border-radius: 999px 0 0 999px;
}

.marketplace-page .search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0 22px;
    font-size: 1.2rem;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.marketplace-page .search-btn:hover {
    background: #1e40af;
}

.marketplace-page .hero-featured {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 18px;
}

.marketplace-page .hero-featured .product-card {
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.10);
    border: 2px solid #fbbf24;
    background: #fffbe7;
    animation: fadeInUp 0.7s cubic-bezier(.23, 1.01, .32, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.marketplace-page .cart-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
    z-index: 1200;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.marketplace-page .cart-fab:hover {
    background: #fbbf24;
    color: #1e40af;
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.18);
}

.marketplace-page .cart-fab-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbbf24;
    color: #1e40af;
    font-weight: 900;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.18);
}

.marketplace-page .cart-dock {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.10);
    padding: 12px 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1200;
    border: 2px solid #2563eb;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.marketplace-page .cart-dock:hover {
    background: #2563eb;
    color: #fff;
}

.marketplace-page .cart-dock-right {
    font-weight: 900;
    font-size: 1.1rem;
}

.marketplace-page .featured-products-section .products-grid .product-card {
    animation: fadeInUp 0.7s cubic-bezier(.23, 1.01, .32, 1) both;
}

.marketplace-page .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.marketplace-page .category-card {
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    padding: 32px 18px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 2px solid #e0e7ff;
    cursor: pointer;
}

.marketplace-page .category-card:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
    transform: translateY(-6px) scale(1.04);
    border-color: #2563eb;
}

.marketplace-page .category-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 8px;
}

.marketplace-page .product-count {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
}

.marketplace-page .marketplace-cta {
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    text-align: center;
    margin-top: 48px;
    /* Padding is now handled by the generic section rule */
}

.marketplace-page .marketplace-cta h2 {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.marketplace-page .marketplace-cta p {
    font-size: 1.2rem;
    color: #e0e7ff;
    margin-bottom: 24px;
}

.marketplace-page .marketplace-cta .btn {
    font-size: 1.1rem;
    padding: 14px 38px;
    border-radius: 999px;
    background: #fbbf24;
    color: #1e40af;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.18);
    border: none;
    transition: background 0.2s, color 0.2s;
}

.marketplace-page .marketplace-cta .btn:hover {
    background: #2563eb;
    color: #fff;
}

/* ============ PROMOTIONAL SECTIONS ============ */
.marketplace-page .flash-sales-section,
.marketplace-page .promotional-products-section,
.marketplace-page .seasonal-products-section {
    padding: 48px 0;
    background-color: var(--light-bg);
}

.marketplace-page .flash-sales-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-top: 4px solid #f59e0b;
    border-bottom: 4px solid #f59e0b;
}

.marketplace-page .promotional-products-section {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-top: 4px solid #ef4444;
    border-bottom: 4px solid #ef4444;
}

.marketplace-page .seasonal-products-section {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-top: 4px solid #10b981;
    border-bottom: 4px solid #10b981;
}

.marketplace-page .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.marketplace-page .section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.marketplace-page .section-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marketplace-page .section-header p {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.marketplace-page .flash-sales-grid,
.marketplace-page .promotional-products-grid,
.marketplace-page .seasonal-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.marketplace-page .flash-sale-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
    border: 3px solid #f59e0b;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.marketplace-page .flash-sale-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.25);
}

.marketplace-page .flash-sale-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.marketplace-page .flash-sale-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="70" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.marketplace-page .flash-sale-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.marketplace-page .flash-sale-countdown {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.marketplace-page .countdown-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 900;
}

.marketplace-page .flash-sale-products {
    padding: 16px;
}

.marketplace-page .flash-sale-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.marketplace-page .flash-sale-product:hover {
    background: #fde68a;
}

.marketplace-page .flash-sale-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.marketplace-page .flash-sale-product-info {
    flex: 1;
}

.marketplace-page .flash-sale-product-name {
    font-weight: 700;
    color: #92400e;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.marketplace-page .flash-sale-product-price {
    font-size: 0.9rem;
    color: #d97706;
    font-weight: 600;
}

.marketplace-page .promotional-product-card,
.marketplace-page .seasonal-product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.marketplace-page .promotional-product-card:hover,
.marketplace-page .seasonal-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.marketplace-page .product-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.marketplace-page .seasonal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.marketplace-page .product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.marketplace-page .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marketplace-page .promotional-product-card:hover .product-image-container img,
.marketplace-page .seasonal-product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.marketplace-page .product-info {
    padding: 14px;
}

.marketplace-page .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-page .product-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: #059669;
    margin-bottom: 4px;
}

.marketplace-page .product-original-price {
    font-size: 0.9rem;
    color: var(--gray-text);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.marketplace-page .product-store {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 600;
}

/* Updated Category Styles with Images */
.marketplace-page .category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.marketplace-page .category-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.marketplace-page .category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.marketplace-page .category-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketplace-page .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marketplace-page .category-card:hover .category-image img {
    transform: scale(1.05);
}

.marketplace-page .category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

.marketplace-page .category-card:hover .category-icon {
    transform: scale(1.1);
}

.marketplace-page .category-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.marketplace-page .category-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-page .product-count {
    color: var(--gray-text);
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid #cbd5e1;
    transition: background 0.3s ease;
}

.marketplace-page .category-card:hover .product-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-color: var(--primary-color);
}

/* Empty State */
.marketplace-page .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-text);
}

.marketplace-page .empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.marketplace-page .empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.marketplace-page .empty-state p {
    font-size: 1.1rem;
}

@media (max-width: 900px) {

    .marketplace-page .marketplace-hero,
    .marketplace-page .marketplace-cta {
        padding: 32px 10px 24px 10px;
    }

    .marketplace-page .hero-content h1 {
        font-size: 2rem;
    }

    .marketplace-page .section-header h2 {
        font-size: 1.8rem;
    }

    .marketplace-page .flash-sales-grid,
    .marketplace-page .promotional-products-grid,
    .marketplace-page .seasonal-products-grid,
    .marketplace-page .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .marketplace-page .hero-featured {
        flex-direction: column;
        gap: 10px;
    }

    .marketplace-page .hero-content h1 {
        font-size: 1.8rem;
    }

    .marketplace-page .section-header h2 {
        font-size: 1.6rem;
    }

    .marketplace-page .section-header p {
        font-size: 1rem;
    }

    .marketplace-page .flash-sales-grid,
    .marketplace-page .promotional-products-grid,
    .marketplace-page .seasonal-products-grid,
    .marketplace-page .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .marketplace-page .category-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .marketplace-page .product-info,
    .marketplace-page .category-info {
        padding: 16px;
    }

    .marketplace-page .category-name {
        font-size: 1.1rem;
    }
}

/* ============ CART PAGE MOBILE RESPONSIVE STYLES ============ */
@media (max-width: 768px) {
    .cart-page main.main-content {
        padding: 20px 0;
    }

    .cart-page h1 {
        font-size: 2rem;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .cart-page .cart-card {
        border-radius: 16px;
        padding: 24px 16px;
        margin: 0 8px;
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    }

    .cart-page .cart-layout {
        flex-direction: column;
        gap: 24px;
    }

    .cart-page .cart-items-column {
        flex: 1;
        order: 2;
    }

    .cart-page .cart-sidebar {
        flex: none;
        order: 1;
        position: static;
        border-radius: 16px;
        padding: 20px 16px;
        margin-bottom: 16px;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    }

    .cart-page .cart-item {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 12px;
    }

    .cart-page .cart-item-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }

    .cart-page .cart-item-details {
        width: 100%;
        text-align: center;
        gap: 12px;
    }

    .cart-page .cart-item-details h4 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .cart-page .cart-item-price {
        font-size: 1rem;
    }

    .cart-page .cart-item-quantity {
        justify-content: center;
    }

    .cart-page .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .cart-page .qty-display {
        min-width: 50px;
        font-size: 1.1rem;
    }

    .cart-page .cart-item-total {
        font-size: 1.1rem;
        text-align: center;
    }

    .cart-page .cart-item-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .cart-page .remove-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cart-page .seller-header {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cart-page .seller-header h3 {
        font-size: 1.1rem;
    }

    .cart-page .seller-cart-items {
        padding: 16px;
        gap: 16px;
    }

    .cart-page .cart-summary-box {
        margin-bottom: 20px;
    }

    .cart-page .btn-primary,
    .cart-page .btn-outline {
        font-size: 1rem;
        padding: 16px 20px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .cart-page h1 {
        font-size: 1.8rem;
        padding: 0 12px;
    }

    .cart-page .cart-card {
        padding: 20px 12px;
        margin: 0 4px;
    }

    .cart-page .cart-item {
        padding: 14px;
        gap: 14px;
    }

    .cart-page .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-page .cart-item-details h4 {
        font-size: 0.95rem;
    }

    .cart-page .cart-item-price,
    .cart-page .cart-item-total {
        font-size: 0.95rem;
    }

    .cart-page .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cart-page .qty-display {
        min-width: 45px;
        font-size: 1rem;
    }

    .cart-page .remove-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .cart-page .seller-cart-items {
        padding: 12px;
    }

    .cart-page .cart-sidebar {
        padding: 16px 12px;
    }

    .cart-page .btn-primary,
    .cart-page .btn-outline {
        font-size: 0.95rem;
        padding: 14px 18px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --admin-bg-color: #f1f5f9;

    /* Header/Menu */
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(226, 232, 240, 0.85);
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 80px;
    /* Account for fixed header */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ NAVIGATION ============ */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: opacity 160ms ease, transform 160ms ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
    padding: 8px 16px;
    max-width: 1400px;
    width: 100%;
}

.navbar-container {
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.navbar-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

/* Center the main header menu (desktop)
   Uses grid so the menu centers relative to the whole navbar (not just the space between logo and actions). */
@media (min-width: 769px) {
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 12px;
    }

    .navbar-brand {
        grid-column: 1;
    }

    /* Make children of .navbar-menu become grid items (keeps markup unchanged) */
    .navbar-menu {
        display: contents;
    }

    .navbar-primary {
        grid-column: 2;
        justify-content: center;
        min-width: 0;
    }

    .navbar-actions {
        grid-column: 3;
        justify-content: flex-end;
    }
}

.navbar-primary,
.navbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-primary {
    justify-content: center;
    flex: 1;
}

.navbar-actions {
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .navbar-menu {
        gap: 22px;
    }

    .navbar-primary,
    .navbar-actions {
        gap: 18px;
    }

    .nav-link,
    .dropdown-toggle {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Icon links: show icon-only on desktop, label on mobile */
.nav-icon .nav-text {
    display: none;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1;
    font-size: 13px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.nav-link.btn-primary {
    color: #fff;
    background: var(--primary-color);
    border-radius: 999px;
    padding: 10px 14px;
}

.nav-link.btn-primary:hover {
    color: #fff;
    background: var(--secondary-color);
}

.unread-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.nav-dropdown {
    position: relative;
    /* Clean state: no padding hacks */
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    padding: 8px 10px;
    border-radius: 999px;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid var(--border-color);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 6px;
    /* Visual gap */
    z-index: 1000;
    transform: translateY(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

/* Pseudo-element bridge to prevent closing when crossing the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    /* Bridge the gap */
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
}

.navbar-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        gap: 0;
        z-index: 1002;
        /* Ensure button is on top of everything */
        position: relative;
        /* Needed for z-index */
        padding: 8px;
    }

    /* On mobile: hide desktop search, show mobile search */
    .navbar-actions .search-toggle {
        display: none !important;
    }

    .mobile-search-icon {
        display: inline-flex !important;
    }

    /* Ensure mobile controls have proper flex layout */
    .navbar-mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .navbar-toggle span {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .navbar-menu {
        gap: 10px;
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        /* Ensure on top */

        /* Animated collapse */
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease;
    }

    .navbar-menu.active {
        max-height: calc(100vh - var(--nav-height) - 24px);
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;

        /* Allow scrolling when the menu content is tall */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-link {
        width: 100%;
        padding: 12px 12px;
        justify-content: flex-start;
    }

    .navbar-primary,
    .navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-icon .nav-text {
        display: inline;
    }

    .navbar-actions .nav-link.btn-primary {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        background-color: var(--light-bg);
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 6px 0;
        margin-top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.btn-secondary {
    background-color: #64748b;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-page {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-page:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.btn-vote {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-text);
    font-size: 13px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* ============ ALERTS ============ */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============ TOAST (JS POPUP) ============ */
.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
}

.toast {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.toast:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    margin: 0;
}

.toast-body {
    margin: 6px 0 0 0;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .toast-stack {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-dismissible {
    justify-content: space-between;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============ JOB CHAT (Jobs module) ============ */
.job-chat-shell {
    max-width: 1100px;
    margin: 90px auto 40px auto;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

/* ============ BUSINESS TOOLS (Owners/Admin) ============ */
.page-business-tools {
    background: var(--admin-bg-color);
}

.page-business-tools .main-content {
    background: transparent;
    padding-top: 86px;
    padding-bottom: 40px;
}

.page-business-tools .page-header {
    margin-top: 8px;
    padding: 18px 18px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.92));
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.page-business-tools .page-header h1,
.page-business-tools .page-header p {
    color: #ffffff;
}

.page-business-tools .page-header h1 {
    font-weight: 900;
}

.page-business-tools .page-header p {
    opacity: 0.92;
}

.page-business-tools .page-header i {
    color: #ffffff;
}

.page-business-tools .tools-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    margin-top: 22px;
    align-items: start;
}

.page-business-tools .tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.page-business-tools .sidebar-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-business-tools .sidebar-section h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-business-tools .businesses-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-business-tools .business-item-compact {
    position: relative;
    padding: 12px 12px 12px 56px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-business-tools .business-item-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.page-business-tools .business-item-compact.active {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.page-business-tools .business-item-compact__avatar {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.page-business-tools .business-item-compact__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-business-tools .business-item-compact .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.page-business-tools .business-item-compact .item-header strong {
    flex: 1;
    min-width: 0;
    color: var(--dark-text);
    word-break: break-word;
}

.page-business-tools .business-item-compact .status-badge {
    flex: 0 0 auto;
}

.page-business-tools .business-item-compact strong {
    font-size: 13px;
    line-height: 1.2;
}

.page-business-tools .business-item-compact small {
    display: block;
    color: var(--gray-text);
    font-size: 12px;
}

.page-business-tools .business-item-compact .biz-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.page-business-tools .business-item-compact .biz-location i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

.page-business-tools .owner-info {
    margin-top: 4px;
    opacity: 0.85;
}

.page-business-tools .tools-sidebar .stats-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-business-tools .tools-sidebar .stat {
    padding: 12px;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .tools-sidebar .stat .value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.page-business-tools .tools-sidebar .stat .label {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-business-tools .tools-main {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-business-tools .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-content h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark-text);
}

.page-business-tools .business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-text);
}

.page-business-tools .business-meta>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-logo {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-business-tools .tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 14px 0;
}

.page-business-tools .tab-btn {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-text);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-business-tools .tab-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    color: var(--dark-text);
}

.page-business-tools .tab-btn.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
}

.page-business-tools .tab-content {
    display: none;
}

.page-business-tools .tab-content.active {
    display: block;
}

.page-business-tools .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.page-business-tools .info-card {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.page-business-tools .info-card h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-business-tools .rating-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--dark-text);
}

.page-business-tools .rating-stars {
    color: #f59e0b;
}

.page-business-tools .rating-stars i.empty {
    color: rgba(148, 163, 184, 0.55);
}

.page-business-tools .stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 10px 0 6px 0;
}

.page-business-tools .stat-pending {
    color: #b45309;
    font-size: 12px;
    margin-top: 6px;
}

.page-business-tools .business-description,
.page-business-tools .business-contact {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    margin-bottom: 12px;
}

.page-business-tools .business-description h4,
.page-business-tools .business-contact h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-business-tools .contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.page-business-tools .contact-items>div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.page-business-tools .contact-items i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.page-business-tools .analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.page-business-tools .chart-card,
.page-business-tools .analytics-grid .stats-card {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.page-business-tools .chart-card h4,
.page-business-tools .analytics-grid .stats-card h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-text);
}

.page-business-tools .rating-bar {
    height: 14px;
    background: rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    overflow: hidden;
}

.page-business-tools .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}

.page-business-tools .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-business-tools .review-item {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.page-business-tools .review-item h5 {
    margin: 8px 0 6px 0;
}

.page-business-tools .review-rating i {
    color: #f59e0b;
}

.page-business-tools .review-rating i.empty {
    color: rgba(148, 163, 184, 0.55);
}

.page-business-tools .admin-controls {
    display: grid;
    gap: 12px;
}

.page-business-tools .control-section {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
}

.page-business-tools .control-section h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-text);
}

.page-business-tools .inline-form {
    display: inline;
}

.page-business-tools .status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.04);
    color: var(--gray-text);
    white-space: nowrap;
}

.page-business-tools .status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.page-business-tools .status-badge.status-active {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.page-business-tools .status-badge.status-inactive {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.page-business-tools .status-badge.status-approved {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.page-business-tools .status-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.page-business-tools .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.04);
}

.page-business-tools .badge-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.page-business-tools .badge-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.page-business-tools .no-data {
    text-align: center;
    padding: 14px 10px;
    color: var(--gray-text);
}

.page-business-tools .form-row {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 900px) {
    .page-business-tools .tools-layout {
        grid-template-columns: 1fr;
    }

    .page-business-tools .tools-sidebar {
        position: static;
    }

    .page-business-tools .detail-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-business-tools .main-content {
        padding-top: 74px;
        padding-bottom: 28px;
    }

    .page-business-tools .page-header {
        padding: 14px;
        border-radius: 14px;
    }

    .page-business-tools .tools-main {
        padding: 14px;
        border-radius: 14px;
    }

    /* Sidebar: compact cards and easy scrolling */
    .page-business-tools .sidebar-section {
        padding: 14px;
        border-radius: 14px;
    }

    .page-business-tools .businesses-list-compact {
        gap: 8px;
    }

    /* Tabs: single-row scroll for mobile */
    .page-business-tools .tabs-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }

    .page-business-tools .tabs-navigation::-webkit-scrollbar {
        height: 6px;
    }

    .page-business-tools .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Remove two buttons on mobile: Analytics + Reviews */
    .page-business-tools .tab-btn[data-tab="analytics"],
    .page-business-tools .tab-btn[data-tab="reviews"] {
        display: none;
    }

    .page-business-tools .business-meta {
        gap: 8px;
    }

    .page-business-tools .business-meta>span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .page-business-tools .header-logo {
        width: 74px;
        height: 74px;
    }
}

.job-chat-header {
    background: #9a3412;
    color: #fff;
    padding: 18px 22px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.job-chat-title {
    font-weight: 800;
    font-size: 1.05rem;
}

.job-chat-subtitle {
    opacity: 0.9;
    margin-top: 4px;
}

.job-chat-header__right {
    display: flex;
    gap: 10px;
}

.job-chat-back {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.job-chat-back:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.job-chat-messages {
    flex: 1;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.job-chat-message.own {
    align-items: flex-end;
}

.job-chat-bubble {
    max-width: 70%;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 10px 12px;
    border-radius: 14px;
}

.job-chat-message.own .job-chat-bubble {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.25);
}

.job-chat-text {
    font-size: 0.9rem;
    color: var(--dark-text);
    white-space: pre-wrap;
}

.job-chat-meta {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 4px;
}

.job-chat-input {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    padding: 12px;
}

.job-chat-form {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .job-chat-shell {
        margin: 80px auto 24px auto;
        height: calc(100vh - 120px);
    }

    .job-chat-bubble {
        max-width: 92%;
    }
}

.form-group-inline label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-inline label input {
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ============ STAR RATING ============ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    margin: 0;
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: var(--transition);
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #fbbf24;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 40px 0 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ============ FORUM ============ */
.forum-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 18px;
}

.forum-title {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-subtitle {
    margin-top: 6px;
    color: var(--gray-text);
    font-weight: 500;
}

.forum-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-section {
    margin-top: 18px;
}

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

.forum-section-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.forum-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.forum-category-card {
    display: block;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.forum-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.forum-category-name {
    font-weight: 900;
    margin-bottom: 6px;
}

.forum-category-meta {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.forum-category-desc {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.5;
}

.forum-post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.forum-post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.forum-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.forum-post-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.forum-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.forum-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
    font-weight: 800;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.forum-muted {
    color: var(--gray-text);
    font-weight: 700;
}

.forum-post-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--gray-text);
    font-weight: 800;
    white-space: nowrap;
}

.forum-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.forum-empty {
    background: var(--light-bg);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 14px;
    padding: 18px;
    color: var(--gray-text);
    font-weight: 700;
}

.forum-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px 0;
    font-weight: 800;
}

.forum-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.forum-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.forum-filter {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px;
}

/* TinyMCE base styling */
.tox.tox-tinymce {
    border-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

/* Quill editor (used for business tools rich text) */
.quill-wrap {
    display: block;
}

/* Quill: make text larger + editor easier to click/tap */
.quill-wrap .ql-container.ql-snow {
    font-size: 16px;
}

.quill-wrap .ql-editor {
    font-size: 16px;
    line-height: 1.65;
    padding: 14px 14px;
}

.quill-wrap .ql-editor p,
.quill-wrap .ql-editor li {
    margin: 0 0 0.6em 0;
}

.quill-wrap .ql-toolbar.ql-snow {
    padding: 10px 10px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-formats {
    margin-right: 10px;
}

.quill-wrap .ql-toolbar.ql-snow button {
    width: 34px;
    height: 34px;
    padding: 6px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-picker {
    font-size: 14px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-picker-label {
    padding: 6px 10px;
}

.quill-wrap .ql-toolbar.ql-snow {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
}

.quill-wrap .ql-container.ql-snow {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95);
    min-height: 150px;
}

@media (max-width: 640px) {
    .quill-wrap .ql-container.ql-snow {
        min-height: 120px;
    }

    .quill-wrap .ql-container.ql-snow,
    .quill-wrap .ql-editor {
        font-size: 16px;
    }

    .quill-wrap .ql-toolbar.ql-snow button {
        width: 38px;
        height: 38px;
    }
}

.forum-post-view {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.forum-post-view-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-post-view-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.forum-post-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Smaller buttons inside forum post view (keeps global buttons unchanged) */
.forum-post-view .btn,
.forum-post-view .nav-link,
.forum-comments .btn {
    padding: 8px 12px;
    font-size: 13px;
}

.forum-post-view .btn {
    border-radius: 10px;
}

.forum-post-view .btn i,
.forum-comments .btn i {
    font-size: 0.95em;
}

.forum-post-body {
    margin-top: 16px;
    line-height: 1.75;
    font-size: 15px;
}

.forum-post-body h1,
.forum-post-body h2,
.forum-post-body h3 {
    margin: 12px 0 10px 0;
    line-height: 1.25;
}

.forum-post-body p {
    margin: 10px 0;
}

.forum-post-body blockquote {
    border-left: 4px solid rgba(37, 99, 235, 0.35);
    padding-left: 12px;
    color: var(--gray-text);
    font-weight: 600;
    margin: 12px 0;
}

.forum-post-body pre {
    background: #0b1220;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    overflow-x: auto;
}

.forum-post-body a {
    color: var(--primary-color);
}

.forum-attachments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.forum-attachment {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: var(--light-bg);
}

.forum-attachment img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.forum-attachment video {
    width: 100%;
    height: 180px;
    display: block;
    background: #000;
}

.forum-attachment-manage {
    position: relative;
    cursor: pointer;
    display: block;
}

.forum-attachment-manage input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    z-index: 2;
}

.forum-attachment-remove {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.forum-form-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.forum-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.forum-editor {
    background: #fff;
    border-radius: 12px;
}

.forum-editor .ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    min-height: 320px;
}

.forum-editor .ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.forum-editor-lite {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.forum-editor-lite-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.forum-editor-lite-toolbar .btn {
    padding: 8px 10px;
    line-height: 1;
}

.forum-editor-lite-area {
    min-height: 320px;
    padding: 12px;
    outline: none;
}

textarea#body_text.form-control {
    min-height: 320px;
}

.forum-attachments-upload {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
}

.forum-attachments-upload label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.forum-attachments-upload label i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.forum-attachments-upload .form-control[type="file"] {
    background: #fff;
}

.forum-attachments-upload .forum-muted {
    font-weight: 600;
}

.forum-post-thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
}

.forum-post-excerpt {
    margin-top: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.forum-comments {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.forum-comment-form {
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px;
    color: #0f172a;
    font-weight: 400;
}

.forum-comment-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.forum-comment-list {
    margin-top: 14px;
}

.forum-comments-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-comment {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

/* Reply thread cue: subtle left rail for nested comments */
.forum-comment[style*="margin-left"] {
    border-left: 3px solid rgba(37, 99, 235, 0.18);
}

.forum-comment-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.forum-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.forum-action-menu {
    position: relative;
    flex: 0 0 auto;
}

.forum-action-trigger {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-action-trigger:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary-color);
}

.forum-action-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    z-index: 20;
}

.forum-action-menu.open .forum-action-dropdown {
    display: block;
}

.forum-action-dropdown form {
    margin: 0;
}

.forum-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-action-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
}

.forum-action-item.danger {
    color: #ef4444;
}

.forum-action-item.danger:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;
}

.forum-comment-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #0f172a;
    /* darker text for better contrast */
    font-weight: 400;
    /* lighter weight for comments */
}

.forum-comment-body p {
    margin: 8px 0;
}

.forum-comment-body a {
    color: var(--primary-color);
}

.forum-comment-body blockquote {
    border-left: 3px solid rgba(37, 99, 235, 0.25);
    padding-left: 10px;
    color: var(--gray-text);
    font-weight: 600;
    margin: 10px 0;
}

.forum-comment-body pre {
    background: #0b1220;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 10px;
}

.forum-comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.forum-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
}

.forum-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    font-weight: 900;
    line-height: 1.4;
    font-size: 12px;
}

.forum-like-btn.is-liked {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary-color);
}

.forum-comment-actions .btn {
    padding: 8px 10px;
    line-height: 1;
}

@media (max-width: 640px) {
    .forum-post-card {
        align-items: flex-start;
    }

    .forum-post-thumb {
        width: 64px;
        height: 64px;
    }

    .forum-comment {
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .forum-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .forum-attachments {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .forum-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-category-header {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-categories {
        grid-template-columns: 1fr;
    }

    .forum-attachments {
        grid-template-columns: 1fr;
    }

    .forum-attachment img,
    .forum-attachment video {
        height: 220px;
    }
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.hero-search button {
    padding: 15px 30px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;
    }
}

/* ============ STATS SECTION ============ */
.stats-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-text);
    font-size: 16px;
    margin-top: 10px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    flex-grow: 1;
    padding: 0 0 40px 0;
}

.admin-content {
    background-color: var(--admin-bg-color);
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray-text);
}

/* ============ BUSINESSES GRID ============ */
.search-filters {
    margin-bottom: 40px;
}

/* Page-scoped tweaks for Businesses listing */
.page-businesses .business-card>a {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}



.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 15px;
}

/* Collapsible Businesses Filters (click to show) */
.businesses-filters-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 28px;
}

.businesses-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.businesses-filters-toggle {
    appearance: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.businesses-filters-toggle:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.businesses-clear {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 600;
}

.businesses-clear:hover {
    color: var(--primary-color);
}

.businesses-filters-body {
    display: none;
    margin-top: 12px;
}

.businesses-filters-card.is-open .businesses-filters-body {
    display: block;
}

.businesses-filters-body .search-filters {
    margin-bottom: 0;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Businesses listing: tighter desktop card layout */
@media (min-width: 992px) {
    .page-businesses .businesses-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
        justify-content: center;
        gap: 18px;
    }

    .page-businesses .card-image {
        height: 170px;
    }

    .page-businesses .card-content {
        padding: 14px;
    }

    .page-businesses .card-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
}

.business-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-businesses .card-image {
    background: #ffffff;
}

.page-businesses .card-image img {
    object-fit: contain;
    padding: 10px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
    background-color: var(--light-bg);
}

.badge-featured,
.badge-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fbbf24;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-verified {
    background-color: var(--success-color);
    color: #ffffff;
}

.badge-verified-large {
    background-color: var(--success-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category {
    color: var(--gray-text);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.stars i {
    color: #fbbf24;
}

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

.review-count {
    color: var(--gray-text);
    font-size: 12px;
}

.location {
    color: var(--gray-text);
    font-size: 13px;
    margin-top: auto;
}

.location i {
    margin-right: 5px;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-info {
    color: var(--gray-text);
    font-size: 14px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.empty-state p {
    color: var(--gray-text);
}

/* ============ AUTH PAGES ============ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card .subtitle {
    color: var(--gray-text);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.login-prompt {
    text-align: center;
    color: var(--gray-text);
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* ============ BUSINESS DETAILS ============ */
.business-theme {
    --biz-primary: var(--primary-color);
    --biz-accent: var(--primary-color);
}

.business-theme .business-header {
    border-top: 4px solid var(--biz-primary);
}

.business-theme .business-header-image {
    position: relative;
}

.business-theme .business-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
    .business-theme .business-header-image::after {
        background: linear-gradient(135deg,
                color-mix(in srgb, var(--biz-primary) 18%, transparent) 0%,
                rgba(0, 0, 0, 0.35) 100%);
    }
}

.business-header {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.business-header-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--light-bg);
    position: relative;
    border-radius: 16px 16px 0 0;
}

.business-header-image img,
.placeholder-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #cbd5e1;
}

.business-header-content {
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
}

.business-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
    flex-shrink: 0;
    margin-top: -98px;
    border: 5px solid rgba(255, 255, 255, 0.98);
    outline: 2px solid rgba(30, 64, 175, 0.12);
    position: relative;
}

.business-logo img,
.placeholder-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #ffffff;
    border-radius: 50%;
}

.placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
}

.business-info-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-featured-large {
    background-color: #fbbf24;
    color: #111827;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.business-theme .badge-featured-large {
    background-color: color-mix(in srgb, var(--biz-primary) 14%, #fbbf24);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.business-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 14px;
}

.business-meta-row .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.business-meta-row i {
    color: var(--primary-color);
}

.business-theme .business-meta-row i {
    color: var(--biz-primary);
}

.stars-large {
    display: flex;
    gap: 3px;
    font-size: 20px;
}

.stars-large i {
    color: #fbbf24;
}

.rating-value-large {
    font-weight: 700;
    font-size: 18px;
}

.review-count-large {
    color: var(--gray-text);
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.business-theme .category-badge {
    color: var(--biz-primary);
    border: 1px solid color-mix(in srgb, var(--biz-primary) 25%, transparent);
}

.business-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.business-contact .btn {
    justify-content: center;
}

/* Indeed-style company tabs */
.company-tabs {
    position: sticky;
    top: calc(var(--nav-height) + 8px);
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 8px;
    margin: -18px 0 22px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.company-tabs-brand {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 800;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.company-tabs-brand:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.10);
}

.company-tabs-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.company-tabs-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-tabs-brand-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-tabs-links {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Business detail: promote tabs to main header (desktop) */
@media (min-width: 769px) {
    body.biz-promote-tabs .navbar {
        opacity: 0;
        transform: translateY(-110%);
        pointer-events: none;
    }

    body.biz-promote-tabs .company-tabs {
        top: 0;
        z-index: 1001;

        /* Match default header styling */
        background: var(--nav-bg);
        border: none;
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border-radius: 0;
        padding: 10px 20px;
        margin-top: 0;
        margin-bottom: 22px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    body.biz-promote-tabs .company-tabs-links {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        justify-content: center;
        flex: 0 1 auto;
    }

    body.biz-promote-tabs .company-tabs-brand {
        display: inline-flex;
    }

    body.biz-promote-tabs .company-tabs-brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .company-tabs-links {
        width: 100%;
    }
}

.company-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 13px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.company-tab:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
}

.company-tab.active {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
}

.business-theme .company-tab:hover {
    border-color: color-mix(in srgb, var(--biz-primary) 25%, transparent);
    background: color-mix(in srgb, var(--biz-primary) 8%, white);
    color: var(--biz-primary);
}

.business-theme .company-tab.active {
    border-color: color-mix(in srgb, var(--biz-primary) 35%, transparent);
    background: color-mix(in srgb, var(--biz-primary) 12%, white);
    color: var(--biz-primary);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.business-theme .tab-count {
    background: color-mix(in srgb, var(--biz-primary) 12%, white);
    color: var(--biz-primary);
}

/* Offset anchors for sticky navbar + tabs */
#snapshot,
#whyJoinUs,
#reviews,
#salaries,
#jobs,
#qa,
#interviews {
    scroll-margin-top: calc(var(--nav-height) + 90px);
}

.company-jobs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.company-job {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    transition: var(--transition);
}

.company-job:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.company-job-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.company-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 13px;
}

.company-job-meta i {
    margin-right: 6px;
}

/* Business sub-pages */
.biz-richtext {
    color: var(--dark-text);
    line-height: 1.75;
}

.biz-richtext p {
    margin: 10px 0;
}

.biz-richtext ul,
.biz-richtext ol {
    padding-left: 18px;
    margin: 10px 0;
}

.biz-richtext blockquote {
    border-left: 3px solid rgba(37, 99, 235, 0.25);
    padding-left: 12px;
    margin: 12px 0;
    color: var(--gray-text);
    font-weight: 600;
}

.biz-hours {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.biz-hours td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 14px;
}

.biz-hours tr:last-child td {
    border-bottom: none;
}

.biz-hours td:first-child {
    font-weight: 800;
    color: var(--dark-text);
    width: 45%;
}

.biz-hours td:last-child {
    color: var(--gray-text);
    font-weight: 700;
}

.biz-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.biz-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.biz-product-card:hover {
    /* Removed hover effects */
}

.biz-product-img {
    height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.biz-product-body {
    padding: 12px;
}

.biz-product-title {
    font-weight: 700;
    margin: 0 0 8px 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biz-product-price {
    font-weight: 800;
    color: #0ea5a0;
    margin-bottom: 8px;
}

.biz-product-stock {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 12px;
}

/* Product card badges */
.biz-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-text);
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.biz-product-img {
    position: relative;
}

.biz-product-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.9);
}

.business-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Business detail page: compact variant (used by pages/business-detail.php) */
body.biz-detail-compact .business-header-image {
    height: 240px;
}

body.biz-detail-compact .business-header-content {
    padding: 28px;
    gap: 22px;
}

body.biz-detail-compact .business-logo {
    width: 120px;
    height: 120px;
    margin-top: -82px;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 1);
    outline-width: 2px;
}

body.biz-detail-compact .business-logo img {
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
}

body.biz-detail-compact .company-tabs-brand-logo {
    background: #ffffff;
}

body.biz-detail-compact .company-tabs-brand-logo img {
    object-fit: contain;
    padding: 2px;
    background: #ffffff;
}

body.biz-detail-compact .business-info-header h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

body.biz-detail-compact .badge-featured-large {
    padding: 5px 10px;
    font-size: 11px;
}

body.biz-detail-compact .stars-large {
    font-size: 18px;
}

body.biz-detail-compact .rating-value-large {
    font-size: 16px;
}

body.biz-detail-compact .review-count-large {
    font-size: 13px;
}

body.biz-detail-compact .business-meta-row {
    font-size: 13px;
    margin-bottom: 10px;
}

body.biz-detail-compact .category-badge {
    padding: 5px 10px;
    font-size: 12px;
}

body.biz-detail-compact .business-contact .btn,
body.biz-detail-compact .business-details-grid .btn,
body.biz-detail-compact .reviews-section .btn {
    font-size: 13px;
    padding: 10px 14px;
}

body.biz-detail-compact .company-tab {
    padding: 8px 10px;
    font-size: 12px;
}

body.biz-detail-compact .tab-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
}

body.biz-detail-compact .business-details-grid {
    gap: 28px;
    margin-bottom: 30px;
}

body.biz-detail-compact .business-section {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}

body.biz-detail-compact .business-section h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

body.biz-detail-compact .info-grid {
    gap: 14px;
}

body.biz-detail-compact .info-item .label {
    font-size: 12px;
}

body.biz-detail-compact .info-item .value {
    font-size: 14px;
}

body.biz-detail-compact .biz-richtext {
    font-size: 14px;
    line-height: 1.65;
}

body.biz-detail-compact .biz-richtext p {
    margin: 8px 0;
}

body.biz-detail-compact .company-job {
    padding: 12px;
}

body.biz-detail-compact .company-job-title {
    font-size: 14px;
}

body.biz-detail-compact .company-job-meta {
    font-size: 12px;
}

body.biz-detail-compact .reviews-section {
    padding: 20px;
}

body.biz-detail-compact .reviews-section h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

body.biz-detail-compact .btn-review-action {
    padding: 5px 10px;
    font-size: 11px;
}

body.biz-detail-compact .edit-review-form label {
    font-size: 13px;
}

body.biz-detail-compact .edit-review-form .form-control {
    font-size: 13px;
    padding: 9px;
}

body.biz-detail-compact .form-actions button {
    padding: 9px 14px;
    font-size: 13px;
}

.business-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.business-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-item .value {
    color: var(--dark-text);
    font-size: 16px;
}

.star-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 15px;
    align-items: center;
}

.stars-small {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.stars-small i {
    color: #fbbf24;
}

.progress-bar {
    height: 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.business-theme .progress-fill {
    background-color: var(--biz-primary);
}

.breakdown-row .count {
    text-align: right;
    color: var(--gray-text);
    font-size: 14px;
}

/* ============ REVIEW FORM ============ */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form .form-group label {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .business-details-grid {
        grid-template-columns: 1fr;
    }

    .business-header-content {
        grid-template-columns: 1fr;
    }

    .business-contact {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .business-header-content {
        padding: 20px;
    }

    .business-logo {
        width: 120px;
        height: 120px;
        margin-top: -70px;
        border-radius: 14px;
    }

    .business-info-header h1 {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ REVIEWS SECTION ============ */
.reviews-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reviews-section h2 {
    font-size: 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.stars-review {
    display: flex;
    gap: 2px;
    font-size: 13px;
    margin-bottom: 5px;
}

.stars-review i {
    color: #fbbf24;
}

.review-date {
    color: var(--gray-text);
    font-size: 13px;
}

.review-title {
    font-size: 16px;
    margin: 10px 0;
    color: var(--dark-text);
}

.review-text {
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-footer {
    display: flex;
    gap: 10px;
}

.vote-form {
    display: flex;
    gap: 10px;
}

/* ============ FEATURED SECTION ============ */
.featured-section,
.top-rated-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-section h2,
.top-rated-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 60px 0;
    text-align: left;
}

/* Home page CTA: use a distinct palette */
.cta-section-home {
    background: linear-gradient(135deg, #f97316 0%, #7c2d12 100%);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text h2 {
    line-height: 1.15;
}

.cta-text p {
    max-width: 52ch;
}

.cta-media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.cta-media img {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

/* ============ HERO IMAGE SECTION ============ */
.hero-image-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.hero-image-section img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.cta-section .cta-buttons {
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .cta-section {
        text-align: center;
    }

    .cta-card {
        flex-direction: column-reverse;
        padding: 30px 22px;
        gap: 22px;
    }

    .cta-section .cta-buttons {
        justify-content: center;
    }

    .cta-media {
        flex: 0 0 auto;
    }

    .cta-text p {
        max-width: none;
    }
}

/* ============ FOOTER ============ */
.footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #d1d5db;
    font-size: 14px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .businesses-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .business-card {
        min-height: auto;
    }

    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 15px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    /* Businesses: prioritize readability over tiny columns */
    .page-businesses .businesses-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .auth-card {
        padding: 30px 20px;
    }

    .business-section {
        padding: 20px;
    }

    .review-form .form-group {
        margin-bottom: 15px;
    }

    .stats-grid {
        gap: 20px;
    }

    .admin-content .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-text);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.rounded {
    border-radius: 6px;
}

.shadow {
    box-shadow: var(--shadow);
}

/* ============ PRODUCTS GRID ============ */
.products-category-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.products-category-section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
}

.section-header h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.section-header h2 i {
    color: #3b82f6;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
}

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.view-all-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(2px);
}

.section-subtitle {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Mobile-friendly product grid adjustments */
@media (max-width: 800px) {
    .biz-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .biz-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .biz-product-img {
        height: 120px;
    }

    .biz-product-title {
        font-size: 12px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

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

@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    /* Removed hover effects */
}

.product-card:hover::before {
    /* Removed hover effects */
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    max-height: 160px;
    border-bottom: 1px solid #e2e8f0;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    height: 100%;
}

.product-card:hover .product-image-wrapper img {
    /* Removed hover effects */
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 3rem;
    border-radius: 12px;
}

/* Enhanced Badges */
.badge {
    position: absolute;
    padding: 3px 7px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.badge-featured {
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
}

.badge-featured i {
    font-size: 0.8rem;
}

.badge-discount {
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: bounce 1s infinite;
}

.badge-stock {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 14px 28px;
    font-size: 0.9rem;
    border-radius: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

@media (max-width: 767px) {
    .product-name {
        font-size: 0.85rem;
        font-weight: 600;
    }
}

.product-card:hover .product-name {
    /* Removed hover effects */
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .product-rating {
        font-size: 0.75rem;
    }
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating .stars i {
    font-size: 0.65rem;
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.product-rating .stars .far {
    color: #e2e8f0;
}

.rating-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.85rem;
}

.review-count {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.product-price {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.price-current {
    font-size: 0.95rem;
    font-weight: 800;
    color: #059669;
    text-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

@media (max-width: 767px) {
    .price-current {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* Empty State */
.empty-products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-text);
    font-size: 1.05rem;
}

/* CTA Section Updates */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1833a0;
}

/* Detail Header */
.detail-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
}

.header-content .subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Detail Card */
.detail-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.card-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Business Image */
.business-image-container {
    width: 100%;
    height: 300px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-large {
    text-align: center;
    color: #9ca3af;
}

.placeholder-large i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.placeholder-large p {
    margin: 0;
    font-size: 14px;
}

/* Info Group */
.info-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
    max-width: 60%;
    text-align: right;
}

.info-value a {
    color: #2563eb;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Status Section */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-badge-wrapper {
    display: flex;
    justify-content: center;
}

.badge-lg {
    padding: 12px 24px !important;
    font-size: 14px !important;
}

.status-info {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.status-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #1f2937;
}

.text-success {
    color: #22c55e !important;
}

.text-danger {
    color: #ef4444 !important;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stats Grid */
.admin-content .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.stat-value.text-sm {
    font-size: 14px;
}

.rating-number {
    display: block;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    font-size: 14px;
    color: #fbbf24;
}

/* Seller Card */
.seller-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-color: #2563eb;
}

.seller-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #1f2937;
}

/* Description */
.description-text {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

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

.review-header h4 {
    margin: 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.review-rating i {
    color: #fbbf24;
}

.rating-value {
    color: #6b7280;
    font-weight: 600;
}

.review-title {
    margin: 8px 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.review-text {
    margin: 8px 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.review-date {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-content .stats-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-header {
        padding: 24px;
    }

    .detail-header h1 {
        font-size: 24px;
    }
}

.admin-content .btn-block {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

.transition {
    transition: var(--transition);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1833a0;
}

/* ============ PAGE HEADER ============ */
.page-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header .subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Businesses page banner header */
.page-businesses .page-header {
    position: relative;
    overflow: hidden;
    text-align: left;
    border-bottom: 0;
    border-radius: 16px;
    margin: 12px 0 24px;
    padding: 46px 34px;
    background-image:
        linear-gradient(110deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.52) 45%, rgba(15, 23, 42, 0.28) 100%),
        url('../images/Selling_hero.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.page-businesses .page-header h1,
.page-businesses .page-header p {
    color: #ffffff;
    justify-content: flex-start;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.page-businesses .page-header h1 i {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .page-businesses .page-header {
        border-radius: 12px;
        padding: 32px 18px;
        margin: 8px 0 18px;
        background-position: center center;
    }

    .page-businesses .page-header h1 {
        justify-content: flex-start;
    }
}

/* ============ CONTENT SECTION ============ */
.content-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* ============ POLICY PAGES (Privacy Policy, Terms of Service) ============ */
.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

.policy-section p {
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.policy-section li {
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.policy-section li strong {
    color: var(--dark-text);
}

/* ============ FAQ PAGE ============ */
.faq-categories {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.faq-categories h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.category-list a i {
    font-size: 0.8rem;
}

.faq-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3,
.faq-item h4 {
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item h3 i,
.faq-item h4 i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-item ul {
    margin-left: 25px;
    margin-top: 10px;
}

.faq-item li {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-item li strong {
    color: var(--dark-text);
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-footer {
    margin-top: 40px;
}

/* ============ CONTACT SUPPORT PAGE ============ */
.support-info {
    padding: 10px 0;
}

.support-info h4 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-info h4 i {
    color: var(--primary-color);
}

.support-info p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.support-info a {
    color: var(--primary-color);
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.quick-links a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.quick-links a i {
    font-size: 0.8rem;
}

/* ============ JOIN US PAGE ============ */
.join-options {
    margin: 40px 0;
}

.join-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.join-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.join-card.featured {
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.join-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.join-card.featured .join-icon {
    color: var(--success-color);
}

.join-card h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-description {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.join-features {
    text-align: left;
    margin: 25px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.join-features h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-features ul {
    list-style: none;
    padding: 0;
}

.join-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-text);
}

.join-features li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.join-price {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: white;
}

.join-card.featured .join-price {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.join-price .price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.join-price .price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.comparison-section {
    margin: 60px 0;
}

.comparison-section h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.comparison-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background-color: var(--light-bg);
}

.comparison-table i.fa-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.join-faq {
    margin: 60px 0;
}

.join-faq h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.join-cta {
    margin: 60px 0;
}

.join-cta h2 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-cta p {
    color: var(--gray-text);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
}

/* ============ CONTACT US PAGE ============ */
.contact-info {
    padding: 10px 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.social-link.facebook {
    background-color: #1877f2;
    color: white;
}

.social-link.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.map-section {
    margin: 60px 0;
}

.map-section h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    background: var(--light-bg);
    padding: 100px;
    text-align: center;
    color: var(--gray-text);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ============ RESPONSIVE DESIGN FOR NEW PAGES ============ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .content-section {
        padding: 20px;
    }

    .faq-categories {
        position: static;
        margin-bottom: 20px;
    }

    .join-card {
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
    }

    .map-placeholder {
        padding: 50px 20px;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }
}

/* ============ MY BUSINESSES PAGE ============ */
.page-header.page-header-split {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.inline-form {
    display: inline;
}

/* ============ SELLER PRODUCTS THUMBNAILS ============ */
.seller-product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    display: block;
}

.seller-product-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.page-header.page-header-split h1 {
    justify-content: flex-start;
    margin: 0;
}

.businesses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.business-list-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 100px 1fr 150px auto;
    gap: 20px;
    align-items: center;
}

.business-list-item:hover {
    box-shadow: var(--shadow-lg);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.item-image img,
.item-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content h3 {
    font-size: 18px;
    margin: 0 0 6px 0;
    color: var(--dark-text);
}

.item-content .category {
    color: var(--gray-text);
    font-size: 13px;
    margin: 0 0 8px 0;
}

.item-content .location {
    color: var(--gray-text);
    font-size: 13px;
    margin: 0;
}

.item-stats {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.item-stats .stat {
    text-align: center;
    min-width: 60px;
}

.item-stats .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.item-stats .label {
    display: block;
    font-size: 12px;
    color: var(--gray-text);
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-actions .btn,
.item-actions button.btn {
    justify-content: center;
}

/* Modal (used by register business form) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.55);
}

.modal-content {
    background-color: #ffffff;
    margin: 60px auto;
    padding: 28px;
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    margin: 0 0 18px 0;
    color: var(--dark-text);
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .page-header.page-header-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .business-list-item {
        grid-template-columns: 80px 1fr;
    }

    .item-stats,
    .item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .page-header.page-header-split {
        align-items: center;
        text-align: center;
    }

    .page-header.page-header-split .btn {
        width: 100%;
    }

    .businesses-list {
        gap: 14px;
        margin-bottom: 24px;
    }

    .business-list-item {
        padding: 14px;
        gap: 14px;
        border-radius: 14px;
        grid-template-columns: 64px 1fr;
    }

    .item-image {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .item-content h3 {
        font-size: 16px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .item-content .category,
    .item-content .location {
        font-size: 12px;
    }

    .item-stats {
        justify-content: flex-start;
        gap: 14px;
    }

    .item-stats .value {
        font-size: 16px;
    }

    .item-stats .label {
        font-size: 11px;
    }

    .item-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-content: stretch;
    }

    .inline-form {
        display: block;
    }

    .item-actions .btn,
    .item-actions button.btn,
    .item-actions form {
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        margin: 12px auto;
        max-height: calc(100vh - 24px);
        overflow: auto;
        position: relative;
        border-radius: 16px;
    }

    .modal-content .close {
        position: absolute;
        top: 12px;
        right: 12px;
        float: none;
    }

    .modal-content h2 {
        padding-right: 44px;
    }
}

/* ============ ADMIN STYLES ============ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.admin-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.admin-section:hover {
    box-shadow: var(--shadow-lg);
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.admin-section h2 i {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 8px;
    font-size: 18px;
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background-color: var(--light-bg);
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 16px;
    text-align: left;
}

.admin-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--dark-text);
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}


/* ============ ADMIN BUSINESS CARDS ============ */
.business-card-admin {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.business-card-admin:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.business-card-admin .card-image {
    height: 160px;
    background-color: var(--light-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card-admin .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-admin .card-image .placeholder {
    font-size: 48px;
    color: var(--gray-text);
    opacity: 0.5;
}

.business-card-admin .card-badges {
    position: absolute;
    inset: 12px;
    pointer-events: none;
}

.business-card-admin .card-badges .badge {
    position: absolute;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status: Bottom Left (match Verified size) */
.business-card-admin .card-badges .badge-active,
.business-card-admin .card-badges .badge-pending,
.business-card-admin .card-badges .badge-inactive {
    top: auto;
    right: auto;
    bottom: 4px;
    left: 4px;
    font-size: 10px;
    padding: 3px 6px;
    line-height: 1;
    border-radius: 4px;
}

/* Featured: Top Right */
.business-card-admin .card-badges .badge-featured {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
}

/* Verified: Bottom Right (or Top Right under featured if featured exists) */
/* Ideally Verified is Top Right, but if Featured exists, we need to handle overlap */
.business-card-admin .card-badges .badge-verified {
    top: auto;
    left: auto;
    bottom: 4px;
    right: 4px;
    /* Added some spacing from edge */
    font-size: 10px;
    /* Smaller font */
    padding: 3px 6px;
    /* Smaller padding */
    line-height: 1;
    border-radius: 4px;
}

.business-card-admin .card-content {
    padding: 20px;
    flex-grow: 1;
}

.business-card-admin .card-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: var(--dark-text);
}

.business-card-admin .owner-name {
    color: var(--gray-text);
    font-size: 13px;
    margin-bottom: 16px;
}

.business-card-admin .card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-card-admin .detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.business-card-admin .detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.business-card-admin .detail-item .label {
    color: var(--gray-text);
}

.business-card-admin .detail-item .value {
    color: var(--dark-text);
    font-weight: 500;
}

.business-card-admin .card-actions {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    margin: 0;
    color: var(--dark-text);
}

.stat-info p {
    margin: 4px 0 0 0;
    color: var(--gray-text);
    font-size: 14px;
}

.admin-filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-filter-form .filter-group {
    flex: 1;
    min-width: 200px;
}

/* Badge colors */
.badge-featured {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-verified {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-pending {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background-color: #f3f4f6;
    color: #374151;
}

/* ============ JOBS PAGE (MOBILE FIRST) ============ */
.jobs-container {
    padding: 16px 16px;
}

.jobs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.jobs-title {
    margin: 0 0 6px 0;
}

.jobs-subtitle {
    margin: 0;
    color: var(--gray-text);
}

.jobs-filters-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-top: 12px;
}

.jobs-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.jobs-filters-toggle {
    appearance: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.jobs-filters-toggle:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.jobs-clear {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 600;
}

.jobs-clear:hover {
    color: var(--primary-color);
}

.jobs-filters-body {
    display: none;
}

.jobs-filters-card.is-open .jobs-filters-body {
    display: block;
}

.jobs-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.jobs-form-group {
    margin: 0;
}

.jobs-search-btn {
    width: 100%;
}

.jobs-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (max-width: 639px) {
    .jobs-header {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .jobs-header>div {
        width: 100%;
    }

    .jobs-title {
        margin-bottom: 4px;
    }
}

.jobs-empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.jobs-empty i {
    font-size: 2.5rem;
    color: var(--border-color);
}

.jobs-empty h2 {
    margin-top: 12px;
}

.jobs-empty p {
    color: var(--gray-text);
}

.jobs-job-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: var(--transition);
}

.jobs-job-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.job-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    line-height: 1.25;
}

.job-company {
    color: var(--gray-text);
    font-weight: 600;
    font-size: 14px;
}

.jobs-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.job-meta {
    margin-top: 10px;
    color: var(--gray-text);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}

.job-meta i {
    margin-right: 6px;
}

.job-desc {
    margin: 12px 0 0 0;
    color: var(--gray-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

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


.jobs-view-cta {
    pointer-events: none;
}

@media (min-width: 640px) {
    .jobs-container {
        padding: 32px 20px;
    }

    .jobs-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .jobs-search-btn {
        grid-column: 1 / -1;
        width: auto;
        justify-self: start;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .jobs-filters-bar {
        display: none;
    }

    .jobs-filters-body {
        display: block;
    }

    .jobs-filter-form {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    }

    .jobs-search-btn {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    .jobs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    .job-title {
        font-size: 18px;
    }
}

/* ============ MOBILE APP SHELL STYLES ============ */

/* Hide mobile-specific elements by default on desktop */
.mobile-nav {
    display: none;
}

/* Show search and other controls on desktop */
.navbar-mobile-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
}

/* Hide mobile search icon on desktop (only on desktop) */
@media (min-width: 769px) {
    .mobile-search-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* --- Hide original footer on mobile --- */
    .footer {
        display: none !important;
    }

    /* --- Sticky bottom navigation --- */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--nav-bg, #fff);
        border-top: 1px solid var(--nav-border, #e2e8f0);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        z-index: 999;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-decoration: none;
        color: var(--gray-text);
        font-size: 11px;
        font-weight: 600;
        padding-top: 6px;
        transition: color 0.2s ease, transform 0.1s ease;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 4px;
        width: 28px;
        text-align: center;
    }

    .mobile-nav-item.active {
        color: var(--primary-color);
    }

    /* --- Add padding to body to prevent overlap --- */
    body {
        padding-bottom: 60px;
        /* Same as .mobile-nav height */
    }

    /* --- Header mobile controls --- */
    .navbar-mobile-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3;
        /* Push to the far right */
    }

    .mobile-search-icon {
        display: inline-flex;
        color: var(--dark-text);
        font-size: 18px;
        padding: 8px;
        border-radius: 8px;
        text-decoration: none;
        line-height: 1;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-icon:hover {
        background: rgba(15, 23, 42, 0.06);
    }

    /* Re-order controls */
    .navbar-brand {
        order: 1;
    }

    .navbar-menu {
        order: 2;
    }

    .navbar-mobile-controls {
        order: 3;
    }

    /* Ensure the container uses the full width for ordering */
    .navbar .container {
        justify-content: space-between;
    }

    /* Stats Grid - Horizontal on Mobile */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Hide cart FAB on mobile */
    .cart-fab {
        display: none !important;
    }
}

/* ============ SEARCH MODAL STYLES ============ */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    width: 90%;
    max-width: 700px;
    padding: 40px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-search-modal {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.close-search-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.close-search-modal:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

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

.search-input {
    flex: 1;
    padding: 16px 20px;
    padding-right: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.search-input:focus {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    padding: 16px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.search-button i {
    font-size: 18px;
}

/* Search Suggestions */
.search-suggestions {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.search-suggestions p {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.search-suggestions ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-suggestions li {
    margin: 0;
}

.search-suggestions a {
    display: inline-block;
    padding: 10px 16px;
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-suggestions a:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.search-suggestions a:active {
    transform: translateY(0);
}

/* Search Results Loading State */
.search-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.search-loading.active {
    display: block;
}

/* Inline autocomplete (used by data-bmz-autocomplete inputs) */
.bmz-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 1000;
    overflow: hidden;
}

.bmz-autocomplete-list {
    max-height: 280px;
    overflow: auto;
}

.bmz-autocomplete-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    align-items: flex-start;
}

.bmz-autocomplete-item:hover,
.bmz-autocomplete-item.is-active {
    background: #f8fafc;
}

.bmz-autocomplete-icon {
    width: 18px;
    flex: 0 0 18px;
    color: #2563eb;
    margin-top: 2px;
}

.bmz-autocomplete-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bmz-autocomplete-primary {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmz-autocomplete-secondary {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ PRODUCT PAGE CART FAB ============ */
/* Apply marketplace styling to all cart-fab elements (product page gets same style) */
.cart-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
    z-index: 1200;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.cart-fab:hover {
    background: #fbbf24;
    color: #1e40af;
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.18);
}

.cart-fab-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbbf24;
    color: #1e40af;
    font-weight: 900;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.18);
}

/* Mobile Responsive Search Modal */
@media (max-width: 768px) {
    .search-modal.active {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .search-modal-content {
        width: 95%;
        padding: 28px 20px;
        border-radius: 16px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        padding: 14px 16px;
        padding-right: 45px;
        font-size: 16px;
        width: 100%;
    }

    .close-search-modal {
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

.search-button {
    padding: 14px 24px;
    width: 100%;
}

.search-suggestions ul {
    gap: 8px;
}

.search-suggestions a {
    padding: 8px 12px;
    font-size: 13px;
}
}

/* Keyboard Navigation Enhancement */
.search-suggestions a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Search History (if implemented) */
.search-history {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.search-history h3 {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-history h3::before {
    content: '🕒';
    font-size: 16px;
}

.search-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-history-item {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-history-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-history-item .remove-history {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.search-history-item .remove-history:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

/* Search Toggle Button Enhancements */
.search-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dark-text, #1e293b);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 18px;
}

.search-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.search-toggle:active {
    transform: scale(0.95);
}

/* Optional: Keyboard shortcut tooltip */
.search-toggle::after {
    content: 'Ctrl+K';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999;
}

.search-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -32px;
}

/* Adjust for macOS users */
@supports (-webkit-app-region: drag) {
    .search-toggle::after {
        content: '⌘K';
    }
}

/* ============ CHECKOUT PAGE MOBILE RESPONSIVE STYLES ============ */

/* Desktop layout - side by side */
@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1.5fr 0.8fr !important;
    }
}

/* Tablet and mobile - single column */
@media (max-width: 1023px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile optimizations - small screens */
@media (max-width: 768px) {
    main.main-content {
        padding-top: 0 !important;
        padding-bottom: 30px !important;
    }

    .container {
        padding: 0 12px !important;
    }

    /* Heading adjustments */
    main.main-content>.container>div:first-child h1 {
        font-size: 1.5rem !important;
        margin-bottom: 6px !important;
    }

    main.main-content>.container>div:first-child p {
        font-size: 13px !important;
    }

    /* Order Summary Card Mobile */
    main.main-content>.container>div:nth-child(n+3) {
        padding: 16px !important;
    }

    /* Forms and inputs */
    .form-control {
        font-size: 16px !important;
        padding: 12px 10px !important;
        border-radius: 8px !important;
    }

    /* Button sizing */
    .btn {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .btn-primary {
        width: 100% !important;
    }

    /* Grid items in order summary */
    div[style*="display: flex; justify-content: space-between; align-items: center; padding: 10px"] {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Seller payment options */
    div[style*="display:flex; gap: 10px; align-items: start; padding: 10px"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Order summary grid for items */
    div[style*="display: grid; gap: 10px;"] {
        gap: 8px !important;
    }

    /* Quick action buttons - stack properly on mobile */
    div[style*="grid-template-columns: 1fr 1fr; gap: 10px"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Payment method labels - better touch targets */
    label[style*="display:flex"] {
        padding: 12px !important;
        gap: 12px !important;
    }

    /* Seller info section */
    div[style*="display:flex; justify-content: space-between; gap: 12px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Sticky positioning - disable on mobile */
    div[style*="position: sticky"] {
        position: relative !important;
    }

    /* Text sizing */
    h2[style*="color: #1e3a8a; font-size: 18px"] {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    h3[style*="font-size: 15px"] {
        font-size: 14px !important;
    }

    /* Summary item layout */
    div[style*="display: flex; justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Input field spacing */
    div[style*="margin-bottom: 16px"] {
        margin-bottom: 12px !important;
    }

    div[style*="margin-bottom: 18px"] {
        margin-bottom: 14px !important;
    }

    /* Alert messages */
    .alert {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    /* Textarea adjustments */
    textarea.form-control {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Extra small screens - phones in portrait */
@media (max-width: 480px) {
    main.main-content>.container>div:first-child h1 {
        font-size: 1.25rem !important;
    }

    main.main-content>.container>div:first-child p {
        font-size: 12px !important;
    }

    .container {
        padding: 0 8px !important;
    }

    /* Card padding reduced */
    div[style*="background: white; border-radius: 12px; padding: 22px"] {
        padding: 14px !important;
    }

    /* Better spacing for lists */
    div[style*="display: grid; gap: 10px;"] {
        gap: 6px !important;
    }

    /* Two column grids become single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Button text wrapping */
    .btn {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Typography scaling */
    h2 {
        font-size: 15px !important;
    }

    h3 {
        font-size: 13px !important;
    }

    /* Reduced icon sizes */
    i[style*="font-size: 46px"] {
        font-size: 32px !important;
    }

    /* Summary price text */
    div[style*="color: #10b981; font-size: 14px"] {
        font-size: 13px !important;
    }

    div[style*="color: #10b981; font-size: 16px"] {
        font-size: 14px !important;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 14px 16px !important;
        min-height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Larger touch targets for radio buttons */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        cursor: pointer;
    }

    label {
        cursor: pointer;
    }
}

/* ============ CHECKOUT ITEM CARDS - INTERACTIVE ============ */

.checkout-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.checkout-item-card:hover {
    border-color: #2563eb !important;
    background-color: #f0f4f8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
    transform: translateY(-2px);
}

.checkout-item-card:active {
    transform: translateY(0);
}

/* Responsive adjustments for item cards on mobile */
@media (max-width: 768px) {
    .checkout-item-card {
        padding: 10px !important;
    }

    .checkout-item-card div[style*="display: flex; flex-direction: column"] {
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .checkout-item-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .checkout-item-card>div:last-child {
        width: 100% !important;
        text-align: left !important;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }
}

/* ============ PRODUCT DETAILS PAGE - RESPONSIVE GRID ============ */

/* Desktop: 2 columns */
@media (min-width: 1024px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

/* Tablet: 2 columns, reduced gap */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

/* Mobile: Single column layout */
@media (max-width: 767px) {
    .product-details-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
}

/* ============ FLASH SALES SECTION ============ */
.flash-sales-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 40px 20px 80px 20px;
    margin: 0 0 40px 0;
    border-top: 4px solid #ef4444;
    border-bottom: 4px solid #ef4444;
    position: relative;
    overflow: hidden;
}

.flash-sales-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.flash-sales-section .container {
    position: relative;
    z-index: 1;
}

.flash-sales-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.flash-sales-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.08em;
    width: fit-content;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.flash-badge i {
    animation: flash-icon 0.6s ease-in-out infinite;
    font-size: 18px;
}

@keyframes flash-icon {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3), 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4), 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.flash-subtitle {
    color: #7f1d1d;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.flash-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.flash-sale-card {
    background: linear-gradient(180deg, #fff 0%, #fffaf9 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
}

.flash-sale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
    opacity: 0.95;
}

.flash-sale-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.flash-sale-header-card {
    background: linear-gradient(90deg, rgba(255, 245, 238, 0.95), rgba(255, 250, 240, 0.95));
    padding: 18px 18px 16px 18px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.flash-sale-header-card h3 {
    margin: 0;
    color: #7f1d1d;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.countdown-badge {
    background: transparent;
    color: #111827;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.countdown-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    text-align: right;
}

.countdown-time {
    background: linear-gradient(90deg, #fff5f5, #fff7ed);
    padding: 8px 10px;
    border-radius: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: inset 0 -2px 6px rgba(239, 68, 68, 0.03);
}

.countdown-time span {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: #b91c1c;
}

.countdown-time {
    display: flex;
    gap: 3px;
}

.flash-products {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.flash-product-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #fffbfa);
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.flash-product-item:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transform: translateX(4px);
}

.flash-product-image {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.flash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

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

.flash-product-name {
    margin: 0 0 6px 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .flash-product-name {
        font-size: 12px;
        font-weight: 500;
    }
}

.flash-product-prices {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 700;
}

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

.flash-product-name {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .flash-product-name {
        font-size: 12px;
        font-weight: 500;
    }
}

.flash-product-prices {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flash-price {
    color: #dc2626;
    font-weight: 900;
    font-size: 16px;
}

@media (max-width: 767px) {
    .flash-price {
        font-size: 14px;
        font-weight: 800;
    }
}

.flash-original {
    color: #bbb;
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-sales-section {
        padding: 40px 12px;
        margin: 24px 0;
    }

    .flash-sales-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .flash-sales-grid {
        grid-template-columns: 1fr;
    }

    .flash-sale-card {
        border-radius: 10px;
    }

    .flash-product-item {
        padding: 8px;
    }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
    min-width: 22px;
}

.mobile-nav-item {
    position: relative;
}

/* ============ CART ICON OVERLAY ============ */
.cart-icon-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-icon-overlay:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.cart-icon-overlay:active {
    transform: scale(0.95);
}

.cart-icon-overlay i {
    font-size: 14px;
}

/* ============ MOBILE FONT SIZE ADJUSTMENTS ============ */
@media (max-width: 767px) {

    /* Reduce large heading sizes */
    .cart-page h1 {
        font-size: 1.8rem;
    }

    .cart-page h1 i {
        font-size: 1.6rem;
    }

    .cart-page .empty-state i {
        font-size: 3rem;
    }

    .cart-page .empty-state h2 {
        font-size: 1.5rem;
    }

    .marketplace-page .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .auth-card h1 {
        font-size: 1.8rem;
    }

    .business-info-header h1 {
        font-size: 1.8rem;
    }

    .detail-header h1 {
        font-size: 1.8rem;
    }

    /* Reduce section headings */
    .section-header h2,
    .forum-section-header h2,
    .business-section h2,
    .marketplace-page .marketplace-cta h2 {
        font-size: 1.5rem;
    }

    /* Reduce body text sizes */
    body {
        font-size: 14px;
    }

    .preloader-text {
        font-size: 1rem;
    }

    /* Button and form elements */
    .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Card content */
    .product-info h3,
    .business-name,
    .forum-post-title {
        font-size: 1rem;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* ============ PRODUCTS PAGE STYLES ============ */
.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.filter-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-title i {
    color: #3b82f6;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.price-inputs span {
    color: #6b7280;
    font-weight: 600;
}

.filter-options-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-group:hover {
    background: rgba(59, 130, 246, 0.05);
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group input {
    margin-right: 12px;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

.filter-actions {
    margin-top: 32px;
    display: grid;
    gap: 12px;
}

.filter-toggle-mobile {
    display: none;
    margin-left: auto;
}

.products-grid-container {
    min-height: 500px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .view-all-link {
        padding: 6px 12px;
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .view-all-link:hover {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
        color: #2563eb;
        transform: none;
    }
}

/* ============ NOTIFICATION SYSTEM ============ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    font-size: 1.2rem;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* ============ IMAGE MODAL ============ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.image-modal .modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.image-modal .modal-close:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.1);
}

.image-modal #modalImage {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .image-modal .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .image-modal .modal-close {
        top: -40px;
        font-size: 1.5rem;
    }
}

/* ============ CART COUNT BADGE ============ */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: cartCountPulse 0.3s ease;
}

@keyframes cartCountPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ============ LIVE SUPPORT CHAT WIDGET ============ */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.chat-widget.show {
    display: flex;
}

.chat-widget-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.chat-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.chat-widget-title i {
    font-size: 18px;
}

.chat-widget-open-full {
    color: #ffffff;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    margin-left: auto;
    margin-right: 6px;
}

.chat-widget-open-full:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-widget-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-widget-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 100%;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
}

.chat-message.support .message-avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.message-content {
    flex: 1;
    max-width: calc(100% - 48px);
}

.chat-message.user .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-text {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
}

.chat-message.support .message-text {
    background: #ffffff;
    color: #1e293b;
}

.message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.chat-widget-footer {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0 0 16px 16px;
}

.chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #f8fafc;
}

#chatInput:focus {
    border-color: #2563eb;
    background: #ffffff;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.chat-notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 20px;
        width: calc(100vw - 40px);
        height: 400px;
        max-width: 350px;
    }

    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 18px;
    }

    .chat-widget-header {
        padding: 14px 16px;
    }

    .chat-widget-body {
        padding: 12px;
    }

    .chat-widget-footer {
        padding: 12px 16px;
    }

    #chatInput {
        padding: 10px 14px;
        font-size: 13px;
    }

    .chat-send-btn {
        width: 36px;
        height: 36px;
    }
}

/* ============ SEARCH RESULTS PAGE ============ */
.search-results-page .main-content {
    background: #f8fafc;
    padding: 40px 0;
}

.search-results-page h1 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 800;
}

.search-results-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-results-list>h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.search-results-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.search-result-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.search-result-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.search-result-item .item-icon {
    font-size: 1.5rem;
    color: #2563eb;
    background: #dbeafe;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-item .item-content {
    flex: 1;
}

.search-result-item .item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.search-result-item .item-description {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.no-results h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.no-results p {
    color: #64748b;
    margin: 0;
}

/* ============ MODERN CONVERSATION/CHAT STYLES ============ */

/* Main chat container - full screen experience */
.chat-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8fafc;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Chat header - modern gradient design */
.chat-header-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.chat-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.chat-header-left-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.chat-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-back-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-avatar-modern {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.chat-avatar-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar-modern i {
    font-size: 24px;
    color: white;
}

.chat-avatar-modern::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-header-info-modern {
    flex: 1;
    min-width: 0;
}

.chat-header-info-modern h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-header-info-modern p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-info-modern p i {
    color: var(--primary-color);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Chat messages area - modern design */
.chat-messages-modern {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.chat-messages-modern::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-modern::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 3px;
}

.chat-messages-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Message bubbles - modern design */
.message-modern {
    display: flex;
    gap: 12px;
    max-width: 75%;
    animation: messageSlideInModern 0.4s ease-out;
    position: relative;
}

@keyframes messageSlideInModern {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-modern.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar-modern {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.message-avatar-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar-modern i {
    font-size: 16px;
    color: white;
}

.message-content-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 20px 20px 20px 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    word-wrap: break-word;
}

.message-modern.own .message-content-modern {
    background: var(--primary-color);
    color: white;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.message-modern.own .message-content-modern::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.message-content-modern::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-right: 8px solid rgba(255, 255, 255, 0.95);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.message-sender-modern {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.message-modern.own .message-sender-modern {
    color: rgba(255, 255, 255, 0.9);
}

.message-text-modern {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #1f2937;
}

.message-modern.own .message-text-modern {
    color: white;
}

.message-time-modern {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 6px;
    text-align: right;
    opacity: 0.7;
}

.message-modern.own .message-time-modern {
    color: rgba(255, 255, 255, 0.8);
}

/* Message attachments - modern design */
.message-attachments-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.message-attachment-modern {
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-attachment-modern:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.message-attachment-modern img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.message-attachment-modern:hover img {
    transform: scale(1.05);
}

.message-attachment-file-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.message-attachment-file-modern:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.message-modern.own .message-attachment-file-modern {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message-attachment-file-modern i {
    font-size: 20px;
    color: var(--primary-color);
}

.message-modern.own .message-attachment-file-modern i {
    color: white;
}

.message-attachment-file-modern span {
    font-size: 13px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat input area - modern design */
.chat-input-container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.chat-input-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.chat-input-wrapper-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.attachment-preview-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.attachment-item-modern {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.attachment-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-item-file-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    gap: 4px;
}

.attachment-item-file-modern i {
    font-size: 20px;
    color: var(--primary-color);
}

.attachment-item-file-modern span {
    font-size: 9px;
    color: #6b7280;
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}

.remove-attachment-modern {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.remove-attachment-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-input-modern {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 24px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    max-height: 100px;
    transition: all 0.3s ease;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1f2937;
    min-height: 48px;
}

.chat-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.chat-input-modern::placeholder {
    color: #9ca3af;
}

.chat-input-actions-modern {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.chat-attachment-btn-modern {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.chat-attachment-btn-modern:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-attachment-btn-modern input {
    display: none;
}

.chat-send-btn-modern {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.chat-send-btn-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

.chat-send-btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

/* Empty chat state - modern design */
.empty-chat-modern {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.empty-chat-modern i {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.empty-chat-modern h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.empty-chat-modern p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

/* ============ RESPONSIVE DESIGN FOR MODERN CHAT ============ */

/* Tablet styles */
@media (max-width: 768px) {
    .chat-header-modern {
        padding: 14px 16px;
    }

    .chat-avatar-modern {
        width: 44px;
        height: 44px;
    }

    .chat-header-info-modern h2 {
        font-size: 16px;
    }

    .chat-header-info-modern p {
        font-size: 12px;
    }

    .chat-messages-modern {
        padding: 16px;
        gap: 12px;
    }

    .message-modern {
        max-width: 85%;
        gap: 10px;
    }

    .message-content-modern {
        padding: 10px 14px;
        border-radius: 18px 18px 18px 4px;
    }

    .message-modern.own .message-content-modern {
        border-radius: 18px 18px 4px 18px;
    }

    .chat-input-container-modern {
        padding: 14px 16px;
    }

    .chat-input-modern {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 20px;
    }

    .chat-attachment-btn-modern,
    .chat-send-btn-modern {
        width: 44px;
        height: 44px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .chat-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }

    .chat-header-modern {
        padding: 12px 14px;
    }

    .chat-header-left-modern {
        gap: 10px;
    }

    .chat-back-btn {
        width: 36px;
        height: 36px;
    }

    .chat-avatar-modern {
        width: 40px;
        height: 40px;
    }

    .chat-avatar-modern i {
        font-size: 20px;
    }

    .chat-header-info-modern h2 {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-header-info-modern p {
        font-size: 11px;
    }

    .chat-action-btn {
        width: 36px;
        height: 36px;
    }

    .chat-messages-modern {
        padding: 12px;
        gap: 10px;
    }

    .message-modern {
        max-width: 90%;
        gap: 8px;
    }

    .message-avatar-modern {
        width: 32px;
        height: 32px;
    }

    .message-content-modern {
        padding: 8px 12px;
        border-radius: 16px 16px 16px 4px;
    }

    .message-modern.own .message-content-modern {
        border-radius: 16px 16px 4px 16px;
    }

    .message-text-modern {
        font-size: 14px;
    }

    .message-time-modern {
        font-size: 9px;
        margin-top: 4px;
    }

    .chat-input-container-modern {
        padding: 12px 14px;
        gap: 10px;
    }

    .chat-input-modern {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 18px;
        max-height: 80px;
    }

    .chat-attachment-btn-modern,
    .chat-send-btn-modern {
        width: 40px;
        height: 40px;
    }

    .attachment-item-modern {
        width: 50px;
        height: 50px;
    }

    .attachment-item-file-modern i {
        font-size: 16px;
    }

    .attachment-item-file-modern span {
        font-size: 8px;
    }

    .message-attachment-modern {
        max-width: 150px;
    }

    .message-attachment-file-modern {
        padding: 8px 10px;
        font-size: 12px;
    }

    .empty-chat-modern {
        padding: 40px 20px;
    }

    .empty-chat-modern i {
        font-size: 56px;
        margin-bottom: 20px;
    }

    .empty-chat-modern h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .empty-chat-modern p {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .chat-header-modern {
        padding: 10px 12px;
    }

    .chat-avatar-modern {
        width: 36px;
        height: 36px;
    }

    .chat-header-info-modern h2 {
        font-size: 14px;
    }

    .chat-messages-modern {
        padding: 10px;
        gap: 8px;
    }

    .message-modern {
        max-width: 95%;
        gap: 6px;
    }

    .message-content-modern {
        padding: 6px 10px;
        border-radius: 12px 12px 12px 4px;
    }

    .message-modern.own .message-content-modern {
        border-radius: 12px 12px 4px 12px;
    }

    .message-text-modern {
        font-size: 13px;
    }

    .chat-input-container-modern {
        padding: 10px 12px;
    }

    .chat-input-modern {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 16px;
    }

    .chat-attachment-btn-modern,
    .chat-send-btn-modern {
        width: 36px;
        height: 36px;
    }

    .attachment-item-modern {
        width: 45px;
        height: 45px;
    }
}

/* Image Modal Styles */
.image-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============ MOBILE INDEX PAGE STYLES ============ */

@media (max-width: 768px) {

    /* Mobile Hero Section */
    .mobile-hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 40px 0 60px;
        text-align: center;
    }

    .mobile-hero-content h1 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .mobile-hero-content p {
        font-size: 16px;
        opacity: 0.9;
        margin-bottom: 30px;
    }

    .mobile-hero-search {
        max-width: 320px;
        margin: 0 auto;
        position: relative;
    }

    .mobile-hero-search input {
        width: 100%;
        padding: 16px 50px 16px 20px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.95);
        color: #1e293b;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-hero-search input::placeholder {
        color: #64748b;
    }

    .mobile-hero-search button {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 8px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mobile-hero-search button:hover {
        background: #1d4ed8;
    }

    /* Mobile Stats Section */
    .mobile-stats {
        padding: 20px 0;
        background: #f8fafc;
    }

    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 320px;
        margin: 0 auto;
    }

    .mobile-stat-item {
        text-align: center;
        padding: 8px 4px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .mobile-stat-number {
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #2563eb;
        margin-bottom: 2px;
    }

    .mobile-stat-label {
        font-size: 10px;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Mobile Section Headers */
    .mobile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-section-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-section-header .mobile-section-subtitle {
        font-size: 14px;
        color: #64748b;
        margin: 0;
        font-weight: 500;
    }

    .mobile-view-all {
        color: #2563eb;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-view-all:hover {
        background: rgba(37, 99, 235, 0.1);
    }

    /* Mobile Flash Sales */
    .mobile-flash-sales {
        padding: 40px 0;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    }

    .mobile-flash-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mobile-flash-card {
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-flash-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .mobile-flash-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .mobile-countdown {
        background: #dc2626;
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
    }

    .mobile-countdown-time {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .mobile-flash-products {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-flash-product {
        text-decoration: none;
        color: inherit;
        background: #f8fafc;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.2s ease;
    }

    .mobile-flash-product:hover {
        transform: translateY(-2px);
    }

    .mobile-flash-image {
        position: relative;
        aspect-ratio: 1;
        overflow: hidden;
    }

    .mobile-flash-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-flash-discount {
        position: absolute;
        top: 6px;
        left: 6px;
        background: #dc2626;
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-flash-info {
        padding: 8px;
    }

    .mobile-flash-name {
        font-size: 11px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-flash-prices {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-flash-price {
        font-size: 12px;
        font-weight: 700;
        color: #1e293b;
    }

    .mobile-flash-original {
        font-size: 10px;
        color: #9ca3af;
        text-decoration: line-through;
    }

    .mobile-flash-footer {
        text-align: center;
    }

    .mobile-flash-footer .mobile-view-all {
        display: inline-block;
        padding: 8px 16px;
        background: #2563eb;
        color: white;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .mobile-flash-footer .mobile-view-all:hover {
        background: #1d4ed8;
    }

    /* Mobile Products Section */
    .mobile-products-section {
        padding: 40px 0;
    }

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

    .mobile-product-card {
        text-decoration: none;
        color: inherit;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .mobile-product-image {
        position: relative;
        aspect-ratio: 4/3;
        overflow: hidden;
        background: #f8fafc;
    }

    .mobile-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s ease;
    }

    .mobile-product-card:hover .mobile-product-image img {
        transform: scale(1.05);
    }

    .mobile-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        font-size: 24px;
    }

    .mobile-discount-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background: #dc2626;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-featured-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background: #f59e0b;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-product-info {
        padding: 12px;
    }

    .mobile-product-info h3 {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-product-price {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
    }

    .mobile-price-current {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
    }

    .mobile-price-original {
        font-size: 12px;
        color: #9ca3af;
        text-decoration: line-through;
    }

    .mobile-product-rating {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-stars {
        display: flex;
        gap: 2px;
    }

    .mobile-stars i {
        font-size: 12px;
        color: #f59e0b;
    }

    .mobile-rating-text {
        font-size: 12px;
        color: #64748b;
        font-weight: 600;
    }

    .mobile-product-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 6px;
        font-size: 10px;
        color: #64748b;
    }

    .mobile-meta-stars {
        font-size: 12px;
        color: #f59e0b;
        letter-spacing: -1px;
    }

    .mobile-meta-sold {
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
    }

    /* Mobile CTA Section */
    .mobile-cta-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-align: center;
    }

    .mobile-cta-card {
        max-width: 320px;
        margin: 0 auto;
        padding: 32px 24px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-cta-card h2 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .mobile-cta-card p {
        font-size: 16px;
        opacity: 0.9;
        margin-bottom: 24px;
    }

    .mobile-cta-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .mobile-btn {
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        display: inline-block;
        text-align: center;
        min-width: 120px;
    }

    .mobile-btn-primary {
        background: #2563eb;
        color: white;
    }

    .mobile-btn-primary:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

    .mobile-btn-secondary {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .mobile-btn-outline {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .mobile-btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    /* Mobile Empty State */
    .mobile-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #64748b;
    }

    .mobile-empty-state p {
        font-size: 16px;
        margin: 0;
    }
}

/* ============ PUSH NOTIFICATION STYLES ============ */
.push-notification-toggle {
    position: relative;
    transition: all 0.2s ease;
}

.push-notification-toggle.subscribed {
    color: #10b981;
}

.push-notification-toggle.subscribed i {
    animation: bell-ring 0.5s ease;
}

.push-notification-toggle.denied {
    color: #ef4444;
    opacity: 0.6;
}

.push-notification-toggle.denied:hover {
    opacity: 1;
}

.push-status-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-color);
}

.push-status-indicator.denied {
    background: #ef4444;
}

.push-status-indicator.pending {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes bell-ring {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Push notification permission modal */
.push-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.push-permission-modal .modal-content {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.push-permission-modal .modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.push-permission-modal .modal-header i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 12px;
}

.push-permission-modal .modal-body {
    text-align: center;
}

.push-permission-modal .modal-body h3 {
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.push-permission-modal .modal-body p {
    margin: 0 0 20px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.push-permission-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.push-permission-modal .btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.push-permission-modal .btn-primary {
    background: #10b981;
    color: white;
}

.push-permission-modal .btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.push-permission-modal .btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.push-permission-modal .btn-secondary:hover {
    background: var(--text-muted);
    color: var(--bg-color);
}

/* ============ MODERN CART PAGE REDESIGN ============ */
.cart-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
}

.cart-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Empty Cart State */
.empty-cart {
    background: white;
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-cart p {
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(59, 130, 246, 0.4);
}

/* Cart Error */
.cart-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fef5f5 100%);
    color: #7f1d1d;
    border: 2px solid #fca5a5;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
}

.cart-error i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Main Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-top: 32px;
}

/* Cart Items Section */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-header {
    background: white;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.cart-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #1f2937;
    font-weight: 800;
}

/* Seller Group */
.cart-seller-group {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.cart-seller-group:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.seller-info {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.8) 0%, rgba(236, 253, 245, 0.8) 100%);
    padding: 20px 32px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
}

.seller-info i {
    font-size: 1.3rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.seller-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.cart-items-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cart Item Card */
.cart-item-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border: 1.5px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.cart-item-img-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-img {
    transform: scale(1.08);
}

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

.cart-item-name {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #3b82f6;
}

/* Quantity Control */
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 8px;
    flex-shrink: 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    color: #374151;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0 4px;
}

/* Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.item-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    min-width: 100px;
    text-align: right;
}

.remove-item-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

/* Cart Summary Section */
.cart-summary-section {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-summary-box {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
}

.cart-summary-box h2 {
    margin: 0 0 24px 0;
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 800;
}

.summary-content {
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.6) 0%, rgba(241, 245, 249, 0.6) 100%);
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    color: #4b5563;
}

.summary-row span:first-child {
    font-weight: 600;
    color: #64748b;
}

.summary-value {
    font-weight: 700;
    color: #0f172a;
}

.summary-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.6);
    margin: 12px 0;
}

.total-row {
    padding: 16px 0 0 0;
    border-top: 2px solid rgba(59, 130, 246, 0.2);
    font-size: 1.2rem;
}

.summary-total {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
}

.checkout-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.4);
}

.checkout-btn:active {
    transform: translateY(-1px);
}

.continue-shopping-btn {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #f59e0b;
    border: 2px solid #f59e0b;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
}

/* ============ RECENTLY VIEWED PRODUCTS SECTION ============ */
.recently-viewed-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 2px solid rgba(226, 232, 240, 0.6);
}

.recently-viewed-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recently-viewed-section h2 i {
    color: #f59e0b;
    font-size: 1.8rem;
}

.viewed-products-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.viewed-products-grid::-webkit-scrollbar {
    height: 6px;
}

.viewed-products-grid::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.viewed-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.viewed-products-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.viewed-product-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    width: 140px;
    flex-shrink: 0;
}

.viewed-product-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-4px);
}

.viewed-product-image {
    width: 100%;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viewed-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.viewed-product-card:hover .viewed-product-image img {
    transform: scale(1.08);
}

.viewed-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viewed-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: #3b82f6;
}

.viewed-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.viewed-product-rating .stars {
    color: #fbbf24;
    font-size: 0.8rem;
    letter-spacing: -2px;
}

.viewed-product-rating .rating-value {
    color: #64748b;
    font-weight: 600;
}

/* ============ MOBILE LAYOUT REORDERING ============ */
@media (max-width: 768px) {
    .cart-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .cart-items-section {
        order: 2;
    }

    .cart-summary-section {
        order: 1;
        margin-bottom: 24px;
    }

    .viewed-products-grid {
        gap: 10px;
    }

    .viewed-product-card {
        padding: 10px;
        gap: 6px;
        width: 120px;
    }

    .viewed-product-image {
        height: 90px;
        border-radius: 7px;
    }

    .viewed-product-name {
        font-size: 0.85rem;
    }

    .viewed-product-price {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .recently-viewed-section {
        margin-top: 40px;
        padding: 24px 0;
    }

    .recently-viewed-section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .viewed-products-grid {
        gap: 8px;
    }

    .viewed-product-card {
        padding: 8px;
        gap: 4px;
        width: 100px;
    }

    .viewed-product-name {
        font-size: 0.8rem;
    }

    .viewed-product-price {
        font-size: 0.9rem;
    }

    .viewed-product-image {
        height: 75px;
        border-radius: 6px;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary-section {
        position: relative;
        top: auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .cart-wrapper {
        padding: 0 16px;
    }

    .empty-cart {
        padding: 60px 20px;
    }

    .empty-cart h2 {
        font-size: 1.5rem;
    }

    .cart-header {
        padding: 20px 24px;
    }

    .cart-header h1 {
        font-size: 1.5rem;
    }

    .cart-item-card {
        flex-wrap: wrap;
        gap: 16px;
    }

    .cart-item-img-wrapper {
        width: 100px;
        height: 100px;
    }

    .cart-item-name {
        font-size: 0.95rem;
    }

    .item-price {
        font-size: 1.1rem;
    }

    .item-total {
        width: 100%;
        text-align: left;
        font-size: 1.2rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary-box {
        padding: 24px 20px;
    }

    .cart-summary-box h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .summary-content {
        padding: 16px;
        margin-bottom: 20px;
    }

    .summary-row {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .summary-total {
        font-size: 1.2rem;
    }

    .checkout-btn {
        padding: 16px 20px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .continue-shopping-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .empty-cart {
        padding: 40px 16px;
    }

    .empty-cart-icon {
        font-size: 3.5rem;
    }

    .empty-cart h2 {
        font-size: 1.3rem;
    }

    .empty-cart p {
        font-size: 0.95rem;
    }

    .cart-header {
        padding: 16px 20px;
    }

    .cart-header h1 {
        font-size: 1.3rem;
    }

    .seller-info {
        padding: 16px 20px;
    }

    .cart-items-list {
        padding: 16px;
        gap: 12px;
    }

    .cart-item-card {
        padding: 16px;
    }

    .cart-item-img-wrapper {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .item-price {
        font-size: 1rem;
    }

    .cart-qty-control {
        gap: 8px;
        padding: 4px 6px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .qty-input {
        width: 40px;
        font-size: 1rem;
    }

    .remove-item-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .item-total {
        font-size: 1.1rem;
    }

    .cart-summary-box {
        padding: 20px 16px;
    }

    .cart-summary-box h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .summary-content {
        padding: 12px;
        margin-bottom: 16px;
    }

    .summary-row {
        padding: 6px 0;
        font-size: 0.9rem;
    }

    .summary-total {
        font-size: 1.1rem;
    }

    .checkout-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .continue-shopping-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .cart-error {
        padding: 16px 20px;
        font-size: 0.9rem;
        gap: 12px;
    }

    .cart-error i {
        font-size: 1.2rem;
    }
}

/* ============ MAIN FEATURES SECTION ============ */
.main-features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.marketplace-card::before {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.business-card::before {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.jobs-card::before {
    background: linear-gradient(90deg, #ec4899, #f97316);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.marketplace-card .feature-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.business-card .feature-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.jobs-card .feature-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.feature-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.feature-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-stats .stat {
    font-size: 0.9rem;
    font-weight: 600;
    color: #059669;
    background: #dcfce7;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #86efac;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #1d4ed8;
    gap: 12px;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* ============ FEATURED PRODUCTS SECTION ============ */
.featured-products-section {
    padding: 80px 0;
    background: white;
}

/* ============ FEATURED BUSINESSES SECTION ============ */
.featured-businesses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.business-image-wrapper {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.business-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-info {
    padding: 20px;
}

.business-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-category {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.business-rating .stars {
    display: flex;
    gap: 2px;
}

.business-rating .stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.business-rating .rating-value {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.business-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.business-location i {
    color: #9ca3af;
}

/* ============ FEATURED BUSINESSES SECTION ============ */
.featured-businesses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.featured-businesses-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-businesses-section .section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.featured-businesses-section .section-header h2 i {
    color: #3b82f6;
}

.featured-businesses-section .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.business-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.business-image-wrapper .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #9ca3af;
    font-size: 3rem;
}

.business-info {
    padding: 20px;
}

.business-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-category {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.business-rating .stars {
    display: flex;
    gap: 2px;
}

.business-rating .stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.business-rating .rating-value {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.business-rating .review-count {
    color: #6b7280;
    font-size: 0.8rem;
}

.business-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.business-location i {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .feature-stats {
        flex-direction: column;
        gap: 10px;
    }

    .businesses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Infinite Scroll Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.loading-indicator .spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.end-of-products {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 1rem;
}