/* ========================================
   DEAL DETAIL PAGE - Novo Design Moderno
   Para single-meta-compact.php
   ======================================== */

/* CSS Variables */
.deal-page {
  --dd-background: hsl(220, 20%, 97%);
  --dd-foreground: hsl(220, 20%, 10%);
  --dd-card: hsl(0, 0%, 100%);
  --dd-card-foreground: hsl(220, 20%, 10%);
  --dd-primary: hsl(204, 85%, 62%);
  --dd-primary-foreground: hsl(0, 0%, 100%);
  --dd-secondary: hsl(220, 14%, 96%);
  --dd-secondary-foreground: hsl(220, 20%, 20%);
  --dd-muted: hsl(220, 14%, 96%);
  --dd-muted-foreground: hsl(220, 10%, 46%);
  --dd-accent: hsl(110, 65%, 52%);
  --dd-accent-foreground: hsl(0, 0%, 100%);
  --dd-border: hsl(220, 13%, 91%);
  --dd-radius: 0.5rem;
  --dd-gradient-header: linear-gradient(135deg, hsl(204, 70%, 53%) 0%, hsl(204, 80%, 45%) 100%);
  --dd-gradient-cta: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --dd-shadow-card: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
}

/* Main Layout */
.deal-page {
  min-height: 100vh;
  background-color: var(--dd-background);
  overflow-x: hidden;
}

.deal-page .deal-main {
  padding: 0.8rem 0;
  overflow-x: hidden;
}

.deal-page .deal-container {
  width: 100%;
  padding: 0 1rem 0 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .deal-page .deal-container {
    padding: 0 1rem;
  }
}

.deal-page .deal-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 1024px) {
  .deal-page .deal-grid {
    grid-template-columns: 1fr 32%;
  }

  .deal-page .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .deal-page .sidebar .price-history-widget,
  .deal-page .sidebar .widget,
  .deal-page .sidebar #price-history-container {
    width: 100%;
    max-width: 100%;
  }
}

/* Card Base */
.deal-page .deal-card {
  background: var(--dd-card);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow-card);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.deal-page .deal-card-inner {
  padding: 1.5rem;
  padding-top: 1px;
  max-width: 100%;
  overflow-x: hidden;
}

.deal-page .deal-card-inner * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Header Row: Image + Info */
.deal-page .deal-header-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .deal-page .deal-header-row {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Product Image */
.deal-page .deal-image-wrapper {
  flex-shrink: 0;
  position: relative;
}

@media (min-width: 768px) {
  .deal-page .deal-image-wrapper {
    width: 10.56rem;
  }
}

@media (min-width: 1024px) {
  .deal-page .deal-image-wrapper {
    width: 12.32rem;
  }
}

.deal-page .deal-image {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}

.deal-page .deal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Discount Badge */
.deal-page .deal-discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--dd-accent);
  color: var(--dd-accent-foreground);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 2;
}

/* Editor Badge (Ribbon) */
.deal-page .deal-editor-badge {
  position: absolute;
  top: 0;
  right: 0.75rem;
  z-index: 2;
}

/* Product Info */
.deal-page .deal-info {
  flex: 1;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-page .deal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--dd-foreground);
}

.deal-page .deal-title-badges {
  display: inline;
  margin-right: 0.2rem;
}

.deal-page .deal-title-badges .antes-badge,
.deal-page .deal-title-badges .antes-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  margin-right: 0.25rem;
  vertical-align: middle;
  text-transform: uppercase;
}

.deal-page .deal-title-badges .antes-bracket {
  display: none;
}

/* Price Row */
.deal-page .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  width: 100%;
}

.deal-page .price-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deal-page .price-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-page .current-price {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dd-accent);
  font-family: inherit;
}

.deal-page .payment-type {
  font-size: 0.875rem;
  color: var(--dd-muted-foreground);
}

.deal-page .store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.deal-page .store-badge:hover {
  background: var(--dd-secondary);
  border-color: var(--dd-muted-foreground);
  text-decoration: none;
  color: inherit;
}

.deal-page .store-badge img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  object-fit: contain;
}

.deal-page .installment-price {
  color: var(--dd-muted-foreground);
  font-size: 0.9375rem;
  margin: 0;
}

/* Countdown Timer */
.deal-page .deal-countdown {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: hsla(0, 85%, 55%, 0.1);
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(0, 85%, 45%);
}

.deal-page .deal-countdown svg {
  width: 1rem;
  height: 1rem;
}

/* Specs / Notice */
.deal-page .deal-specs {
  background: var(--dd-card);
  border: 1px solid var(--dd-border);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow);
  padding: 1rem 1.25rem;
  color: var(--dd-foreground);
  margin: 0.5rem 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA Section */
.deal-page .cta-section {
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.2rem 0;
}

.deal-page .btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dd-accent-foreground);
  background: var(--dd-gradient-cta);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 0.3rem;
  text-decoration: none;
}

.deal-page .btn-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
  color: var(--dd-accent-foreground);
  text-decoration: none;
}

.deal-page .btn-cta svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Expired CTA */
.deal-page.expired .btn-cta {
  background: #9ca3af;
  box-shadow: none;
}

/* Multiple CTA Buttons Container */
.deal-page .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.3rem;
}

/* Secondary CTA Button - mesma cor do principal */
.deal-page .btn-cta.btn-cta-secondary {
  /* usa mesmos estilos do btn-cta principal */
}

/* Expired CTA Button */
.deal-page .btn-cta.btn-cta-expired {
  background: #9ca3af;
  box-shadow: none;
}

/* Coupon Box */
.deal-page .coupon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem 1.5rem;
  border: 2px dashed rgba(59, 157, 221, 0.4);
  border-radius: 0.5rem;
  background: rgba(59, 157, 221, 0.05);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font: inherit;
  width: 100%;
}

.deal-page .coupon-box:hover {
  background: rgba(59, 157, 221, 0.1);
  border-color: rgba(59, 157, 221, 0.6);
}

.deal-page .coupon-box.copied {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.6);
}

.deal-page .coupon-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-page .coupon-icon {
  width: 1rem;
  height: 1rem;
  color: #3b9ddd;
}

.deal-page .coupon-code {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #3b9ddd;
}

.deal-page .btn-copy {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  color: #3b9ddd;
  border-radius: 0.25rem;
  transition: background 0.2s, color 0.2s;
}

.deal-page .btn-copy:hover {
  background: rgba(59, 157, 221, 0.1);
}

.deal-page .coupon-box.copied .btn-copy {
  color: #22c55e;
}

.deal-page .btn-copy svg {
  width: 1.125rem;
  height: 1.125rem;
}

.deal-page .btn-copy svg {
  width: 1.125rem;
  height: 1.125rem;
}

.deal-page .btn-copy.copied {
  color: #22c55e;
}

/* Action Buttons */
.deal-page .action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.deal-page .action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dd-secondary);
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dd-muted-foreground);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}

button.action-btn {
  appearance: none;
  -webkit-appearance: none;
}

.deal-page .action-btn:hover {
  background: hsla(220, 14%, 96%, 0.8);
  text-decoration: none;
  color: var(--dd-muted-foreground);
}

.deal-page button.action-btn[onclick="sharePost()"]:hover {
  background: var(--dd-gradient-cta);
  color: #fff;
}
.deal-page button.action-btn[onclick="sharePost()"]:hover svg {
  stroke: #fff;
}

.deal-page .action-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.deal-page .action-btn.liked {
  background: hsla(0, 85%, 55%, 0.1);
  color: hsl(0, 85%, 55%);
}

.deal-page .action-btn.liked svg {
  fill: currentColor;
}

/* Report button wrapper moved below */

/* Vote Button */
.deal-page .action-btn.oferta-vote-btn {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, transform 0.2s, background 0.2s;
}

.deal-page .action-btn.oferta-vote-btn:not(.voted):hover {
  background: hsla(142, 76%, 36%, 0.1);
  color: hsl(142, 76%, 36%);
}

.deal-page .action-btn.oferta-vote-btn:not(.voted):active {
  transform: scale(0.95);
}

.deal-page .action-btn.oferta-vote-btn:not(.voted):hover svg {
  transform: scale(1.1);
}

.deal-page .action-btn.oferta-vote-btn.voted {
  background: hsla(142, 76%, 36%, 0.1);
  color: hsl(142, 76%, 36%);
  cursor: default;
  animation: voteSuccessBody 0.4s ease-out;
}

.deal-page .action-btn.oferta-vote-btn.voted svg {
  fill: hsl(142, 76%, 36%);
}

.deal-page .action-btn.oferta-vote-btn .oferta-vote-count {
  font-weight: 600;
  transition: transform 0.2s;
}

.deal-page .action-btn.oferta-vote-btn.voted .oferta-vote-count {
  animation: countPopBody 0.3s ease-out;
}

.deal-page .action-btn.oferta-vote-btn.voting {
  pointer-events: none;
  opacity: 0.6;
}

.deal-page .action-btn.oferta-vote-btn.voting svg {
  animation: votePulseBody 0.6s ease-in-out infinite;
}

@keyframes voteSuccessBody {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes countPopBody {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes votePulseBody {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Report Button - Override shortcode styles */
.deal-page .action-btn-report-wrapper {
  margin-left: auto;
}

.deal-page .action-btn-report-wrapper .wpsm-button {
  all: unset;
  cursor: pointer;
}

.deal-page .action-btn-report-wrapper .wpsm-button-inner {
  all: unset;
}

.deal-page .action-btn-report-wrapper .action-btn-report {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dd-secondary);
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dd-muted-foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.deal-page .action-btn-report-wrapper .action-btn-report:hover {
  background: hsla(0, 70%, 50%, 0.1);
  color: hsl(0, 70%, 50%);
}

.deal-page .action-btn-report-wrapper .action-btn-report svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Admin Separator (visible only for moderators) */
.deal-page .admin-separator {
  height: 1px;
  background: var(--dd-border);
  margin: 0.5rem 0;
}

/* Admin Buttons */
.deal-page .admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dd-border);
  margin-bottom: 0.2rem;
}

/* Reset all shortcode button styles */
.deal-page .admin-buttons .action-btn {
  all: unset;
  display: contents;
}

.deal-page .admin-buttons .wpsm-button {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 0.5rem;
  font-size: 0.9rem !important;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  line-height: 1.4 !important;
}

/* Encerrar - Vermelho */
.deal-page .admin-buttons .wpsm-button.red,
.deal-page .admin-buttons .wpsm-button[style*="ff6900"] {
  background: hsla(0, 70%, 50%, 0.1) !important;
  color: hsl(0, 70%, 50%) !important;
  border: none !important;
}

.deal-page .admin-buttons .wpsm-button.red:hover,
.deal-page .admin-buttons .wpsm-button[style*="ff6900"]:hover {
  background: hsla(0, 70%, 50%, 0.2) !important;
}

/* Editar/Repostar - Verde/Azul */
.deal-page .admin-buttons .wpsm-button.green {
  background: hsla(204, 85%, 62%, 0.1) !important;
  color: var(--dd-primary) !important;
  border: none !important;
}

.deal-page .admin-buttons .wpsm-button.green:hover {
  background: hsla(204, 85%, 62%, 0.2) !important;
}

/* Ícones dentro dos botões */
.deal-page .admin-buttons .wpsm-button .rhicon,
.deal-page .admin-buttons .wpsm-button .dashicons {
  font-size: 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deal-page .admin-buttons .wpsm-button .rhicon:before,
.deal-page .admin-buttons .wpsm-button .dashicons:before {
  font-size: inherit !important;
  line-height: 1 !important;
}

/* Esconder elementos extras inline */
.deal-page .admin-buttons .wpsm-button span[style*="margin-right: 4px"] {
  display: none;
}

/* Override expiration-button plugin styles (desktop) */
.deal-page .admin-buttons a[data-post-id] {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.deal-page .admin-buttons a[data-post-id] i.rhicon {
  margin-right: 0 !important;
}

/* Labels */
.deal-page .admin-buttons .wpsm-button .peb-label,
.deal-page .admin-buttons .wpsm-button span:not([class]):not([style]) {
  font-weight: 500;
}

/* Meta Info */
.deal-page .meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--dd-muted-foreground);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dd-border);
}

.deal-page .meta-info .separator {
  color: var(--dd-muted-foreground);
}

.deal-page .author-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-page .author-avatar {
  flex-shrink: 0;
}

.deal-page .author-avatar img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.deal-page .author-name {
  font-weight: 500;
  color: var(--dd-foreground);
}

.deal-page .author-name a {
  color: inherit;
  text-decoration: none;
}

.deal-page .author-name a:hover {
  color: var(--dd-primary);
}

.deal-page .meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.deal-page .meta-item svg {
  width: 1rem;
  height: 1rem;
}

.deal-page .meta-item a {
  color: inherit;
  text-decoration: none;
}

.deal-page .meta-item a:hover {
  color: var(--dd-primary);
}

/* Description / Content */
.deal-page .deal-description {
  padding: 1.5rem 0;
}

.deal-page .deal-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.deal-page .deal-description blockquote {
  border-left: 4px solid var(--dd-primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--dd-muted-foreground);
  background: hsla(220, 14%, 96%, 0.5);
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1rem 0;
}

.deal-page .deal-description strong {
  color: var(--dd-primary);
}

.deal-page .deal-description a {
  color: var(--dd-primary);
}

.deal-page .deal-description a:hover {
  text-decoration: underline;
}

.deal-page .deal-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.deal-page .deal-description ul,
.deal-page .deal-description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.deal-page .deal-description li {
  margin-bottom: 0.5rem;
}

.deal-page .deal-description table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.deal-page .deal-description iframe,
.deal-page .deal-description video,
.deal-page .deal-description embed {
  max-width: 100%;
}

.deal-page .deal-description pre,
.deal-page .deal-description code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: break-word;
}

/* Other Stores Section */
.deal-page .other-stores {
  border-top: 1px solid var(--dd-border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.deal-page .other-stores h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dd-foreground);
}

.deal-page .store-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deal-page .store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: hsla(220, 14%, 96%, 0.5);
  border-radius: 0.75rem;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.deal-page .store-item:hover {
  background: var(--dd-secondary);
  text-decoration: none;
}

.deal-page .store-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deal-page .store-item-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: white;
  padding: 0.25rem;
}

.deal-page .store-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dd-foreground);
}

.deal-page .store-item-installment {
  font-size: 0.75rem;
  color: var(--dd-muted-foreground);
  margin-top: 0.125rem;
}

.deal-page .store-item-right {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-page .store-item-price {
  font-weight: 700;
  color: var(--dd-accent);
}

.deal-page .store-item-right svg {
  width: 1rem;
  height: 1rem;
  color: var(--dd-muted-foreground);
}

/* Sidebar */
.deal-page .sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Price History (Sidebar Widget) */
.deal-page .price-history-widget {
  background: var(--dd-card);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow-card);
  padding: 1rem;
}

.deal-page .price-history-widget h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dd-foreground);
}

/* Other Offers Widget */
.other-offers-widget {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
  padding: 1rem;
  margin-bottom: 1rem;
}

.other-offers-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  margin: 0 0 0.75rem 0 !important;
  color: #1a1a1a !important;
}

.other-offers-widget .widget-title svg {
  color: #41b9ff;
}

.other-offers-widget .offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.other-offers-widget .offer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.other-offers-widget .offer-item:hover {
  background: #eaeaea;
  transform: translateX(2px);
}

.other-offers-widget .offer-item-store {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.other-offers-widget .offer-item-store img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.other-offers-widget .offer-item-store span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.other-offers-widget .offer-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.other-offers-widget .offer-item-price .price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4ade80;
}

.other-offers-widget .offer-item-price .payment {
  font-size: 0.6875rem;
  color: #6b7280;
}

.other-offers-widget .offer-item-arrow {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  flex-shrink: 0;
}

.other-offers-widget .offer-item-store .coupon-code-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c3aed;
  background: #f3f0ff;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px dashed #c4b5fd;
  letter-spacing: 0.05em;
}

.other-offers-widget .offer-item-price .coupon-view-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
}

/* Sidebar Generic Widget Styling */
.deal-page .sidebar .widget {
  background: var(--dd-card);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow-card);
  padding: 1rem;
}

.deal-page .sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dd-foreground);
}

/* Social Networks Widget */
.social-widget {
  background: var(--dd-card);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow-card);
  overflow: hidden;
  margin-top: 1rem;
}

.social-widget-header {
  background: linear-gradient(135deg, #3b9ddd 0%, #2563eb 100%);
  padding: 1rem;
}

.social-widget-header h2 {
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  color: #fff !important;
  margin: 0 0 0.25rem 0 !important;
}

.social-widget-header p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.social-widget-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-link.whatsapp {
  background-color: rgba(37, 211, 102, 0.1);
}

.social-link.whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.2);
}

.social-link.telegram {
  background-color: rgba(0, 136, 204, 0.1);
}

.social-link.telegram:hover {
  background-color: rgba(0, 136, 204, 0.2);
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.social-link.whatsapp svg {
  color: #25D366;
  fill: #25D366;
}

.social-link.telegram svg {
  color: #0088cc;
  fill: #0088cc;
}

.social-link-text .title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dd-foreground);
}

.social-link-text .subtitle {
  font-size: 0.75rem;
  color: var(--dd-muted-foreground);
}

/* Comments Section Override */
.deal-page .comments-section-wrapper {
  background: var(--dd-card);
  border-radius: 0.75rem;
  box-shadow: var(--dd-shadow-card);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* Responsive Order */
.deal-page .deal-main-content {
  order: 1;
}

.deal-page .sidebar {
  order: 2;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .deal-page .deal-card-inner {
    padding: 1rem;
  }

  .deal-page .deal-card {
    border-radius: 0.5rem;
  }

  .deal-page .deal-title {
    font-size: 1.125rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .deal-page .current-price {
    font-size: 1.5rem;
  }

  .deal-page .price-row {
    gap: 0.5rem;
  }

  .deal-page .store-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .deal-page .cta-section {
    padding: 1rem;
  }

  .deal-page .coupon-box {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .deal-page .coupon-code {
    font-size: 1rem;
  }

  .deal-page .action-buttons {
    gap: 0.5rem;
  }

  .deal-page .action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .deal-page .action-btn span:not(.count) {
    display: none;
  }

  .deal-page .action-btn.action-btn-report span {
    display: inline;
  }

  /* Admin buttons - manter labels visíveis e agrupados no mobile */
  .deal-page .admin-buttons .action-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-wrap: nowrap !important;
  }

  .deal-page .admin-buttons .action-btn span:not(.count) {
    display: inline !important;
  }

  .deal-page .admin-buttons .wpsm-button .peb-label {
    display: inline !important;
  }

  .deal-page .admin-buttons .wpsm-button {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.65rem !important;
    gap: 0.25rem;
    line-height: 1.3 !important;
    border-radius: 0.4rem !important;
    min-height: 0 !important;
    width: auto !important;
    margin-bottom: 0 !important;
  }

  /* Override expiration-button plugin styles */
  .deal-page .admin-buttons a[data-post-id] {
    min-height: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    margin-bottom: 0 !important;
  }

  .deal-page .admin-buttons a[data-post-id] i.rhicon {
    font-size: 0.7rem !important;
    margin-right: 0 !important;
  }

  .deal-page .admin-buttons a[href*="gerenciador-cupons"] {
    width: auto !important;
    display: inline-flex !important;
  }

  .deal-page .admin-buttons .wpsm-button .rhicon,
  .deal-page .admin-buttons .wpsm-button .dashicons {
    font-size: 0.7rem !important;
    width: 0.7rem !important;
    height: 0.7rem !important;
  }

  .deal-page .meta-info {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .deal-page .deal-card-inner {
    position: relative;
    overflow: visible;
  }

  .deal-page .deal-card {
    overflow: visible;
  }

  .deal-page .deal-image-wrapper {
    width: 8.8rem;
    flex-shrink: 0;
    margin: 0 auto;
    position: static;
  }

  .deal-page .deal-image {
    aspect-ratio: 1;
  }

  .deal-page .deal-info {
    width: 100%;
  }

  .deal-page .deal-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .deal-page .deal-description img {
    max-width: 100%;
    height: auto;
  }

  .deal-page .other-stores .store-item {
    padding: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .deal-page .store-item-right {
    width: 100%;
    justify-content: space-between;
  }

  .deal-page .comments-section-wrapper {
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .deal-page .sidebar {
    margin-top: 0;
  }

  .deal-page .price-history-widget {
    border-radius: 0.5rem;
  }
}

/* Important Terms Badges - Posicionado em cima da thumbnail */
.deal-page .deal-image-wrapper .special-feature-badge-wrapper-desktop,
.deal-page .deal-image-wrapper .special-feature-badge-wrapper-mobile {
  position: absolute;
  top: -0.9rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.deal-page .deal-image-wrapper .special-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.deal-page .deal-image-wrapper .special-feature-badge span {
  color: inherit;
}

/* Diferenciais badges abaixo do título */
.special-feature-badges-under-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.special-feature-badges-under-title .special-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Hot Meter Integration */
.deal-page .hot-meter-wrapper {
  display: inline-flex;
}

.deal-page .hot-meter-wrapper .getHotThumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Hide rehub default styles on deal-page */
.deal-page .rh-container,
.deal-page .rh-content-wrap {
  max-width: none;
  padding: 0;
}

/* Print Styles */
@media print {
  .deal-page .cta-section,
  .deal-page .action-buttons,
  .deal-page .admin-buttons,
  .deal-page .sidebar {
    display: none;
  }
}

/* Mobile Sidebar - aparece após CTA no mobile, escondido no desktop */
.deal-page .mobile-sidebar {
  display: none;
}

@media (max-width: 1023px) {
  .deal-page .mobile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
  }

  /* Esconder sidebar desktop no mobile/tablet */
  .deal-page .sidebar {
    display: none;
  }

  /* Badge posicionado no canto esquerdo do card no mobile */
  .deal-page .deal-image-wrapper .special-feature-badge-wrapper-desktop,
  .deal-page .deal-image-wrapper .special-feature-badge-wrapper-mobile {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
  }
}
