:root {
  --bg: #ffffff;
  --surface: #f7f5f2;
  --surface-2: #eee7df;
  --text: #171717;
  --muted: #686868;
  --line: #e8e8e8;
  --accent: #111111;
  --radius: 18px;
  --shadow: 0 18px 50px rgb(0 0 0 / 10%);
  --container: min(1320px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; background: #fff; border: 2px solid #111; border-radius: 8px; }
.skip-link:focus { transform: none; }

.topbar { min-height: 34px; overflow: hidden; background: #111; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.topbar-track { width: max-content; min-width: 200%; min-height: 34px; display: flex; align-items: center; gap: 44px; padding-left: 100%; animation: topbar-marquee 22s linear infinite; }
.topbar-track span { display: inline-block; }
@keyframes topbar-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 95%); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-main { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; width: max-content; letter-spacing: .35em; font-weight: 900; }
.brand-word { font-size: 24px; line-height: 1; }
.brand-sub { margin-top: 7px; font-size: 8px; letter-spacing: .58em; padding-left: .58em; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.nav-link { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 12px 13px; font-size: 14px; border-radius: 999px; transition: background .2s ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active { background: #f2f2f2; outline: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search { width: min(310px, 28vw); height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f5f5f5; border: 1px solid transparent; border-radius: 999px; }
.search:focus-within { border-color: #b8b8b8; background: #fff; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.cart-button { position: relative; }
.admin-access-button { min-height: 40px; padding: 0 14px; border: 1px solid #d9d9d9; border-radius: 999px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.admin-access-button:hover, .admin-access-button:focus-visible { background: #111; color: #fff; outline: none; }
.footer-admin-link { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.footer-admin-link:hover { color: #111; }

.login-dialog { width: min(430px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow); overflow: visible; }
.login-dialog::backdrop { background: rgb(0 0 0 / 58%); backdrop-filter: blur(3px); }
.login-form { position: relative; display: grid; gap: 16px; padding: 28px; background: #fff; border-radius: 18px; }
.login-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.login-close { top: 18px; right: 18px; border: 1px solid #e1e1e1; }
.login-help { margin: 0; padding: 12px 14px; background: #f7f5f2; border-radius: 10px; color: #444; font-size: 14px; }
.login-field { display: grid; gap: 7px; }
.login-field span { font-size: 13px; font-weight: 800; }
.login-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6d6d6; border-radius: 9px; background: #fff; outline: none; }
.login-field input:focus { border-color: #777; box-shadow: 0 0 0 3px rgb(0 0 0 / 6%); }
.login-error { min-height: 20px; margin: -3px 0 0; color: #a12626; font-size: 12px; font-weight: 800; }
.login-security-note { margin: 0; color: #777; font-size: 11px; line-height: 1.45; }

.cart-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: #111; color: #fff; font-size: 11px; font-weight: 800; }

.hero { min-height: 580px; position: relative; display: grid; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 56%) 0%, rgb(0 0 0 / 20%) 48%, rgb(0 0 0 / 4%) 80%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: 80px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .28em; }
.eyebrow.dark { color: #717171; }
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(50px, 6vw, 88px); line-height: .92; letter-spacing: -.055em; }
.hero p:not(.eyebrow) { max-width: 470px; margin: 22px 0 28px; font-size: 18px; }
.btn { min-height: 46px; padding: 12px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .48; }
.btn:focus-visible { outline: 3px solid rgb(0 0 0 / 20%); outline-offset: 2px; }
.btn-light { background: #fff; color: #111; box-shadow: 0 8px 28px rgb(0 0 0 / 16%); }
.btn-dark { background: #111; color: #fff; }
.btn-outline { background: #fff; border-color: #d8d8d8; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1f9e55; color: #fff; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-block: 16px 56px; }
.category-card { position: relative; min-height: 260px; border: 0; padding: 0; overflow: hidden; background: #ddd; cursor: pointer; text-align: left; border-radius: 4px; }
.category-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 48%), transparent 72%); }
.category-card:hover img { transform: scale(1.035); }
.category-copy { position: absolute; z-index: 2; left: 28px; bottom: 26px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.category-copy strong { font-size: 24px; }
.category-copy small { width: max-content; font-weight: 800; border-bottom: 1px solid currentColor; }

.catalog-section { padding-bottom: 78px; scroll-margin-top: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.results-text { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; }
.filters { align-self: start; position: sticky; top: 112px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.filter-group + .filter-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-group h3, .filter-label { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.filter-group label { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; }
.filter-group input[type="radio"] { accent-color: #111; width: 16px; height: 16px; }
.filter-group select, .detail-copy select, .qty-input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #d6d6d6; border-radius: 9px; background: #fff; }
.filters .btn { margin-top: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.product-card { min-width: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: 6px; cursor: pointer; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: rgb(255 255 255 / 92%); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.product-badge.is-out { background: #171717; color: #fff; }
.product-info { padding: 12px 2px 0; }
.product-meta-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product-title { margin: 0; font-size: 16px; }
.product-price { margin: 0; font-weight: 800; white-space: nowrap; }
.product-sub { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.product-actions .btn { min-height: 42px; }
.detail-trigger { width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid #d9d9d9; background: #fff; border-radius: 10px; cursor: pointer; }
.empty-state { padding: 60px 20px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.promo-strip { background: var(--surface-2); }
.promo-inner { min-height: 104px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; }
.promo-inner strong { font-size: 28px; }
.promo-inner > span { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.benefits { padding-block: 42px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefits article { display: flex; gap: 14px; align-items: flex-start; padding: 12px; }
.benefit-icon { font-size: 25px; line-height: 1; }
.benefits strong { font-size: 12px; letter-spacing: .03em; }
.benefits p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { background: #f4f4f4; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding-block: 48px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; }
.footer-grid p, .footer-grid a { display: block; margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.footer-grid a:hover { color: #111; }
.footer-bottom { padding: 16px 20px; text-align: center; border-top: 1px solid #ddd; color: #777; font-size: 12px; }

.product-dialog { width: min(980px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); overflow: auto; }
.product-dialog::backdrop { background: rgb(0 0 0 / 54%); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); font-size: 24px; cursor: pointer; }
.product-detail { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 620px; }
.gallery { padding: 18px; background: #f3f3f3; }
.gallery-main-wrap { aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; border-radius: 12px; background: #e8e8e8; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, 92px); gap: 10px; margin-top: 10px; }
.gallery-thumb { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: #ddd; }
.gallery-thumb.is-active { border-color: #111; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 54px 38px 34px; }
.detail-copy h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.detail-price { margin: 8px 0 20px; font-size: 24px; font-weight: 850; }
.detail-description { color: var(--muted); }
.detail-meta { margin-top: 20px; }
.detail-meta strong, .detail-label { display: block; margin-bottom: 8px; font-size: 13px; }
.detail-meta p { margin: 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 10px; border: 1px solid #d5d5d5; border-radius: 999px; font-size: 12px; background: #fafafa; }
.color-chip { padding: 8px 12px; border: 1px solid #d5d5d5; border-radius: 999px; font-size: 12px; background: #fff; cursor: pointer; }
.color-chip:hover:not(:disabled) { border-color: #777; }
.color-chip.is-selected { background: #111; color: #fff; border-color: #111; }
.variant-stock { margin: 14px 0 0; color: #237a40; font-size: 13px; font-weight: 800; }
.variant-stock.is-out { color: #a12626; }
.detail-label { margin-top: 20px; font-weight: 800; }
.qty-input { max-width: 100px; }
.detail-copy > .btn { margin-top: 24px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 35%); }
.cart-drawer { position: fixed; z-index: 100; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: #fff; box-shadow: -15px 0 45px rgb(0 0 0 / 16%); transform: translateX(102%); transition: transform .25s ease; }
.cart-drawer.is-open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0; }
.cart-items { overflow: auto; padding: 8px 24px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 78px; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: #eee; }
.cart-item h3 { margin: 0 0 4px; font-size: 14px; }
.cart-item p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.cart-item-controls button { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 7px; cursor: pointer; }
.remove-item { align-self: start; border: 0; background: transparent; color: #777; cursor: pointer; font-size: 12px; }
.cart-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.cart-empty p { color: #111; font-weight: 700; }
.cart-footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: #fff; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cart-total strong { font-size: 23px; }
.cart-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.link-button { display: block; margin: 10px auto 0; border: 0; background: none; color: #666; text-decoration: underline; cursor: pointer; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 140%); opacity: 0; padding: 12px 16px; background: #111; color: #fff; border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; transition: transform .25s ease, opacity .25s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1100px) {
  .header-main { grid-template-columns: auto 1fr; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; }
  .header-actions { justify-self: end; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 24px, 1320px); }
  .topbar { text-align: center; }
  .topbar-track { animation-duration: 17s; }
  .header-main { min-height: 68px; gap: 12px; }
  .brand-word { font-size: 19px; }
  .search { width: min(210px, 48vw); }
  .hero { min-height: 520px; }
  .hero-image { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 20%)); }
  .hero h1 { font-size: 52px; }
  .category-grid { grid-template-columns: 1fr; padding-bottom: 42px; }
  .category-card { min-height: 200px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .filter-group + .filter-group { margin-top: 0; padding-top: 0; border-top: 0; }
  .filters .btn { grid-column: 1 / -1; margin-top: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .product-title { font-size: 14px; }
  .product-sub { min-height: 38px; }
  .product-actions { grid-template-columns: 1fr; }
  .detail-trigger { width: 100%; }
  .promo-inner { grid-template-columns: 1fr; gap: 10px; padding-block: 25px; text-align: center; }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-copy { padding: 30px 22px; }
  .gallery-main-wrap { max-height: 440px; }
}

@media (max-width: 480px) {
  .header-actions { width: 100%; grid-column: 1 / -1; padding-bottom: 10px; }
  .search { flex: 1; width: auto; }
  .main-nav { display: none; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 46px; }
  .filters { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-social-link { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #ddd; color: #222 !important; font-size: 12px !important; font-weight: 700; }
.footer-social-link:hover { border-color: #999; transform: translateY(-1px); }

.floating-socials { position: fixed; left: 18px; bottom: 22px; z-index: 85; display: flex; flex-direction: column; gap: 10px; }
.floating-social { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 12px 24px rgb(0 0 0 / 15%); background: #fff; border: 1px solid rgba(0,0,0,.08); }
.floating-social svg { width: 24px; height: 24px; fill: currentColor; }
.floating-social.instagram { color: #e4405f; }
.floating-social.facebook { color: #1877f2; }
.floating-social.tiktok { color: #111; }
.floating-social.whatsapp { color: #25d366; }
.floating-social:hover { transform: translateY(-2px); }

.floating-cart-button { position: fixed; right: 18px; bottom: 22px; z-index: 86; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 999px; background: #111; color: #fff; cursor: pointer; box-shadow: 0 14px 28px rgb(0 0 0 / 24%); font-weight: 800; font-size: 14px; }
.floating-cart-button:hover { transform: translateY(-2px); }
.floating-cart-icon { font-size: 18px; }
.floating-cart-count { min-width: 28px; height: 28px; padding-inline: 8px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #111; font-size: 12px; font-weight: 900; }

@media (max-width: 760px) {
  .floating-socials { left: 12px; bottom: 14px; gap: 8px; }
  .floating-social { width: 46px; height: 46px; }
  .floating-cart-button { right: 12px; bottom: 14px; min-height: 52px; padding-inline: 14px; }
}

@media (max-width: 520px) {
  .floating-cart-button { gap: 8px; font-size: 13px; }
  .floating-cart-button span:nth-child(2) { display: none; }
}
