/**
 * Ybá Feira - Vitrine Interativa de Produtos
 * Estilos CSS baseados no design system do YBÁ Market
 * Version: 1.1.0
 */

/* ========================================
   CSS Variables (Design System)
   ======================================== */
:root {
  --yba-primary: #8cbc67;
  --yba-primary-hover: #7aad58;
  --yba-text-primary: #242424;
  --yba-text-secondary: #777777;
  --yba-star-color: #eabe12;
  --yba-background-dark: #1a1a1a;
  --yba-background-card: #ffffff;
  --yba-border-radius: 8px;
  --yba-font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --yba-transition: all 0.3s ease;
}

/* ========================================
   Prevent Pull-to-Refresh on HTML/Body
   ======================================== */
html:has(.yba-feira-container),
html.yba-feira-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
}

/* ========================================
   Reset & Base
   ======================================== */
.yba-feira-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================
   Main Container
   ======================================== */
.yba-feira-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: var(--yba-background-dark) !important;
  font-family: var(--yba-font-family) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  color: #fff !important;
  /* Disable pull-to-refresh on mobile */
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
  touch-action: pan-x pan-y !important;
  -webkit-overflow-scrolling: auto !important;
}

/* ========================================
   Header
   ======================================== */
.yba-feira-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yba-feira-back {
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--yba-transition);
}

.yba-feira-back svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
}

.yba-feira-back:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.yba-feira-corridor {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.yba-feira-corridor span {
  color: rgba(255, 255, 255, 0.7);
}

.yba-feira-corridor-name {
  color: var(--yba-primary);
  font-weight: 600;
}

.yba-feira-counter {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--yba-border-radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 4px;
}

.yba-feira-counter-current {
  color: var(--yba-primary);
}

/* ========================================
   Club Promo Banner
   ======================================== */
.yba-feira-club-banner {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: linear-gradient(
    90deg,
    rgba(140, 188, 103, 0.2),
    rgba(140, 188, 103, 0.1)
  );
  border-bottom: 1px solid rgba(140, 188, 103, 0.3);
  color: var(--yba-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--yba-transition);
  flex-shrink: 0;
}

.yba-feira-club-banner:hover {
  background: linear-gradient(
    90deg,
    rgba(140, 188, 103, 0.3),
    rgba(140, 188, 103, 0.2)
  );
  color: #fff;
}

/* ========================================
   Content Wrapper (flexbox layout)
   ======================================== */
.yba-feira-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ========================================
   Navigation Wrapper (left/right columns)
   ======================================== */
.yba-feira-nav-wrapper {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.yba-feira-nav {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  background: var(--yba-primary) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--yba-transition);
  box-shadow: 0 4px 12px rgba(140, 188, 103, 0.3) !important;
}

.yba-feira-nav:hover {
  background: var(--yba-primary-hover);
  transform: scale(1.05);
}

.yba-feira-nav:active {
  transform: scale(0.95);
}

.yba-feira-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.yba-feira-nav svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
}

/* Arrows point up/down (vertical navigation) */
.yba-feira-nav-up svg {
  transform: rotate(0deg);
}

.yba-feira-nav-down svg {
  transform: rotate(0deg);
}

/* ========================================
   Main Content Area
   ======================================== */
.yba-feira-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

/* ========================================
   Loading State
   ======================================== */
.yba-feira-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.yba-feira-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--yba-primary);
  border-radius: 50%;
  animation: yba-spin 0.8s linear infinite;
}

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

/* ========================================
   Product Card
   ======================================== */
.yba-feira-product {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

/* Animation classes - applied via JS */
.yba-feira-product.slide-up {
  animation: yba-slideUp 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.yba-feira-product.slide-down {
  animation: yba-slideDown 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes yba-slideUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yba-slideDown {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   Rating Stars
   ======================================== */
.yba-feira-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yba-feira-stars {
  display: flex;
  gap: 2px;
}

.yba-feira-star {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
}

.yba-feira-star.filled {
  color: var(--yba-star-color);
}

.yba-feira-star.half {
  position: relative;
  color: rgba(255, 255, 255, 0.3);
}

.yba-feira-star.half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--yba-star-color);
}

.yba-feira-rating-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ========================================
   Product Image
   ======================================== */
.yba-feira-image-container {
  width: 100%;
  max-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yba-background-card);
  border-radius: var(--yba-border-radius);
  padding: 16px;
  overflow: hidden;
}

.yba-feira-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========================================
   Product Info
   ======================================== */
.yba-feira-info {
  text-align: center;
  width: 100%;
}

.yba-feira-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff;
  line-height: 1.3;
}

.yba-feira-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--yba-primary);
  margin: 0;
}

.yba-feira-price del {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  margin-right: 8px;
}

.yba-feira-price ins {
  text-decoration: none;
}

/* ========================================
   Actions (Quantity & Add to Cart)
   ======================================== */
.yba-feira-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.yba-feira-quantity {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--yba-border-radius);
  overflow: hidden;
}

.yba-feira-qty-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--yba-transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.yba-feira-qty-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.yba-feira-qty-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.yba-feira-qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.yba-feira-add-to-cart {
  flex: 1;
  height: 48px;
  background: var(--yba-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--yba-border-radius) !important;
  font-family: var(--yba-font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--yba-transition);
  box-shadow: 0 4px 12px rgba(140, 188, 103, 0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.yba-feira-add-to-cart:hover {
  background: var(--yba-primary-hover) !important;
  transform: translateY(-2px);
}

.yba-feira-add-to-cart:active {
  transform: translateY(0);
}

.yba-feira-add-to-cart.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ========================================
   Footer Buttons
   ======================================== */
.yba-feira-footer {
  display: flex !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.yba-feira-btn {
  flex: 1 !important;
  height: 48px !important;
  border-radius: 8px !important;
  font-family: var(--yba-font-family) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--yba-transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.yba-feira-change-corridor {
  background: #fff !important;
  color: var(--yba-text-primary) !important;
  border: none !important;
  border-radius: 8px !important;
}

.yba-feira-change-corridor:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

.yba-feira-btn-secondary {
  background: var(--yba-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(140, 188, 103, 0.3) !important;
}

.yba-feira-btn-secondary:hover {
  background: var(--yba-primary-hover) !important;
  color: #fff !important;
}

/* ========================================
   Modal
   ======================================== */
.yba-feira-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: var(--yba-transition);
}

.yba-feira-modal.active {
  opacity: 1;
  visibility: visible;
}

.yba-feira-modal-content {
  background: #2a2a2a;
  border-radius: var(--yba-border-radius);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: var(--yba-transition);
}

.yba-feira-modal.active .yba-feira-modal-content {
  transform: translateY(0);
}

.yba-feira-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yba-feira-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.yba-feira-modal-close {
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 28px !important;
  cursor: pointer;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1;
  opacity: 1;
  transition: var(--yba-transition);
}

.yba-feira-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25) !important;
}

.yba-feira-corridor-list {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yba-feira-corridor-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--yba-border-radius);
  color: #fff;
  font-family: var(--yba-font-family);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: var(--yba-transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yba-feira-corridor-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.yba-feira-corridor-item.active {
  background: var(--yba-primary);
}

.yba-feira-corridor-item-count {
  font-size: 13px;
  opacity: 0.7;
}

/* ========================================
   Variation Modal Styles
   ======================================== */
.yba-feira-variation-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yba-feira-variation-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: rgba(140, 188, 103, 0.1);
  border-radius: var(--yba-border-radius);
  border: 1px solid rgba(140, 188, 103, 0.2);
}

.yba-feira-variation-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yba-feira-variation-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yba-feira-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yba-feira-variation-option {
  padding: 12px 20px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: var(--yba-font-family) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: var(--yba-transition);
}

.yba-feira-variation-option:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.yba-feira-variation-option.selected {
  background: var(--yba-primary) !important;
  border-color: var(--yba-primary) !important;
  color: #fff !important;
}

.yba-feira-variation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.yba-feira-variation-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--yba-primary);
}

.yba-feira-variation-price del {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  margin-right: 8px;
}

.yba-feira-variation-price ins {
  text-decoration: none;
}

.yba-feira-variation-confirm {
  padding: 14px 28px !important;
  background: var(--yba-primary) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: var(--yba-font-family) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: var(--yba-transition);
  box-shadow: 0 4px 12px rgba(140, 188, 103, 0.3) !important;
}

.yba-feira-variation-confirm:hover:not(:disabled) {
  background: var(--yba-primary-hover) !important;
  transform: translateY(-2px);
}

.yba-feira-variation-confirm:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
  transform: none;
  background: rgba(140, 188, 103, 0.5) !important;
}

/* ========================================
   Toast Notification
   ======================================== */
.yba-feira-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--yba-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--yba-border-radius);
  font-family: var(--yba-font-family);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--yba-transition);
  z-index: 100001;
  white-space: nowrap;
}

.yba-feira-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yba-feira-toast.error {
  background: #e74c3c;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Mobile adjustments - keep arrows visible but smaller */
@media (max-width: 600px) {
  .yba-feira-nav-wrapper {
    width: 50px;
    padding: 8px;
  }

  .yba-feira-nav {
    width: 40px;
    height: 40px;
  }

  .yba-feira-nav svg {
    width: 20px;
    height: 20px;
  }

  .yba-feira-header {
    padding: 12px 16px;
  }

  .yba-feira-corridor {
    font-size: 14px;
  }

  .yba-feira-counter {
    padding: 6px 10px;
    font-size: 12px;
  }

  .yba-feira-main {
    padding: 12px;
  }

  .yba-feira-title {
    font-size: 18px;
  }

  .yba-feira-price {
    font-size: 24px;
  }

  .yba-feira-footer {
    padding: 12px 16px;
  }

  .yba-feira-club-banner {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .yba-feira-nav-wrapper {
    width: 80px;
  }

  .yba-feira-nav {
    width: 56px;
    height: 56px;
  }

  .yba-feira-product {
    max-width: 450px;
  }

  .yba-feira-image-container {
    max-height: 45vh;
    padding: 24px;
  }

  .yba-feira-title {
    font-size: 24px;
  }

  .yba-feira-price {
    font-size: 32px;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .yba-feira-nav-wrapper {
    width: 100px;
  }

  .yba-feira-nav {
    width: 64px;
    height: 64px;
  }

  .yba-feira-nav svg {
    width: 28px;
    height: 28px;
  }

  .yba-feira-product {
    max-width: 500px;
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  .yba-feira-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .yba-feira-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* ========================================
   Hide Woodmart Theme Elements on Feira
   (Prevents scroll issues on mobile)
   ======================================== */
/* Hide scroll-to-top button when feira is active */
body:has(.yba-feira-container) .scrollToTop,
body:has(.yba-feira-container) .wd-scroll-to-top,
body:has(.yba-feira-container) .back-to-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide Woodmart mobile toolbar (bottom menu) */
body:has(.yba-feira-container) .wd-toolbar,
body:has(.yba-feira-container) .woodmart-toolbar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide sticky navigation on feira page */
body:has(.yba-feira-container) .wd-sticky-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Prevent body scroll when feira is active */
body:has(.yba-feira-container) {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  /* Disable pull-to-refresh on mobile */
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
}

/* Fallback for browsers that don't support :has() */
body.yba-feira-active .scrollToTop,
body.yba-feira-active .wd-scroll-to-top,
body.yba-feira-active .back-to-top,
body.yba-feira-active .wd-toolbar,
body.yba-feira-active .woodmart-toolbar,
body.yba-feira-active .wd-sticky-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.yba-feira-active {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  /* Disable pull-to-refresh on mobile */
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
}

/* ========================================
   Price Ranking Badges (Cheapest Products)
   ======================================== */
.yba-feira-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--yba-font-family);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  white-space: nowrap;
}

.yba-feira-price-badge-icon {
  font-size: 16px;
  line-height: 1;
}

/* 1st Place - Gold (Most Prominent) */
.yba-feira-price-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #1a1a1a;
  animation: yba-badge-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

/* 2nd Place - Silver */
.yba-feira-price-badge.rank-2 {
  background: linear-gradient(135deg, #e8e8e8, #b8b8b8);
  color: #1a1a1a;
}

/* 3rd Place - Bronze */
.yba-feira-price-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

/* 4th Place - Green */
.yba-feira-price-badge.rank-4 {
  background: linear-gradient(135deg, #8cbc67, #6b9e4b);
  color: #fff;
}

/* 5th Place - Light Green */
.yba-feira-price-badge.rank-5 {
  background: linear-gradient(135deg, #a5d68f, #8cbc67);
  color: #1a1a1a;
}

/* Pulse animation for 1st place */
@keyframes yba-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7);
  }
}

/* Make image container position relative for badge positioning */
.yba-feira-image-container {
  position: relative;
}

/* Responsive adjustments for badges */
@media (max-width: 600px) {
  .yba-feira-price-badge {
    padding: 6px 10px;
    font-size: 10px;
    top: 8px;
    right: 8px;
  }

  .yba-feira-price-badge-icon {
    font-size: 14px;
  }
}
