/*
 * ============================================================
 *  ZAPTOU — PRODUCT DETAILS MODAL v2.0
 *  Modal de detalhamento e configuração de produtos
 *  Refatorado: scroll fix, proporções, espaçamentos, 100dvh
 * ============================================================
 */

/* ── 1. OVERLAY ──────────────────────────────────────────── */
.pd-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pd-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* ── 2. CONTAINER PRINCIPAL ──────────────────────────────── */
.pd-modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  width: calc(100vw - 40px);
  max-width: 1400px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  max-height: 850px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(0, 54%);
  position: relative;
  outline: none;
}

/* ── 3. BOTÃO FECHAR ─────────────────────────────────────── */
.pd-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-size: 0;
}

.pd-modal-close:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}

.pd-modal-close:focus-visible {
  outline: 2px solid var(--z-primary, #ff6600);
  outline-offset: 2px;
}

.pd-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── 4. COLUNA DA IMAGEM ─────────────────────────────────── */
.pd-modal-image-panel {
  background: var(--z-surface-2, #f8f9fa);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.pd-modal-image-wrapper {
  width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-modal-image {
  width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pd-modal-image.loaded {
  opacity: 1;
}

/* Placeholder: usar contain, limitado a ~65% da área */
.pd-modal-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--z-text-muted, #8f7065);
  width: 65%;
  max-height: 65%;
}

.pd-modal-image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.35;
}

.pd-modal-image-placeholder span {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── 5. COLUNA DE CONTEÚDO ───────────────────────────────── */
.pd-modal-content-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ── 6. ÁREA ROLÁVEL ─────────────────────────────────────── */
.pd-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pd-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.pd-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.pd-modal-scroll::-webkit-scrollbar-thumb {
  background: var(--z-border-strong, rgba(0, 0, 0, 0.14));
  border-radius: 3px;
}

.pd-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--z-text-muted, #8f7065);
}

/* ── 7. CABEÇALHO DO PRODUTO ─────────────────────────────── */
.pd-modal-header {
  padding: 28px 28px 20px;
}

.pd-modal-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pd-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pd-modal-badge--promo {
  background: #fef2f2;
  color: #dc2626;
}

.pd-modal-badge--best {
  background: #fef3c7;
  color: #d97706;
}

.pd-modal-badge--new {
  background: #f0fdf4;
  color: #16a34a;
}

.pd-modal-badge--unavailable {
  background: #f3f4f6;
  color: #6b7280;
}

/* Nome do produto: hierarquia clara, até 3 linhas, não encostado no fechar */
.pd-modal-product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--z-text, #271812);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
  font-family: var(--z-font, 'Inter', sans-serif);
  padding-right: 48px; /* espaço para o botão fechar */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descrição: line-height confortável, cor secundária */
.pd-modal-product-desc {
  font-size: 0.9rem;
  color: var(--z-text-secondary, #5b4137);
  line-height: 1.6;
  margin: 0 0 8px;
  white-space: pre-line;
}

/* Rendimento */
.pd-modal-product-yield {
  font-size: 0.82rem;
  color: var(--z-text-muted, #8f7065);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-modal-product-yield svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Preço: destaque, alinhamento consistente */
.pd-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.pd-modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--z-primary, #ff6600);
  font-family: var(--z-font, 'Inter', sans-serif);
}

.pd-modal-old-price {
  font-size: 1rem;
  color: var(--z-text-muted, #8f7065);
  text-decoration: line-through;
  font-weight: 500;
}

.pd-modal-discount {
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── 8. RESUMO DA LOJA ───────────────────────────────────── */
.pd-modal-store-summary {
  margin: 0 28px 16px;
  padding: 14px 16px;
  background: var(--z-surface-2, #f8f9fa);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--z-border, rgba(0, 0, 0, 0.06));
}

.pd-modal-store-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
}

.pd-modal-store-info {
  flex: 1;
  min-width: 0;
}

.pd-modal-store-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--z-text, #271812);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-modal-store-name .verified-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--z-primary, #ff6600);
}

.pd-modal-store-meta {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--z-text-muted, #8f7065);
  margin-top: 2px;
}

.pd-modal-store-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pd-modal-store-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pd-modal-store-status.open {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.pd-modal-store-status.closed {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* ── 9. GRUPOS DE PERSONALIZAÇÃO ─────────────────────────── */
.pd-modal-groups {
  padding: 0 28px 20px;
}

/* ── 10. CABEÇALHO DO GRUPO ──────────────────────────────── */
.pd-group {
  margin-bottom: 24px;
  border: 1px solid var(--z-border, rgba(0, 0, 0, 0.06));
  border-radius: 10px;
  overflow: hidden;
}

.pd-group.has-error {
  border-color: #fca5a5;
}

.pd-group-header {
  background: var(--z-surface-2, #f8f9fa);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pd-group-title-area {
  flex: 1;
  min-width: 0;
}

.pd-group-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--z-text, #271812);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-group-required-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pd-group-optional-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--z-text-muted, #8f7065);
  background: var(--z-border, rgba(0, 0, 0, 0.06));
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pd-group-instruction {
  font-size: 0.78rem;
  color: var(--z-text-muted, #8f7065);
  margin: 3px 0 0;
}

.pd-group-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--z-accent, #00a773);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-group.completed .pd-group-check-icon {
  opacity: 1;
  transform: scale(1);
}

.pd-group-check-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

/* ── 11. OPÇÕES DO GRUPO ─────────────────────────────────── */
.pd-group-options {
  padding: 4px 0;
}

.pd-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--z-border, rgba(0, 0, 0, 0.04));
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.pd-option-row:last-child {
  border-bottom: none;
}

.pd-option-row:hover {
  background: var(--z-surface-hover, #f1f3f5);
}

.pd-option-row.selected {
  background: rgba(255, 102, 0, 0.04);
}

.pd-option-row.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-option-control {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.pd-option-control input[type="radio"],
.pd-option-control input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pd-option-control .pd-radio-visual,
.pd-option-control .pd-checkbox-visual {
  position: absolute;
  inset: 0;
  border: 2px solid var(--z-border-strong, rgba(0, 0, 0, 0.14));
  border-radius: 50%;
  transition: all 0.2s;
}

.pd-option-control input[type="checkbox"] + .pd-checkbox-visual {
  border-radius: 6px;
}

.pd-option-control input:checked + .pd-radio-visual,
.pd-option-control input:checked + .pd-checkbox-visual {
  border-color: var(--z-primary, #ff6600);
  background: var(--z-primary, #ff6600);
}

.pd-option-control .pd-radio-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}

.pd-option-control input:checked + .pd-radio-visual::after {
  width: 8px;
  height: 8px;
}

.pd-option-control .pd-checkbox-visual::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.pd-option-control input:checked + .pd-checkbox-visual::after {
  transform: rotate(45deg) scale(1);
}

.pd-option-info {
  flex: 1;
  min-width: 0;
}

.pd-option-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--z-text, #271812);
  line-height: 1.3;
}

.pd-option-desc {
  font-size: 0.78rem;
  color: var(--z-text-muted, #8f7065);
  margin-top: 2px;
}

.pd-option-unavailable-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--z-text-muted, #8f7065);
  font-style: italic;
}

.pd-option-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.pd-option-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--z-primary, #ff6600);
  flex-shrink: 0;
  white-space: nowrap;
}

.pd-option-price.free {
  color: var(--z-accent, #00a773);
}

/* ── 12. CONTROLE DE QUANTIDADE POR OPÇÃO ─────────────────── */
.pd-option-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--z-border, rgba(0, 0, 0, 0.10));
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.pd-option-qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--z-surface-2, #f8f9fa);
  color: var(--z-text, #271812);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pd-option-qty-btn:hover:not(:disabled) {
  background: var(--z-border, rgba(0, 0, 0, 0.08));
}

.pd-option-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-option-qty-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.pd-option-qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--z-text, #271812);
}

/* ── 13. CAMPO DE OBSERVAÇÃO ──────────────────────────────── */
.pd-modal-notes {
  padding: 0 28px 20px;
}

.pd-notes-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--z-text, #271812);
  margin-bottom: 8px;
}

.pd-notes-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 120px;
  padding: 12px 14px;
  border: 1.5px solid var(--z-border, rgba(0, 0, 0, 0.10));
  border-radius: 10px;
  font-family: var(--z-font, 'Inter', sans-serif);
  font-size: 0.88rem;
  color: var(--z-text, #271812);
  background: var(--z-surface-2, #f8f9fa);
  resize: none;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.pd-notes-textarea:focus {
  border-color: var(--z-primary, #ff6600);
  background: #ffffff;
}

.pd-notes-textarea::placeholder {
  color: var(--z-text-muted, #8f7065);
}

.pd-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.pd-notes-hint {
  font-size: 0.75rem;
  color: var(--z-text-muted, #8f7065);
  font-style: italic;
}

.pd-notes-counter {
  font-size: 0.75rem;
  color: var(--z-text-muted, #8f7065);
}

/* ── 14. MENSAGEM DE VALIDAÇÃO ───────────────────────────── */
.pd-validation-message {
  margin: 0 28px 16px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
}

.pd-validation-message.visible {
  display: flex;
}

.pd-validation-message svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ── 15. RODAPÉ FIXO ─────────────────────────────────────── */
.pd-modal-footer {
  flex: 0 0 auto;
  background: #ffffff;
  border-top: 1px solid var(--z-border, rgba(0, 0, 0, 0.08));
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

/* ── 16. CONTROLE DE QUANTIDADE DO PRODUTO ────────────────── */
.pd-product-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--z-border, rgba(0, 0, 0, 0.10));
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.pd-product-qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--z-surface-2, #f8f9fa);
  color: var(--z-text, #271812);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pd-product-qty-btn:hover:not(:disabled) {
  background: var(--z-border, rgba(0, 0, 0, 0.08));
}

.pd-product-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-product-qty-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.pd-product-qty-value {
  min-width: 44px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--z-text, #271812);
}

/* ── 17. BOTÃO ADICIONAR ──────────────────────────────────── */
.pd-add-to-cart-btn {
  flex: 1;
  height: 56px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--z-primary, #ff6600), var(--z-primary-light, #ff5c00));
  color: #ffffff;
  font-family: var(--z-font, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(167, 58, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.pd-add-to-cart-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(167, 58, 0, 0.4);
}

.pd-add-to-cart-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.pd-add-to-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pd-add-to-cart-btn .btn-text {
  flex: 1;
  text-align: left;
}

.pd-add-to-cart-btn .btn-price {
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.pd-add-to-cart-btn .btn-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pd-spin 0.7s linear infinite;
}

.pd-add-to-cart-btn.loading .btn-text,
.pd-add-to-cart-btn.loading .btn-price {
  visibility: hidden;
}

.pd-add-to-cart-btn.loading .btn-spinner {
  display: block;
  position: absolute;
}

@keyframes pd-spin {
  to { transform: rotate(360deg); }
}

/* ── 18. SKELETON ─────────────────────────────────────────── */
.pd-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pd-skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes pd-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 19. ESTADO DE ERRO ───────────────────────────────────── */
.pd-error-state {
  padding: 48px 28px;
  text-align: center;
  color: var(--z-text-muted, #8f7065);
}

.pd-error-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.35;
}

.pd-error-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--z-text, #271812);
  margin: 0 0 6px;
}

.pd-error-state p {
  font-size: 0.88rem;
  margin: 0;
}

/* ── 20. TOAST ────────────────────────────────────────────── */
.pd-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--z-text, #271812);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--z-font, 'Inter', sans-serif);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pd-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 21. RESPONSIVIDADE MOBILE ────────────────────────────── */
@media (max-width: 768px) {
  .pd-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .pd-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .pd-modal-image-panel {
    padding: 0;
    max-height: 260px;
    min-height: 200px;
  }

  .pd-modal-image {
    width: 100%;
    height: 100%;
    max-height: 260px;
    border-radius: 0;
    object-fit: cover;
  }

  .pd-modal-image-placeholder {
    width: 60%;
    max-height: 70%;
  }

  .pd-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
  }

  .pd-modal-header {
    padding: 20px 16px 12px;
  }

  .pd-modal-product-name {
    font-size: 1.2rem;
    padding-right: 44px;
  }

  .pd-modal-groups {
    padding: 0 16px 12px;
  }

  .pd-modal-notes {
    padding: 0 16px 12px;
  }

  .pd-modal-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .pd-modal-store-summary {
    margin: 0 16px 10px;
    padding: 10px 12px;
  }

  .pd-validation-message {
    margin: 0 16px 10px;
  }

  .pd-add-to-cart-btn {
    height: 52px;
  }

  .pd-group-header {
    padding: 12px 14px;
  }

  .pd-option-row {
    padding: 10px 14px;
    min-height: 48px;
  }

  .pd-modal-scroll {
    padding-bottom: 20px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .pd-modal {
    max-width: 95vw;
    max-height: 90vh;
  }

  .pd-modal-image-panel {
    padding: 24px;
  }

  .pd-modal-header {
    padding: 22px 22px 16px;
  }

  .pd-modal-groups {
    padding: 0 22px 16px;
  }

  .pd-modal-notes {
    padding: 0 22px 16px;
  }

  .pd-modal-footer {
    padding: 14px 22px;
  }

  .pd-modal-store-summary {
    margin: 0 22px 12px;
  }

  .pd-validation-message {
    margin: 0 22px 12px;
  }
}

/* ── 22. ACESSIBILIDADE ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pd-modal-overlay,
  .pd-modal-image,
  .pd-option-control .pd-radio-visual,
  .pd-option-control .pd-checkbox-visual,
  .pd-option-control .pd-radio-visual::after,
  .pd-option-control .pd-checkbox-visual::after,
  .pd-group-check-icon,
  .pd-add-to-cart-btn,
  .pd-toast {
    transition: none !important;
    animation: none !important;
  }
}

.pd-option-row:focus-visible {
  outline: 2px solid var(--z-primary, #ff6600);
  outline-offset: -2px;
  border-radius: 4px;
}

.pd-group:focus-within {
  border-color: var(--z-primary, #ff6600);
}

.pd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
