/* =========================================================
   SEPHORA (projeto de estudo) – estilos
   ========================================================= */
:root {
    --red: #cf0a2c;
    --red-dark: #a8001f;
    --black: #000;
    --ink: #222;
    --gray: #666;
    --line: #e2e2e2;
    --soft: #f4f4f4;
    --pink: #f8d3dc;
    --gold: #d9b25f;
    --container: 1280px;
    --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; font-size: 15px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--gray); font-size: 13px; margin-top: 10px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; font-weight: 700; letter-spacing: 1px; font-size: 14px; border-radius: 30px; transition: .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-red:disabled { background: #bbb; cursor: not-allowed; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-light { background: #fff; color: #000; }
.btn-gold { background: var(--gold); color: #111; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px; font-size: 16px; margin-top: 18px; border-radius: 6px; }

/* ---------- Barra promocional ---------- */
.promo-bar { display: block; background: var(--red); color: #fff; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 60px; }
.pb-logo { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pb-seph { letter-spacing: 4px; font-size: 15px; }
.pb-friday { font-weight: 800; font-size: 30px; font-style: italic; letter-spacing: -1px; }
.pb-pill { background: #000; border-radius: 12px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.pb-text { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.pb-text b { font-size: 20px; font-weight: 700; }
.pb-text small { font-size: 15px; }
.pb-gift { font-size: 13px; opacity: .9; line-height: 1.2; font-style: italic; }
.pb-coupon { display: flex; flex-direction: column; align-items: center; }
.pb-coupon small { font-size: 11px; letter-spacing: 1px; }
.pb-coupon span { border: 2px solid #fff; border-radius: 20px; padding: 2px 12px; font-weight: 700; letter-spacing: 2px; font-size: 16px; }
.pb-rules { font-size: 12px; font-style: italic; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo img { height: 26px; width: auto; }
.logo-text { font-size: 30px; letter-spacing: 8px; font-weight: 500; color: #000; }
.logo-text.small { font-size: 18px; letter-spacing: 5px; }
.search { flex: 1; max-width: 400px; position: relative; }
.search input { width: 100%; height: 38px; border: 1px solid #c8c8c8; background: var(--soft); border-radius: 20px; padding: 0 44px 0 20px; font-size: 16px; outline: none; }
.search input:focus { border-color: #000; background: #fff; }
.search button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; }
.search svg, .ha-icon svg, .ha-cart svg, .share svg { fill: none; stroke: #000; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ha-icon { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.15; }
.ha-icon svg { width: 26px; height: 26px; }
.ha-account { font-size: 13px; letter-spacing: 1px; }
.ha-points { border: 2px solid #c8c8c8; border-radius: 3px; padding: 4px 8px; font-size: 13px; line-height: 1.25; display: flex; flex-direction: column; }
.ha-points b { font-weight: 600; }
.ha-cart { position: relative; }
.ha-cart svg { width: 28px; height: 28px; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: #000; }

.main-nav { background: var(--soft); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; height: 32px; }
.nav-inner a { display: flex; align-items: center; padding: 0 26px; font-size: 13px; letter-spacing: 1.2px; transition: .15s; }
.nav-inner a:hover { background: #e6e6e6; }
.nav-friday { background: #000; color: var(--red); font-weight: 800; font-style: italic; font-size: 17px !important; letter-spacing: 0 !important; gap: 4px; }
.nav-friday small { color: #fff; font-size: 8px; font-style: normal; letter-spacing: 2px; font-weight: 400; }
.nav-friday:hover { background: #222 !important; }
.nav-fran { background: var(--pink); font-weight: 800; font-size: 22px !important; letter-spacing: -1px !important; padding: 0 40px !important; }
.nav-marcas { background: #222; color: #fff; padding: 0 44px !important; font-weight: 600; }
.nav-marcas:hover { background: #000 !important; }

/* ---------- Hero / carrossel ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-track { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; height: 448px; position: relative; overflow: hidden; }
.slide-link { position: absolute; inset: 0; z-index: 1; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #f7d0d6; color: #000; font-size: 30px; line-height: 1; z-index: 3; display: grid; place-items: center; padding-bottom: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots { display: flex; justify-content: center; gap: 12px; margin: 10px 0 40px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.hero-dots button.active { background: #000; }

/* slide Friday */
.slide-friday { background: var(--red); color: #fff; display: grid; grid-template-columns: 30% 40% 30%; }
.seal { position: absolute; top: 24px; left: 22px; width: 86px; height: 86px; border-radius: 50%; background: #fff; color: #000; border: 3px solid #000; display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.05; letter-spacing: 1px; }
.seal b { font-family: 'Playfair Display', serif; font-size: 26px; display: inline-block; background: #000; color: #fff; border-radius: 50%; width: 30px; height: 30px; line-height: 30px; }
.seal-dark { position: static; flex: 0 0 auto; }
.sf-left { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-left: 40px; }
.sf-brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.sf-brand small { letter-spacing: 6px; font-size: 18px; }
.sf-brand strong { font-size: 44px; font-weight: 800; font-style: italic; }
.pill { background: #000; border-radius: 12px; padding: 3px 10px; font-size: 12px; margin-top: 4px; }
.sf-ate { font-weight: 700; font-size: 22px; margin-top: 30px; }
.sf-big { font-family: 'Playfair Display', serif; font-size: 150px; line-height: .85; display: flex; align-items: flex-start; }
.sf-big span { font-size: 70px; display: flex; flex-direction: column; line-height: 1; }
.sf-big small { font-size: 34px; }
.sf-sub { font-weight: 700; font-size: 22px; line-height: 1.2; margin-top: 10px; }
.sf-center { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.arch { position: absolute; bottom: 0; width: 82%; height: 92%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background: radial-gradient(circle at 50% 40%, #f59a85, #e1453d 70%); border: 10px solid #b4071f; border-bottom: 0; }
.sf-products { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; }
.sfp { position: absolute; bottom: 30px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.sfp svg rect:first-of-type { fill: transparent; }
.sfp-1 { width: 140px; left: 10%; bottom: 120px; }
.sfp-2 { width: 190px; left: 33%; bottom: 150px; }
.sfp-3 { width: 150px; right: 6%; bottom: 60px; }
.sfp-4 { width: 160px; left: 30%; bottom: 0; }
.sf-right { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding-right: 40px; }
.sf-right h3 { font-size: 24px; font-weight: 700; line-height: 1.15; margin-top: 10px; }
.sf-right p { font-size: 17px; }
.sf-right small { letter-spacing: 2px; margin-top: 10px; }
.sf-right em { font-size: 13px; margin-top: 10px; }
.hand { font-style: italic; font-size: 15px; }
.bag { width: 200px; height: 120px; background: linear-gradient(135deg, #222, #000); border-radius: 10px; transform: rotate(-8deg); border-top: 6px solid var(--red-dark); display: grid; place-items: center; font-size: 9px; letter-spacing: 3px; color: #aaa; box-shadow: 30px -10px 0 -6px #111; margin: 8px 0; }
.coupon { border: 2px solid #fff; border-radius: 24px; padding: 4px 18px; font-size: 20px; font-weight: 700; letter-spacing: 3px; }

/* slides genéricos */
.slide-split { background: var(--bg); color: var(--fg); display: grid; grid-template-columns: 42% 58%; align-items: center; }
.ss-text { padding: 0 40px 0 110px; }
.ss-text small { letter-spacing: 3px; font-weight: 600; }
.ss-text h2 { font-size: 64px; font-weight: 800; line-height: .95; margin: 10px 0 16px; }
.ss-text p { font-size: 22px; margin-bottom: 24px; }
.ss-img { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 100%; padding: 40px 100px 40px 0; }
.ss-img span { width: 170px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }
.ss-img svg > rect:first-of-type { fill: transparent; }
.ss-phone { align-items: center; }
.phone { width: 170px; height: 330px; border-radius: 28px; border: 10px solid #111; background: #fff; display: grid; place-items: center; }

/* ---------- Atalhos ---------- */
.shortcuts { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.shortcuts a { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.2; }
.sc-circle { width: 60px; height: 60px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; text-align: center; font-size: 24px; line-height: 1; flex: 0 0 auto; }
.sc-circle small { font-size: 7px; letter-spacing: 1px; }
.sc-red { background: var(--red); font-size: 13px; font-weight: 800; font-style: italic; display: flex; flex-direction: column; justify-content: center; }
.sc-red small { font-style: normal; font-weight: 400; font-size: 6px; }
.fran { font-weight: 800; letter-spacing: -1px; font-size: 18px; }

/* ---------- Vitrines ---------- */
.rail { margin-bottom: 50px; }
.rail-head, .cat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.rail-head h2, .brands h2 { font-size: 26px; font-weight: 700; }
.see-all { font-size: 13px; letter-spacing: 1px; text-decoration: underline; }
.rail-wrap { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-arrow { position: absolute; top: 35%; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 26px; line-height: 1; padding-bottom: 3px; }
.rail-arrow.prev { left: -14px; }
.rail-arrow.next { right: -14px; }

/* ---------- Card de produto ---------- */
.product-card { position: relative; display: flex; flex-direction: column; padding: 10px; border: 1px solid transparent; transition: .2s; background: #fff; }
.product-card:hover { border-color: var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.badge { display: inline-block; background: #000; color: #fff; font-size: 10px; font-weight: 600; padding: 4px 8px; letter-spacing: .5px; }
.badge-off { font-size: 12px; }
.badge-bf { background: #000; color: #f6c845; border: 1px solid #f6c845; }
.wish { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; z-index: 2; }
.wish svg { fill: none; stroke: #555; stroke-width: 1.5; }
.wish.on svg { fill: var(--red); stroke: var(--red); }
.wish-lg { width: 34px; height: 34px; }
.pc-img { aspect-ratio: 1; padding: 20px 10px 0; }
.pc-img svg { width: 100%; height: 100%; }
.pc-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px; flex: 1; }
.pc-brand { font-size: 14px; letter-spacing: .5px; }
.pc-name { font-size: 14px; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pc-rating small { color: var(--gray); font-size: 12px; }
.pc-price { display: flex; flex-direction: column; margin-top: auto; }
.pc-price s { color: #999; font-size: 13px; }
.pc-price b { font-size: 19px; }
.pc-price small { color: var(--gray); font-size: 13px; }
.pc-buy { padding: 0 4px 4px; }
.pc-buy .btn { border-radius: 4px; padding: 10px; font-size: 13px; opacity: 0; transition: .2s; }
.product-card:hover .pc-buy .btn, .pc-buy .btn:focus { opacity: 1; }

.stars { position: relative; display: inline-block; color: #ddd; font-size: 14px; letter-spacing: 1px; line-height: 1; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5b301; }

/* ---------- Blocos da home ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.pg-card { background: var(--bg); color: var(--fg); padding: 40px 30px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; transition: .2s; }
.pg-card:hover { transform: translateY(-3px); }
.pg-card small { letter-spacing: 3px; font-weight: 600; }
.pg-card h3 { font-size: 34px; font-weight: 800; line-height: 1; margin: 8px 0; }
.exclusive-banner { margin-bottom: 50px; }
.eb-text { background: #000; color: #fff; display: flex; gap: 40px; align-items: center; padding: 40px 60px; }
.eb-text h2 { font-size: 32px; font-weight: 800; }
.eb-text p { margin: 8px 0 18px; color: #ccc; }
.brands { margin-bottom: 50px; }
.brands h2 { margin-bottom: 20px; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.brands-grid a { border: 1px solid var(--line); padding: 26px 10px; text-align: center; font-weight: 600; letter-spacing: 1.5px; font-size: 14px; transition: .2s; }
.brands-grid a:hover { background: #000; color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 16px; color: var(--gray); padding: 16px 0 20px; }
.breadcrumb span { margin: 0 2px; color: #bbb; }
.breadcrumb b { color: var(--ink); font-weight: 500; }
.breadcrumb a:last-child { color: var(--ink); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Categoria ---------- */
.cat-head h1 { font-size: 30px; font-weight: 700; }
.cat-head span { color: var(--gray); }
.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: 60px; }
.filters h3 { font-size: 14px; letter-spacing: 1px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.filters h3:not(:first-of-type) { margin-top: 26px; }
.filters a { display: block; padding: 5px 0; font-size: 14px; }
.filters a.active, .filters a:hover { font-weight: 700; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 4px 0; cursor: pointer; }
.check input { accent-color: #000; }
.sort-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-toggle, .filters-top { display: none; }
.filter-toggle { border: 1px solid #000; border-radius: 4px; padding: 8px 16px; font-weight: 600; font-size: 13px; letter-spacing: 1px; }
.filters-top { justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: 1px; }
.filters-close { font-size: 30px; line-height: 1; width: 36px; height: 36px; }
body.no-scroll { overflow: hidden; }
.sort-bar select { margin-left: 8px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.pdp-gallery { position: relative; border-right: 1px solid var(--line); padding-right: 40px; }
.pdp-gallery .wish { top: 0; right: 40px; }
.pdp-main { position: relative; max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
.pdp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.pdp-slide.active { opacity: 1; }
.pdp-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 24px; }
.pdp-dots button { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.pdp-dots button.active { background: #000; }
.pdp-thumbs { display: flex; align-items: center; gap: 10px; }
.th-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; flex: 1; }
.th { aspect-ratio: 1; border: 1px solid transparent; overflow: hidden; padding: 4px; }
.th.active { border-color: #000; }
.th-arrow { font-size: 34px; color: #333; padding: 0 6px; }

.pdp-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pdp-info .badge { font-size: 13px; padding: 4px 8px; }
.pdp-info h1 { font-size: 30px; font-weight: 600; letter-spacing: 1px; margin-top: 8px; }
.pdp-info h2 { font-size: 18px; font-weight: 400; color: #333; margin: 4px 0 10px; }
.share { width: 28px; height: 28px; }
.rating-box { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: 12px; }
.rating-box b { border-left: 1px solid var(--line); padding-left: 10px; font-weight: 500; font-size: 13px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; margin: 18px 0 20px; gap: 16px; }
.pdp-price { display: flex; flex-direction: column; }
.pdp-price s { color: #888; font-size: 17px; }
.pdp-price strong { font-size: 34px; font-weight: 700; line-height: 1.1; }
.pdp-price span { font-size: 18px; }
.points { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.points div { display: flex; flex-direction: column; }
.points b { color: var(--red); font-size: 16px; }
.points span { font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.points .q { width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; cursor: help; }

.variation-box { border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.variation-box label { font-weight: 600; font-size: 17px; display: block; margin-bottom: 14px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 16px; top: 14px; width: 9px; height: 9px; border-right: 1.5px solid #333; border-bottom: 1.5px solid #333; transform: rotate(45deg); pointer-events: none; }
.select-wrap select { width: 100%; appearance: none; border: 1px solid #ccc; border-radius: 4px; padding: 10px 16px; font-size: 14px; background: #fff; }
.swatches-wrap { display: flex; align-items: center; gap: 6px; margin-top: 20px; }
.swatches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; flex: 1; }
.swatches::-webkit-scrollbar { display: none; }
.swatch { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sw-color { width: 40px; height: 44px; position: relative; border: 2px solid transparent; outline: 1px solid transparent; }
.swatch.active .sw-color { border-color: #fff; outline-color: #000; }
.sw-color em { position: absolute; bottom: 0; left: 0; right: 0; background: #000; color: #fff; font-size: 10px; font-style: normal; text-align: center; }
.swatch small { font-size: 11px; color: #555; max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-arrow { font-size: 26px; color: #333; }
.add-row { display: flex; justify-content: flex-end; margin: 20px 0; }
.qty-red { display: flex; align-items: center; background: var(--red); color: #fff; border-radius: 22px 0 0 22px; padding: 0 10px; height: 44px; border-right: 1px solid rgba(255,255,255,.4); }
.qty-red button { font-size: 22px; width: 26px; }
.qty-red input { width: 30px; text-align: center; background: transparent; border: 0; color: #fff; font-weight: 600; font-size: 16px; -moz-appearance: textfield; }
.qty-red input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add { background: var(--red); color: #fff; height: 44px; padding: 0 36px; border-radius: 0 22px 22px 0; font-size: 17px; font-weight: 500; }
.btn-add:hover, .qty-red:hover { background: var(--red-dark); }
.gift-box { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 8px; padding: 16px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.05); font-size: 14px; }
.gift-box a { color: var(--red); }
.gift-img { width: 110px; flex: 0 0 auto; }
.tabs { margin-top: 30px; }
.tab-buttons { display: flex; border-bottom: 1px solid var(--line); }
.tab-buttons button { padding: 12px 18px; font-weight: 600; font-size: 13px; letter-spacing: 1px; color: #888; border-bottom: 3px solid transparent; }
.tab-buttons button.active { color: #000; border-color: var(--red); }
.tab-panel { display: none; padding: 16px 0; font-size: 15px; color: #333; }
.tab-panel.active { display: block; }

/* ---------- Sacola ---------- */
.steps { border-bottom: 1px solid var(--line); box-shadow: 0 3px 6px rgba(0,0,0,.05); }
.steps-inner { display: flex; justify-content: flex-end; gap: 30px; }
.steps span { padding: 12px 40px; font-weight: 600; letter-spacing: 1px; font-size: 16px; color: #333; }
.steps span.active { border-bottom: 3px solid var(--red); }
.cart-page { display: grid; grid-template-columns: 1fr 370px; gap: 56px; padding-top: 60px; padding-bottom: 60px; position: relative; }
.flash { position: absolute; top: 12px; left: 16px; right: 16px; background: #000; color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 14px; transition: opacity .4s; }
.login-notice { border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.06); padding: 18px; font-size: 15px; margin-bottom: 40px; }
.login-notice a { color: var(--red); font-weight: 700; text-decoration: underline; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 600; font-size: 16px; padding: 0 16px 14px; }
.cart-table th:nth-child(2) { text-align: center; }
.cart-table td { padding: 10px 16px 30px; vertical-align: top; }
.r { text-align: right !important; }
.ct-prod { display: flex; gap: 16px; }
.ct-img { width: 60px; flex: 0 0 auto; }
.ct-prod div { display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.ct-prod strong { font-size: 16px; font-weight: 600; }
.ct-prod i { font-style: normal; color: #999; margin: 0 2px; }
.ct-prod s { color: #999; font-size: 12px; }
.ct-prod b { font-size: 16px; }
.ct-qty { text-align: center; }
.qty-form { display: flex; align-items: center; justify-content: center; gap: 12px; }
.qty-form button { font-size: 26px; width: 22px; }
.qty-form input { width: 54px; height: 48px; text-align: center; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.link-btn { text-decoration: underline; font-weight: 600; font-size: 14px; margin-top: 6px; }
.ct-wish { width: 50px; }
.ct-wish .wish { position: static; width: 34px; height: 34px; }
.ct-val { display: table-cell; font-size: 14px; }
.ct-val s, .ct-val b, .ct-val small { display: block; }
.ct-val s { color: #888; font-size: 13px; }
.ct-val b { font-size: 16px; }
.club-note { background: var(--soft); padding: 16px 30px; text-align: center; font-size: 12px; color: #555; margin-top: 60px; border-radius: 4px; }

.summary h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.summary h3 { font-size: 16px; font-weight: 600; margin: 30px 0 12px; }
.free b { display: block; font-size: 16px; }
.free small { font-size: 11px; }
.progress { height: 8px; background: #eee; border-radius: 4px; margin: 8px 0 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.more-link { display: block; text-align: center; text-decoration: underline; letter-spacing: 1.5px; font-size: 13px; font-weight: 600; }
.inline-form { display: flex; }
.inline-form input { flex: 1; min-width: 0; background: var(--soft); border: 1px solid #ccc; border-right: 0; border-radius: 6px 0 0 6px; padding: 10px 22px; font-size: 16px; outline: none; }
.inline-form button { background: #222; color: #fff; border-radius: 0 6px 6px 0; padding: 0 32px; letter-spacing: 1.5px; font-size: 16px; }
.cupom-ok { color: #1a7f37; font-size: 14px; margin-top: 8px; }
.cep-box { border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 16px; margin-top: 30px; }
.cep-box h3 { margin: 0 0 6px; }
.cep-box p { margin-bottom: 18px; font-size: 15px; }
.small-link { display: inline-block; font-size: 13px; font-style: italic; text-decoration: underline; margin-top: 10px; }
.ship-opts { list-style: none; margin-top: 12px; font-size: 14px; }
.ship-opts li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.totals { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin-top: 40px; }
.totals dt { font-weight: 500; font-size: 16px; padding-top: 8px; }
.totals dd { text-align: right; font-weight: 700; padding-top: 8px; }
.totals dd.note { grid-column: 1 / -1; font-weight: 400; font-size: 14px; padding-top: 0; }
.totals .red { color: var(--red); }
.totals .total { font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Checkout ---------- */
.checkout-page { display: grid; grid-template-columns: 1fr 370px; gap: 56px; padding-top: 60px; padding-bottom: 60px; }
.checkout-main { display: contents; }
.checkout-form { }
.checkout-form h1 { font-size: 26px; font-weight: 700; margin-bottom: 30px; }
.payment-methods { display: flex; gap: 20px; margin-bottom: 40px; }
.payment-option { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; transition: .2s; }
.payment-option input { appearance: none; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; cursor: pointer; transition: .2s; }
.payment-option input:checked { background: var(--red); border-color: var(--red); }
.payment-option.active { border-color: var(--red); background: #fff; }
.pm-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 1px; }
.pm-label svg { width: 24px; height: 24px; fill: none; stroke: #000; stroke-width: 2; }

.payment-form { margin-top: 30px; }
.payment-section { display: none; }
.payment-section.active { display: block; }
.payment-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.pm-desc { color: #666; font-size: 15px; margin-bottom: 20px; }

.pix-container { display: flex; gap: 30px; align-items: flex-start; margin: 30px 0; }
.qr-code { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; flex: 0 0 auto; }
.qr-code svg { width: 100%; height: 100%; }
.pix-code { flex: 1; }
.pix-code p { font-weight: 600; margin-bottom: 10px; }
.pix-input { width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 12px; font-size: 13px; font-family: monospace; margin-bottom: 12px; background: #f9f9f9; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; letter-spacing: .5px; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; background: #fff; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(207, 10, 44, 0.1); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-inline { display: flex; gap: 10px; }
.form-inline select { flex: 1; }

.error-box { background: #fee; border: 1px solid #f99; border-radius: 4px; padding: 16px; margin-bottom: 20px; }
.error-box p { color: #c33; font-size: 14px; margin: 6px 0; }

.checkout-summary { position: sticky; top: 100px; }
.checkout-summary h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.summary-items { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; max-height: 300px; overflow-y: auto; }
.summary-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.summary-item:last-child { border-bottom: none; }
.si-name { flex: 1; font-weight: 500; }
.si-qty { color: #666; font-size: 13px; }
.si-price { font-weight: 700; min-width: 80px; text-align: right; }

.summary-totals { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--soft); }
.summary-totals dl { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; gap: 16px; font-size: 14px; }
.summary-totals dt { font-weight: 500; }
.summary-totals dd { text-align: right; font-weight: 700; }
.summary-totals .red { color: var(--red); }

.summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total b { font-size: 22px; }
.total-parcelas { font-size: 13px; color: #666; margin-top: 6px; text-align: right; }

/* Resultado PIX */
.payment-result { background: var(--soft); border-radius: 8px; padding: 24px; margin: 20px 0; }
.payment-result h2 { color: #1a7f37; margin-bottom: 8px; }
.result-desc { color: #666; margin-bottom: 20px; }
.payment-result .pix-container { display: flex; gap: 30px; align-items: flex-start; margin: 30px 0; }
.payment-result .qr-code { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.payment-result .qr-code img { width: 100%; height: 100%; object-fit: contain; }
.payment-result .pix-code { flex: 1; }
.expira { font-size: 14px; color: var(--red); margin-top: 16px; text-align: center; font-weight: 600; }

/* ---------- Login / cadastro ---------- */
.auth-page { padding-top: 50px; padding-bottom: 70px; }
.auth-box { max-width: 440px; margin: 0 auto; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.06); border-radius: 8px; padding: 36px 32px; }
.auth-box h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.auth-sub { color: var(--gray); margin: 4px 0 24px; }
.auth-box .btn-lg { margin-top: 6px; }
.auth-box .error-box a { color: var(--red); font-weight: 700; text-decoration: underline; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-alt a { color: var(--red); font-weight: 700; text-decoration: underline; }
.ha-account a { text-decoration: underline; }

/* ---------- Rodapé ---------- */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.benefits-grid b { display: block; letter-spacing: 1px; }
.benefits-grid span { font-size: 13px; color: var(--gray); }
.newsletter { background: var(--soft); padding: 34px 0; }
.nl-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.nl-inner h3 { font-size: 20px; letter-spacing: 1px; }
.nl-form { display: flex; gap: 10px; flex: 0 1 460px; }
.nl-form input { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 30px; padding: 0 20px; height: 46px; }
.site-footer { background: #000; color: #fff; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 36px; }
.footer-grid h4 { font-size: 14px; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #bbb; font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: #bbb; font-size: 14px; }
.app-badges { display: flex; gap: 10px; margin-top: 12px; }
.app-badges span { border: 1px solid #555; border-radius: 6px; padding: 6px 12px; font-size: 13px; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom .logo-text { color: #fff; }
.footer-bottom p { color: #888; font-size: 12px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: #000; color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; transition: transform .3s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1200px) {
    .pb-gift, .pb-rules { display: none; }
    .nav-inner a { padding: 0 12px; }
    .ha-points { display: none; }
    .rail-track { grid-auto-columns: calc((100% - 40px) / 3); }
    .ss-text { padding-left: 80px; }
    .ss-text h2 { font-size: 48px; }
    .sf-big { font-size: 110px; }
}

@media (max-width: 900px) {
    .promo-inner { height: auto; padding: 8px 16px; justify-content: center; }
    .pb-logo, .pb-coupon { display: none; }
    .pb-text b { font-size: 15px; }
    .pb-text small { font-size: 12px; }
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .menu-toggle { display: flex; }
    .logo img { height: 20px; }
    .search { order: 5; flex: 1 0 100%; max-width: none; }
    .header-actions { gap: 14px; }
    .ha-label span, .ha-account { display: none; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-inner { flex-direction: column; height: auto; }
    .nav-inner a { padding: 12px 16px !important; border-bottom: 1px solid #e6e6e6; }

    .slide { height: auto; min-height: 420px; }
    .slide-friday { grid-template-columns: 1fr; }
    .sf-center, .sf-right { display: none; }
    .sf-left { padding: 30px 16px; }
    .seal { width: 64px; height: 64px; font-size: 8px; top: 12px; left: 12px; }
    .seal b { font-size: 18px; width: 22px; height: 22px; line-height: 22px; }
    .slide-split { grid-template-columns: 1fr; }
    .ss-text { padding: 40px 24px 0; text-align: center; }
    .ss-text h2 { font-size: 40px; }
    .ss-text p { font-size: 18px; }
    .ss-img { padding: 20px; }
    .ss-img span { width: 100px; }
    .phone { width: 110px; height: 200px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 22px; }
    .hero-arrow.prev { left: 6px; }
    .hero-arrow.next { right: 6px; }

    .shortcuts { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
    .shortcuts a { flex-direction: column; text-align: center; font-size: 12px; flex: 0 0 90px; }
    .rail-track { grid-auto-columns: calc((100% - 20px) / 2); }
    .rail-arrow { display: none; }
    .pc-buy .btn { opacity: 1; }
    .promo-grid { grid-template-columns: 1fr; }
    .eb-text { flex-direction: column; padding: 30px 20px; text-align: center; gap: 16px; }

    .cat-layout { grid-template-columns: 1fr; }
    /* filtros viram painel que abre pelo botão FILTRAR */
    .filters { display: none; position: fixed; inset: 0; z-index: 300; background: #fff; overflow-y: auto; padding: 16px 16px 40px; }
    .filters.open { display: block; }
    .filters-top { display: flex; }
    .filters h3:not(:first-of-type) { margin-top: 22px; }
    .filters a, .check { padding: 8px 0; }
    .sort-bar { justify-content: space-between; }
    .filter-toggle { display: inline-flex; }
    .sort-bar select { max-width: 150px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .pdp { grid-template-columns: 1fr; gap: 20px; }
    .pdp-gallery { border-right: 0; padding-right: 0; }
    .pdp-gallery .wish { right: 0; }
    .price-row { flex-direction: column; align-items: stretch; }
    .add-row { justify-content: stretch; }
    .btn-add { flex: 1; padding: 0 16px; }

    .steps-inner { justify-content: center; gap: 0; }
    .steps span { padding: 12px 20px; }
    .cart-page { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr { display: block; }
    .cart-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 12px 0; }
    .cart-table td { padding: 6px 0; }
    .ct-prod { grid-column: 1 / -1; }
    .ct-wish { display: none !important; }
    .ct-qty { text-align: left; }
    .qty-form { justify-content: flex-start; }
    .inline-form button { padding: 0 18px; }

    .benefits-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .checkout-page { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
    .pix-container { flex-direction: column; gap: 20px; }
    .qr-code { width: 150px; height: 150px; margin: 0 auto; }
    .form-row { grid-template-columns: 1fr; }
}

/* Fotos enviadas pelo admin */
.pc-img img, .pdp-slide img, .th img, .ct-img img, .ss-img img, .sfp img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ss-img img, .sfp img { background: transparent; }
.th-list { grid-auto-rows: auto; }

/* Evita que conteúdo rolável (cores, miniaturas, vitrines) alargue a página */
body { overflow-x: clip; }
.pdp > *, .cat-layout > *, .cart-page > *, .rail-wrap, .swatches-wrap, .swatches, .th-list, .variation-box, .buy-form { min-width: 0; }

@media (max-width: 600px) {
    body { font-size: 14px; }

    /* header */
    .header-actions { gap: 12px; }
    .header-actions .ha-icon:not([aria-label="Favoritos"]) { display: none; }
    .logo img { height: 18px; }
    .ha-cart svg { width: 24px; height: 24px; }

    /* produto */
    .breadcrumb { font-size: 13px; padding: 12px 0; }
    .pdp-main { max-width: 260px; }
    .pdp-dots { margin: 10px 0 14px; }
    .th-list { gap: 8px; }
    .th-arrow { font-size: 26px; padding: 0 2px; }
    .pdp-info .badge { font-size: 11px; }
    .pdp-info h1 { font-size: 22px; }
    .pdp-info h2 { font-size: 15px; }
    .price-row { margin: 14px 0; }
    .pdp-price strong { font-size: 26px; }
    .pdp-price span { font-size: 15px; }
    .points { padding: 10px 12px; }
    .points b { font-size: 14px; }
    .points span { font-size: 11px; }
    .variation-box { padding: 14px 12px 10px; }
    .variation-box label { font-size: 15px; margin-bottom: 10px; }
    .swatches-wrap { margin-top: 14px; gap: 2px; }
    .swatch { flex: 0 0 48px; }
    .sw-color { width: 34px; height: 38px; }
    .swatch small { max-width: 48px; font-size: 10px; }
    .add-row { margin: 16px 0; }
    .qty-red, .btn-add { height: 46px; }
    .btn-add { font-size: 15px; }
    .gift-box { padding: 12px; gap: 12px; font-size: 13px; }
    .gift-img { width: 70px; }
    .tab-buttons { overflow-x: auto; scrollbar-width: none; }
    .tab-buttons button { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
    .tab-panel { font-size: 14px; }

    /* vitrines e títulos */
    .rail-head h2, .brands h2, .cat-head h1 { font-size: 20px; }
    .rail-track { gap: 10px; grid-auto-columns: calc((100% - 10px) / 2); }
    .product-card { padding: 6px; }
    .pc-img { padding: 26px 4px 0; }
    .pc-brand, .pc-name { font-size: 12px; }
    .pc-name { min-height: 32px; }
    .pc-price b { font-size: 16px; }
    .pc-price small, .pc-price s { font-size: 11px; }
    .pc-buy .btn { font-size: 12px; padding: 9px 4px; }
    .badge { font-size: 9px; padding: 3px 6px; }
    .wish { width: 24px; height: 24px; }

    /* sacola */
    .summary h2 { font-size: 22px; }
    .inline-form input { padding: 10px 12px; font-size: 14px; }
    .inline-form button { font-size: 14px; padding: 0 14px; }
    .club-note { padding: 12px; margin-top: 30px; }
    .benefits-grid, .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
