/* === BASIC STYLES === */
body {
  background-color: #111827;
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
}

img {
  filter: none !important;
}

.poster-description {
  max-height: 200px;
  overflow-y: auto;
  white-space: normal;
  line-height: 1.6;
  text-align: justify;
}
.body-scroll-lock {
  position: fixed;
  overflow-y: scroll;
  width: 100%;
}
#paypal-button-container iframe {
  max-height: 80vh !important;
  overflow-y: auto !important;
  border-radius: 8px;
}

header {
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #374151;
}


.poster-card {
  background-color: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
              0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.poster-image-container {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.poster-card:hover .poster-image {
  transform: scale(1.05);
}


.search-input {
  width: 260px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 2rem;
  border: 1px solid #374151;
  background: #1f2937;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.search-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  width: 100%;
  background: #1f2937;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  z-index: 40;
}

#search-results img {
  width: 60px;
  height: 84px;
  object-fit: cover;
}

#search-results {
  background: #222 !important;
  max-height: 300px;
  overflow-y: auto;
}

#search-results {
  transition: all 0.2s ease;
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 40;
}

.modal-content {
  position: relative;
  z-index: 50;
  background: #1f2937;
  border-radius: 0.75rem;
  max-width: 1200px;
  width: 95%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

#load-more {
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#load-more:hover {
  background-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#paypal-button-container {
  max-height: 80vh;
  overflow-y: auto; 
  padding-right: 4px; 
}

/* А  */
#paypal-button-container iframe {
  width: 100% !important;
  min-height: 600px !important;
  max-height: none !important; 
  display: block;
}

input, select, textarea {
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}


::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

#shipping-modal {
  z-index: 100;
}
#shipping-modal .bg-white {
  z-index: 101;
}
#shipping-modal input {
  color: black !important;
}



#cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: flex-start; 
  justify-content: center;
  z-index: 100;
  overflow-y: auto; 
  padding-top: 5vh; 
  padding-bottom: 5vh; 
  background-color: rgba(0, 0, 0, 0.6);
}

#cart-modal.flex {
  display: flex !important;
}

#cart-modal .modal-backdrop {
  z-index: 90;
}

#cart-modal .bg-white {
  z-index: 100;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  max-width: 420px; 
  width: 100%;
  padding: 20px;
}

#cart-items {
  max-height: 250px;
  overflow-y: auto;
}

#cart-modal button {
  transition: all 0.2s ease;
}

#cart-modal button:hover {
  transform: translateY(-2px);
}


#paypal-button-container iframe {
  max-height: 80vh !important;
  overflow-y: auto !important;
  border-radius: 8px;
}



.poster-description-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.poster-description-container::-webkit-scrollbar {
  width: 6px;
}

.poster-description-container::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 3px;
}

.poster-description-container::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 3px;
}

.poster-description-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.zoomable {
  transition: transform 0.3s ease;
  transform-origin: center center; 
  cursor: zoom-in;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  z-index: 50;
}

.zoomable.zoomed {
  transform: scale(2.7);
  cursor: zoom-out;
  z-index: 100;
  will-change: transform;
}


@media (max-width: 768px) {
  .search-input {
    width: 160px;
  }

  .zoomable {
    max-width: 90%;
  }

  .zoomable.zoomed {
    transform: scale(1.9);
  }

  .modal-content {
    flex-direction: column;
    max-height: 95vh;
  }

  .poster-card {
    border-radius: 0.5rem;
  }

  .poster-description-container {
    max-height: 200px;
  }
}

@media (max-width: 640px) {
  .modal-content {
    flex-direction: column;
  }
}

.group {
  position: relative;
}

.group .absolute {
  pointer-events: none; 

.group:hover .absolute {
  opacity: 0;
}


.text-green-400 {
  color: #4ade80 !important;
}

.free-shipping-text {
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 25px 0;
  color: #4ade80;
  letter-spacing: 0.5px;
  padding: 10px 0;
  border-top: 1px solid #374151;
  border-bottom: 1px solid #374151;
}
}
