/* ================================
   JOVENZA — GLOBAL
================================ */

* {
  box-sizing: border-box;
}

:root {
  --black: #111;
  --muted: #777;
  --white: #fff;
  --line: #e8e8e8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ================================
   ANNOUNCEMENT BAR
================================ */

.announcement {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ================================
   HEADER
================================ */

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  gap: 28px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  font-weight: 600;
}

.nav-links a {
  padding: 30px 0;
  position: relative;
}

.nav-links a.active:after,
.nav-links a:hover:after {
  content: "";
  position: absolute;
  bottom: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button,
.cart-button {
  border: 0;
  background: none;
  font-size: 23px;
  padding: 4px;
  position: relative;
}

.cart-button span {
  font-size: 10px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  position: absolute;
  right: -5px;
  top: -3px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.currency {
  font-size: 10px;
  border: 1px solid #ddd;
  padding: 7px 9px;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
}

/* ================================
   HERO / MAIN BANNER
================================ */

.hero {
  height: min(580px, 55vw);
  min-height: 400px;
  position: relative;
  background: #222;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(.72);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .7),
    rgba(0, 0, 0, .12) 70%
  );
}

.hero-copy {
  position: absolute;
  left: 4.7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero h1,
.about h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: .4px;
  margin: 0 0 20px;
}

.hero-description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s;
}

.button-light {
  background: #fff;
  color: #111;
}

.button-light:hover {
  background: #ddd;
}

.button-dark {
  background: #111;
  color: #fff;
}

.button-dark:hover {
  background: #333;
}

/* ================================
   HERO CAROUSEL
================================ */

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide .hero-image,
.hero-slide .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide .hero-image {
  object-fit: cover;
}

.hero-slide .hero-copy {
  position: absolute;
  z-index: 2;
}

/* Indicadores minimalistas */

.hero-pagination {
  position: absolute;
  right: 5%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-pagination .hero-page {
  position: relative;
  width: 32px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}

.hero-pagination .hero-page::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .4);
  transition: background .3s ease, height .3s ease;
}

.hero-pagination .hero-page.active::after {
  background: #fff;
  height: 3px;
}

.hero-pagination .hero-page:hover::after {
  background: #fff;
}

.hero-pagination > span {
  display: none;
}

/* ================================
   SECTIONS
================================ */

.section {
  padding: 58px 4.5%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}

.dark-eyebrow {
  color: #777;
  margin-bottom: 7px;
  font-size: 9px;
}

.section-heading h2 {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0;
}

.text-link {
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  margin-left: 8px;
}

/* ================================
   PRODUCT GRID
================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
}

.product-image-wrap {
  position: relative;
  background: #f3f3f3;
  overflow: hidden;
  aspect-ratio: .82;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #111;
  color: #fff;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
}

.product-name {
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 5px;
}

.product-color {
  font-size: 10px;
  color: #777;
  margin: 0 0 8px;
}

.rating {
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rating span {
  color: #777;
  letter-spacing: 0;
  font-size: 10px;
}

.product-price {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.add-button {
  width: 100%;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 11px 8px;
  font-size: 10px;
}

.add-button:hover {
  background: #333;
}

/* ================================
   COLLECTIONS
================================ */

.collections {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #222;
  color: #fff;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, .72),
    rgba(0, 0, 0, .02)
  );
}

.collection-title {
  position: absolute;
  bottom: 20px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.collection-title strong {
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  letter-spacing: 1px;
}

.collection-title small {
  font-size: 10px;
}

/* ================================
   BENEFITS
================================ */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #111;
  color: #fff;
  padding: 25px 5%;
  gap: 20px;
}

.benefits > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.benefit-icon {
  font-size: 28px;
}

.benefits p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.benefits strong {
  font-size: 9px;
  letter-spacing: .5px;
}

.benefits small {
  font-size: 9px;
  color: #bbb;
}

/* ================================
   ABOUT
================================ */

.about {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
  background: #f5f5f5;
}

.about .eyebrow {
  color: #777;
}

.about h2 {
  font-size: clamp(42px, 5vw, 64px);
  margin-bottom: 18px;
}

.about h2 span {
  color: #888;
}

.about > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 auto 25px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.about .button {
  margin-top: 4px;
}

/* ================================
   FOOTER
================================ */

footer {
  background: #101010;
  color: #fff;
  padding: 48px 4.5% 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr .7fr .8fr 1.5fr;
  gap: 35px;
  padding-bottom: 38px;
}

.footer-brand p,
.newsletter p {
  font-size: 11px;
  color: #aaa;
  line-height: 1.7;
}

.footer-main h3 {
  font-size: 10px;
  letter-spacing: 1px;
  margin: 7px 0 17px;
}

.footer-main > div:not(.footer-brand) a {
  display: block;
  color: #aaa;
  font-size: 11px;
  margin: 11px 0;
}

/* NEWSLETTER */

.newsletter form {
  display: flex;
  border: 1px solid #555;
  margin-top: 18px;
}

.newsletter input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  outline: none;
  font-size: 11px;
}

.newsletter form button {
  width: 45px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 20px;
}

.newsletter small {
  display: block;
  color: #bbb;
  margin-top: 8px;
}

/* FOOTER BOTTOM */

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #999;
  font-size: 9px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

/* SOCIAL LINKS */

.social-links a {
  display: block;
  color: #aaa;
  font-size: 11px;
  margin: 11px 0;
}

/* ================================
   CART DIALOG
================================ */

.cart-dialog,
.search-dialog {
  border: 0;
  width: min(480px, calc(100% - 28px));
  padding: 26px;
  box-shadow: 0 20px 80px #0004;
}

.cart-dialog::backdrop,
.search-dialog::backdrop {
  background: #0008;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.dialog-heading h2 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  font-size: 22px;
  margin: 0;
}

.close-button {
  border: 0;
  background: none;
  font-size: 27px;
}

.cart-items {
  max-height: 300px;
  overflow: auto;
}

.empty-cart {
  color: #777;
  font-size: 13px;
  padding: 20px 0;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.cart-line small {
  display: block;
  color: #777;
  margin-top: 4px;
}

.remove-item {
  border: 0;
  background: none;
  text-decoration: underline;
  font-size: 10px;
  color: #777;
}

.cart-summary {
  padding-top: 18px;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.cart-summary p,
.cart-summary small,
.search-hint {
  font-size: 10px;
  color: #777;
  line-height: 1.6;
}

.full-button {
  width: 100%;
  margin: 12px 0;
}

/* ================================
   SEARCH DIALOG
================================ */

.search-dialog form {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.search-dialog input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
}

.search-dialog .button {
  padding: 12px;
}

/* ================================
   RESPONSIVE — TABLET
================================ */

@media (max-width: 1000px) {

  .site-header {
    gap: 15px;
    padding: 0 3%;
  }

  .nav-links {
    gap: 18px;
  }

  .header-actions {
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }

  .product-card:nth-child(n+4) {
    display: block;
  }

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

  .collection-card {
    height: 240px;
  }

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

/* ================================
   RESPONSIVE — MOBILE
================================ */

@media (max-width: 650px) {

  .announcement {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .site-header {
    height: 64px;
    position: sticky;
  }

  .wordmark {
    font-size: 25px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    padding: 10px 24px 20px;
    box-shadow: 0 12px 15px #0001;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links a.active:after,
  .nav-links a:hover:after {
    bottom: 5px;
    right: auto;
    width: 25px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button {
    font-size: 20px;
  }

  .currency {
    display: none;
  }

  .hero {
    min-height: 440px;
    height: 72vh;
    max-height: 600px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, .78),
      rgba(0, 0, 0, .15)
    );
  }

  .hero-copy {
    left: 6%;
    right: 4%;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-description {
    font-size: 12px;
  }

  .section {
    padding: 42px 5%;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 12px;
  }

  .product-card {
  display: block;
  }

  .product-name {
    font-size: 11px;
  }

  .collections {
    padding-top: 0;
    gap: 9px;
  }

  .collection-card {
    height: 170px;
  }

  .collection-title {
    left: 12px;
    bottom: 14px;
  }

  .collection-title strong {
    font-size: 16px;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
    padding: 25px 4%;
    gap: 22px 8px;
  }

  .benefits > div {
    justify-content: flex-start;
  }

  .benefit-icon {
    font-size: 23px;
  }

  .benefits strong {
    font-size: 8px;
  }

  .benefits small {
    font-size: 8px;
  }

  .about {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.7;
  }

  .footer-bottom div {
    flex-wrap: wrap;
  }

  .hero-pagination {
    bottom: 25px;
    right: 5%;
  }

  .hero-pagination .hero-page {
    width: 28px;
  }

  .desktop-only {
    display: none;
  }
}

/* ================================
   ACCESSIBILITY — REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .hero-page,
  .product-image,
  .collection-card img {
    transition: none;
  }
}