/* Very small phones (under 360px) */
@media (max-width: 360px) {
    #store-detail-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    #store-detail-content .product-card {
        height: 320px;
    }

    #store-detail-content .product-img {
        height: 140px;
        padding: 12px;
    }

    #store-detail-content .product-name {
        font-size: 0.8rem;
        height: 34px;
    }

    #store-detail-content .current-price {
        font-size: 1.05rem;
    }

    #store-detail-content .add-to-cart-btn,
    #store-detail-content .btn-buy {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .store-info-section {
        padding: 15px;
    }

    .store-info-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .store-info-details h2 {
        font-size: 1.2rem;
    }
}

/* Tablet screens (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    #store-detail-content .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }

    #store-detail-content .product-card {
        height: 360px;
    }

    #store-detail-content .product-img {
        height: 160px;
    }

    #store-detail-content .product-name {
        font-size: 0.9rem;
        height: 40px;
    }
}

/* Desktop screens (769px and above) */
@media (min-width: 769px) {
    #store-detail-content .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 30px;
    }

    #store-detail-content .product-card {
        height: 380px;
    }

    #store-detail-content .product-img {
        height: 180px;
    }

    .store-info-section {
        padding: 30px;
    }

    .store-back-btn {
        display: none;
        /* Hide on desktop */
    }
}

/* Loading state */
.store-products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

/* Spinner animation is defined in style.css */

/* Store Detail Page Styles */
/* Section title styles are defined in style.css */

.store-info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 30px;
}

.store-info-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.store-info-details {
    flex: 1;
}

.store-info-details h2 {
    margin: 0 0 10px 0;
    color: var(--dark);
    font-size: 1.8rem;
}

.store-info-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.store-info-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.store-info-meta span i {
    color: var(--primary);
}

.store-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.store-products-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.store-products-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.prime-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF9900, #FFD700);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-img {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-img:hover img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.savings {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-category {
    display: inline-block;
    background: #f1f5f9;
    color: var(--gray);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.product-quantity {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.product-quantity.low {
    color: var(--danger);
    font-weight: 600;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.add-to-cart-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
}

.btn-buy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-buy:hover {
    background: color-mix(in srgb, var(--primary) 90%, black);
}

.store-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.store-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.store-empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.store-empty-state p {
    margin-bottom: 20px;
}

/* Spinner animation */
.product-card {
    min-height: 480px;
    /* Increase minimum height */
}

.product-content {
    padding-bottom: 25px;
    /* Add more padding at bottom */
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.product-actions button {
    padding: 10px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-height: 40px;
}

/* Store URL Card */
.stat-card.stat-url {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid var(--primary);
}

.store-url-display {
    position: relative;
}

.store-url-display::after {
    content: 'Click to copy';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.store-url-display:hover::after {
    opacity: 1;
}

.store-url-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* QR Code Container */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Mobile Admin Tabs */
.mobile-admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-admin-tabs .tab-item {
    flex: 0 0 auto;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mobile-admin-tabs .tab-item.active {
    background: var(--primary);
    color: white;
}

.mobile-admin-tabs .tab-item:hover {
    background: #e2e8f0;
}

.mobile-admin-tabs .tab-item.active:hover {
    background: var(--primary-dark);
}

/* Store Public Header */
.store-public-header {
    position: relative;
    overflow: hidden;
}

.store-public-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Stock Status */
.low-stock {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.in-stock {
    background: #f0fdf4;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Store URL Tab */
#admin-store-url-content {
    min-height: 400px;
}

/* Copy URL Button Animation */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-copied {
    animation: copySuccess 0.3s ease;
    background: var(--success) !important;
}

#products-page .section-title {
    background-image: url('pro.png') !important;
}

/* Deals Page Background */
#deals-page .section-title {
    background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

#deals-page .section-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(239, 68, 68, 0.7), rgba(239, 68, 68, 0.4));
    z-index: 0;
}

#deals-page .section-title * {
    position: relative;
    z-index: 1;
}

/* Deals page content styling */
#deals-page .container {
    max-width: 1200px;
}

/* Flash sale timer styling */
#deals-page .countdown-timer {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 30px 0;
    text-align: center;
    border: 2px dashed var(--danger);
}

#countdown {
    font-size: 3rem;
    font-weight: 800;
    color: var(--danger);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
    background: linear-gradient(to right, var(--danger), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured deals grid */
.featured-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.deal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--danger);
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.15);
}

.deal-header {
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    text-align: center;
}

.deal-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.deal-content {
    padding: 25px;
}

.deal-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.deal-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.discounted-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--danger);
}

.deal-savings {
    background: #fef3c7;
    color: #92400e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.deal-cta {
    width: 100%;
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.deal-cta:hover {
    background: #dc2626;
}

/* Responsive for deals page */
@media (max-width: 768px) {
    #deals-page .section-title {
        padding: 50px 20px;
        border-radius: 16px;
        margin: 0 15px 30px;
    }

    #countdown {
        font-size: 2.2rem;
    }

    .featured-deals-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* ========== MOBILE CART PAGE FIX - COMPLETE OVERHAUL ========== */
@media (max-width: 768px) {
    #cart-page .container {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #cart-page .section-title {
        padding: 25px 20px !important;
        margin: 0 !important;
        border-radius: 0 0 20px 20px !important;
        text-align: center !important;
    }

    #cart-page .section-title h2 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #cart-page .section-title p {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        padding: 0 10px !important;
    }

    #cart-page-content {
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Remove any existing styles that might cause clipping */
    #cart-page * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cart items container */
    .store-cart-section {
        margin: 0 0 20px 0 !important;
        padding: 20px 15px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        background: white !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .store-cart-section h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid var(--primary) !important;
        color: var(--dark) !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }

    /* Cart item styling - SIMPLIFIED LAYOUT */
    .cart-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        margin-bottom: 15px !important;
        background: white !important;
        width: 100% !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    /* Product info row */
    .cart-product-info {
        display: flex !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .cart-item-img {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        border-radius: 8px !important;
        object-fit: contain !important;
        background: #f8fafc !important;
        padding: 8px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .cart-item-details {
        flex: 1 !important;
        min-width: 0 !important;
        /* Prevents overflow */
    }

    .cart-item-details h4 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
        color: var(--dark) !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .cart-item-price {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        margin-bottom: 8px !important;
    }

    /* Controls row */
    .cart-item-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .cart-quantity-controls {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        background: #f8fafc !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        flex: 1 !important;
        justify-content: space-between !important;
    }

    .cart-quantity-controls button {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--dark) !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        font-weight: 600 !important;
    }

    .cart-quantity-controls span {
        font-weight: 700 !important;
        font-size: 1rem !important;
        min-width: 30px !important;
        text-align: center !important;
        color: var(--dark) !important;
    }

    .remove-item-btn {
        background: #fee2e2 !important;
        color: #dc2626 !important;
        border-radius: 8px !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border: none !important;
        cursor: pointer !important;
        white-space: nowrap !important;
    }

    /* Cart summary */
    .cart-summary {
        background: white !important;
        border-radius: 12px !important;
        padding: 20px !important;
        border: 2px solid var(--primary) !important;
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cart-summary h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #e2e8f0 !important;
        color: var(--dark) !important;
        text-align: center !important;
    }

    .cart-summary-item {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 12px !important;
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cart-summary-item.total {
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        color: var(--dark) !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 2px solid #e2e8f0 !important;
        border-bottom: none !important;
    }

    .checkout-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        background: var(--primary) !important;
        color: white !important;
        border: none !important;
        border-radius: 10px !important;
        margin-top: 20px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    }

    /* Empty cart state */
    #cart-page-content .empty-state {
        padding: 50px 20px !important;
        text-align: center !important;
        background: white !important;
        border-radius: 12px !important;
        margin: 20px 0 !important;
    }

    #cart-page-content .empty-state i {
        font-size: 3.5rem !important;
        color: #cbd5e1 !important;
        margin-bottom: 20px !important;
    }

    #cart-page-content .empty-state h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        color: var(--dark) !important;
    }

    #cart-page-content .empty-state p {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
        color: var(--gray) !important;
        line-height: 1.5 !important;
    }

    /* Cart action buttons */
    .cart-actions {
        display: flex !important;
        gap: 15px !important;
        margin-top: 20px !important;
        width: 100% !important;
    }

    .continue-shopping-btn {
        flex: 1 !important;
        padding: 15px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        background: #f8fafc !important;
        color: var(--dark) !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        text-align: center !important;
    }

    /* Ensure text doesn't overflow */
    .cart-item-details h4,
    .cart-item-price,
    .cart-summary-item,
    .store-cart-section h3 {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {
    #cart-page .section-title {
        padding: 20px 15px !important;
    }

    #cart-page .section-title h2 {
        font-size: 1.3rem !important;
    }

    .cart-item {
        padding: 12px !important;
    }

    .cart-item-img {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
    }

    .cart-quantity-controls {
        padding: 6px 10px !important;
    }

    .cart-quantity-controls button {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 0.9rem !important;
    }

    .cart-summary {
        padding: 15px !important;
    }

    .checkout-btn {
        padding: 14px !important;
        font-size: 1rem !important;
    }

    .cart-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* ========== MOBILE DEVELOPER DASHBOARD FIX - COMPLETE OVERHAUL ========== */
@media (max-width: 768px) {
    #developer-page .container {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #developer-page .section-title {
        padding: 25px 20px !important;
        margin: 0 !important;
        border-radius: 0 0 20px 20px !important;
        text-align: center !important;
    }

    #developer-page .section-title h2 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #developer-page .section-title p {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        padding: 0 10px !important;
    }

    /* Remove any constraints */
    #developer-page * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Developer panel grid - SIMPLIFIED 2x2 layout */
    #developer-page .dev-panel-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 20px 15px !important;
        background: white !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #developer-page .dev-card {
        padding: 20px 15px !important;
        text-align: center !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        height: auto !important;
        min-height: 130px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: white !important;
        position: relative !important;
        overflow: visible !important;
    }

    #developer-page .dev-card::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        border-radius: 10px 10px 0 0 !important;
    }

    /* Color coding for cards */
    #developer-page .dev-card:nth-child(1)::after {
        background: var(--primary) !important;
    }

    #developer-page .dev-card:nth-child(2)::after {
        background: var(--primary) !important;
    }

    #developer-page .dev-card:nth-child(3)::after {
        background: var(--success) !important;
    }

    #developer-page .dev-card:nth-child(4)::after {
        background: var(--warning) !important;
    }

    #developer-page .dev-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: var(--gray) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #developer-page .dev-card p {
        margin: 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    #developer-page .dev-card .fa-check-circle {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        color: var(--success) !important;
    }

    /* Stats numbers - BIG and CLEAR */
    #dev-total-users,
    #dev-total-stores,
    #dev-pending-approvals {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        margin: 8px 0 !important;
        color: var(--dark) !important;
        line-height: 1 !important;
    }

    /* Sections - SIMPLE CARD LAYOUT */
    #developer-page>div {
        margin: 20px 15px !important;
        padding: 20px !important;
        border-radius: 12px !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        width: calc(100% - 30px) !important;
        overflow: visible !important;
    }

    #developer-page h3 {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid var(--primary) !important;
        color: var(--dark) !important;
        text-align: center !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    /* PENDING STORES - CARD VIEW (no tables) */
    #dev-pending-stores {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #dev-pending-stores .pending-store-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .store-approval-card {
        background: white !important;
        border-radius: 10px !important;
        padding: 20px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .store-approval-card h4 {
        margin: 0 0 10px 0 !important;
        font-size: 1.1rem !important;
        color: var(--dark) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .store-approval-card p {
        margin: 5px 0 !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    .store-approval-actions {
        display: flex !important;
        gap: 10px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    .store-approval-actions button {
        flex: 1 !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        border: none !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        text-align: center !important;
        min-height: 44px !important;
    }

    .btn-approve-mobile {
        background: var(--success) !important;
        color: white !important;
    }

    .btn-reject-mobile {
        background: #fef3c7 !important;
        color: #92400e !important;
    }

    /* ALL STORES - GRID VIEW */
    #dev-all-stores {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #dev-all-stores .stores-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    #dev-all-stores .store-card {
        margin: 0 !important;
        min-height: 200px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    #dev-all-stores .store-header {
        height: 90px !important;
        padding: 15px !important;
    }

    #dev-all-stores .store-logo {
        width: 60px !important;
        height: 60px !important;
        bottom: -30px !important;
        left: 15px !important;
        font-size: 1.5rem !important;
    }

    #dev-all-stores .store-content {
        padding: 40px 15px 15px !important;
    }

    #dev-all-stores .store-content h3 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #dev-all-stores .store-rating {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    /* USER LIST - CARD VIEW */
    #dev-user-list {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #dev-user-list .user-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .user-card {
        background: white !important;
        border-radius: 10px !important;
        padding: 20px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .user-card h4 {
        margin: 0 0 10px 0 !important;
        font-size: 1.1rem !important;
        color: var(--dark) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .user-card p {
        margin: 5px 0 !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    .user-role-badge {
        display: inline-block !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        margin-top: 10px !important;
    }

    .role-customer {
        background: #dbeafe !important;
        color: #1e40af !important;
    }

    .role-vendor {
        background: #dcfce7 !important;
        color: #166534 !important;
    }

    .role-developer {
        background: #f3e8ff !important;
        color: #7c3aed !important;
    }

    /* Loading states */
    #dev-pending-stores.loading,
    #dev-all-stores.loading,
    #dev-user-list.loading {
        padding: 40px 20px !important;
        text-align: center !important;
        background: white !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Empty states */
    .empty-state-dev {
        text-align: center !important;
        padding: 40px 20px !important;
        color: var(--gray) !important;
        background: white !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        margin: 0 !important;
    }

    .empty-state-dev i {
        font-size: 3rem !important;
        color: #cbd5e1 !important;
        margin-bottom: 15px !important;
    }

    .empty-state-dev h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        color: var(--dark) !important;
    }

    .empty-state-dev p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    #developer-page .dev-panel-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #developer-page .dev-card {
        min-height: 120px !important;
        padding: 18px 15px !important;
    }

    #dev-total-users,
    #dev-total-stores,
    #dev-pending-approvals {
        font-size: 1.6rem !important;
    }

    #dev-all-stores .stores-grid {
        grid-template-columns: 1fr !important;
    }

    .store-approval-actions {
        flex-direction: column !important;
    }

    #developer-page>div {
        margin: 15px !important;
        padding: 18px !important;
        width: calc(100% - 30px) !important;
    }

    #developer-page h3 {
        font-size: 1.1rem !important;
    }
}

/* ========== UTILITY CLASSES FOR TEXT HANDLING ========== */
.text-wrap-fix {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.no-overflow {
    overflow: visible !important;
    max-width: 100% !important;
}

.full-width-mobile {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ========== IMPORTANT - OVERRIDE ANY PROBLEMATIC STYLES ========== */
@media (max-width: 768px) {

    #cart-page,
    #developer-page {
        overflow: visible !important;
    }

    #cart-page *,
    #developer-page * {
        overflow: visible !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #cart-page .container,
    #developer-page .container {
        overflow: visible !important;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Spinner style is defined in style.css */

.store-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-approved {
    background: #10b98120;
    color: #047857;
}

.status-pending {
    background: #f59e0b20;
    color: #92400e;
}

.status-rejected {
    background: #ef444420;
    color: #991b1b;
}

/* ========== ENHANCED MOBILE DEVELOPER DASHBOARD FIX ========== */
@media (max-width: 768px) {
    #developer-page .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #developer-page .section-title {
        padding: 25px 15px !important;
        margin: 0 0 15px 0 !important;
        border-radius: 0 0 16px 16px !important;
        text-align: center !important;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        color: white !important;
    }

    #developer-page .section-title h2 {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        color: white !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    }

    #developer-page .section-title p {
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0 10px !important;
    }

    /* Clean card grid layout */
    #developer-page .dev-panel-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #developer-page .dev-card {
        padding: 20px 15px !important;
        text-align: center !important;
        border: none !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        height: auto !important;
        min-height: 140px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: white !important;
        position: relative !important;
        overflow: visible !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    #developer-page .dev-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    }

    /* Improved card headers with gradient accents */
    #developer-page .dev-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    #developer-page .dev-card:nth-child(1)::before {
        background: linear-gradient(90deg, var(--primary), #60a5fa) !important;
    }

    #developer-page .dev-card:nth-child(2)::before {
        background: linear-gradient(90deg, var(--secondary), #a78bfa) !important;
    }

    #developer-page .dev-card:nth-child(3)::before {
        background: linear-gradient(90deg, var(--success), #34d399) !important;
    }

    #developer-page .dev-card:nth-child(4)::before {
        background: linear-gradient(90deg, var(--warning), #fbbf24) !important;
    }

    /* Better typography */
    #developer-page .dev-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        color: var(--gray) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        padding: 0 5px !important;
        width: 100% !important;
    }

    #developer-page .dev-card p {
        margin: 8px 0 0 0 !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        padding: 0 5px !important;
        width: 100% !important;
    }

    /* Stats numbers - clean and prominent */
    #dev-total-users,
    #dev-total-stores,
    #dev-pending-approvals {
        font-size: 2rem !important;
        font-weight: 800 !important;
        margin: 8px 0 !important;
        color: var(--dark) !important;
        line-height: 1 !important;
        font-family: 'Poppins', sans-serif !important;
        letter-spacing: -0.5px !important;
    }

    /* Stats container */
    .stat-container {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Check icon styling */
    #developer-page .dev-card .fa-check-circle {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
        color: var(--success) !important;
        filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2)) !important;
    }

    /* Section headers - clean and consistent */
    #developer-page>div {
        margin: 0 0 25px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #developer-page h3 {
        font-size: 1.3rem !important;
        margin: 0 0 20px 0 !important;
        padding: 0 0 15px 0 !important;
        border-bottom: 2px solid var(--primary) !important;
        color: var(--dark) !important;
        text-align: center !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        font-weight: 700 !important;
        background: white !important;
        padding: 20px 15px !important;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
    }

    /* PENDING STORES - Enhanced card layout */
    #dev-pending-stores {
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        margin-bottom: 25px !important;
    }

    #dev-pending-stores .pending-store-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .store-approval-card {
        background: white !important;
        padding: 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        overflow: visible !important;
        transition: background 0.2s ease !important;
    }

    .store-approval-card:last-child {
        border-bottom: none !important;
    }

    .store-approval-card:hover {
        background: #f8fafc !important;
    }

    .store-approval-card h4 {
        margin: 0 0 8px 0 !important;
        font-size: 1.1rem !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .store-approval-card p {
        margin: 4px 0 !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .store-approval-card i {
        color: var(--primary) !important;
        font-size: 0.85rem !important;
        min-width: 16px !important;
    }

    /* Store status indicator */
    .store-status-indicator {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        margin: 10px 0 !important;
        background: #fef3c7 !important;
        color: #92400e !important;
        align-self: flex-start !important;
    }

    .store-approval-actions {
        display: flex !important;
        gap: 10px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    .store-approval-actions button {
        flex: 1 !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        border: none !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        text-align: center !important;
        min-height: 44px !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .store-approval-actions button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    }

    .btn-approve-mobile {
        background: linear-gradient(135deg, var(--success), #34d399) !important;
        color: white !important;
    }

    .btn-reject-mobile {
        background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
        color: white !important;
    }

    /* ALL STORES - Enhanced grid */
    #dev-all-stores {
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        margin-bottom: 25px !important;
    }

    #dev-all-stores .stores-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #dev-all-stores .store-card {
        margin: 0 !important;
        min-height: 180px !important;
        width: 100% !important;
        overflow: visible !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        background: white !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }

    #dev-all-stores .store-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
        border-color: var(--primary) !important;
    }

    #dev-all-stores .store-header {
        height: 80px !important;
        padding: 15px !important;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        position: relative !important;
        border-radius: 10px 10px 0 0 !important;
    }

    #dev-all-stores .store-logo {
        width: 50px !important;
        height: 50px !important;
        bottom: -25px !important;
        left: 15px !important;
        font-size: 1.2rem !important;
        border: 3px solid white !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        background: white !important;
        color: var(--primary) !important;
        font-weight: 700 !important;
    }

    #dev-all-stores .store-content {
        padding: 30px 15px 15px !important;
    }

    #dev-all-stores .store-content h3 {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        margin-bottom: 6px !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
    }

    #dev-all-stores .store-rating {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        color: #fbbf24 !important;
    }

    /* USER LIST - Enhanced card layout */
    #dev-user-list {
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        margin-bottom: 25px !important;
    }

    #dev-user-list .user-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .user-card {
        background: white !important;
        padding: 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        overflow: visible !important;
        transition: background 0.2s ease !important;
    }

    .user-card:last-child {
        border-bottom: none !important;
    }

    .user-card:hover {
        background: #f8fafc !important;
    }

    .user-card h4 {
        margin: 0 0 8px 0 !important;
        font-size: 1.1rem !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .user-avatar {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
    }

    .user-card p {
        margin: 4px 0 !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .user-role-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        margin-top: 10px !important;
        width: fit-content !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .role-customer {
        background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
        color: white !important;
    }

    .role-vendor {
        background: linear-gradient(135deg, #10b981, #34d399) !important;
        color: white !important;
    }

    .role-developer {
        background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
        color: white !important;
    }

    /* Loading states */
    #dev-pending-stores.loading,
    #dev-all-stores.loading,
    #dev-user-list.loading {
        padding: 40px 20px !important;
        text-align: center !important;
        background: white !important;
        border-radius: 10px !important;
        min-height: 200px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .loading-spinner {
        border: 3px solid #f1f5f9 !important;
        border-top: 3px solid var(--primary) !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        animation: spin 1s linear infinite !important;
        margin-bottom: 15px !important;
    }

    /* Empty states */
    .empty-state-dev {
        text-align: center !important;
        padding: 50px 20px !important;
        color: var(--gray) !important;
        background: white !important;
        border-radius: 10px !important;
        min-height: 200px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .empty-state-dev i {
        font-size: 3.5rem !important;
        color: #e2e8f0 !important;
        margin-bottom: 20px !important;
        opacity: 0.7 !important;
    }

    .empty-state-dev h3 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    .empty-state-dev p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        color: var(--gray) !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    /* Section content containers */
    .section-content {
        padding: 20px !important;
        background: white !important;
    }

    /* Animation for card entrance */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .store-approval-card,
    .user-card,
    #dev-all-stores .store-card {
        animation: fadeInUp 0.4s ease-out forwards;
    }

    /* Scrollbar styling for sections with scroll */
    .scrollable-section {
        max-height: 400px !important;
        overflow-y: auto !important;
        padding-right: 5px !important;
    }

    .scrollable-section::-webkit-scrollbar {
        width: 4px !important;
    }

    .scrollable-section::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
        border-radius: 2px !important;
    }

    .scrollable-section::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
        border-radius: 2px !important;
    }
}

/* For very small phones */
@media (max-width: 480px) {
    #developer-page .dev-panel-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #developer-page .dev-card {
        min-height: 130px !important;
        padding: 20px 15px !important;
    }

    #dev-total-users,
    #dev-total-stores,
    #dev-pending-approvals {
        font-size: 1.8rem !important;
    }

    #dev-all-stores .stores-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    #dev-all-stores .store-card {
        min-height: 170px !important;
    }

    #developer-page h3 {
        font-size: 1.2rem !important;
        padding: 18px 15px !important;
    }

    .store-approval-card,
    .user-card {
        padding: 18px 15px !important;
    }

    .store-approval-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .store-approval-actions button {
        width: 100% !important;
    }
}

/* For small tablets */
@media (min-width: 481px) and (max-width: 768px) {
    #developer-page .dev-panel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    #developer-page .dev-card {
        min-height: 150px !important;
    }

    #dev-total-users,
    #dev-total-stores,
    #dev-pending-approvals {
        font-size: 2.2rem !important;
    }

    #dev-all-stores .stores-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* ========== UTILITY CLASSES FOR BETTER TEXT HANDLING ========== */
.text-ellipsis {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

.text-wrap-balance {
    text-wrap: balance !important;
    word-break: break-word !important;
}

.text-small {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.text-tiny {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    opacity: 0.8 !important;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Badge styling */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), #60a5fa) !important;
    color: white !important;
}

.badge-success {
    background: linear-gradient(135deg, var(--success), #34d399) !important;
    color: white !important;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24) !important;
    color: white !important;
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger), #f87171) !important;
    color: white !important;
}

/* Cart Page Background */
#cart-page .section-title {
    background-image: url('cart.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

#cart-page .section-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(6, 8, 18, 0.45), rgba(6, 8, 18, 0.25));
    z-index: 0;
}

#cart-page .section-title * {
    position: relative;
    z-index: 1;
}

/* --- Wishlist / Save for Later Styles --- */
.wishlist-section {
    margin-top: 50px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 30px;
}

.wishlist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gray);
}

.wishlist-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    /* Slightly darker than white to differentiate */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
    opacity: 0.9;
}

.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    filter: grayscale(20%);
    /* Visual cue that it's inactive */
}

.wishlist-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
}

.btn-link.save-later {
    color: var(--primary);
    margin-top: 5px;
    display: inline-block;
}

.btn-link.delete {
    color: var(--danger);
}

/* --- Modern Wishlist Section --- */
.wishlist-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.wishlist-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-count-badge {
    background: #f1f5f9;
    color: var(--gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Wishlist Grid Layout --- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- Wishlist Item Card --- */
.wishlist-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wishlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light, #bfdbfe);
}

.wishlist-img-wrapper {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.wishlist-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wishlist-card:hover .wishlist-img-wrapper img {
    transform: scale(1.1);
}

.wishlist-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wishlist-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.wishlist-store-name {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Action Buttons --- */
.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-wishlist-move {
    flex: 1;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-wishlist-move:hover {
    background: var(--primary);
    color: white;
}

.btn-wishlist-remove {
    width: 36px;
    /* Square button */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-wishlist-remove:hover {
    background: #fecaca;
}

/* --- Cart Item Link override --- */
.save-for-later-link {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.save-for-later-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* Chat Styles */
.chat-window {
    transition: all 0.3s ease;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: #e2e8f0;
    color: var(--dark);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
    display: block;
}

.chat-inbox-item {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-inbox-item:hover {
    background: #f8fafc;
}

.chat-inbox-item.unread {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Mobile responsive for chat modal */
@media (max-width: 768px) {
    .modal-content.chat-window {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Order Tracking Styles */
.orders-grid {
    display: grid;
    /* allow smaller cards so 3 can fit on wider screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.order-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.order-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-body {
    padding: 0 20px 20px;
}

.order-footer {
    padding: 15px 20px;
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Order Progress Tracker */
.order-progress-tracker {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
    max-width: 80px;
}

.progress-step.active .step-icon {
    background: var(--primary);
    color: white;
}

.progress-step.active .step-label {
    color: var(--dark);
    font-weight: 600;
}

.progress-step.current .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px;
    position: relative;
    top: -10px;
}

.progress-step.active+.progress-line {
    background: var(--primary);
}

/* Filter Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Order Items Preview */
.order-items-preview {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.order-item-preview {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
    }

    .order-footer {
        flex-direction: column;
        gap: 10px;
    }

    .order-progress-tracker {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .progress-line {
        display: none;
    }
}

/* Animation for status changes */
@keyframes statusUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.status-update {
    animation: statusUpdate 0.5s ease;
}

#order-tracking-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.tracking-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.progress-line.active {
    background: var(--primary) !important;
}

/* Amazon-style Cart Page Styles */
.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.cart-header h1 {
    font-size: 28px;
    font-weight: 400;
    color: #0F1111;
    margin: 0;
}

.cart-header-price {
    font-size: 14px;
    color: #565959;
    font-weight: 400;
}

.cart-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.store-cart-section {
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.store-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f2;
}

.store-cart-header i {
    color: #007185;
    font-size: 18px;
}

.store-name {
    font-size: 16px;
    color: #007185;
    font-weight: 500;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f2;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 24px;
}

.cart-item-details {
    padding-right: 20px;
}

.cart-item-title {
    font-size: 18px;
    color: #0F1111;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 400;
}

.cart-item-shipping {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.shipping-badge {
    color: #007600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.in-stock-badge {
    color: #007600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-actions {
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quantity-label {
    font-size: 14px;
    color: #0F1111;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d5d9d9;
    background: #f0f2f2;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1111;
    font-size: 12px;
}

.quantity-btn:hover {
    background: #e3e6e6;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-dropdown {
    padding: 6px 12px;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    background: #f0f2f2;
    font-size: 14px;
    color: #0F1111;
    min-width: 60px;
    cursor: pointer;
}

.quantity-dropdown:focus {
    outline: none;
    border-color: #007185;
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.cart-item-action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.action-link {
    background: none;
    border: none;
    color: #007185;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-link:hover {
    color: #C7511F;
    text-decoration: underline;
}

.action-link.delete-btn:hover {
    color: #B12704;
}

.cart-item-price {
    text-align: right;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 10px;
}

.price-subtotal {
    font-size: 14px;
    color: #565959;
    margin-top: 10px;
}

.store-cart-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f2;
    text-align: right;
}

.store-subtotal {
    font-size: 18px;
    color: #0F1111;
}

.store-subtotal strong {
    font-weight: 700;
    margin-left: 10px;
}

/* Cart Sidebar */
.cart-sidebar-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-sidebar-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f2;
    color: #007600;
}

.sidebar-card-header i {
    font-size: 18px;
}

.order-summary {
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #0F1111;
}

.summary-line.total-line {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
}

.free-shipping {
    color: #007600;
    font-weight: 600;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-methods {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f0f2f2;
}

.payment-method {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 24px;
    color: #666;
}

.payment-note {
    font-size: 12px;
    color: #565959;
    margin: 0;
}

.continue-shopping h3 {
    font-size: 18px;
    font-weight: 400;
    color: #0F1111;
    margin-bottom: 15px;
}

.continue-shopping .amazon-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Wishlist Section */
.wishlist-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.wishlist-header {
    text-align: center;
    margin-bottom: 30px;
}

.wishlist-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: #0F1111;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wishlist-header p {
    color: #565959;
    font-size: 14px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wishlist-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wishlist-item-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 32px;
}

.wishlist-item-details {
    flex: 1;
}

.wishlist-item-title {
    font-size: 16px;
    color: #0F1111;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 500;
}

.wishlist-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 10px;
}

.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Empty State */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.cart-empty-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
}

.cart-empty-state h2 {
    font-size: 28px;
    font-weight: 400;
    color: #0F1111;
    margin-bottom: 15px;
}

.cart-empty-state p {
    color: #565959;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.cart-empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Amazon-style buttons */
.amazon-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.amazon-btn-primary {
    background: #FFD814;
    border-color: #FCD200;
    color: #0F1111;
}

.amazon-btn-primary:hover {
    background: #F7CA00;
    border-color: #F2C200;
}

.amazon-btn-outline {
    background: white;
    border-color: #D5D9D9;
    color: #0F1111;
}

.amazon-btn-outline:hover {
    background: #F7FAFA;
    border-color: #D5D9D9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-sidebar-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page-container {
        padding: 10px;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }

    .cart-header h1 {
        font-size: 24px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 15px 0;
    }

    .cart-item-price {
        grid-column: 2;
        text-align: left;
        margin-top: 15px;
        border-top: 1px solid #f0f2f2;
        padding-top: 15px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-title {
        font-size: 16px;
    }

    .cart-item-action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .store-subtotal {
        font-size: 16px;
    }

    .cart-empty-icon {
        font-size: 60px;
    }

    .cart-empty-state h2 {
        font-size: 24px;
    }

    .cart-empty-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .quantity-controls {
        flex-wrap: wrap;
    }

    .cart-sidebar-card {
        padding: 15px;
    }

    .checkout-btn {
        font-size: 14px;
        padding: 12px;
    }

    .summary-line.total-line {
        font-size: 16px;
    }

    .total-amount {
        font-size: 18px;
    }
}

.store-location-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    color: var(--primary);
}

.store-location-display i {
    color: var(--primary);
}

.stat-card.stat-location {
    border-left: 4px solid var(--primary);
}

.store-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.store-location i {
    color: var(--primary);
    margin-right: 5px;
}

/* =========================================
   MOBILE STORE FIX (AMAZON STYLE)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Fix the Store Header Layout */
    #store-detail-content .store-info-section {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px !important;
        height: auto !important;
        /* Allow header to grow */
    }

    #store-detail-content .store-info-section>div {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    #store-detail-content .store-info-section h1 {
        font-size: 1.8rem !important;
        margin-top: 10px !important;
    }

    /* 2. Create Amazon-style 2-Column Grid */
    #store-detail-content .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 10px !important;
        padding: 10px !important;
        background: #f1f2f6 !important;
        /* Light gray background like Amazon */
    }

    /* 3. Fix Product Card - Prevent Cut-offs */
    #store-detail-content .product-card {
        height: auto !important;
        /* REMOVE FIXED HEIGHT so content fits */
        min-height: 360px !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 10px !important;
        margin: 0 !important;
    }

    /* 4. Optimize Image Size */
    #store-detail-content .product-img {
        height: 150px !important;
        /* Smaller image for mobile */
        padding: 10px !important;
    }

    /* 5. Fix Text Wrapping */
    #store-detail-content .product-content {
        padding: 10px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #store-detail-content .product-name {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        height: 36px !important;
        /* Fixed height for 2 lines of text */
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-bottom: 5px !important;
        white-space: normal !important;
    }

    /* 6. Make Buttons Full Width & Tappable */
    #store-detail-content .product-actions {
        display: flex !important;
        flex-direction: column !important;
        /* Stack buttons vertically */
        gap: 8px !important;
        margin-top: auto !important;
        /* Push to bottom */
    }

    #store-detail-content .add-to-cart-btn,
    #store-detail-content .btn-buy,
    #store-detail-content .btn-outline {
        width: 100% !important;
        padding: 10px 5px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
        /* Rounded Amazon style */
    }

    /* Fix the "Negotiate/Chat" button specifically */
    #store-detail-content .product-content button.btn-outline {
        margin-top: 8px !important;
    }
}

/* Extra tweak for very small phones */
@media (max-width: 360px) {
    #store-detail-content .products-grid {
        grid-template-columns: 1fr !important;
        /* 1 column on tiny screens */
    }
}

/* =========================================
   AMAZON-STYLE VENDOR STORE OVERRIDES
   ========================================= */

/* Ensure the grid is responsive and tight like Amazon's */
#store-detail-content .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Slightly narrower cards */
    gap: 15px;
    /* Tighter gap */
    padding: 20px;
}

/* Card Container */
#store-detail-content .product-card {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Uniform height */
    position: relative;
    /* For badges */
    overflow: hidden;
    box-shadow: none;
    /* Amazon cards are usually flat until hover */
}

#store-detail-content .product-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: none;
    /* Amazon doesn't usually lift cards */
    border-color: #d5d9d9;
}

/* Image Area */
#store-detail-content .product-img {
    height: 200px;
    padding: 20px;
    /* White space around image */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f5f5f5;
}

#store-detail-content .product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Ensure image fits without cropping */
}

/* Content Area */
#store-detail-content .product-content {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Typography - Amazon Style */
#store-detail-content .product-name {
    font-size: 1rem;
    /* 16px base */
    font-weight: 500;
    color: #0F1111;
    /* Amazon dark */
    line-height: 1.4;
    margin-bottom: 6px;
    height: 44px;
    /* Fixed height for ~2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#store-detail-content .product-name:hover {
    color: #C7511F;
    /* Amazon orange link hover */
    cursor: pointer;
}

#store-detail-content .product-category {
    font-size: 0.75rem;
    color: #565959;
    margin-bottom: 4px;
    text-transform: none;
    background: none;
    padding: 0;
}

/* Pricing */
#store-detail-content .product-price {
    margin: 4px 0;
    align-items: baseline;
}

#store-detail-content .current-price {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 700;
    color: #0F1111;
}

#store-detail-content .current-price::before {
    font-size: 0.75rem;
    position: relative;
    top: -5px;
    font-weight: 400;
}

#store-detail-content .original-price {
    font-size: 0.8rem;
    color: #565959;
    text-decoration: line-through;
    margin-left: 6px;
}

/* Badges */
#store-detail-content .discount-badge {
    background-color: #CC0C39;
    /* Amazon red */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 2px;
    /* Less rounded */
    top: 10px;
    left: 10px;
}

#store-detail-content .prime-badge {
    background-color: #00A8E1;
    /* Prime blue-ish check color equivalent */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    top: 10px;
    right: 10px;
    font-style: italic;
}

/* Rating Stars */
#store-detail-content .stars {
    color: #DE7921;
    /* Amazon orange/gold */
    font-size: 0.9rem;
}

#store-detail-content .rating-count {
    color: #007185;
    /* Amazon link blue */
    margin-left: 5px;
    font-size: 0.8rem;
}

#store-detail-content .rating-count:hover {
    color: #C7511F;
    text-decoration: underline;
    cursor: pointer;
}

/* Stock Status */
#store-detail-content .product-quantity {
    font-size: 0.8rem;
    color: #007600;
    /* Amazon stock green */
    margin-bottom: 10px;
}

#store-detail-content .product-quantity.low {
    color: #B12704;
    /* Amazon low stock red */
}

/* Buttons */
#store-detail-content .product-actions {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    flex-direction: column;
    /* Stack buttons */
    gap: 8px;
}

/* Add to Cart - Yellow Button */
#store-detail-content .add-to-cart-btn {
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 20px;
    color: #0F1111;
    font-size: 0.85rem;
    padding: 8px 10px;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
    width: 100%;
    justify-content: center;
}

#store-detail-content .add-to-cart-btn:hover {
    background: #F7CA00;
    border-color: #F2C200;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

/* Buy Now - Orange Button */
#store-detail-content .btn-buy {
    background: #FFA41C;
    border: 1px solid #FF8F00;
    border-radius: 20px;
    color: #0F1111;
    font-size: 0.85rem;
    padding: 8px 10px;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
    width: 100%;
}

#store-detail-content .btn-buy:hover {
    background: #FA8900;
    border-color: #D57D00;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

/* Negotiate/Chat Button */
#store-detail-content button.btn-outline {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    border: 1px solid #D5D9D9;
    background: #fff;
    color: #0F1111;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

#store-detail-content button.btn-outline:hover {
    background: #F7FAFA;
    border-color: #D5D9D9;
}

/* Responsive Tweak for Mobile */
@media (max-width: 600px) {
    #store-detail-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 10px;
    }

    #store-detail-content .product-name {
        font-size: 0.9rem;
    }

    #store-detail-content .product-img {
        height: 140px;
        padding: 10px;
    }
}

/* =======================================================
   MOBILE OPTIMIZATION: 2 PRODUCTS PER ROW (AMAZON STYLE)
   ======================================================= */
@media (max-width: 600px) {

    /* 1. Force 2 columns on the store detail and products grid */
    #store-detail-content .products-grid,
    #products-page .products-grid,
    #customer-products-list.products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        display: grid !important;
    }

    /* 2. Shrink the Product Card container */
    #store-detail-content .product-card,
    #products-page .product-card,
    #customer-products-list .product-card {
        height: auto !important;
        /* Allow height to wrap content */
        min-height: 340px !important;
        padding: 8px !important;
        margin: 0 !important;
        border-radius: 4px !important;
    }

    /* 3. Reduce Image Height */
    #store-detail-content .product-img,
    #products-page .product-img,
    #customer-products-list .product-img {
        height: 130px !important;
        /* Shorter image for mobile */
        padding: 8px !important;
        margin-bottom: 5px !important;
    }

    /* 4. Adjust Typography for smaller space */
    #store-detail-content .product-name,
    #products-page .product-name,
    #customer-products-list .product-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        height: 32px !important;
        /* Fixed height for 2 lines */
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #store-detail-content .product-price,
    #products-page .product-price,
    #customer-products-list .product-price {
        font-size: 0.95rem !important;
        margin: 4px 0 !important;
    }

    #store-detail-content .product-category,
    #customer-products-list .product-category {
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
    }

    /* 5. Stack Buttons and make them smaller */
    #store-detail-content .product-actions,
    #customer-products-list .product-actions {
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically */
        gap: 5px !important;
        margin-top: auto !important;
    }

    #store-detail-content .add-to-cart-btn,
    #store-detail-content .btn-buy,
    #store-detail-content .btn-outline,
    #customer-products-list .btn-buy {
        width: 100% !important;
        padding: 6px 4px !important;
        font-size: 0.75rem !important;
        min-height: 32px !important;
        border-radius: 20px !important;
    }

    /* Hide less critical info on small mobile to save space */
    #store-detail-content .product-quantity {
        font-size: 0.7rem !important;
        display: block !important;
    }
}

/* Tweak for extra small screens (below 350px) */
@media (max-width: 350px) {
    #store-detail-content .product-img {
        height: 110px !important;
    }

    #store-detail-content .product-name {
        font-size: 0.75rem !important;
    }
}

/* --- Receipt Generator Layout --- */
.receipt-generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.receipt-form-card,
.receipt-preview-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.rec-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 30px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

/* --- The Actual Receipt Design (Visual) --- */
.printable-receipt {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.rec-store-info {
    text-align: right;
}

.rec-store-info h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.rec-store-info p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: #666;
}

.rec-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.rec-details {
    text-align: right;
}

.rec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rec-table th {
    text-align: left;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.rec-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.rec-totals {
    margin-top: 20px;
    text-align: right;
}

.rec-total-row {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.rec-payment-info {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.rec-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .receipt-generator-container {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
    }

    .receipt-preview-card {
        background: #555;
        /* Dark background to make white receipt pop */
        padding: 10px;
    }
}

/* --- PRINT RULES (Critical for PDF generation) --- */
@media print {
    body * {
        visibility: hidden;
        /* Hide everything else */
    }

    /* Make the receipt visible */
    #printable-receipt,
    #printable-receipt * {
        visibility: visible;
    }

    /* Position receipt to fill the page */
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        border: none;
        /* Remove border for print */
        box-shadow: none;
    }

    /* Ensure colors print correctly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Full Image Modal Styles */
#image-view-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Higher than other UI elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Dark background */
    overflow: auto;
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#full-product-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#image-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   CUSTOMER ORDERS PAGE - CLEAN REDESIGN
   ========================================= */

/* Main Container Fix */
#customer-orders-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Page Header Area */
.orders-page-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.orders-page-header h2 {
    margin: 0 0 15px 0;
    color: var(--dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-stats {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

/* Filter Buttons - Horizontal Scroll on Mobile */
.orders-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll iOS */
}

.orders-filters::-webkit-scrollbar {
    height: 0px;
    /* Hide scrollbar */
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Order Card Redesign */
.clean-order-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

.clean-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.co-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.co-store-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Card Body */
.co-body {
    padding: 20px;
}

.co-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.co-info-item h5 {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.co-info-item p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.co-total {
    color: var(--success) !important;
    font-size: 1.1rem !important;
}

/* Timeline / Tracker Fix */
.co-tracker {
    margin: 20px 0;
    padding: 15px 0;
    background: #fff;
    border-top: 1px dashed #e2e8f0;
}

/* Mobile Vertical Timeline (Much cleaner on small screens) */
@media (max-width: 768px) {
    .order-progress-tracker {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 20px;
    }

    .progress-step {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        min-height: 40px;
    }

    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        z-index: 2;
    }

    .progress-line {
        position: absolute;
        left: 36px;
        /* Align with icon center */
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        background: #e2e8f0;
        margin: 0;
        z-index: 1;
    }

    .co-info-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on mobile */
    }

    .co-info-item:last-child {
        grid-column: span 2;
        /* Total takes full width */
        background: #f0fdf4;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
    }
}

/* Items Preview */
.co-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-top: 15px;
}

.co-item-thumb {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    position: relative;
}

.co-item-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--dark);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Footer */
.co-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .co-footer {
        flex-direction: column;
    }

    .co-footer button {
        width: 100%;
    }
}

/* --- About Section Styles --- */
.about-section-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
}

.about-content-side {
    flex: 1;
}

.about-image-side {
    flex: 1;
    position: relative;
}

.about-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 15px;
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.about-content-side h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
}

.about-lead {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}

/* Feature List Items */
.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.af-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.af-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.af-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.af-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

.about-cta-group {
    display: flex;
    gap: 15px;
}

/* Image Styling */
.image-stack {
    position: relative;
    padding: 20px;
}

.about-img-main {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.about-section-wrapper:hover .about-img-main {
    transform: rotate(0deg);
}

.about-floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    min-width: 200px;
    border: 1px solid #f1f5f9;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Styles for About Section */
@media (max-width: 992px) {
    .about-section-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .about-content-side h2 {
        font-size: 2.2rem;
    }

    .about-image-side {
        width: 100%;
        order: -1;
        /* Puts image on top on tablet */
    }

    .about-lead {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-content-side h2 {
        font-size: 1.8rem;
    }

    .about-img-main {
        transform: rotate(0deg);
        /* No rotation on mobile to save space */
    }

    .about-floating-card {
        bottom: 10px;
        left: 10px;
    }

    .about-cta-group {
        flex-direction: column;
    }

    .about-cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Fix floating chat button position on mobile */
@media (max-width: 768px) {
    #floating-chat-btn {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        /* Optional: Slightly smaller on mobile */
        height: 50px !important;
        /* Optional: Slightly smaller on mobile */
        font-size: 1.2rem !important;
        /* Adjust icon size */
    }
}

/* =========================================
   RECEIPT GENERATOR LAYOUT FIX
   ========================================= */

/* 1. Base Layout (Desktop) - Adjusted ratios for better spacing */
.rec-item-row {
    display: grid;
    /* Name gets more space | Qty | Price | Delete Icon */
    grid-template-columns: 3fr 1fr 1.5fr 40px;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

/* 2. Input Field Visibility Improvements */
.rec-item-row .form-control {
    width: 100%;
    min-width: 0;
    /* Prevents grid blowout */
    height: 48px;
    /* Taller boxes for easier tapping */
    padding: 8px 12px;
    font-size: 16px;
    /* Prevents auto-zoom on iPhones */
    background: #fff;
    border: 1px solid #cbd5e1;
}

.rec-item-row .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 3. Delete Button Styling */
.rec-item-row button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.rec-item-row button:hover {
    background-color: #fee2e2;
    /* Light red background on hover */
}

/* =========================================
   MOBILE LAYOUT TRANSFORM (Stacking)
   ========================================= */
@media (max-width: 768px) {
    .rec-item-row {
        /* Change grid to use "Areas" */
        display: grid;
        grid-template-columns: 1fr 1fr 50px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "name name name"
            /* Row 1: Name takes full width */
            "qty price delete";
        /* Row 2: Qty, Price, Delete shared */
        gap: 10px;

        /* Add a card-like container for better visual separation */
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    /* Assign inputs to specific grid areas */
    .rec-item-row .rec-input-name {
        grid-area: name;
        font-weight: 600;
        placeholder-color: #64748b;
    }

    .rec-item-row .rec-input-qty {
        grid-area: qty;
    }

    .rec-item-row .rec-input-price {
        grid-area: price;
    }

    .rec-item-row button {
        grid-area: delete;
        height: 48px;
        /* Match input height */
        width: 100%;
        background-color: #fee2e2;
        /* Make button red background on mobile */
        border-radius: 6px;
    }

    /* Add labels via placeholder styling helper */
    .rec-item-row input::placeholder {
        font-size: 0.9rem;
        color: #94a3b8;
    }
}

/* =========================================
   OFFLINE ERROR OVERLAY
   ========================================= */

.offline-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999;
    /* Highest priority */
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Show when active class is added via JS */
.offline-overlay.active {
    display: flex;
}

.offline-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 450px;
    width: 90%;
}

.offline-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #ef4444;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.offline-content h2 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.offline-content p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .offline-overlay {
        background: rgba(15, 23, 42, 0.98);
    }

    .offline-content {
        background: #1e293b;
        border-color: #334155;
    }

    .offline-content h2 {
        color: white;
    }

    .offline-content p {
        color: #94a3b8;
    }
}

/* =========================================
   MODERN AUTH REDESIGN (Split Screen)
   ========================================= */

/* The main container for the auth page */
#login-page.page {
    /* Break out of the standard container width for full impact */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    background: white;
    min-height: 100vh;
}

#login-page .form-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

/* The Split Layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* LEFT SIDE: Visual/Brand */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    overflow: hidden;
}

/* Decorative circles */
.auth-visual-side::before,
.auth-visual-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.auth-visual-side::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.auth-visual-side::after {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -150px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.auth-brand-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
}

.auth-brand-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.auth-feature i {
    color: #fbbf24;
    /* Amber for icons */
    font-size: 1.2rem;
}

/* RIGHT SIDE: Form */
.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: white;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideUpFade 0.5s ease-out;
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Modern Inputs */
.input-group-modern {
    margin-bottom: 20px;
    position: relative;
}

.input-group-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.input-group-modern .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-group-modern .form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    background: var(--dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-auth-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* Toggle Link */
.auth-toggle-text {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-toggle-link {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-toggle-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {

    .auth-visual-side {
        display: none;
        /* Hide visual side on tablets/mobile */
    }

    .auth-form-side {
        padding: 20px;
        background: #f8fafc;
    }

    .auth-form-wrapper {
        background: white;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    }
}

/* This applies only to screens 768px wide or smaller */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        /* Stacks items vertically */
        align-items: center;
        /* Centers items horizontally */
        text-align: center;
        /* Centers text and inline images */
    }

    .footer-logo {
        margin-bottom: 20px;
        /* Adds space below the logo */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =======================================================
   BIGGER PRODUCT IMAGES (PRODUCTS PAGE ONLY)
   ======================================================= */

/* 1. DESKTOP VIEW ADJUSTMENTS */
#products-page .amazon-product-card {
    height: 500px !important;
    /* Increased card height to fit larger image */
}

#products-page .amazon-product-img {
    height: 280px !important;
    /* Increased from 180px to 280px */
    padding: 5px !important;
    /* Reduced padding to maximize image size */
    background: #fff !important;
}

#products-page .amazon-product-img img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    /* Ensures the whole image is seen */
    transform: scale(1.1);
    /* Slight zoom to make it pop more */
}

/* 2. MOBILE VIEW ADJUSTMENTS (Phones) */
@media (max-width: 768px) {

    /* Make the grid spacing tighter to give cards more width */
    #products-page .amazon-products-grid {
        gap: 8px !important;
    }

    #products-page .amazon-product-card {
        height: 400px !important;
        /* Increased mobile card height */
    }

    #products-page .amazon-product-img {
        height: 200px !important;
        /* Increased from 140px to 200px */
        padding: 5px !important;
    }

    /* Make the title slightly smaller to save space for the image */
    #products-page .amazon-product-title {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }
}

/* 3. VERY SMALL PHONES */
@media (max-width: 360px) {
    #products-page .amazon-product-card {
        height: 360px !important;
    }

    #products-page .amazon-product-img {
        height: 170px !important;
    }
}

/* Force 4 products per row on the Products Page (Desktop & Tablet) */
@media (min-width: 769px) {
    #products-page .amazon-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* --- Ultra-Thick Curved Underline for "Our Community" --- */

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    /* Increased space for the thicker line */
    z-index: 1;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 5%;
    /* Centers the line slightly */
    bottom: -5px;
    /* Positioned slightly below the text */
    height: 15px;
    /* VERY THICK - adjust this for more/less thickness */
    width: 90%;
    /* Slightly shorter than the text for a stylish look */

    /* A single bold, curved stroke SVG */
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M5 15 Q 50 2 95 15' stroke='%23ef4444' stroke-width='10' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;

    /* Animation settings */
    animation: thickCurveLoop 4s ease-in-out infinite;
    transform-origin: center;
}

/* 3. The Animation: Appearance and Disappearance Loop */
@keyframes thickCurveLoop {
    0% {
        transform: scaleX(0);
        /* Starts from center and grows out */
        opacity: 0;
    }

    15% {
        transform: scaleX(1);
        opacity: 1;
    }

    85% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(1.1);
        /* Slight stretch before fading */
        opacity: 0;
    }
}


/* Base style for the heading */
.about-animated-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -1px;
}

/* The "Nice Effect": Shimmering Gradient Flow */
.text-gradient-flow {
    background: linear-gradient(to right,
            var(--primary) 0%,
            var(--secondary) 25%,
            #f43f5e 50%,
            var(--secondary) 75%,
            var(--primary) 100%);
    background-size: 200% auto;

    /* Clips the background to the text shape */
    -webkit-background-clip: text;
    background-clip: text;

    /* Makes the text transparent so background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* The moving animation */
    animation: flowGradient 4s linear infinite;
    display: inline-block;
}

/* Animation Keyframes */
@keyframes flowGradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .about-animated-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Your existing CSS handles grids turning into single columns */
    .modal-content>div>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Product Detail Modal Styles */
.product-detail-window {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pd-grid {
        grid-template-columns: 1fr !important;
    }

    .pd-image-section {
        padding: 20px !important;
        min-height: 250px !important;
    }

    .pd-info-section {
        padding: 20px !important;
    }

    #pd-title {
        font-size: 1.4rem !important;
    }

    #pd-actions {
        flex-direction: column;
    }

    #pd-actions button {
        width: 100%;
    }
}

/* --- 3D Flip Card Styles --- */

/* --- UPDATED FLIP CARD STYLES (Slideshow & Size Increase) --- */

/* 1. Increase Card Height */
.feature-card.flip-card {
    min-height: 400px !important;
    /* Increased from 320px */
}

/* 2. Slideshow Container */
.card-slideshow {
    position: relative;
    width: 100%;
    height: 220px;
    /* Increased height for images */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

/* 3. Slideshow Images */
.card-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Smooth fade effect */
    border-radius: 8px;
}

/* Class to show the current image */
.card-slideshow img.active {
    opacity: 1;
    z-index: 1;
}

/* Adjust front face padding to accommodate larger images */
.flip-card-front {
    padding: 15px !important;
    justify-content: flex-start;
}

.flip-card-front h3 {
    font-size: 1.4rem !important;
    /* Slightly larger text */
    margin-top: 10px;
}

/* The Inner Container (This does the flipping) */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--radius);
}

/* Interaction: Flip on Hover */
.feature-card.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Common Styles for Front and Back Faces */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 15px;
    /* REDUCED padding from 30px 20px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Front Face Styling */
.flip-card-front {
    background-color: white;
    color: var(--dark);
    z-index: 2;
}

.flip-card-front img {
    width: 100%;
    height: 200px;
    /* REDUCED from 200px */
    object-fit: cover;
    border-radius: 8px;
    /* Slightly smaller radius */
    margin-bottom: 12px;
    /* REDUCED from 20px */
}

.flip-card-front h3 {
    font-size: 1.2rem;
    /* REDUCED size */
    margin-bottom: 8px;
}

.flip-card-front p {
    font-size: 0.9rem;
    /* REDUCED size */
    line-height: 1.4;
}

/* Back Face Styling */
.flip-card-back {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: rotateY(180deg);
    justify-content: center;
    padding: 25px 20px;
    /* REDUCED from 40px 30px */
}

.flip-card-back h3 {
    color: white;
    margin-bottom: 10px;
    /* REDUCED from 15px */
    font-size: 1.3rem;
    /* REDUCED from 1.5rem */
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    /* REDUCED from 1rem */
    margin-bottom: 15px;
    /* REDUCED from 20px */
    line-height: 1.4;
}

.flip-card-back i {
    font-size: 2.5rem !important;
    /* REDUCED icon size */
    margin-bottom: 15px !important;
}

.flip-card-back .btn {
    padding: 8px 16px;
    /* Smaller button */
    font-size: 0.85rem;
}

/* Mobile Touch Support (Optional: Click to flip on touch devices) */
@media (hover: none) {
    .feature-card.flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* --- Social Login Styles --- */

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--gray);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.social-login-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Colors */
.social-btn.google {
    color: #DB4437;
}

.social-btn.google:hover {
    background-color: #DB4437;
    color: white;
    border-color: #DB4437;
}

.social-btn.twitter {
    color: #1DA1F2;
}

.social-btn.twitter:hover {
    background-color: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-btn.instagram {
    color: #E1306C;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    border-color: transparent;
}

/* Microsoft Brand Styling */
.social-btn.microsoft {
    color: #00a4ef;
    /* Microsoft Blue */
}

.social-btn.microsoft:hover {
    background-color: #00a4ef;
    color: white;
    border-color: #00a4ef;
}

/* Apple Brand Styling */
.social-btn.apple {
    color: #000000;
    /* Apple Black */
}

.social-btn.apple:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

/* =========================================
   MOBILE VENDOR DASHBOARD REDESIGN (FIXED)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Container & Layout Reset */
    #store-admin-page #admin-overview {
        display: flex;
        flex-direction: column;
        padding: 10px !important;
        background: #f4f6f9;
        gap: 15px;
    }

    /* 2. Welcome Banner */
    #store-admin-page .dashboard-welcome {
        order: -1;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        border-radius: 16px !important;
        padding: 20px 15px !important;
        /* Slightly reduced padding */
        text-align: left !important;
        color: white !important;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
        margin-bottom: 5px !important;
        border: none !important;
        position: relative;
        overflow: hidden;
    }

    /* Decorative circles */
    #store-admin-page .dashboard-welcome::after {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    #store-admin-page .dashboard-welcome h3 {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        color: white !important;
    }

    #store-admin-page .dashboard-welcome p {
        font-size: 0.9rem !important;
        opacity: 0.9 !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    /* Quick Actions */
    #store-admin-page .quick-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
    }

    #store-admin-page .quick-actions .btn {
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: white !important;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        min-width: auto !important;
        flex: 1;
        justify-content: center;
        white-space: nowrap;
        /* Prevent button text wrapping */
    }

    /* 3. Stats Grid - Modern 2x2 Layout */
    #store-admin-page .dashboard-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        /* Tighter gap */
        margin: 0 !important;
    }

    /* Stat Cards Styling */
    #store-admin-page .stat-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 10px !important;
        /* Reduced padding to fit content */
        background: white !important;
        border-radius: 12px !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        min-height: 110px;
        position: relative;
        overflow: hidden;
        /* Ensure content stays inside */
    }

    /* Remove colored borders */
    #store-admin-page .stat-card.stat-products,
    #store-admin-page .stat-card.stat-stock,
    #store-admin-page .stat-card.stat-orders,
    #store-admin-page .stat-card.stat-revenue,
    #store-admin-page .stat-card.stat-status,
    #store-admin-page .stat-card.stat-terms,
    #store-admin-page .stat-card.stat-location {
        border-left: none !important;
    }

    /* Icons */
    #store-admin-page .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }

    /* Content Container inside card */
    #store-admin-page .stat-content {
        width: 100%;
        /* Ensure text uses full width */
    }

    /* Numbers - FIXED CLIPPING ISSUE */
    #store-admin-page .stat-number {
        font-size: 1.1rem !important;
        /* Reduced size to fit */
        font-weight: 800 !important;
        margin-bottom: 2px !important;
        color: var(--dark) !important;
        word-break: break-word !important;
        /* Break long numbers to next line */
        overflow-wrap: break-word !important;
        line-height: 1.2 !important;
    }

    /* Labels */
    #store-admin-page .stat-label {
        font-size: 0.75rem !important;
        color: var(--gray) !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        /* Keep label on one line if possible */
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    /* Hide descriptions */
    #store-admin-page .stat-description {
        display: none !important;
    }

    /* 4. Full Width Cards */
    #store-admin-page .stat-card.stat-status,
    #store-admin-page .stat-card.stat-terms,
    #store-admin-page .stat-card.stat-location {
        grid-column: span 2 !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: auto !important;
        padding: 12px 15px !important;
    }

    #store-admin-page .stat-card.stat-status .stat-icon,
    #store-admin-page .stat-card.stat-terms .stat-icon,
    #store-admin-page .stat-card.stat-location .stat-icon {
        margin-bottom: 0 !important;
        margin-right: 12px !important;
    }

    #store-admin-page .stat-card.stat-status .stat-number,
    #store-admin-page .stat-card.stat-terms .stat-number {
        font-size: 0.95rem !important;
    }

    /* 5. Store URL Card */
    #store-admin-page .stat-card.stat-url {
        grid-column: span 2 !important;
        background: var(--dark) !important;
        color: white !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px !important;
        margin-top: 5px !important;
    }

    #store-admin-page .stat-card.stat-url .stat-icon {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }

    #store-admin-page .stat-card.stat-url .stat-label {
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 8px !important;
    }

    #store-admin-page .store-url-display {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box;
        /* Ensure padding doesn't increase width */
    }

    #store-admin-page .store-url-display code {
        color: white !important;
        font-size: 0.8rem !important;
        word-break: break-all !important;
        /* Force URL to wrap */
    }

    #store-admin-page .store-url-actions {
        width: 100% !important;
        flex-direction: row !important;
        gap: 8px !important;
    }

    #store-admin-page .store-url-actions button {
        flex: 1 !important;
        background: white !important;
        color: var(--dark) !important;
        border: none !important;
        font-size: 0.85rem !important;
        padding: 10px !important;
    }
}

/* =========================================
   HEADER CLEANUP FOR MOBILE
   Ensure only Logo and Drawer Button show
   ========================================= */

@media (max-width: 1189px) {

    /* 1. Hide everything in the main nav... */
    .main-nav>* {
        display: none !important;
    }

    /* 2. ...Except the Logo */
    .main-nav>.logo {
        display: flex !important;
    }

    /* 3. ...And the Mobile Toggle Button (Drawer Button) */
    .main-nav>.mobile-nav-toggle {
        display: inline-flex !important;
    }

    /* Ensure specific classes are definitely hidden */
    .nav-links,
    .user-actions,
    #auth-buttons {
        display: none !important;
    }

    /* Adjust spacing for the remaining two elements */
    .main-nav {
        justify-content: space-between !important;
        padding: 10px 0px !important;
    }
}

/* --- Find and Replace/Update these sections in style.css --- */

/* 1. Make cards wider by reducing columns from 4 to 3 on Desktop */
@media (min-width: 769px) {
    .amazon-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* Changed from 4 to 3 */
        gap: 20px;
    }

    /* Force wider layout on the products page specifically */
    #products-page .amazon-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 2. Decrease Height & Layout Adjustments */
.amazon-product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    /* CHANGED: Removed fixed height (e.g. 500px) and set to auto to shrink height */
    height: auto !important;
    min-height: 350px;
}

/* 3. Adjust Image height to balance the card */
.amazon-product-img {
    height: 200px !important;
    /* Reduced from 280px to fit shorter card */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

/* 4. Align Buttons Side-by-Side */
.amazon-product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    /* CHANGED: from column to row */

    align-items: center;
    justify-content: space-between;
}

/* 5. Style the View Store Button (Primary) */
.amazon-buy-now {
    flex: 1;
    /* Takes up remaining space */
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    color: #111;
    padding: 10px;
    border-radius: 10px;
    /* More rounded */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

/* 6. Style the New Cart Icon Button */
.amazon-cart-icon-btn {
    width: 42px;
    height: 42px;
    background: none;
    /* Darker orange for contrast */
    border: none;
    color: black;

    /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.amazon-cart-icon-btn:hover {
    transform: scale(1.1);
    color: #9b27ef;

}

.hover-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    /* Position above the button */
    left: 50%;
    margin-left: -60px;
}

.button-container:hover .hover-text {
    visibility: visible;
}

/* =======================================================
   ENHANCED MOBILE DRAWER STYLES
   ======================================================= */

/* 1. The Main Drawer Container */
.mobile-drawer {
    width: 300px;
    /* Slightly wider for a premium feel */
    background: #ffffff;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    /* Deeper, softer shadow */
    display: flex;
    flex-direction: column;
    /* Stacks header, links, and footer */
    height: 100vh;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

/* 2. The Header (Logo & Close) */
.mobile-drawer-header {
    padding-bottom: 8px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-header .footer-logo {
    max-width: 140px;
    /* Slightly larger logo */
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.1));
}



.mobile-drawer-close:hover {
    background: #fee2e2;
    color: var(--danger);
    transform: rotate(90deg);
    /* Playful rotation on hover */
}

/* 3. Navigation Links Area */
.mobile-nav-links {
    flex: 1;
    /* Takes up remaining space to push footer down */
    overflow-y: auto;
    /* Scrollable if list is long */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Consistent spacing */
}

/* Individual Links */
.mobile-nav-links a {
    position: relative;
    padding: 14px 16px;
    color: black;
    /* Slate gray */
    font-weight: 500;
    font-size: 1.2rem;
    border-radius: 12px;
    /* Modern rounded corners */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Icon Styling within links */
.mobile-nav-links a i {
    width: 24px;
    text-align: center;
    color: #7c3aed;
    font-size: 1.5rem;
    transition: color 0.2s;
}

/* Link Hover State */
.mobile-nav-links a:hover {
    background: #f0f7ff;
    /* Very light primary tint */
    color: var(--primary);
    transform: translateX(5px);
    /* Slide right effect */
    border-color: rgba(37, 99, 235, 0.1);
}

.mobile-nav-links a:hover i {
    color: var(--primary);
}

/* Active State (optional if you add .active class via JS) */
.mobile-nav-links a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mobile-nav-links a.active i {
    color: white;
}

/* Cart Badge in Drawer */
.mobile-nav-links #mobile-cart-badge {
    position: static !important;
    /* Reset absolute positioning */
    margin-left: auto;
    /* Push to far right */
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    width: auto;
    height: auto;
    min-width: 24px;
}

/* 4. User Actions (Bottom Area) */
#mobile-user-actions {
    background: #f8fafc;
    /* Subtle contrast background */
    padding: 25px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    /* Ensures it sits at the bottom */
}

/* Reset margins from previous CSS to allow flex gap to work */
.mobile-nav-links #mobile-user-actions .btn-primary,
.mobile-nav-links #mobile-user-actions .btn-outline {
    margin: 0 !important;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Special styling for Open Store button */
.mobile-nav-links #mobile-user-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mobile-nav-links #mobile-user-actions .btn-primary:hover {
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* 5. Entrance Animation for Links */
.mobile-drawer.open .mobile-nav-links a {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

/* Stagger the animation for items */
.mobile-drawer.open .mobile-nav-links a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-drawer.open .mobile-nav-links a:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-drawer.open .mobile-nav-links a:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-drawer.open .mobile-nav-links a:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-drawer.open .mobile-nav-links a:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-drawer.open .mobile-nav-links a:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stack "How to Get Started" columns on mobile */
@media (max-width: 768px) {
    .start-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Ensure Food Page works on Desktop */
@media (min-width: 769px) {
    #food-page .products-container {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px;
    }
}

/* Ensure Food Page works on Mobile */
@media (max-width: 768px) {
    #food-page .products-container {
        display: block;
        padding: 0;
    }

    #food-page .products-sidebar {
        display: none;
        /* Hide sidebar on mobile similar to products page */
    }
}

/* =========================================
   FOOD PAGE MOBILE OPTIMIZATION
   ========================================= */

@media (max-width: 768px) {

    /* 1. Reset Container Spacing */
    #food-page .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* 2. Hide Breadcrumbs on Mobile for Cleaner Look */
    #food-page .products-breadcrumb {
        display: none !important;
    }

    /* 3. Style the Title Header */
    #food-page .section-title {
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        text-align: left !important;
    }

    #food-page .section-title h1 {
        font-size: 1.5rem !important;
    }

    /* 4. Layout: Stack Sidebar and Main Content */
    #food-page .products-container {
        display: block !important;
        padding: 0 !important;
    }

    /* 5. Hide Sidebar Filters (Optional: You can keep if you add a toggle button) */
    #food-page .products-sidebar {
        display: none !important;
    }

    /* 6. Sticky Search Bar Styling */
    #food-page .products-main .products-header {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 15px !important;
        background: white !important;
        position: sticky !important;
        top: 65px;
        /* Stick below the main nav */
        z-index: 99 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* 7. Make Search Input Full Width */
    #food-page #food-search {
        width: 100% !important;
        padding: 12px 15px 12px 40px !important;
        /* Space for icon */
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        background-color: #f8f8f8 !important;
    }

    #food-page .products-header>div {
        width: 100% !important;
    }

    /* 8. Products Grid: 2 Columns like Amazon */
    #food-page .amazon-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        background: #f3f4f6 !important;
        /* Light gray background */
    }

    /* 9. Clean up Pagination */
    #food-page .products-pagination {
        background: white;
        padding: 15px;
        margin-top: 0;
        border-top: 1px solid #e0e0e0;
    }
}

/* =========================================
   FOOD CARD MOBILE TWEAKS (Ensures consistency)
   ========================================= */
@media (max-width: 480px) {

    /* Adjust Food Card Height */
    #food-page .amazon-product-card {
        height: auto !important;
        min-height: 280px !important;
        display: flex;
        flex-direction: column;
    }

    #food-page .amazon-product-img {
        height: 130px !important;
        padding: 5px !important;
    }

    /* Clean up text size */
    #food-page .amazon-product-title {
        font-size: 0.85rem !important;
        height: 36px !important;
        /* Limit to 2 lines */
        overflow: hidden;
        margin-bottom: 5px !important;
    }

    /* Make buttons distinct */
    #food-page .amazon-buy-now {
        width: 100%;
        padding: 8px 0;
        font-size: 0.8rem;
    }

    /* Hide the Cart Icon on very small screens to prevent clutter, 
       users can click 'View Store' or image */
    #food-page .amazon-cart-icon-btn {
        display: none !important;
    }

    #food-page .amazon-product-actions {
        margin-top: auto;
    }
}

/* =========================================
   MOBILE PAGINATION FIX
   ========================================= */

@media (max-width: 768px) {

    /* 1. Force Visibility & Layout */
    #food-page .products-pagination,
    #products-page .products-pagination {
        display: flex !important;
        /* Override hidden status */
        justify-content: space-between;
        /* Space out Prev/Next */
        align-items: center;
        width: 100%;
        padding: 15px 10px;
        background: white;
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
        position: relative;
        z-index: 10;
    }

    /* 2. Style Previous/Next Buttons */
    .products-pagination .page-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 10px 16px;
        background: #f8f9fa;
        /* Light gray background */
        border: 1px solid #d1d5db;
        border-radius: 8px;
        /* Rounded corners */
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        min-height: 40px;
        /* Tappable height */
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* 3. Style Active State */
    .products-pagination .page-btn:active {
        background: #e5e7eb;
        transform: translateY(1px);
    }

    /* 4. Page Numbers - Styled for mobile (JS limits to 3 on mobile) */
    .products-pagination .page-numbers {
        display: flex;
        gap: 5px;
        justify-content: center;
    }

    .products-pagination .page-number {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        border-radius: 6px;
        flex-shrink: 0;
    }

    /* Hide non-active numbers on very small screens if needed */
    @media (max-width: 380px) {
        .products-pagination .page-number:not(.active) {
            display: none;
        }
    }
}

/* --- Product Wishlist Heart Button --- */
.wishlist-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    /* Ensure it sits above images and other badges */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.wishlist-overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wishlist-overlay-btn i {
    color: #cbd5e1;
    /* Default gray color */
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

/* Active State (Saved) */
.wishlist-overlay-btn.active i {
    color: #ef4444;
    /* Red color */
    font-weight: 900;
    /* Solid heart */
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Adjust Prime badge position so it doesn't overlap if present */
.prime-badge {
    top: 50px !important;
    /* Move it down below the heart */
    right: 10px !important;
}

/* --- Compare Feature Styles --- */

/* 1. Comparison Checkbox on Product Card */
.compare-checkbox-container {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Adjust if it overlaps with badges */
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.compare-checkbox-container:hover {
    background: white;
}

.compare-checkbox-container input {
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Adjust position if badges exist */
.product-card .compare-checkbox-container {
    top: 45px;
    /* Push down below standard badges */
    left: 10px;
}

/* 2. Floating Compare Tray */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9000;
    /* High z-index */
    padding: 15px;
    transform: translateY(100%);
    animation: slideUpTray 0.3s forwards;
    border-top: 1px solid #e2e8f0;
}

@keyframes slideUpTray {
    to {
        transform: translateY(0);
    }
}

.compare-tray-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-tray-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.compare-tray-header span {
    font-weight: 700;
    color: var(--dark);
}

.btn-text {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
    text-decoration: underline;
}

.compare-thumbnails {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
}

.compare-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    position: relative;
    background: #f8fafc;
    flex-shrink: 0;
}

.compare-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.compare-thumb-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    border: 2px solid white;
}

/* 3. Comparison Table Styling */
.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 15px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    text-align: left;
}

/* First column (Labels) */
.compare-table td:first-child {
    background: #f8fafc;
    font-weight: 600;
    width: 150px;
    color: var(--gray);
}

/* Product columns */
.compare-col {
    min-width: 200px;
    background: white;
}

.compare-img-large {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.compare-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Mobile Responsiveness for Tray */
@media (max-width: 768px) {
    .compare-tray-content {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-tray-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .compare-thumbnails {
        margin: 10px 0;
    }
}

/* =========================================
   UPDATE PRODUCT BUTTON COLORS
   ========================================= */

/* 1. Main Products Page (The Amazon-style grid) */
#products-page .amazon-buy-now,
#products-page .amazon-add-to-cart {
    /* Remove the old yellow/orange gradients */
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: white !important;

    /* Optional: Add a subtle gradient instead of flat color */
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

#products-page .amazon-buy-now:hover,
#products-page .amazon-add-to-cart:hover {
    /* Darker shade on hover */
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Update the Cart Icon Button on Products Page */
#products-page .amazon-cart-icon-btn {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.1) !important;
    /* Light blue background */
    border-radius: 50%;
}

#products-page .amazon-cart-icon-btn:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* 2. Vendor Store Detail Page Buttons */
#store-detail-content .add-to-cart-btn {
    background: white !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

#store-detail-content .add-to-cart-btn:hover {
    background: var(--primary) !important;
    color: white !important;
}

#store-detail-content .btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    border: none !important;
}

#store-detail-content .btn-buy:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 3. Negotiate / Chat Button (Outline) */
#store-detail-content button.btn-outline,
.product-actions .btn-outline {
    border-color: var(--secondary) !important;
    color: white !important;
}

#store-detail-content button.btn-outline:hover,
.product-actions .btn-outline:hover {
    background: var(--secondary) !important;
    color: white !important;
}

/* ... existing code ... */

/* Add this section near the end of your CSS or inside the existing @media (max-width: 768px) block */

@media (max-width: 768px) {

    /* Hide Settings and Receipt tabs from the horizontal bar on mobile */
    #store-admin-page .mobile-admin-tabs .tab-item[data-tab="settings"],
    #store-admin-page .mobile-admin-tabs .tab-item[data-tab="receipt"] {
        display: none !important;
    }

    /* Optional: Style the injected vendor links in the drawer to stand out slightly */
    .vendor-drawer-link {
        color: var(--dark);
        font-weight: 600;
        border-left: 3px solid transparent;
    }

    .vendor-drawer-link:hover {
        background: #f0f9ff;
        border-left-color: var(--primary);
    }

    .vendor-drawer-link i {
        color: var(--secondary);
        /* Distinguish vendor tools */
    }
}

/* Mobile Fix for Verification Banner */
@media (max-width: 768px) {

    /* Target the inner container of the verification card */
    #store-admin-page [style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* Make the button full-width on mobile */
    #store-admin-page .btn-success,
    #store-admin-page .btn-outline {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center;
    }

    /* Ensure the text doesn't look cramped */
    #store-admin-page p {
        font-size: 0.85rem !important;
    }
}

/* Mobile responsive layout */
@media (max-width: 600px) {
    .verification-content {
        flex-direction: column;
        text-align: center;
    }

    .verification-content button {
        width: 100%;
        margin-top: 10px;
    }
}

/* ========================================================================
   ENHANCED DEVELOPER DASHBOARD - MOBILE OPTIMIZED & USER-FRIENDLY
   ======================================================================== */

@media (max-width: 768px) {

    /* ===== 1. MAIN CONTAINER - CLEAN SPACING ===== */
    #developer-page .container {
        padding: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* ===== 2. SECTION TITLE - ENHANCED VISIBILITY ===== */
    #developer-page .section-title {
        padding: 25px 20px !important;
        margin-bottom: 25px !important;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        border-radius: 12px !important;
        text-align: center !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }

    #developer-page .section-title h2 {
        font-size: 1.6rem !important;
        color: white !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    #developer-page .section-title p {
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin: 0 !important;
    }

    /* ===== 3. STATS GRID - ENHANCED 2x2 LAYOUT ===== */
    #developer-page .dev-panel-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 30px !important;
    }

    #developer-page .dev-card {
        padding: 20px 15px !important;
        min-height: 120px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        border: none !important;
        position: relative !important;
        overflow: hidden !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    #developer-page .dev-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    }

    /* Gradient accent bar at top of each card */
    #developer-page .dev-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    }

    /* Color-coded accent bars for different cards */
    #developer-page .dev-card:nth-child(1)::before {
        background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
    }

    #developer-page .dev-card:nth-child(2)::before {
        background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important;
    }

    #developer-page .dev-card:nth-child(3)::before {
        background: linear-gradient(90deg, #10b981, #34d399) !important;
    }

    #developer-page .dev-card:nth-child(4)::before {
        background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
    }

    #developer-page .dev-card h3 {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        color: var(--gray) !important;
        font-weight: 700 !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    #developer-page .dev-card p {
        font-size: 2rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        color: var(--dark) !important;
        line-height: 1 !important;
    }

    /* Icon styling for System Status card */
    #developer-page .dev-card .fa-check-circle {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    /* ===== 4. SECTION CONTAINERS - ENHANCED CARDS ===== */
    #developer-page>div[style*="margin-top"] {
        margin: 0 0 25px 0 !important;
        padding: 25px 18px !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        border-left: 5px solid var(--primary) !important;
    }

    /* Different colors for different sections */
    #developer-page>div[style*="border-left: 5px solid #f59e0b"] {
        border-left: 5px solid #f59e0b !important;
    }

    #developer-page>div[style*="border-left: 5px solid #2563eb"] {
        border-left: 5px solid #2563eb !important;
    }

    #developer-page>div[style*="border-left: 5px solid #10b981"] {
        border-left: 5px solid #10b981 !important;
    }

    #developer-page h3 {
        font-size: 1.25rem !important;
        margin-bottom: 20px !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid #f1f5f9 !important;
    }

    #developer-page h3 i {
        font-size: 1.4rem !important;
    }

    /* ===== 5. TABLES - MOBILE CARD LAYOUT ===== */
    #developer-page table,
    #developer-page thead,
    #developer-page tbody,
    #developer-page th,
    #developer-page td,
    #developer-page tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #developer-page thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    #developer-page tbody tr {
        margin-bottom: 18px !important;
        padding: 18px !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        border-left: 5px solid var(--primary) !important;
        position: relative !important;
        transition: all 0.2s ease !important;
    }

    #developer-page tbody tr:hover {
        background: #f1f5f9 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-2px) !important;
    }

    #developer-page td {
        border: none !important;
        padding: 12px 0 !important;
        text-align: left !important;
        position: relative !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 0.9rem !important;
        word-break: break-word !important;
    }

    #developer-page td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* Add labels before each cell for clarity */
    #developer-page td::before {
        content: attr(data-label) !important;
        display: block !important;
        font-weight: 700 !important;
        color: var(--gray) !important;
        font-size: 0.7rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        margin-bottom: 6px !important;
    }

    /* Store name - prominent display */
    #developer-page td:nth-of-type(1) {
        font-weight: 700 !important;
        font-size: 1.15rem !important;
        color: var(--dark) !important;
        margin-bottom: 10px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }

    /* ===== 6. ACTION BUTTONS - IMPROVED LAYOUT ===== */
    #developer-page .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    #developer-page .action-buttons button {
        width: 100% !important;
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    #developer-page .action-buttons button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    }

    /* Full-width buttons for single actions */
    #developer-page .action-buttons button:only-child {
        grid-column: 1 / -1 !important;
    }

    /* ===== 7. STATUS BADGES - ENHANCED VISIBILITY ===== */
    #developer-page .store-status,
    #developer-page [style*="padding: 5px 15px"] {
        display: inline-block !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* ===== 8. DETAILS/SUMMARY ELEMENTS ===== */
    #developer-page details {
        width: 100% !important;
        margin-top: 12px !important;
        background: white !important;
        padding: 15px !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }

    #developer-page details summary {
        cursor: pointer !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #developer-page details summary::marker {
        color: var(--primary) !important;
    }

    #developer-page details p {
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #e2e8f0 !important;
        color: var(--gray) !important;
        line-height: 1.6 !important;
        font-size: 0.9rem !important;
    }

    /* ===== 9. LOADING STATES ===== */
    #developer-page .spinner {
        margin: 30px auto !important;
    }

    /* ===== 10. EMPTY STATES ===== */
    #developer-page p:only-child {
        text-align: center !important;
        padding: 40px 20px !important;
        color: var(--gray) !important;
        font-size: 0.95rem !important;
        background: #f8fafc !important;
        border-radius: 10px !important;
    }

    /* ===== 11. IMPROVED TYPOGRAPHY ===== */
    #developer-page {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* ===== 12. BETTER SPACING BETWEEN SECTIONS ===== */
    #developer-page>div+div {
        margin-top: 25px !important;
    }

    /* ===== 13. SCROLLABLE CONTAINERS ===== */
    #developer-page>div {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ========================================================================
   EXTRA SMALL SCREENS - OPTIMIZED FOR SMALL MOBILE PHONES
   ======================================================================== */

@media (max-width: 480px) {

    /* Reduce padding for smaller screens */
    #developer-page .container {
        padding: 12px !important;
    }

    /* Smaller section title */
    #developer-page .section-title {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    #developer-page .section-title h2 {
        font-size: 1.4rem !important;
    }

    #developer-page .section-title p {
        font-size: 0.85rem !important;
    }

    /* Single column layout for stats on very small screens */
    #developer-page .dev-panel-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #developer-page .dev-card {
        min-height: 100px !important;
        padding: 18px 15px !important;
    }

    #developer-page .dev-card h3 {
        font-size: 0.7rem !important;
    }

    #developer-page .dev-card p {
        font-size: 1.8rem !important;
    }

    /* Smaller section containers */
    #developer-page>div[style*="margin-top"] {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    #developer-page h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }

    /* Smaller table cards */
    #developer-page tbody tr {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    #developer-page td {
        padding: 10px 0 !important;
        font-size: 0.85rem !important;
    }

    #developer-page td:nth-of-type(1) {
        font-size: 1.05rem !important;
    }

    /* Stack action buttons vertically on very small screens */
    #developer-page .action-buttons {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    #developer-page .action-buttons button {
        padding: 11px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Smaller details elements */
    #developer-page details {
        padding: 12px !important;
    }

    #developer-page details summary {
        font-size: 0.85rem !important;
    }

    #developer-page details p {
        font-size: 0.85rem !important;
    }
}

/* ========================================================================
   LANDSCAPE MODE OPTIMIZATION FOR MOBILE
   ======================================================================== */

@media (max-width: 768px) and (orientation: landscape) {

    /* Keep 2x2 grid in landscape mode */
    #developer-page .dev-panel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reduce vertical padding in landscape */
    #developer-page .section-title {
        padding: 18px 20px !important;
    }

    #developer-page .dev-card {
        min-height: 100px !important;
        padding: 15px 12px !important;
    }

    #developer-page>div[style*="margin-top"] {
        padding: 20px 15px !important;
    }

    /* Keep action buttons in 2-column grid */
    #developer-page .action-buttons {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ======================================================
   STORE SECTION IMAGE FIX (Edge-to-Edge & Taller)
   ====================================================== */

/* 1. Reset Image Container to fill width */
#store-detail-content .product-img {
    padding: 0 !important;
    /* Removes white spacing around image */
    width: 100% !important;
    /* Forces full width */
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee;
}

/* 2. Force Image to Cover the Area */
#store-detail-content .product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Ensures image fills the box without whitespace */
    border-radius: 8px 8px 0 0 !important;
    /* Rounds top corners only */
}

/* 3. DESKTOP: Increase Image Height & Adjust Content */
@media (min-width: 769px) {
    #store-detail-content .product-img {
        height: 220px !important;
        /* Increased from 180px */
    }

    /* Compact content slightly so buttons don't get cut off */
    #store-detail-content .product-content {
        padding: 10px 12px !important;
    }

    #store-detail-content .product-name {
        margin-bottom: 4px !important;
    }

    #store-detail-content .product-price {
        margin: 4px 0 !important;
    }
}

/* 4. MOBILE: Increase Image Height & Fix Layout */
@media (max-width: 768px) {
    #store-detail-content .product-img {
        height: 180px !important;
        /* Increased from ~140px */
    }

    #store-detail-content .product-content {
        padding: 8px 8px !important;
        /* Reduce padding to save space */
    }

    /* Ensure card flex layout works perfectly */
    #store-detail-content .product-card {
        display: flex !important;
        flex-direction: column !important;
        /* We keep height auto/min-height to ensure nothing is cut off */
        height: auto !important;
        min-height: 340px !important;
    }

    /* Make text take up less vertical space */
    #store-detail-content .product-name {
        font-size: 0.85rem !important;
        height: 34px !important;
        /* Strict height for 2 lines */
        margin-bottom: 2px !important;
    }

    #store-detail-content .product-category {
        margin-bottom: 4px !important;
    }

    #store-detail-content .product-price {
        margin: 2px 0 6px 0 !important;
    }

    /* Ensure buttons stay at bottom */
    #store-detail-content .product-actions {
        margin-top: auto !important;
        gap: 5px !important;
    }
}

/* ======================================================
   MOBILE STORE GRID: ABSOLUTE FULL-WIDTH (0 MARGINS)
   ====================================================== */

@media (max-width: 768px) {

    /* 1. Remove all padding from the main store detail container */
    #store-detail-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    /* 2. Force the grid to touch the screen edges */
    #store-detail-content .products-grid {

        margin: 0 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Perfect 2-column split */
    }

    /* 3. Product Card adjustments for Edge-to-Edge look */
    #store-detail-content .product-card {
        /* Square corners look better on full-width */
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        /* Simple bottom divider */
        box-shadow: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 360px !important;
    }

    /* 4. Image Height & Coverage */
    #store-detail-content .product-img {
        padding: 0 !important;
        height: 200px !important;
        /* Taller image as requested */
        width: 100% !important;
        background-color: #fff !important;
    }

    #store-detail-content .product-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* Fills the container completely */
        border-radius: 0 !important;
    }

    /* 5. Content Padding (So text doesn't touch the glass) */
    #store-detail-content .product-content {
        padding: 12px 10px !important;
    }

    /* Ensure action buttons take full width inside the card */
    #store-detail-content .product-actions {
        padding: 0 10px 12px 10px !important;
    }
}