/* ==========================================================================
   Design System: Vício Feminino Acessórios (Rosa Antigo & Grafite Chique)
   Inspirado na identidade visual da logo oficial:
   - Tom Principal: Rosa Antigo / Dusty Rose (#b86584)
   - Tom Secundário: Grafite Nobre (#2b2729 e #686265)
   - Superfície e Cartões: Branco Puro (#ffffff) com toques de Blush (#fcf1f4)
   - Bordas e Detalhes: Rosa Suave (rgba(184, 101, 132, 0.16))
   ========================================================================== */

:root {
  --bg-body: #faf7f8;
  --bg-surface: #ffffff;
  --bg-elevated: #fcf1f4;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;

  --border-color: rgba(184, 101, 132, 0.18);
  --border-focus: rgba(184, 101, 132, 0.45);
  --border-subtle: rgba(184, 101, 132, 0.10);

  --text-primary: #2b2729;
  --text-secondary: #686265;
  --text-muted: #9c9598;
  --text-inverse: #ffffff;

  --accent-primary: #b86584;
  --accent-hover: #a35372;
  --accent-active: #8f4260;
  --accent-soft: #fcf1f4;

  --semantic-success: #10b981;
  --semantic-danger: #ef4444;
  --semantic-warning: #f59e0b;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20bd5a;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 18px rgba(184, 101, 132, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 14px 34px rgba(184, 101, 132, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(184, 101, 132, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.brand-info h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-info span {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  display: inline-block;
}

.status-dot.connected {
  background-color: var(--semantic-success);
}

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

.btn-icon {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: 0 2px 6px rgba(184, 101, 132, 0.08);
}

.btn-icon:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(184, 101, 132, 0.4);
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--accent-soft);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
}

/* Hero Section */
.hero {
  padding: 44px 24px 30px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #fdf8fa 0%, #faf7f8 100%);
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(184, 101, 132, 0.08);
}

.hero h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

/* Toolbar & Filters */
.toolbar-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 16px;
  width: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(184, 101, 132, 0.04);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(184, 101, 132, 0.14);
}

.categories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  border-color: var(--accent-primary);
}

.category-pill.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(184, 101, 132, 0.3);
}

.category-pill.highlight {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: #fff;
  font-weight: 700;
}

/* Products Grid */
.products-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
  flex: 1;
}

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

/* Product Card */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(184, 101, 132, 0.35);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(135deg, #fbf7f8 0%, #f4ecef 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  font-size: 0 !important;
  color: transparent !important;
}

.product-card:hover .card-image {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-sku {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  line-height: 1.4;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.5px;
}

.btn-add {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 10px rgba(184, 101, 132, 0.25);
}

.btn-add:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(184, 101, 132, 0.35);
}

.btn-add:active {
  background-color: var(--accent-active);
  transform: scale(0.97);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  margin: 0 auto 16px;
  color: var(--accent-primary);
}

/* Modal de Detalhes do Produto */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 39, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  border-color: var(--accent-primary);
}

.modal-gallery {
  background-color: #fdfafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}

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

.modal-details {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.modal-details .badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-details h3 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.modal-sku {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 38px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--accent-soft);
  color: var(--accent-primary);
}

.qty-number {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* Cart Drawer (Carrinho Lateral) */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 39, 41, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-elevated);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fdfafb;
}

.cart-header h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 2px 8px rgba(184, 101, 132, 0.05);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #fcf1f4;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-item-sku {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fff;
}

.cart-item-qty button {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.cart-item-qty button:hover {
  background-color: var(--accent-soft);
  color: var(--accent-primary);
}

.cart-item-qty span {
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--semantic-danger);
}

.cart-empty {
  text-align: center;
  margin: auto;
  color: var(--text-secondary);
}

/* Cart Checkout Footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: #fdfafb;
}

/* Shipping / Frete Correios no Carrinho */
.cart-shipping-block {
  margin-bottom: 16px;
  padding: 14px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.cep-help-link {
  font-size: 11px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.cep-help-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.cep-input-group {
  display: flex;
  gap: 8px;
}

.btn-calc-frete {
  padding: 0 16px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-calc-frete:hover {
  background-color: var(--accent-hover);
}

.btn-calc-frete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shipping-options-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

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

.shipping-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 13px;
  user-select: none;
}

.shipping-option-item:hover {
  border-color: var(--accent-primary);
}

.shipping-option-item.selected {
  border-color: var(--accent-primary);
  background-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.shipping-option-radio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.shipping-option-item.selected .shipping-radio-circle {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
}

.shipping-radio-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  display: none;
}

.shipping-option-item.selected .shipping-radio-circle::after {
  display: block;
}

.shipping-option-info {
  display: flex;
  flex-direction: column;
}

.shipping-option-name {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipping-option-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.shipping-option-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

.shipping-option-item.selected .shipping-option-price {
  color: var(--accent-primary);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.cart-summary-total span:last-child {
  color: var(--accent-primary);
}

.checkout-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-field:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(184, 101, 132, 0.15);
}

.checkout-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.payment-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
}

.payment-select:focus {
  border-color: var(--accent-primary);
}

.installments-wrapper {
  background-color: var(--accent-soft);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-whatsapp-checkout {
  width: 100%;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp-checkout:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn-secondary-action {
  width: 100%;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: var(--accent-soft);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInToast 0.25s ease forwards;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
  padding: 32px 24px;
  text-align: center;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness Enhancements (Modern Responsive Architecture)
   ========================================================================== */

/* Tablets e Telas Médias (<= 860px) */
@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 88dvh;
  }
  .modal-gallery {
    min-height: 240px;
    max-height: 320px;
  }
}

/* Celulares e Telas Pequenas (<= 640px) */
@media (max-width: 640px) {
  /* Header Mobile Compacto */
  .header-container {
    padding: 8px 12px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-info h1 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .brand-info span {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .btn-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  /* Hero Banner Mobile */
  .hero {
    padding: 22px 14px 18px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .hero h2 {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Barra de Busca e Filtros Mobile */
  .toolbar-section {
    padding: 12px 12px 10px;
  }

  .toolbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-box {
    min-width: 100%;
    max-width: 100%;
  }

  .search-input {
    font-size: 16px; /* Evita auto-zoom incômodo no Safari iOS */
    padding: 12px 14px 12px 40px;
    height: 46px;
  }

  /* Pílulas de Categoria com Swipe Horizontal Suave */
  .categories-bar {
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .categories-bar::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    padding: 7px 13px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Vitrine em 2 Colunas no Celular (Padrão Shein / Shopee / Mercado Livre) */
  .products-container {
    padding: 0 10px 40px;
  }

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

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

  .card-image-wrap {
    padding-top: 100%; /* Proporção quadrada 1:1 */
    border-radius: 12px 12px 0 0;
  }

  .card-tag {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .card-sku {
    bottom: 6px;
    right: 6px;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 3px;
  }

  .card-content {
    padding: 10px 8px 10px;
  }

  .card-title {
    font-size: 12px;
    line-height: 1.35;
    min-height: 33px;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  .card-desc {
    display: none; /* Oculta no card de 2 colunas para manter visual limpo e alinhado */
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    margin-top: auto;
  }

  .price-wrap {
    align-items: flex-start;
  }

  .price-current {
    font-size: 16px;
    font-weight: 800;
  }

  .btn-add {
    width: 100%;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    gap: 4px;
  }

  /* Modal de Detalhes no Mobile */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90dvh;
    width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }

  .modal-gallery {
    min-height: 200px;
    max-height: 260px;
    padding: 16px;
  }

  .modal-details {
    padding: 16px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-price {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: row;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }

  /* Carrinho Drawer em Tela Cheia no Mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .cart-header {
    padding: 14px 16px;
  }

  .cart-items-list {
    padding: 12px 14px;
  }

  .cart-footer {
    padding: 14px 16px;
    max-height: 60dvh;
    overflow-y: auto;
  }

  .input-field,
  .payment-select {
    font-size: 16px; /* Evita auto-zoom do iOS */
    padding: 11px 12px;
  }

  .btn-whatsapp-checkout {
    padding: 13px;
    font-size: 14px;
  }

  /* Toasts no Mobile */
  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .toast {
    padding: 10px 14px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* Celulares Ultracompactos (<= 360px - ex: iPhone SE, Galaxy Mini) */
@media (max-width: 360px) {
  .products-grid {
    gap: 8px;
  }
  .card-title {
    font-size: 11px;
  }
  .price-current {
    font-size: 15px;
  }
  .btn-add {
    font-size: 11px;
    padding: 7px 4px;
  }
}

/* ==========================================================================
   Multi-Loja: Seletor no Header & Modal de Boas-Vindas
   Design Oficial da Loja: Tons de Rosa & Blush (Vício Feminino Acessórios)
   ========================================================================== */

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated, #fcf1f4);
  color: var(--text-primary, #2b2729);
  border: 1px solid rgba(184, 101, 132, 0.28);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(184, 101, 132, 0.08);
}

.store-badge-btn:hover {
  background: #ffffff;
  border-color: var(--accent-primary, #b86584);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 101, 132, 0.16);
}

.store-badge-btn .store-pin-icon {
  display: flex;
  align-items: center;
  color: var(--accent-primary, #b86584);
}

.store-badge-btn .store-name-label {
  font-weight: 700;
  color: var(--accent-active, #8f4260);
}

.store-badge-btn .store-badge-change {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary, #b86584);
  padding-left: 6px;
  border-left: 1px solid rgba(184, 101, 132, 0.25);
}

/* Modal de Seleção de Loja */
.store-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 39, 41, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.store-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.store-modal-card {
  position: relative;
  background: var(--bg-surface, #ffffff);
  border: 1px solid rgba(184, 101, 132, 0.22);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  padding: 36px 30px;
  box-shadow: 0 24px 60px rgba(184, 101, 132, 0.22), 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: scale(0.96);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-modal-backdrop.open .store-modal-card {
  transform: scale(1);
}

.store-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-elevated, #fcf1f4);
  border: 1px solid rgba(184, 101, 132, 0.2);
  color: var(--text-secondary, #686265);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.store-modal-close:hover {
  background: #ffffff;
  border-color: var(--accent-primary, #b86584);
  color: var(--accent-primary, #b86584);
  transform: rotate(90deg);
}

.store-modal-header {
  text-align: center;
  margin-bottom: 26px;
}

.store-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-elevated, #fcf1f4);
  border: 1px solid rgba(184, 101, 132, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary, #b86584);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(184, 101, 132, 0.12);
}

.store-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #2b2729);
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.store-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #686265);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.store-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.store-option-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(184, 101, 132, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 10px rgba(184, 101, 132, 0.05);
}

.store-option-card:hover {
  background: var(--bg-elevated, #fcf1f4);
  border-color: var(--accent-primary, #b86584);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(184, 101, 132, 0.18);
}

.store-option-card.selected {
  border-color: var(--accent-primary, #b86584);
  background: var(--bg-elevated, #fcf1f4);
  box-shadow: 0 0 0 1.5px var(--accent-primary, #b86584), 0 8px 22px rgba(184, 101, 132, 0.16);
}

.store-option-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary, #b86584);
  background: rgba(184, 101, 132, 0.08);
  border: 1px solid rgba(184, 101, 132, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.store-option-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.store-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(184, 101, 132, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary, #b86584);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 101, 132, 0.08);
}

.store-option-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #2b2729);
  margin: 0;
}

.store-option-city,
.store-option-address {
  font-size: 12px;
  color: var(--text-secondary, #686265);
  margin: 3px 0 0 0;
  line-height: 1.35;
}

.store-option-info {
  font-size: 12px;
  color: var(--text-secondary, #686265);
  line-height: 1.45;
  margin: 10px 0 16px 0;
  flex-grow: 1;
}

.btn-store-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent-primary, #b86584);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(184, 101, 132, 0.25);
}

.btn-store-select:hover,
.store-option-card:hover .btn-store-select {
  background: var(--accent-hover, #a35372);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 101, 132, 0.35);
}

.store-modal-footer {
  text-align: center;
  border-top: 1px solid rgba(184, 101, 132, 0.15);
  padding-top: 16px;
}

.store-modal-tip {
  font-size: 12px;
  color: var(--text-secondary, #686265);
}

@media (max-width: 640px) {
  .store-selection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .store-modal-card {
    padding: 24px 18px;
  }
  .store-modal-header h2 {
    font-size: 19px;
  }
  .store-badge-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
}
