:root {
  --bg: #f7efe2;
  --paper: #fffaf2;
  --paper-soft: #fff6e8;
  --brown: #6f4f24;
  --brown-dark: #2b1a0c;
  --gold: #b98a3d;
  --gold-soft: #e6c98e;
  --dark: #22170d;
  --muted: #7d6b55;
  --border: #e5d4ba;
  --danger: #9b2f25;
  --success: #486b34;
  --shadow: 0 18px 42px rgba(65, 42, 18, 0.1);
  --shadow-strong: 0 26px 70px rgba(65, 42, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(185, 138, 61, 0.08), transparent 34%),
    linear-gradient(180deg, #fcf7ef 0%, #f7efe2 45%, #efe1cc 100%);
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
}

body.menu-is-open,
body.modal-is-open {
  overflow: hidden;
}

.about-content p,
.success-text p,
.collab-card span {
  text-align: justify;
  text-indent: 1.2em;
}

.detail-text,
.lead,
.modal-summary {
  text-align: left;
  text-indent: 0;
}



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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(185, 138, 61, 0.14);
  box-shadow: 0 10px 24px rgba(50, 30, 10, 0.06);
}

.modern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 7%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.modern-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dark);
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(50,30,10,.12));
}

.brand-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.4px;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

/* =========================
   MENU HAMBURGUESA
========================= */

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  cursor: pointer;
  transition: all .18s ease;
}

.menu-toggle:hover {
  background: rgba(185,138,61,.08);
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(43,26,12,.72);
}

/* =========================
   MENU LATERAL
========================= */

.side-menu {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  max-width: 92%;
  height: 100vh;
  background: linear-gradient(180deg, #fffaf2 0%, #f8ecd8 100%);
  z-index: 120;
  transition: left .28s ease;
  box-shadow: 24px 0 80px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
}

.side-menu-open {
  left: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,12,5,.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 110;
}

.menu-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.side-menu-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(185,138,61,.14);
}

.side-menu-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
}

.menu-close {
  border: none;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
  color: var(--brown);
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 10px;
}

.side-menu-nav a {
  color: var(--dark);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 17px;
  transition: all .18s ease;
}

.side-menu-nav a:hover {
  background: rgba(185,138,61,.12);
  transform: translateX(3px);
}

.side-menu-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid rgba(185,138,61,.14);
  font-family: Arial, sans-serif;
}

.side-menu-footer p {
  margin: 0 0 8px;
  color: var(--brown);
}

.side-menu-footer a {
  color: var(--dark);
  text-decoration: none;
  word-break: break-word;
}

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

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

.header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #2b1a0c;
  transition: all .18s ease;
}

.header-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.header-icon:hover {
  background: rgba(185,138,61,.08);
  color: var(--brown-dark);
}

.cart-icon span {
  position: absolute;
  top: -2px;
  right: -1px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

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

.modern-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.modern-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(24,15,8,.82),
      rgba(24,15,8,.48),
      rgba(24,15,8,.18)
    );
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  color: white;
}

.hero-kicker {
  margin: 0 0 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 6px;
  font-size: 12px;
  text-transform: uppercase;
  color: #f0d8ab;
}

.hero-content h2 {
  margin: 0;
  max-width: 720px;
  font-size: 72px;
  line-height: .98;
  font-weight: 400;
}

.hero-subtitle {
  display: block;
  margin-top: 26px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,.84);
}

/* =========================
   CONTAINER
========================= */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px 24px;
}

/* =========================
   TITULOS
========================= */

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title p,
.collab-kicker,
.success-kicker {
  margin: 0;
  font-family: Arial, sans-serif;
  letter-spacing: 5px;
  color: var(--brown);
  font-size: 11px;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 10px 0 10px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
}

.section-title span {
  display: block;
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.ornament {
  width: 48px;
  height: 48px;
  margin: -72px auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b7134, #d1ad6f);
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  border: 4px solid white;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

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

.about-section {
  margin-bottom: 80px;
}

.about-content {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.about-content p {
  margin: 0;
  line-height: 1.9;
  font-size: 19px;
  color: #3b2a16;
}

/* =========================
   CATALOGO
========================= */

.catalog-title {
  margin-bottom: 28px;
}

.catalog-toolbar {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(185,138,61,.14);
  background: rgba(255,250,242,.88);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 28px rgba(80,55,25,.06);
}

.catalog-toolbar label {
  font-family: Arial, sans-serif;
  color: var(--brown);
  font-size: 12px;
}

.select {
  min-width: 250px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(185,138,61,.18);
  background: white;
}

.loader {
  max-width: 360px;
  margin: 20px auto;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff6df;
  border: 1px solid #ecd19f;
  color: var(--brown);
  font-family: Arial, sans-serif;
}

.loader.hidden {
  display: none;
}

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

.product-card {
  cursor: pointer;
  background: linear-gradient(180deg, #fffbf4 0%, #fff5e5 100%);
  border: 1px solid rgba(185,138,61,.1);
  border-radius: 24px;
  padding: 18px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(80,55,25,.08);
  transition: all .26s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(80,55,25,.16);
}

.product-image-wrap {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background:
    radial-gradient(circle, rgba(185,138,61,.1), transparent 62%),
    #f7ead6;
  border-radius: 20px;
}


.product-image {
  max-width: 100%;
  max-height: 158px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(50,30,10,.16));
}

.product-content {
  flex: 1;
}

.product-category {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(185,138,61,.12);
  color: var(--brown);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.16;
  font-weight: 500;
}

.author {
  margin: 7px 0 10px;
  color: var(--brown);
  font-style: italic;
  font-size: 14px;
}

.product-summary {
  display: none;
}

.product-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-status {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .4px;
  text-transform: uppercase;
  z-index: 2;
}

.status-available {
  background: #eaf3d8;
  color: #3f642d;
}

.status-edition {
  background: #ffe8b8;
  color: #80530e;
}

.price {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.discount-price {
  font-size: 20px;
  color: #a6251f;
  font-weight: bold;
  line-height: 1;
}

.discount-badge {
  background: #d75d52;
  color: white;
  border-radius: 999px;
  padding: 3px 7px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
}

.price-help {
  font-size: 11px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.launch-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(185,138,61,.08);
  border-left: 3px solid var(--gold);
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--brown);
  line-height: 1.45;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(90deg, #a77d3f, #c09a5b);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 1px solid rgba(185,138,61,.28);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.product-btn {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11px;
}

/* =========================
   MODAL
========================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,12,5,.68);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-card {
  width: 100%;
  max-width: 860px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 36px;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.modal-image-frame {
  background: #f4e7d4;
  border-radius: 18px;
  padding: 18px;
}

.modal-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.modal-kicker {
  margin: 0 0 10px;
  font-family: Arial, sans-serif;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
}

.modal-status-row {
  margin-bottom: 14px;
}

.modal-status-row .product-status,
.detail-info > .product-status,
.cart-item-info .product-status {
  position: static;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.edition-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: #fff4dc;
  border: 1px solid rgba(185,138,61,.26);
  font-family: Arial, sans-serif;
}

.edition-box p {
  margin: 8px 0 0;
  line-height: 1.55;
}

/* =========================
   DETAIL
========================= */

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  background: rgba(255,250,242,.92);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 46px rgba(80,55,25,.08);
}

.detail-media {
  background: #f4e7d4;
  border-radius: 18px;
  padding: 22px;
}

.detail-media img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.detail-info h2 {
  margin: 12px 0;
  font-size: 48px;
  font-weight: 400;
}

.lead {
  font-size: 18px;
  line-height: 1.7;
}

.detail-text {
  margin: 24px 0;
  line-height: 1.8;
  white-space: pre-line;
}

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

.cart-head {
  margin-bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.cart-head p {
  margin: 0;
  font-family: Arial, sans-serif;
  letter-spacing: 4px;
  color: var(--brown);
  font-size: 11px;
  text-transform: uppercase;
}

.cart-head h2 {
  margin: 10px 0;
  font-size: 48px;
  font-weight: 400;
}

.cart-head span {
  color: var(--muted);
}

.cart-back-link {
  max-width: 240px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 120px 120px;
  gap: 18px;
  align-items: center;
  background: rgba(255,250,242,.92);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(80,55,25,.06);
}

.cart-item-image {
  width: 90px;
  height: 128px;
  background: #f3eadb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.cart-category {
  margin: 6px 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.cart-price {
  margin-top: 10px;
  font-weight: bold;
}

.cart-launch {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(185,138,61,.08);
  border-left: 3px solid var(--gold);
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--brown);
  line-height: 1.45;
}

.cart-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-qty button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(185,138,61,.24);
  background: white;
  cursor: pointer;
  font-size: 18px;
}

.cart-line-total {
  text-align: right;
}

.cart-line-total small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: Arial, sans-serif;
}

.cart-remove {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.cart-summary {
  background: linear-gradient(180deg, #fffaf2, #fff3df);
  border-radius: 24px;
  padding: 24px;
  position: sticky;
  top: 104px;
  box-shadow: 0 16px 38px rgba(80,55,25,.08);
}

.cart-summary h3 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 400;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(185,138,61,.14);
  font-family: Arial, sans-serif;
}

.summary-total {
  border-bottom: none;
  margin-bottom: 16px;
  font-size: 20px;
}

.free-shipping {
  color: var(--success);
}

.cart-note {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.cart-empty {
  background: rgba(255,250,242,.92);
  border-radius: 22px;
  padding: 42px;
  text-align: center;
}

.cart-empty h3 {
  margin-top: 0;
  font-size: 30px;
  font-weight: 400;
}

/* =========================
   CHECKOUT
========================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.checkout-card {
  background: rgba(255,250,242,.92);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(80,55,25,.08);
}

.checkout-card h3 {
  margin-top: 0;
  font-size: 32px;
  font-weight: 400;
}

.input {
  width: 100%;
  display: block;
  margin: 8px 0 18px;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(185,138,61,.18);
  background: white;
  font-size: 15px;
}

.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,138,61,.14);
}

label {
  display: block;
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checkout-btn {
  margin-top: 8px;
}

.checkout-security {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.security-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(185,138,61,.08);
  font-family: Arial, sans-serif;
}

/* =========================
   SUCCESS / FAIL
========================= */

.success-page {
  display: flex;
  justify-content: center;
}

.success-card {
  width: 100%;
  max-width: 760px;
  background: rgba(255,250,242,.94);
  border-radius: 30px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 20px 56px rgba(80,55,25,.1);
}

.success-icon,
.fail-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: bold;
}

.success-icon {
  background: rgba(72,107,52,.12);
  color: var(--success);
}

.fail-icon {
  background: rgba(155,47,37,.12);
  color: var(--danger);
}

.success-card h2 {
  margin: 12px 0;
  font-size: 48px;
  font-weight: 400;
}

.success-subtitle {
  display: block;
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.success-text {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.success-text p {
  margin: 0;
  line-height: 1.8;
  font-size: 18px;
}

.success-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* =========================
   COLABORA
========================= */

.collab-section {
  margin: 90px 0 40px;
}

.collab-card {
  background:
    linear-gradient(135deg, rgba(185,138,61,.16), rgba(255,250,242,.88));
  border-radius: 30px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 46px rgba(80,55,25,.08);
}

.collab-card h3 {
  margin: 10px 0;
  font-size: 38px;
  font-weight: 400;
}

.collab-card span {
  color: var(--muted);
  line-height: 1.6;
}

.collab-btn {
  max-width: 220px;
}

/* =========================
   FEATURES
========================= */

.features {
  max-width: 1180px;
  margin: 36px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.features div {
  background: rgba(255,250,242,.84);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(80,55,25,.06);
}

.features strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.features span {
  color: var(--muted);
  line-height: 1.5;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

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

.site-footer {
  background: linear-gradient(180deg, #2d1d10 0%, #1d1208 100%);
  color: rgba(255,255,255,.82);
  padding: 54px 20px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.footer-brand h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

.footer-brand p {
  margin: 6px 0 0;
  letter-spacing: 4px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,.52);
}

.site-footer h4 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 400;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.74);
  text-decoration: none;
}

/* =========================
   TOAST
========================= */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 390px;
  min-width: 300px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(185,138,61,.18);
  box-shadow: 0 22px 60px rgba(35,24,12,.26);
  color: var(--dark);
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 300;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(185,138,61,.16);
  color: var(--brown);
  font-weight: bold;
  font-size: 20px;
}

.toast-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.toast-body a {
  color: var(--brown);
  font-weight: bold;
  font-size: 13px;
  text-decoration: underline;
}

.toast-success {
  border-left: 5px solid var(--success);
}

.toast-error {
  border-left: 5px solid var(--danger);
}

.toast-neutral {
  border-left: 5px solid var(--gold);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .modern-header {
    padding: 12px 14px;
  }

  .desktop-brand {
    display: none;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .hero-content h2 {
    font-size: 52px;
  }

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

  .cart-layout,
  .checkout-layout,
  .detail-layout,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-head,
  .collab-card {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cart-item {
    grid-template-columns: 78px 1fr;
  }

  .cart-qty,
  .cart-line-total {
    grid-column: 1 / -1;
    justify-content: space-between;
    text-align: left;
  }

  .success-actions,
  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .modern-header {
    padding: 8px 12px;
  }

  .menu-toggle,
  .header-icon {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .modern-hero {
    height: 420px;
  }

  .modern-hero img {
    object-position: center center;
  }

  .hero-content h2 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .container {
    padding: 36px 14px 18px;
  }

  .section-title h2,
  .cart-head h2,
  .success-card h2 {
    font-size: 36px;
  }

  .about-content p {
    font-size: 17px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .select {
    min-width: 0;
    width: 100%;
  }

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

  .product-card {
    padding: 12px;
    border-radius: 18px;
  }

  .product-image-wrap {
    height: 145px;
  }

  .product-image {
    max-height: 125px;
  }

  .product-card h3 {
    font-size: 15px;
  }

  .author {
    font-size: 12px;
  }

  .price,
  .discount-price {
    font-size: 18px;
  }

  .old-price {
    font-size: 12px;
  }

  .discount-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .price-help {
    font-size: 10px;
  }

  .product-btn {
    min-height: 42px;
    font-size: 10px;
    padding: 10px;
  }

  .product-status {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100dvh - 20px);
    padding: 20px;
    border-radius: 20px;
  }

  .modal-image {
    max-height: 240px;
  }

  .collab-card {
    padding: 26px;
  }

  .collab-card h3 {
    font-size: 30px;
  }

  .success-card {
    padding: 32px 22px;
  }

  .site-footer {
    padding: 44px 18px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    min-width: 0;
  }
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.book-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(185,138,61,.1);
  font-size: 11px;
  font-family: Arial, sans-serif;
  color: var(--brown);
}

.countdown-box {
  margin-top: 18px;
  background: linear-gradient(135deg,#fff3d8,#ffe7b5);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(185,138,61,.22);
}

.countdown-number {
  font-size: 42px;
  font-weight: bold;
  color: #8a5a16;
  line-height: 1;
}

.countdown-text {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  color: #6f4f24;
}

.header-icon {
  color: #2b1a0c;
  font-size: 20px;
}

.modal-image-frame,
.detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image,
.detail-media img {
  display: block;
  margin: auto;
}

.cart-summary .btn,
.cart-summary .cart-clear {
  margin-top: 12px;
}

.legal-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.legal-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  font-family: Arial, sans-serif;
}

.modal-image-frame,
.detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image,
.detail-media img {
  display: block;
  margin: auto;
}

.cart-summary .btn,
.cart-summary .cart-clear {
  margin-top: 12px;
  display: block;
  width: 100%;
}

.legal-section {
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.legal-card {
  background: rgba(255,250,242,.92);
  border-radius: 26px;
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(80,55,25,.08);
}

.legal-card h3 {
  margin-top: 0;
  font-size: 34px;
  font-weight: 400;
}

.legal-card p {
  line-height: 1.9;
  color: #3b2a16;
}

/* =========================
   LEGALES PREMIUM
========================= */

.legal-section {
  max-width: 1180px;
  margin: 80px auto 100px;
  padding: 0 20px;
  display: grid;
  gap: 28px;
}

.legal-card {
  background: rgba(255,250,242,.94);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(80,55,25,.08);
  border: 1px solid rgba(185,138,61,.08);
}

.legal-card h3 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.legal-card p,
.legal-card li {
  line-height: 1.95;
  color: #3b2a16;
  font-size: 17px;
}

.legal-card ul {
  margin: 18px 0;
  padding-left: 22px;
}

.legal-card li {
  margin-bottom: 12px;
}

.legal-intro {
  max-width: 820px;
}

.legal-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.legal-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  font-family: Arial, sans-serif;
}

@media (max-width: 700px) {

  .legal-card {
    padding: 26px;
    border-radius: 22px;
  }

  .legal-card h3 {
    font-size: 30px;
  }

}
