:root {
    --primary: #ff6b00;
    --primary-dark: #e85f00;
    --dark: #111827;
    --light: #f5f7fb;
    --white: #fff;
    --muted: #6b7280;
    --shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    padding-bottom: 80px;
}

header {
    background: var(--white);
    padding: 14px 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between !important;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 8px 12px;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-bar .search-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0 5px;
}

.search-bar .search-btn:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Aumentar gap para não ficarem próximos */
    flex-wrap: wrap; /* Permitir quebra de linha em telas pequenas */
}

.logo-left {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between !important;
        gap: 8px;
        padding: 0 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .search-bar {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .header-right {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap;
        min-width: 0;
        margin-left: auto;
    }
    .logo {
        display: block;
        order: 0;
        max-height: 40px;
        max-width: 78px;
        flex: 0 0 auto;
    }
    .mobile-brand-name {
        display: none;
    }
}

/* Ícones sempre à esquerda */
.header-actions {
    order: -3;
}

/* Posicionamento do logo */
.logo-left .logo {
    order: -2;
}
.logo-center .logo {
    order: 0;
    margin: 0 auto;
}
.logo-center {
    justify-content: center !important;
}
.logo-right .logo {
    order: 1;
}

/* Posicionamento do track */
.track-left #track-order {
    order: -1;
}
.track-center #track-order {
    order: 0;
    margin: 0 auto;
}
.track-center {
    justify-content: center !important;
}
.track-right #track-order {
    order: 2;
}
.track-hidden #track-order {
    display: none;
}

/* Ajustes para justify-content baseado no logo */
.logo-left {
    justify-content: space-between !important;
}
.logo-center {
    justify-content: center !important;
}
.logo-right {
    justify-content: flex-end !important;
}
.logo {
    height: auto; /* Permite altura dinâmica baseada nas configurações */
    max-height: 60px; /* Limite máximo para evitar logos muito grandes */
    object-fit: contain; /* Mantém proporção da imagem */
}
.mobile-brand-name {
    display: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--dark);
    text-transform: lowercase;
    white-space: nowrap;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.track-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #e0e7ff;
}
.track-tag:hover {
    background: #1e3a8a;
    color: #fff;
}
.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}
.login-link i {
    font-size: 16px;
    line-height: 1;
}
.login-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
#cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
}
#cart-count {
    background: var(--dark);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.hero {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-overlay {
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.75),
        rgba(15, 23, 42, 0.35)
    );
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 24px;
    text-align: center;
}
.hero-overlay h1 {
    font-size: 28px;
    letter-spacing: 0.3px;
}
.hero-overlay p {
    margin-top: 6px;
    color: #e5e7eb;
}

.product-addons {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.addon-option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dark);
}

.addon-option input {
    margin: 0;
}

.addon-option small {
    color: var(--primary-dark);
    font-weight: 700;
}

.cart-addons {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between !important;
}
.main-layout {
    display: flex;
    gap: 24px;
    margin-top: 26px;
}

.store-shell {
    width: min(1560px, calc(100vw - 24px));
    max-width: 1560px !important;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    justify-content: initial !important;
}

.sidebar {
    width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 96px;
}

.sidebar .sidebar-addons {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.sidebar .sidebar-addons ul {
    list-style: none;
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar .sidebar-addons li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.sidebar .addon-add-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sidebar .addon-add-btn:hover {
    background: var(--primary-dark);
}

.sidebar .addon-name {
    color: var(--dark);
}

.sidebar .addon-price {
    color: var(--primary-dark);
    font-size: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.search-box input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-box i {
    color: var(--muted);
    margin-left: 8px;
}

.products-area {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.products-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

#category-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

#category-list::-webkit-scrollbar,
.sidebar .sidebar-addons ul::-webkit-scrollbar {
    width: 8px;
}

#category-list::-webkit-scrollbar-thumb,
.sidebar .sidebar-addons ul::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

#category-list::-webkit-scrollbar-track,
.sidebar .sidebar-addons ul::-webkit-scrollbar-track {
    background: transparent;
}
#category-list li {
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: 0.2s;
    color: var(--dark);
}
#category-list li.subcat {
    padding-left: 18px;
    font-size: 13px;
    color: #6b7280;
}
#category-list li:hover,
#category-list li.active {
    background: #fff4ec;
    color: var(--primary-dark);
    font-weight: 600;
}

.category-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.category-title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}
.img-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-info {
    padding: 14px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.p-info h4 {
    font-size: clamp(16px, 0.95vw, 18px);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}
.ingredients {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}
.p-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(20px, 1.2vw, 24px);
    line-height: 1;
}
.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.btn-add:hover {
    background: var(--primary-dark);
}
.empty-msg {
    background: #fff;
    border: 1px dashed #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    color: #6b7280;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    height: 100%;
    width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.modal.center {
    justify-content: center;
    align-items: center;
}
.modal-content.card {
    width: min(420px, 92vw);
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.flow-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}
.flow-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.flow-actions .btn {
    width: 100%;
}
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
}
.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.review-item strong {
    color: var(--dark);
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 600;
}
.shipping-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .shipping-toggle {
        flex-direction: row;
        justify-content: space-around;
    }
}
.btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-whatsapp {
    background: #25d366;
    color: white;
}
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}
.btn-link:hover {
    text-decoration: underline;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #374151;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.close-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea,
#search-input,
.form-control,
.form-select,
.chat-input input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--dark);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group textarea,
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
#search-input:focus,
.form-control:focus,
.form-select:focus,
.chat-input input:focus {
    border-color: #fdba74;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    outline: none;
}

.checkbox,
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.checkbox input,
.form-check-input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
}

#login-form,
#register-form,
#checkout-login-form,
#checkout-register-form,
#checkout-address-form,
#checkout-payment-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#login-form .btn,
#register-form .btn,
#checkout-login-form .btn,
#checkout-register-form .btn,
#checkout-address-form .btn,
#checkout-payment-form .btn {
    min-height: 46px;
    font-size: 15px;
}
.profile-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}
.profile-card .label {
    font-size: 12px;
    color: var(--muted);
}
.profile-card .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}
.profile-actions {
    display: flex;
    gap: 10px;
}
.profile-actions .btn {
    flex: 1;
}
.full-width {
    width: 100%;
}

.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    z-index: 1200;
}
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #111827;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-modal {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 320px;
    display: none;
    z-index: 1200;
}
.chat-modal.active {
    display: block;
}
.chat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.chat-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}
.chat-messages {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-msg {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 80%;
}
.chat-msg.system {
    background: #eef2ff;
    align-self: flex-start;
}
.chat-msg.customer {
    background: #dcfce7;
    align-self: flex-end;
}
.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
}
.chat-input input {
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
    header {
        padding: 10px 0 12px;
    }
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between !important;
        gap: 8px;
        padding: 0 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
        min-width: 0;
    }
    .login-link {
        width: 42px;
        min-width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    #cart-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    #cart-btn i,
    .login-link i {
        font-size: 15px;
    }
    #cart-count {
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }
    .track-tag {
        min-width: 0;
        flex: 0 0 auto;
        max-width: none;
        height: 42px;
        min-height: 42px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 11px;
        font-weight: 700;
        justify-content: center;
        text-align: center;
        line-height: 1;
    }
    .track-tag i {
        font-size: 13px;
        flex-shrink: 0;
    }
    .hero {
        height: 136px;
        border-radius: 20px;
        margin: 12px 8px 0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }
    .hero-overlay {
        align-items: flex-start;
        text-align: left;
        padding: 18px;
    }
    .hero-overlay h1 {
        font-size: 22px;
        line-height: 1.1;
    }
    .hero-overlay p {
        font-size: 13px;
        margin-top: 4px;
    }
    .main-layout {
        flex-direction: column;
        gap: 12px;
        margin-top: 14px;
    }
    .store-shell {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .products-area {
        order: 2;
    }
    .sidebar {
        order: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: static;
        top: auto;
        overflow: visible;
        padding: 12px;
        border-radius: 22px;
        background: var(--white);
        backdrop-filter: none;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    }
    .sidebar h3 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        margin: 2px 2px 0;
    }
    .search-box {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 14px;
        height: 46px;
        border-radius: 16px;
        background: #f8fafc;
        overflow: hidden;
        border: 1px solid var(--border);
        box-shadow: none;
    }
    .search-box input {
        display: block;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        height: 100%;
        font-size: 15px;
        border: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-sizing: border-box;
        box-shadow: none;
    }
    .search-box i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: static;
        font-size: 14px;
        color: var(--muted);
        transform: none;
        margin: 0;
        flex: 0 0 auto;
        pointer-events: none;
    }
    #category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 2px 2px 0;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 180px;
        align-content: flex-start;
        scroll-snap-type: none;
        scrollbar-width: none;
    }
    #category-list::-webkit-scrollbar {
        display: none;
    }
    #category-list li {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        border: 1px solid var(--border);
        background: #fff;
        margin-bottom: 0;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 600;
        scroll-snap-align: none;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    }
    .sidebar .sidebar-addons ul {
        max-height: 180px;
        overflow-y: auto;
    }
    #category-list li.subcat {
        padding-left: 14px;
        font-size: 12px;
        background: #f8fafc;
        border-style: dashed;
        color: var(--muted);
    }
    #category-list li.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        box-shadow: 0 10px 16px rgba(255, 107, 0, 0.22);
    }
    .products-sections {
        gap: 16px;
    }
    .category-section {
        gap: 12px;
    }
    .category-title {
        font-size: 17px;
        padding-bottom: 8px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-card {
        flex-direction: row;
        align-items: stretch;
        border-radius: 18px;
        min-height: 152px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }
    .img-wrapper {
        width: 116px;
        min-width: 116px;
        aspect-ratio: auto;
        height: auto;
    }
    .p-info {
        padding: 14px;
        gap: 6px;
        min-width: 0;
        justify-content: space-between;
    }
    .p-info h4 {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    .desc {
        font-size: 13px;
        min-height: auto;
        -webkit-line-clamp: 1;
    }
    .p-footer {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
    }
    .btn-add {
        width: auto;
        min-width: 96px;
        max-width: 120px;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 13px;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .price {
        font-size: 17px;
        flex: 0 0 auto;
        min-width: 0;
    }
    .modal-content {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .store-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-card {
        min-height: 100%;
    }
}

@media (min-width: 1200px) and (max-width: 1499px) {
    .store-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}
#toast.show {
    visibility: visible;
    animation:
        fadein 0.5s,
        fadeout 0.5s 2.5s;
}
@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}
@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1140px;
    }
}
@media (min-width: 992px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px;
    }
}
