/* Contract-safe replacements for primesoko inline styles */

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

[data-wishlist-remove].loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

[data-wishlist-remove].loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: uzanga-loading-spinner 0.6s linear infinite;
}

@keyframes uzanga-loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

.uzanga-hidden {
  display: none !important;
}

.is-hidden {
  display: none;
}

.uzanga-selected {
  color: red;
}

.uzanga-logo-link {
  height: 60px;
}

.uzanga-logo-image {
  max-height: 40px !important;
}

.uzanga-logo-text {
  font-size: 24px;
  font-weight: 600;
}

.uzanga-footer {
  margin-bottom: 50px;
}

.uzanga-footer-icon {
  margin-right: 8px;
}

.uzanga-product-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  row-gap: 8px;
}

.uzanga-product-options-value {
  margin: 0;
}

.uzanga-product-option {
  margin-bottom: 12px;
}

.uzanga-product-option-label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.uzanga-instagram-link {
  text-decoration: underline;
  font-size: 12px;
}

.category-search-results {
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.category-search-results.is-hidden {
  display: none;
}

.category-search-item {
  cursor: pointer;
}

/* Product gallery parity */
.tf-main-product .thumbs-slider {
  display: flex;
  gap: 10px;
  flex-direction: row;
}

.tf-main-product .thumbs-slider .tf-product-media-thumbs {
  width: calc(14% - 10px);
  max-height: 846px;
}

.tf-main-product .thumbs-slider .tf-product-media-main {
  flex: 1 1 auto;
}

/* Buy now page */
.buy-now-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.buy-now-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 1px solid #e9ecef;
}

.buy-now-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top: 3px solid var(--main, #667eea);
  border-radius: 100%;
  position: relative;
  margin: 0 auto 2rem;
  animation: buy-now-spin 1s infinite linear;
}

@keyframes buy-now-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.buy-now-title {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.buy-now-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.error-icon {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-title {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-message {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Unlock storefront page (scoped) */
.uzanga-unlock-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.uzanga-unlock-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
  max-width: 450px;
  width: 100%;
}

.uzanga-unlock-container h1 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.uzanga-unlock-page .lock-message {
  color: #666;
  text-align: center;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.5;
}

.uzanga-unlock-page .form-group {
  margin-bottom: 24px;
}

.uzanga-unlock-page .input-wrapper {
  position: relative;
}

.uzanga-unlock-page .form-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  outline: none;
}

.uzanga-unlock-page .form-input:focus {
  border-color: #667eea;
}

.uzanga-unlock-page .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uzanga-unlock-page .toggle-password:hover {
  color: #333;
}

.uzanga-unlock-page .error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.uzanga-unlock-page .error-message.show {
  display: block;
}

.uzanga-unlock-page .success-message {
  color: #28a745;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.uzanga-unlock-page .success-message.show {
  display: block;
}

.uzanga-unlock-page .submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: #ff8c00;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.uzanga-unlock-page .submit-button:hover:not(:disabled) {
  background: #e67e00;
  color: white;
}

.uzanga-unlock-page .submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.uzanga-unlock-page .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: uzanga-spin 0.6s linear infinite;
  display: none;
}

.uzanga-unlock-page .spinner.show {
  display: block;
}

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

.uzanga-unlock-page .eye-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.uzanga-unlock-page .eye-icon::before {
  content: "👁️";
}

.uzanga-unlock-page .eye-off-icon::before {
  content: "🙈";
}

/* Error page (scoped) */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: #363636;
  overflow-x: hidden;
}

.error-container .floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.error-container .shape {
  position: absolute;
  opacity: 0.03;
  animation: uzanga-float 10s ease-in-out infinite;
}

.error-container .shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.error-container .shape:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 3s;
}

.error-container .shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes uzanga-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.error-container .error-content {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.error-container .error-illustration {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.error-container .error-status {
  font-size: 6rem;
  font-weight: 900;
  color: #ff8c00;
  margin-bottom: 1rem;
}

.error-container .error-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1rem;
}

.error-container .error-message {
  color: #666666;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.error-container .back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #ff8c00;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.error-container .back-button:hover {
  background: #e67e00;
  color: white;
}

.error-container .back-button svg {
  width: 20px;
  height: 20px;
}

.error-container .error-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .error-container .error-status {
    font-size: 4rem;
  }

  .error-container .error-title {
    font-size: 1.5rem;
  }

  .error-container .error-content {
    padding: 2rem;
  }
}
