:root {
    --bg: #f7f0e4;
    --bg-soft: #fbf7ef;
    --surface: rgba(255, 250, 243, 0.78);
    --surface-strong: rgba(255, 252, 247, 0.92);
    --surface-dark: #16231d;
    --text: #1d261f;
    --text-soft: rgba(29, 38, 31, 0.72);
    --line: rgba(57, 66, 57, 0.12);
    --green: #1e6a43;
    --green-deep: #123d2d;
    --red: #b64035;
    --gold: #c69a52;
    --shadow: 0 22px 60px rgba(43, 35, 26, 0.12);
    --shadow-soft: 0 18px 44px rgba(28, 27, 20, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(198, 154, 82, 0.2), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(30, 106, 67, 0.16), transparent 28%),
        linear-gradient(180deg, #f8f2e7 0%, #f7f0e4 28%, #f3eadb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.has-install-banner {
    padding-bottom: 92px;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    z-index: -2;
    border-radius: 999px;
    filter: blur(28px);
    pointer-events: none;
}

body::before {
    top: 88px;
    left: -140px;
    width: 320px;
    height: 320px;
    background: rgba(182, 64, 53, 0.12);
}

body::after {
    right: -120px;
    bottom: 120px;
    width: 280px;
    height: 280px;
    background: rgba(30, 106, 67, 0.12);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.install-banner[hidden] {
    display: none !important;
}

.install-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(57, 66, 57, 0.1);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 18px 34px rgba(28, 27, 20, 0.12);
    backdrop-filter: blur(14px);
}

.install-banner-copy {
    display: grid;
    gap: 4px;
}

.install-banner-title {
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.install-banner-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-banner-button {
    min-height: 40px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    box-shadow: 0 12px 22px rgba(18, 61, 45, 0.18);
}

.install-banner-dismiss {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(57, 66, 57, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--green-deep);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 7px 0;
    backdrop-filter: blur(14px);
    background: rgba(251, 247, 239, 0.97);
    border-bottom: 1px solid rgba(57, 66, 57, 0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.site-header .brand img {
    width: min(140px, 22vw);
    min-width: 90px;
}

.site-header .brand-copy-top {
    font-size: clamp(0.44rem, 0.85vw, 0.82rem);
}
.site-header .brand-copy-bottom {
    font-size: clamp(0.34rem, 0.55vw, 0.58rem);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.brand img {
    width: min(140px, 22vw);
    min-width: 90px;
    height: auto;
}

.brand-copy {
    display: grid;
    gap: 0;
    align-self: flex-end;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-copy-top,
.brand-copy-bottom {
    font-weight: 500;
}

.brand-copy-top {
    color: #ef2f2f;
    font-size: clamp(0.44rem, 0.85vw, 0.82rem);
    letter-spacing: 0.16em;
}

.brand-copy-bottom {
    color: var(--green);
    font-size: clamp(0.34rem, 0.55vw, 0.58rem);
    letter-spacing: 0.2em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(30, 106, 67, 0.08);
    color: var(--green-deep);
    transform: translateY(-1px);
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fdf8f1;
    box-shadow: 0 14px 28px rgba(18, 61, 45, 0.18);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 251, 245, 0.84);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--green-deep);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 252, 247, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-section .section-label,
.selector-card .section-label,
.location-card .section-label,
.branch-card .section-label,
.branch-map-header .section-label,
.section-heading .section-label,
.cross-card .section-label {
    background: rgba(30, 106, 67, 0.08);
    border-color: rgba(30, 106, 67, 0.14);
    color: var(--green);
}

.selector-card .section-label {
    background: linear-gradient(180deg, var(--green), var(--green-deep));
    border-color: rgba(18, 61, 45, 0.28);
    color: #fffdf8;
    box-shadow: 0 10px 22px rgba(18, 61, 45, 0.12);
}

.hero {
    padding: 8px 0 0;
}

.hero-slider {
    position: relative;
    min-height: clamp(420px, 58vh, 560px);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-media,
.branch-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
}

.hero-slide.is-active .hero-slide-media {
    animation: heroZoom 5.8s ease forwards;
}

.hero-content,
.branch-hero-content {
    position: relative;
    z-index: 1;
    min-height: clamp(420px, 58vh, 560px);
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 58px;
}

.hero-content--with-visual {
    justify-content: space-between;
    gap: 32px;
}

.hero-visual {
    flex-shrink: 0;
    width: clamp(180px, 28vw, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: 0 20px 48px rgba(0,0,0,0.32);
    max-height: 380px;
}

.hero-copy {
    width: min(100%, 560px);
    color: #fff7ef;
}

.hero-copy h1,
.hero-copy h2,
.story-copy h2,
.section-heading h2,
.selector-card h2,
.location-card h3,
.branch-hero-content h1,
.branch-card h2,
.cross-card h2,
.footer-links-block h2,
.footer-locations-block h2 {
    margin: 0;
    font-family: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 16ch;
    font-size: clamp(1.72rem, 3.6vw, 2.9rem);
    margin-top: 12px;
}

.hero-copy h2 {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.2;
    margin-top: 10px;
    color: rgba(255, 247, 239, 0.88);
}

.hero-copy p,
.branch-hero-content p {
    max-width: 52ch;
    margin: 12px 0 0;
    color: rgba(255, 247, 239, 0.82);
    font-size: 14px;
    line-height: 1.58;
}

.hero-actions,
.selector-actions,
.branch-actions,
.branch-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--red), #d56b52);
    color: #fff8f0;
    box-shadow: 0 18px 34px rgba(182, 64, 53, 0.24);
}

.button-secondary {
    border-color: rgba(255, 248, 240, 0.28);
    background: rgba(255, 250, 243, 0.12);
    color: #fff8f0;
    backdrop-filter: blur(10px);
}

.button-secondary-dark {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    box-shadow: 0 16px 28px rgba(18, 61, 45, 0.2);
}

.button-outline {
    border-color: rgba(30, 106, 67, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--green-deep);
}

.button-whatsapp {
    gap: 10px;
    background: linear-gradient(180deg, #dfe8d9, #cfddc8);
    border-color: rgba(30, 106, 67, 0.16);
    color: var(--green-deep);
    box-shadow: 0 12px 22px rgba(30, 106, 67, 0.1);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
    background: linear-gradient(180deg, #d5e2d0, #c6d8bf);
    box-shadow: 0 14px 24px rgba(30, 106, 67, 0.14);
}

.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.hero-progress {
    position: absolute;
    right: 28px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 54px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.25);
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #fff6ee, #d3ab6d);
}

.selector-section,
.story-section,
.locations-section,
.branch-products-section,
.branch-content,
.branch-map-section,
.branch-cross-links {
    padding: 25px 0;
}

.selector-section {
    position: relative;
    z-index: 3;
    margin-top: -10px;
    padding-top: 0;
    padding-bottom: 25px;
}

.selector-grid,
.locations-grid,
.branch-grid,
.branch-products-grid,
.branch-cross-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.selector-grid,
.locations-grid,
.branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.branch-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selector-card,
.story-panel,
.location-card,
.branch-card,
.branch-products-shell,
.cross-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(57, 66, 57, 0.1);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 249, 241, 0.86));
    box-shadow: var(--shadow-soft);
}

.selector-card {
    backdrop-filter: blur(14px);
}

.selector-card::before,
.story-panel::before,
.location-card::before,
.branch-card::before,
.branch-products-shell::before,
.cross-card::before {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    background: url('../images/pasta-pattern.svg') no-repeat center/contain;
    opacity: 0.1;
    pointer-events: none;
}

.selector-card h2,
.location-card h3,
.branch-card h2,
.cross-card h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: var(--green-deep);
}

.selector-card p,
.location-card p,
.story-copy p,
.branch-card p,
.branch-products-head p,
.cross-card p,
.footer-brand-block p {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.76;
}

.selector-wa-fab {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,211,102,0.35);
    flex-shrink: 0;
    z-index: 1;
}

.selector-wa-fab svg {
    width: 18px;
    height: 18px;
}

.selector-address {
    width: 100%;
}

.selector-address-line {
    display: inline;
}

.selector-address-locality {
    display: inline;
}

.selector-address-line::after {
    content: ' · ';
}

.selector-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.selector-actions .button {
    width: 100%;
    min-height: 46px;
}

.selector-actions .button-primary {
    background: linear-gradient(180deg, #d4664f, #cb5642);
    box-shadow: 0 14px 24px rgba(203, 86, 66, 0.18);
}

.selector-actions .button-whatsapp {
    justify-content: center;
}

.branch-products-head h2,
.product-card h3 {
    margin: 0;
    font-family: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.branch-products-head h2 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--green-deep);
}

.branch-products-grid {
    margin-top: 18px;
}

.product-placeholder-card {
    min-height: 150px;
    border-radius: 22px;
    border: 1px dashed rgba(30, 106, 67, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(249, 243, 233, 0.34));
}

.product-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 236, 0.86));
    box-shadow: 0 16px 36px rgba(43, 35, 26, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: auto -54px -70px auto;
    width: 150px;
    height: 150px;
    background: url('../images/pasta-pattern.svg') no-repeat center/contain;
    opacity: 0.08;
    pointer-events: none;
}

.product-card-tag {
    display: inline-flex;
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 106, 67, 0.08);
    border: 1px solid rgba(30, 106, 67, 0.14);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 1.62rem;
    color: var(--green-deep);
}

.product-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.68;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px;
}

.product-card-note {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(182, 64, 53, 0.1);
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 30px;
    align-items: start;
}

.story-copy h2,
.section-heading h2 {
    margin-top: 20px;
    font-size: clamp(2.4rem, 4.2vw, 3.7rem);
    color: var(--green-deep);
}

.branch-map-header h2 {
    margin-top: 12px;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    color: var(--green-deep);
}

.story-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.story-highlight-item {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    background: rgba(30, 106, 67, 0.06);
    border: 1px solid rgba(30, 106, 67, 0.1);
    text-align: center;
}

.story-highlight-item strong {
    display: block;
    color: var(--red);
    font-size: 2rem;
    font-weight: 800;
}

.story-highlight-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-quote {
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(182, 64, 53, 0.9), rgba(198, 154, 82, 0.84));
    color: #fff7ef;
    box-shadow: 0 18px 42px rgba(182, 64, 53, 0.18);
}

.story-quote p {
    margin: 0;
    color: inherit;
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading p {
    width: min(100%, 70ch);
    margin: 18px auto 0;
    color: var(--text-soft);
    line-height: 1.76;
}

.location-card-head {
    margin-bottom: 22px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.contact-item span {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-item strong,
.contact-item strong a {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.map-shell {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 34px rgba(43, 35, 26, 0.08);
}

.map-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(57, 66, 57, 0.08);
}

.map-link {
    font-size: 14px;
    font-weight: 800;
    color: var(--green);
}

.map-link-secondary {
    color: var(--red);
}

.map-link-cta {
    display: inline-block;
    background: var(--green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 99px;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.18s;
}
.map-link-cta:hover {
    background: var(--green-dark, #1a4a2e);
}

.map-shell iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.map-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(57, 66, 57, 0.08);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 245, 236, 0.92));
}

.map-rating-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.map-rating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe8a3, #ffd766);
    color: #8d5c00;
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(213, 154, 47, 0.22);
}

.map-rating-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.map-rating-score-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.map-rating-badge strong {
    color: var(--green-deep);
    font-size: 1.65rem;
    font-weight: 800;
}

.map-rating-score-row span {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.map-rating-category,
.map-rating-status {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.map-rating-category {
    color: var(--green-deep);
    font-weight: 700;
}

.map-status-open {
    color: #1f9d55;
    font-weight: 800;
}

.map-status-separator {
    display: inline-block;
    margin: 0 6px;
    color: rgba(29, 38, 31, 0.28);
}

.map-status-detail {
    color: var(--text-soft);
}

.map-rating-link {
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    align-self: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(182, 64, 53, 0.08);
}

.site-footer {
    padding-top: 26px;
    border-top: 1px solid rgba(57, 66, 57, 0.08);
    background: linear-gradient(180deg, rgba(22, 35, 29, 0.98), rgba(13, 22, 18, 1));
    color: rgba(255, 248, 240, 0.86);
}

.footer-grid {
    grid-template-columns: 1.2fr 0.7fr 1fr;
    padding-bottom: 34px;
}

.footer-logo {
    width: min(240px, 82%);
    filter: brightness(0) saturate(100%) invert(1);
    opacity: 0.96;
}

.footer-brand-block,
.footer-links-block,
.footer-locations-block {
    display: grid;
    gap: 14px;
    align-content: start;
}

.footer-links-block h2,
.footer-locations-block h2 {
    font-size: 2.2rem;
    color: #fff4e6;
}

.footer-links-block a,
.footer-social,
.footer-location-item a,
.footer-location-item span,
.footer-location-item strong {
    color: rgba(255, 248, 240, 0.76);
}

.footer-location-item {
    display: grid;
    gap: 4px;
}

.footer-copy {
    border-top: 1px solid rgba(255, 248, 240, 0.1);
}

.footer-copy-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 22px;
    color: rgba(255, 248, 240, 0.56);
    font-size: 13px;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 248, 240, 0.76);
    font-weight: 700;
}

.footer-credit-logo {
    width: auto;
    height: 18px;
    object-fit: contain;
    display: block;
}

.branch-header {
    padding: 26px 0 8px;
}

.branch-header-inner {
    display: block;
}

.branch-header-title {
    margin: 0;
    font-family: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--green-deep);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 247, 239, 0.84);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.branch-back-link {
    color: var(--green-deep);
}

.branch-hero-content h1 {
    margin-top: 20px;
    font-size: clamp(3.5rem, 8vw, 6.2rem);
    color: #fff8f0;
}

.branch-map-wrapper {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 249, 241, 0.88));
    border: 1px solid rgba(57, 66, 57, 0.08);
    box-shadow: var(--shadow-soft);
}

.cross-card {
    display: grid;
    align-content: start;
}

.cross-card .button {
    margin-top: 22px;
    justify-self: start;
}

.branch-mini-links a {
    color: var(--red);
    font-weight: 800;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 980px) {
    .brand {
        gap: 10px;
    }

    .brand img {
        width: min(215px, 40vw);
    }

    .brand-copy-top {
        font-size: clamp(0.56rem, 1vw, 0.82rem);
        letter-spacing: 0.12em;
    }

    .brand-copy-bottom {
        font-size: clamp(0.4rem, 0.64vw, 0.62rem);
        letter-spacing: 0.13em;
    }

    .selector-grid,
    .locations-grid,
    .branch-grid,
    .branch-products-grid,
    .story-grid,
    .footer-grid,
    .branch-cross-grid {
        grid-template-columns: 1fr;
    }

    .footer-copy-row {
        flex-direction: column;
    }
}

@media (max-width: 840px) {
    .header-row {
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        align-items: center;
        order: 1;
    }

    .brand img {
        width: min(160px, 38vw);
    }

    .header-shop-actions {
        order: 2;
        flex-shrink: 0;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        order: 3;
        align-self: center;
        margin-left: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        display: grid;
        padding: 18px;
        border-radius: var(--radius-lg);
        background: rgba(255, 252, 247, 0.96);
        border: 1px solid rgba(57, 66, 57, 0.08);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .nav-cta {
        text-align: center;
    }

    .brand-copy-bottom {
        font-size: 0.54rem;
        letter-spacing: 0.16em;
    }

    .hero-content,
    .branch-hero-content {
        min-height: clamp(300px, 42vh, 380px);
        padding-top: 34px;
        padding-bottom: 62px;
    }

    .hero-copy h1 {
        font-size: clamp(1.58rem, 3.4vw, 2.28rem);
        max-width: 11ch;
    }

    .selector-section {
        margin-top: 0;
        padding-top: 18px;
    }

    .hero-progress {
        left: 16px;
        right: 16px;
        bottom: 20px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 10px 0;
    }

    body.has-install-banner {
        padding-bottom: 112px;
    }

    .install-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .install-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .install-banner-button {
        min-height: 38px;
        padding: 0 14px;
    }

    .header-row {
        gap: 10px;
    }

    .brand {
        align-items: flex-end;
        max-width: calc(100% - 56px);
    }

    .brand img {
        width: min(136px, 38vw);
    }

    .brand-copy {
        gap: 2px;
        align-self: flex-end;
        padding-top: 0;
        padding-bottom: 3px;
    }

    .brand-copy-top {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .brand-copy-bottom {
        font-size: 0.38rem;
        letter-spacing: 0.08em;
    }

    .hero-slider {
        min-height: 292px;
    }

    .hero-visual {
        display: none;
    }

    .branch-header {
        padding-top: 18px;
    }

    .branch-header-inner {
        padding: 0;
    }

    .branch-header-title {
        font-size: 1.46rem;
    }

    .hero-content,
    .branch-hero-content {
        min-height: 292px;
        padding-top: 24px;
        padding-bottom: 58px;
    }

    .hero-copy p,
    .branch-hero-content p,
    .selector-card p,
    .location-card p,
    .story-copy p,
    .branch-card p,
    .cross-card p {
        font-size: 15px;
    }

    .selector-card,
    .story-panel,
    .location-card,
    .branch-card,
    .branch-products-shell,
    .branch-map-wrapper,
    .cross-card {
        padding: 22px;
        border-radius: 22px;
    }

    .product-card {
        padding: 20px;
        border-radius: 20px;
    }

    .product-placeholder-card {
        min-height: 110px;
        border-radius: 18px;
    }

    .product-card h3 {
        font-size: 1.34rem;
    }

    .product-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .selector-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .selector-card {
        padding: 14px;
        border-radius: 18px;
    }

    .selector-card .section-label {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .selector-card h2 {
        margin-top: 10px;
        font-size: 1.02rem;
        line-height: 1.04;
    }

    .selector-card p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .selector-address {
        /* inline — no override needed */
    }

    .selector-wa-fab {
        display: flex;
    }

    .selector-actions .button-whatsapp {
        display: none;
    }

    .selector-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .selector-actions .button {
        min-height: 34px;
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: 0.03em;
        box-shadow: none;
    }

    .selector-actions .button-icon {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .selector-actions .button-whatsapp {
        justify-content: center;
    }

    .selector-actions .button-whatsapp span {
        display: inline;
    }

    .selector-section {
        margin-top: 0;
        padding-top: 12px;
        padding-bottom: 42px;
    }

    .hero-copy h1 {
        font-size: 1.42rem;
        max-width: 10ch;
    }

    .hero-copy h2 {
        font-size: 0.8rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

    .story-highlight-grid {
        grid-template-columns: 1fr;
    }

    .contact-item,
    .map-topbar,
    .map-rating-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-rating-badge {
        width: 100%;
    }

    .map-rating-link {
        white-space: normal;
    }

    .contact-item strong,
    .contact-item strong a {
        text-align: left;
    }

    .button,
    .button-link {
        width: 100%;
    }

    .hero-actions .button,
    .hero-actions .button-link {
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    .selector-actions .button,
    .selector-actions .button-link {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ════════════════════════════════════════════════
   CATÁLOGO / PRODUCTOS
   ════════════════════════════════════════════════ */

.catalog-hero {
    padding: 72px 0 40px;
    text-align: center;
}

.catalog-hero-inner h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 8px 0 12px;
}

.catalog-hero-inner p {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

.catalog-location-picker {
    padding-bottom: 36px;
}

.catalog-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.catalog-picker-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.catalog-picker-btn:hover {
    border-color: var(--green);
    background: var(--surface-strong);
}

.catalog-picker-btn.is-active {
    border-color: var(--green);
    background: var(--surface-strong);
    box-shadow: 0 0 0 3px rgba(30, 106, 67, 0.15);
}

.catalog-picker-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.catalog-picker-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.catalog-picker-address {
    font-size: 0.88rem;
    color: var(--text-soft);
}

/* Toolbar */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
}

.catalog-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.catalog-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.catalog-toolbar-count {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.catalog-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-search-wrap {
    position: relative;
}

.catalog-search {
    width: 220px;
    padding: 9px 36px 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.catalog-search:focus {
    border-color: var(--green);
}

.catalog-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}

.catalog-categories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    overflow: visible;
}

.catalog-promos {
    margin-bottom: 16px;
}

.catalog-promos-head {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.catalog-promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.catalog-promo-card {
    border: 1px solid rgba(29, 78, 216, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #f7fbf8 100%);
    padding: 12px 14px;
}

.catalog-promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.catalog-promo-chip {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 8px;
}

.catalog-promo-chip.is-pack {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
}

.catalog-promo-chip.is-coupon {
    background: rgba(22, 101, 52, 0.14);
    color: #166534;
}

.catalog-promo-discount {
    color: #14532d;
    font-size: 0.92rem;
}

.catalog-promo-name {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text);
}

.catalog-promo-meta {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.catalog-promo-code {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #334155;
}

.catalog-promo-code span {
    font-weight: 800;
    color: #0f172a;
}

.catalog-promo-items {
    margin: 8px 0 0;
    padding-left: 0;
    color: #374151;
    font-size: 0.78rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-promo-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-promo-item-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-promo-item-thumb {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-promo-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-promo-item-thumb-empty {
    color: #607081;
    font-weight: 700;
    font-size: 0.72rem;
}

.catalog-promo-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-promo-item-qty {
    color: #6b7280;
    font-weight: 700;
    flex-shrink: 0;
}

.catalog-promo-add-btn {
    margin-top: 8px;
    border: 1px solid rgba(20, 83, 45, 0.25);
    background: #ffffff;
    color: #14532d;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.catalog-promo-add-btn:hover {
    background: #14532d;
    color: #fff;
}

.catalog-promo-add-btn:disabled {
    opacity: .65;
    cursor: default;
}

/* ── Modal de feedback de pack/promo ── */
#promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.promo-modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    overflow: hidden;
    animation: pmFadeIn .18s ease;
}

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

.promo-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    color: #111;
}

.promo-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 2px;
}

.promo-modal-body {
    padding: 14px 18px;
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.6;
}

.promo-modal-foot {
    padding: 10px 18px 16px;
    display: flex;
    justify-content: flex-end;
}

.promo-modal-ok {
    background: #14532d;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.promo-modal-ok:hover { background: #166534; }

.catalog-cat-toggle,
.catalog-cat-backdrop,
.catalog-cat-panel-header {
    display: none;
}

.catalog-cat-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.catalog-cat-panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.catalog-cat-group {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.catalog-cat-btn {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 auto;
    white-space: nowrap;
}

.catalog-cat-parent-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-cat-label {
    display: inline-block;
}

.catalog-cat-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1;
}

.catalog-cat-parent-btn.is-active .catalog-cat-caret,
.catalog-cat-parent-btn:hover .catalog-cat-caret {
    background: rgba(255, 255, 255, 0.22);
}

.catalog-subcategories {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 100%;
    max-width: min(360px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 245, 0.98);
    box-shadow: 0 18px 40px rgba(44, 62, 45, 0.14);
    backdrop-filter: blur(10px);
}

.catalog-subcat-btn {
    background: var(--bg-soft);
    border-style: dashed;
}

.catalog-categories-wrap > .catalog-cat-btn {
    align-self: flex-start;
}

.catalog-cat-btn:hover,
.catalog-cat-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

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

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.catalog-category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    overflow: hidden;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    color: inherit;
    font-family: inherit;
}

.catalog-category-card:hover {
    border-color: rgba(30, 106, 67, 0.4);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.catalog-category-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(30, 106, 67, 0.14), rgba(18, 58, 37, 0.08));
    overflow: hidden;
}

.catalog-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-category-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-category-media-empty span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--green);
}

.catalog-category-body {
    padding: 14px 14px 16px;
}

.catalog-category-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.catalog-category-parent {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.catalog-category-count {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--green-deep);
    font-weight: 700;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    color: inherit;
}

.catalog-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.catalog-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}

.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.catalog-card:hover .catalog-card-img img {
    transform: scale(1.04);
}

.catalog-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.catalog-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.catalog-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(30, 106, 67, 0.1);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.catalog-card-summary {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-options-preview {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin: 4px 0 0;
    line-height: 1.35;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}

.catalog-page-btn {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-page-btn:hover,
.catalog-page-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

/* States */
.catalog-loading {
    text-align: center;
    padding: 48px 0;
    color: var(--text-soft);
}

.catalog-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: catalogSpin 0.7s linear infinite;
}

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

.catalog-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--text-soft);
}

.catalog-choose {
    text-align: center;
    padding: 56px 0;
    color: var(--text-soft);
}

.catalog-choose-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.catalog-section {
    padding-bottom: 56px;
}

/* ════════════════════════════════════════════════
   DETALLE DE PRODUCTO
   ════════════════════════════════════════════════ */

.detail-section {
    padding: 48px 0 72px;
}

.detail-back {
    margin-bottom: 24px;
}

.detail-back-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green);
    transition: opacity 0.2s;
}

.detail-back-link:hover {
    opacity: 0.75;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 1rem;
}

.detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.detail-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s;
}

.detail-thumb.is-active {
    border-color: var(--green);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-name {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.detail-sku,
.detail-unit {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0;
}

.detail-description h2,
.detail-attributes h2,
.detail-documents h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.detail-description p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.detail-attr-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.detail-attr-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.detail-attr-row dt {
    font-weight: 600;
    min-width: 120px;
    font-size: 0.88rem;
}

.detail-attr-row dd {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.detail-documents {
    margin-top: 40px;
}

.detail-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-doc-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.85rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.detail-doc-card:hover {
    border-color: var(--green);
}

.detail-doc-icon {
    font-size: 1.2rem;
}

/* Detail responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .catalog-categories-wrap {
        display: block;
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .catalog-cat-toggle {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 16px;
        border: 1px solid rgba(28, 74, 52, 0.12);
        border-radius: 18px;
        background: rgba(255, 251, 245, 0.88);
        color: var(--text);
        box-shadow: 0 10px 28px rgba(44, 62, 45, 0.08);
        backdrop-filter: blur(10px);
    }

    .catalog-cat-toggle-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .catalog-cat-toggle-value {
        flex: 1 1 auto;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
    }

    .catalog-cat-toggle-icon {
        font-size: 0.95rem;
        color: var(--green);
    }

    .catalog-cat-backdrop {
        display: none;
    }

    .catalog-cat-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 24;
        display: none;
        flex-direction: column;
        gap: 14px;
        max-height: min(60vh, 460px);
        padding: 18px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(247, 242, 233, 0.98) 100%);
        border: 1px solid rgba(28, 74, 52, 0.12);
        box-shadow: 0 22px 40px rgba(22, 37, 29, 0.16);
        overflow-y: auto;
    }

    .catalog-cat-panel.is-open {
        display: flex;
    }

    .catalog-cat-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .catalog-cat-panel-copy {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .catalog-cat-panel-copy strong {
        font-size: 1.05rem;
        color: var(--text);
    }

    .catalog-cat-panel-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .catalog-cat-panel-close {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(28, 74, 52, 0.08);
        color: var(--text);
        font-size: 1.4rem;
        line-height: 1;
    }

    .catalog-cat-panel-body {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .catalog-cat-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .catalog-cat-parent-btn,
    .catalog-categories-wrap > .catalog-cat-btn {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-subcategories {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        min-width: auto;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .catalog-search {
        width: 100%;
    }

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

    .catalog-promos-grid {
        grid-template-columns: 1fr;
    }

    .catalog-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

body.catalog-panel-open {
    overflow: auto;
}

/* Branch products enhancements */
.branch-products-more {
    text-align: center;
    padding-top: 28px;
}

.branch-products-cta {
    text-align: center;
    padding-top: 20px;
}

.branch-product-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.branch-product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 6px 0;
}

.branch-product-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0 0 6px;
    line-height: 1.45;
}

.branch-product-card small {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-style: italic;
}

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

/* Home products section */
.home-products-section {
    padding: 56px 0 40px;
}

.home-products-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 520px;
    margin: 8px auto 0;
}

.home-products-sede {
    margin-top: 32px;
}

.home-products-sede-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-products-sede-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--green-deep);
}

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

.home-product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-product-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.home-product-card-media {
    aspect-ratio: 4 / 2.6;
    overflow: hidden;
    background: var(--bg-soft);
}

.home-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.home-product-card:hover .home-product-card-media img {
    transform: scale(1.04);
}

.home-product-card-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.home-product-card .catalog-card-tag,
.home-product-card h4,
.home-product-card p,
.home-product-card small {
    margin-left: 20px;
    margin-right: 20px;
}

.home-product-card .catalog-card-tag {
    margin-top: 18px;
}

.home-product-card small {
    margin-bottom: 18px;
}

.home-product-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 2px 0;
}

.home-product-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.45;
}

.home-product-card small {
    font-size: 0.78rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 2px;
}

.button-sm {
    font-size: 0.82rem;
    padding: 6px 14px;
    min-height: auto;
}

.home-products-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   SHOP — E-commerce La Veneciana
   ═══════════════════════════════════════════════════════════════ */

/* ─── Utilidades ────────────────────────────────────────────────── */
.d-none { display: none !important; }
.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;
}
.text-muted { color: var(--text-soft); }
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Layout general de páginas del shop ────────────────────────── */
.shop-section {
    padding: 48px 0 80px;
    min-height: 60vh;
}
.shop-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 32px;
    letter-spacing: -0.02em;
}

/* ─── Botones del shop ───────────────────────────────────────────── */
.btn-shop-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--red), #d56b52);
    color: #fff8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(182, 64, 53, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    text-decoration: none;
}
.btn-shop-primary:hover,
.btn-shop-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(182, 64, 53, 0.28);
}
.btn-shop-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-shop-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid rgba(29, 38, 31, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.btn-shop-secondary:hover,
.btn-shop-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(29, 38, 31, 0.32);
}

.btn-shop-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.btn-shop-ghost:hover { color: var(--text); background: var(--line); }
.btn-shop-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Formularios genéricos (auth + checkout) ────────────────────── */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(30, 106, 67, 0.1);
}
.form-field.form-field--half { max-width: 200px; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── Alertas ────────────────────────────────────────────────────── */
.auth-alert,
.checkout-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}
.auth-alert-error,
.checkout-alert-error {
    background: rgba(182, 64, 53, 0.1);
    border: 1px solid rgba(182, 64, 53, 0.25);
    color: #8b2318;
}
.auth-alert-success {
    background: rgba(30, 106, 67, 0.1);
    border: 1px solid rgba(30, 106, 67, 0.25);
    color: var(--green-deep);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH — Login / Registro
   ═══════════════════════════════════════════════════════════════ */
.shop-auth-shell {
    max-width: 460px;
    margin-inline: auto;
}
.shop-auth-box {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--line);
    gap: 0;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.auth-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--green);
}

.auth-google { text-align: center; }
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 4px 16px rgba(66,133,244,0.15); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-soft);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form .btn-shop-primary { width: 100%; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   CARRITO
   ═══════════════════════════════════════════════════════════════ */
.shop-cart-shell { max-width: 880px; margin-inline: auto; }

.cart-loading { text-align: center; padding: 60px 0; color: var(--text-soft); }

.cart-empty {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-soft);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Items */
.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: box-shadow 0.2s;
}
.cart-item:hover { box-shadow: var(--shadow-soft); }

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item-img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--line);
}
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-sku { font-size: 12px; color: var(--text-soft); }
.cart-item-price { font-size: 13px; color: var(--text-soft); }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: 999px;
    padding: 4px 6px;
}
.qty-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.qty-btn:hover { background: var(--bg); }
.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    min-width: 80px;
    text-align: right;
}
.cart-item-remove {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-item-remove:hover { background: rgba(182,64,53,0.1); color: var(--red); }

/* Summary */
.cart-summary {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.cart-summary-row strong { font-size: 20px; font-weight: 800; }
.cart-summary-note { font-size: 12px; color: var(--text-soft); margin: -8px 0 0; }
.cart-summary .btn-shop-primary { width: 100%; }
.cart-summary .btn-shop-ghost { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════ */
.shop-checkout-shell { max-width: 1020px; margin-inline: auto; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.checkout-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}
.checkout-fieldset legend {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    padding: 0;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.checkout-fieldset .form-field + .form-field,
.checkout-fieldset .form-row-2 + .form-field { margin-top: 12px; }

/* En filas de 2 columnas no aplicar margen vertical entre columnas */
.checkout-fieldset .form-row-2 .form-field + .form-field {
    margin-top: 0;
}

/* Opciones de entrega */
.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.delivery-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    font-weight: 600;
}
.delivery-option:has(input:checked),
.payment-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(30, 106, 67, 0.06);
}
.delivery-option input,
.payment-option input { accent-color: var(--green); }
.payment-option-inner { display: flex; align-items: center; gap: 10px; }

/* Resumen en checkout */
.checkout-summary-col {
    position: sticky;
    top: 100px;
}
.checkout-summary-box {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.checkout-summary-box h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text);
}
.summary-items { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    gap: 12px;
}
.summary-item-name { color: var(--text); line-height: 1.4; }
.summary-item-name em { color: var(--text-soft); font-style: normal; }
.summary-item-price { font-weight: 700; white-space: nowrap; }
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1.5px solid var(--line);
    font-size: 16px;
    font-weight: 800;
}
.checkout-login-note {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 16px;
    text-align: center;
}
.checkout-login-note a { color: var(--green); text-decoration: underline; }
.btn-checkout-submit { width: 100%; margin-top: 8px; }

/* Aviso radio de entrega */
.cart-delivery-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(30, 106, 67, 0.07);
    border: 1px solid rgba(30, 106, 67, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--green-deep);
    margin-bottom: 14px;
    line-height: 1.4;
}
.cart-delivery-notice svg { flex-shrink: 0; margin-top: 1px; }

/* Indicador de cobertura en tiempo real */
.delivery-range-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.4;
    border: 1px solid transparent;
}
.delivery-range-checking {
    background: rgba(100, 100, 100, 0.07);
    border-color: rgba(100, 100, 100, 0.18);
    color: var(--text-soft);
}
.delivery-range-ok {
    background: rgba(30, 106, 67, 0.08);
    border-color: rgba(30, 106, 67, 0.25);
    color: var(--green-deep);
}
.delivery-range-out {
    background: rgba(200, 40, 40, 0.06);
    border-color: rgba(200, 40, 40, 0.22);
    color: #b91c1c;
}
.delivery-range-unknown {
    background: rgba(160, 100, 0, 0.06);
    border-color: rgba(160, 100, 0, 0.22);
    color: #92400e;
}
.delivery-range-indicator svg { flex-shrink: 0; }
.range-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: range-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes range-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   PEDIDO CONFIRMADO
   ═══════════════════════════════════════════════════════════════ */
.shop-confirmed-shell {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.confirmed-loading { padding: 80px 0; }
.confirmed-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(30,106,67,0.22);
    margin-bottom: 20px;
}
.shop-confirmed-shell h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 10px;
}
#confirmed-subtitle {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 32px;
}
.confirmed-card {
    width: 100%;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.confirmed-item { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.confirmed-item em { color: var(--text-soft); font-style: normal; }
.confirmed-divider { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.confirmed-total { display: flex; justify-content: space-between; font-size: 16px; gap: 12px; }
.confirmed-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); gap: 12px; }
.confirmed-bank {
    width: 100%;
    background: rgba(30,106,67,0.07);
    border: 1.5px solid rgba(30,106,67,0.2);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
    text-align: left;
}
.confirmed-bank h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.confirmed-bank-note { font-size: 13px; color: var(--text-soft); margin-top: 12px; }
.confirmed-cash {
    width: 100%;
    background: rgba(198,154,82,0.1);
    border: 1.5px solid rgba(198,154,82,0.3);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text);
}
.confirmed-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   MIS PEDIDOS
   ═══════════════════════════════════════════════════════════════ */
.shop-orders-shell { max-width: 800px; margin-inline: auto; }

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.orders-header .shop-page-title { margin-bottom: 0; }
.orders-user-info { font-size: 14px; color: var(--text-soft); }
.orders-user-info a { color: var(--green); text-decoration: underline; }

.orders-loading,
.orders-empty { padding: 60px 0; text-align: center; color: var(--text-soft); }
.orders-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-soft); }

.order-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    flex-wrap: wrap;
}
.order-card-number { font-weight: 800; font-size: 14px; }
.order-card-date { font-size: 13px; color: var(--text-soft); margin-right: auto; }

.order-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-status-pending    { background: rgba(198,154,82,0.15); color: #7a5e28; }
.order-status-confirmed,
.order-status-processing { background: rgba(30,106,67,0.12);  color: var(--green-deep); }
.order-status-shipped    { background: rgba(30,106,67,0.2);   color: var(--green-deep); }
.order-status-delivered  { background: rgba(30,106,67,0.28);  color: var(--green-deep); }
.order-status-cancelled  { background: rgba(182,64,53,0.12);  color: #8b2318; }
.order-pay-pending       { background: rgba(198,154,82,0.12); color: #7a5e28; }
.order-pay-paid          { background: rgba(30,106,67,0.12);  color: var(--green-deep); }
.order-pay-failed        { background: rgba(182,64,53,0.12);  color: #8b2318; }
.order-pay-refunded      { background: rgba(100,100,200,0.12);color: #3333aa; }

.order-card-items { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.order-card-item { display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }

.order-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    background: var(--bg-soft);
}
.order-total { font-size: 15px; font-weight: 800; margin-right: auto; }
.order-pay-method { color: var(--text-soft); }
.order-card-link { color: var(--green); font-weight: 700; white-space: nowrap; }
.order-card-link:hover { text-decoration: underline; }

.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════════
   DETALLE DE PRODUCTO — Botón agregar al carrito
   ═══════════════════════════════════════════════════════════════ */
.detail-cart-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 20px 0;
}
.detail-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(30,106,67,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
    width: 100%;
    max-width: 340px;
}
.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(30,106,67,0.28);
}
.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-add-to-cart.is-added {
    background: linear-gradient(135deg, #2e8b5f, var(--green-deep));
}
.btn-view-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    text-decoration: underline;
    transition: color 0.2s;
}
.btn-view-cart:hover { color: var(--green-deep); }

/* ═══════════════════════════════════════════════════════════════
   Responsive — Shop
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .shop-auth-box {
        padding: 28px 20px;
    }
    .cart-content {
        grid-template-columns: 1fr;
    }
    .cart-item {
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: auto auto;
    }
    .cart-item-media { grid-row: 1 / 3; }
    .cart-item-subtotal { grid-column: 3; grid-row: 1; }
    .cart-item-remove { grid-column: 3; grid-row: 2; }
    .cart-item-qty { grid-column: 2; grid-row: 2; }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary-col { position: static; }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .checkout-fieldset .form-row-2 .form-field + .form-field {
        margin-top: 12px;
    }
    .confirmed-actions {
        flex-direction: column;
        width: 100%;
    }
    .confirmed-actions a,
    .confirmed-actions button {
        width: 100%;
    }
    .order-card-header { gap: 8px; }
    .order-total { margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — Íconos de carrito y cuenta
   ═══════════════════════════════════════════════════════════════ */
.header-shop-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.header-cart-btn,
.header-account-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
/* El botón de carrito es solo icono, sin padding extra */
.header-cart-btn {
    width: 42px;
    padding: 0;
}
.header-cart-btn:hover,
.header-account-btn:hover,
.header-cart-btn:focus-visible,
.header-account-btn:focus-visible {
    background: rgba(255,255,255,0.82);
    transform: translateY(-1px);
}
.header-account-btn.is-logged-in {
    background: rgba(30, 106, 67, 0.12);
    border-color: rgba(30, 106, 67, 0.28);
    color: var(--green-deep);
}

.header-account-name {
    font-size: 13px;
    font-weight: 700;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

.frontend-testing-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(191, 59, 38, 0.45);
    background: rgba(191, 59, 38, 0.12);
    color: #a23524;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .frontend-testing-badge {
        height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CATALOG CARD — Footer con precio y botón de carrito
   ═══════════════════════════════════════════════════════════════ */

/* La card ya no es un <a> sino un <div>; el link es .catalog-card-link */
.catalog-card {
    display: flex;
    flex-direction: column;
    cursor: default;
}
.catalog-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.catalog-card-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.catalog-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.catalog-card-price {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-top: 8px;
    white-space: nowrap;
}

.catalog-card-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(30, 106, 67, 0.25);
    background: rgba(30, 106, 67, 0.07);
    color: var(--green-deep);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
    white-space: nowrap;
}
.catalog-card-cart-btn:hover:not(:disabled) {
    background: rgba(30, 106, 67, 0.14);
    border-color: rgba(30, 106, 67, 0.44);
    transform: translateY(-1px);
}
.catalog-card-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.catalog-card-cart-btn.is-added {
    background: rgba(30, 106, 67, 0.18);
    border-color: var(--green);
    color: var(--green-deep);
}

/* Card con producto ya en el carrito */
.catalog-card.is-in-cart {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}
.catalog-card-img {
    position: relative;
    overflow: hidden;
}
/* Badge eliminado — el mini-carrito ya es suficiente indicador */
.catalog-card {
    position: relative;
}

/* Botón cuando el producto ya está en carrito */
.catalog-card-cart-btn.is-in-cart-mod {
    background: rgba(30, 106, 67, 0.1);
    border-color: var(--green);
    color: var(--green-deep);
    font-weight: 700;
}
/* El botón siempre centrado */
.catalog-card-footer .catalog-card-cart-btn {
    margin-left: 0;
}

.catalog-card-status-note {
    width: 100%;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.68);
}

/* Fila cantidad + botón agregar */
.catalog-card-add-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px 12px;
}

/* Mini-carrito en la card (variantes ya agregadas) */
.catalog-card-variants {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 4px;
    border-bottom: 1px solid var(--line);
}
.catalog-card-variants:empty {
    display: none;
    padding: 0;
    border: none;
}
.catalog-card-variant-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.catalog-card-variant-row:last-child {
    border-bottom: none;
}
.catalog-card-variant-label {
    flex: 1;
    font-size: 0.75rem;
    color: #333;
    min-width: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-card-variant-label em {
    display: block;
    font-style: normal;
    font-size: 0.69rem;
    color: #2d6a4f;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-card-variant-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(30, 106, 67, 0.3);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.catalog-card-variant-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--green-deep);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
}
.catalog-card-variant-btn:hover {
    background: rgba(30, 106, 67, 0.1);
}
.catalog-card-variant-qty {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    min-width: 18px;
    text-align: center;
    padding: 0 2px;
}
.catalog-card-variant-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.12s, background 0.12s;
    padding: 0;
    font-family: inherit;
}
.catalog-card-variant-remove:hover {
    color: #c00;
    background: rgba(200,0,0,.08);
}

/* Stepper de cantidad */
.catalog-card-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(30, 106, 67, 0.25);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.catalog-card-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green-deep);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.catalog-card-qty-btn:hover {
    background: rgba(30, 106, 67, 0.1);
}
.catalog-card-qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 0;
    -moz-appearance: textfield;
}
.catalog-card-qty-input::-webkit-outer-spin-button,
.catalog-card-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}