:root {
  --bg-cream: #faf7f4;
  --bg-card: #ffffff;
  --wine-900: #4a1228;
  --wine-800: #6a1b3a;
  --rose-600: #c83764;
  --rose-500: #df4b78;
  --rose-100: #fceef3;
  --leaf-700: #225c3b;
  --leaf-600: #2d7a4f;
  --leaf-100: #e9f5ee;
  --amber-700: #9a5b13;
  --amber-100: #fef3dc;
  --text-900: #1f191b;
  --text-600: #5c5155;
  --text-400: #8c7f84;
  --border-light: #ece3e6;
  --shadow-sm: 0 2px 10px rgba(74, 18, 40, 0.05);
  --shadow-md: 0 10px 28px rgba(74, 18, 40, 0.09);
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Top Promo Bar */
.top-bar {
  background: var(--wine-900);
  color: #fff;
  font-size: 0.84rem;
  padding: 8px 16px;
}
.top-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-links {
  display: flex;
  gap: 16px;
}
.top-links a {
  color: #fbd5e0;
  font-weight: 500;
  transition: color 0.15s;
}
.top-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--wine-800);
  letter-spacing: -0.02em;
}
.brand-logo span.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-600);
  letter-spacing: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cart {
  background: var(--wine-800);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.15s;
}
.btn-cart:hover {
  background: var(--rose-600);
  transform: translateY(-1px);
}
.cart-badge {
  background: #fff;
  color: var(--wine-800);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Hero & Destination Bar */
.hero-section {
  background: linear-gradient(135deg, #5d1632 0%, #8c224b 55%, #b83360 100%);
  color: #fff;
  padding: 40px 20px 46px;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero-title {
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #fce4ec;
  margin-bottom: 22px;
  max-width: 580px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Destination Simulator Card ("João em SP -> Namorada na Bahia") */
.dest-card {
  background: #fff;
  color: var(--text-900);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.dest-card h3 {
  font-size: 1.08rem;
  color: var(--wine-800);
  margin-bottom: 4px;
}
.dest-card p {
  font-size: 0.84rem;
  color: var(--text-600);
  margin-bottom: 14px;
}
.dest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dest-form-grid .full-row {
  grid-column: 1 / -1;
}
.input-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-600);
  margin-bottom: 4px;
}
.input-control, select.input-control, textarea.input-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text-900);
  outline: none;
  transition: border-color 0.15s;
}
.input-control:focus {
  border-color: var(--rose-600);
}
.btn-primary {
  background: var(--rose-600);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--wine-800);
}
.btn-secondary {
  background: var(--rose-100);
  color: var(--wine-800);
  border: 1px solid #f5cbd9;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #f8dce6;
}

/* Main Container & Category Bar */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cat-pill {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--wine-800);
  color: #fff;
  border-color: var(--wine-800);
}

.destination-active-banner {
  background: var(--leaf-100);
  color: var(--leaf-700);
  border: 1px solid #bfe3cd;
  padding: 11px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4ecee;
  overflow: hidden;
  cursor: pointer;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.deadline-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.badge-express {
  background: rgba(34, 92, 59, 0.92);
  color: #fff;
}
.badge-sameday {
  background: rgba(106, 27, 58, 0.9);
  color: #fff;
}
.badge-scheduled {
  background: rgba(154, 91, 19, 0.92);
  color: #fff;
}
.featured-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--rose-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.seller-tag {
  font-size: 0.75rem;
  color: var(--text-600);
  font-weight: 600;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 6px;
  cursor: pointer;
}
.product-title:hover {
  color: var(--rose-600);
}
.product-desc {
  font-size: 0.84rem;
  color: var(--text-600);
  margin-bottom: 14px;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  gap: 8px;
}
.price-main {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--wine-800);
}
.price-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-400);
}
.btn-buy-now {
  background: var(--leaf-600);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-buy-now:hover {
  background: var(--leaf-700);
}

/* Modals & Slide-Over Cart/Checkout Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 12, 18, 0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--rose-100);
  color: var(--wine-800);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.modal-product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.modal-product-img img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.seller-badge {
  display: inline-block;
  background: var(--rose-100);
  color: var(--wine-800);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.modal-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--wine-800);
  margin: 10px 0;
}
.modal-full-desc {
  color: var(--text-600);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.modal-specs {
  background: var(--bg-cream);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.btn-primary-lg {
  width: 100%;
  background: var(--leaf-600);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary-lg:hover {
  background: var(--leaf-700);
}

/* Drawer Cart + One-Page Checkout */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 12, 18, 0.55);
  z-index: 110;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open {
  display: flex;
}
.drawer-panel {
  background: #fff;
  width: 100%;
  max-width: 540px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
}
.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--wine-900);
  color: #fff;
}
.drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.cart-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-row img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-weight: 700;
  font-size: 0.92rem;
}
.cart-item-meta {
  font-size: 0.76rem;
  color: var(--text-600);
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-cream);
  cursor: pointer;
  font-weight: 700;
}

.checkout-step-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 15px;
  margin-top: 16px;
}
.checkout-step-box h4 {
  color: var(--wine-800);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.summary-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.summary-line.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wine-800);
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 6px;
}

/* Panels (Seller & Admin) */
.panel-shell {
  max-width: 1220px;
  margin: 28px auto;
  padding: 0 20px 60px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: 0.8rem;
  color: var(--text-600);
  font-weight: 600;
}
.kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--wine-800);
  margin-top: 4px;
}
.panel-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.table-responsive {
  overflow-x: auto;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.data-table th, table.data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
table.data-table th {
  background: var(--bg-cream);
  color: var(--text-600);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.status-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.status-approved, .status-delivered, .status-paid {
  background: var(--leaf-100);
  color: var(--leaf-700);
}
.status-pending, .status-received, .status-preparing, .status-pending_pix {
  background: var(--amber-100);
  color: var(--amber-700);
}
.status-rejected, .status-cancelled {
  background: #fde8e8;
  color: #b91c1c;
}

.alert-box {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.alert-error {
  background: #fde8e8;
  color: #991b1b;
  border: 1px solid #f8b4b4;
}
.alert-success {
  background: var(--leaf-100);
  color: var(--leaf-700);
  border: 1px solid #a7f3d0;
}

/* Order Tracking Box */
.track-section {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 44px;
}
.track-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.track-code {
  background: var(--wine-800);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.site-footer {
  background: var(--wine-900);
  color: #f3dce4;
  padding: 40px 20px;
  margin-top: 60px;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 820px) {
  .hero-grid, .modal-product-detail {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}
