/* ===== Brand Setup & Reset ===== */
:root {
  --brand-dark: #8c5b4d;
  --brand-darker: #6f463a;
  --brand-medium: #b7846a;
  --brand-light: #f1ddd3;
  --brand-soft: #f8efe9;
  --brand-cream: #fcf7f3;
  --brand-white: #ffffff;
  --brand-text: #3f322c;
  --brand-muted: #8c7568;
  --shadow-soft: 0 18px 38px rgba(140, 91, 77, 0.12);
  --shadow-hover: 0 24px 48px rgba(140, 91, 77, 0.16);
  scroll-behavior: smooth;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--brand-soft);
  background-image: radial-gradient(circle at 20% 20%, rgba(241, 221, 211, 0.55), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(183, 132, 106, 0.18), transparent 40%);
  color: var(--brand-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  color: var(--brand-darker);
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible {
  outline: 2px solid rgba(183, 132, 106, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  align-items: center;
}

.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.row.between.center { justify-content: space-between; }
.row.gap { gap: 12px; }

#catalogo {
  scroll-margin-top: 120px;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(252, 247, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 91, 77, 0.12);
  box-shadow: 0 10px 30px rgba(140, 91, 77, 0.08);
  padding: 14px 0;
}

.topbar .container {
  gap: 20px;
}

.topbar .brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(140, 91, 77, 0.15);
  background: var(--brand-white);
}

.brand-name {
  font-size: 22px;
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.04em;
  color: var(--brand-darker);
}

.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar nav .nav-link {
  font-weight: 500;
  color: var(--brand-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.topbar nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-medium);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.topbar nav .nav-link:hover,
.topbar nav .nav-link:focus-visible {
  color: var(--brand-darker);
}

.topbar nav .nav-link:hover::after,
.topbar nav .nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-medium));
  color: var(--brand-white);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--brand-darker), var(--brand-medium));
}

.btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(140, 91, 77, 0.3);
  box-shadow: none;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(241, 221, 211, 0.5);
  color: var(--brand-darker);
  box-shadow: none;
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn.ghost.is-current {
  border-color: var(--brand-medium);
  background: rgba(183, 132, 106, 0.16);
  color: var(--brand-darker);
}

.btn.ghost.danger {
  color: #b13838;
  border-color: rgba(214, 69, 69, 0.4);
}

.btn.ghost.danger:hover,
.btn.ghost.danger:focus-visible {
  background: rgba(214, 69, 69, 0.12);
  color: #8f2424;
}

#cartCount {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: rgba(183, 132, 106, 0.18);
  top: -120px;
  right: -160px;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: rgba(241, 221, 211, 0.7);
  bottom: -140px;
  left: -120px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-self: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(183, 132, 106, 0.15);
  color: var(--brand-darker);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--brand-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.hero-slider {
  width: 100%;
  max-width: 520px;
  background: var(--brand-cream);
  border-radius: 24px;
  padding: 26px 26px 32px;
  box-shadow: 0 18px 32px rgba(140, 91, 77, 0.14);
  position: relative;
  overflow: hidden;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 18px 18px 90px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(241, 221, 211, 0.45));
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-slider-track {
  position: relative;
  min-height: 320px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 12px;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 28px rgba(140, 91, 77, 0.18);
}

.hero-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-slide h3 {
  font-size: 1.35rem;
  font-family: "Playfair Display", serif;
}

.hero-slide p {
  color: var(--brand-muted);
  font-size: 0.98rem;
}

.hero-slide-tag {
  align-self: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(140, 91, 77, 0.16);
  color: var(--brand-darker);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slider-dots {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(140, 91, 77, 0.28);
  border: none;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.hero-slider-dot.is-active {
  width: 32px;
  background: var(--brand-primary);
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--brand-cream);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(140, 91, 77, 0.18);
  box-shadow: 0 12px 28px rgba(140, 91, 77, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 1.8rem;
  display: inline-flex;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* ===== Catálogo ===== */
.catalogo {
  padding: 90px 0;
  background: linear-gradient(180deg, rgba(252, 247, 243, 0.6), rgba(241, 221, 211, 0.2));
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
}

.section-head p {
  color: var(--brand-muted);
  font-size: 1rem;
}

.filters {
  background: var(--brand-white);
  border-radius: 20px;
  border: 1px solid rgba(140, 91, 77, 0.12);
  box-shadow: 0 14px 26px rgba(140, 91, 77, 0.08);
  padding: 20px;
  gap: 12px;
  align-items: stretch;
}

.filters > * {
  flex: 1 1 180px;
}

.input {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 91, 77, 0.2);
  background: var(--brand-cream);
  font-size: 0.95rem;
  color: var(--brand-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 160px;
}

.input:focus {
  outline: none;
  border-color: var(--brand-medium);
  box-shadow: 0 0 0 3px rgba(183, 132, 106, 0.2);
}

.filters .btn,
.filters .btn.ghost {
  flex: 0 0 auto;
  box-shadow: none;
}

.filters .btn:hover {
  box-shadow: var(--shadow-soft);
}

#emptyState {
  margin-top: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 28px;
}

.orders-section {
  padding: 80px 0;
}

.orders-guest {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(140, 91, 77, 0.35);
  border-radius: 18px;
  padding: 26px;
  margin-top: 28px;
  box-shadow: 0 12px 28px rgba(140, 91, 77, 0.06);
}

.orders-guest h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.orders-error {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.35);
  color: #8f2424;
  font-weight: 500;
}

.orders-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.order-card {
  border-left: 6px solid rgba(140, 91, 77, 0.25);
  position: relative;
}

.order-card__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.order-card__title {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--brand-darker);
  margin-bottom: 4px;
}

.order-card__meta-line {
  font-size: 0.86rem;
  color: var(--brand-muted);
}

.order-card__status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(140, 91, 77, 0.12);
  color: var(--brand-darker);
  white-space: nowrap;
}

.order-card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
  margin: -8px 0 0;
  border-radius: 16px;
  background: rgba(140, 91, 77, 0.06);
}

.order-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.order-card__value {
  font-weight: 600;
  color: var(--brand-darker);
}

.order-card__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card__items ul {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.order-card__items li {
  font-size: 0.92rem;
  color: var(--brand-text);
}

.order-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-card__tracking,
.order-card__tracking-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card__tracking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-card__tracking-input {
  flex: 1 1 220px;
  min-width: 180px;
}

.order-tracking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-tracking__code {
  font-weight: 600;
  color: var(--brand-darker);
}

.order-tracking__status {
  font-size: 0.95rem;
  color: var(--brand-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-tracking__event {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(140, 91, 77, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-tracking__event-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-tracking__event-head strong {
  font-size: 0.95rem;
  color: var(--brand-darker);
}

.order-tracking__event-head span {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

.order-tracking__event p {
  margin: 0;
  font-size: 0.9rem;
}

.order-tracking__history {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(140, 91, 77, 0.16);
}

.order-tracking__history summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-darker);
  list-style: none;
}

.order-tracking__history summary::-webkit-details-marker {
  display: none;
}

.order-tracking__history summary::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.order-tracking__history[open] summary::after {
  transform: rotate(180deg);
}

.order-tracking__history ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.order-tracking__history li {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--brand-text);
}

.order-tracking__history li span {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-muted);
}

.order-card__actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.order-card__actions .btn {
  white-space: nowrap;
}

.order-card__empty {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  width: 100%;
  box-shadow: 0 12px 24px rgba(140, 91, 77, 0.08);
}

.order-card.is-paid {
  border-left-color: #d4a017;
  background: linear-gradient(140deg, rgba(255, 221, 118, 0.16), rgba(255, 249, 232, 0.85));
}

.order-card.is-sent {
  border-left-color: #3b9d73;
  background: linear-gradient(140deg, rgba(66, 174, 118, 0.16), rgba(233, 247, 242, 0.85));
}

.order-card.is-delivered {
  border-left-color: #2e7a53;
  background: linear-gradient(140deg, rgba(46, 122, 83, 0.18), rgba(226, 245, 236, 0.9));
}

.order-card.is-canceled {
  border-left-color: #d64545;
  background: linear-gradient(140deg, rgba(214, 69, 69, 0.14), rgba(253, 236, 234, 0.88));
}

.order-card__status-badge.is-paid {
  background: rgba(255, 204, 0, 0.22);
  color: #8a6d1f;
}

.order-card__status-badge.is-sent {
  background: rgba(72, 175, 132, 0.22);
  color: #2e7a53;
}

.order-card__status-badge.is-delivered {
  background: rgba(46, 122, 83, 0.22);
  color: #1f6241;
}

.order-card__status-badge.is-canceled {
  background: rgba(214, 69, 69, 0.18);
  color: #a93434;
}

.order-card__status-badge.is-pending {
  background: rgba(140, 91, 77, 0.15);
  color: var(--brand-darker);
}

.card {
  background: var(--brand-white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(140, 91, 77, 0.12);
  box-shadow: 0 12px 28px rgba(140, 91, 77, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card .pad {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-darker);
}

.brand {
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.price-row strong {
  font-size: 1.05rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(241, 221, 211, 0.7);
  color: var(--brand-darker);
  font-size: 0.85rem;
}

.muted {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.hidden { display: none !important; }

/* ===== Drawer (Carrinho) ===== */
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(380px, 100vw);
  background: var(--brand-cream);
  border-left: 1px solid rgba(140, 91, 77, 0.15);
  box-shadow: -12px 0 30px rgba(31, 20, 14, 0.12);
  padding: 24px;
  z-index: 300;
  overflow-y: auto;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer.hidden { display: none; }

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

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--brand-white);
  border: 1px solid rgba(140, 91, 77, 0.12);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item .qty {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-item .qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--brand-darker);
}

.cart-item .qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(241, 221, 211, 0.8);
  color: var(--brand-darker);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-item .qty button:hover {
  background: var(--brand-medium);
  color: #fff;
}

/* ===== Modal ===== */
.modal {
  border: none;
  border-radius: 22px;
  padding: 0;
  max-width: 720px;
  width: 92%;
}

.modal-card {
  position: relative;
  padding: 24px;
  background: var(--brand-white);
  border-radius: 22px;
  border: 1px solid rgba(140, 91, 77, 0.18);
  box-shadow: var(--shadow-soft);
}

.modal-card .close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.icon-btn {
  background: rgba(241, 221, 211, 0.8);
  color: var(--brand-darker);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--brand-medium);
  color: #fff;
}

.modal-body {
  display: grid;
  gap: 20px;
}

.modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Checkout & Shipping ===== */
.checkout-shipping-block {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-section-title {
  font-weight: 600;
  color: var(--brand-darker);
  font-size: 1.05rem;
}

.checkout-shipping-options {
  display: grid;
  gap: 12px;
}

.shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(140, 91, 77, 0.28);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shipping-option input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--brand-dark);
}

.shipping-option__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-option__content strong {
  font-size: 0.95rem;
  color: var(--brand-text);
}

.shipping-option__content span {
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.shipping-option.is-active {
  border-color: var(--brand-medium);
  background: var(--brand-white);
  box-shadow: var(--shadow-soft);
}

.shipping-calc {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(140, 91, 77, 0.25);
  background: rgba(252, 247, 243, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-calc__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shipping-summary {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.shipping-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-service-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 91, 77, 0.25);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shipping-service-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--brand-dark);
}

.shipping-service-option__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shipping-service-option__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-text);
}

.shipping-service-option__price {
  font-size: 0.82rem;
  color: var(--brand-dark);
}

.shipping-service-option__details {
  font-size: 0.72rem;
  color: var(--brand-muted);
}

.shipping-service-option__error {
  color: #c0392b;
}

.shipping-service-option.is-selected {
  border-color: var(--brand-medium);
  box-shadow: var(--shadow-soft);
}

.shipping-service-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shipping-service-option.is-disabled input[type="radio"] {
  cursor: not-allowed;
}

.shipping-service-origin {
  margin-top: 6px;
  font-size: 0.75rem;
}

.shipping-service-warning {
  margin-top: 6px;
  font-size: 0.75rem;
}

.order-tracking__status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.order-tracking__status-info strong {
  font-size: 0.9rem;
  color: var(--brand-text);
}

.order-tracking__status-info .muted {
  font-size: 0.78rem;
}

.checkout-totals {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--brand-white);
  border: 1px solid rgba(140, 91, 77, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--brand-text);
}

.checkout-totals__divider {
  height: 1px;
  background: rgba(140, 91, 77, 0.18);
  margin: 4px 0;
}

.checkout-totals__total strong {
  font-size: 1.1rem;
  color: var(--brand-darker);
}

.text-small {
  font-size: 0.82rem;
}

.error-text {
  color: #c65d4f;
  font-weight: 600;
}

dialog::backdrop {
  background: rgba(45, 29, 23, 0.35);
}

/* ===== Footer ===== */
.footer {
  background: var(--brand-darker);
  color: #fef9f6;
  padding: 70px 0 0;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Misc ===== */
hr {
  border: none;
  border-top: 1px solid rgba(140, 91, 77, 0.2);
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .modal-body {
    grid-template-columns: 280px 1fr;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 110px 0 90px;
  }
}

@media (min-width: 960px) {
  .hero-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .hero-content {
    margin: 0;
    text-align: left;
    align-items: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-slider {
    align-self: stretch;
  }

  .hero-slider-track {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .order-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card__status-badge {
    margin-top: 8px;
  }

  .order-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-card__actions-group {
    justify-content: flex-start;
    width: 100%;
  }

  .order-card__actions-group .btn {
    flex: 1 1 120px;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .topbar nav {
    width: 100%;
    justify-content: flex-start;
  }

  .filters {
    flex-direction: column;
  }

  .filters > * {
    width: 100%;
    flex: 1 1 100%;
  }

  .filters .btn,
  .filters .btn.ghost {
    width: 100%;
  }

  .drawer {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 80px;
  }

  .hero-slider {
    padding: 22px 22px 28px;
  }

  .hero-slider-track {
    min-height: 280px;
  }

  .hero-slide img {
    height: 200px;
  }

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

  .brand-name {
    font-size: 20px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom .row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

.payment-status-banner {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: #f6f1eb;
  color: #5d4037;
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(93, 64, 55, 0.12);
}

.payment-status-banner strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.payment-status-banner.is-pending {
  background: #fff8e1;
  color: #8a6d3b;
}

.payment-status-banner.is-paid {
  background: #e7f7ef;
  color: #1b5e20;
}

.payment-status-banner.is-canceled,
.payment-status-banner.is-error {
  background: #fdecea;
  color: #b71c1c;
}
