:root {
  /* Tema claro (conversão e foco em compra) */
  /* Brand / CTA: coral quente (impulso/ação) + acento teal (confiança) */
  --primary: #ff5a3c;
  --primary-dark: #e64a2e;
  --primary-light: #ff7a63;
  --primary-hover: #e64a2e;
  --accent: #0ea5a4;
  --accent-light: #2dd4bf;
  --success: #16a34a;
  --success-light: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0284c7;

  /* Background / Surfaces */
  --bg-dark: #fff7f5; /* mantém nome por compatibilidade */
  --bg-darker: #f7f7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fff1ec;
  --border: rgba(15, 23, 42, 0.10);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff5a3c 0%, #ff8a3d 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5a4 0%, #2dd4bf 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --gradient-dark: linear-gradient(135deg, #fff7f5 0%, #f7f7f8 50%, #fff7f5 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fff6f2 100%);
  --gradient-text: linear-gradient(135deg, #ff5a3c 0%, #ff8a3d 55%, #0ea5a4 100%);

  /* Shadows (mais suaves no tema claro) */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 0 4px rgba(255, 90, 60, 0.18);
  --shadow-glow-accent: 0 0 0 4px rgba(14, 165, 164, 0.18);
  
  /* Spacing */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevenir overflow horizontal em elementos de conteúdo */
img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* Garantir que elementos de texto não causem overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a,
button {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Forçar todos os elementos dentro de product-detail a respeitarem o container */
@media (max-width: 768px) {
  #product-detail-container,
  #product-detail-container *,
  #product-detail-content,
  #product-detail-content *,
  .product-detail,
  .product-detail *,
  .product-detail-card,
  .product-detail-card *,
  .product-detail-image-col,
  .product-detail-image-col *,
  .product-detail-details-col,
  .product-detail-details-col * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Garantir que nenhum elemento ultrapasse */
  #product-detail-container * {
    width: auto !important;
  }
  
  #product-detail-container .product-detail,
  #product-detail-container .product-detail-card,
  #product-detail-container .product-detail-image-col,
  #product-detail-container .product-detail-image-wrapper,
  #product-detail-container .product-detail-details-col,
  #product-detail-container .btn-back {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Garantir que imagens não ultrapassem */
  #product-detail-container img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }
  
  /* Garantir que botões não ultrapassem */
  #product-detail-container .btn-detail-buy,
  #product-detail-container .product-detail-share-icon {
    max-width: 100% !important;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(255, 90, 60, 0.18) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(14, 165, 164, 0.14) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(255, 138, 61, 0.14) 0px, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

/* REGRA CRÍTICA: Forçar tudo a ficar dentro da tela */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
  }
  
  #app {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    contain: layout;
  }
  
  #product-detail-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
  }
  
  #product-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
  }
  
  .product-detail {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
  }
  
  .product-detail-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 12px !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .product-detail-image-col,
  .product-detail-details-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
  }
  
  .product-detail-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    contain: layout;
    box-sizing: border-box !important;
  }
  
  .product-detail-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .btn-back {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box !important;
  }
  
  /* REGRA FINAL: Garantir que ABSOLUTAMENTE NADA ultrapasse */
  #product-detail-container,
  #product-detail-container *,
  #product-detail-content,
  #product-detail-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Forçar elementos específicos a respeitarem */
  #product-detail-container .product-detail-name,
  #product-detail-container .product-detail-meta-line,
  #product-detail-container .product-detail-pricing,
  #product-detail-container .product-detail-cta-row,
  #product-detail-container .price-current,
  #product-detail-container .price-old,
  #product-detail-container .discount-badge {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Garantir que o grid não cause overflow */
  .product-detail-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    width: calc(100% - 0px) !important;
    max-width: calc(100% - 0px) !important;
  }
  
  /* Forçar que nenhum elemento tenha largura maior que o container */
  #product-detail-container *:not(img):not(svg) {
    width: auto !important;
    max-width: 100% !important;
  }
  
  #product-detail-container .product-detail,
  #product-detail-container .product-detail-card,
  #product-detail-container .product-detail-image-col,
  #product-detail-container .product-detail-image-wrapper,
  #product-detail-container .product-detail-details-col,
  #product-detail-container .btn-back {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Container da página inicial - pequena borda dos dois lados */
  #home-container.container {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  /* Container específico da página de produto */
  #product-detail-container.container {
    padding: 8px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  #product-detail-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0;
    margin: 0;
  }
  
  /* Container da página inicial - borda menor em telas pequenas */
  #home-container.container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  #product-detail-container.container {
    padding: 4px;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* Navbar - Glass Morphism */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo {
  font-size: 36px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Menu Hambúrguer */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: var(--transition);
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.navbar-user span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.btn-logout {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    visibility: hidden;
  }
  
  .navbar-menu.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 20px;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 16px;
  }
  
  .nav-link:hover {
    background: rgba(255, 90, 60, 0.12);
    transform: none;
  }
  
  .navbar-user {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  .navbar-user span {
    text-align: center;
    font-size: 15px;
  }

.user-name-link {
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.user-name-link:hover {
  background: rgba(255, 90, 60, 0.10);
  border-color: rgba(255, 90, 60, 0.18);
}

.user-name-link:focus-visible {
  outline: 3px solid rgba(255, 90, 60, 0.25);
  outline-offset: 3px;
}
  
  .btn-logout {
    width: 100%;
  }
}

/* Auth Box - Glass Card */
.auth-box {
  max-width: 460px;
  margin: 80px auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 90, 60, 0.10) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.auth-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-box h1 {
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.auth-box input {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.auth-box input::placeholder {
  color: var(--text-muted);
}

.auth-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.auth-box p {
  text-align: center;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.auth-box a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-box a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-box {
    margin: 20px;
    padding: 36px 28px;
  }
  
  .auth-box h1 {
    font-size: 32px;
  }
}

/* Buttons */
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
  }
}

/* Search Header */
.search-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
}

.search-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 6px 22px rgba(255, 90, 60, 0.16);
}

.search-header p {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .search-header {
    padding: 20px 0;
  }
  
  .search-header h1 {
    font-size: 36px;
  }
  
  .search-header p {
    font-size: 18px;
  }
}

/* Search Form */
.search-form {
  max-width: 900px;
  margin: 0 auto 60px;
}

.search-input-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  align-items: center;
}

.search-input-group:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

.search-input {
  flex: 2;
  background: transparent;
  border: none;
  font-size: 18px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
}

.search-sort {
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 16px 18px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 150px;
  max-width: 150px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-sort:focus {
  outline: none;
}

.search-sort option {
  background: #ffffff;
  color: var(--text-primary);
  padding: 10px;
}

.search-input-group .btn-primary {
  flex: 0 0 auto;
  min-width: 140px;
  white-space: nowrap;
  padding: 16px 24px;
}

@media (max-width: 768px) {
  .search-input-group {
    flex-direction: column;
    padding: 14px;
  }
  
  .search-input {
    font-size: 16px;
    padding: 14px 18px;
  }
  
  .search-sort {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 100%;
    max-width: 100%;
    flex: 1;
    font-size: 16px;
    padding: 14px 18px;
  }
  
  .search-input-group .btn-primary {
    min-width: 100%;
    width: 100%;
  }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  animation: fadeIn 0.8s ease-out;
  margin-bottom: 60px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
}

/* Product Card - Elegant & Proportional Design */
.product-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #ff8a3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  height: 100%;
}

.product-card-dashboard {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #ff8a3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.2);
  border-color: #ff5a3c;
}

.product-card-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.2);
  border-color: #ff5a3c;
}

.product-card .product-image-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
  z-index: 1;
  pointer-events: none;
}

.product-card-dashboard .product-image-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.product-card-dashboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img,
.product-card-dashboard:hover img {
  transform: scale(1.05);
}

.product-card .product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.product-card-dashboard .product-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.product-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.product-card .discount-badge {
  background: #ef4444;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
}

.product-card-dashboard .discount-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 
    0 3px 10px rgba(239, 68, 68, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.discount-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 
    0 3px 10px rgba(239, 68, 68, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.commission-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 
    0 3px 10px rgba(16, 185, 129, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.product-card .product-info {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.product-card-dashboard .product-info {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.product-card .product-name {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 48px;
  letter-spacing: -0.1px;
}

.product-card-dashboard .product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 50px;
  letter-spacing: -0.2px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 50px;
  letter-spacing: -0.2px;
}

.product-card .product-pricing {
  margin: 0 0 14px 0;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.product-card .pricing-left {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.product-card .pricing-badges {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: flex-end !important;
  flex-shrink: 0 !important;
}

.product-card .pricing-badge {
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: white !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  min-width: 45px !important;
  text-align: center !important;
}

.product-card .pricing-badge-red {
  background: #ef4444 !important;
}

.product-card .pricing-badge-green {
  background: #16a34a !important;
}

.product-card-dashboard .product-pricing {
  margin: 0 0 14px 0;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.product-card-dashboard .pricing-left {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.product-card-dashboard .pricing-badges {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: flex-end !important;
  flex-shrink: 0 !important;
}

.product-card-dashboard .pricing-badge {
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: white !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  min-width: 45px !important;
  text-align: center !important;
}

.product-card-dashboard .pricing-badge-red {
  background: #ef4444 !important;
}

.product-card-dashboard .pricing-badge-green {
  background: #16a34a !important;
}

.product-card-dashboard .price-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
  flex-wrap: wrap !important;
}

.product-card-dashboard .discount-save-text {
  font-size: 15px !important;
  color: #16a34a !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.product-pricing {
  margin: 4px 0;
}

.product-card .price-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
  flex-wrap: wrap !important;
}

.product-card .price-old {
  font-size: 18px !important;
  color: #ef4444 !important;
  text-decoration: line-through !important;
  margin: 0 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.product-card-dashboard .price-old {
  font-size: 18px !important;
  color: #ef4444 !important;
  text-decoration: line-through !important;
  margin: 0 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.product-card .discount-save-text {
  font-size: 15px !important;
  color: #16a34a !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.product-card .price-current {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  margin: 0 !important;
  letter-spacing: -0.6px !important;
  line-height: 1.2 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #16a34a !important;
  background-clip: unset !important;
}

.product-card-dashboard .price-current {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  margin: 0 !important;
  letter-spacing: -0.6px !important;
  line-height: 1.2 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #16a34a !important;
  background-clip: unset !important;
}

.price-current {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -1px;
  line-height: 1.2;
}

.price-range {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
  opacity: 0.9;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px 0;
  flex-wrap: wrap;
}

.product-card-dashboard .product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.product-card .product-marketplace-tag,
.product-card-dashboard .product-marketplace-tag {
  margin: 8px 0 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.product-card .marketplace-badge,
.product-card-dashboard .marketplace-badge {
  display: inline-block !important;
  background: rgba(255, 138, 61, 0.1) !important;
  color: #ff8a3d !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 138, 61, 0.2) !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto !important;
  line-height: 1.4 !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.product-card .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: #334155;
  font-weight: 500;
}

.product-card-dashboard .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.product-card .meta-icon {
  font-size: 18px;
  line-height: 1;
}

.product-card-dashboard .meta-icon {
  font-size: 17px;
  line-height: 1;
}

.meta-icon {
  font-size: 17px;
  line-height: 1;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn-share {
  color: #f59e0b;
}

.action-btn-share:hover {
  background: rgba(245, 158, 11, 0.1);
}

.action-btn-update {
  color: #3b82f6;
}

.action-btn-update:hover {
  background: rgba(59, 130, 246, 0.1);
}

.action-btn-delete {
  color: #ef4444;
}

.action-btn-delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.product-card .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.product-card-dashboard .meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card .product-info .btn {
  margin-top: auto;
  width: 100%;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, #ff5a3c 0%, #ef4444 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(255, 90, 60, 0.25);
  transition: all 0.3s ease;
  text-align: center;
}

.product-card .product-info .btn:hover {
  background: linear-gradient(180deg, #e64a2e 0%, #dc2626 100%);
  box-shadow: 0 4px 10px rgba(255, 90, 60, 0.35);
  transform: translateY(-1px);
}

.product-card-dashboard .product-info .btn {
  margin-top: 4px;
  width: 100%;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-info .btn {
  margin-top: 4px;
  width: 100%;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 480px) {
  .product-image-wrapper {
    height: 200px;
  }
  
  .product-info {
    padding: 14px;
    gap: 10px;
  }
  
  .product-info h3 {
    font-size: 14px;
    min-height: 40px;
  }
  
  .price-current {
    font-size: 22px;
  }
  
  .product-meta {
    gap: 10px;
  }
  
  .meta-item {
    font-size: 12px;
  }
  
  .product-badges {
    padding: 6px 10px;
  }
  
  .commission-badge,
  .discount-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Dashboard */
.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
}

.dashboard-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.dashboard-header p {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Dashboard Actions */
.dashboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions-left span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 90, 60, 0.10);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(239, 68, 68, 0.4);
}

.btn-icon {
  display: inline-block;
  margin-right: 4px;
}

/* Product Card Dashboard */
.product-card-dashboard {
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-card-dashboard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.product-card-dashboard .product-image-wrapper .product-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-dashboard .product-image-wrapper .product-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff8a3d;
  border-radius: 2px;
  margin: 0;
}

.product-card-dashboard.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}


.dashboard-stats {
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.stat-value {
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 32px;
  }
  
  .stat-icon {
    font-size: 48px;
  }
  
  .stat-value {
    font-size: 36px;
  }
  
  .dashboard-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .actions-right {
    flex-direction: column;
    width: 100%;
  }
  
  .actions-right .btn {
    width: 100%;
  }
}

/* Admin */
.admin-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
}

/* Settings / Docs */
.settings-header,
.docs-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
}

.settings-header h1,
.docs-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.settings-header p,
.docs-header p {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.settings-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h2,
.docs-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.settings-muted {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.settings-form .form-group {
  margin-bottom: 14px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.settings-token-once {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 90, 60, 0.35);
  background: rgba(255, 90, 60, 0.06);
}

.settings-token-title {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.settings-token-value {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: #0b1220;
}

.api-tokens-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.api-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.api-token-row:last-child {
  border-bottom: none;
}

.api-token-row:hover {
  background: var(--bg-card-hover);
}

.api-token-info {
  flex: 1;
  min-width: 0;
}

.api-token-info strong {
  color: var(--text-primary);
}

.api-token-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.api-token-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#api-docs-container.container {
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.docs-card {
  background: rgba(255, 255, 255, 0.86);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 22px;
  min-height: calc(100vh - 80px);
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.docs-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.docs-content {
  padding: 40px;
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 16px;
  background: #ffffff;
  min-height: calc(100vh - 200px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Estilos para badges e elementos inline do OpenAPI */
.docs-content div[style*="background:"] {
  display: inline-block;
  margin: 4px;
}

.docs-content div[style*="border-left: 4px"] {
  background: #f8fafc !important;
  border-left: 4px solid #3b82f6 !important;
  padding: 20px !important;
  margin: 24px 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.docs-content div[style*="border-left: 4px"]:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.docs-content div[style*="border-left: 4px"] code {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #1e40af !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.docs-content div[style*="background: #10b981"] {
  background: #10b981 !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block;
  margin: 0 4px;
}

.docs-content div[style*="background: #3b82f6"] {
  background: #3b82f6 !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block;
  margin: 0 4px;
}

.docs-content div[style*="background: #8b5cf6"] {
  background: #8b5cf6 !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block;
  margin: 0 4px;
}

.docs-content::-webkit-scrollbar {
  width: 8px;
}

.docs-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.docs-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.docs-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.docs-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 32px 0;
  padding-bottom: 20px;
  border-bottom: 3px solid #3b82f6;
  color: #1e293b;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.docs-content h1:first-child {
  margin-top: 0;
}

.docs-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 48px 0 24px 0;
  padding-top: 16px;
  color: #1e293b;
  line-height: 1.3;
  border-top: 1px solid #e2e8f0;
  letter-spacing: -0.3px;
}

.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

.docs-content p {
  margin: 16px 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.docs-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 40px 0;
}

.docs-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-secondary);
}

.docs-content ul.docs-list,
.docs-content ol {
  margin: 20px 0;
  padding-left: 28px;
}

.docs-content li {
  margin: 10px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.docs-content li::marker {
  color: var(--primary);
}

.docs-content code.docs-inline-code {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.docs-content pre.docs-code-block {
  margin: 24px 0;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #1e293b;
  overflow-x: auto;
  position: relative;
}

.docs-content pre.docs-code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.docs-content pre.docs-code-block code,
.docs-content pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  display: block;
}

/* Prism.js compatibility */
.docs-content pre[class*="language-"] {
  margin: 24px 0;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #1e293b;
  overflow-x: auto;
}

.docs-content code[class*="language-"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.docs-content pre.docs-code-block code .hl-keyword {
  color: #c792ea;
  font-weight: 600;
}

.docs-content pre.docs-code-block code .hl-string {
  color: #c3e88d;
}

.docs-content pre.docs-code-block code .hl-comment {
  color: #546e7a;
  font-style: italic;
}

.docs-content pre.docs-code-block code .hl-number {
  color: #f78c6c;
}

.docs-content pre.docs-code-block code .hl-key {
  color: #82aaff;
}

.docs-content table.docs-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.docs-content table.docs-table th {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.docs-content table.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
}

.docs-content table.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-content table.docs-table tr:nth-child(even) {
  background: rgba(59, 130, 246, 0.02);
}

.docs-content table.docs-table tr:hover {
  background: rgba(59, 130, 246, 0.05);
  transition: background 0.2s;
}

.docs-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.docs-content a:hover {
  border-bottom-color: var(--primary);
  color: #dc2626;
}

.docs-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.docs-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.docs-loading,
.docs-error {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--text-secondary);
}

.docs-error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-header h1,
  .docs-header h1 {
    font-size: 36px;
  }
}

.admin-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.admin-header p {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.admin-tab {
  padding: 16px 28px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  font-family: inherit;
  position: relative;
  top: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.admin-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 90, 60, 0.10);
}

.admin-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 90, 60, 0.14);
}

.admin-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
}

.admin-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.status-success {
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-warning {
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.module-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.module-item:last-child {
  border-bottom: none;
}

.module-info h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
}

.module-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.module-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-icon-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.btn-icon-gear:hover {
  background: rgba(255, 90, 60, 0.12);
  border-color: var(--primary);
}

/* Status da integração (ex.: Shopee) */
.integration-status {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.integration-status--active {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.35);
}
.integration-status--inactive {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.35);
}
.integration-status--not-configured {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.3);
}

/* Switch Toggle - Modern */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.12);
  transition: var(--transition);
  border-radius: 34px;
  border: 2px solid rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  transition: var(--transition);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

input:checked + .slider {
  background: var(--gradient-primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

@media (max-width: 768px) {
  .admin-tabs {
    flex-direction: column;
  }
  
  .admin-tab {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid transparent;
  }
  
  .admin-tab.active {
    border-left: 3px solid var(--primary);
    border-bottom: 2px solid transparent;
    padding-left: 25px;
  }
  
  .admin-box {
    padding: 28px;
  }
  
  .module-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 80px 20px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Produto sem itemId */
.product-no-itemid {
  opacity: 0.85;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.product-no-itemid .no-itemid-warning {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(251, 191, 36, 0.9);
  color: #1a1a24;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  cursor: help;
}

/* (Fix) Não sobrescrever o posicionamento do checkbox do dashboard */

/* Empty State */
.empty-state {
  text-align: center;
  padding: 100px 20px;
  color: var(--text-secondary);
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.empty-state a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  padding: 12px 24px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.empty-state a:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* Scroll Sentinel */
#scroll-sentinel {
  border-radius: var(--radius-xl);
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Home Page - Barra de busca */
.home-search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.home-search-bar:focus-within {
  box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.home-search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
}

.home-search-input::placeholder {
  color: var(--text-muted);
}

.home-search-input:focus {
  outline: none;
}

.home-search-bar .btn-primary {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  min-width: 48px;
  font-size: 20px;
  border-radius: var(--radius-md);
}

.home-search-bar .btn-secondary {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .home-search-bar {
    flex-wrap: wrap;
    padding: 12px;
    margin-bottom: 24px;
  }
  .home-search-input {
    order: 1;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
  .home-search-bar .btn-primary {
    order: 2;
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .home-search-bar .btn-secondary {
    order: 3;
    flex: 1;
    width: auto;
  }
}

/* Botões de redes sociais – flutuantes, discretos, lado a lado (home e página do produto) */
.social-links-float {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 997;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-links-float .social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.9;
}

.social-links-float .social-link-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

#social-link-whatsapp,
.social-links-float .social-link-wa {
  color: #fff;
  background: rgba(37, 211, 102, 0.8);
  border-color: rgba(37, 211, 102, 0.35);
}

#social-link-whatsapp:hover,
.social-links-float .social-link-wa:hover {
  background: rgba(37, 211, 102, 0.95);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

#social-link-telegram,
.social-links-float .social-link-tg {
  color: #fff;
  background: rgba(0, 136, 204, 0.8);
  border-color: rgba(0, 136, 204, 0.35);
}

#social-link-telegram:hover,
.social-links-float .social-link-tg:hover {
  background: rgba(0, 136, 204, 0.95);
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .social-links-float {
    top: 12px;
    gap: 6px;
    padding: 5px 10px;
  }
  .social-links-float .social-link-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* Home Page */
.home-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
}

.home-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.home-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Product Detail Page */

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-8px) scale(1.05);
  border-color: rgba(255, 90, 60, 0.25);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 90, 60, 0.10);
}

.btn-back:active {
  transform: translateX(-4px) scale(1.02);
}

.btn-back:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.5);
  outline-offset: 3px;
}

.btn-back:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.35);
  outline-offset: 3px;
}

/* Card de Detalhes do Produto - 2 colunas: esquerda imagem (quadrada, borda amarelo-ouro), direita detalhes - Alinhado com container */
.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .product-detail {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.product-detail-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 100%;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 768px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    min-width: 0;
  }
}

/* Coluna esquerda: área da imagem quadrada, borda amarelo-ouro - Alinhada verticalmente com coluna direita */
.product-detail-image-col {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.product-detail-image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #c9a227;
  border-radius: 8px;
  margin: 0;
  box-sizing: border-box;
  min-height: 0;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-detail-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* Coluna direita: detalhes - fundo igual à página, alinhada verticalmente com imagem */
.product-detail-details-col {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  justify-content: space-between;
  align-self: stretch;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  overflow: hidden;
}

/* Título: Serif (Times New Roman), preto, negrito - DOBRO */
.product-detail-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Avaliação: 5 estrelas + "4.8 • 800+ Vendas" - +20% */
.product-detail-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: #000000;
}

.product-detail-meta-line .meta-stars {
  font-size: 19px;
  line-height: 1;
}

.product-detail-meta-line .meta-text {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Preços: antigo (vermelho, riscado) → atual (verde, grande) → etiqueta abaixo - +20% */
.product-detail-pricing {
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-detail-pricing .price-old {
  font-size: 19px;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 600;
  margin: 0;
}

/* Forçar cor verde no preço atual - seletor muito específico para sobrescrever tudo */
.product-detail .product-detail-pricing .price-current,
.product-detail-card .product-detail-pricing .price-current,
.product-detail-details-col .product-detail-pricing .price-current {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  -webkit-text-fill-color: #16a34a !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* Etiqueta de desconto: abaixo do preço atual - Proporções da imagem */
.product-detail-pricing .discount-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #dcfce7;
  border: 1px solid #16a34a;
  border-radius: 6px;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  margin: 4px 0 0 0;
}

/* CTA: botão + ícone share à direita (azul escuro) - DOBRADO */
.product-detail-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.btn-detail-buy {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff5a3c 0%, #ef4444 100%) !important;
  box-shadow: 0 2px 8px rgba(255, 90, 60, 0.3) !important;
  border: none;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-detail-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.35) !important;
}

/* Ícone compartilhar à direita do botão, azul escuro - Proporções da imagem */
.product-detail-share-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #1e3a5f;
  color: #1e3a5f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.product-detail-share-icon svg {
  width: 24px;
  height: 24px;
}

.product-detail-share-icon:hover {
  background: rgba(30, 58, 95, 0.08);
  border-color: #0f172a;
  color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
  .btn-detail-buy,
  .btn-back,
  .product-detail-share-icon {
    transition: none;
  }
  .btn-detail-buy:hover,
  .btn-back:hover {
    transform: none;
  }
}

.related-products {
  margin-top: 80px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.related-products h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 30px;
  word-wrap: break-word;
  max-width: 100%;
}

@media (max-width: 768px) {
  .related-products {
    margin-top: 40px;
    padding: 0;
  }
  
  .related-products h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 8px;
  }
  
  .related-products .products-grid {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .related-products {
    margin-top: 32px;
  }
  
  .related-products h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .btn-back {
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0;
    margin-right: 0;
  }
  
  .product-detail-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
    margin-top: 12px;
    width: 100%;
    padding: 0;
    margin: 12px 0 0 0;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .product-detail-image-col {
    order: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .product-detail-image-wrapper {
    margin: 0;
    padding: 8px;
    aspect-ratio: 1;
    border-width: 1px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }
  
  .product-detail-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: auto;
    display: block;
  }
  
  .product-detail-details-col {
    order: 2;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .product-detail-name {
    font-size: 22px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    margin: 0 0 8px 0;
  }
  
  .product-detail-meta-line {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px 0;
    width: 100%;
    max-width: 100%;
  }
  
  .product-detail-meta-line .meta-stars {
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .product-detail-meta-line .meta-text {
    font-size: 13px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .product-detail-pricing {
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 100%;
  }
  
  .product-detail .product-detail-pricing .price-current,
  .product-detail-card .product-detail-pricing .price-current,
  .product-detail-details-col .product-detail-pricing .price-current {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #16a34a !important;
    -webkit-text-fill-color: #16a34a !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .product-detail-pricing .price-old {
    font-size: 15px !important;
  }
  
  .product-detail-pricing .discount-badge {
    font-size: 11px;
    padding: 5px 10px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .product-detail-cta-row {
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    align-items: center;
    display: flex;
  }
  
  .btn-detail-buy {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 72px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    height: auto;
    min-height: 56px;
  }
  
  .product-detail-share-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    border-width: 2px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .product-detail-share-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 0;
    margin: 0;
  }
  
  #product-detail-container {
    padding: 2px;
  }
  
  .btn-back {
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 12px;
    width: auto;
    display: inline-block;
  }
  
  .product-detail-card {
    gap: 16px;
    margin-top: 8px;
    padding: 0;
  }
  
  .product-detail-image-wrapper {
    padding: 8px;
    min-height: 0;
  }
  
  .product-detail-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: auto;
  }
  
  .product-detail-cta-row {
    gap: 10px;
  }
  
  .btn-detail-buy {
    max-width: calc(100% - 58px);
    min-height: 48px;
  }
  
  .product-detail-share-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .product-detail-share-icon svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  
  .product-detail-name {
    font-size: 20px;
  }
  
  .product-detail-meta-line {
    font-size: 12px;
  }
  
  .product-detail-meta-line .meta-stars {
    font-size: 13px;
  }
  
  .product-detail .product-detail-pricing .price-current,
  .product-detail-card .product-detail-pricing .price-current,
  .product-detail-details-col .product-detail-pricing .price-current {
    font-size: 22px !important;
  }
  
  .product-detail-pricing .price-old {
    font-size: 14px !important;
  }
  
  .btn-detail-buy {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* Sistema de Notificações Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  min-width: 300px;
  pointer-events: none;
}

.toast {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 
    0 18px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04) inset;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateX(100px) translateY(0);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  cursor: pointer;
}

.toast-show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.toast:hover {
  transform: translateX(0) translateY(-2px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(139, 92, 246, 0.2);
}

.toast-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.toast-message {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
  word-wrap: break-word;
}

.toast-message strong {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    min-width: auto;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
    max-width: none;
    padding: 16px 18px;
  }
  
  .toast {
    transform: translateY(100px);
  }
  
  .toast-show {
    transform: translateY(0);
  }
}

/* Modal de Confirmação Customizado */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirm-modal-overlay.confirm-modal-show {
  opacity: 1;
}

.confirm-modal {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.confirm-modal-overlay.confirm-modal-show .confirm-modal {
  transform: scale(1) translateY(0);
}

.confirm-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.confirm-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.confirm-modal-body {
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.confirm-modal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.confirm-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.confirm-modal-footer .btn {
  min-width: 100px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

.confirm-modal-footer .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.confirm-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}

.confirm-modal-footer .btn-primary {
  background: var(--primary);
  color: white;
}

.confirm-modal-footer .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .confirm-modal {
    max-width: 90%;
  }
  
  .confirm-modal-footer {
    flex-direction: column-reverse;
  }
  
  .confirm-modal-footer .btn {
    width: 100%;
  }
}

#load-more-container {
  text-align: center;
  padding: 60px 20px;
}

#load-more-btn {
  margin-bottom: 40px;
  font-size: 18px;
  padding: 18px 40px;
  min-width: 280px;
}

@media (max-width: 480px) {
  #load-more-btn {
    width: 100%;
    font-size: 16px;
    padding: 16px 32px;
    min-width: auto;
  }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* Seleção de texto */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* Ícone Flutuante de Filtros */
.filter-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5a3c 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 138, 61, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

.filter-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 138, 61, 0.6);
}

.filter-fab:active {
  transform: scale(0.95);
}

.filter-fab svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* Botão Flutuante de Admin */
.admin-fab {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: all 0.3s ease;
}

.admin-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.admin-fab:active {
  transform: scale(0.95);
}

.admin-fab {
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
}

/* Modal de Filtros */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.filter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.filter-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.filter-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.filter-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.filter-modal-body {
  padding: 24px;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.filter-option:hover {
  border-color: #ff8a3d;
  background: rgba(255, 138, 61, 0.05);
}

.filter-option input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff8a3d;
}

.filter-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: #ff8a3d;
}

.filter-option span {
  flex: 1;
  font-size: 16px;
  color: #0f172a;
  user-select: none;
}

.filter-modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .admin-fab {
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .filter-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .filter-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .filter-modal-header,
  .filter-modal-body,
  .filter-modal-footer {
    padding: 20px;
  }
}

/* SOLUÇÃO DEFINITIVA - APENAS para a seção do produto único (não inclui related-products) */
@media (max-width: 768px) {
  /* Container principal */
  #product-detail-container.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* Conteúdo interno */
  #product-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* APENAS elementos dentro de .product-detail-card (não related-products) */
  #product-detail-container .product-detail {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  #product-detail-container .product-detail-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  #product-detail-container .product-detail-card * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  #product-detail-container .product-detail-image-col,
  #product-detail-container .product-detail-details-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  #product-detail-container .product-detail-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Imagem dentro do wrapper */
  #product-detail-container .product-detail-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Textos dentro do card */
  #product-detail-container .product-detail-name,
  #product-detail-container .product-detail-meta-line,
  #product-detail-container .product-detail-pricing,
  #product-detail-container .product-detail-card .price-current,
  #product-detail-container .product-detail-card .price-old {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Botão voltar - tamanho automático */
  #product-detail-container .btn-back {
    width: auto !important;
    max-width: 100% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  
  /* Tag de economia - tamanho fit-content */
  #product-detail-container .discount-badge {
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
  }
  
  /* Botão de compra - menor */
  #product-detail-container .btn-detail-buy {
    font-size: 14px !important;
    padding: 12px 16px !important;
    max-width: calc(100% - 72px) !important;
    box-sizing: border-box !important;
  }
  
  /* Botão de compartilhar - maior */
  #product-detail-container .product-detail-share-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }
  
  #product-detail-container .product-detail-share-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* CTA row */
  #product-detail-container .product-detail-cta-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  /* Botão de compra - já ajustado acima */
  #product-detail-container .btn-detail-buy {
    max-width: calc(100% - 72px) !important;
    box-sizing: border-box !important;
  }
  
  /* Botão de compartilhar - maior */
  #product-detail-container .product-detail-share-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    border-width: 2px !important;
  }
  
  #product-detail-container .product-detail-share-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}
