/* ===================================
   CART SIDEBAR - CHECKOUT LATERAL
   Estrutura moderna sem conflitos
   =================================== */

:root {
  --cart-bg-dark: #0c0c0c;
  --cart-bg-darker: #0c0c0c;
  --cart-bg-card: #0c0c0c;
  --cart-border: #2e2e30;
  --cart-text-primary: #ffffff;
  --cart-text-secondary: #b1b1b1;
  --cart-success: #4ade80;
  --cart-error: #ef4444;
}

/* ===================================
   BACKDROP E PAINEL PRINCIPAL
   =================================== */

/* Prevenir scroll horizontal quando carrinho aberto */
body.cart-open {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.popup-scroll-cont { 
  height: 100vh!important;
  background:#111011!important;
} 

.cart-sidebar-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  cursor: pointer !important;
}

.cart-sidebar-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-sidebar-panel {
  position: fixed !important;
  top: 0 !important;
  right: -450px !important;
  width: 450px !important;
  height: 100vh !important;
  background: #111011 !important;
  border-left: 1px solid var(--cart-border) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6) !important;
  z-index: 9999 !important;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cart-sidebar-panel.opened {
  right: 0 !important;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8), inset 1px 0 0 rgba(9, 250, 196, 0.1) !important;
}

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */

/* Box-sizing para todos os elementos dentro do carrinho */
.cart-sidebar-panel *,
.cart-sidebar-panel *::before,
.cart-sidebar-panel *::after {
  box-sizing: border-box;
}

.cart-sidebar-form {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  padding-top: 45px;
  box-sizing: border-box;
  border-left: 1px solid #2b2a2a;
}

.cart-sidebar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100%;
  padding-top: 4rem;
}

/* ===================================
   BOTÃO DE FECHAR
   =================================== */

.cart-sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  color: var(--cart-text-primary);
  pointer-events: auto;
}

.cart-sidebar-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--cart-error);
  transform: rotate(90deg);
  color: var(--cart-error);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.cart-sidebar-close:active {
  transform: rotate(90deg) scale(0.95);
}

.cart-sidebar-close svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* ===================================
   CABEÇALHO
   =================================== */

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cart-border);
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.cart-sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--cart-text-primary);
  margin: 0;
}

.cart-sidebar-title svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.cart-sidebar-count {
  font-size: 14px;
  color: var(--cart-text-secondary);
  font-weight: 500;
  margin: 0;
}

/* ===================================
   LISTA DE ITENS
   =================================== */

.cart-sidebar-items-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 16px 0;
  padding: 16px;
  background: #161616;
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--cart-primary) rgba(55, 65, 81, 0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.cart-sidebar-items-wrapper::-webkit-scrollbar {
  width: 6px;
}

.cart-sidebar-items-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.cart-sidebar-items-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 8px;
  opacity: 0.5;
}

.cart-sidebar-items-wrapper::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.cart-sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 15rem;
}

/* ===================================
   ITEM DO CARRINHO
   =================================== */

.cart-item-card {
  background: var(--cart-bg-card);
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.cart-item-card:hover {
  background: rgba(0, 0, 0, 0.548);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

/* Imagem do Item */
.cart-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(55, 65, 81, 1);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cart-text-secondary);
}

/* Detalhes do Item */
.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cart-text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item-name a:hover {
  color: var(--primary-color);
}

.cart-item-options {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--cart-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-options li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quantidade (oculta) */
.cart-item-quantity-hidden {
  display: none;
}

/* Ações do Item (Preço e Remover) */
.cart-item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.cart-item-price-old {
  font-size: 11px;
  color: var(--cart-text-secondary);
  text-decoration: line-through;
  margin: 0;
}

.cart-item-price-current {
  font-size: 14px;
  font-weight: 700;
  color: var(--cart-text-primary);
  margin: 0;
}

.cart-item-price-current.discounted {
  color: var(--cart-success);
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  cursor: pointer;
  color: var(--cart-error);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--cart-error);
  border-color: var(--cart-error);
  transform: scale(1.05);
}

.cart-item-remove svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* ===================================
   ESTADO VAZIO
   =================================== */

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--cart-text-secondary);
  min-height: 300px;
}

.cart-empty-state svg {
  margin-bottom: 20px;
  opacity: 0.3;
}

.cart-empty-state p {
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* ===================================
   INFORMAÇÕES DO USUÁRIO
   =================================== */

.cart-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(9, 250, 196, 0.05);
  border: 1px solid rgba(9, 250, 196, 0.2);
  border-radius: 8px;
  margin-top: 16px;
}

.cart-user-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.cart-user-info span {
  font-size: 13px;
  font-weight: 500;
  color: white;
}

/* ===================================
   DESCONTO PROGRESSIVO
   =================================== */

.cart-discount-widget {
  background: var(--cart-bg-card);
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.cart-discount-header {
  margin-bottom: 12px;
}

.cart-discount-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cart-text-secondary);
}

.cart-discount-progress {
  position: relative;
}

.cart-discount-bar {
  height: 8px;
  background: rgb(71, 71, 71);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.cart-discount-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-hover), var(--primary-color));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

.cart-discount-checkpoints {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 2;
}

.cart-discount-checkpoint {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cart-discount-checkpoint-marker {
  width: 14px;
  height: 14px;
  background: rgb(77, 77, 77);
  border: 2px solid rgb(134, 134, 134);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-discount-checkpoint.active .cart-discount-checkpoint-marker {
  background: var(--primary-color);
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--primary-color);
}

.cart-discount-labels {
  margin-top: 10px;
  position: relative;
  height: 20px;
}

.cart-discount-checkpoint-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--cart-text-secondary);
  font-weight: 500;
}

.cart-discount-next {
  margin-top: 12px;
}

.cart-discount-info {
  background: rgb(26 26 26);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.cart-discount-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
}

.cart-discount-text.completed {
  color: var(--cart-success);
}

/* ===================================
   SUBTOTAL
   =================================== */

.cart-sidebar-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cart-border);
  margin-top: 20px;
}

.cart-sidebar-subtotal span:first-child {
  font-size: 14px;
  color: var(--cart-text-secondary);
}

.cart-sidebar-subtotal-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--cart-text-primary);
}

/* ===================================
   RODAPÉ - TOTAL E BOTÕES
   =================================== */

.cart-sidebar-footer {
  border-top: 1px solid var(--cart-border);
  max-width: 100%;
  box-sizing: border-box;
}

.cart-sidebar-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.cart-total-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--cart-text-secondary);
  margin: 0;
}

.cart-total-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--cart-text-primary);
  margin: 0;
  line-height: 1;
}

.cart-btn-clear {
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: var(--cart-error);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cart-btn-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--cart-error);
}

.cart-btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #48ff8e, #00eb53);
  border: none;
  border-radius: 12px;
  color: #002f10;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s 
ease;
  box-shadow: 0 4px 12px rgb(111 255 73 / 30%);
}

.cart-btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(22 241 101);
}

.cart-btn-checkout:active {
  transform: translateY(0);
}

.cart-btn-checkout:disabled,
.cart-btn-checkout.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-btn-checkout.loading span {
  position: relative;
}

.cart-btn-checkout.loading span::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ===================================
   NOTA DO RODAPÉ
   =================================== */

.cart-sidebar-note {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--cart-text-secondary);
  line-height: 1.4;
}

/* ===================================
   RESPONSIVO
   =================================== */

@media (max-width: 768px) {
  .cart-sidebar-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    right: -100% !important;
    left: auto !important;
  }

  .cart-sidebar-panel.opened {
    right: 0 !important;
    left: auto !important;
  }

  .cart-sidebar-container {
    padding: 20px!important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-top: 4rem !important;
  }

  .cart-sidebar-form {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .cart-sidebar-close {
    top: 16px !important;
    right: 16px !important;
  }

  .cart-sidebar-header {
    padding-bottom: 16px !important;
  }

  .cart-sidebar-title {
    font-size: 20px !important;
  }

  .cart-sidebar-items-wrapper {
    margin: 12px 0 !important;
    padding: 12px !important;
  }

  .cart-item-card {
    padding: 10px !important;
    gap: 10px !important;
  }

  .cart-item-image {
    width: 50px !important;
    height: 50px !important;
  }

  .cart-item-name {
    font-size: 13px !important;
  }

  .cart-item-options {
    font-size: 11px !important;
  }

  .cart-item-price-current {
    font-size: 13px !important;
  }

  .cart-item-price-old {
    font-size: 10px !important;
  }

  .cart-discount-widget {
    padding: 16px !important;
  }

  .cart-sidebar-total {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .cart-total-info {
    align-items: flex-start !important;
  }

  .cart-total-price {
    font-size: 24px !important;
  }

  .cart-btn-clear {
    width: 100% !important;
    text-align: center !important;
  }

  .cart-btn-checkout {
    padding: 14px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 480px) {
  .cart-sidebar-container {
    padding: 20px!important;
    padding-top: 4rem !important;
  }

  .cart-sidebar-title {
    font-size: 18px !important;
    gap: 8px !important;
  }

  .cart-sidebar-title svg {
    width: 20px !important;
    height: 20px !important;
  }

  .cart-sidebar-count {
    font-size: 13px !important;
  }

  .cart-item-card {
    padding: 8px !important;
    gap: 8px !important;
  }

  .cart-item-image {
    width: 48px !important;
    height: 48px !important;
  }

  .cart-item-name {
    font-size: 12px !important;
  }

  .cart-item-actions {
    gap: 8px !important;
  }

  .cart-item-remove {
    width: 26px !important;
    height: 26px !important;
  }

  .cart-item-remove svg {
    width: 12px !important;
    height: 12px !important;
  }

  .cart-total-price {
    font-size: 22px !important;
  }

  .cart-discount-widget {
    padding: 12px !important;
  }

  .cart-discount-title {
    font-size: 13px !important;
  }

  .cart-discount-text {
    font-size: 12px !important;
  }
}

/* ===================================
   ANIMAÇÕES
   =================================== */

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cart-sidebar-panel.opened {
  animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar-backdrop.show {
  animation: fadeIn 0.3s ease;
}

/* ============================================================================
   BASKET POPUP - MAXIMUM PRIORITY 
   ============================================================================ */
   .basket-popup[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .basket-popup:not([hidden]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: end;
    backdrop-filter: blur(1px) !important;
    overflow-y: auto !important;
  }
  
  .basket-popup .popup-backdrop {
    display: none !important;
  }
  
  .basket-popup-content {
    position: relative !important;
    z-index: 1000000 !important;
    max-width: 100% !important;
    margin: auto !important;
  }
  
  body:has(.basket-popup:not([hidden])) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  .basket-popup .site-content {
    all: unset !important;
    display: contents !important;
  }
  
  .basket-popup .basket {
    all: unset !important;
    display: contents !important;
  }
  
  /* Hide duplicate close button injected by main.js */
  .basket-popup .popup-content > .popup-close:first-child {
    display: none !important;
  }
  
  /* Keep only the close button inside basket-header visible */
  .basket-popup .basket-header .popup-close {
    display: inline-flex !important;
  }
  
  /* Pulse animation for basket icon when item added */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
  }
  
  /* Discount Popup Styles - Floating Version */
  .discount-popup-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    max-width: 18rem;
    width: calc(100% - 2rem);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .discount-popup-overlay.hidden-scroll {
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    pointer-events: none;
  }
  
  .discount-popup-overlay.closing {
    animation: slideOutRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  .discount-popup-overlay.minimized {
    transform: translateX(calc(100% - 4rem));
  }
  
  .discount-popup-overlay.minimized .discount-popup-container {
    width: 4rem;
    padding: 0.75rem;
    cursor: pointer;
  }
  
  .discount-popup-overlay.minimized .discount-popup-content {
    display: none;
  }
  
  .discount-popup-overlay.minimized .discount-popup-close {
    display: none;
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(calc(100% + 2rem));
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideOutRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(calc(100% + 2rem));
      opacity: 0;
    }
  }
  
  .discount-popup-container {
    position: relative;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border: 3px solid #10b981;
    border-radius: 1.25rem;
    padding: 2rem 1.25rem 1.25rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(16, 185, 129, 0.3);
    animation: slideInRight 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transition: all 0.5s ease;
  }
  
  .discount-popup-container:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
  }
  
  .discount-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .discount-popup-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
  }
  
  .discount-popup-close svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .discount-popup-content {
    text-align: center;
    color: white;
  }
  
  .discount-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    padding: 0.5rem;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.85;
      transform: scale(1.03);
    }
  }
  
  .discount-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }
  
  .discount-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
  }
  
  .discount-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
  }
  
  .discount-label svg {
    width: 1rem;
    height: 1rem;
  }
  
  .discount-title {
    font-family: var(--font-bebas, 'Bebas Neue', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  
  .discount-amount {
    font-family: var(--font-bebas, 'Bebas Neue', sans-serif);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .discount-code-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
  }
  
  .discount-code-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.375rem;
  }
  
  .discount-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  
  .discount-copy-button {
    width: 100%;
    background: white;
    color: #047857;
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
  }
  
  .discount-copy-button:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .discount-copy-button svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .discount-copy-button.copied {
    background: #10b981;
    color: white;
  }
  
  /* Loading state */
  .discount-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
  }
  
  .discount-popup-loading .spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Minimize Tab */
  .discount-minimize-tab {
    position: absolute;
    top: 50%;
    left: -3rem;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border: 3px solid #10b981;
    border-right: none;
    border-radius: 1rem 0 0 1rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .discount-minimize-tab:hover {
    left: -2.5rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }
  
  .discount-popup-overlay.minimized .discount-minimize-tab {
    display: none;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 640px) {
    .discount-popup-overlay {
      bottom: 1rem;
      right: 1rem;
      max-width: calc(100% - 2rem);
    }
  
    .discount-popup-container {
      padding: 1.75rem 1rem 1rem;
    }
  
    .discount-title {
      font-size: 1.5rem;
    }
  
    .discount-amount {
      font-size: 2rem;
    }
  
    .discount-code-value {
      font-size: 1rem;
    }
  
    .discount-minimize-tab {
      display: none;
    }
  
    .discount-icon {
      width: 3rem;
      height: 3rem;
      margin-bottom: 0.75rem;
    }
  }
  
  /* Pulse effect for attention */
  @keyframes pulse-glow {
    0%, 100% {
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                  0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                  0 0 30px rgba(16, 185, 129, 0.5);
    }
  }
  
  .discount-popup-container.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
  }
  
  /* Tablet responsiveness */
  @media (max-width: 1024px) and (min-width: 641px) {
    .discount-popup-overlay {
      max-width: 17rem;
    }
  }