/* CSS Variables */
:root {
    --primary-color: #FF8C42;
    --primary-dark: #FF6B35;
    --secondary-color: #FFB366;
    --dark-color: #8B4513;
    --light-color: #FFF8DC;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gradient-primary: linear-gradient(135deg, #FF8C42 0%, #FFB366 100%);
    --gradient-secondary: linear-gradient(135deg, #FFB366 0%, #FFA500 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Discount Amount Styling - Red with Strikethrough */
.col.discount-amount,
.col.discount-amount .discount-amount-val,
.price-item.discount .detail-value {
    color: var(--error-color) !important;
    text-decoration: line-through !important;
    font-weight: 600;
}

.col.discount-amount .discount-amount-val {
    position: relative;
}

.col.discount-amount .discount-amount-val::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--error-color);
    transform: translateY(-50%);
}

/* Final Price Styling - Green */
.col.final-price,
.col.final-price .final-price-val,
.price-item.final .detail-value {
    color: var(--success-color) !important;
    font-weight: 700;
}

/* Header styling for consistency */
.orderlist-header .col.discount-amount {
    color: var(--error-color) !important;
    font-weight: 600;
}

.orderlist-header .col.final-price {
    color: var(--success-color) !important;
    font-weight: 600;
}

/* Summary section styling */
.summary-item:has(.summary-label:contains("Total Discount")),
.summary-item .summary-value[data-type="discount"],
.mobile-bottom-bar .label:contains("Total Discount") + .value,
td:contains("Total Discount") + td {
    color: var(--error-color) !important;
    font-weight: 600;
}

.summary-item:has(.summary-label:contains("Final Amount")),
.summary-item .summary-value[data-type="final"],
.mobile-bottom-bar .label:contains("Final Amount") + .value,
td:contains("Final Price to Pay") + td {
    color: var(--success-color) !important;
    font-weight: 700;
}

/* Specific selectors for summary values */
#totalDiscount,
#finalAmount,
#mobileFinalAmount {
    font-weight: 700;
}

#totalDiscount {
    color: var(--error-color) !important;
}

#finalAmount,
#mobileFinalAmount {
    color: var(--success-color) !important;
}

/* Sale Announcement Strip */
.sale-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD93D, #6BCF7F);
    color: white;
    padding: 12px 0;
    z-index: 1001;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.sale-content {
    display: inline-block;
    animation: slideLeft 20s linear infinite;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sale-content i {
    margin: 0 15px;
    font-size: 1.3rem;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes slideLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes bounce {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(360deg); }
}

/* Cracker Effects */
.cracker-effects {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.sparkler {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #FF8C42, #FFA500, #FF6B6B);
    border-radius: 2px;
    animation: sparklerRise 4s linear infinite;
}

.rocket {
    position: absolute;
    bottom: -30px;
    width: 6px;
    height: 30px;
    background: linear-gradient(to top, #FF6B6B, #FF8E53);
    border-radius: 3px;
    animation: rocketRise 6s linear infinite;
}

.rocket::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 10px solid #FF6B6B;
}

@keyframes sparklerRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rocketRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Shop Banner Styles */
.shop-banner {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB366 100%);
    padding: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 0;
    z-index: 10;
    width: 100%;
    clear: both;
}

.shop-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner1.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-logo .logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
}

.shop-logo i {
    font-size: 3rem;
    color: #FF8C42;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,215,0,0.8);
    }
}

.shop-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.shop-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

/* Hero Stats within Banner */
.shop-banner .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.shop-banner .hero-stats .stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.shop-banner .hero-stats .stat:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.shop-banner .hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF8C42;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.shop-banner .hero-stats .stat-label {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-item i {
    width: 20px;
    color: #FF8C42;
    margin-top: 2px;
    flex-shrink: 0;
}

.banner-features {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.feature:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.feature i {
    font-size: 1.5rem;
    color: #FF8C42;
}

.feature span {
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design for Shop Banner */
@media (max-width: 768px) {
    .banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .shop-logo h1 {
        font-size: 2rem;
    }
    
    .banner-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }
    
    .feature {
        min-width: 140px;
        padding: 1rem 1.5rem;
    }
    
    .shop-banner .hero-stats {
        gap: 2rem;
    }
    
    .shop-banner .hero-stats .stat {
        padding: 1rem 1.5rem;
    }
    
    .shop-banner .hero-stats .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .shop-banner {
        padding: 1.5rem 0;
    }
    
    .shop-logo h1 {
        font-size: 1.8rem;
    }
    
    .shop-tagline {
        font-size: 1rem;
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
    }
}



.orderlist-section { 
    padding: 3rem 0; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.orderlist-topbar { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    margin-bottom: 1.5rem; 
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.orderlist-topbar .badge-info { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border: 1px solid #dee2e6; 
    padding: 0.8rem 1.2rem; 
    border-radius: 999px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    font-weight: 600; 
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.orderlist-topbar .badge-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.orderlist-topbar .search-box.compact { 
    min-width: 280px; 
    flex: 1; 
    max-width: 450px; 
}

.orderlist-wrapper { 
    display: block; 
    width: 100%; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
    border-radius: 16px;
    background: #f8f9fa;
    padding: 4px;
}

/* Custom scrollbar styles for webkit browsers */
.orderlist-wrapper::-webkit-scrollbar {
    height: 12px;
}

.orderlist-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.orderlist-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.orderlist-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.orderlist-table { 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); 
    overflow: hidden;
    border: 1px solid #e9ecef;
    min-width: 1000px; /* Ensure minimum width for all columns */
}
.orderlist-header, .orderlist-row { 
    display: grid; 
    grid-template-columns: 100px 80px 1.5fr 120px 120px 120px 120px 160px 140px; 
    align-items: center; 
    gap: 0;
    min-width: 1000px; /* Ensure minimum width for all columns */
}
.orderlist-header { background: var(--dark-color); color:#fff; font-weight:600; position:sticky; top:70px; z-index:5; padding:0.8rem 1rem; }
.orderlist-header .col { 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    min-width: 0; /* Allow columns to shrink if needed */
}

.category-row { 
    position: sticky; 
    top: 116px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    z-index: 4; 
    padding: 1.8rem 1.5rem; 
    border-top: 1px solid #e9ecef; 
    border-bottom: 1px solid #e9ecef; 
}

.category-row .chip { 
    display: inline-flex; 
    gap: 0.5rem; 
    align-items: center; 
    background: var(--gradient-secondary); 
    color: #fff; 
    padding: 0.5rem 1rem; 
    border-radius: 999px; 
    font-weight: 600; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orderlist-row { 
    padding: 1rem 1.5rem; 
    border-bottom: 1px solid #f0f0f0; 
    background: #fff; 
    transition: all 0.3s ease; 
}

.orderlist-row:first-child {
    margin-top: 42px;
}

.orderlist-row:hover { 
    background: #f8f9fa; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 3px solid var(--primary-color);
}
.orderlist-row .col { 
    display: flex; 
    align-items: center;
    min-width: 0; /* Allow columns to shrink if needed */
    overflow: hidden; /* Prevent content from overflowing */
}

.orderlist-row .thumb { 
    width: 80px; 
    height: 60px; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #f2f2f2; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

/* Column Width Constraints */
.orderlist-row .col.img {
    min-width: 100px;
    max-width: 100px;
}

.orderlist-row .col.code {
    min-width: 80px;
    max-width: 80px;
}

.orderlist-row .col.name {
    min-width: 200px;
}

.orderlist-row .col.content {
    min-width: 120px;
    max-width: 120px;
}

.orderlist-row .col.actual-price {
    min-width: 120px;
    max-width: 120px;
}

.orderlist-row .col.discount-amount {
    min-width: 120px;
    max-width: 120px;
}

.orderlist-row .col.final-price {
    min-width: 120px;
    max-width: 120px;
}

.orderlist-row .col.qty {
    min-width: 160px;
    max-width: 160px;
}

.orderlist-row .col.total {
    min-width: 140px;
    max-width: 140px;
}





.orderlist-row .thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.orderlist-row img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.name-wrap { 
    display: flex; 
    flex-direction: column; 
    gap: 0.4rem; 
    width: 100%;
}

.name-wrap .title { 
    font-weight: 600; 
    color: var(--dark-color); 
    font-size: 0.95rem;
    line-height: 1.3;
}

.name-wrap .badge.cat { 
    align-self: flex-start; 
    font-size: 0.7rem; 
    background: #eef7f6; 
    color: #2c7a7b; 
    padding: 0.25rem 0.6rem; 
    border-radius: 6px; 
    border: 1px solid #d5efec; 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.col.price, .col.discount, .col.total { 
    font-weight: 700; 
    color: var(--primary-color); 
    font-size: 1.1rem;
}

.col.discount { 
    color: #16a085; 
    font-size: 1rem;
}

.col.total {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.qty-inline { 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
    justify-content: flex-start; 
}

.qty-inline .btn-qty { 
    width: 32px; 
    height: 32px; 
    border: none; 
    border-radius: 8px; 
    background: var(--primary-color); 
    color: #fff; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-weight: 700; 
    font-size: 1.1rem;
}

.qty-inline .btn-qty:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    background: var(--dark-color); 
}

.qty-inline .qty-input { 
    width: 70px; 
    text-align: center; 
    padding: 0.5rem; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1rem;
    transition: all 0.3s ease;
}

.qty-inline .qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

/* Sticky Summary */
.sticky-summary { 
    position: sticky; 
    top: 120px; /* Adjusted for sale announcement strip */
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    margin-bottom: 1rem;
    z-index: 10;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.summary-table {
    display: flex;
    flex-direction: column;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.summary-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 1px solid #e9ecef;
    min-height: 60px;
    position: relative;
}

.summary-col::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #dee2e6;
}

.summary-col:last-child {
    border-right: none;
}

.summary-col.total {
    background: var(--primary-color);
    color: white;
}

.summary-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.summary-col.total .summary-label,
.summary-col.total .summary-value {
    color: white;
}

.summary-col:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.summary-col.total:hover {
    background: var(--dark-color);
    transform: translateY(-1px);
}

.summary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.action-buttons .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sum-row.total { 
    border-top: 2px solid var(--primary-color); 
    margin-top: 0.8rem; 
    padding-top: 0.8rem; 
    font-size: 1.2rem; 
    font-weight: 700;
    color: var(--primary-color);
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.min-note { 
    font-size: 0.85rem; 
    color: #e74c3c; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 0.8rem;
    background: #fdf2f2;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.sum-actions { 
    display: flex; 
    gap: 0.8rem; 
    margin-top: 1rem; 
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.sum-actions .btn {
    flex: 1;
    padding: 0.8rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sum-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tamil Names */
.name-wrap .tamil-name {
    font-size: 0.85rem;
    color: #2c7a7b;
    font-style: normal;
    margin-top: 0.3rem;
    line-height: 1.4;
    background: #eef7f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d5efec;
    display: inline-block;
    font-weight: 500;
}

/* Image Popup Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close-image-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.close-image-modal:hover {
    color: #000;
    background: #f8f9fa;
}

.image-modal-body {
    text-align: center;
}

.image-modal-body img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.image-info {
    padding: 1.5rem;
    background: #f8f9fa;
}

.image-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.image-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Animations */
.orderlist-row.reveal { opacity:0; transform: translateY(8px); }
.orderlist-row.reveal.revealed { opacity:1; transform: translateY(0); transition: all .4s ease; }

/* Responsive Design */
@media (max-width: 768px) {
    .sticky-summary {
        position: relative;
        top: auto;
        margin-bottom: 1rem;
    }
    
    .summary-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .summary-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .orderlist-topbar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .orderlist-topbar .search-box.compact {
        min-width: auto;
        width: 100%;
    }
    
    .orderlist-header, .orderlist-row {
        grid-template-columns: 80px 60px 1fr 80px 80px 80px 80px 120px 100px;
        font-size: 0.85rem;
    }
    
    .name-wrap .tamil-name {
        font-size: 0.75rem;
    }
    
    .orderlist-row .thumb {
        width: 60px;
        height: 45px;
    }
    
    /* Ensure quantity and total columns are visible on mobile */
    .orderlist-row .col.qty,
    .orderlist-row .col.total {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .orderlist-row .qty-input {
        width: 60px;
        height: 35px;
        font-size: 0.9rem;
    }
    

    
    /* Mobile floating buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    

    
    /* Improve mobile layout */
    .orderlist-section {
        padding: 1.5rem 0;
    }
    
    .orderlist-table {
        border-radius: 12px;
        margin: 0 0.5rem;
    }
    
    /* Enable horizontal scrolling on mobile */
    .orderlist-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f1f1f1;
        margin: 0;
        padding: 2px;
    }
    
    /* Ensure table maintains structure on mobile */
    .orderlist-table {
        min-width: 1000px;
        margin: 0;
    }
    
    /* Custom scrollbar for mobile */
    .orderlist-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .orderlist-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .orderlist-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .orderlist-wrapper::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

@media (max-width: 480px) {
    .orderlist-header, .orderlist-row {
        grid-template-columns: 60px 50px 1fr 70px 70px 70px 70px 100px 80px;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .orderlist-row .thumb {
        width: 50px;
        height: 40px;
    }
    
    .orderlist-row .qty-input {
        width: 50px;
        height: 30px;
        font-size: 0.8rem;
    }
    

    

    
    .shop-banner {
        padding: 1.5rem 0;
    }
    
    .banner-content {
        gap: 1.5rem;
    }
    
    .shop-logo h1 {
        font-size: 1.2rem;
    }
    
    .shop-logo .logo-img {
        height: 70px;
        border-radius: 5px;
    }
    
    .shop-logo i {
        font-size: 1.5rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
    
    .feature {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .shop-banner .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .shop-banner .hero-stats .stat {
        padding: 0.8rem 1rem;
        min-width: 150px;
    }
    
    .shop-banner .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    /* Smaller floating buttons on very small screens */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 360px) {
    .shop-logo h1 {
        display: none;
    }
    
    .shop-logo .logo-img {
        height: 80px;
        border-radius: 5px;
    }
    
    .shop-logo i {
        font-size: 2rem;
    }
    
    .shop-tagline {
        font-size: 1rem;
    }
    
    /* Tiny floating buttons on very small screens */
    .whatsapp-float {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: 10px;
        left: 10px;
    }

    /* Mobile responsive for place order modal */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .place-order-modal {
        max-width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .order-summary-table {
        overflow-x: auto;
    }
    
    .order-summary-table table {
        min-width: 400px;
    }

    /* Mobile responsive for minimum order modal */
    .minimum-order-modal {
        max-width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .minimum-order-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .minimum-order-actions .btn {
        width: 100%;
    }

    .summary-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Place Order Modal Styles */
.place-order-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideInFromRight 0.5s ease-out;
}

.place-order-modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    animation: slideInFromTop 0.6s ease-out 0.2s both;
}

.order-summary-section {
    margin-bottom: 2rem;
    animation: slideInFromLeft 0.6s ease-out 0.4s both;
}

.order-summary-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.order-summary-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-summary-table table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary-table th,
.order-summary-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.order-summary-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.order-summary-table tbody tr {
    animation: slideInFromLeft 0.6s ease-out;
    animation-delay: calc(var(--row-index, 0) * 0.1s);
}

.order-summary-table tfoot tr {
    background: #e9ecef;
    font-weight: 600;
    animation: slideInFromBottom 0.6s ease-out 1.4s both;
}

.order-summary-table .total-row {
    background: var(--success-color);
    color: white;
    animation: slideInFromBottom 0.6s ease-out 1.6s both;
}

.order-summary-table .total-row {
    background: var(--success-color);
    color: white;
}

.customer-info-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    animation: slideInFromRight 0.6s ease-out 0.8s both;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    animation: slideInFromBottom 0.6s ease-out 1.2s both;
}

/* Minimum Order Modal Styles */
.minimum-order-modal {
    max-width: 500px;
    text-align: center;
    animation: modalBounceIn 0.6s ease-out;
}

.minimum-order-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1rem;
    animation: warningPulse 2s ease-in-out infinite;
}

.minimum-order-modal h2 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.minimum-order-modal p {
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.current-total {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #ffc107;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.current-total p {
    margin: 0.5rem 0;
    font-weight: 600;
}

.remaining-amount {
    color: #856404;
    font-size: 1.1rem;
    margin-top: 1rem !important;
}

.minimum-order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        transform: scale(1.05) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

@keyframes modalSlideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Modal Styles */
.success-modal {
    max-width: 500px;
    text-align: center;
    animation: successModalPop 0.8s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: successIconBounce 1s ease-out 0.3s both;
}

.success-modal h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-modal p {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.order-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.order-details p {
    margin: 0.5rem 0;
    color: var(--dark-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes successModalPop {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

/* Success Button Color */
.btn-success {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Enhanced button animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Button ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Scroll Indicator for Mobile */
.scroll-indicator {
    display: none;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.scroll-indicator i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

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

/* Show scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

/* Mobile products visible by default */
.mobile-products {
    display: block;
    padding: 0.5rem;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}



/* Mobile Card Design */
@media (max-width: 768px) {
    /* Hide desktop table on mobile */
    .orderlist-wrapper {
        display: none !important;
    }
    
    /* Ensure mobile products are visible */
    .mobile-products {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Compact card design */
    .product-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 0.75rem;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid #e9ecef;
    }
    
    .product-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .product-card-header {
        background: linear-gradient(135deg, #FF8C42 0%, #FFB366 100%);
        color: white;
        padding: 0.75rem;
        text-align: center;
    }
    
    .product-card-header h3 {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .product-card-header .tamil-name {
        font-size: 0.75rem;
        opacity: 0.9;
        margin-top: 0.2rem;
        font-style: italic;
    }
    
    .product-card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* New horizontal layout for image and details */
    .product-info-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .product-image-container {
        flex-shrink: 0;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        transition: transform 0.2s ease;
        cursor: pointer;
        background: white;
    }
    
    .product-image:hover {
        transform: scale(1.05);
    }
    
    .product-details {
        display: flex;
        flex: 1;
        gap: 0.5rem;
    }
    
    .detail-item {
        text-align: center;
        padding: 0.4rem;
        background: white;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }
    
    .detail-label {
        font-size: 0.6rem;
        color: #6c757d;
        font-weight: 500;
        margin-bottom: 0.15rem;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    
    .detail-value {
        font-size: 0.75rem;
        font-weight: 600;
        color: #333;
        word-break: break-word;
    }
    
    .price-details {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }
    
    .price-item {
        text-align: center;
        padding: 0.5rem;
        border-radius: 6px;
        font-weight: 600;
    }

    .price-item .detail-label {
        font-size: 0.7rem;
    }
    .price-item .detail-value {
        font-size: 0.9rem;
    }
    
    .price-item.actual {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .price-item.discount {
        background: #ffebee;
        color: var(--error-color) !important;
    }
    
    .price-item.discount .detail-value {
        text-decoration: line-through !important;
        font-weight: 700;
        position: relative;
    }
    
    .price-item.discount .detail-value::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background-color: var(--error-color);
        transform: translateY(-50%);
    }
    
    .price-item.final {
        background: #e8f5e8;
        color: var(--success-color) !important;
    }
    
    .price-item.final .detail-value {
        font-weight: 700 !important;
        color: var(--success-color) !important;
    }
    
    .quantity-section {
        background: #f8f9fa;
        padding: 0.75rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .qty-btn {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .qty-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
    
    .qty-value {
        background: white;
        border: 2px solid var(--primary-color);
        border-radius: 6px;
        padding: 0.4rem;
        font-weight: 600;
        color: var(--primary-color);
        width: 50px;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .product-actions {
        display: flex;
        gap: 1rem;
    }
    
    .action-btn {
        flex: 1;
        padding: 0.8rem;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .action-btn.view {
        background: #e3f2fd;
        color: #1976d2;
        border: 1px solid #bbdefb;
    }
    
    .action-btn.view:hover {
        background: #bbdefb;
        transform: translateY(-2px);
    }
    
    .action-btn.view i {
        font-size: 1rem;
    }
    
    /* Category Headers */
    .category-section {
        margin-bottom: 1.5rem;
    }
    
    .category-header {
        background: linear-gradient(135deg, #FF8C42 0%, #FFB366 100%);
        color: white;
        padding: 0.6rem;
        border-radius: 6px;
        margin-bottom: 0.75rem;
        text-align: center;
        box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
    }
    
    .category-header h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .sticky-summary {
        display: none; /* Hide desktop summary on mobile */
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 0.75rem;
        align-items: center;
        gap: 0.75rem;
        border-top: 1px solid #e9ecef;
    }

    .mobile-summary-totals {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        gap: 0.1rem; /* Add gap between rows */
    }

    .mobile-min-order-note {
        font-size: 0.7rem;
        font-weight: 500;
        color: #e74c3c;
    }

    .mobile-summary-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
    }
    
    .mobile-summary-row .label {
        color: #6c757d;
    }

    .mobile-summary-row .value {
        font-weight: 600;
        color: #333;
    }

    .mobile-summary-row.final {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-top: 0.25rem;
    }

    .mobile-place-order-btn {
        flex-shrink: 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .orderlist-topbar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        padding: 0.75rem;
        background: white;
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    .orderlist-topbar .badge-info {
        justify-content: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
        background: linear-gradient(135deg, #FF8C42 0%, #FFB366 100%);
        color: white;
        margin: 0;
    }
    
    .orderlist-topbar .search-box.compact {
        min-width: auto;
        width: 100%;
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
        background: #f8f9fa;
    }
    
    .orderlist-topbar .search-box.compact input {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .orderlist-topbar .search-box.compact i {
        font-size: 0.9rem;
    }

    .orderlist-section {
        padding-bottom: 17px; /* Minimal padding for mobile */
        min-height: 0 !important; /* Remove min-height on mobile to eliminate empty space */
    }
    
    .mobile-fab-buttons {
        position: fixed;
        bottom: 100px; /* Position above the summary bar */
        right: 15px;
        z-index: 998;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .whatsapp-float, .scroll-to-top {
        position: static; /* Remove fixed positioning from individual buttons */
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    
    .scroll-to-top {
        font-size: 1.1rem;
    }

    /* Hide original FABs on mobile */
    body > .whatsapp-float, 
    body > #scrollToTop {
        display: none;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    /* Hide mobile-specific layouts on desktop */
    .mobile-products,
    .mobile-bottom-bar,
    .mobile-fab-buttons {
        display: none !important;
    }
}
