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

:root {
    --primary-color: #DC143C;
    --primary-dark: #B01030;
    --secondary-color: #FF6B6B;
    --dark-color: #1A1A1A;
    --text-color: #333;
    --text-light: #666;
    --border-color: #E0E0E0;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --success-color: #10B981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow: var(--shadow-md);
    --sidebar-width: 280px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin: 0;
}

.store-logo-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    max-width: none;
    min-width: 0;
}

.store-brand-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.store-brand-logo {
    display: block;
    width: 20vw;
    min-width: 60px;
    max-width: 200px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.store-brand-name {
    display: block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--dark-color);
    text-align: center;
}

.store-logo-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 6px;
}

.store-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #f3f4f6;
    color: #4b5563;
    flex: 0 0 auto;
}

.store-status-badge--open {
    background: #dcfce7;
    color: #15803d;
}

.store-status-badge--closed {
    background: #fee2e2;
    color: #b91c1c;
}

.store-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.header-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25D366;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-whatsapp-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.store-info-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.store-info-modal.active {
    display: flex;
}

.store-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.store-info-card {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 28px 24px 24px;
    text-align: center;
}

.store-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.store-info-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.store-info-logo-wrap img {
    display: block;
    max-width: 180px;
    max-height: 82px;
    object-fit: contain;
}

.store-info-card h2 {
    margin: 0 34px 18px;
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.25;
}

.store-info-list {
    display: grid;
    gap: 12px;
    margin: 0;
    text-align: left;
}

.store-info-list div {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f9fafb;
}

.store-info-list dt {
    margin-bottom: 3px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.store-info-list dd {
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    margin-right: 12px;
}

.header-search {
    width: 100%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: all 0.2s;
    background: var(--bg-light);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
    background: var(--white);
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, #13a457 0%, #08713c 100%);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-size: 0;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(15, 143, 77, 0.34), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cart-icon:hover {
    background: linear-gradient(135deg, #19b765 0%, #076336 100%);
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 13px 28px rgba(15, 143, 77, 0.42), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.cart-icon-svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.cart-count {
    position: absolute;
    top: auto;
    right: auto;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0f8f4d;
    border-radius: 999px;
    min-width: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
    border: 2px solid #0f8f4d;
    box-shadow: 0 4px 10px rgba(15, 143, 77, 0.22);
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #E5E7EB;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.categories-menu {
    padding: 10px;
}

.category-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.04);
    background: #F8FAFC;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    margin-bottom: 7px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.category-item:hover {
    background: var(--white);
    border-color: rgba(220, 20, 60, 0.22);
    transform: translateY(-1px);
}

.category-item.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(220, 20, 60, 0.2);
}

.category-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.category-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
}

.category-count {
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-light);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.products-list {
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Product Item - Layout Horizontal */
.product-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.regular-select-card {
    cursor: pointer;
    position: relative;
}

.regular-select-card.regular-product-selected {
    border-color: var(--primary-color);
    background: rgba(220, 20, 60, 0.05);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.16);
}

.product-image-container {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.product-category-top {
    display: inline-block;
    font-size: 11px;
    color: var(--white);
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 4px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(220, 20, 60, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    min-width: 150px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-product {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(220, 20, 60, 0.18);
}

.btn-add-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(220, 20, 60, 0.24);
}

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

.regular-product-add-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: #F0FFF4;
    border-top: 2px solid #86D993;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 16px rgba(22, 101, 52, 0.12);
    z-index: 200;
}

body.regular-product-add-active .main-content {
    padding-bottom: 96px;
}

.regular-product-add-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--text-color);
}

.regular-product-add-info strong {
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.regular-product-add-info span {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-product-bottom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(220,20,60,0.2);
}

.btn-add-product-bottom:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(220,20,60,0.26);
}

.btn-add-product-bottom:active {
    transform: scale(0.98);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 12px 16px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cart-header h2 {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    position: absolute;
    right: 12px;
}

.close-cart:hover {
    background: rgba(255,255,255,0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 130px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-light);
    margin-bottom: 8px;
}

.cart-item-image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--white);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--dark-color);
    line-height: 1.3;
}

.cart-item-details {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 4px 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 0;
    white-space: nowrap;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-quantity {
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-color);
}

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

.item-quantity {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    font-size: 15px;
}

.btn-remove {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-remove:hover {
    opacity: 1;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--white);
    flex-shrink: 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cart-total-value {
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn-cart-back {
    width: 30%;
    min-height: 52px;
    padding: 14px 10px;
    background: #FDBA74;
    color: var(--dark-color);
    border: 1px solid #FB923C;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart-back:hover {
    background: #FB923C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-checkout {
    width: 70%;
    min-height: 52px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.22);
}

.btn-checkout:hover:not(:disabled) {
    background: #0D9668;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-checkout:active:not(:disabled) {
    transform: translateY(0);
}

.btn-checkout:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    color: var(--text-light);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-item {
        grid-template-columns: 150px 1fr auto;
        gap: 16px;
        padding: 16px;
    }
    
    .product-image-container {
        width: 150px;
        height: 150px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 110px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .header-brand {
        gap: 6px;
    }

    .store-logo-button {
        gap: 5px;
        max-width: 176px;
    }

    .store-brand-logo {
        width: 26vw;
        min-width: 48px;
        max-width: 150px;
        max-height: 46px;
    }

    .store-brand-name {
        max-width: 136px;
        font-size: 18px;
    }

    .store-status-badge {
        font-size: 11px;
        padding: 3px 9px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-whatsapp-btn {
        width: 38px;
        height: 38px;
    }

    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }

    .header-search {
        max-width: none;
    }

    .search-input {
        padding: 10px 16px;
        font-size: 14px;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Sidebar sempre visível em mobile */
    .sidebar {
        width: 110px;
        position: sticky;
        transform: none;
        z-index: 12000;
    }
    
    .sidebar-header {
        padding: 10px;
    }
    
    .sidebar-header h3 {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .categories-menu {
        padding: 5px;
    }
    
    .category-item {
        flex-direction: column;
        padding: 10px 6px;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .category-icon {
        font-size: 26px;
    }
    
    .category-text {
        flex-direction: column;
        gap: 3px;
    }
    
    .category-name {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
    }
    
    .category-count {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Layout 3 colunas em mobile */
    .main-content {
        padding: 8px;
    }
    
    .category-header {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .category-count-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .product-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto 1fr;
        gap: 8px;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .product-image-container {
        width: 80px;
        height: 80px;
        grid-row: 1 / span 2;
    }
    
    .product-details {
        gap: 4px;
        justify-content: flex-start;
    }

    .product-details .product-name {
        order: 1;
    }

    .product-details .product-category-top {
        order: 0;
    }

    .product-details .product-price {
        order: 2;
    }

    .product-details .product-description {
        order: 3;
    }
    
    .product-category-top {
        font-size: 9px;
        padding: 3px 8px;
        margin-bottom: 2px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .product-description {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-category {
        font-size: 10px;
        padding: 2px 8px;
        margin-top: 4px;
    }
    
    .product-actions {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        align-self: end;
        margin-top: 0;
        gap: 8px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .btn-add-product {
        padding: 8px 16px;
        font-size: 13px;
    }

    .regular-product-add-bar {
        left: var(--sidebar-width);
        padding: 12px 16px;
        gap: 12px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }

    body.regular-product-add-active .main-content {
        padding-bottom: 84px;
    }

    .regular-product-add-info strong {
        font-size: 13px;
    }

    .regular-product-add-info span {
        font-size: 14px;
    }

    .btn-add-product-bottom {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cart-sidebar {
        width: calc(100% - var(--sidebar-width));
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }

    .cart-footer {
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .cart-items {
        padding-bottom: 118px;
    }

    .cart-total {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .btn-checkout {
        min-height: 48px;
        padding: 12px 14px;
    }

    .btn-cart-back {
        min-height: 48px;
        padding: 12px 10px;
    }

    .overlay {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }

    #calzone-modal {
        left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width)) !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 8px;
    }
    
    :root {
        --sidebar-width: 110px;
    }
    
    .sidebar {
        width: 110px;
        z-index: 12000;
    }
    
    .category-item {
        padding: 10px 6px;
    }
    
    .category-icon {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 10px;
    }
    
    .category-count {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .category-header {
        padding: 12px;
        margin-bottom: 12px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .category-count-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .product-item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto 1fr;
        gap: 6px;
        padding: 6px;
    }
    
    .product-image-container {
        width: 70px;
        height: 70px;
        grid-row: 1 / span 2;
    }
    
    .product-category-top {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-description {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .btn-add-product {
        padding: 6px 12px;
        font-size: 12px;
    }
}
