:root {
    --brand: #1E8579;
    --brand-dark: #16685e;
    --brand-soft: #e7f4f2;
    --ink: #1c2430;
    --muted: #5d6b76;
    --line: #e3e8ec;
    --header: #e7ebef;
    --bg: #f3f5f7;
    --card: #fff;
    --danger: #9f1d1d;
    --ok: #157a46;
    --shadow: 0 10px 30px rgba(20, 32, 40, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
    position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 20; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.top-bar { background: var(--brand); color: #fff; }
.top-bar a { color: #fff; text-decoration: none; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 46px; }
.top-bar-whatsapp {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #25d366; color: #08301a; font-weight: 700;
    border-radius: 999px; padding: .28rem .8rem; font-size: .92rem;
}
.top-bar-links { display: flex; align-items: center; gap: .9rem; font-weight: 600; }
.wa-short { display: none; }
.badge-pro {
    background: #fff; color: var(--brand-dark); border-radius: 999px;
    padding: .05rem .45rem; font-size: .75rem; font-weight: 800;
}
.pending-banner { background: #fff4d6; color: #6a4b00; padding: .55rem 0; font-size: .95rem; }

.site-header { background: var(--header); border-bottom: 1px solid #d9e0e6; position: sticky; top: 0; z-index: 30; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .75rem 0; }
.logo img { display: block; width: 168px; height: auto; background: #fff; border-radius: 999px; padding: .15rem .35rem; }
.logo-wordmark { color: var(--brand-dark); font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -.02em; }
.logo-wordmark span { display: block; font-size: .92em; font-weight: 700; }
.logo-wordmark:hover { text-decoration: none; }
.search-form { position: relative; display: flex; min-width: 0; }
.search-form input {
    flex: 1; border: 1px solid #d5dde3; border-right: 0; border-radius: 8px 0 0 8px;
    padding: .75rem .9rem; background: #fff; min-width: 0;
}
.search-form button, .btn {
    background: var(--brand); color: #fff; border: 0; border-radius: 8px;
    padding: .7rem 1rem; font-weight: 700; cursor: pointer; letter-spacing: .02em;
}
.search-form button { border-radius: 0 8px 8px 0; }
.btn:hover, .search-form button:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-disabled { background: #c5ced4; cursor: not-allowed; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.cart-icon {
    position: relative; width: 48px; height: 48px; border-radius: 999px;
    background: #f7f9fb; color: var(--brand-dark); display: grid; place-items: center;
}
.cart-badge {
    position: absolute; top: -2px; right: -2px; background: var(--brand); color: #fff;
    border-radius: 999px; min-width: 1.2rem; height: 1.2rem; font-size: .72rem;
    display: grid; place-items: center; font-weight: 800;
}
.nav-toggle {
    background: var(--brand); color: #fff; border: 0; border-radius: 10px;
    padding: .75rem 1rem; font-weight: 800; letter-spacing: .04em; cursor: pointer;
}
.site-nav { display: none; background: #fff; border-top: 1px solid var(--line); }
body.nav-open .site-nav { display: block; }
.nav-primary { list-style: none; margin: 0; padding: .4rem 0 1rem; display: flex; flex-direction: column; gap: .2rem; }
.nav-primary > li > a, .nav-dropdown-toggle {
    display: block; padding: .65rem .2rem; color: var(--ink); font-weight: 700; background: none; border: 0; cursor: pointer;
}
.mega-menu { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.nav-dropdown.is-open .mega-menu, .nav-dropdown:hover .mega-menu { display: block; }
.mega-label { margin: 0 0 .4rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega-row, .mega-all { display: flex; justify-content: space-between; padding: .35rem .2rem; color: var(--ink); }
.mega-row.is-active, .mega-row:hover { background: var(--brand-soft); text-decoration: none; }
.mega-pane { display: none; }
.mega-pane.is-active { display: block; }
.search-suggest {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 40;
}
.search-suggest a { display: flex; gap: .6rem; align-items: center; padding: .45rem .7rem; color: var(--ink); }
.search-suggest a:hover { background: var(--brand-soft); text-decoration: none; }
.search-suggest img { width: 42px; height: 42px; object-fit: contain; }

.home-hero { padding: 1.4rem 0 0; }
.hero-grid { display: grid; gap: 1rem; }
.hero-badge {
    display: inline-block; background: #d9ebe8; color: var(--brand-dark);
    border-radius: 999px; padding: .25rem .7rem; font-weight: 700; font-size: .9rem;
}
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: .7rem 0 .2rem; }
.home-hero h1 span { display: block; color: var(--brand); font-size: .62em; margin-top: .35rem; }
.lead { font-size: 1.08rem; color: #31404a; max-width: 46rem; }
.hero-actions { display: grid; gap: .6rem; margin: 1rem 0; }
.hero-trust { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.hero-panel {
    background: var(--brand); color: #fff; border-radius: 18px; min-height: 220px;
    display: grid; place-items: center; text-align: center; padding: 1.5rem; overflow: hidden;
}
.hero-panel img { width: auto; max-width: 240px; max-height: 78px; background: #fff; border-radius: 999px; padding: .35rem .7rem; }
.hero-panel p { margin: .8rem 0 0; font-weight: 700; }

.section { padding: 1.6rem 0 2rem; }
.section h2 { margin: 0 0 1rem; font-size: 1.6rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.category-card {
    position: relative; min-height: 140px; border-radius: 14px; overflow: hidden;
    background: #123f3b; color: #fff; display: block;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card span {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: .55rem .7rem;
    background: linear-gradient(transparent, rgba(0,0,0,.72)); font-weight: 800;
}
.category-card:hover { text-decoration: none; transform: translateY(-1px); }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.product-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-image { position: relative; background: #f7f8f8; display: block; aspect-ratio: 1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image.is-empty img { display: none; }
.product-image.is-empty::after, .img-fallback {
    display: grid; place-items: center; height: 100%; color: var(--brand); font-weight: 800; letter-spacing: .08em;
}
.product-overlay {
    position: absolute; inset: auto .6rem .6rem; background: rgba(30,133,121,.92); color: #fff;
    text-align: center; border-radius: 8px; padding: .35rem; font-weight: 700; opacity: 0;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-body { padding: .75rem .8rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-body h3 { font-size: .98rem; margin: 0; line-height: 1.3; }
.product-body h3 a { color: var(--ink); }
.product-category { color: var(--muted); font-size: .82rem; font-weight: 700; }
.product-price { font-weight: 800; font-size: 1.05rem; }
.product-price small, .product-price-login { font-weight: 700; color: var(--brand-dark); font-size: .92rem; }
.product-price-muted { color: var(--muted); }
.stock-badge { color: var(--ok); font-size: .85rem; font-weight: 700; }
.stock-badge.is-out { color: var(--danger); }
.product-body .btn { margin-top: auto; }
.product-body .js-add-cart { margin-top: auto; display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.product-body .js-add-cart .btn { margin-top: 0; align-self: stretch; }
.card-qty input[type="number"] { width: 2.8rem; border: 0; background: transparent; padding: .35rem 0; -moz-appearance: textfield; }
.card-qty input[type="number"]::-webkit-outer-spin-button,
.card-qty input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.catalog-layout { display: grid; gap: 1rem; padding-bottom: 2rem; }
.filters { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.filters h2 { margin-top: 0; font-size: 1.1rem; }
.filters a { display: block; padding: .28rem 0; color: var(--ink); }
.filters a.is-active { color: var(--brand-dark); font-weight: 800; }
.pager { display: flex; gap: .5rem; justify-content: center; margin: 1.2rem 0; }
.pager a, .pager span { background: #fff; border-radius: 8px; padding: .4rem .7rem; }

.product-page { display: grid; gap: 1.2rem; padding: 1.2rem 0 2rem; }
.product-gallery { background: #fff; border-radius: 16px; padding: 1rem; }
.product-gallery img { width: 100%; max-height: 460px; object-fit: contain; }
.buy-box { background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.sku { color: var(--muted); font-size: .9rem; }
.qty-row { display: flex; gap: .5rem; align-items: center; margin: .8rem 0; }
.qty-row input { width: 5rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; }

.table-wrap { overflow: auto; background: #fff; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-thumb { width: 64px; height: 64px; object-fit: contain; }

.form-card, .prose, .alert { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: .7rem; }
.form-grid label { display: grid; gap: .25rem; font-weight: 700; font-size: .92rem; }
.form-grid input, .form-grid textarea, .form-grid select {
    border: 1px solid #d5dde3; border-radius: 8px; padding: .65rem .75rem; font-weight: 500;
}
.alert { margin: 1rem 0; }
.alert-error { background: #fdecec; color: var(--danger); }
.alert-ok { background: #e8f7ee; color: var(--ok); }
.two-col { display: grid; gap: .8rem; }
.page-narrow { width: min(760px, calc(100% - 2rem)); margin: 1.2rem auto 2rem; }
.breadcrumbs-wrap { padding-top: .8rem; }
.breadcrumbs { font-size: .92rem; color: var(--muted, #52606b); }
.breadcrumbs a { color: var(--brand, #1E8579); font-weight: 700; }
.seo-block { margin-top: .4rem; }
.seo-block p { max-width: 48rem; }
.seo-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.faq details { background: #fff; border-radius: 12px; padding: .7rem 1rem; margin-bottom: .5rem; }
.faq summary { cursor: pointer; font-weight: 800; }

.site-footer { background: #10211f; color: #d7e6e3; margin-top: 1rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: .2rem 0 .45rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; padding: .75rem 0 .45rem; font-size: .88rem; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 .3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .12rem 0; line-height: 1.35; }
.newsletter-form { display: flex; gap: .4rem; }
.newsletter-form input { flex: 1; border: 0; border-radius: 8px; padding: .45rem .65rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: .45rem 1rem .6rem;
    text-align: center;
}
.footer-bottom p { margin: 0; line-height: 1.35; font-size: .78rem; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); z-index: 50; }
.cookie-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 0; }
.admin-bar { background: #10211f; color: #fff; }
.admin-bar a { color: #fff; margin-right: 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; }
.stat { background: #fff; border-radius: 12px; padding: .9rem; }
.stat strong { display: block; font-size: 1.4rem; }

@media (max-width: 760px) {
    .wa-full { display: none; }
    .wa-short { display: inline; }
    .header-main { grid-template-columns: auto 1fr; }
    .search-form { grid-column: 1 / -1; order: 3; }
}
@media (min-width: 900px) {
    .site-nav { display: block; position: relative; }
    .nav-toggle { display: none; }
    .nav-primary { flex-direction: row; align-items: center; gap: .3rem; padding: 0; }
    .nav-primary > li > a, .nav-dropdown-toggle { padding: .85rem .7rem; }
    .nav-dropdown { position: static; }
    .mega-menu {
        position: absolute; left: 0; right: 0; display: none;
        grid-template-columns: 280px 1fr; gap: 1rem; margin: 0 auto; width: min(1180px, calc(100% - 2rem));
        box-shadow: var(--shadow);
    }
    .nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu { display: grid; }
    .hero-grid { grid-template-columns: 1.3fr .7fr; align-items: center; }
    .hero-actions { grid-template-columns: auto auto; justify-content: start; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .category-card:first-child { grid-column: span 2; grid-row: span 2; min-height: 420px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .catalog-layout { grid-template-columns: 250px 1fr; align-items: start; }
    .product-page { grid-template-columns: 1.1fr .9fr; align-items: start; }
    .two-col { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.register-page { width: min(980px, calc(100% - 2rem)); margin: 1.2rem auto 2.4rem; }
.register-card { background: #fff; border-radius: 16px; padding: 1.3rem 1.2rem 1.5rem; box-shadow: var(--shadow); }
.auth-card-header h1 { margin: 0 0 .35rem; }
.auth-card-header p { margin: 0 0 1rem; color: #3d4d4a; }
.register-form { display: grid; gap: 1rem; }
.form-section { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0; min-width: 0; }
.form-section, .form-row, .form-group { min-width: 0; }
.form-section legend { font-weight: 800; padding: 0 .35rem; color: var(--brand-dark); }
.form-row { display: grid; gap: .8rem; }
@media (min-width: 760px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: grid; gap: .3rem; margin-top: .7rem; }
.form-group label, .register-consent { font-weight: 700; }
.form-control, .register-form input[type="text"], .register-form input[type="email"], .register-form input[type="password"], .register-form input[type="tel"], .register-form input[type="file"], .register-form select {
    display: block; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #d5dde3; border-radius: 8px; padding: .65rem .75rem; font: inherit; font-weight: 500; background: #fff;
}
.form-hint { color: #5d6b76; font-size: .82rem; font-weight: 500; }
.register-consent { display: flex; gap: .55rem; align-items: flex-start; margin: .7rem 0; font-weight: 650; }
.register-consent input { margin-top: .2rem; }
.register-doc-list { list-style: none; padding: 0; margin: .4rem 0 0; }
.register-doc-list__item, .register-doc-list__empty { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; font-size: .9rem; }
.register-doc-list__remove { border: 0; background: transparent; color: var(--danger); font-weight: 700; cursor: pointer; }
.vat-check-status { font-size: .85rem; font-weight: 700; }
.vat-check-status--ok { color: var(--brand-dark); }
.vat-check-status--error { color: var(--danger); }
.vat-check-status--pending, .vat-check-status--warn { color: #8a6a12; }
.auth-card-footer { margin: 1rem 0 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.cart-layout { display: grid; gap: 1.5rem; align-items: start; padding-bottom: 2rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
}
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.cart-item-info { flex: 1; min-width: 160px; }
.cart-item-name { font-size: 1.05rem; margin: 0 0 .25rem; }
.cart-item-price { color: var(--brand-dark); font-weight: 800; }
.cart-item-stock { color: var(--muted); font-size: .85rem; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.quantity-selector form { margin: 0; }
.quantity-btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.quantity-btn:hover { background: var(--brand-soft); }
.quantity-input { min-width: 2rem; text-align: center; font-weight: 800; }
.cart-item-total { min-width: 90px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.cart-item-total small { color: var(--muted); font-size: .75rem; font-weight: 700; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; }
.cart-summary-title { margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.cart-summary-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.cart-summary-total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.checkout-form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.checkout-form h3 { margin: .4rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.checkout-delivery-options { display: flex; flex-direction: column; gap: .6rem; }
.checkout-delivery-option {
    display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.checkout-delivery-option strong, .checkout-delivery-option small { display: block; }
.checkout-delivery-option small { color: var(--muted); font-weight: 500; }
.checkout-selected-address, .checkout-billing, .checkout-payment-info {
    margin: 0; padding: .75rem .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem;
}
.checkout-billing { display: flex; flex-direction: column; gap: .3rem; }
.cart-login-hint { background: var(--brand-soft); border-radius: 12px; padding: .8rem 1rem; }
.btn:disabled { background: #c5ced4; cursor: not-allowed; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr .9fr; } }
.order-confirm-page { padding: 1.2rem 0 2.4rem; }
.order-confirm-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.2rem 1.6rem; box-shadow: var(--shadow); }
.order-confirm-header { text-align: center; margin-bottom: 1.2rem; }
.order-confirm-icon { font-size: 2rem; display: block; margin-bottom: .3rem; }
.order-confirm-header h1 { margin: 0 0 .4rem; }
.order-confirm-sub { color: var(--muted); margin: .35rem 0; }
.order-payment-type { margin: .6rem 0 0; }
.order-receipt { margin-top: .6rem; }
.order-receipt h2, .order-shipping-summary h3 { color: var(--brand-dark); }
.order-receipt-table-wrap { overflow: auto; }
.order-receipt-table { width: 100%; border-collapse: collapse; }
.order-receipt-table th { background: var(--brand-soft); text-align: left; padding: .6rem; }
.order-receipt-table td { padding: .6rem; border-bottom: 1px solid var(--line); }
.order-receipt-table .qty { text-align: center; width: 4rem; }
.order-receipt-table .num { text-align: right; white-space: nowrap; }
.order-receipt-table tfoot td { border-top: 2px solid var(--brand); font-weight: 700; }
.order-totals { margin: .8rem 0 1rem; }
.order-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; }
.order-totals .is-total { font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); border-top: 2px solid var(--brand); margin-top: .35rem; padding-top: .55rem; }
.order-shipping-summary { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.order-confirm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.bank-box { margin-top: 1rem; background: var(--brand-soft); border-radius: 12px; padding: .9rem 1rem; }
.bank-box dl { display: grid; grid-template-columns: 8rem 1fr; gap: .35rem .6rem; margin: .4rem 0; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 700; }
