/* ==========================================================================
   DIGICAM - DESIGN SYSTEM OFICIAL (UNIFICADO & MODERNO)
   Mantém a essência afetiva e estética da DigiCam com acabamento profissional
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Cores Principais */
  --bg-body: #fcf9f8;
  --bg-surface: #ffffff;
  --bg-subtle: #f8f1ee;
  --bg-soft-pink: #fdf2f4;
  --bg-cream: #faf5f2;

  /* Textos */
  --text-primary: #2d2422;
  --text-secondary: #6e625f;
  --text-muted: #9e938f;
  --text-inverted: #ffffff;

  /* Destaques & Ação */
  --accent-pink: #e8006f;
  --accent-pink-hover: #cf0063;
  --accent-soft: #ff85a1;
  --accent-burgundy: #8a3a4e;
  --accent-gradient: linear-gradient(135deg, #e8006f 0%, #ff527b 100%);
  --accent-gradient-hover: linear-gradient(135deg, #d40065 0%, #e8006f 100%);

  /* Sucesso & Alertas */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;

  /* Bordas e Divisores */
  --border-color: #eee3de;
  --border-light: #f5ece8;
  --border-focus: #e8006f;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(45, 36, 34, 0.04);
  --shadow-sm: 0 2px 8px rgba(45, 36, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 36, 34, 0.08);
  --shadow-lg: 0 16px 36px rgba(45, 36, 34, 0.12);
  --shadow-pink: 0 8px 20px rgba(232, 0, 111, 0.25);

  /* Raios de Arredondamento */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Tipografia */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ── Layout Containers ── */
.dc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.dc-container-narrow {
  max-width: 900px;
}

.dc-main {
  flex: 1 0 auto;
}

/* ── Top Bar Informativa ── */
.dc-topbar {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dc-topbar svg {
  width: 15px;
  height: 15px;
}

/* ── Header Principal Universal ── */
.dc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-normal);
}

.dc-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.dc-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Logo */
.dc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.dc-brand span {
  color: var(--accent-pink);
}

.dc-brand-badge {
  font-size: 0.65rem;
  background: var(--bg-soft-pink);
  color: var(--accent-pink);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Menu Desktop */
.dc-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.dc-nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.dc-nav-link:hover,
.dc-nav-link.active {
  color: var(--accent-pink);
}

.dc-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent-pink);
  border-radius: var(--radius-full);
}

/* Ações no Header (Busca, Carrinho, Menu Mobile) */
.dc-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dc-icon-btn {
  background: none;
  border: 1px solid transparent;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.dc-icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--accent-pink);
  border-color: var(--border-color);
}

.dc-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  transition: transform var(--transition-fast);
}

.dc-cart-badge.bump {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Botão Hamburger */
.dc-hamburger-btn {
  display: none;
}

/* ── Menu Mobile Drawer ── */
.dc-mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: left var(--transition-slow);
}

.dc-mobile-drawer.open {
  left: 0;
}

.dc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.dc-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.dc-mobile-links {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dc-mobile-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.dc-mobile-link.active,
.dc-mobile-link:hover {
  color: var(--accent-pink);
}

/* Backdrop Overlay */
.dc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 34, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.dc-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal de Busca Global ── */
.dc-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 10000;
  box-shadow: var(--shadow-md);
  padding: 24px 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.dc-search-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dc-search-input-wrap svg {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
}

.dc-search-input {
  width: 100%;
  padding: 16px 50px 16px 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.dc-search-input:focus {
  border-color: var(--accent-pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 0, 111, 0.12);
}

.dc-search-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.dc-search-results {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Banner Hero & Destaques ── */
.dc-hero {
  padding: 30px 0 20px;
}

.dc-hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  background: var(--bg-cream);
}

.dc-hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Badges e Filtros de Categorias ── */
.dc-categories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 24px;
  scrollbar-width: none;
}

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

.dc-cat-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-cat-pill:hover,
.dc-cat-pill.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* ── Cards de Produto ── */
.dc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 10px;
}

.dc-section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dc-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.dc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.dc-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f3f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dc-product-card:hover .dc-card-img {
  transform: scale(1.05);
}

/* Badges sobre a foto */
.dc-badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(232, 0, 111, 0.3);
  z-index: 2;
}

.dc-badge-out {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 34, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  z-index: 3;
}

.dc-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dc-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.dc-card-prices {
  margin-top: auto;
  padding-top: 10px;
}

.dc-old-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.dc-current-price {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-burgundy);
}

.dc-pix-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.dc-card-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dc-card-btn:hover {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-pink);
}

/* ── Skeletons (Loading) ── */
.dc-skeleton {
  background: linear-gradient(90deg, #f0e9e6 25%, #fbf7f5 50%, #f0e9e6 75%);
  background-size: 200% 100%;
  animation: dcShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes dcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dc-skeleton-card {
  height: 360px;
  border-radius: var(--radius-md);
}

/* ── Cart Drawer Universal ── */
.dc-cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
}

.dc-cart-drawer.open {
  right: 0;
}

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

.dc-cart-header-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.dc-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.dc-cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.dc-cart-empty svg {
  margin-bottom: 14px;
  opacity: 0.5;
}

.dc-cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.dc-cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.dc-cart-item-info {
  flex: 1;
  min-width: 0;
}

.dc-cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-cart-item-price {
  font-weight: 800;
  color: var(--accent-burgundy);
  font-size: 0.95rem;
  margin-top: 2px;
}

.dc-cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.dc-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.dc-qty-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.dc-qty-val {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

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

.dc-cart-item-remove:hover {
  color: var(--color-error);
}

.dc-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-cream);
}

.dc-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dc-cart-total-label {
  font-weight: 700;
  font-size: 1rem;
}

.dc-cart-total-value {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.dc-btn-checkout {
  width: 100%;
  padding: 15px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.dc-btn-checkout:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 0, 111, 0.35);
}

/* ── Toast Notifications ── */
.dc-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dc-toast {
  background: var(--text-primary);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dcToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s, transform 0.2s;
}

.dc-toast.success {
  background: #0f172a;
  border-left: 4px solid var(--color-success);
}

.dc-toast.error {
  background: #0f172a;
  border-left: 4px solid var(--color-error);
}

@keyframes dcToastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Footer Universal ── */
.dc-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
  margin-top: 80px;
}

.dc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-light);
}

.dc-footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.dc-footer-about {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.dc-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-footer-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.dc-footer-link:hover {
  color: var(--accent-pink);
  transform: translateX(3px);
}

.dc-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dc-footer-contact-item svg {
  color: var(--accent-pink);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Trust Badges no Footer */
.dc-trust-strip {
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border-bottom: 1px solid var(--border-light);
}

.dc-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.dc-trust-badge svg {
  color: var(--accent-pink);
  width: 22px;
  height: 22px;
}

/* Rodapé Inferior */
.dc-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.dc-payment-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dc-payment-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ── Responsividade ── */
@media (max-width: 1024px) {
  .dc-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .dc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .dc-nav-menu {
    display: none;
  }
  .dc-hamburger-btn {
    display: flex;
  }
  .dc-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .dc-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dc-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .dc-cart-drawer {
    width: 100vw;
    right: -100vw;
  }
}

@media (max-width: 480px) {
  .dc-container {
    padding: 0 14px;
  }
  .dc-section-title {
    font-size: 1.35rem;
  }
  .dc-card-title {
    font-size: 0.85rem;
  }
  .dc-current-price {
    font-size: 1.1rem;
  }
}
