/* ===== LA MIA CONFEITARIA - PUBLIC STYLES ===== */

/* FOUC Prevention */
body.loading {
  opacity: 0;
}
body.no-transition,
body.no-transition *,
body.no-transition *::before,
body.no-transition *::after {
  transition: none !important;
  animation: none !important;
}

:root {
  --brand: #8F0022;
  --brand-light: #b8003a;
  --brand-dark: #6b001a;
  --brand-bg: #fef5f7;
  --text: #2d2d2d;
  --text-light: #666;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --border: #e8e5e1;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-display: 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.15s ease;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-align: center; justify-content: center;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; display: flex; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #c0392b; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { font-size: 1.8rem; }
.logo-img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--brand);
}
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
  color: var(--text); font-weight: 500; padding: 0.5rem 0;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--brand); border-bottom-color: var(--brand);
}
.nav-cart { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--brand); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.mobile-toggle { display: none; }
.nav-login { display: flex; align-items: center; gap: 0.4rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(143,0,34,0.75), rgba(107, 0, 27, 0.932)), url('/public/images/fundo.webp') center/cover no-repeat;
  padding: 2rem 0;
  text-align: center;
  contain: layout style;
}
.hero-content h1 {
  font-family: var(--font-display); font-size: 3rem;
  font-weight: 900; color: #fff; margin-bottom: 1rem;
}
.hero-content .highlight { color: var(--brand); }
.hero-content p {
  font-size: 1.2rem; color: var(--text-light);
  max-width: 600px; margin: 0 auto 2rem;
}
.hero-year {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: #fff !important;
  margin: 0.5rem auto 0 auto !important;
  text-align: center !important;
  display: block;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 3rem 0; }
.page-header { padding: 2rem 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-header h1 { font-family: var(--font-display); font-size: 2rem; }
.section-title {
  font-family: var(--font-display); font-size: 2rem;
  text-align: center; margin-bottom: 2rem;
  color: var(--text);
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
  text-decoration: none; color: var(--text);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-img { height: 150px; overflow: hidden; background: var(--bg-alt); }
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--brand); opacity: 0.3;
}
.category-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--brand); opacity: 0.3;
}
.category-label { display: block; padding: 0.75rem 1rem; font-weight: 500; }
.category-card h3 { padding: 1rem; font-size: 1rem; }

/* ===== PRODUCTS GRID ===== */

/* Filters Bar */
.filters-bar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: nowrap;
}
.filter-dropdown { position: relative; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
  font-family: var(--font-body); font-size: 0.9rem;
  cursor: pointer; transition: var(--transition); color: var(--text);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-arrow { font-size: 0.7rem; margin-left: 0.2rem; transition: var(--transition); }
.filter-dropdown-menu.open .filter-arrow,
.filter-dropdown .filter-dropdown-menu.open ~ .filter-btn .filter-arrow { transform: rotate(180deg); }
.filter-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 220px; z-index: 50; padding: 0.5rem 0;
}
.filter-dropdown-menu.open { display: block; }
.filter-check-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem; cursor: pointer; transition: var(--transition);
  font-size: 0.9rem; color: var(--text);
}
.filter-check-item:hover { background: var(--brand-bg); }
.filter-check-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer;
}
.filter-select {
  padding: 0.6rem 1.2rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text); cursor: pointer; transition: var(--transition);
  appearance: auto;
}
.filter-select:hover, .filter-select:focus { border-color: var(--brand); outline: none; }

.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.products-sidebar h3 { margin-bottom: 1rem; font-family: var(--font-display); }
.category-list { list-style: none; }
.category-list li { margin-bottom: 0.3rem; }
.category-list a {
  display: block; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm); color: var(--text-light);
  transition: var(--transition);
}
.category-list a:hover, .category-list a.active {
  background: var(--brand-bg); color: var(--brand); font-weight: 500;
}

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
  contain: layout style;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-img { height: 360px; overflow: hidden; background: var(--bg-alt); contain: layout style; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); will-change: transform; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted); opacity: 0.3;
}
.product-info { padding: 1.25rem; }
.product-category {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--brand);
  font-weight: 600;
}
.product-info h3 { margin: 0.3rem 0 0.5rem; font-size: 1.1rem; }
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--brand); }
.product-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.product-price {
  font-size: 1.3rem; font-weight: 700; color: var(--brand);
  margin-bottom: 0.75rem;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-img { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.product-detail-img img { width: 100%; }

/* ===== CAROUSEL ===== */
.product-carousel {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
  flex-shrink: 0;
}
.carousel-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
.product-carousel-lg {
  border-radius: var(--radius);
  max-height: 520px;
}
.product-carousel-lg .carousel-slide img {
  max-height: 520px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--brand);
  z-index: 2;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
/* Prevent hover zoom from applying to carousel images inside cards */
.product-card:hover .product-img .carousel-slide img { transform: none; }
.product-placeholder-lg {
  height: 400px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--text-muted); opacity: 0.2;
}
.product-price-lg { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 1rem 0; }
.product-description { color: var(--text-light); margin-bottom: 1rem; line-height: 1.7; }
.product-description h2, .product-description h3 { color: var(--text-dark); margin: 0.75rem 0 0.4rem; font-size: 1rem; }
.product-description ul, .product-description ol { padding-left: 1.4rem; margin: 0.4rem 0; }
.product-description li { margin-bottom: 0.2rem; }
.product-description strong { color: var(--text-dark); }
.product-description a { color: var(--primary); }
.breadcrumb { font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); }

/* Quantity selector */
.quantity-selector {
  display: inline-flex; align-items: center; border: 2px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px; border: none; background: var(--bg-alt);
  font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  width: 50px; height: 40px; border: none; text-align: center;
  font-size: 1rem; font-weight: 600;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.add-to-cart-form { display: flex; flex-direction: column; gap: 1rem; }

/* Availability */
.availability-info {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.availability-info h3 { margin-bottom: 1rem; font-size: 1rem; }
.availability-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.availability-item {
  padding: 0.5rem 1rem; background: #fff;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  font-size: 0.85rem;
}
.avail-date { font-weight: 600; }
.avail-qty { font-size: 0.75rem; color: var(--success); }

/* ===== CUSTOM EGG BUILDER ===== */
.builder-step { margin-bottom: 3rem; }
.builder-step h2 { font-family: var(--font-display); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-family: var(--font-body);
}
.options-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.option-card {
  position: relative; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  background: #fff;
}
.option-card:hover { border-color: var(--brand-light); }
.option-card input { position: absolute; opacity: 0; }
.option-card input:checked ~ .option-check { opacity: 1; }
.option-card input:checked ~ .option-img,
.option-card input:checked ~ .option-info { border-color: var(--brand); }
.option-card:has(input:checked) {
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand);
}
.option-img { height: 140px; overflow: hidden; background: var(--bg-alt); }
.option-img img { width: 100%; height: 100%; object-fit: cover; }
.option-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--brand); opacity: 0.2;
}
.option-info { padding: 0.75rem; text-align: center; }
.option-info h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.option-info p { font-size: 0.8rem; color: var(--text-light); }
.option-price { font-size: 0.8rem; color: var(--brand); font-weight: 600; }
.option-check {
  position: absolute; top: 8px; right: 8px;
  font-size: 1.5rem; color: var(--brand);
  opacity: 0; transition: var(--transition);
}

.builder-summary { max-width: 400px; margin: 0 auto; }
.summary-card {
  background: var(--bg-alt); padding: 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.summary-line {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.summary-line:last-of-type { border-bottom: none; }
.summary-total { font-size: 1.1rem; border-top: 2px solid var(--brand); margin-top: 0.5rem; padding-top: 0.75rem; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }
.cart-item {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 1rem;
  align-items: center;
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 1.5rem; color: var(--text-muted); opacity: 0.3; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.cart-custom-info { font-size: 0.8rem; color: var(--text-light); }
.cart-custom-info span { display: block; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.cart-item-total { font-weight: 700; font-size: 1.1rem; color: var(--brand); min-width: 100px; text-align: right; }
.btn-remove {
  background: none; border: none; color: var(--danger);
  cursor: pointer; font-size: 1rem; padding: 0.5rem;
  transition: var(--transition);
}
.btn-remove:hover { color: #c0392b; }
.cart-summary {
  background: #fff; padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
.cart-summary h3 { margin-bottom: 1rem; font-family: var(--font-display); }
.summary-deposit {
  background: var(--brand-bg); padding: 0.75rem;
  border-radius: var(--radius-sm); margin: 1rem 0;
  font-size: 0.85rem; color: var(--brand);
}

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.checkout-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout-form h2, .checkout-summary h2 { font-family: var(--font-display); margin-bottom: 1.5rem; }
.checkout-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.checkout-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.checkout-section h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; color: var(--text); }
.checkout-section h2 i { color: var(--brand); font-size: 1.1rem; }
.checkout-summary {
  background: #fff; padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); position: sticky; top: 90px;
}

/* Login Banner */
.checkout-login-banner {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--brand-bg); border: 1px solid #f0d0d8;
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.login-banner-icon { font-size: 2rem; color: var(--brand); flex-shrink: 0; }
.login-banner-content p { margin-bottom: 0.75rem; font-size: 0.95rem; color: var(--text); }
.login-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Pickup Address Box */
.pickup-address-box {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.pickup-address-icon { font-size: 1.5rem; color: var(--brand); flex-shrink: 0; margin-top: 0.15rem; }
.pickup-address-info strong { font-size: 0.9rem; color: var(--text); display: block; margin-bottom: 0.2rem; }
.pickup-address-info p { font-size: 0.9rem; color: var(--text); margin: 0; }
.pickup-address-ref { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* Pickup Date Grid */
.pickup-date-grid {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.pickup-date-card {
  cursor: pointer; flex-shrink: 0;
}
.pickup-date-card input { position: absolute; opacity: 0; pointer-events: none; }
.pickup-date-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; padding: 0.6rem 0.5rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: var(--transition);
  text-align: center;
}
.pickup-date-card:hover .pickup-date-content { border-color: var(--brand-light); }
.pickup-date-card input:checked ~ .pickup-date-content {
  border-color: var(--brand); background: var(--brand-bg); box-shadow: 0 0 0 1px var(--brand);
}
.pickup-date-weekday { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; }
.pickup-date-day { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.pickup-date-month { font-size: 0.75rem; color: var(--brand); font-weight: 600; text-transform: uppercase; }
.summary-items { margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
.summary-item small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.deposit-amount {
  background: var(--brand-bg); padding: 1rem;
  border-radius: var(--radius-sm); text-align: center;
  font-size: 1.2rem; margin: 0.75rem 0; color: var(--brand);
}
.deposit-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.summary-deposit-box { margin: 1rem 0; }
.summary-deposit-box h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.summary-deposit-box p { font-size: 0.85rem; color: var(--text-light); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #b0aaa5;
  font-size: 0.9rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(143, 0, 34, 0.1);
}
.form-group input:hover:not(:focus), .form-group select:hover:not(:focus), .form-group textarea:hover:not(:focus) {
  border-color: #c5bfba;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Availability check */
.availability-check { margin: 1rem 0; }
.loading { color: var(--text-muted); }
.check-ok { color: var(--success); font-weight: 500; }
.check-error { color: var(--danger); font-weight: 500; }
.unavailable-list { margin-top: 0.5rem; padding-left: 1.5rem; font-size: 0.85rem; color: var(--text-light); }

/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-error { background: #fde8e8; color: var(--danger); border: 1px solid #f5c6c6; }
.alert-success { background: #e8fde8; color: var(--success); border: 1px solid #c6f5c6; }
.alert-info { background: #e8f0fd; color: #2563eb; border: 1px solid #c6d4f5; }
.alert-warning { background: #fdf6e8; color: #b45309; border: 1px solid #f5e2c6; }

/* ===== CONFIRMATION ===== */
.confirmation-card {
  max-width: 800px; margin: 0 auto;
  background: #fff; padding: 2rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.confirmation-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.confirmation-header h2 { font-family: var(--font-display); }
.confirmation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.confirmation-info p, .confirmation-payment p { margin-bottom: 0.3rem; font-size: 0.9rem; }
.payment-detail { background: var(--bg-alt); padding: 1rem; border-radius: var(--radius-sm); }
.confirmation-items { margin-bottom: 2rem; }
.confirmation-footer { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.confirmation-footer p { margin-bottom: 0.5rem; }

/* Badges */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 20px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase;
}
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-preparing { background: #e3f2fd; color: #1565c0; }
.badge-ready { background: #f3e5f5; color: #7b1fa2; }
.badge-delivered { background: #e0f2f1; color: #00695c; }
.badge-cancelled { background: #fbe9e7; color: #bf360c; }
.badge-partial { background: #fff8e1; color: #f57f17; }
.badge-paid { background: #e8f5e9; color: #2e7d32; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; font-size: 0.85rem; color: var(--text-light); background: var(--bg-alt); }
.table td { font-size: 0.9rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text); }

/* ===== CTA ===== */
.cta-section { background: var(--bg-alt); }
.cta-box {
  text-align: center; padding: 3rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; border-radius: var(--radius);
}
.cta-box h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta-box p { margin-bottom: 1.5rem; opacity: 0.9; }
.cta-box .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-box .btn:hover { background: rgba(255,255,255,0.9); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { color: #fff; font-family: var(--font-display); margin-bottom: 0.75rem; }
.footer-col h4 { color: #fff; margin-bottom: 0.5rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-logo { max-width: 120px; width: 100%; height: auto; margin-bottom: 0.75rem; display: block; }
.footer-bottom {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.highlight { color: var(--brand); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

/* ===== AUTH (login / cadastro) ===== */
.auth-card {
  max-width: 440px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { max-width: 180px; height: auto; }
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; font-family: var(--font-display); color: var(--brand); }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-light); }
.auth-alt a { color: var(--brand); font-weight: 600; }

/* ===== CLIENT AREA (perfil) ===== */
.client-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.client-sidebar {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.client-sidebar-user {
  background: var(--brand); color: #fff;
  padding: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
  font-weight: 600;
}
.client-sidebar-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem; color: var(--text); font-size: 0.95rem;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.client-sidebar-nav a:hover, .client-sidebar-nav a.active {
  background: var(--brand-bg); color: var(--brand); font-weight: 600;
}
.client-sidebar-nav hr { border: none; border-top: 1px solid var(--border); margin: 0; }
.client-logout { color: var(--danger) !important; }
.client-content { min-width: 0; }
.client-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.client-card h2 { margin-bottom: 1.25rem; font-family: var(--font-display); font-size: 1.2rem; }
.input-disabled { background: var(--bg-alt); color: var(--text-muted); cursor: not-allowed; }
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* ===== ORDERS LIST (cliente) ===== */
.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.25rem; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.order-date { font-size: 0.85rem; color: var(--text-light); margin-left: 0.5rem; }
.order-card-body {
  padding: 0.9rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: 0.9rem;
}
.order-card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); }

/* ===== ORDER DETAIL (cliente) ===== */
.order-detail-header { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0.5rem; }
.order-detail-header p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.order-items-table { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.order-item-row { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.order-item-name { flex: 1; }
.order-item-name small { display: block; color: var(--text-light); font-size: 0.8rem; }
.order-item-qty { color: var(--text-light); min-width: 30px; }
.order-item-price { font-weight: 600; min-width: 90px; text-align: right; }
.order-totals { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem; }
.order-total-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.95rem; }

/* ===== ADDRESSES (cliente) ===== */
.addresses-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 0.5rem; }
.address-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; background: var(--bg); box-shadow: var(--shadow);
}
.address-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.badge-default { background: var(--brand); color: #fff; border-radius: 20px; padding: 0.2rem 0.6rem; font-size: 0.75rem; }
.address-card-body p { font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.address-card-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* ===== CHECKOUT saved addresses ===== */
.saved-addresses-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.25rem; }
.saved-address-option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.saved-address-option:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }

/* ===== BADGE STATUS ===== */
.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-preparing { background: #cce5ff; color: #004085; }
.badge-ready     { background: #d1ecf1; color: #0c5460; }
.badge-delivered { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state p { margin-bottom: 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .products-layout { grid-template-columns: 1fr; }
  .products-sidebar { order: -1; }
  .category-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .product-detail { grid-template-columns: 1fr; } 
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; overflow: hidden; }
  .checkout-form { padding: 1rem; min-width: 0; }
  .checkout-summary { min-width: 0; overflow-wrap: break-word; }
  .checkout-login-banner { flex-direction: column; text-align: center; }
  .login-banner-actions { justify-content: center; }
  .pickup-date-grid { justify-content: center; }
  .confirmation-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-actions { width: 100%; justify-content: space-between; }
  .mobile-toggle { display: none; }
  .main-nav { display: flex; }
  .options-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .client-layout { grid-template-columns: 1fr; }
  .client-sidebar { order: -1; }
  .order-detail-header { grid-template-columns: 1fr; }
  .addresses-list { grid-template-columns: 1fr; }
}

/* ===== VARIAÇÕES DE PRODUTO ===== */
.variation-selectors {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.variation-category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.variation-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.variation-category-header i {
  font-size: 1.1rem;
  color: var(--brand);
  flex-shrink: 0;
}

.variation-category-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}

.variation-category-header p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.1rem 0 0;
}

.variation-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.variation-option-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.variation-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variation-option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: var(--transition);
  position: relative;
  min-height: 80px;
  justify-content: center;
  gap: 0.3rem;
}

.variation-option-content:hover {
  border-color: var(--brand-light);
  background: var(--brand-bg);
}

.variation-option-card input[type="radio"]:checked ~ .variation-option-content {
  border-color: var(--brand);
  background: var(--brand-bg);
  box-shadow: 0 0 0 1px var(--brand);
}

.variation-option-check {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1rem;
  color: var(--brand);
  opacity: 0;
  transition: var(--transition);
}

.variation-option-card input[type="radio"]:checked ~ .variation-option-content .variation-option-check {
  opacity: 1;
}

.variation-option-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.variation-option-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.3;
}

.variation-option-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.15rem;
}

/* Add to cart row */
.add-to-cart-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Cart variations display */
.cart-variations-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0;
}
.cart-variations-info span {
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid #f4cdd5;
}

@media (max-width: 768px) {
  .variation-options {
    grid-template-columns: 1fr 1fr;
  }
}
