:root {
    --primary-color: #E04A1D;
    --primary-hover: #C53B12;
    --secondary-color: #4A7C2C;
    --secondary-hover: #3B6423;
    --kraft-bg: #F5EDE0;
    --kraft-accent: #E6D5B8;
    --text-dark: #2A2521;
    --text-muted: #66605A;
    --bg-light: #FBF9F5;
    --card-bg: #FFFFFF;
    --border-color: #E8E2D9;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(224, 74, 29, 0.12);
}

html {
    box-sizing: border-box;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 6px 16px;
}

.top-bar-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-zone-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
}

.top-bar-right a {
    color: #FFF;
    text-decoration: none;
}

/* MAIN HEADER */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 58px;
}

.brand-logo-img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.06);
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    color: #2E241E;
    letter-spacing: -0.5px;
}

.brand-highlight {
    color: #7A9B21;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: #E04A1D;
    letter-spacing: 2px;
}

/* SMART SEARCH BAR */
.search-bar-wrapper {
    flex: 1;
    max-width: 620px;
    position: relative;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box input {
    width: 100%;
    padding: 12px 48px 12px 18px;
    border: 2px solid #E0D9D0;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #FAFAFA;
}

.search-input-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(224, 74, 29, 0.15);
}

.search-icon-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #F0ECE6;
    cursor: pointer;
    transition: background 0.15s;
    gap: 12px;
}

.suggestion-item:hover {
    background-color: #F8F4EE;
}

.suggestion-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    background: #FFF;
}

.sugg-info {
    flex: 1;
}

.sugg-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sugg-category {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.sugg-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.suggestion-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-cotizador-trigger {
    background-color: var(--kraft-accent);
    color: #4A3525;
    border: 1px solid #D6C2A0;
}

.btn-cotizador-trigger:hover {
    background-color: #D6C2A0;
}

.btn-pwa-install {
    background-color: #FFFFFF;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-pwa-install:hover {
    background-color: #FFF2ED;
}

.cart-btn {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(224, 74, 29, 0.25);
    transition: transform 0.15s, background-color 0.15s;
}

.cart-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.cart-badge {
    background: #FFFFFF;
    color: var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* DEPARTMENTS NAVIGATION BAR */
.departments-nav {
    background-color: var(--kraft-bg);
    border-bottom: 1px solid #E2D3BE;
    overflow-x: auto;
    white-space: nowrap;
}

.departments-nav ul {
    list-style: none;
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 6px;
}

.departments-nav a {
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
    color: #42352B;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.departments-nav a:hover,
.departments-nav a.active {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.7);
}

/* HERO PROMO BANNER */
.hero-banner {
    max-width: 1300px;
    margin: 16px auto;
    padding: 0 20px;
}

.hero-card {
    background: linear-gradient(105deg, #FFF9F0 0%, #F5EDE0 100%);
    border: 1px solid #E6D5B8;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.hero-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h2 {
    margin: 0 0 8px 0;
    color: #2E241E;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
}

.hero-text h2 span {
    color: var(--primary-color);
}

.hero-text p {
    margin: 0 auto 16px auto;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.hero-badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    background: #FFFFFF;
    border: 1px solid #DDD0BD;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* STORE LAYOUT */
.store-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
    display: flex;
    gap: 24px;
}

/* SIDEBAR FILTERS */
.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EFEAE3;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.category-filter-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 0;
    display: block;
    width: 100%;
    text-align: left;
    transition: color 0.15s;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.category-filter-btn.active::before {
    content: "● ";
    color: var(--primary-color);
    font-size: 0.75rem;
}

.price-range-control input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.price-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.price-chip {
    background: #FAF6F0;
    border: 1px solid #E0D4C3;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.price-chip:hover {
    background: #EFE4D4;
    border-color: #CBB79F;
}

.price-chip.active {
    background: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
}

.btn-reset-filters {
    width: 100%;
    padding: 8px;
    background: var(--kraft-bg);
    border: 1px solid #D8C8B4;
    border-radius: var(--radius-sm);
    color: #42352B;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* MAIN CONTENT & PRODUCTS GRID */
.store-main-content {
    flex: 1;
}

.grid-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 4px;
}

.grid-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.product-count-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* PRODUCT CARD - RETAIL STYLE */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #E6C5BA;
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge {
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-family {
    background-color: var(--secondary-color);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-img-wrapper {
    width: 100%;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #FAF8F5;
    border-radius: var(--radius-sm);
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.zoom-hint {
    position: absolute;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFF;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .zoom-hint {
    opacity: 1;
}

/* CARD GALLERY INDICATOR & CHIPS */
.card-gallery-indicator {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(46, 36, 30, 0.85);
    color: #FFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-gallery-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.card-chip-btn {
    background: #F5EFE6;
    border: 1px solid #E2D7C8;
    color: #554437;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-chip-btn:hover {
    background: #EBE0D0;
    border-color: #CCA880;
    color: var(--primary-color);
}

.card-chip-btn.active {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(224, 74, 29, 0.25);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-align: center;
    display: block;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
}

.fresh-ratio-tag {
    background-color: #F0F6EB;
    color: #386022;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 auto 8px auto;
    border: 1px solid #D8E7CF;
    text-align: center;
    width: fit-content;
}

.description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.presentation-wrapper {
    margin-bottom: 12px;
    text-align: center;
}

.presentation-wrapper label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
    text-align: center;
}

.presentation-selector {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #D6CDC1;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background-color: #FFFFFF;
    color: var(--text-dark);
    cursor: pointer;
    text-align: center;
    text-align-last: center;
}

.presentation-selector:focus {
    outline: none;
    border-color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}

.qty-counter {
    display: flex;
    border: 1px solid #D6CDC1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #FFF;
}

.qty-counter button {
    background: #F4EFE8;
    border: none;
    width: 28px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
}

.qty-counter button:hover {
    background: #E8DFD3;
}

.qty-counter input {
    width: 32px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-hover);
}

.add-to-cart-btn.added {
    background-color: var(--secondary-color);
}

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* MODALS - GENERAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #EFEAE3;
    border: none;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-header-banner {
    background-color: var(--kraft-bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-banner h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

/* PRODUCT DETAIL MODAL */
.modal-product-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.modal-product-media {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-gallery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-main-img-box {
    position: relative;
    width: 100%;
    height: 320px;
    background: #FBF9F5;
    border: 1px solid #EBE4D8;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.modal-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.modal-main-img-box:hover img {
    transform: scale(1.04);
}

.modal-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #D6CDC1;
    color: #33261D;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
    user-select: none;
}

.modal-arrow-btn:hover {
    background: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.modal-arrow-btn.prev {
    left: 12px;
}

.modal-arrow-btn.next {
    right: 12px;
}

.modal-caption-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    background: rgba(35, 27, 21, 0.88);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.modal-thumbs-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    justify-content: center;
    scrollbar-width: thin;
}

.modal-thumb {
    flex: 0 0 76px;
    height: 76px;
    background: #FFFFFF;
    border: 2px solid #E2D7C8;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

.modal-thumb img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

.modal-thumb .thumb-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #554437;
    margin-top: 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modal-thumb:hover {
    border-color: #CCA880;
    transform: translateY(-2px);
}

.modal-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 74, 29, 0.3);
    background: #FFF9F5;
}

.modal-thumb.active .thumb-tag {
    color: var(--primary-color);
}

.modal-product-details {
    flex: 1.2;
    min-width: 280px;
}

.modal-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-product-details h2 {
    margin: 4px 0 8px 0;
    font-size: 1.4rem;
}

.modal-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.badge-stock {
    color: var(--secondary-color);
    font-weight: 700;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.specs-box {
    background: #FAF7F2;
    border: 1px solid #EBE4D8;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 16px 0;
}

.specs-box h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.specs-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.82rem;
    color: #4A3E34;
}

.specs-box li {
    margin-bottom: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-whatsapp-direct {
    background-color: #25D366;
    color: #FFF;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

/* COTIZADOR MAYORISTA STYLES */
.quote-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    min-width: 140px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #D6CDC1;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-add-quote {
    background-color: var(--secondary-color);
    color: #FFF;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    height: 40px;
    align-self: flex-end;
}

.quote-table-wrapper {
    margin: 20px 0;
    border: 1px solid #E4DDD1;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.quote-table th {
    background: #F5EFE6;
    padding: 10px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid #E4DDD1;
}

.quote-table td {
    padding: 10px;
    border-bottom: 1px solid #F0ECE4;
}

.badge-mini {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-remove-quote {
    background: none;
    border: none;
    color: #D32F2F;
    cursor: pointer;
    font-weight: bold;
}

.quote-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FDFBF8;
    border: 1px solid #EBE4D8;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.quote-total {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
}

.client-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* CHECKOUT 3-STEP MODAL */
.checkout-steps-bar {
    display: flex;
    justify-content: space-between;
    background: #F5EFE6;
    border-bottom: 1px solid #E6D8C5;
    padding: 12px 24px;
}

.checkout-step-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.checkout-step-indicator.active {
    color: var(--primary-color);
    font-weight: 800;
}

.checkout-step-indicator.completed {
    color: var(--secondary-color);
}

.checkout-step-pane {
    display: none;
}

/* CARDS DE MODALIDAD DE ENVÍO Y TRASLADO A AGENCIA */
.shipping-option-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 16px 0;
}

.shipping-method-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #E2D7C8;
    border-radius: 8px;
    background: #FFFDF9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-method-card:hover {
    border-color: #CCA880;
    background: #FAF5ED;
}

.shipping-method-card.selected {
    border-color: var(--primary-color);
    background: #FFF7F2;
    box-shadow: 0 2px 8px rgba(224, 74, 29, 0.12);
}

.shipping-method-card input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.shipping-method-card strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.shipping-method-card small {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.shipping-cost-badge {
    margin-left: auto;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--primary-color);
    background: #FFEBE3;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid #FFCDBC;
}

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.payment-option-card {
    border: 2px solid #E6DDD0;
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #FFF;
}

.payment-option-card:hover {
    border-color: #D4B29E;
}

.payment-option-card.selected {
    border-color: var(--primary-color);
    background-color: #FFF8F5;
}

.payment-box-detail {
    background: #FAF7F2;
    border: 1px solid #EAE1D5;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
}

.qr-preview-box {
    text-align: center;
    margin-bottom: 12px;
}

.qr-preview-box img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(116, 34, 133, 0.2);
    display: inline-block;
    transition: transform 0.2s ease;
}

.qr-preview-box img:hover {
    transform: scale(1.02);
}

.bank-card-info {
    background: #FFFFFF;
    border: 1px solid #E0D7C9;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-copy {
    background: var(--kraft-bg);
    border: 1px solid #CFC0AC;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkout-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.btn-prev-step {
    background: #EFEAE3;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-next-step {
    background: var(--primary-color);
    color: #FFF;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/* COMPLETE SUPERMARKET FOOTER */
.supermarket-footer {
    background-color: #231C16;
    color: #F1ECE6;
    padding: 50px 20px 20px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #3E332B;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 62px;
    width: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.footer-logo-img:hover {
    transform: scale(1.06);
}

.footer-brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.footer-brand-subtitle {
    font-size: 0.72rem;
    color: #A3D883;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-about p {
    color: #C0B5AA;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-certifications {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cert-pill {
    background: #362B22;
    color: #A3D883;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #4C3C30;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #C0B5AA;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-payment-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.pay-badge {
    background: #362B22;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #FFF;
    border: 1px solid #4C3C30;
}

.footer-bottom {
    max-width: 1300px;
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #8C8074;
    font-size: 0.8rem;
}

.reclamaciones-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2D241D;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #45372C;
    color: #D3C8BE;
    text-decoration: none;
}

/* MOBILE FILTER TOGGLE WRAPPER */
.mobile-filter-toggle-wrap {
    display: none;
    width: 100%;
    margin-bottom: 14px;
}

.btn-mobile-filter-toggle {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #F5EDE0 0%, #E6D5B8 100%);
    border: 1.5px solid #D6C2A0;
    border-radius: 25px;
    color: #4A3525;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-mobile-filter-toggle:active {
    transform: scale(0.98);
}

/* ANIMATIONS */
@keyframes filterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SISTEMA RESPONSIVO TOTAL: ADAPTABILIDAD UNIVERSAL Y CERO DESBORDAMIENTO
   ========================================================================== */

/* Reglas Generales de Centrado y Prevención de Desbordamiento */
.top-bar-content,
.header-container,
.hero-banner,
.hero-card,
.store-layout,
.footer-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Pantallas Grandes y Escritorio (min-width: 993px) */
@media (min-width: 993px) {
    .departments-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Tablets y Pantallas Medianas (max-width: 992px) */
@media (max-width: 992px) {
    .store-layout {
        flex-direction: column;
        padding: 10px 16px 40px 16px;
        gap: 18px;
        max-width: 100%;
    }

    .mobile-filter-toggle-wrap {
        display: block;
        width: 100%;
    }

    .sidebar-filters {
        display: none;
        width: 100%;
        margin-bottom: 16px;
        box-shadow: var(--shadow-subtle);
    }

    .sidebar-filters.mobile-open {
        display: block;
        animation: filterSlideDown 0.25s ease-out;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

/* Dispositivos Móviles y Tablets Verticales (max-width: 768px) */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 12px;
        text-align: center;
    }

    .top-bar-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 6px;
        font-size: 0.78rem;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        text-align: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .header-container {
        flex-direction: column;
        padding: 12px 14px;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .brand-logo-img {
        height: 48px;
        width: 48px;
    }

    .brand-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .brand-tagline {
        font-size: 0.62rem;
        text-align: center;
    }

    .search-bar-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .search-input-box input {
        padding: 10px 42px 10px 16px;
        font-size: 0.88rem;
    }

    .header-actions {
        order: 2;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 auto;
    }

    .btn-header-action {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .cart-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    /* Navegación Horizontal Táctil Sin Desbordamiento */
    .departments-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .departments-nav::-webkit-scrollbar {
        display: none;
    }

    .departments-nav ul {
        padding: 0 12px;
        gap: 6px;
        justify-content: flex-start;
        width: max-content;
        margin: 0 auto;
    }

    .departments-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Hero Banner Centrado y Justificado */
    .hero-banner {
        margin: 10px auto;
        padding: 0 12px;
        max-width: 100%;
    }

    .hero-card {
        padding: 20px 16px;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .hero-text p {
        font-size: 0.86rem;
        line-height: 1.5;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        max-width: 100%;
        margin: 0 auto 14px auto;
    }

    .hero-badges-row {
        justify-content: center;
        gap: 6px;
    }

    .hero-pill {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    /* Encabezado de Góndola */
    .grid-header {
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
    }

    .grid-title {
        text-align: center;
        font-size: 1.25rem;
    }

    .product-count-badge {
        text-align: center;
    }

    /* Cuadrícula de Productos Centrada */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .product-card {
        min-width: 0;
        width: 100%;
        padding: 12px 10px;
        text-align: center;
    }

    .product-img-wrapper {
        height: 175px;
    }

    .product-title {
        font-size: 0.92rem;
        text-align: center;
    }

    .description {
        font-size: 0.75rem;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        line-height: 1.4;
    }

    .price-container {
        justify-content: center;
        text-align: center;
    }

    /* Modales Responsivos Sin Desbordamiento */
    .modal-overlay {
        padding: 10px;
    }

    .modal-window {
        width: 100%;
        max-width: calc(100vw - 20px);
        max-height: 92vh;
        border-radius: var(--radius-md);
        overflow-x: hidden;
        margin: 0 auto;
    }

    .modal-body {
        padding: 14px;
        overflow-x: hidden;
    }

    .modal-product-grid {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .modal-product-media {
        min-width: 0;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .modal-main-img-box {
        height: 250px;
        width: 100%;
    }

    .modal-product-details {
        min-width: 0;
        width: 100%;
    }

    .modal-product-details h2 {
        font-size: 1.2rem;
    }

    .quote-form-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .form-group {
        width: 100%;
        min-width: 0;
    }

    .btn-add-quote {
        width: 100%;
        height: 42px;
    }

    .quote-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-data-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .checkout-steps-bar {
        padding: 10px;
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
    }
}

/* Teléfonos Inteligentes Estándar (max-width: 480px) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .product-card {
        padding: 10px 7px;
        border-radius: 8px;
        min-width: 0;
        width: 100%;
    }

    .product-img-wrapper {
        height: 150px;
        margin-bottom: 8px;
    }

    .card-badges {
        top: 6px;
        left: 6px;
        right: 6px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .badge, .badge-family {
        font-size: 0.58rem;
        padding: 2px 4px;
    }

    .card-gallery-indicator {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .card-gallery-chips {
        gap: 3px;
        margin-bottom: 6px;
    }

    .card-chip-btn {
        font-size: 0.62rem;
        padding: 2px 5px;
    }

    .product-category {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .product-title {
        font-size: 0.84rem;
        margin-bottom: 4px;
        line-height: 1.25;
        min-height: 32px;
        max-height: 36px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .fresh-ratio-tag {
        font-size: 0.62rem;
        padding: 1px 4px;
        margin-bottom: 4px;
    }

    .description {
        font-size: 0.7rem;
        height: 30px;
        margin-bottom: 6px;
        line-height: 1.35;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }

    .price-container {
        margin-bottom: 6px;
    }

    .price {
        font-size: 1.15rem;
    }

    .presentation-wrapper {
        margin-bottom: 6px;
        width: 100%;
    }

    .presentation-wrapper label {
        font-size: 0.65rem;
    }

    .presentation-selector {
        padding: 5px 3px;
        font-size: 0.74rem;
        width: 100%;
    }

    .card-actions {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .qty-counter {
        width: 100%;
        justify-content: center;
    }

    .qty-counter button {
        width: 32px;
        height: 28px;
    }

    .qty-counter input {
        width: 36px;
        height: 28px;
        font-size: 0.8rem;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 8px 4px;
        font-size: 0.78rem;
    }

    /* Footer Centrado Total */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        justify-content: center;
    }

    .footer-brand-header {
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        display: table;
        margin: 0 auto 10px auto;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
        list-style: none;
        text-align: center;
    }

    .footer-col ul li {
        text-align: center;
    }

    .footer-certifications,
    .footer-payment-badges {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        justify-content: center;
    }
}

/* Teléfonos de Pantalla Angosta (max-width: 350px) */
@media (max-width: 350px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 290px;
        margin: 0 auto;
    }

    .product-img-wrapper {
        height: 180px;
    }

    .product-title {
        max-height: none;
    }

    .card-actions {
        flex-direction: row;
    }

    .qty-counter {
        width: auto;
    }

    .add-to-cart-btn {
        flex: 1;
    }
}
