/* =================================================================
   FACTUSTORE — Standalone Ecommerce CSS
   Replaces Bootstrap + Porto. Zero !important declarations.
   Modern CSS: Grid, Flexbox, Custom Properties.
   ================================================================= */

/* =================================================================
   1. CSS VARIABLES
   ================================================================= */
:root {
    /* Brand colors (HSL for flexibility) */
    --primary-h: 261;
    --primary-s: 85%;
    --primary-l: 58%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 96%);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 45%);

    /* Semantic / text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Borders */
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --bg-secondary: #f9fafb;

    /* Status colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --whatsapp: #25d366;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Bootstrap breakpoints reference */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}


/* =================================================================
   2. RESET & BASE TYPOGRAPHY
   ================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body, .ec-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:hover {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

p { margin-top: 0; margin-bottom: 1rem; }

img { max-width: 100%; vertical-align: middle; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

ul, ol { margin-top: 0; }

/* Scrollbar */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Vue cloak */
[v-cloak] { display: none; }


/* =================================================================
   3. BOOTSTRAP GRID COMPATIBILITY
   ================================================================= */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* Column base */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Default (xs) columns */
.col-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
.col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3  { flex: 0 0 25%;        max-width: 25%;        }
.col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6  { flex: 0 0 50%;        max-width: 50%;        }
.col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9  { flex: 0 0 75%;        max-width: 75%;        }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%;       max-width: 100%;       }

/* sm breakpoint */
@media (min-width: 576px) {
    .col-sm-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
    .col-sm-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3  { flex: 0 0 25%;        max-width: 25%;        }
    .col-sm-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6  { flex: 0 0 50%;        max-width: 50%;        }
    .col-sm-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9  { flex: 0 0 75%;        max-width: 75%;        }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%;       max-width: 100%;       }
}

/* md breakpoint */
@media (min-width: 768px) {
    .col-md-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
    .col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3  { flex: 0 0 25%;        max-width: 25%;        }
    .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6  { flex: 0 0 50%;        max-width: 50%;        }
    .col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9  { flex: 0 0 75%;        max-width: 75%;        }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%;       max-width: 100%;       }
}

/* lg breakpoint */
@media (min-width: 992px) {
    .col-lg-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
    .col-lg-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3  { flex: 0 0 25%;        max-width: 25%;        }
    .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6  { flex: 0 0 50%;        max-width: 50%;        }
    .col-lg-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9  { flex: 0 0 75%;        max-width: 75%;        }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%;       max-width: 100%;       }
}


/* =================================================================
   4. BOOTSTRAP UTILITY CLASSES
   ================================================================= */

/* -- Display -- */
.d-none         { display: none; }
.d-flex         { display: flex; }
.d-block        { display: block; }
.d-inline       { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex  { display: inline-flex; }

@media (min-width: 576px) {
    .d-sm-none         { display: none; }
    .d-sm-flex         { display: flex; }
    .d-sm-block        { display: block; }
    .d-sm-inline       { display: inline; }
    .d-sm-inline-block { display: inline-block; }
}

@media (min-width: 768px) {
    .d-md-none         { display: none; }
    .d-md-flex         { display: flex; }
    .d-md-block        { display: block; }
    .d-md-inline       { display: inline; }
    .d-md-inline-block { display: inline-block; }
}

@media (min-width: 992px) {
    .d-lg-none         { display: none; }
    .d-lg-flex         { display: flex; }
    .d-lg-block        { display: block; }
    .d-lg-inline       { display: inline; }
    .d-lg-inline-block { display: inline-block; }
}

@media (min-width: 1200px) {
    .d-xl-none         { display: none; }
    .d-xl-flex         { display: flex; }
    .d-xl-block        { display: block; }
    .d-xl-inline       { display: inline; }
}

/* -- Spacing Utilities -- */
/* Margin top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Margin bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Margin right */
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

/* Margin left */
.ml-0     { margin-left: 0; }
.ml-1     { margin-left: 0.25rem; }
.ml-2     { margin-left: 0.5rem; }
.ml-3     { margin-left: 1rem; }
.ml-auto  { margin-left: auto; }

/* Padding x / y */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Padding top/bottom/left/right */
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 1rem; }
.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 1rem; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Padding all */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* -- Flexbox Utilities -- */
.justify-content-start   { justify-content: flex-start; }
.justify-content-end     { justify-content: flex-end; }
.justify-content-center  { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around  { justify-content: space-around; }

.align-items-start   { align-items: flex-start; }
.align-items-end     { align-items: flex-end; }
.align-items-center  { align-items: center; }
.align-items-stretch { align-items: stretch; }

.align-self-start  { align-self: flex-start; }
.align-self-center { align-self: center; }
.align-self-end    { align-self: flex-end; }

.flex-wrap   { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* -- Text Utilities -- */
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }

.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-white   { color: #fff; }

.font-weight-bold   { font-weight: 700; }
.font-weight-normal { font-weight: 400; }
.font-weight-light  { font-weight: 300; }

.text-uppercase  { text-transform: uppercase; }
.text-lowercase  { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-nowrap     { white-space: nowrap; }
.text-truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.small { font-size: 0.875em; }

/* -- Sizing Utilities -- */
.w-100 { width: 100%; }
.w-50  { width: 50%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }

.mw-100 { max-width: 100%; }

/* -- Other Utilities -- */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed    { position: fixed; }
.position-sticky   { position: sticky; }

.rounded    { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-circle { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border-0  { border: 0; }
.border    { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

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

.img-fluid { max-width: 100%; height: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

.float-left  { float: left; }
.float-right { float: right; }

.cursor-pointer { cursor: pointer; }


/* =================================================================
   5. BOOTSTRAP COMPONENTS
   ================================================================= */

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:focus { outline: 0; }
.btn:disabled, .btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: #fff;
}
.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

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

.btn-dark {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}
.btn-dark:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: #fff;
}

.btn-outline-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-outline-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.btn-outline-dark:hover {
    background: var(--text-primary);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-link {
    background: none;
    border-color: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 400;
}
.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Close button */
.close {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.close:hover { opacity: 0.75; }

/* -- Forms -- */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(var(--primary-h), var(--primary-s), 92%);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-page);
    opacity: 1;
}

.form-control-sm {
    height: 36px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-page);
    border: 1.5px solid var(--border);
}

.input-group-prepend .input-group-text {
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group-append .input-group-text {
    border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Custom checkbox/radio */
.form-check {
    position: relative;
    display: block;
    padding-left: 1.5rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.3rem;
    margin-left: -1.5rem;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

/* -- Modals -- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog-lg {
    max-width: 800px;
}

.modal-dialog-sm {
    max-width: 300px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 24px;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    gap: 8px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 1;
}

.fade {
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

/* -- Tabs -- */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 2px solid var(--border);
}

.nav-item {
    margin-bottom: -1px;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link.active,
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding-top: 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active,
.tab-pane.show {
    display: block;
}

/* -- Alerts -- */
.alert {
    position: relative;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert-success {
    color: #065f46;
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

.alert-warning {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.alert-info {
    color: #1e40af;
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

/* -- Tables -- */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    vertical-align: top;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    text-align: left;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table tbody + tbody {
    border-top: 2px solid var(--border);
}

.table-bordered {
    border: 1px solid var(--border);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* -- Pagination -- */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    margin: 0;
    gap: 4px;
}

.page-item {
    display: inline-block;
}

.page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
}

.page-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    border-color: var(--border);
    text-decoration: none;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background-color: var(--bg-white);
    border-color: var(--border-light);
    opacity: 0.5;
}

/* -- Collapse -- */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* -- Badge -- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
    color: #fff;
    background-color: var(--text-secondary);
}

.badge-primary { background-color: var(--primary); }
.badge-danger  { background-color: var(--danger); }
.badge-success { background-color: var(--success); }
.badge-warning { background-color: var(--warning); color: #000; }
.badge-info    { background-color: var(--info); }

/* -- Dropdown -- */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 8px 0;
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-primary);
    text-align: left;
    list-style: none;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: var(--text-primary);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    text-decoration: none;
}

.dropdown-divider {
    height: 0;
    margin: 8px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
}

/* -- Card -- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.card-header {
    padding: 16px 20px;
    margin-bottom: 0;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
}

.card-header:first-child {
    border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.card-body {
    flex: 1 1 auto;
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-light);
}

.card-footer:last-child {
    border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}


/* =================================================================
   6. LAYOUT (ec-wrapper, ec-main, ec-container)
   ================================================================= */
.ec-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ec-main {
    flex: 1;
    padding-top: 80px;
}

.ec-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ec-section {
    padding: 24px 0;
}

.ec-section--no-bottom {
    padding-bottom: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper > main,
.page-wrapper > .ec-main {
    flex: 1;
}


/* =================================================================
   7. HEADER (ec-header, sticky, search, actions)
   ================================================================= */
.ec-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition-slow), background var(--transition-slow);
}

.ec-header--scrolled {
    box-shadow: var(--shadow-md);
}

.ec-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ec-header__logo {
    flex-shrink: 0;
}

.ec-header__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Search */
.ec-header__search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
}

.ec-search {
    position: relative;
    width: 100%;
}

.ec-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.ec-search__input {
    width: 100%;
    height: 44px;
    padding: 0 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-page);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.ec-search__input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px hsl(var(--primary-h), var(--primary-s), 90%);
}

.ec-search__input::placeholder {
    color: var(--text-muted);
}

.ec-search__clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 0;
}

.ec-search__clear:hover { color: var(--text-primary); }

/* Search Results */
.ec-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
}

.ec-search__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background var(--transition);
}

.ec-search__result:hover {
    background: var(--bg-hover);
}

.ec-search__result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
}

.ec-search__result-info {
    flex: 1;
    min-width: 0;
}

.ec-search__result-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-search__result-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

.ec-search__loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Header Actions */
.ec-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ec-header__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
}

.ec-header__action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

@media (min-width: 992px) {
    .ec-header__action.login-link {
        width: auto;
        padding: 0 12px;
        white-space: nowrap;
    }
}

.ec-header__action-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.ec-header__action--whatsapp:hover {
    color: var(--whatsapp);
    background: #dcfce7;
}

/* Cart Badge */
.ec-header__action--cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.ec-header__action--cart svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.ec-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ec-header__hamburger {
    display: none;
}

/* Header dropdown toggle: hide default caret */
.ec-header .dropdown-toggle::after,
.ec-header__actions .dropdown-toggle::after,
.ec-cart-dropdown .dropdown-toggle::after,
.ec-user-dropdown .dropdown-toggle::after {
    display: none;
}

/* Cart Dropdown */
.ec-cart-dropdown__menu {
    min-width: 320px;
    width: 320px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    padding: 0;
    right: 0;
    left: auto;
    background: #fff;
}

.ec-cart-dropdown__inner {
    padding: 20px;
}

.ec-cart-dropdown__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ec-cart-dropdown__products {
    max-height: 240px;
    overflow-y: auto;
}

.ec-cart-dropdown__footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.ec-cart-dropdown__total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* User Dropdown */
.ec-user-dropdown__menu {
    min-width: 240px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0;
    right: 0;
    left: auto;
}

.ec-user-dropdown__inner {
    padding: 16px;
}

.ec-user-dropdown__header {
    padding-bottom: 12px;
}

.ec-user-dropdown__header strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ec-user-dropdown__header small {
    color: var(--text-muted);
    font-size: 12px;
}

.ec-user-dropdown__divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.ec-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.ec-user-dropdown__item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ec-user-dropdown__item--danger:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* Login Link */
.login-link {
    cursor: pointer;
}


/* =================================================================
   7b. ANNOUNCEMENT BAR (ec-announcement) — barra de anuncio fija en el header
   ================================================================= */
.ec-announcement {
    width: 100%;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ec-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 20px;
    gap: 8px;
}
.ec-announcement__text {
    text-decoration: none;
    color: inherit;
}
a.ec-announcement__text:hover { opacity: 0.88; text-decoration: none; }
.ec-announcement__cta {
    font-weight: 700;
    text-decoration: underline;
}
.ec-announcement__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px;
    display: flex;
    align-items: center;
    color: inherit;
    line-height: 1;
    border-radius: 4px;
    transition: opacity .15s;
}
.ec-announcement__close:hover { opacity: 1; }

/* =================================================================
   8. TOP NAV BAR (ec-top-nav) — barra de links personalizados
   ================================================================= */
.ec-top-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-top: var(--header-h, 73px);    /* se actualiza via JS cuando cambia la altura del header */
    position: sticky;
    top: var(--header-h, 73px);
    z-index: 999;
}

/* Cuando la barra de nav está presente, ec-main no necesita el offset completo del header */
.ec-top-nav ~ .ec-main {
    padding-top: 7px;
}

/* Alineación de los links dentro de la barra */
.ec-top-nav__inner--center { justify-content: center; }
.ec-top-nav__inner--right  { justify-content: flex-end; }
/* left = default (flex-start, ya definido arriba) */

.ec-top-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.ec-top-nav__inner::-webkit-scrollbar { display: none; }

.ec-top-nav__link {
    display: inline-block;
    padding: 10px 18px;
    color: #374151;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.ec-top-nav__link:hover {
    color: var(--primary);
    text-decoration: none;
    border-bottom-color: var(--primary);
}
.ec-top-nav__link--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Ícono dentro del link */
.ec-top-nav__icon { font-size: 12px; opacity: .85; }
.ec-top-nav__emoji { font-size: 14px; line-height: 1; }

/* Link destacado — aparece como botón/pill */
.ec-top-nav__link--featured {
    background: var(--primary);
    color: #fff !important;
    border-radius: 20px;
    padding: 5px 16px;
    margin: 6px 6px 6px 8px;
    border-bottom: none !important;
    font-size: 12px;
    letter-spacing: .05em;
    transition: opacity .15s, transform .15s;
}
.ec-top-nav__link--featured:hover {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Variante: fondo color de marca */
.ec-top-nav--primary {
    background: var(--primary);
    border-bottom-color: rgba(255,255,255,.15);
}
.ec-top-nav--primary .ec-top-nav__link {
    color: rgba(255,255,255,.88);
    border-bottom-color: transparent;
}
.ec-top-nav--primary .ec-top-nav__link:hover,
.ec-top-nav--primary .ec-top-nav__link--active {
    color: #fff;
    border-bottom-color: #fff;
}
.ec-top-nav--primary .ec-top-nav__link--featured {
    background: #fff;
    color: var(--primary) !important;
}
.ec-top-nav--primary .ec-top-nav__link--featured:hover { opacity: .9; }

/* Variante: fondo oscuro */
.ec-top-nav--dark {
    background: #1f2937;
    border-bottom-color: rgba(255,255,255,.08);
}
.ec-top-nav--dark .ec-top-nav__link {
    color: rgba(255,255,255,.75);
    border-bottom-color: transparent;
}
.ec-top-nav--dark .ec-top-nav__link:hover,
.ec-top-nav--dark .ec-top-nav__link--active {
    color: #fff;
    border-bottom-color: var(--primary);
}
.ec-top-nav--dark .ec-top-nav__link--featured {
    background: var(--primary);
    color: #fff !important;
}

/* Móvil — separador y link destacado en el menú hamburguesa */
.mobile-nav-divider { pointer-events: none; padding: 4px 0 !important; }
.mobile-nav-divider span {
    display: block;
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 0 16px;
}
.mobile-nav-featured > a {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Ocultar la barra en móvil — los links ya están en el menú hamburguesa */
@media (max-width: 767px) {
    .ec-top-nav { display: none; }
}


/* =================================================================
   9. CATEGORY CHIPS (ec-category-chip, sidebar)
   ================================================================= */

/* Categories Header */
.ec-categories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ec-categories__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ec-categories__see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.ec-categories__see-all:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* Categories Scroll */
.ec-categories__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.ec-categories__scroll::-webkit-scrollbar { display: none; }

/* Category Chip */
.ec-category-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 10px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    scroll-snap-align: start;
    transition: all var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.ec-category-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ec-category-chip--active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.ec-category-chip--active:hover {
    background: var(--primary-dark);
    color: white;
}

.ec-category-chip__img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-page);
}

.ec-category-chip__placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.ec-category-chip__name {
    font-size: 13px;
    font-weight: 600;
}

.ec-category-chip__arrow {
    margin-left: 2px;
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ec-category-chip__arrow--up {
    transform: rotate(180deg);
}

.ec-category-chip__emoji {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.ec-category-chip__fa-icon {
    font-size: 0.88rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.ec-category-chip--colored {
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Subcategories scroll */
.ec-subcategories__scroll {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

.ec-category-chip--sub {
    padding: 6px 12px;
    background: #f8f8ff;
    border-color: #e0d8ff;
}

.ec-category-chip--sub .ec-category-chip__name {
    font-size: 12px;
    font-weight: 500;
}

/* Second row of subcategories */
.ec-categories__subrow {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
    scrollbar-width: none;
    border-top: 1px dashed #e0d8ff;
    margin-top: 6px;
}

.ec-categories__subrow::-webkit-scrollbar { display: none; }

.ec-categories__subrow .ec-category-chip {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #5b21b6;
    gap: 6px;
}

.ec-categories__subrow .ec-category-chip:hover {
    background: #ede9fe;
    border-color: #793FED;
    color: #793FED;
}

.ec-categories__subrow .ec-category-chip--active,
.ec-categories__subrow .ec-category-chip--active:hover {
    background: #793FED;
    color: #fff;
    border-color: #793FED;
}

/* Sidebar Layout */
.ec-layout-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding-top: 16px;
}

.ec-layout-sidebar__aside {
    position: relative;
}

.ec-sidebar-categories {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 20px 0;
}

.ec-sidebar-categories__title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    padding: 0 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 0 8px;
}

.ec-sidebar-categories__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-sidebar-categories__item {
    border-left: 3px solid transparent;
    transition: border-color 0.15s;
}

.ec-sidebar-categories__item--active {
    border-left-color: var(--ec-primary, #793FED);
    background: rgba(121, 63, 237, 0.05);
}

.ec-sidebar-categories__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 9px 20px;
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.ec-sidebar-categories__item--active > .ec-sidebar-categories__link {
    color: var(--ec-primary, #793FED);
    font-weight: 600;
}

.ec-sidebar-categories__link:hover {
    color: var(--ec-primary, #793FED);
    background: rgba(121, 63, 237, 0.04);
}

.ec-sidebar-categories__count {
    font-size: 11px;
    color: #999;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 1px 7px;
}

.ec-sidebar-categories__children {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.ec-sidebar-categories__child-item .ec-sidebar-categories__link {
    padding-left: 34px;
    font-size: 13px;
    color: #555;
}

.ec-sidebar-categories__chevron {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ── Widget sidebar (sistema de widgets estilo WooCommerce) ── */
/* ── Widget sidebar ── */
.ec-widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ec-widget:last-child { margin-bottom: 0; }

.ec-widget__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #374151;
    margin: 0;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafafa;
}
.ec-widget__title svg { color: #6b7280; flex-shrink: 0; }
.ec-widget__clear-link {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #793FED;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(121,63,237,.08);
    transition: background .15s;
}
.ec-widget__clear-link:hover { background: rgba(121,63,237,.16); text-decoration: none; }

/* Formulario de filtro */
.ec-widget__filter-form {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ec-widget__filter-group { display: flex; flex-direction: column; gap: 7px; }
.ec-widget__filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ec-widget__price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ec-widget__price-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #111827;
    background: #f9fafb;
    transition: border-color .15s, background .15s;
    -moz-appearance: textfield;
}
.ec-widget__price-input::-webkit-inner-spin-button,
.ec-widget__price-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ec-widget__price-input:focus {
    outline: none;
    border-color: #793FED;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(121,63,237,.1);
}
.ec-widget__price-sep { color: #d1d5db; font-size: 13px; flex-shrink: 0; font-weight: 300; }

.ec-widget__divider {
    height: 1px;
    background: #f3f4f6;
    margin: 2px 0;
}

.ec-widget__check-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .12s;
}
.ec-widget__check-label:hover { background: #f3f4f6; }
.ec-widget__check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #793FED;
    cursor: pointer;
    flex-shrink: 0;
}
.ec-widget__filter-btn {
    width: 100%;
    height: 38px;
    background: #793FED;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .2px;
    transition: background .15s, transform .1s;
    margin-top: 2px;
}
.ec-widget__filter-btn:hover { background: #6830d4; }
.ec-widget__filter-btn:active { transform: scale(.98); }

/* sidebar sticky container */
.ec-layout-sidebar__aside {
    position: sticky;
    top: calc(var(--header-h, 73px) + 16px);
    align-self: start;
}

/* Quitar sticky individual del sidebar de categorías */
.ec-sidebar-categories {
    position: static;
    margin-bottom: 14px;
}

/* Dark mode — widgets */
.ec-dark .ec-widget { background: #1e293b; border-color: #334155; }
.ec-dark .ec-widget__title { background: #162032; color: #f1f5f9; border-color: #334155; }
.ec-dark .ec-widget__title svg { color: #94a3b8; }
.ec-dark .ec-widget__filter-label { color: #64748b; }
.ec-dark .ec-widget__price-input { background: #0f172a; color: #f1f5f9; border-color: #334155; }
.ec-dark .ec-widget__price-input:focus { background: #1e293b; border-color: #793FED; }
.ec-dark .ec-widget__price-sep { color: #475569; }
.ec-dark .ec-widget__check-label { color: #cbd5e1; }
.ec-dark .ec-widget__check-label:hover { background: #0f172a; }
.ec-dark .ec-widget__divider { background: #334155; }

/* Sidebar icons */
.ec-sidebar-cat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 4px;
}

.ec-sidebar-cat-icon {
    font-size: 1rem;
    line-height: 1;
    margin-right: 4px;
}

.ec-sidebar-cat-fa-icon {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    margin-right: 6px;
    flex-shrink: 0;
}

.ec-sidebar-cat-name {
    flex: 1;
}

/* Category Banner */
.ec-cat-banner {
    position: relative;
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    background: #f5f5f5;
}

.ec-cat-banner__img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.ec-cat-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.48) 100%);
    padding: 24px 32px;
    text-align: center;
}

.ec-cat-banner__icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.ec-cat-banner__title {
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.ec-cat-banner__desc {
    color: rgba(255,255,255,.88);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin: 6px 0 0;
    max-width: 540px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Subcategory Grid */
.ec-subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 4px 0;
}

.ec-subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px 12px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: var(--subcat-color, #333);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    cursor: pointer;
}

.ec-subcat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    border-color: var(--subcat-color, var(--primary));
    text-decoration: none;
    color: var(--subcat-color, var(--primary));
}

.ec-subcat-card__img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}

.ec-subcat-card__emoji {
    font-size: 2rem;
    line-height: 1;
}

.ec-subcat-card__name {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Hover Dropdown Panel */
#ec-categories-wrap {
    position: relative;
}

.ec-hover-panel {
    display: none;
    position: absolute;
    z-index: 9999;
    min-width: 180px;
    background: #fff;
    border: 2px solid #ede8fb;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(121,63,237,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px;
    overflow: hidden;
    animation: ec-panel-in 0.14s ease;
}

@keyframes ec-panel-in {
    from { opacity: 0; transform: translateY(-5px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ec-hover-panel__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ec-hover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.13s, color 0.13s, border-color 0.13s;
}

.ec-hover-item:hover {
    background: var(--primary-light, #f5f0ff);
    color: var(--primary, #793FED);
    border-color: var(--primary, #793FED);
    text-decoration: none;
}

.ec-hover-item__icon {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.ec-hover-item__fa-icon {
    font-size: 0.88rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ec-hover-item__name {
    flex: 1;
}

/* Item category tree */
.item-category-tree-wrap {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
}


/* =================================================================
   10. PRODUCT CARDS (ec-card)
   ================================================================= */

/* Products Header */
.ec-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-products-header__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.ec-products-header__count {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.ec-products-header__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-products-header__sort label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    margin: 0;
}

.ec-products-header__sort select {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.ec-products-header__sort select:focus {
    border-color: var(--primary);
}

/* Filter Bar */
.ec-filter-bar {
    margin-top: 12px;
}
.ec-filter-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 16px;
}
.ec-filter-bar__group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ec-filter-bar__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    margin: 0;
}
.ec-filter-bar__price {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ec-filter-bar__input {
    width: 80px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: var(--text-primary);
    outline: none;
    transition: border-color .15s;
}
.ec-filter-bar__input:focus { border-color: var(--primary); }
.ec-filter-bar__dash { color: #9ca3af; font-size: 13px; }
.ec-filter-bar__check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    user-select: none;
}
.ec-filter-bar__check input { cursor: pointer; accent-color: var(--primary); }
.ec-filter-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.ec-filter-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
    border: none;
}
.ec-filter-bar__btn--apply {
    background: var(--primary);
    color: #fff;
}
.ec-filter-bar__btn--apply:hover { opacity: .88; }
.ec-filter-bar__btn--clear {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.ec-filter-bar__btn--clear:hover { background: #e5e7eb; color: #374151; text-decoration: none; }

@media (max-width: 575px) {
    .ec-filter-bar__inner { flex-direction: column; align-items: flex-start; }
    .ec-filter-bar__actions { margin-left: 0; }
}


/* Product Grid */
.ec-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card */
.ec-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.4s ease both;
}

.ec-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border);
}

.ec-card--disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Staggered animation */
.ec-card:nth-child(2) { animation-delay: 0.05s; }
.ec-card:nth-child(3) { animation-delay: 0.1s; }
.ec-card:nth-child(4) { animation-delay: 0.15s; }
.ec-card:nth-child(5) { animation-delay: 0.2s; }
.ec-card:nth-child(6) { animation-delay: 0.25s; }
.ec-card:nth-child(7) { animation-delay: 0.3s; }
.ec-card:nth-child(8) { animation-delay: 0.35s; }

/* Card Image */
.ec-card__image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-page);
}

.ec-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ec-card:hover .ec-card__image {
    transform: scale(1.08);
}

/* Badges */
.ec-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-badge--new {
    background: var(--primary);
    color: white;
}

.ec-badge--out {
    background: var(--danger);
    color: white;
}

/* Quick View */
.ec-card__quickview {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 5;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.ec-card:hover .ec-card__quickview {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Card Body */
.ec-card__body {
    padding: 16px;
}

.ec-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-card__title a {
    color: var(--text-primary);
}

.ec-card__title a:hover {
    color: var(--primary);
}

.ec-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-card__stock {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ec-card__stock--in  { color: var(--success); }
.ec-card__stock--out { color: var(--danger); }

/* Rating */
.ec-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.ec-card__rating-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* Stars */
.ec-stars {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 14px;
    font-size: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23e5e7eb' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") repeat-x;
    background-size: 14px 14px;
}

.ec-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23f59e0b' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") repeat-x;
    background-size: 14px 14px;
    overflow: hidden;
}

/* Card Footer */
.ec-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.ec-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.ec-card__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.ec-card__add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

/* Hide Porto pseudo-element icons on card buttons */
.ec-card__add-btn.add-cart::before,
.ec-btn.add-cart::before,
.paction.add-cart::before {
    display: none;
    content: none;
}

.ec-card__add-btn.paction span {
    display: none;
}


/* =================================================================
   11. PRODUCT DETAIL (gallery, tabs, quantity, ratings)
   ================================================================= */

/* Breadcrumb */
.ec-breadcrumb {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

.ec-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.ec-breadcrumb__list li + li::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--text-muted);
}

.ec-breadcrumb__list a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.ec-breadcrumb__list a:hover {
    color: var(--primary);
}

.ec-breadcrumb__list .active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Detail */
.ec-product-detail {
    padding: 32px 0;
}

.ec-product-detail .row {
    align-items: flex-start;
}

/* Gallery */
.ec-gallery {
    position: sticky;
    top: 100px;
}

.ec-gallery__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.ec-gallery__image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.ec-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.ec-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all var(--transition);
    padding: 0;
    background: var(--bg-white);
}

.ec-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-gallery__thumb.active,
.ec-gallery__thumb:hover {
    border-color: var(--primary);
}

/* Product Info */
.ec-product-info {
    padding-left: 16px;
}

.ec-product-info__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.ec-product-info__category:hover {
    color: var(--primary-dark);
}

.ec-product-info__title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ec-product-info__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ec-product-info__rating-link {
    font-size: 13px;
    color: var(--text-muted);
}

.ec-product-info__rating-link:hover {
    color: var(--primary);
}

.ec-product-info__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ec-product-info__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Stock Badge */
.ec-product-info__stock {
    margin-bottom: 20px;
}

.ec-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.ec-stock-badge--in {
    background: #ecfdf5;
    color: var(--success);
}

.ec-stock-badge--out {
    background: #fef2f2;
    color: var(--danger);
}

/* Attributes */
.ec-product-info__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.ec-attr {
    display: inline-flex;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.ec-attr__label {
    color: var(--text-muted);
}

.ec-attr__value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Actions */
.ec-product-info__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Delivery Time */
.ec-delivery-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #166534;
    margin-bottom: 16px;
}
.ec-delivery-time svg { flex-shrink: 0; color: #16a34a; }

/* Trust Badges */
.ec-trust-badges {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.ec-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.ec-trust-badge svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Product Tabs */
.ec-product-tabs {
    margin: 40px 0;
}

.ec-tabs__nav {
    border-bottom: 2px solid var(--border);
    gap: 0;
}

.ec-tabs__nav .nav-link {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    background: transparent;
}

.ec-tabs__nav .nav-link:hover {
    color: var(--text-primary);
}

.ec-tabs__nav .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.ec-tab-body {
    padding: 24px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Welcome Popup */
.ec-welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ec-welcome-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.ec-welcome-popup__dialog {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: ec-wp-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ec-wp-in {
    from { opacity: 0; transform: scale(.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ec-welcome-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background .15s;
}
.ec-welcome-popup__close:hover { background: rgba(255,255,255,1); }
.ec-welcome-popup__image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}
.ec-welcome-popup__body {
    padding: 24px 24px 28px;
}
.ec-welcome-popup__title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}
.ec-welcome-popup__text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 18px;
}
.ec-welcome-popup__cta {
    display: inline-block;
    padding: 11px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}
.ec-welcome-popup__cta:hover { opacity: .88; text-decoration: none; color: #fff; }

/* Related Products Section */
.ec-related-products {
    margin: 36px 0 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}
.ec-related-products__title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 12px;
}
.ec-related-products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 576px) { .ec-related-products__grid { grid-template-columns: repeat(4, 1fr); } }

/* Tarjeta compacta: imagen cuadrada pequeña + texto al lado */
.ec-rel-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.ec-rel-card:hover {
    border-color: #793FED;
    box-shadow: 0 2px 8px rgba(121,63,237,.12);
}
.ec-rel-card__image-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 7px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}
.ec-rel-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s;
}
.ec-rel-card:hover .ec-rel-card__image-wrap img { transform: scale(1.07); }
.ec-rel-card__badge { display: none; }
.ec-rel-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ec-rel-card__stars { display: none; }
.ec-rel-card__name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-rel-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #793FED;
}

/* Featured / Related Products */
.carousel-title,
.featured-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 20px;
}

.featured-products .product,
.featured-products .product-details {
    font-family: 'Inter', sans-serif;
}

.featured-products .product-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.featured-products .product-title a {
    font-size: 14px;
    font-weight: 600;
}

.featured-products .product-price {
    font-weight: 700;
    color: var(--text-primary);
}


/* =================================================================
   12. CART (mini dropdown, full page, checkout steps)
   ================================================================= */

/* Mini Cart Item */
.ec-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ec-mini-cart-item:last-child { border-bottom: none; }

.ec-mini-cart-item__img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.ec-mini-cart-item__img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
}

.ec-mini-cart-item__details {
    flex: 1;
    min-width: 0;
}

.ec-mini-cart-item__name {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 3px;
}

.ec-mini-cart-item__name:hover { color: #793FED; }

.ec-mini-cart-item__qty {
    font-size: 12px;
    color: #6b7280;
}

.ec-mini-cart-item__remove {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.ec-mini-cart-item__remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* Checkout */
.ec-checkout { padding: 0 0 60px; }

/* Step Indicator */
.ec-checkout__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0 40px;
    max-width: 480px;
    margin: 0 auto;
}

.ec-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    position: relative;
}

.ec-step--done { cursor: pointer; }

.ec-step__number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.ec-step--active .ec-step__number {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 4px 14px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.35);
}

.ec-step--done .ec-step__number {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.ec-step__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.ec-step--active .ec-step__label {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

.ec-step--done .ec-step__label { color: #10b981; }

.ec-step__line {
    flex: 1;
    height: 3px;
    background: var(--border-light);
    min-width: 60px;
    margin: 0 8px;
    margin-bottom: 28px;
    border-radius: 3px;
    transition: background 0.4s ease;
}

.ec-step__line--done {
    background: #10b981;
}

/* Checkout Body */
.ec-checkout__body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.ec-checkout__main { min-width: 0; }

.ec-checkout__sidebar {
    position: sticky;
    top: 90px;
}

/* Section Titles */
.ec-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.ec-section-title svg {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    flex-shrink: 0;
}

.ec-section-title__count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Cart Items */
.ec-cart-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
}

.ec-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.ec-cart-item:last-of-type { border-bottom: none; }

.ec-cart-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.ec-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-cart-item__info { min-width: 0; }

.ec-cart-item__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.ec-cart-item__price-mobile {
    display: none;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ec-cart-item__price {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ec-cart-item__subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.ec-cart-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ec-cart-item__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Quantity Control */
.ec-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.ec-qty__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.ec-qty__btn:hover {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
}

.ec-qty__input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border-light);
    border-right: 1.5px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
    color: var(--text-primary);
    outline: none;
}

.ec-qty__input::-webkit-outer-spin-button,
.ec-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Actions */
.ec-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 4px;
}

.ec-cart-actions__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    text-decoration: none;
    transition: opacity 0.2s;
}

.ec-cart-actions__link:hover { opacity: 0.7; }

.ec-cart-actions__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ec-cart-actions__clear:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Cart Empty */
.ec-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.ec-cart-empty svg {
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}

.ec-cart-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.ec-cart-empty p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* Summary Sidebar */
.ec-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
}

.ec-summary__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.ec-summary__items {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.ec-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.ec-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid var(--text-primary);
    margin-top: 4px;
}

.ec-summary__total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.ec-summary__total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.ec-summary__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.ec-summary--compact .ec-summary__total {
    border-top: 2px solid var(--text-primary);
}

/* Mini product list in summary */
.ec-summary__mini-items {
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.ec-summary__mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.ec-summary__mini-item:last-child { border-bottom: none; }

.ec-summary__mini-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.ec-summary__mini-info {
    flex: 1;
    min-width: 0;
}

.ec-summary__mini-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-summary__mini-qty {
    font-size: 12px;
    color: var(--text-muted);
}

.ec-summary__mini-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Checkout Form Sections */
.ec-form-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    margin-bottom: 24px;
}

.ec-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ec-form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.ec-form-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.ec-form-group--full {
    grid-column: 1 / -1;
}

.ec-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.ec-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ec-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-input-wrapper:focus-within {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.ec-input-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.ec-input-wrapper--clickable { cursor: pointer; }

/* ec-input standalone */
.ec-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all var(--transition);
    outline: none;
}

.ec-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(var(--primary-h), var(--primary-s), 92%);
}

/* ec-input inside wrapper */
.ec-input-wrapper .ec-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: transparent;
    height: auto;
    box-shadow: none;
}

.ec-input::placeholder { color: var(--text-muted); }

/* Standalone ec-input in form-group */
.ec-form-group > .ec-input {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-form-group > .ec-input:focus {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.ec-input-action {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    white-space: nowrap;
    cursor: pointer;
}

.ec-input-action--btn {
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition);
}

.ec-input-action--btn:hover { opacity: 0.9; }

.ec-input-action--btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ec-input-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.ec-input-counter.warning { color: var(--warning); }
.ec-input-counter.success { color: var(--success); }
.ec-input-counter.error   { color: var(--danger); }

/* Textarea */
.ec-textarea {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.ec-textarea::placeholder { color: var(--text-muted); }

.ec-textarea:focus {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

/* Select */
.ec-select-wrapper {
    position: relative;
}

.ec-select {
    width: 100%;
    padding: 12px 14px;
    padding-right: 36px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-select:focus {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

/* Form Validation */
.ec-form-group--error .ec-input,
.ec-form-group--error .ec-select,
.ec-form-group--error .ec-input-wrapper {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ec-form-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Checkout Navigation */
.ec-checkout__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

/* Payment Methods */
.ec-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.ec-payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.ec-payment-option:hover {
    border-color: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 15%));
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.03);
}

.ec-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.ec-radio--active {
    border-color: var(--primary);
}

.ec-radio--active::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.ec-payment-option__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.ec-payment-option__info {
    flex: 1;
    min-width: 0;
}

.ec-payment-option__info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ec-payment-option__info span {
    font-size: 13px;
    color: var(--text-muted);
}

.ec-payment-option__logos {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ec-payment-option__logos img {
    height: 24px;
    opacity: 0.6;
}

.ec-payment-action {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.ec-paypal-container {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

/* Payment Login Prompt */
.ec-payment-login {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.ec-payment-login svg {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.ec-payment-login h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ec-payment-login p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* Shipping Toggle */
.ec-shipping-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ec-shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.ec-shipping-option:hover {
    border-color: hsl(var(--primary-h), var(--primary-s), 80%);
    background: var(--primary-light);
}

.ec-shipping-option--active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.ec-shipping-option--active svg {
    color: var(--primary);
}

.ec-shipping-option svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-secondary);
}

.ec-shipping-option div {
    display: flex;
    flex-direction: column;
}

.ec-shipping-option strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ec-shipping-option span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Comprobante Toggle */
.ec-comprobante-toggle {
    display: flex;
    gap: 10px;
}

.ec-comprobante-option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ec-comprobante-option:hover {
    border-color: hsl(var(--primary-h), var(--primary-s), 80%);
}

.ec-comprobante-option--active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.ec-comprobante-option strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ec-comprobante-option span {
    font-size: 11px;
    color: var(--text-secondary);
}

.ec-comprobante-option--active strong {
    color: var(--primary-dark);
}

.ec-comprobante-toggle.ec-form-group--error .ec-comprobante-option {
    border-color: rgba(239, 68, 68, 0.4);
}

/* Lookup Result */
.ec-lookup-result {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.ec-lookup-result--success {
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
    font-weight: 500;
}

.ec-lookup-result--error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* Transfer Details */
.ec-transfer-details,
.ec-yape-details {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

.ec-transfer-details__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.ec-transfer-accounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-transfer-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-white);
}

.ec-transfer-account:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.ec-transfer-account--selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.ec-transfer-account__radio {
    flex-shrink: 0;
}

.ec-transfer-account__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.ec-transfer-account__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ec-transfer-account__info strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.ec-transfer-account__number {
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.ec-transfer-account__cci {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ec-transfer-account__currency {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* Yape Details */
.ec-yape-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ec-yape-qr {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.ec-yape-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ec-yape-data {
    flex: 1;
}

.ec-yape-data p {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.ec-yape-data p strong {
    color: var(--text-secondary);
    font-weight: 500;
    display: inline-block;
    min-width: 80px;
}

/* One-Step Checkout */
.ec-checkout--one-step .ec-checkout__body {
    grid-template-columns: 1fr;
    gap: 0;
}

.ec-checkout--one-step .ec-checkout__body .ec-checkout__main {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.ec-checkout--one-step .ec-checkout__body:last-of-type {
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.ec-checkout--one-step .ec-checkout__body:last-of-type .ec-checkout__sidebar {
    position: sticky;
    top: 20px;
}

/* Cart Table */
.cart-table-container table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-table-container th {
    background: var(--bg-page);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 14px 16px;
}

.cart-table-container td {
    padding: 16px;
    vertical-align: middle;
}

/* Track Order */
.ec-track-order {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

.ec-track-order__header {
    text-align: center;
    margin-bottom: 32px;
}

.ec-track-order__header svg {
    color: hsl(var(--primary-h, 263) var(--primary-s, 85%) var(--primary-l, 59%));
    margin-bottom: 12px;
}

.ec-track-order__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.ec-track-order__header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.ec-track-order__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.ec-track-order__alert--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ec-track-order__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-track-order__result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ec-track-order__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.ec-track-order__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ec-track-order__badge--pending {
    background: #fef3c7;
    color: #d97706;
}

.ec-track-order__badge--confirmed {
    background: #dbeafe;
    color: #2563eb;
}

.ec-track-order__badge--completed {
    background: #d1fae5;
    color: #059669;
}

.ec-track-order__date {
    font-size: 0.85rem;
    color: #6b7280;
}

.ec-track-order__info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ec-track-order__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.ec-track-order__row:last-child {
    border-bottom: none;
}

.ec-track-order__row span {
    font-size: 0.85rem;
    color: #6b7280;
}

.ec-track-order__row strong {
    font-size: 0.9rem;
    color: #1a1a2e;
    text-align: right;
    max-width: 60%;
}

.ec-track-order__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.ec-track-order__items {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ec-track-order__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.ec-track-order__item:last-child {
    border-bottom: none;
}

.ec-track-order__item-name {
    font-size: 0.9rem;
    color: #1a1a2e;
    flex: 1;
}

.ec-track-order__item-qty {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: 12px;
    white-space: nowrap;
}

.ec-track-order__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, hsl(var(--primary-h, 263) var(--primary-s, 85%) 96%), hsl(var(--primary-h, 263) var(--primary-s, 85%) 94%));
    border-radius: 12px;
}

.ec-track-order__total span {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.ec-track-order__total strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(var(--primary-h, 263) var(--primary-s, 85%) var(--primary-l, 59%));
}


/* =================================================================
   13. MODALS (product added, login/register, ec-modal)
   ================================================================= */

/* EC Modal Overlay */
.ec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

/* EC Modal */
.ec-modal {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    border: none;
}

.ec-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border-light);
}

.ec-modal__header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.ec-modal__header h3 svg {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

.ec-modal__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ec-modal__close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.ec-modal__body {
    padding: 24px 28px;
}

.ec-modal__body .ec-form-group { margin-bottom: 16px; }
.ec-modal__body .ec-form-group:last-child { margin-bottom: 0; }
.ec-modal__body .ec-form-grid { margin-bottom: 16px; }

.ec-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.ec-modal__success,
.ec-modal__warning {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Auth Modal */
.ec-auth-modal .modal-content {
    border: none;
}

.ec-auth {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.ec-auth__form {
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

.second-column .ec-auth__form {
    padding: 24px 32px;
}

.second-column .ec-form-group {
    margin-bottom: 10px;
}

.ec-auth__title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.ec-auth__hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* Auth Sliding Panels */
.contenedor-form {
    display: flex;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.first-column {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 50%;
    min-width: 50%;
}

.second-column {
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    width: 50%;
    min-width: 50%;
    overflow-y: auto;
}

.terceary-column {
    width: 50%;
    min-width: 50%;
    background: linear-gradient(135deg, hsl(var(--primary-h), var(--primary-s), var(--primary-l)), hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 12%)));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    transition: order 0s;
}

.terceary-column h3 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.terceary-column p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.contenedor-iniciar-sesion { display: none; }
.contenedor-registro { display: block; }

/* Default: [Login Form] [Purple CTA] */
.contenedor-form .first-column   { order: 1; }
.contenedor-form .terceary-column { order: 2; }
.contenedor-form .second-column  { order: 3; }

/* Active: [Purple CTA] [Register Form] */
.contenedor-form.active .first-column   { display: none; }
.contenedor-form.active .second-column  { display: flex; order: 2; }
.contenedor-form.active .terceary-column { order: 1; }

.contenedor-form.active .contenedor-iniciar-sesion { display: block; }
.contenedor-form.active .contenedor-registro { display: none; }


/* =================================================================
   14. BUTTONS (ec-btn variants)
   ================================================================= */
.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

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

.ec-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 12px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.35);
    transform: translateY(-1px);
}

.ec-btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ec-btn--outline:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.ec-btn--whatsapp {
    background: var(--whatsapp);
    color: white;
    border-color: var(--whatsapp);
}

.ec-btn--whatsapp:hover {
    background: #1ea952;
    border-color: #1ea952;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.ec-btn--white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.ec-btn--white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
}

.ec-btn--lg {
    padding: 14px 32px;
    font-size: 15px;
}

.ec-btn--full {
    width: 100%;
    justify-content: center;
}


/* =================================================================
   15. HERO / BANNER SLIDER
   ================================================================= */
.ec-hero {
    padding-top: 0;
}

.ec-hero .banner-slider-wrapper {
    border-radius: 0;
    overflow: hidden;
}

.ec-hero .home-slider .home-slide {
    min-height: 400px;
}

.ec-hero .slide-bg,
.ec-hero .home-slide .owl-lazy {
    background-size: cover;
    background-position: center;
}

.ec-hero .banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    color: var(--text-primary);
}

.ec-hero .banner-nav-btn:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.ec-hero .banner-nav-btn svg {
    width: 24px;
    height: 24px;
}

.ec-hero .banner-nav-prev { left: 20px; }
.ec-hero .banner-nav-next { right: 20px; }

/* Owl dots */
.ec-hero .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ec-hero .owl-dot span {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    display: block;
    transition: all var(--transition);
}

.ec-hero .owl-dot.active span {
    background: white;
    width: 28px;
}

/* Full-width banner */
.full-width-banner .home-slide {
    min-height: 500px;
}

/* Hide native Owl nav */
.ec-hero .owl-nav { display: none; }

/* ── Hero con panel de categorías lateral ── */
.ec-hero--with-cats {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
    max-width: 1400px;
    margin: 12px auto 0;
    padding: 0 24px;
    gap: 0;
    /* Una sola sombra unificada para todo el bloque — los dropdowns salen igual porque no usamos overflow:hidden aquí */
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.13));
}

/* Cuando el banner está dentro del layout con cats, anular sus estilos standalone */
.ec-hero--with-cats .ec-banner-wrap:not(.ec-banner-wrap--full) {
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
    box-shadow: none; /* la sombra la pone el contenedor con filter:drop-shadow */
}
.ec-hero--with-cats .ec-banner-wrap:not(.ec-banner-wrap--full) .ec-banner-swiper {
    border-radius: 0;
    box-shadow: none;
    min-height: 480px;
}

/* Panel lateral de categorías */
.ec-hero-cats {
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 16px 0 0 16px;
    /* Sin overflow:hidden — los dropdowns de subcategorías salen por la derecha */
    /* Sin box-shadow propio — la sombra la gestiona el contenedor con filter:drop-shadow */
    position: relative;
    z-index: 10;
    /* Separador sutil entre el panel y el banner */
    border-right: 1px solid rgba(0,0,0,.04);
}
.ec-hero-cats__header {
    background: var(--primary);
    color: #fff;
    padding: 15px 18px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    /* Clipea solo la esquina superior-izquierda del header para respetar el border-radius del panel */
    border-radius: 16px 0 0 0;
}
.ec-hero-cats__list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Sin overflow-y: auto — evita que se corte el dropdown de subcategorías */
    flex: 1;
}
.ec-hero-cats__item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.ec-hero-cats__item:last-child {
    border-bottom: none;
}
.ec-hero-cats__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.3;
}
.ec-hero-cats__link:hover {
    background: rgba(121, 63, 237, .07);
    color: var(--primary);
}
.ec-hero-cats__icon-fa {
    font-size: 16px;
    width: 22px;
    text-align: center;
    color: var(--primary);
    flex-shrink: 0;
    opacity: .85;
}
.ec-hero-cats__link:hover .ec-hero-cats__icon-fa {
    opacity: 1;
}
.ec-hero-cats__emoji {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}
.ec-hero-cats__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .35;
    flex-shrink: 0;
    margin-left: 4px;
}
.ec-hero-cats__link:hover .ec-hero-cats__dot {
    opacity: .8;
}
.ec-hero-cats__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ec-hero-cats__arrow {
    margin-left: auto;
    font-size: 10px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}
.ec-hero-cats__link:hover .ec-hero-cats__arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Dropdown de subcategorías en hover */
.ec-hero-cats__sub {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 500;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    min-width: 210px;
    border: 1px solid rgba(0,0,0,.06);
}
.ec-hero-cats__item:hover > .ec-hero-cats__sub {
    display: block;
}
.ec-hero-cats__sub li {
    border-bottom: 1px solid #f5f5f5;
}
.ec-hero-cats__sub li:last-child {
    border-bottom: none;
}
.ec-hero-cats__sub li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ec-hero-cats__sub li a:hover {
    background: rgba(121, 63, 237, .07);
    color: var(--primary);
}

/* ── Botón "Ver más" y panel flotante de categorías extra ── */

/* Tres puntos decorativos en el botón "Ver más" */
.ec-hero-cats__more-dots {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 22px;
    justify-content: center;
    flex-shrink: 0;
}
.ec-hero-cats__more-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .5;
    display: block;
}
.ec-hero-cats__link--more:hover .ec-hero-cats__more-dots span {
    opacity: 1;
}
/* El contador "(N)" al lado del texto */
.ec-hero-cats__more-count {
    font-size: 11px;
    opacity: .55;
    font-weight: 500;
}

/* Flecha del "Ver más" rota cuando el panel está abierto */
.ec-hero-cats__item--more.is-open .ec-hero-cats__more-arrow {
    transform: rotate(90deg);
    color: var(--primary);
}

/* Panel flotante — aparece a la derecha del ítem "Ver más", anclado en la parte inferior */
.ec-hero-cats__more-panel {
    display: none;
    position: absolute;
    left: calc(100% + 4px);
    bottom: 0;
    z-index: 600;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.06);
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    animation: ec-more-panel-in .15s ease;
}
@keyframes ec-more-panel-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.ec-hero-cats__item--more.is-open .ec-hero-cats__more-panel {
    display: block;
}
.ec-hero-cats__more-panel-header {
    padding: 10px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #f0f0f0;
}
.ec-hero-cats__more-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}
.ec-hero-cats__more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background .13s, color .13s;
}
.ec-hero-cats__more-link:hover {
    background: rgba(121, 63, 237, .07);
    color: var(--primary);
}

/* ── Sidebar fijo de íconos — MODE B (full_width_banner ON) ── */
/*
 * Barra lateral izquierda fija. En reposo muestra solo íconos (62px).
 * Al hacer hover se expande a 240px mostrando nombre + flecha, con
 * un fondo oscuro detrás (backdrop). Estilo tipo CPP Store.
 */
.ec-icon-sidebar {
    position: fixed;
    left: 0;
    top: var(--sidebar-top, 73px); /* ajustado dinámicamente por JS según nav bar */
    width: 62px;
    max-height: calc(100vh - var(--sidebar-top, 73px));
    background: #fff;
    border-radius: 0 14px 14px 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    z-index: 300;
    overflow: hidden;
    transition: width .28s cubic-bezier(.4,0,.2,1);
    padding-bottom: 10px;
}

.ec-icon-sidebar:hover {
    width: 240px;
}

/* Cabecera con ícono hamburgesa */
.ec-icon-sidebar__header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--primary);
    color: #fff;
    padding: 14px 0 14px 17px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    min-height: 54px;
    cursor: default;
}

.ec-icon-sidebar__bars {
    font-size: 17px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ec-icon-sidebar__title {
    opacity: 0;
    transition: opacity .18s ease .06s;
}
.ec-icon-sidebar:hover .ec-icon-sidebar__title {
    opacity: 1;
}

/* Lista de categorías */
.ec-icon-sidebar__list {
    list-style: none;
    padding: 4px 0 0;
    margin: 0;
}

.ec-icon-sidebar__item {
    position: relative;
}

.ec-icon-sidebar__link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 9px 0 9px 14px;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    border-bottom: 1px solid #f4f4f4;
}
.ec-icon-sidebar__item:last-child .ec-icon-sidebar__link {
    border-bottom: none;
}
.ec-icon-sidebar__link:hover {
    background: #f5f0ff;
    color: var(--primary);
}
.ec-icon-sidebar__link:hover .ec-icon-sidebar__icon-wrap {
    transform: scale(1.12);
    filter: brightness(1.15);
}

/* Contenedor del ícono — ancho fijo para que todo se alinee */
.ec-icon-sidebar__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    font-size: 19px;
    color: var(--primary);
    transition: transform .15s ease, filter .15s ease;
}

.ec-icon-sidebar__emoji {
    font-size: 21px;
    line-height: 1;
}

.ec-icon-sidebar__initial {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Nombre y flecha — se revelan al expandir */
.ec-icon-sidebar__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .16s ease .06s;
}
.ec-icon-sidebar__arrow {
    font-size: 10px;
    color: #9ca3af;
    margin-right: 14px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .16s ease .06s;
}
.ec-icon-sidebar:hover .ec-icon-sidebar__name,
.ec-icon-sidebar:hover .ec-icon-sidebar__arrow {
    opacity: 1;
}

/* Subcategorías: flyout a la derecha, vía position:fixed gestionado por JS */
.ec-icon-sidebar__sub {
    display: none; /* JS crea flyout externo */
}

/* ── Flyout de subcategorías (lo inserta JS fuera del sidebar) ── */
.ec-sidebar-flyout {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border: 1px solid rgba(0,0,0,.06);
    min-width: 190px;
    padding: 6px 0;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity .15s ease, transform .15s ease;
}
.ec-sidebar-flyout.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.ec-sidebar-flyout a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.ec-sidebar-flyout a:hover {
    background: #f5f0ff;
    color: var(--primary);
}

/* ── Backdrop oscuro al expandir el sidebar ── */
body.ec-sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 299;
    pointer-events: none;
    animation: ec-fade-in .22s ease;
}

@keyframes ec-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Mobile: ocultar sidebar fijo */
@media (max-width: 768px) {
    .ec-icon-sidebar {
        display: none;
    }
}

/* Slide content */
.home-slide {
    position: relative;
    overflow: hidden;
}

/* Banner overlay */
.ec-banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Banner content */
.ec-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    pointer-events: none;
}

/* Banner positions (3x3 grid) */
.ec-banner-content--top-left      { align-items: flex-start; justify-content: flex-start; text-align: left; }
.ec-banner-content--top-center    { align-items: center;     justify-content: flex-start; text-align: center; }
.ec-banner-content--top-right     { align-items: flex-end;   justify-content: flex-start; text-align: right; }
.ec-banner-content--middle-left   { align-items: flex-start; justify-content: center;     text-align: left; }
.ec-banner-content--middle-center { align-items: center;     justify-content: center;     text-align: center; }
.ec-banner-content--middle-right  { align-items: flex-end;   justify-content: center;     text-align: right; }
.ec-banner-content--bottom-left   { align-items: flex-start; justify-content: flex-end;   text-align: left; }
.ec-banner-content--bottom-center { align-items: center;     justify-content: flex-end;   text-align: center; }
.ec-banner-content--bottom-right  { align-items: flex-end;   justify-content: flex-end;   text-align: right; }

/* Banner title */
.ec-banner-title {
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
    max-width: 560px;
    pointer-events: auto;
}

/* Banner subtitle */
.ec-banner-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    margin: 0 0 22px;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    max-width: 480px;
    pointer-events: auto;
}

/* Banner CTA button */
.ec-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.2s ease;
    pointer-events: auto;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1.4;
}

.ec-banner-btn--primary {
    background: var(--primary-color, #793FED);
    color: #fff;
    border-color: var(--primary-color, #793FED);
}

.ec-banner-btn--primary:hover {
    background: transparent;
    color: var(--primary-color, #793FED);
}

.ec-banner-btn--secondary {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.ec-banner-btn--secondary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.ec-banner-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.85);
}

.ec-banner-btn--ghost:hover {
    background: #fff;
    color: #111;
}

/* Mobile banner image */
.slide-bg--mobile { display: none; }

/* Offers / Promotional Spots */
.offers {
    padding: 0;
}

.offers .image-offers-container {
    padding: 8px;
}

.offers .image-offers {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-slow);
}

.offers .image-offers:hover {
    transform: scale(1.02);
}

/* Header primary */
.ec-header-primary {
    background: #793FED;
    color: #fff;
}

.ec-header-primary h3,
.ec-header-primary h4,
.ec-header-primary small {
    color: #fff;
}


/* =================================================================
   16. FOOTER (ec-footer, WhatsApp float)
   ================================================================= */
.ec-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
}

.ec-footer__main {
    padding: 48px 0 32px;
}

.ec-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.ec-footer__heading {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.ec-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ec-footer__contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

.ec-footer__contact li a,
.ec-footer__contact li span {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.ec-footer__contact li a:hover {
    color: white;
}

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

.ec-footer__links li {
    margin-bottom: 10px;
}

.ec-footer__links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.ec-footer__links a:hover {
    color: white;
    padding-left: 4px;
}

/* Social */
.ec-footer__social {
    display: flex;
    gap: 10px;
}

.ec-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.ec-social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.ec-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.ec-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ec-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.ec-footer__payments {
    height: 24px;
    opacity: 0.5;
}

/* Floating WhatsApp */
.ec-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
}

.ec-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Hide old WhatsApp button */
.ws-flotante { display: none; }

/* Scroll Top Button */
#scroll-top {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: none;
    right: 24px;
    bottom: 88px;
    z-index: 998;
}

#scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* =================================================================
   17. MOBILE MENU
   ================================================================= */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-menu-container.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

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


/* =================================================================
   18. PAGINATION (ec-pagination wrapper)
   ================================================================= */
.ec-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 0 16px;
}

.ec-pagination__info {
    font-size: 13px;
    color: var(--text-muted);
}

.ec-pagination .pagination {
    margin: 0;
    gap: 4px;
}

.ec-pagination .page-item .page-link,
.ec-pagination .pagination li a,
.ec-pagination .pagination li span {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: all var(--transition);
    background: var(--bg-white);
}

.ec-pagination .page-item.active .page-link,
.ec-pagination .pagination li.active a,
.ec-pagination .pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.ec-pagination .page-item .page-link:hover,
.ec-pagination .pagination li a:hover {
    background: var(--bg-hover);
    border-color: var(--border);
    color: var(--text-primary);
}

.ec-pagination nav { width: 100%; }

.ec-pagination nav > ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}


/* =================================================================
   19. RATING COMPONENT
   ================================================================= */
.rating {
    --uiRatingSize: var(--ratingSize, 20px);
    --uiRatingColor: var(--ratingColor, #eee);
    --uiRatingColorActive: var(--ratingColorActive, #ffcc00);
    --uiRatingStroke: var(--ratingStroke, #222);
    --uiRatingStrokeWidth: var(--ratingStrokeWidth, 1px);

    --ratingSize: 30px;
    --ratingColor: #eee;
    --ratingColorActive: #ffcc00;

    display: flex;
    font-size: var(--uiRatingSize);
    color: var(--uiRatingColor);
    position: relative;
}

.rating__control {
    position: absolute;
    left: -9999px;
}

.rating__control:nth-of-type(1):focus ~ .rating__item:nth-of-type(1):before,
.rating__control:nth-of-type(2):focus ~ .rating__item:nth-of-type(2):before,
.rating__control:nth-of-type(3):focus ~ .rating__item:nth-of-type(3):before,
.rating__control:nth-of-type(4):focus ~ .rating__item:nth-of-type(4):before,
.rating__control:nth-of-type(5):focus ~ .rating__item:nth-of-type(5):before {
    content: "";
    box-shadow: 0 0 0 4px var(--uiRatingColorActive);
    position: absolute;
    top: -.15em;
    right: 0;
    bottom: -.15em;
    left: 0;
    z-index: -1;
}

.rating__item {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    padding-left: .25em;
    padding-right: .25em;
}

.rating__star {
    display: block;
    width: 3.5em;
    height: 3.5em;
    fill: currentColor;
    stroke: var(--uiRatingStroke);
    stroke-width: var(--uiRatingStrokeWidth);
}

.rating__label {
    position: absolute;
    top: 0;
    left: -9999px;
}

.rating:hover,
.rating__control:nth-of-type(1):checked ~ .rating__item:nth-of-type(1),
.rating__control:nth-of-type(2):checked ~ .rating__item:nth-of-type(-n+2),
.rating__control:nth-of-type(3):checked ~ .rating__item:nth-of-type(-n+3),
.rating__control:nth-of-type(4):checked ~ .rating__item:nth-of-type(-n+4),
.rating__control:nth-of-type(5):checked ~ .rating__item:nth-of-type(-n+5) {
    color: var(--uiRatingColorActive);
}

.rating__item:hover ~ .rating__item {
    color: var(--uiRatingColor);
}


/* =================================================================
   20. ANIMATIONS & TRANSITIONS
   ================================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

/* Banner image effects */
.ec-effect-zoom .slide-bg,
.ec-effect-zoom .slide-bg--mobile {
    animation: ecZoomIn 9s ease-out both;
    transform-origin: center center;
}

@keyframes ecZoomIn {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.ec-effect-kenburns .slide-bg,
.ec-effect-kenburns .slide-bg--mobile {
    animation: ecKenBurns 12s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes ecKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    50%  { transform: scale(1.05) translate(-1.5%, -1%); }
    100% { transform: scale(1.08) translate(1%, 0.5%); }
}

/* Fade transition for Owl */
.owl-carousel .owl-item .home-slide { backface-visibility: hidden; }


/* =================================================================
   21. SWIPER CAROUSEL OVERRIDES
   ================================================================= */
.swiper-pagination-bullet-active {
    background: var(--primary);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

/* ── 21A. SWIPER BANNER (FactuStore) ── */
.ec-banner-wrap {
    position: relative;
    overflow: visible;
}

/* ── Toggle OFF: banner tipo tarjeta, centrado dentro del container ── */
.ec-banner-wrap:not(.ec-banner-wrap--full) {
    max-width: 1400px;
    margin: 12px auto 16px;
    padding: 0 24px;
}
.ec-banner-wrap:not(.ec-banner-wrap--full) .ec-banner-swiper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

/* ── Toggle ON: verdadero full viewport — rompe el container ── */
.ec-banner-wrap--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
}
.ec-banner-wrap--full .ec-banner-swiper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.ec-banner-swiper,
.ec-banner-swiper .swiper-slide {
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.ec-banner-slide {
    position: relative;
}
.ec-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 6s ease;
}
.ec-slide-bg--mobile {
    display: none;
}

/* Swiper banner pagination — numbered bullets */
.ec-banner-pagination {
    position: absolute !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    width: auto !important;
}
.ec-banner-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.6);
    opacity: 1;
    font-size: 10px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    color: rgba(0,0,0,0.5);
    margin: 0 !important;
    transition: all var(--transition);
    cursor: pointer;
}
.ec-banner-pagination .swiper-pagination-bullet-active {
    background: white;
    color: #111;
    width: 32px;
    border-radius: 12px;
}

/* Swiper banner nav buttons */
.ec-banner-wrap .banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    padding: 0;
}
.ec-banner-wrap .banner-nav-btn:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}
.ec-banner-wrap .banner-nav-btn svg {
    width: 24px;
    height: 24px;
}
.ec-banner-wrap .banner-nav-prev { left: 20px; }
.ec-banner-wrap .banner-nav-next { right: 20px; }

/* Restart zoom-in effect on active slide */
.ec-banner-swiper .swiper-slide-active .ec-slide-bg {
    animation: ec-zoom-in 8s ease forwards;
}

/* ── 21B. SWIPER GALLERY (product detail) ── */
.ec-gallery__main-swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.ec-gallery__main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
}
.ec-gallery__main-swiper .ec-gallery__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}
.ec-gallery__thumbs-swiper {
    margin-top: 12px;
}
.ec-gallery__thumbs-swiper .swiper-slide {
    cursor: pointer;
    opacity: 0.55;
    transition: opacity var(--transition);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
}
.ec-gallery__thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary);
}
.ec-gallery__thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 21C. SWIPER RELATED PRODUCTS ── */
.ec-related-section {
    margin-top: 48px;
    padding-bottom: 40px;
}
.ec-related-swiper {
    padding-bottom: 40px !important;
}
.ec-related-swiper .swiper-slide {
    height: auto;
}
.ec-related-swiper .ec-card {
    height: 100%;
}
.ec-related-swiper .ec-card__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
}
.ec-related-swiper .ec-card__add-btn:hover {
    background: var(--primary-dark, #5f2ec4);
    color: #fff;
}
.ec-related-pagination {
    bottom: 4px !important;
}


/* =================================================================
   22. RESPONSIVE — Tablet (max-width: 991px)
   ================================================================= */
@media (max-width: 991px) {
    .ec-header__inner {
        gap: 12px;
    }

    .ec-header__search {
        max-width: none;
        flex: 1;
    }

    .ec-header__action--whatsapp { display: none; }
    .ec-header__action-label { display: none; }

    .ec-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .ec-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .ec-product-info {
        padding-left: 0;
        margin-top: 24px;
    }

    .ec-product-info__title {
        font-size: 24px;
    }

    .ec-product-info__price {
        font-size: 28px;
    }

    .ec-checkout__body {
        grid-template-columns: 1fr;
    }

    .ec-checkout__sidebar {
        position: static;
    }
}


/* =================================================================
   23. RESPONSIVE — Mobile (max-width: 767px)
   ================================================================= */
@media (max-width: 767px) {
    .ec-main {
        padding-top: 72px;
    }

    .ec-container {
        padding: 0 16px;
    }

    .ec-header__inner {
        height: 64px;
        gap: 8px;
        padding: 0 16px;
    }

    .ec-header__logo img {
        height: 32px;
    }

    .ec-header__hamburger {
        display: flex;
    }

    .ec-header__search {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        padding: 8px 16px 12px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        max-width: none;
        z-index: 999;
    }

    .ec-main {
        padding-top: 128px;
    }

    .ec-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ec-card__body {
        padding: 12px;
    }

    .ec-card__title {
        font-size: 13px;
    }

    .ec-card__price {
        font-size: 15px;
    }

    .ec-card__add-btn {
        width: 34px;
        height: 34px;
    }

    .ec-card__add-btn svg {
        width: 16px;
        height: 16px;
    }

    .ec-card__quickview {
        display: none;
    }

    .ec-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ec-products-header__title {
        font-size: 20px;
    }

    .ec-products-header__sort {
        width: 100%;
    }

    .ec-products-header__sort select {
        flex: 1;
    }

    .ec-categories__scroll {
        gap: 8px;
    }

    .ec-category-chip {
        padding: 8px 14px 8px 8px;
    }

    .ec-category-chip__img {
        width: 28px;
        height: 28px;
    }

    .ec-category-chip__name {
        font-size: 12px;
    }

    /* Product Detail */
    .ec-product-detail {
        padding: 20px 0;
    }

    .ec-product-info__title {
        font-size: 22px;
    }

    .ec-product-info__price {
        font-size: 26px;
    }

    .ec-product-info__actions {
        flex-direction: column;
    }

    .ec-product-info__actions .ec-btn {
        width: 100%;
    }

    .ec-trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .ec-gallery__thumbs {
        gap: 6px;
    }

    .ec-gallery__thumb {
        width: 56px;
        height: 56px;
    }

    /* Swiper banner — mobile */
    .ec-banner-swiper,
    .ec-banner-swiper .swiper-slide {
        min-height: 260px;
    }
    .ec-slide-bg--has-mobile { display: none; }
    .ec-slide-bg--mobile     { display: block; }
    .ec-banner-wrap .banner-nav-btn {
        width: 36px;
        height: 36px;
    }
    .ec-banner-wrap .banner-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    .ec-banner-wrap .banner-nav-prev { left: 10px; }
    .ec-banner-wrap .banner-nav-next { right: 10px; }

    /* Swiper gallery thumbs — mobile */
    .ec-gallery__thumbs-swiper .swiper-slide {
        width: 56px !important;
        height: 56px;
    }

    /* Tabs */
    .ec-tabs__nav .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Footer */
    .ec-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ec-footer__main {
        padding: 32px 0 24px;
    }

    .ec-pagination {
        flex-direction: column;
        align-items: center;
    }

    /* Hero */
    .ec-hero .home-slide {
        min-height: 220px;
    }

    .ec-hero .banner-nav-btn {
        width: 36px;
        height: 36px;
    }

    .ec-hero .banner-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .ec-hero .banner-nav-prev { left: 10px; }
    .ec-hero .banner-nav-next { right: 10px; }

    /* Hero con panel de categorías — mobile */
    .ec-hero--with-cats {
        grid-template-columns: 1fr;
        padding: 0;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
    .ec-hero-cats {
        display: none;
    }
    .ec-hero--with-cats .ec-banner-wrap .ec-banner-swiper {
        min-height: 260px;
    }

    /* Auth Modal */
    .contenedor-form {
        flex-direction: column;
        min-height: auto;
    }

    .first-column,
    .second-column {
        width: 100%;
        min-width: 100%;
    }

    .terceary-column {
        width: 100%;
        min-width: 100%;
        padding: 24px;
        order: -1;
    }

    .contenedor-form.active .second-column {
        order: 2;
    }

    .ec-auth__form {
        padding: 24px 20px;
    }

    /* Modals */
    .ec-modal__footer {
        flex-direction: column;
    }

    .ec-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    /* Checkout */
    .ec-checkout__steps { padding: 20px 0 28px; }

    .ec-step__label { font-size: 11px; }

    .ec-step__number { width: 36px; height: 36px; font-size: 14px; }

    .ec-step__line { min-width: 30px; }

    .ec-cart-section { padding: 16px; }

    .ec-cart-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
    }

    .ec-cart-item__price { display: none; }

    .ec-cart-item__price-mobile { display: block; }

    .ec-cart-item__info {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    .ec-cart-item__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .ec-cart-item__qty {
        grid-column: 2;
        grid-row: 2;
    }

    .ec-cart-item__subtotal {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    .ec-cart-item__image {
        width: 64px;
        height: 64px;
        grid-row: 1 / 3;
    }

    .ec-form-grid,
    .ec-form-grid--2,
    .ec-form-grid--3 {
        grid-template-columns: 1fr;
    }

    .ec-shipping-toggle {
        grid-template-columns: 1fr;
    }

    .ec-comprobante-toggle {
        flex-direction: column;
    }

    .ec-form-section { padding: 20px 16px; }

    .ec-summary { padding: 20px 16px; }

    .ec-checkout__nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .ec-checkout__nav .ec-btn { width: 100%; justify-content: center; }

    .ec-payment-option { padding: 14px 16px; flex-wrap: wrap; }

    .ec-payment-option__logos { display: none; }

    .ec-modal { margin: 10px; max-height: 95vh; }

    .ec-modal__header,
    .ec-modal__body,
    .ec-modal__footer { padding-left: 16px; padding-right: 16px; }

    /* Banner content */
    .ec-banner-content {
        padding: 24px 20px;
    }

    .ec-banner-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .ec-banner-subtitle {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .ec-banner-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Mobile banner image */
    .slide-bg--mobile    { display: block; }
    .slide-bg--has-mobile { display: none; }

    /* Sidebar */
    .ec-layout-sidebar {
        grid-template-columns: 1fr;
    }

    .ec-layout-sidebar__aside {
        display: none;
    }
}

/* One-step checkout mobile */
@media (max-width: 768px) {
    .ec-checkout--one-step .ec-checkout__body:last-of-type {
        grid-template-columns: 1fr;
    }
}


/* =================================================================
   24. RESPONSIVE — Small Mobile (max-width: 576px)
   ================================================================= */
@media (max-width: 576px) {
    .ec-subcat-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }

    .ec-cat-banner {
        max-height: 160px;
    }

    .ec-cat-banner__img {
        max-height: 160px;
    }

    .ec-cat-banner__overlay {
        padding: 16px;
    }

    .ec-transfer-account {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ec-transfer-account__logo {
        width: 32px;
        height: 32px;
    }

    .ec-transfer-account__currency {
        margin-left: auto;
    }

    .ec-yape-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ec-yape-qr {
        width: 160px;
        height: 160px;
    }

    .ec-yape-data p strong {
        display: block;
        min-width: auto;
    }
}


/* =================================================================
   25. RESPONSIVE — Very Small Mobile (max-width: 400px)
   ================================================================= */
@media (max-width: 400px) {
    .ec-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ec-card__add-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        height: 36px;
    }

    .ec-card__add-btn svg {
        margin-right: 4px;
    }
}


/* =================================================================
   26. PRINT STYLES
   ================================================================= */
@media print {
    .ec-header,
    .ec-footer,
    .ec-whatsapp-float,
    #scroll-top,
    .mobile-menu-container,
    .mobile-menu-overlay {
        display: none;
    }

    .ec-main {
        padding-top: 0;
    }

    .ec-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ══════════════════════════════════════════════════════
   22. DOCUMENT LIST / ORDER LIST
   Páginas: /ecommerce/documents, /ecommerce/orders
   ══════════════════════════════════════════════════════ */

/* Wrapper principal de la tabla */
.cart-table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}

/* Barra de filtros */
.dropdown-table {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Tabla de comprobantes/pedidos */
.table-cart { width: 100%; }

.product-row { transition: background 0.12s; }
.product-row:hover { background: var(--bg-page); }

.product-col { min-width: 120px; }
.price-col   { min-width: 80px;  text-align: right; }
.qty-col     { min-width: 80px;  text-align: center; }

/* Dropdown de filtros */
.dropdown-menu-table {
    min-width: 180px;
    padding: 4px 0;
    z-index: 1050;
}

.dropdown-menu-table li { list-style: none; }

.dropdown-menu-table li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-base);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-menu-table li a:hover {
    background: var(--bg-page);
    color: var(--primary);
}

/* Botón de búsqueda (lupa) en filtros */
.btn-filter-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}

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

/* Estado de carga de tabla */
.table-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: filtros en columna */
@media (max-width: 640px) {
    .dropdown-table { flex-direction: column; align-items: flex-start; }
    .dropdown-table .d-flex { flex-wrap: wrap; gap: 8px; }
    .cart-table-container { padding: 12px; }
    .price-col, .qty-col { display: none; }
}

/* =================================================================
   DARK MODE (ec-dark class on <html>)
   ================================================================= */
.ec-dark {
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #374151;
    --border-light: #1f2937;
    --bg-white: #111827;
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #1f2937;
    --bg-secondary: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
}
.ec-dark body,
.ec-dark .ec-body {
    background: var(--bg-page);
    color: var(--text-primary);
}
.ec-dark .ec-header,
.ec-dark .ec-top-nav,
.ec-dark .ec-footer {
    background: #111827;
    border-color: var(--border);
}
.ec-dark .ec-header--scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.ec-dark .ec-search__input,
.ec-dark .ec-search {
    background: #1e293b;
    border-color: #374151;
    color: var(--text-primary);
}
.ec-dark .ec-search__input::placeholder { color: #6b7280; }
.ec-dark .ec-search__results {
    background: #1e293b;
    border-color: #374151;
}
.ec-dark .ec-search__result:hover { background: #374151; }
.ec-dark .ec-search__result-name { color: var(--text-primary); }
.ec-dark .ec-card {
    background: var(--bg-card);
    border-color: var(--border);
}
.ec-dark .ec-card__name { color: var(--text-primary); }
.ec-dark .ec-card__body { background: var(--bg-card); }
.ec-dark .ec-card__image-wrapper { background: #1e293b; }
.ec-dark .ec-rel-card { background: #1e293b; border-color: #334155; }
.ec-dark .ec-rel-card:hover { border-color: #793FED; }
.ec-dark .ec-rel-card__image-wrap { background: #0f172a; }
.ec-dark .ec-rel-card__name { color: #f1f5f9; }
.ec-dark .ec-rel-card__price { color: #a78bfa; }
.ec-dark .ec-related-products { border-top-color: #334155; }
.ec-dark .ec-related-products__title { color: #64748b; }
.ec-dark .ec-product-detail { background: var(--bg-page); }
.ec-dark .ec-product-info__title { color: var(--text-primary); }
.ec-dark .ec-product-info__desc { color: var(--text-secondary); }
.ec-dark .ec-product-tabs { border-color: var(--border); }
.ec-dark .nav-tabs { border-color: var(--border); background: var(--bg-card); }
.ec-dark .nav-tabs .nav-link { color: var(--text-secondary); }
.ec-dark .nav-tabs .nav-link.active { background: var(--bg-page); color: var(--primary); }
.ec-dark .ec-tab-body { color: var(--text-secondary); }
.ec-dark .ec-section { background: transparent; }
.ec-dark .ec-filter-bar__inner { background: #1e293b; border-color: var(--border); }
.ec-dark .ec-filter-bar__input { background: #111827; border-color: var(--border); color: var(--text-primary); }
.ec-dark .ec-filter-bar__btn--clear { background: #1f2937; color: #9ca3af; border-color: var(--border); }
.ec-dark .ec-products-header__title { color: var(--text-primary); }
.ec-dark .ec-products-header__sort select { background-color: #1e293b; border-color: var(--border); color: var(--text-primary); }
.ec-dark .ec-delivery-time { background: #064e3b; border-color: #065f46; color: #6ee7b7; }
.ec-dark .mobile-menu-container { background: #111827; }
.ec-dark .ec-announcement { border-bottom-color: rgba(255,255,255,0.1); }
.ec-dark .ec-top-nav--white { background: #111827; }
.ec-dark .ec-top-nav__link { color: #d1d5db; }
.ec-dark .ec-top-nav__link:hover { color: var(--primary); }
.ec-dark .ec-footer { color: var(--text-secondary); }
/* duplicado eliminado — .ec-dark .ec-related-products__title ya definido arriba */
.ec-dark .ec-welcome-popup__dialog { box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ec-dark .ec-welcome-popup__title { color: var(--text-primary); }
.ec-dark .ec-welcome-popup__text { color: var(--text-secondary); }

/* Dark mode toggle button */
.ec-header__action--dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: color .15s, background .15s;
}
.ec-header__action--dark-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ── Skeleton shimmer para imágenes de productos ── */
@keyframes ec-skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.ec-img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: ec-skeleton-shimmer 1.4s ease-in-out infinite;
    color: transparent;
}
html.dark .ec-img-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 400px 100%;
}

/* ── Footer Map Section ── */
.ec-footer__map-section {
    background: var(--bg-secondary, #f9fafb);
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding: 32px 0;
}
.ec-footer__map-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 640px) {
    .ec-footer__map-inner { grid-template-columns: 1fr; }
}
.ec-footer__map-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
}
.ec-footer__map-address {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 8px;
    line-height: 1.5;
}
.ec-footer__map-phone {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ec-footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary, #793FED);
    text-decoration: none;
    transition: opacity .15s;
}
.ec-footer__map-link:hover { opacity: .75; }
.ec-footer__map-frame iframe {
    border-radius: 12px;
    display: block;
}
html.dark .ec-footer__map-section {
    background: #1a1a2e;
    border-top-color: #2d2d44;
}

/* ── Newsletter widget en footer ── */
.ec-footer__newsletter-sub { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin: 0 0 12px; }
.ec-footer__newsletter { margin-top: 4px; }
.ec-footer__nl-input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}
.ec-footer__nl-input::placeholder { color: rgba(255,255,255,0.4); }
.ec-footer__nl-input:focus { border-color: rgba(255,255,255,0.5); }
.ec-footer__nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    border: none;
    background: var(--ec-color, #793FED);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.ec-footer__nl-btn:hover { opacity: 0.88; }
.ec-footer__nl-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 0;
}

/* ── Botón de variantes en listado de productos ── */
/* Para productos con tallas/colores: redirige al detalle en vez de agregar directo */
.ec-card__add-btn--variants {
    background: var(--primary-light, #f3eeff);
    color: var(--primary);
}
.ec-card__add-btn--variants:hover {
    background: var(--primary);
    color: white;
}

/* ── Variante seleccionada en mini-carrito dropdown ── */
.ec-mini-cart-item__variant {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
