* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --wine: #8b1e3f;
  --wine-dark: #5e142a;
  --blue: #145f7a;
  --blue-dark: #0d3f52;
  --gold: #d7a85b;
  --cream: #f8f2ec;
  --cream-2: #fffaf6;
  --chocolate: #2b140e;
  --brown: #4a2418;
  --muted: #7a5a4f;
  --border: #eadbd2;
  --white: #ffffff;
  --shadow: rgba(74, 36, 24, 0.12);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--chocolate);
  overflow-x: hidden;
}

.topbar {
  background: linear-gradient(90deg, var(--wine-dark), var(--blue-dark));
  color: #fff;
  text-align: center;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
}

.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(255, 250, 246, .94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 30px var(--shadow);
}

.logo {
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  color: var(--blue-dark);
  letter-spacing: -1px;
}

.logo span {
  color: var(--wine);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

nav a:hover {
  color: var(--wine);
}

.cart-button {
  border: 0;
  background: linear-gradient(135deg, var(--wine), var(--blue));
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(139, 30, 63, .22);
}

.cart-button strong {
  background: #fff;
  color: var(--wine);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
}


.hero {
  position: relative;
  min-height: 650px;
  padding: 78px 6%;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;

  background:
    radial-gradient(circle at 80% 10%, rgba(215,168,91,0.25), transparent 40%),
    linear-gradient(135deg, #fffaf6 0%, #f3e9e3 40%, #eaf3f5 100%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(139, 30, 63, .25) 0, rgba(139, 30, 63, 0) 70%);
  opacity: .7;
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: rgba(139, 30, 63, .10);
  color: var(--wine-dark);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 22px;
  border: 1px solid rgba(139, 30, 63, .16);
}

.hero h1 {
  font-size: 64px;
  line-height: .96;
  max-width: 760px;
  color: var(--chocolate);
  letter-spacing: -2px;
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 610px;
  margin: 24px 0;
}

.logo img {
  height: 42px;
  object-fit: contain;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  border-radius: 16px;
  padding: 15px 24px;
  font-size: 15px;
}

.primary {
  background: linear-gradient(135deg, var(--wine), var(--blue));
  color: #fff;
  box-shadow: 0 12px 24px rgba(139, 30, 63, .24);
}

.primary:hover {
  filter: brightness(.95);
}

.ghost {
  background: #fff;
  color: var(--wine-dark);
  border: 1px solid var(--border);
}

.dark {
  background: var(--chocolate);
  color: #fff;
}

.full {
  width: 100%;
  margin-top: 8px;
}

.hero-mini-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-mini-info span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--brown);
  font-weight: 800;
  font-size: 14px;
}

.hero-showcase {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--blue));
  filter: blur(.2px);
  opacity: .22;
}

.main-bowl {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 34px;
  box-shadow: 0 28px 80px var(--shadow);
  width: min(410px, 92%);
  transform: rotate(2deg);
}

.bowl-emoji {
  font-size: 120px;
  text-align: center;
  background: linear-gradient(135deg, #f8e6eb, #e4f0f4);
  border-radius: 30px;
  padding: 32px;
}

.tag-discount {
  display: inline-block;
  margin-top: 22px;
  background: var(--wine);
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
}

.main-bowl h3 {
  font-size: 30px;
  margin: 16px 0 8px;
  color: var(--chocolate);
}

.main-bowl p {
  font-size: 16px;
  margin: 0 0 18px;
  color: var(--muted);
}

.main-bowl strong {
  font-size: 32px;
  color: var(--wine);
}

/* ================= HERO COM AVATAR DA ANINHA ================= */

.aninha-showcase {
  min-height: 500px;
}

.aninha-card {
  position: relative;
  width: min(440px, 92%);
  height: 480px;
  border-radius: 42px;
  background: linear-gradient(180deg, #fff 0%, #fff8f4 100%);
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px var(--shadow);
  overflow: hidden;
  transform: rotate(2deg);
}

.aninha-image-wrap {
  position: absolute;
  inset: 24px 24px auto 24px;
  height: 300px;
  border-radius: 32px;
  background: linear-gradient(135deg, #f8e6eb, #e4f0f4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.aninha-image-wrap img {
  width: 72%;
  max-width: 255px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(43, 20, 14, .18));
}

.aninha-card-content {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 3;
}

.aninha-card .tag-discount {
  margin-top: 0;
  font-size: 12px;
  padding: 7px 12px;
}

.aninha-card h3 {
  font-size: 28px;
  margin: 14px 0 6px;
  color: var(--chocolate);
}

.aninha-card p {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

.aninha-card strong {
  font-size: 30px;
  color: var(--wine);
}
.floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 15px 18px;
  box-shadow: 0 18px 50px var(--shadow);
  font-weight: 900;
  display: flex;
  gap: 10px;
  align-items: center;
}

.floating-card span {
  font-size: 14px;
  color: var(--brown);
}

.card-one {
  left: 0;
  top: 78px;
}

.card-two {
  right: 0;
  bottom: 72px;
}

.quick-categories {
  width: 88%;
  max-width: 1120px;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  box-shadow: 0 22px 60px var(--shadow);
}

.quick-categories a {
  text-decoration: none;
  background: var(--cream-2);
  color: var(--chocolate);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-weight: 900;
  border: 1px solid transparent;
}

.quick-categories a:hover {
  border-color: rgba(139, 30, 63, .25);
  color: var(--wine);
}

.promo-strip {
  width: 90%;
  max-width: 1180px;
  margin: 60px auto 0;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--wine-dark), var(--blue-dark));
  color: #fff;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 24px 70px rgba(74, 36, 24, .22);
}

.promo-strip span {
  color: var(--gold);
  font-weight: 900;
}

.promo-strip h2 {
  font-size: 34px;
  margin: 8px 0;
}

.promo-strip p {
  color: #f4ddd6;
  font-size: 17px;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: auto;
  padding: 75px 0;
}

.section-title {
  text-align: center;
}

.section-title span {
  color: var(--wine);
  font-weight: 900;
}

.section-title h2 {
  font-size: 44px;
  margin: 8px 0;
  color: var(--chocolate);
  letter-spacing: -1px;
}

.section-title p {
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 35px 0;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brown);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

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

.product {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(74, 36, 24, .08);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: .25s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(74, 36, 24, .14);
}

.product-img {
  height: 220px;
  background: linear-gradient(135deg, #f7e1e8, #e5f1f4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.category {
  font-size: 13px;
  color: var(--blue);
  font-weight: 900;
}

.product h3 {
  font-size: 22px;
  color: var(--chocolate);
}

.product p {
  color: var(--muted);
  flex: 1;
  line-height: 1.45;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--wine);
}

.add {
  border: 0;
  background: var(--chocolate);
  color: #fff;
  border-radius: 13px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.add:hover {
  background: var(--wine-dark);
}

.benefits {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit {
  background: linear-gradient(135deg, var(--chocolate), var(--wine-dark));
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.benefit span {
  color: #f3d8ca;
}

footer {
  background: var(--chocolate);
  color: #fff;
  text-align: center;
  padding: 35px;
}

.cart {
  position: fixed;
  inset: 0;
  background: rgba(20, 9, 2, .55);
  z-index: 50;
  display: none;
  justify-content: flex-end;
}

.cart.open {
  display: flex;
}

.cart-panel {
  background: #fff;
  width: min(450px, 100%);
  height: 100%;
  padding: 26px;
  overflow: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-header button {
  border: 0;
  background: #f6e6eb;
  color: var(--wine-dark);
  font-size: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

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

.cart-actions button {
  border: 0;
  background: var(--wine);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.cart-total {
  font-size: 22px;
  font-weight: 900;
  margin: 20px 0;
  text-align: right;
}

.checkout {
  display: grid;
  gap: 12px;
}

.checkout input,
.checkout select,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
}

.checkout textarea {
  height: 86px;
  resize: none;
}

.hero-logo {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(43, 20, 14, 0.22);
  z-index: 4;
  background: #fff;
  padding: 0;
  border: 5px solid #fff;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.closed-notice {
  grid-column: 1 / -1;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 16px;
  border-radius: 16px;
  font-weight: 900;
  text-align: center;
}

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



@media(max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 48px;
    margin: auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-mini-info {
    justify-content: center;
  }

  .hero-showcase {
    min-height: 470px;
    margin-top: 30px;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
    top: 20px;
    right: 18%;
  }

  .main-bowl {
    margin-top: 70px;
    transform: none;
  }

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

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

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

  .promo-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: none;
  }
}

@media(max-width: 570px) {
  .header {
    height: 70px;
    padding: 0 4%;
  }

  .logo {
    font-size: 21px;
  }

  .cart-button {
    padding: 10px 13px;
  }

  .hero {
    padding: 42px 5% 30px;
    min-height: auto;
  }

  .badge {
    font-size: 12px;
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-showcase {
    min-height: 390px;
    margin-top: 24px;
  }

  .hero-logo {
    width: 118px;
    height: 118px;
    top: 0;
    right: 20px;
    border: 4px solid #fff;
  }

  .main-bowl {
    width: 92%;
    padding: 22px;
    margin-top: 68px;
    transform: none;
  }

  .bowl-emoji {
    font-size: 72px;
    padding: 24px;
  }

  .floating-card {
    display: none;
  }

  .quick-categories {
    width: 92%;
    grid-template-columns: 1fr 1fr;
  }

  .promo-strip {
    width: 92%;
    padding: 28px;
  }

  .promo-strip h2 {
    font-size: 27px;
  }

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

  .container {
    width: 92%;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .hero-mini-info span {
    width: 100%;
    text-align: center;
  }
.aninha-showcase {
  min-height: 430px;
}

.aninha-card {
  height: 420px;
  transform: none;
}

.aninha-image-wrap {
  height: 250px;
  inset: 20px 20px auto 20px;
}

.aninha-image-wrap img {
  width: 72%;
  max-width: 215px;
}

.aninha-card-content {
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.aninha-card h3 {
  font-size: 24px;
}

.aninha-card p {
  font-size: 14px;
}

.aninha-card strong {
  font-size: 26px;
}
}


/* Menu login cliente */
nav .menu a.login-client {
  background-color: #ffcc00;   /* cor principal do botão */
  color: #000;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

nav .menu a.login-client:hover {
  background-color: #e6b800;   /* hover mais escuro */
  color: #000;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-enter {
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-enter:hover {
  background-color: #e6b800;
  color: #000;
}

.cart-button {
  background-color: #3c1d4f;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão Entrar */
.header-buttons .btn-enter {
  background-color: #ffcc00;   /* destaque amarelo */
  color: #000;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}


.header-buttons .btn-enter:hover {
  background-color: #e6b800;
  color: #000;
}

/* Botão Sacola */
.header-buttons .cart-button {
  background-color: #3c1d4f;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* ================= ÁREA DO CLIENTE ================= */
.login-customer-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #9b2242, #f7eef3);
}
.customer-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.customer-auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 28px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(70, 20, 40, .22);
}
.customer-auth-logo {
  max-width: 135px;
  max-height: 95px;
  object-fit: contain;
  margin-bottom: 14px;
}
.customer-auth-badge {
  display: inline-block;
  background: #f7eef3;
  color: #9b2242;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.customer-auth-card h1 {
  color: #4a1027;
  margin: 14px 0 8px;
}
.customer-auth-card p {
  color: #6f6170;
  margin-bottom: 22px;
}
.customer-auth-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.customer-auth-form label {
  font-size: 13px;
  font-weight: 900;
  color: #4a1027;
}
.customer-auth-form input {
  width: 100%;
  border: 1px solid #ead7df;
  border-radius: 14px;
  padding: 14px;
  outline: none;
  font-size: 15px;
}
.customer-auth-form input:focus {
  border-color: #9b2242;
  box-shadow: 0 0 0 3px rgba(155, 34, 66, .12);
}
.customer-auth-form button {
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  padding: 15px;
  background: #9b2242;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.customer-auth-msg {
  min-height: 20px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}
.customer-auth-msg.error { color: #b91c1c; }
.customer-auth-msg.success { color: #15803d; }
.customer-auth-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #6f6170;
}
.customer-auth-footer a,
.customer-auth-back {
  color: #9b2242;
  font-weight: 900;
  text-decoration: none;
}
.customer-auth-back {
  display: inline-block;
  margin-top: 18px;
}

.login-required-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.login-required-box p {
  margin: 6px 0 12px;
  font-size: 13px;
}

.address-box {
  display: grid;
  gap: 8px;
}

.address-box label {
  font-size: 13px;
  font-weight: 900;
  color: var(--wine-dark);
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.address-suggestions {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(74,36,24,.12);
  max-height: 220px;
  overflow-y: auto;
}

.address-suggestions.open {
  display: block;
}

.address-suggestion {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f2e4dc;
  font-size: 13px;
}

.address-suggestion:hover {
  background: #fff4f7;
}

/* ================= ENDEREÇOS SALVOS ================= */

.saved-addresses-box {
  display: grid;
  gap: 10px;
}

.saved-addresses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-addresses-header strong {
  font-size: 14px;
  color: var(--wine-dark);
}

.new-address-button {
  border: 0;
  background: transparent;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.new-address-button:hover {
  text-decoration: underline;
}

#savedAddressesList {
  display: grid;
  gap: 8px;
}

.saved-address-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: .2s;
}

.saved-address-card:hover {
  border-color: var(--wine);
  background: #fff9fb;
}

.saved-address-card.selected {
  border: 2px solid var(--wine);
  background: #fff5f8;
}

.saved-address-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8e8ee;
  border-radius: 10px;
  font-size: 17px;
}

.saved-address-content {
  min-width: 0;
  flex: 1;
}

.saved-address-content strong {
  display: block;
  color: var(--chocolate);
  font-size: 14px;
  margin-bottom: 3px;
}

.saved-address-content span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.default-address-badge {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8e8ee;
  color: var(--wine);
  font-size: 10px;
  font-weight: 900;
}


/* ================= NOVO ENDEREÇO ================= */

.new-address-box {
  display: grid;
  gap: 10px;
}

.address-search-wrapper {
  position: relative;
}

.address-search-wrapper input {
  width: 100%;
}

.address-details-box {
  display: grid;
  gap: 10px;
}


/* ================= ENDEREÇO SELECIONADO ================= */

.selected-address-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f7f9f9;
  border: 1px solid #dce8e8;
  border-radius: 13px;
}

.selected-address-confirmation > span {
  font-size: 20px;
}

.selected-address-confirmation div {
  min-width: 0;
}

.selected-address-confirmation small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.selected-address-confirmation strong {
  display: block;
  color: var(--chocolate);
  font-size: 13px;
  line-height: 1.4;
}


/* ================= SALVAR ENDEREÇO ================= */

.save-address-option {
  display: flex !important;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 4px 0;
}

.save-address-option input {
  width: 17px !important;
  height: 17px;
  margin: 0;
  accent-color: var(--wine);
  cursor: pointer;
}

.save-address-option span {
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
}

.saved-address-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.saved-address-main {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}

.delete-address-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

.delete-address-button:hover {
  background: #fecaca;
}

.back-address-button {
  border: 0;
  background: #f7eef3;
  color: var(--wine);
  font-weight: 900;
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  text-align: left;
}

.back-address-button:hover {
  background: #f1dce6;
}

/* ================= HEADER MOBILE PEQUENO ================= */

@media (max-width: 470px) {

  .header {
    padding: 0 4%;
    gap: 8px;
  }

  .logo {
    font-size: 19px;
    line-height: 1.05;
    flex-shrink: 1;
  }

  .header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-buttons .btn-enter,
  .header-buttons .cart-button {
    width: auto;
    min-width: 67px;
    height: 42px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    border-radius: 6px;
  }

  .header-buttons .cart-button strong {
    margin-left: 5px;
    padding: 2px 6px;
  }
}
/* ================= PRODUTOS MOBILE ================= */

@media (max-width: 570px) {

  .products {
    gap: 18px;
  }

  .product {
    border-radius: 22px;
  }

  .product-img {
    height: 165px;
    font-size: 48px;
  }

  .product-img img {
    object-fit: cover;
  }

  .product-body {
    padding: 17px;
    gap: 8px;
  }

  .category {
    font-size: 11px;
  }

  .product h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .product p {
    font-size: 14px;
    line-height: 1.35;
  }

  .product-footer {
    margin-top: 10px;
    gap: 10px;
  }

  .price {
    font-size: 20px;
  }

  .add {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
  }
}

/* ================= PRODUTOS MOBILE - 2 COLUNAS ================= */

@media (max-width: 570px) {

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

  .product {
    min-width: 0;
    border-radius: 18px;
  }

  .product-img {
    height: 125px;
    font-size: 42px;
  }

  .product-body {
    padding: 13px;
    gap: 6px;
  }

  .category {
    font-size: 9px;
  }

  .product h3 {
    font-size: 15px;
    line-height: 1.2;
  }

  .product p {
    font-size: 11px;
    line-height: 1.3;

    /* Limita descrição a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-footer {
    margin-top: 8px;
    gap: 6px;
    align-items: center;
  }

  .price {
    font-size: 17px;
    white-space: nowrap;
  }

  .add {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}
/* ================= FOOTER INSTITUCIONAL ================= */

.site-footer {
  background: var(--chocolate);
  color: #fff;
  padding: 42px 6% 22px;
  text-align: left;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr 1fr;
  gap: 28px;
}

.footer-brand strong {
  display: block;
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p,
.footer-section p,
.footer-section a {
  color: #f3d8ca;
  font-size: 14px;
  line-height: 1.55;
}

.footer-section h4 {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-section a {
  display: block;
  text-decoration: none;
  margin-bottom: 7px;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #d8bdb4;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer {
    padding: 34px 6% 20px;
  }
}

/* ================= PÁGINAS LEGAIS ================= */

.legal-page {
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 50px var(--shadow);
}

.legal-card h1 {
  color: var(--wine);
  margin-bottom: 10px;
}

.legal-card h2 {
  color: var(--chocolate);
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 21px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 570px) {
  .legal-card {
    padding: 24px;
  }

  .legal-card h1 {
    font-size: 26px;
  }
}

/* ================= MODAL DE PERSONALIZAÇÃO ================= */

.product-customization {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.product-customization.open {
  display: block;
}

.product-customization-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 9, 2, .58);
}

.product-customization-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 92%);
  max-height: 88vh;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(20, 9, 2, .25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.customization-header {
  padding: 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.customization-category {
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
}

.customization-header h2 {
  font-size: 24px;
  color: var(--chocolate);
  margin-top: 4px;
}

.customization-close {
  border: 0;
  background: #f6e6eb;
  color: var(--wine-dark);
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.customization-content {
  padding: 20px 22px;
  overflow-y: auto;
}

.customization-description {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group-header {
  margin-bottom: 10px;
}

.option-group-header strong {
  display: block;
  color: var(--chocolate);
  font-size: 16px;
}

.option-group-header span {
  color: var(--muted);
  font-size: 12px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
}

.option-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--wine);
}

.option-row strong {
  flex: 1;
  color: var(--brown);
  font-size: 14px;
}

.option-row span {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.customization-note-box {
  display: grid;
  gap: 8px;
}

.customization-note-box label {
  color: var(--chocolate);
  font-weight: 900;
  font-size: 14px;
}

.customization-note-box span {
  color: var(--muted);
  font-size: 12px;
}

.customization-note-box textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  resize: none;
  font-size: 14px;
}

.customization-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: #fff;
}

.customization-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customization-quantity button {
  border: 0;
  background: var(--wine);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

.customization-add-button {
  border: 0;
  background: linear-gradient(135deg, var(--wine), var(--blue));
  color: #fff;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 13px;
}

@media (max-width: 570px) {
  .product-customization-panel {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 88vh;
    transform: none;
    border-radius: 26px 26px 0 0;
  }

  .customization-header h2 {
    font-size: 21px;
  }

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

  .customization-quantity {
    justify-content: center;
  }
}

/* ================= AVISO DO FLUXO WHATSAPP ================= */

.checkout-whatsapp-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 14px;
  background: linear-gradient(135deg, #fff8e7, #fff4f7);
  border: 1px solid #ead7b4;
  border-radius: 16px;
  color: var(--chocolate);
}

.checkout-whatsapp-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #ead7b4;
  font-size: 19px;
}

.checkout-whatsapp-notice strong {
  display: block;
  color: var(--wine-dark);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-whatsapp-notice p {
  margin: 5px 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-whatsapp-notice small {
  display: block;
  color: #866b31;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .checkout-whatsapp-notice {
    grid-template-columns: 1fr;
  }
}
