@font-face {
  font-family: "Avenir KS";
  src: url("assets/fonts/AvenirNextLTPro-Regular.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Avenir KS";
  src: url("assets/fonts/AvenirNextLTPro-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

:root {
  --ink: #202235;
  --muted: #707180;
  --line: #e7e1e0;
  --cream: #f7f2f0;
  --blush: #f2e5e7;
  --pink: #ff7fa6;
  --pink-dark: #d9557e;
  --plum: #812f49;
  --lavender: #c8b8ed;
  --blue: #badff3;
  --white: #fff;
  --green: #1faa59;
  --shadow: 0 18px 60px rgba(55, 36, 45, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Avenir KS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }

.is-hidden { display: none !important; }

.announcement {
  min-height: 34px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.announcement-dot { width: 3px; height: 3px; background: var(--pink); border-radius: 50%; }

.site-header {
  height: 92px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(32, 34, 53, .08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}

.brand-button, .icon-button, .text-button {
  border: 0;
  background: none;
  cursor: pointer;
}

.brand-button { padding: 6px; }
.brand-button img { width: 292px; height: 64px; object-fit: contain; }

.icon-button {
  width: 42px;
  height: 42px;
  padding: 9px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.icon-button.is-hidden {
  display: block !important;
  visibility: hidden;
}

.icon-button svg, .primary-button svg, .dialog-close svg, .service-strip svg, .whatsapp-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main { min-height: 70vh; }

.hero {
  min-height: 670px;
  padding: clamp(54px, 8vw, 100px) max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  overflow: hidden;
  background: #f7eee9;
}

.hero-copy { position: relative; z-index: 2; max-width: 590px; }

.eyebrow {
  margin: 0 0 15px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--plum);
  font-weight: 400;
  font-style: normal;
}

.hero-text {
  max-width: 510px;
  margin: 29px 0 0;
  color: #555664;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.primary-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .025em;
}

.primary-button svg { width: 21px; }

.hero-art { min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-art > img { width: min(58vw, 760px); max-width: none; aspect-ratio: 2 / 1; display: block; object-fit: cover; border-radius: 12px; box-shadow: 0 24px 42px rgba(78, 45, 57, .12); }

.quick-stats {
  max-width: 1240px;
  margin: -37px auto 0;
  padding: 0 clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 5;
}

.quick-stats div {
  min-height: 106px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats div:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.quick-stats div:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.quick-stats div + div { border-left: 1px solid var(--line); }
.quick-stats strong { color: var(--plum); font-family: Georgia, serif; font-size: 29px; font-weight: 400; }
.quick-stats span { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.categories-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 105px 40px 115px;
}

.section-heading { margin-bottom: 37px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4.2vw, 55px); font-weight: 400; letter-spacing: -.025em; }
.text-button { padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.category-card {
  min-height: 500px;
  padding: 0;
  display: grid;
  grid-template-rows: 132px 1fr;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card:nth-child(1) { background: #ead9d5; }
.category-card:nth-child(2) { background: #f2cfdb; }
.category-card:nth-child(3) { background: #f5dce4; }
.category-card-copy { padding: 27px 28px 20px; position: relative; z-index: 2; background: rgba(255,255,255,.92); }
.category-card .eyebrow { margin-bottom: 9px; color: var(--ink); opacity: .58; }
.category-card h3 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.category-card p { max-width: 260px; margin: 8px 0 0; color: #626270; font-size: 14px; line-height: 1.5; }
.category-card img { width: 100%; height: 100%; position: static; object-fit: cover; object-position: center; transition: transform .35s ease; }
.category-card:hover img { transform: scale(1.035); }
.category-arrow { width: 40px; height: 40px; display: grid; place-items: center; position: absolute; right: 20px; bottom: 20px; z-index: 4; color: #fff; background: var(--ink); border-radius: 50%; font-size: 20px; }

.service-strip {
  padding: 38px max(28px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  background: var(--ink);
  color: #fff;
}

.service-strip article { display: flex; align-items: center; gap: 17px; }
.service-strip svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--pink); }
.service-strip strong, .service-strip span { display: block; }
.service-strip strong { font-size: 14px; }
.service-strip span { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 12px; }

.catalog-view { max-width: 1360px; margin: 0 auto; padding: 64px 38px 110px; }
.catalog-hero { max-width: 720px; margin-bottom: 47px; }
.catalog-hero h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: -.035em; }
.catalog-hero > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.catalog-toolbar { padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 12px; }
.filter-chip.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.sort-control select { padding: 8px 30px 8px 10px; border: 0; color: var(--ink); background: #fff; font-weight: 700; }
.catalog-count { margin: 25px 0 17px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 16px; }

.product-card { min-width: 0; position: relative; cursor: pointer; }
.product-image-wrap { aspect-ratio: 1 / 1.02; display: grid; place-items: center; position: relative; overflow: hidden; background: #fff; border: 1px solid #eee9e8; border-radius: 10px; }
.product-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.055); }
.product-card--drills .product-image-wrap { background: linear-gradient(145deg, #f8edf2, #edf4f5); }
.product-card--drills .product-image-wrap img { object-fit: contain; transform: scale(1.1); }
.product-card--drills:hover .product-image-wrap img { transform: scale(1.15); }
.product-badge { padding: 7px 10px; position: absolute; top: 10px; left: 10px; z-index: 2; color: #fff; background: var(--plum); border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-card-body { padding: 16px 3px 0; }
.product-card-series { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.product-card h3 { min-height: 42px; margin: 0; font-size: 15px; font-weight: 400; line-height: 1.38; }
.product-color { margin: 7px 0 12px; color: var(--muted); font-size: 12px; }
.product-prices { display: flex; align-items: baseline; gap: 8px; }
.price-promo { color: var(--plum); font-size: 19px; font-weight: 700; }
.price-regular { color: #9898a0; font-size: 12px; text-decoration: line-through; }

.product-dialog {
  width: min(1160px, calc(100% - 34px));
  max-height: calc(100dvh - 34px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 30px 100px rgba(20, 18, 25, .33);
}

.product-dialog::backdrop { background: rgba(24, 22, 28, .66); backdrop-filter: blur(4px); }
.dialog-shell { min-height: 650px; display: grid; grid-template-columns: 55% 45%; position: relative; background: #fff; }
.dialog-close { width: 42px; height: 42px; padding: 10px; position: absolute; top: 16px; right: 16px; z-index: 10; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; }
.product-gallery { padding: 30px; display: grid; grid-template-columns: 68px 1fr; gap: 14px; background: #f7f5f4; }
.gallery-main { min-width: 0; min-height: 550px; display: grid; place-items: center; overflow: hidden; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; max-height: 590px; object-fit: contain; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; order: -1; }
.gallery-thumb { width: 64px; height: 64px; padding: 4px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; }
.gallery-thumb.is-active { border-color: var(--plum); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb span { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.product-details { padding: 64px 48px 42px; overflow-y: auto; }
.product-series { margin: 0 0 10px; color: var(--pink-dark); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.product-details h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(31px, 3vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.dialog-color { margin-top: 12px; color: var(--muted); font-size: 13px; }
.dialog-pricing { margin: 24px 0 22px; display: flex; align-items: center; gap: 11px; }
.dialog-pricing .price-promo { font-size: 29px; }
.dialog-pricing .price-regular { font-size: 14px; }
.dialog-summary { margin: 0 0 29px; color: #5f606b; font-size: 14px; line-height: 1.65; }
.detail-block { padding: 18px 0; border-top: 1px solid var(--line); }
.detail-block h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.detail-block ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.detail-block li { padding-left: 17px; position: relative; color: #63646e; font-size: 12px; line-height: 1.45; }
.detail-block li::before { content: ""; width: 5px; height: 5px; position: absolute; top: .55em; left: 1px; background: var(--pink); border-radius: 50%; }
.whatsapp-button { min-height: 55px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #fff; background: var(--green); border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; }
.whatsapp-button svg { width: 22px; }
.whatsapp-button.is-disabled { color: #858585; background: #dedede; cursor: not-allowed; pointer-events: none; }

.site-footer { min-height: 190px; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer img { width: 145px; height: 38px; object-fit: contain; margin-bottom: 10px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--plum); text-decoration: none; }

@media (max-width: 980px) {
  .hero { min-height: 610px; grid-template-columns: 1fr 1fr; }
  .hero-art { min-height: 400px; }
  .category-card { min-height: 390px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .dialog-shell { grid-template-columns: 51% 49%; }
  .product-details { padding: 62px 30px 34px; }
}

@media (max-width: 760px) {
  .announcement { min-height: 31px; font-size: 9px; letter-spacing: .13em; }
  .site-header { height: 80px; padding: 0 14px; }
  .brand-button img { width: 248px; height: 64px; }
  .icon-button { width: 38px; height: 38px; }

  .hero { min-height: auto; padding: 53px 22px 22px; display: block; }
  .hero h1 { font-size: clamp(42px, 11.7vw, 52px); letter-spacing: -.045em; }
  .hero-text { margin: 23px 0 0; font-size: 16px; }
  .primary-button { width: 100%; justify-content: center; }
  .hero-art { min-height: 0; margin-top: 28px; }
  .hero-art > img {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 2;
    object-position: 55% center;
  }

  .quick-stats { margin: 0; padding: 0; }
  .quick-stats div { min-height: 86px; padding: 14px 6px; border-radius: 0 !important; }
  .quick-stats strong { font-size: 21px; }
  .quick-stats span { font-size: 8px; letter-spacing: .08em; text-align: center; }

  .categories-section { padding: 38px 18px 78px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 39px; }
  .text-button { display: none; }
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-card,
  .category-card--lamparas,
  .category-card--drills { min-height: 0; grid-template-rows: auto auto; }
  .category-card-copy { padding: 20px 26px 4px; }
  .category-card h3 { line-height: 1.08; }
  .category-card p { line-height: 1.35; }
  .category-card img { height: auto; aspect-ratio: 1; }
  .service-strip { padding: 34px 23px; grid-template-columns: 1fr; gap: 27px; }

  .catalog-view { padding: 46px 14px 80px; }
  .catalog-hero { margin-bottom: 30px; padding: 0 5px; }
  .catalog-hero h1 { font-size: 46px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-chip { white-space: nowrap; }
  .sort-control { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .product-card h3 { min-height: 54px; font-size: 13px; }
  .product-image-wrap { aspect-ratio: 1; }
  .product-image-wrap img { width: 100%; height: 100%; }
  .product-badge { max-width: 78%; padding: 5px 7px; font-size: 7px; }
  .discount-badge { top: auto; bottom: 8px; font-size: 8px; }
  .price-promo { font-size: 17px; }

  .product-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog-shell { display: block; width: 100%; height: 100dvh; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .dialog-close { position: fixed; top: 13px; right: 13px; }
  .product-gallery { min-height: 430px; padding: 52px 14px 16px; display: flex; flex-direction: column; flex-shrink: 0; }
  .gallery-main { min-height: 320px; height: 320px; }
  .gallery-main img, .gallery-main video { max-height: 320px; }
  .gallery-thumbs { flex-direction: row; order: 0; overflow-x: auto; }
  .gallery-thumb { flex: 0 0 58px; width: 58px; height: 58px; }
  .product-details { padding: 32px 20px 36px; overflow: visible; }
  .product-details h2 { font-size: 36px; }
  .whatsapp-button { position: static; margin-top: 24px; box-shadow: none; }
}

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