/* newOrder.php — Extracted from inline <style> block for browser caching */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    min-height: 100vh;
    color: #1a4d1a;
    line-height: 1.6;
}

.container {
    width: 100%;
}

.main-container {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sticky top unit: category strip + search/filters stay on scroll.
   z-index stays below the site header dropdowns so menus open above it. */
.sticky-top-wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Mobile category strip: horizontal scrollable categories on top */
.mobile-brand-strip {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 100;
}

.mobile-brand-sidebar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-brand-sidebar::-webkit-scrollbar {
    display: none;
}

#mobileBrandList {
    display: flex;
    gap: 10px;
    padding: 12px 40px 10px;
    width: max-content;
    min-width: 100%;
}

/* Edge fades signal more scrollable content */
.mobile-brand-strip::before,
.mobile-brand-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.mobile-brand-strip::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), transparent);
}

.mobile-brand-strip::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(255,255,255,0.95), transparent);
}

.mobile-brand-strip.can-left::before {
    opacity: 1;
}

.mobile-brand-strip.can-right::after {
    opacity: 1;
}

.cat-arrow {
    position: absolute;
    top: 40px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #c8e6c8;
    background: #fff;
    color: #2d5016;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0 0 2px;
}

.cat-arrow-left {
    left: 4px;
}

.cat-arrow-right {
    right: 4px;
}

.mobile-brand-strip.can-left .cat-arrow-left {
    display: flex;
}

.mobile-brand-strip.can-right .cat-arrow-right {
    display: flex;
}

.mobile-brand-btn {
    flex: 0 0 auto;
    width: 74px;
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    scroll-snap-align: start;
}

.mobile-brand-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f9f0;
    border: 2px solid #c8e6c8;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-brand-btn.active .mobile-brand-img {
    border-color: #2d5016;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2d5016;
}

.mobile-brand-name {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: #2d5016;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 25px;
}

.mobile-brand-btn.active .mobile-brand-name {
    font-weight: 800;
}

.mobile-brand-count {
    background: rgba(74, 124, 89, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    color: #2d5016;
}

.mobile-brand-btn.active .mobile-brand-count {
    background: #2d5016;
    color: #fff;
}

/* Category skeleton chips: same footprint as real chips, no layout shift */
.cat-skel {
    flex: 0 0 auto;
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 2px;
}

.cat-skel-img,
.cat-skel-line,
.cat-skel-pill {
    background: linear-gradient(90deg, #eef3ee 25%, #dfe9df 50%, #eef3ee 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.2s ease-in-out infinite;
}

.cat-skel-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.cat-skel-line {
    width: 60px;
    height: 10px;
    border-radius: 5px;
}

.cat-skel-pill {
    width: 44px;
    height: 12px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .cat-skel-img,
    .cat-skel-line,
    .cat-skel-pill {
        animation: none;
    }
}

/* Hide desktop sidebar on mobile */
.sidebar {
    display: none;
}

.content-area {
    flex: 1;
    margin-left: 0;
    padding: 15px 10px;
    background: transparent;
}

.mobile-filter-area {
    flex: 1;
    margin-left: 0;
    padding: 4px 10px;
}

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

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a4d1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-info {
    color: #4a7c59;
    font-size: 13px;
}

.select-input {
    padding: 8px 12px;
    border: 2px solid #c8e6c8;
    border-radius: 10px;
    font-size: 13px;
    background: white;
    color: #2d5016;
}

/* Mobile-optimized product grid: 2-column on phones */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 100px;
}

.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 
      0 6px 12px rgba(74, 124, 89, 0.2),
      0 12px 24px rgba(74, 124, 89, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 124, 89, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a7c59, #2d5016);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid #e8f5e8;
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-name-link:hover .product-name {
    text-decoration: underline;
}

.product-image-wrapper.placeholder {
    background: #f8faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-image-wrapper.placeholder .product-image {
    object-fit: contain;
    width: 80%;
    height: auto;
    filter: grayscale(100%) 
            drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    border-radius: 8px;
    opacity: 0.5;
}

.product-action-wrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.variant-select {
    width: 100%;
    margin: 8px 0;
    padding: 9px 30px 9px 14px;
    border: 1px solid #d8e2d8;
    border-radius: 50px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232d5016' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    appearance: none;
    -webkit-appearance: none;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.variant-select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.variant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin: 8px 0;
    position: relative;
    z-index: 5;
}

.variant-tab {
    flex: 0 0 auto;
    padding: 4px 8px;
    background: #e8f5e8;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 9px;
    color: #4a7c59;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-tab.active {
    background: #2d5016;
    color: white;
    font-weight: 600;
    border-color: #2d5016;
    z-index: 6;
}

.variant-tab:hover:not(.active) {
    background: #f0f8f0;
    color: #2d5016;
}

.variant-tabs.placeholder {
    visibility: hidden;
    height: 3rem; 
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a4d1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-description-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    color: #4a7c59;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: calc(11px * 1.4 * 2);
}

.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: #2d5016;
}

.stock-info {
    font-size: 10px;
    color: #4a7c59;
}

.product-controls {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f0f9f0;
    border-radius: 12px;
    padding: 6px;
    justify-content: space-between;
    width: 60%;
    padding-right: 8px;
}

.add-btn {
    background: linear-gradient(135deg, #4a7c59, #2d5016);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #2d5016, #1a4d1a);
}

.add-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.qty-btn {
    background: #c53030;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.qty-btn:active {
    background: #2d5016;
    transform: scale(0.9);
}

.qty-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    color: #1a4d1a;
}

.product-amount {
    font-size: 18px;
    font-weight: 1000;
    color: #c53030;
    text-align: center;
    margin-top: 4px;
}

.product-dates {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.date-badge.mfg {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #d4ead4;
}

.date-badge.exp {
    background: #fff5e6;
    color: #b85c00;
    border: 1px solid #ffe4b8;
}

.date-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.sold-out-card {
    opacity: 0.6;
}

.sold-out-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating cart button */
.summary-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4a7c59, #2d5016);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.summary-floating-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.4);
}

.cart-badge {
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* Summary panel */
.summary-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    transform: translateY(100%);
    transition: all 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.summary-section.active {
    display: block;
    transform: translateY(0);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e8;
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a4d1a;
}

.close-summary {
    background: none;
    border: none;
    font-size: 24px;
    color: #4a7c59;
    cursor: pointer;
    padding: 5px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.product-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e8f5e8;
}

.product-list li:last-child {
    border-bottom: none;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 15px;
    border-top: 2px solid #c8e6c8;
}

.total-label {
    font-size: 18px;
    font-weight: 800;
    color: #1a4d1a;
}

.total-amount {
    font-size: 24px;
    font-weight: 900;
    color: #2d5016;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a7c59, #2d5016);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:active {
    transform: translateY(2px);
    background: linear-gradient(135deg, #2d5016, #1a4d1a);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.reset-cart-btn {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-cart-btn:active {
    transform: translateY(2px);
    background: linear-gradient(135deg, #c82333, #a71e2a);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #4a7c59;
    grid-column: 1 / -1;
}

/* Skeleton loaders (replaces "Loading products…" text) */
.skel-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(74, 124, 89, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skel-img {
    height: 150px;
}

.skel-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skel-img,
.skel-line,
.skel-btn {
    background: linear-gradient(90deg, #eef3ee 25%, #dfe9df 50%, #eef3ee 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.2s ease-in-out infinite;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
}

.skel-title {
    width: 80%;
    height: 14px;
}

.skel-sub {
    width: 60%;
}

.skel-price {
    width: 40%;
    height: 16px;
}

.skel-btn {
    height: 38px;
    border-radius: 12px;
    margin-top: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
    .skel-img,
    .skel-line,
    .skel-btn {
        animation: none;
    }
}

.grid-sentinel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6px 0 14px;
}

.load-more-btn {
    padding: 12px 26px;
    border-radius: 50px;
    border: 2px solid #c8e6c8;
    background: #fff;
    color: #2d5016;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #2d5016;
}

/* Search and filter toggle for mobile */
.mobile-filters-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-filters {
    display: none;
    background: white;
    margin: 0 0 15px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.mobile-filters.active {
    display: block;
}

.search-section {
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #c8e6c8;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #2d5016;
}

.search-input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 10px;
    font-size: 14px;
}

.filter-group {
    margin-bottom: 15px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 6px;           
}

.price-range > * {
    min-width: 0;       
}

.price-input {
    flex: 1 1 0;        
    padding: 6px 8px;   
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2d5016;
}

.product-delivery {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.delivery-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.delivery-badge.along-with-milk {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #d4ead4;
}

.delivery-badge.scheduled-later {
    background: #fff5e6;
    color: #b85c00;
    border: 1px solid #ffe4b8;
}

.delivery-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cart-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
}

.cart-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a4d1a;
    margin: 0 0 4px;
}

.cart-modal-subtitle {
    font-size: 14px;
    color: #4a7c59;
    margin: 0 0 12px;
}

.cart-modal .product-list {
    margin-bottom: 16px;
}

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

.cart-modal-actions button {
    width: 100%;
}

.cart-modal-btn-merge {
    background: linear-gradient(135deg, #4a7c59, #2d5016);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cart-modal-btn-overwrite {
    background: linear-gradient(135deg, #1a6ebf, #0d4f8a);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cart-modal-btn-cancel {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.loading-state {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #c8e6c8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: #2d5016;
    font-weight: 600;
    animation: pulse 1.5s infinite;
    grid-column: 1 / -1;
}

.loading-state h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.loading-state p {
    font-size: 13px;
    color: #1a4d1a;
}

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

/* Tablet view */
@media (min-width: 768px) {
    .mobile-filter-area {
        display: none;
    }

    .main-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Strip as a body-width rounded card on the green page, like the
       search bar below — no full-width band, no side gutters */
    .sticky-top-wrap {
        padding: 12px 20px 0;
        background: transparent;
        box-shadow: none;
    }

    .mobile-brand-strip {
        max-width: 1360px;
        margin: 0 auto;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .cat-arrow {
        top: 58px;
    }

    #mobileBrandList {
        gap: 18px;
        padding: 16px 48px 14px;
    }

    .mobile-brand-btn {
        width: 110px;
    }

    .cat-skel {
        width: 110px;
    }

    .cat-skel-img {
        width: 84px;
        height: 84px;
    }

    .mobile-brand-img {
        width: 84px;
        height: 84px;
        border-width: 3px;
    }

    .mobile-brand-name {
        font-size: 13px;
        min-height: 33px;
    }

    .mobile-brand-count {
        font-size: 11px;
    }

    .cat-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    /* Sidebar keeps search + filters; categories moved to the strip */
    .sidebar .brand-section {
        display: none;
    }

    /* Sidebar (search + filters) sits above the products container */
    .sidebar {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 12px 20px;
        box-shadow: 0 15px 40px rgba(74, 124, 89, 0.1);
        border: 1px solid #e8f5e8;
    }

    .sidebar .search-section {
        flex: 1.4;
        min-width: 0;
        margin-bottom: 0;
    }

    .sidebar .filter-section {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

    /* One-line bar: titles hidden, controls inline */
    .sidebar .search-section h3,
    .sidebar .filter-section h3,
    .sidebar .filter-title {
        display: none;
    }

    .sidebar .filter-group {
        margin-bottom: 0;
    }

    .sidebar .checkbox-group {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }

    .sidebar .checkbox-item {
        white-space: nowrap;
    }

    .sidebar h3 {
        color: #1a4d1a;
        margin-bottom: 20px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand-list {
        list-style: none;
    }

    .brand-item {
        margin-bottom: 8px;
    }

    .brand-btn {
        width: 100%;
        padding: 12px 16px;
        background: transparent;
        border: none;
        border-radius: 12px;
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        color: #2d5016;
    }

    .brand-btn:hover {
        background: #f0f9f0;
        transform: translateX(5px);
    }

    .brand-btn.active {
        background: linear-gradient(135deg, #4a7c59, #2d5016);
        color: white;
        font-weight: 600;
    }

    .brand-count {
        background: rgba(255,255,255,0.2);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }

    .brand-btn.active .brand-count {
        background: rgba(255,255,255,0.3);
    }

    .content-area {
        flex: 1;
        margin-left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 15px 40px rgba(74, 124, 89, 0.1);
        border: 1px solid #e8f5e8;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .skel-img {
        height: 220px;
    }

    .brand-thumb {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
        background: #f0f9f0;
        border: 1px solid #c8e6c8;
        flex-shrink: 0;
    }

    .brand-btn .brand-thumb {
        margin-right: 2px;
    }

    .product-action-wrapper {
        padding: 20px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-pricing {
        flex-direction: row;
        align-items: center;
    }

    .product-price {
        font-size: 22px;
    }

    .stock-info {
        font-size: 12px;
    }

    .product-controls {
        flex-direction: row;
        gap: 15px;
    }

    .add-btn {
        font-size: 14px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
    }

    .product-dates {
        gap: 8px;
        margin: 10px 0;
    }

    .date-badge {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .date-icon {
        width: 13px;
        height: 13px;
    }

    .summary-floating-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        left: auto;
        width: auto;
        border-radius: 50px;
    }

    .summary-section {
        position: fixed;
        bottom: 90px;
        right: 30px;
        left: auto;
        width: 400px;
        border-radius: 20px;
        max-height: 60vh;
    }

    .mobile-filters-toggle {
        display: none;
    }

    .mobile-filters {
        display: none;
    }

    .product-delivery {
        gap: 8px;
        margin: 10px 0;
    }

    .delivery-badge {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
    }
    
    .delivery-icon {
        width: 13px;
        height: 13px;
    }

    .cart-modal-overlay { 
        align-items: center; 
    }

    .cart-modal { 
        border-radius: 20px; 
        width: 400px; 
        max-height: 60vh; 
    }

    .loading-state {
        padding: 48px 24px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .loading-state h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .loading-state p {
        font-size: 14px;
    }
}

/* Desktop view */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .product-name {
        font-size: 18px;
    }

    .product-price {
        font-size: 24px;
    }

    .date-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .date-icon {
        width: 12px;
        height: 12px;
    }

    .variant-tab {
        padding: 6px 12px;       
        font-size: 12px;         
        border-radius: 24px;
    }

    .variant-tabs {
        gap: 8px;           
        margin: 12px 0;     
    }
    
    .delivery-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .delivery-icon {
        width: 12px;
        height: 12px;
    }

    .loading-state {
        padding: 60px 30px;
        border-radius: 20px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        max-width: 600px;
        margin: 0 auto;
    }

    .loading-state h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .loading-state p {
        font-size: 15px;
    }
}
