:root {
  --cream: #faf5eb;
  --ink: #3d231a;
  --caramel: #ad633f;
  --line: #ded0be;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.topline {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: 10px;
  font-size: 11px;
  letter-spacing: 2px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 7%;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Georgia, serif;
  font-size: 42px;
  letter-spacing: -3px;
  line-height: 1;
}
.brand span {
  display: block;
  font-family: Arial;
  font-size: 8px;
  letter-spacing: 4px;
  margin: 9px 0 0 3px;
}
nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}
nav button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 17px;
  border-radius: 30px;
}
#count {
  background: var(--ink);
  color: white;
  border-radius: 50%;
  padding: 3px 6px;
  margin-left: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 65px 7% 75px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: bold;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(54px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -4px;
  margin: 22px 0;
}
h1 em {
  color: var(--caramel);
  font-weight: 400;
}
.intro {
  line-height: 1.8;
  font-size: 15px;
  max-width: 340px;
  color: #70584c;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: var(--cream);
  padding: 17px 25px;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.hero .button {
  margin-top: 15px;
}
.small {
  font-size: 11px;
  color: #786657;
  line-height: 1.7;
}
.hero .small {
  margin-top: 22px;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  border-radius: 180px 180px 5px 5px;
}
.seal {
  position: absolute;
  right: -15px;
  bottom: 30px;
  background: var(--cream);
  border: 1px solid var(--caramel);
  border-radius: 50%;
  width: 118px;
  height: 118px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 8px;
  letter-spacing: 1px;
  transform: rotate(12deg);
}
.seal strong {
  font-size: 22px;
  letter-spacing: 0;
  font-family: Georgia;
  font-weight: normal;
  padding: 4px;
}
.collection {
  padding: 50px 7% 80px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  margin: 15px 0;
  letter-spacing: -1px;
}
.section-head > p {
  font-size: 12px;
  color: #786657;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.filters button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 25px;
}
.product-art {
  position: relative;
  overflow: hidden;
  background: #e8d7c1;
  aspect-ratio: 1.18;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.product-art img {
  width: 80%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: rotate(-10deg);
  transition: transform 0.3s;
}
.product:hover img {
  transform: rotate(-3deg) scale(1.05);
}
.product:nth-child(2n) .product-art {
  background: #d9b391;
}
.product:nth-child(3n) .product-art {
  background: #e0bfb0;
}
.tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--cream);
  font-size: 9px;
  padding: 7px 10px;
  border-radius: 20px;
}
.product h3 {
  font-family: Georgia;
  font-size: 23px;
  font-weight: normal;
  margin: 18px 0 8px;
}
.product p {
  font-size: 12px;
  line-height: 1.6;
  color: #786657;
  min-height: 38px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-bottom strong {
  font-size: 14px;
}
.product-bottom button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 25px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 11px;
}
.product-bottom button:hover {
  background: var(--ink);
  color: white;
}
.story {
  background: #eadfce;
  padding: 65px 7%;
  display: grid;
  grid-template-columns: 0.4fr 1fr 1fr;
  gap: 35px;
  align-items: center;
}
.bean {
  font-size: 95px;
  color: var(--caramel);
}
.story p {
  max-width: 350px;
  font-size: 13px;
  line-height: 1.8;
}
.story blockquote {
  font-family: Georgia;
  font-style: italic;
  font-size: 34px;
  color: var(--caramel);
  line-height: 1.4;
}
footer {
  padding: 45px 7%;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
footer p,
footer small {
  font-size: 11px;
  color: #786657;
}
.mode {
  background: #f2dfaf;
  padding: 15px 7%;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 12px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 28px;
  background: var(--cream);
  color: var(--ink);
}
dialog::backdrop {
  background: #27180ecc;
  backdrop-filter: blur(3px);
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head button {
  background: transparent;
  border: 0;
  font-size: 22px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row strong {
  font-size: 14px;
}
.cart-row p {
  font-size: 12px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity button {
  background: transparent;
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.total {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
}
label {
  display: block;
  font-size: 12px;
  margin: 13px 0;
}
input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  margin-top: 6px;
}
#checkout .button {
  width: 100%;
}
#message {
  font-size: 13px;
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  border-radius: 28px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
}
:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 750px) {
  header {
    padding: 22px 6%;
  }
  nav {
    gap: 12px;
  }
  nav a {
    display: none;
  }
  .hero {
    padding: 40px 6%;
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 66px;
  }
  .hero-art {
    max-width: 420px;
    margin: 15px auto;
    width: 100%;
  }
  .seal {
    right: 0;
  }
  .collection {
    padding: 40px 6%;
  }
  .section-head {
    display: block;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
  }
  .product h3 {
    font-size: 20px;
  }
  .product-bottom {
    gap: 12px;
    align-items: start;
    flex-direction: column;
  }
  .story {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 5px;
  }
  .bean {
    display: none;
  }
  .story blockquote {
    margin: 15px 0;
    font-size: 28px;
  }
  footer {
    flex-wrap: wrap;
  }
  .tag {
    top: 8px;
    left: 8px;
    font-size: 8px;
  }
  .intro {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* Identidad DCDM Choco Amor */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  letter-spacing: normal;
}
.brand img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}
header {
  padding-top: 14px;
  padding-bottom: 14px;
}
footer .brand img {
  width: 100px;
  height: 100px;
}
@media (max-width: 750px) {
  .brand img {
    width: 88px;
    height: 88px;
  }
  header {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
.admin-login {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.video-grid article {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 14px;
}
.video-grid iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.video-grid button {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 12px 20px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
#hero-title {
  white-space: pre-line;
}
nav {
  flex-wrap: wrap;
}
.product-art img {
  object-fit: contain;
}
