@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
  --primary-color: rgb(1, 51, 36);
  --secondary-color: #f76711;
  --border-radius: 30px;
  --dark-color: #221f1f;
  --light-color: #ffe6beec;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 20px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 30px;
  border: 3px solid #f1f1f1;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
button,
textarea,
select {
  font-family: "Manrope", sans-serif !important;
  background-color: transparent;
  font-size: 1rem;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 5vw;
}

.slick-prev,
.slick-next {
  z-index: 1; /* Ensure the arrows are above other elements */
  top: 50%; /* Adjust the vertical position */
  transform: translateY(-50%);
  display: none !important;
}

.slick-prev {
  left: 10px !important; /* Adjust the horizontal position */
}

.slick-next {
  right: 10px !important; /* Adjust the horizontal position */
}

.slick-prev:before,
.slick-next:before {
  color: black !important; /* Change to a color that contrasts with the slider background */
}

.intro {
  padding-top: 8rem;
}

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 4rem 0;
  min-height: 35rem;
}

.not-found h1 {
  font-size: 4rem;
}

.not-found a {
  color: var(--secondary-color);
}

.auth-form {
  max-width: 500px;
  margin: 3rem auto;
}

.errors-card {
  margin-top: 1rem !important;
  font-size: 11px;
  color: red;
}

.loader {
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 135deg at top, currentColor 90deg, #0000 0) 0
      calc(50% - 4px) / 17px 8.5px,
    radial-gradient(
        farthest-side at bottom left,
        #0000 calc(100% - 6px),
        currentColor calc(100% - 5px) 99%,
        #0000
      )
      top right/50% 50% content-box content-box,
    radial-gradient(
        farthest-side at top,
        #0000 calc(100% - 6px),
        currentColor calc(100% - 5px) 99%,
        #0000
      )
      bottom / 100% 50% content-box content-box;
  background-repeat: no-repeat;
  animation: l11 1s infinite linear;
}
@keyframes l11 {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes movebtn {
  0% {
    transform: translateY(0px);
  }

  25% {
    transform: translateY(20px);
  }

  50% {
    transform: translateY(0px);
  }

  75% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media only screen and (max-width: 997px) {
  .container {
    padding: 1rem 5vw !important;
  }
}

.fa-solid,
.fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

.section-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header h3 {
  font-size: 1.1rem;
}

.section-header a {
  color: var(--secondary-color);
}

/* Modal base styles */
/* Modal background (hidden by default) */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50% !important;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%); /* Center modal */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
  z-index: 1000;
}

/* Modal content */
.modal-content {
  position: relative;
  top: 10% !important;
  width: 100%;
  max-width: 600px; /* Optional: Ensure a maximum width */
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  animation: slideIn 0.5s forwards;
  margin: auto;
  max-height: 35rem !important;
  overflow-y: scroll;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%; /* Full width on mobile */
    max-width: none; /* Remove max width restriction */
  }
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

/* Slide-in animation */
@keyframes slideIn {
  from {
    top: -100%; /* Start at the top */
  }
  to {
    top: 0; /* Slide down into view */
  }
}

.seller-form {
  overflow-y: scroll;
  overflow: auto; /* Enables scrolling */
  scrollbar-width: none;
  max-height: 700px !important;
}

.seller-form::-webkit-scrollbar {
  display: none; /* Hides scrollbar in WebKit browsers */
}

.seller-form h1 {
  margin-bottom: 20px !important;
}
.seller-form form {
  padding: 20px;
}

.seller-form .row {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.seller-form .row .form-group {
  width: calc(100% / 2 - 1rem / 2);
}

.seller-form .form-group {
  margin-bottom: 15px;
}
.seller-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.seller-form input,
.seller-form textarea,
.seller-form select {
  width: 100%;
  padding: 12px 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}
.seller-form textarea {
  resize: vertical;
}

.seller-form button {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.seller-form button:disabled {
  cursor: not-allowed;
  background-color: #76767691;
}

.seller-form button:hover {
  background-color: var(--primary-color);
}

.seller-form .product-row {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  margin-bottom: 5px;
}

.seller-form .product-row h4 {
  flex: 1;
}

.seller-form .product-row input {
  width: 100px;
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-form p {
  margin-bottom: 1.5rem;
}

.auth-form .error {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 2px solid red;
  background-color: rgb(249, 207, 207);
  display: none;
}

.auth-form button {
  font-weight: 600;
}

.botton-info {
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.botton-info a {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

@media (max-width: 560px) {
  .modal-content {
    top: 5% !important;
  }

  .seller-form h1 {
    font-size: 1.3rem;
  }

  .seller-form form {
    padding: 20px;
  }

  .seller-form label {
    font-size: 0.8rem;
  }

  .seller-form .row {
    flex-wrap: wrap !important;
  }

  .seller-form .row .form-group {
    width: 100%;
    gap: 0;
  }

  .seller-form .mtt {
    margin-top: -15px !important;
  }
}

.checkout-modal .modal-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.checkout-modal .modal-header h2 {
  font-size: 1.2rem;
}

.checkout-modal .description {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 0.9rem;
}

.checkout-modal h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.checkout-modal .actions {
  padding: 1rem 0;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem !important;
}

.checkout-modal .actions button {
  padding: 0.7rem 1rem;
  cursor: pointer;
  border: 1px solid #7b7b7b;
  outline: none;
  font-weight: 600;
}

.checkout-modal .actions button:last-child {
  border-color: var(--secondary-color);
  color: white;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.payment-options {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.payment-message-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: auto;
  min-height: 30rem;
}

.payment-message-container h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.payment-message-container p {
  font-size: 16px;
  line-height: 1.6;
}

.payment-message-container button {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.payment-success h2 {
  color: #026105;
}
.payment-cancelled h2 {
  color: #ffa500;
}
.payment-failed h2 {
  color: #f44336;
}

#product-list {
  max-height: 8rem;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

#product-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
