:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #5f6c80;
    --border: #d9e1ec;
    --primary: #0f766e;
    --primary-dark: #0b5b55;
    --secondary: #153a5b;
    --accent: #f59e0b;
    --danger: #b42318;
    --success: #15803d;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
main { padding-bottom: 72px; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.topbar { background: var(--secondary); color: #e6eef8; font-size: 14px; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(248, 251, 255, 0.94); border-bottom: 1px solid rgba(217, 225, 236, 0.75); }
.navbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; }
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #43b3a9); color: white; font-size: 28px; font-weight: 800; }
.nav-panel { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.search-form { width: min(100%, 360px); }
.search-form input,
.field input,
.field textarea,
.field select,
.inline-qty-form input,
.quantity-control input { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; background: var(--surface); color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.cart-link { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 11px 14px; border-radius: 999px; background: var(--surface); font-weight: 700; }
.cart-count { min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; background: var(--primary); color: white; font-size: 13px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; }

.flash { margin-top: 18px; padding: 14px 18px; border-radius: 16px; }
.flash-success { background: #ecfdf3; color: #166534; border: 1px solid #b7ebc6; }
.flash-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }

.hero-section { padding: 44px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.hero-copy,
.hero-panel,
.promo-band,
.filter-card,
.gallery-card,
.product-summary,
.cart-summary,
.cart-item,
.empty-state,
.category-card,
.product-card,
.highlight-card { background: var(--surface); border: 1px solid rgba(217, 225, 236, 0.9); box-shadow: var(--shadow); }
.hero-copy { border-radius: 34px; padding: 40px; background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 36%), linear-gradient(135deg, #ffffff, #eef7ff); }
.hero-copy h1,
.section-heading h2,
.catalog-header h1,
.product-summary h1,
.cart-summary h2,
.empty-state h2 { margin: 10px 0 14px; font-family: 'Fraunces', serif; line-height: 1.05; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 64px); }
.hero-copy p,
.promo-band p,
.product-description,
.empty-state p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.eyebrow { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #e7f6f3; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions,
.filter-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.hero-stats div,
.hero-panel { border-radius: 22px; padding: 20px; }
.hero-stats strong { display: block; font-size: 28px; }
.hero-stats span { color: var(--muted); font-size: 14px; }
.hero-panels { display: grid; gap: 18px; }
.panel-primary { background: linear-gradient(180deg, #153a5b, #1e557f); color: white; }
.panel-secondary { background: linear-gradient(180deg, #f8fcff, #eef8f1); }
.panel-primary p { color: rgba(255, 255, 255, 0.82); }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; padding: 13px 20px; font-weight: 800; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #eef3f8; color: var(--secondary); }
.btn-whatsapp { width: 100%; background: #1fa854; color: white; }
.btn-link-danger { color: var(--danger); background: transparent; border: 0; font-weight: 700; cursor: pointer; }
.btn-large { width: 100%; padding: 16px 22px; }

.section-block { padding: 24px 0; }
.section-block.muted { background: rgba(231, 239, 247, 0.4); }
.section-heading,
.catalog-header,
.section-heading.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-link { font-weight: 800; color: var(--secondary); }
.category-grid,
.product-grid,
.highlight-row { display: grid; gap: 18px; }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card { border-radius: 22px; padding: 22px; min-height: 140px; background: linear-gradient(160deg, rgba(15, 118, 110, 0.12), transparent 55%), var(--surface); }
.category-card strong { display: block; font-size: 20px; margin-bottom: 10px; }
.category-card span { color: var(--muted); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
    border-color: rgba(15, 118, 110, 0.2);
}

.product-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 46%),
        linear-gradient(180deg, #eef6ff, #dde9f7);
    overflow: hidden;
}

.product-image { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-image,
.product-overlay-link {
    transition: transform .28s ease, opacity .22s ease;
}

.product-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.product-flag {
    background: var(--accent);
    color: #1f2937;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-flag-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary);
}

.product-overlay-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(24, 33, 47, 0.72);
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .product-overlay-link {
    opacity: 1;
    transform: translateY(0);
}

.product-card-body {
    padding: 22px 20px 20px;
    display: grid;
    gap: 14px;
    grid-template-rows: auto auto minmax(72px, auto) 1fr;
    align-content: start;
    height: 100%;
    min-width: 0;
}
.product-meta,
.product-card-body p,
.helper-text,
.cart-item-content p,
.cart-item-content small,
.breadcrumb { color: var(--muted); }
.product-meta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 0;
    align-items: center;
    min-width: 0;
}

.product-category-pill,
.product-stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    max-width: 100%;
}

.product-category-pill {
    background: #edf6ff;
    color: var(--secondary);
}

.product-stock-pill {
    background: #ecfdf3;
    color: var(--success);
}

.product-stock-pill.is-empty {
    background: #fff1f2;
    color: var(--danger);
}

.product-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    min-height: 54px;
    min-width: 0;
}

.product-card h3 a {
    transition: color .2s ease;
}

.product-card:hover h3 a {
    color: var(--primary);
}

.product-card-body p {
    min-height: 72px;
    max-height: 72px;
    line-height: 1.65;
    font-size: 14px;
    margin: 0;
    overflow: hidden;
    min-width: 0;
}

.product-card-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 8px;
    align-self: end;
    min-width: 0;
}

.product-price-block {
    display: grid;
    gap: 4px;
}

.product-price-block strong {
    font-size: 31px;
    line-height: 1;
    color: var(--secondary);
}

.product-price-block span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-card-button {
    min-width: 0;
    min-height: 50px;
    padding: 14px 18px;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
    white-space: normal;
    line-height: 1.2;
}

.product-card-footer form {
    display: block;
    width: 100%;
    margin: 0;
    min-width: 0;
}

.product-card-footer form .product-card-button {
    width: 100%;
    max-width: 100%;
}

.product-card-button:hover {
    transform: translateY(-1px);
}

.product-price-block,
.product-card-footer form,
.product-card-footer .pill-muted {
    width: 100%;
}

.product-price-block {
    min-height: 56px;
    align-content: end;
}

.product-card-footer .pill-muted {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pill-muted { padding: 8px 12px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 13px; font-weight: 700; }
.promo-band { border-radius: 32px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: radial-gradient(circle at right top, rgba(245, 158, 11, 0.15), transparent 30%), linear-gradient(160deg, #ffffff, #f7fbff); }
.highlight-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.highlight-card { border-radius: 22px; overflow: hidden; }
.highlight-card img { width: 100%; height: 210px; object-fit: cover; }
.highlight-card div { padding: 16px; }
.highlight-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.highlight-card span { color: var(--primary); font-weight: 800; }

.content-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 10px;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    scroll-snap-align: start;
    min-width: 0;
}

.product-slider-slide {
    width: min(280px, calc(100vw - 80px));
}

.offer-slider-slide {
    width: min(280px, calc(100vw - 80px));
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--secondary);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.slider-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #fff;
}

.slider-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.catalog-shell,
.product-page,
.cart-section,
.info-page { padding: 34px 0 0; }
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 22px; }
.filter-card,
.cart-summary,
.gallery-card,
.product-summary { border-radius: 24px; padding: 24px; }
.filter-card h3 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.pagination-wrap { margin-top: 26px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-link { border-radius: 12px !important; border-color: var(--border); color: var(--secondary); }

.breadcrumb { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; background: #edf2f7; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.thumb-button { border: 1px solid var(--border); border-radius: 16px; padding: 0; background: transparent; overflow: hidden; cursor: pointer; }
.thumb-button.is-active { border-color: var(--primary); }
.thumb-button img { width: 100%; height: 90px; object-fit: cover; }
.price-block { font-size: 38px; font-weight: 800; margin: 12px 0 18px; }
.stock-badge { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; font-weight: 800; margin-bottom: 22px; }
.in-stock { background: #ecfdf3; color: var(--success); }
.out-stock { background: #fff1f2; color: var(--danger); }
.add-to-cart-form { display: grid; gap: 18px; }
.quantity-box label { display: block; font-weight: 700; margin-bottom: 10px; }
.quantity-control { display: grid; grid-template-columns: 54px 1fr 54px; gap: 10px; }
.quantity-control button { border: 1px solid var(--border); border-radius: 16px; background: #f8fbff; font-size: 24px; cursor: pointer; }
.quantity-control input { text-align: center; font-weight: 800; }

.cart-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.cart-items { display: grid; gap: 16px; }
.cart-item { border-radius: 24px; padding: 18px; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; }
.cart-item img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; }
.cart-item-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inline-qty-form { display: flex; align-items: center; gap: 10px; }
.inline-qty-form input { width: 90px; }
.cart-subtotal { text-align: right; }
.cart-subtotal strong { display: block; font-size: 24px; }
.summary-lines { display: grid; gap: 12px; margin: 18px 0 22px; }
.summary-lines div,
.summary-total { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; font-size: 22px; }
.checkout-form { display: grid; gap: 10px; }
.helper-text { font-size: 13px; line-height: 1.6; }
.empty-state { border-radius: 28px; padding: 30px; text-align: center; }
.empty-state.large { padding: 52px 28px; }
.empty-state.compact { text-align: left; }

.info-hero,
.info-card {
    background: var(--surface);
    border: 1px solid rgba(217, 225, 236, 0.9);
    box-shadow: var(--shadow);
}

.info-hero {
    border-radius: 32px;
    padding: 34px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 34%),
        linear-gradient(160deg, #ffffff, #eef7ff);
}

.info-hero h1 {
    margin: 12px 0 14px;
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.06;
}

.info-hero p,
.info-card p,
.contact-list span {
    color: var(--muted);
    line-height: 1.75;
    font-size: 16px;
}

.info-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-card {
    border-radius: 26px;
    padding: 28px;
}

.info-card h2 {
    margin: 0 0 12px;
    font-family: 'Fraunces', serif;
    font-size: 30px;
}

.values-card {
    margin-top: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.values-grid div,
.contact-list div {
    border-radius: 18px;
    background: #f6f9fd;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-list strong {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
}

.contact-whatsapp-btn {
    width: 100%;
}

.map-card h2 {
    margin-bottom: 18px;
}

.map-frame {
    overflow: hidden;
    border-radius: 20px;
    min-height: 380px;
    background: #edf2f7;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.site-footer { margin-top: 34px; background: #14263c; color: #d7e1ee; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 26px; padding: 42px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.text-danger { color: var(--danger); }

@media (max-width: 1080px) {
    .hero-grid,
    .product-detail,
    .cart-layout,
    .catalog-layout,
    .info-grid,
    .contact-layout,
    .footer-grid,
    .promo-band { grid-template-columns: 1fr; }
    .product-grid,
    .category-grid,
    .highlight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .product-slider-slide,
    .offer-slider-slide {
        width: min(260px, calc(100vw - 96px));
    }
}

@media (max-width: 820px) {
    .topbar-inner { flex-direction: column; justify-content: center; padding: 10px 0; text-align: center; }
    .nav-toggle { display: inline-block; }
    .nav-panel { position: absolute; top: calc(100% + 12px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow); border: 1px solid var(--border); display: none; }
    .nav-panel.is-open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; }
    .search-form { width: 100%; }
    .hero-copy { padding: 28px; }
    .hero-stats { grid-template-columns: 1fr; }
    .cart-item,
    .cart-item-content { grid-template-columns: 1fr; }
    .cart-subtotal { text-align: left; }
    .content-slider { grid-template-columns: 1fr; }
    .slider-arrow { display: none; }
    .product-slider-slide,
    .offer-slider-slide {
        width: min(82vw, 320px);
    }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .product-grid,
    .category-grid,
    .highlight-row,
    .gallery-thumbs,
    .values-grid { grid-template-columns: 1fr; }
    .product-card-footer,
    .section-heading,
    .catalog-header,
    .hero-actions { flex-direction: column; align-items: stretch; }
    .inline-qty-form { flex-direction: column; align-items: stretch; }
}
