:root {
  --evora-copper: #b87342;
  --evora-ink: #201713;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.nav .brand {
  min-width: 0;
  flex: 0 1 255px;
}

.nav .brand img {
  display: block;
  width: 230px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.foot-brand {
  min-width: 0;
  max-width: 250px;
}

.foot-brand img {
  display: block;
  flex: 0 1 230px;
  width: 230px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero-image {
  background-image: linear-gradient(90deg, #30190c 0%, transparent 20%), url('../hero-espiral.png');
  background-size: auto, auto 72%;
  background-position: 0 0, left center;
  background-repeat: no-repeat;
}

.home-hero-text .ornament {
  margin-bottom: 0;
}

.hero-logo {
  display: block;
  width: min(100%, 1200px);
  height: auto;
  margin: 0 0 18px;
  object-fit: contain;
  filter: brightness(1.2);
}

.home-hero h1 {
  margin-top: 4px;
}

body .home-hero {
  grid-template-columns: minmax(0, 1fr);
}

.home-hero > .home-hero-image {
  display: none;
}

.home-hero > .home-hero-text {
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
}

.home-hero .hero-logo {
  margin-right: auto;
  margin-left: auto;
}

.home-hero-text::after {
  content: "";
  position: absolute;
  top: clamp(40px, 6vw, 64px);
  left: 50%;
  width: min(calc(100% - 48px), 1200px);
  aspect-ratio: 3 / 1;
  transform: translateX(-160%);
  background: linear-gradient(110deg, transparent 35%, #f4b43b44 46%, #fff1ad 50%, #f4b43b44 54%, transparent 65%);
  -webkit-mask: url("../evora-logo-horizontal.png") center / 100% 100% no-repeat;
  mask: url("../evora-logo-horizontal.png") center / 100% 100% no-repeat;
  pointer-events: none;
  animation: hero-logo-shine 10s linear infinite;
}

@keyframes hero-logo-shine {
  0% { transform: translateX(-160%); }
  20%, 100% { transform: translateX(160%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-text::after {
    animation: none;
    display: none;
  }
}

.home-hero .home-hero-text h1 {
  max-width: 12ch;
  margin: 4px auto 0;
}

.home-hero .lead {
  margin-right: auto;
  margin-left: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--evora-copper);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .nav {
    height: auto;
    min-height: 82px;
    padding: 10px 24px;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .nav .brand {
    min-width: 0;
  }

  .nav nav {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
  }

  .nav .icons {
    margin-left: auto;
  }

  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .about-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-hero-copy {
    padding: 64px 32px;
  }

  .about-image {
    min-height: 360px;
  }

  .territory {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .territory-photo {
    min-height: 340px;
  }

  .collection-block {
    height: auto;
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 8px 18px 12px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .home-duo,
  .home-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo-item {
    height: auto;
    min-height: 260px;
    padding: 32px 24px;
  }

  .story-img {
    min-height: 260px;
  }

  .story-copy {
    min-width: 0;
    padding: 36px 24px;
  }

  .home-hero-text {
    min-width: 0;
    padding: 40px 24px;
  }

  .home-hero .home-hero-text h1 {
    font-size: clamp(42px, 11vw, 52px);
    overflow-wrap: anywhere;
  }

  .home-hero .lead {
    max-width: 36ch;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-hero-image {
    min-height: 260px;
  }

  .home-hero-text .ornament {
    width: 52px;
    height: 52px;
  }

  .shop-head {
    padding: 40px 22px;
  }

  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 22px 18px 34px;
  }

  .detail-copy {
    min-width: 0;
    padding: 28px 4px 0;
  }

  .detail-copy h1 {
    font-size: clamp(38px, 10vw, 50px);
    overflow-wrap: anywhere;
  }

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

  .materia-hero {
    min-height: 0;
    padding: 48px 24px;
  }

  .materia-title {
    min-width: 0;
  }

  .materia-title h1 {
    font-size: clamp(44px, 11vw, 56px);
    overflow-wrap: anywhere;
  }

  .materia-title p {
    font-size: 18px;
  }

  .ingredient-grid h2 {
    font-size: clamp(30px, 8vw, 40px);
    overflow-wrap: anywhere;
  }

  .ingredients .kicker {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .ingredients article div {
    padding: 14px 12px;
  }

  .ingredients h3 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .contact-hero h1 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 36px 22px;
  }

  .contact-left h2,
  .contact-form h3 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .contact-form {
    min-width: 0;
    padding: 24px 18px;
  }

  .shop-head h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .shop-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 18px;
  }

  .shop-main aside {
    border-right: 0;
    border-bottom: 1px solid #cfa889;
    padding: 0 0 18px;
  }

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

  .product,
  .product-pic,
  .product-info {
    min-width: 0;
  }

  .product-pic {
    height: 150px;
  }

  .product-info {
    padding: 12px 10px;
  }

  .product-info .kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .product h3 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .nav .brand img {
    width: 175px;
    height: auto;
    max-height: 58px;
  }

  .nav .brand span {
    font-size: 25px;
    letter-spacing: 3px;
  }

  .nav .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .nav nav {
    justify-content: flex-start;
    gap: 6px 16px;
  }

  .nav nav a {
    font-size: 11px;
  }

  .nav .icons {
    gap: 10px;
    font-size: 20px;
  }

  .section {
    padding: 42px 22px;
  }

  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero-copy {
    padding: 48px 24px;
  }

  .about-hero h1,
  .collection-block .copy h2,
  .territory h2,
  .section-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .about-image {
    min-height: 280px;
  }

  .territory {
    grid-template-columns: 1fr;
  }

  .territory-photo {
    min-height: 260px;
  }

  .territory-copy {
    padding: 38px 24px;
  }

  .collection-heading {
    padding: 48px 22px 40px;
  }

  .collection-heading h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .collection-mark {
    left: 12px;
    top: 24px;
    width: 84px;
  }

  .collection-pair {
    padding: 16px 14px 4px;
  }

  .collection-block {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 16px;
  }

  .collection-block .copy {
    padding: 34px 24px;
  }

  .collection-block .visual {
    min-height: 240px;
  }

  .collection-bottom {
    height: auto;
    padding: 24px 18px;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 17px;
  }

  .collection-bottom img {
    width: 56px;
    height: 56px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 22px;
    padding: 32px 22px;
  }

  .foot-brand {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    font-size: clamp(22px, 6vw, 28px);
    letter-spacing: 1px;
  }

  .foot-brand img {
    flex: 0 1 210px;
    width: 210px;
    height: auto;
    max-width: 100%;
  }

  .foot-brand > div {
    min-width: 0;
  }

  .foot-brand small {
    letter-spacing: 1px;
  }
}

@media (min-width: 641px) and (max-width: 720px) {
  .home-hero-text {
    padding-right: 18px;
    padding-left: 32px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 6.1vw, 42px);
  }

  .home-hero-image {
    background-size: auto, auto 58%;
    background-position: 0 0, left center;
    background-repeat: no-repeat;
  }
}

body .home-hero {
  position: relative;
  min-height: clamp(420px, 44vw, 660px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.82) 0%, rgba(20, 12, 8, 0.48) 44%, rgba(20, 12, 8, 0.08) 100%),
    url("../pedra_close.jpg") 48% center / cover no-repeat;
}

body .home-hero > .home-hero-image {
  display: none;
}

body .home-hero > .home-hero-text {
  width: min(52%, 700px);
  margin-right: auto;
  padding: clamp(36px, 5vw, 74px) 24px clamp(38px, 5vw, 68px) clamp(28px, 6vw, 88px);
  text-align: left;
}

.home-hero .hero-logo {
  position: static;
  width: min(56vw, 800px);
  max-width: none;
  margin: 0 0 18px;
  transform: none;
}

.home-hero-text .ornament {
  margin: 0 0 14px;
}

.home-hero .home-hero-text h1 {
  max-width: 10ch;
  font-size: clamp(48px, 4.5vw, 64px);
  margin: 4px 0 16px;
  text-align: left;
}

.home-hero .lead {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  text-align: left;
}

.home-hero .kicker {
  font-size: 11px;
}

.home-hero .btn {
  font-size: 13px;
}

@media (max-width: 640px) {
  body .home-hero {
    min-height: 560px;
    align-items: flex-end;
    background:
      linear-gradient(0deg, rgba(20, 12, 8, 0.94) 0%, rgba(20, 12, 8, 0.72) 44%, rgba(20, 12, 8, 0.08) 100%),
      url("../pedra_close.jpg") 43% center / cover no-repeat;
  }

  body .home-hero > .home-hero-text {
    width: 100%;
    max-width: none;
    padding: 46px 24px 40px;
  }

  .home-hero .hero-logo {
    width: min(calc(100vw - 48px), 560px);
    margin-bottom: 14px;
    transform: none;
  }

  .home-hero-text .ornament {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .home-hero .home-hero-text h1 {
    font-size: clamp(36px, 9vw, 46px);
  }

  .home-hero .lead {
    font-size: 14px;
  }

  .home-hero .btn {
    font-size: 12px;
  }

  .home-hero-text::after {
    display: none;
  }
}

.icons {
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.header-action:hover {
  color: #f0bf8b;
}

.header-action:focus-visible,
.utility-dialog button:focus-visible,
.utility-dialog a:focus-visible,
.utility-dialog input:focus-visible,
.cart-add:focus-visible {
  outline: 2px solid #d8935d;
  outline-offset: 3px;
}

.header-action-count {
  position: absolute;
  top: 0;
  right: -3px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 3px;
  border-radius: 999px;
  background: #a54f2a;
  color: #fff;
  font: 10px/1 Arial, sans-serif;
}

.header-action-count[hidden],
.catalog-search-status[hidden] {
  display: none;
}

.header-cart-action.has-cart-items .header-action-count {
  animation: cart-notification-pulse 1.8s ease-out infinite;
}

@keyframes cart-notification-pulse {
  0% { box-shadow: 0 0 0 0 rgba(165, 79, 42, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(165, 79, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(165, 79, 42, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .header-cart-action.has-cart-items .header-action-count {
    animation: none;
  }
}

.utility-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80vh, 720px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #30221b;
}

.utility-dialog::backdrop {
  background: rgba(20, 12, 8, 0.72);
}

.utility-dialog-panel {
  position: relative;
  max-height: inherit;
  overflow: auto;
  padding: 30px;
  border: 1px solid #d4b298;
  border-radius: 8px;
  background: #f7ecde;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.utility-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #8e6148;
  border-radius: 50%;
  background: transparent;
  color: #4a2d20;
  font: 24px/1 Georgia, serif;
  cursor: pointer;
}

.utility-eyebrow {
  margin: 0 42px 10px 0;
  color: #80573d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.utility-title {
  margin: 0 42px 12px 0;
  color: #39251b;
  font: 30px/1.1 Georgia, serif;
}

.utility-description,
.utility-empty {
  margin: 0 0 18px;
  color: #665348;
  font-size: 14px;
  line-height: 1.55;
}

.utility-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 20px;
}

.utility-search-input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ad8b73;
  border-radius: 4px;
  background: #fffaf4;
  color: #30221b;
  font: inherit;
}

.utility-submit,
.utility-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #8a4427;
  border-radius: 4px;
  background: #8a4427;
  color: #fff8f1;
  font: 600 13px/1.3 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.utility-link {
  margin-top: 8px;
}

.utility-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.utility-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #d8c6b6;
}

.utility-list-item div {
  display: grid;
  gap: 4px;
}

.utility-list-item strong {
  color: #39251b;
  font-size: 14px;
}

.utility-list-item span {
  color: #806b5e;
  font-size: 12px;
}

.utility-remove {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #aa8d78;
  border-radius: 4px;
  background: transparent;
  color: #593927;
  font: 12px Arial, sans-serif;
  cursor: pointer;
}

.catalog-search-status {
  margin: 0 0 18px;
  color: #6b4b38;
  font-size: 14px;
}

.product-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.product-entry[hidden] {
  display: none;
}

.product-entry > .product {
  flex: 1 1 auto;
}

.cart-add {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #a36945;
  border-radius: 4px;
  background: #6f422e;
  color: #fff6ed;
  font: 600 12px/1.3 Arial, sans-serif;
  cursor: pointer;
}

.cart-add:hover {
  background: #8a4427;
}

.cart-add:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.detail-cart-add {
  width: 100%;
  margin-top: 12px;
}

.cart-item-price {
  color: #9a5533 !important;
  font-weight: 600;
}

.cart-item-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.cart-quantity-controls {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.cart-quantity-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid #aa8d78;
  border-radius: 4px;
  background: transparent;
  color: #593927;
  font: 16px/1 Arial, sans-serif;
  cursor: pointer;
}

.cart-quantity-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-quantity-value {
  min-width: 20px;
  color: #39251b !important;
  font-size: 13px;
  text-align: center;
}

.cart-checkout[disabled] {
  width: 100%;
  border-color: #9a887c;
  background: #9a887c;
  cursor: not-allowed;
}

.cart-actions,
.cart-confirm-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.cart-actions .utility-submit {
  width: 100%;
}

.cart-continue,
.cart-cancel,
.cart-cancel-confirm {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #8e6148;
  border-radius: 4px;
  background: transparent;
  color: #593927;
  font: 600 13px/1.3 Arial, sans-serif;
  cursor: pointer;
}

.cart-cancel,
.cart-cancel-confirm {
  border-color: #a54f2a;
  color: #8a3d25;
}

.cart-continue:hover,
.cart-cancel:hover,
.cart-cancel-confirm:hover {
  background: #ead7c5;
}

.cart-continue:disabled,
.cart-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cart-pending-note {
  margin: 10px 0 6px;
  color: #806b5e;
  font-size: 12px;
  line-height: 1.5;
}

.cart-add:hover,
.cart-add[aria-pressed="true"] {
  background: #6f422e;
  color: #fff6ed;
}

@media (max-width: 640px) {
  .utility-dialog-panel {
    padding: 26px 20px;
  }

  .utility-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .utility-submit {
    width: 100%;
  }

  .header-cart-action {
    font-size: 22px;
  }

  .cart-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }
}