:root {
    --primary-color: #04cda3;   /* Mint Green */
    --hovered-primary-color:#019e7c; 
    --secondary-color: rgb(24, 38, 49);  /* Purple */
    --light-secondary-color: #dccde9; /* light purple */
    --light-primary-color: #d5eee9; /* light cyan */
    --dark-color: #182631;      /* Dark Text */
    --light-color: #e6e6e6;     /* Light Background */
  }
 
body{
    margin:0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
}

/*--------------------------------------------------- main ------------------------------------------------*/
main{
  width:100%;
  height:100vh;
  background:rgb(255, 255, 255);
  display:grid ;
  grid-template-columns: 3fr 1fr;
  
}
.shopping-items{
  background-color: white;
  margin-left: 2%;
  margin-right: 2%;
}
.order-summary{
  background-color: rgb(255, 255, 255);
  border-left: 1px solid gray;
  padding-left: 10px;
}
.caracteristics input{
  list-style-type: none;
  border:1px solid gray;
  color:gray;
  font-size: 18px;
  border-radius: 5px;
  width:30px;
  height:30px;
  
  text-align: center;
}
div.caracteristics:nth-child(3) > input:nth-child(1){
  border:2px solid  gray !important;
  border-radius: 5px;
}

body > main > div > section.shopping-items > div > div > div.quality > div:nth-child(3) > input[type=text]{
  width:20px;
  height:20px;
  

}
.item>input[type="checkbox"] {
  appearance: none; /* For modern browsers */
  -webkit-appearance: none; /* For Safari */
  border:1px solid rgb(128, 128, 128);
  color:white;
  background-color: #ffffff;
  font-size: 18px;
  border-radius: 5px;
  width:40px;
  height:30px;
  align-self: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.item>input[type="checkbox"]:checked {
  appearance: none; /* For modern browsers */
  -webkit-appearance: none; /* For Safari */
  border:1px solid rgb(128, 128, 128);
  color:white;
  background-color: #49ac42;
  font-size: 18px;
  border-radius: 5px;
  width:40px;
  height:30px;
  align-self: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top:0px;
  left: 0px;
}
.shopping-items li{
  list-style-type: none;
  border: 1px solid gray;
  color: gray;
  font-size: 18px;
  border-radius: 5px;
  width: auto;
  height: 20px;
  text-align: center;
  padding-bottom: 1.5%;
  padding-left: 1%;
  padding-right: 1%;
}
div.item > div:nth-child(2) > div:nth-child(1) > div:nth-child(3) > li:nth-child(1){
  transform: translateX(calc(100% - 1.3rem));
  
  
}
div.item > div:nth-child(2) > div:nth-child(1) > div:nth-child(3) > li:nth-child(2){
  transform: translateX(calc(45% - 1rem));
  
  
}
div.item > div:nth-child(2) > div:nth-child(1) > div:nth-child(3) > li:only-child{
  transform: translateX(20%);
}
/* div.item:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:nth-child(3) > li:nth-child(1) */

.item{
  display: flex;
  width:940px;
  padding: 20px 0px ;
  margin:5px 20px;
  margin-bottom: 15px;
  height:350px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
hr{
  width: 90%;
  transform: translateX(-20px);
}
.item img{
  margin:0 5px;
  height:200px !important;
  width:190px !important;
  object-fit: contain;
  background: #fff;
}
.item input{
  margin:0 5px;
}
.item > div{ width:100%;}
.caracteristics{
  display: flex;
  justify-content: center;
  gap:5%;
  align-items: center;
  margin-left: -50%;
}
.caracteristics h4{
  text-align: left;
  color:var(--dark-color)
 
}
.counter{
  width:30%;
  height:50px !important;
  
  border-radius: 12px;
  
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: auto;
  margin: 20px 0;
}
.counter span{
  font-size: 22;
  font-weight: 600;
}
.counter i{
  padding:5px;
  font-size: 12px;
  border-radius:50%;
  border:1px solid gray;
  color:gray;
}
.counter i:nth-child(3){
  padding:5px;
  font-size: 12px;
  border-radius:50%;
  border:1px solid #6FBC69;
  color:#6FBC69;
}
.quantity{
  display: flex;
  flex-direction: column;
  width:90%;
  
  margin-left: 20px;
}
.quantity-sub{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  gap:1rem;
}
.quantity span{
  width:230px;
  color:rgb(109, 109, 109);
}
.quality{
  position:relative;
  width:90%;
  margin-left: 20px;
  margin: 10px 20px;
}
/* .quality h3{
  width:200px !important;
} */
.quality i {
  color:red;
  font-size: 20px;
  position: absolute;
  top:0%;
  right:0;
  border: 1px solid red;
  background:rgb(247, 166, 166);
  padding:5px;
  border-radius: 5px;
  cursor: pointer;
}
.delivery{
  display: flex;
  flex-direction: column;
  background:white;
  position: absolute;
  bottom:0;
  right:0;
}
.delivery h4,.delivery p {
  margin:0px;
  padding:0px;
  color:var(--dark-color);
  
}
.delivery p {
  color:var(--secondary-color);
  
}

.Tracker{
  width:300px;
  position: absolute;
  
  background: #c8fcc5;
  justify-content: space-around;
  align-items:center ;
  display: flex;
  border-radius: 12px;
  border:1px solid #61c45a;
  z-index: 10;
  cursor: grab;
  user-select: none; /* Prevent text selection while dragging */
}
.Tracker div{
  display: flex;
  flex-direction: column;
  padding:20px 0px;
}
.Tracker div span:nth-child(1){
  color:rgb(83, 83, 83);
}
.Tracker div span:nth-child(2){
  font-size: 22px;
}



.Tracker:active {
  cursor: grabbing;
}
/*--------------------------------------------------- Aside ------------------------------------------------*/
aside{
  position: relative;
}
aside>h3{
  margin: 5px 5px ;
  font-size: 1.3rem;
  font-weight: 500;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f1f1f1;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 16px;
  max-width: fit-content;
  position: fixed;
  top:90%;
  right:2rem;
  cursor: pointer;
}

.whatsapp-icon {
  color: #25D366;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}
.whatsapp-contact:hover {
  background-color: #d3fddc;}
.whatsapp-icon:hover {
  color: #1ebe5d;
  background-color: #d3fddc;

}

.whatsapp-icon:active {
  transform: scale(0.95);
}
.coupon input{
  width:60%;
  height:40px;
  margin-left:5px;
  border-radius: 12px;
  border:1px solid gray;
}
.coupon button{
  width:100px;
  border-radius: 12px;
  color:white;
  background-color: #53a54d;
  border:none;
  margin: none;
  height:45px;
  /* transform: translateX(-15px); */
}
aside hr{
  width:87%;
  margin-left: 10%;
}
.price{
  width:90%;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 5px;
}
.price span{
 font-weight: 600;
}

.choices{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  width:100%;

}
.choices div input[type="checkbox"] {
  appearance: none; /* For modern browsers */
  -webkit-appearance: none; /* For Safari */
  border:1px solid rgb(128, 128, 128);
  color:white;
  background-color: #ffffff;
  font-size: 18px;
  border-radius: 50%;
  width:25px;
  height:25px;
  align-self: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.choices div input[type="checkbox"]:checked {
  appearance: none; /* For modern browsers */
  -webkit-appearance: none; /* For Safari */
  border:1px solid rgb(128, 128, 128);
  color:white;
  background-color: #49ac42;
  font-size: 16px;
  border-radius: 50%;
  width:25px;
  height:25px;
  align-self: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.choices div input[type="checkbox"]:checked::after {
  content: "";
}
.loader1 {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-left: 120px;

}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-left: 95px;

}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.choices>div{
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  width:100%;
  padding:2px 10px;
  border-radius:12px ;
  font-size: 14px;
}
.choices>div>input,.choices>div>label{
  color:var(--primary-color);
  
}

.adress{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 15px ;
  width:80%;
}
.adress p:nth-child(2){
  
  font-size: 12px;
}
.adress p:nth-child(3){
  font-weight: 600;
  font-size: 18px;
}
.adress button{
  font-size: 16px;
  height:50px;
    color: #32812c;
    background: #c8fcc5;
    padding: 5px 10px;
    width:auto;
    border:none;
    border-radius: 10px;
    margin-bottom: 20px;
    display: inline-block;
    border:2px solid #61c45a;
}

.pay-now{
  width:auto;
  border-radius: 12px;
  color:white;
  font-size: 16px;
  background-color: var(--primary-color);
  border:none;
  margin: 15px 10px;
  height:45px;
  transform: translateX(25%);
  
}
#checkoutForm > button:nth-child(18){
    background-color: var(--primary-color);
}
.otp{
  position: fixed;
  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    display: none;
}
.exit{
  position: fixed;
    top: 14%;
    left: 67.5%;
    transform: translate(-50%, -50%);
    padding:2px 8px;
    z-index: 2;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}
* h1{
  font-size:1.3rem;
  margin-left: 2%;
  margin-right: 2%;
}
* h2{
  font-size:1.2rem;
  margin:2px;
}
* h3{
  font-size:1.1rem;
  margin:2px;
  font-weight: 600;
  color:var(--dark-color)
}
* h4{
  font-size:1rem;
  margin:2px;
}
* button{
  font-size:1rem;
  margin:2px;
  padding:10px;
}
* p {
  margin:2px 0;
}
.item{
  height: 220px
}

#cart-link{
  position: relative;
}
.cart-count {
  position: absolute;
top: -10px;
right: -0.8rem;
width: 18px;
height: 18px;
background-color: rgb(255, 66, 66);
color: white;
/* color: black; */
border-radius: 50%;
text-align: center;
font-size: 11px;
display:none;
}
.cartCheckout{
  
  transform: translateY(-2.5rem);
}

/* === Animated Blurry Glow Circle === */
.blurry-circle {
  position: absolute;
  top: -80px;   /* adjust position */
  right: -80px; /* adjust position */
  width: 300px;
  height: 300px;
  background: #f5a623;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: -1;

  /* Animation */
  animation: glowPulse 6s ease-in-out infinite;
}

/* Keyframes for pulsing glow */
@keyframes glowPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
    filter: blur(120px);
  }
  50% {
    transform: scale(1.2); /* grow */
    opacity: 0.8;          /* brighter */
    filter: blur(150px);   /* stronger glow */
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
    filter: blur(120px);
  }
}
body > main > aside > ul{
  width: 80%;
  margin:0;
  transform: translate(-0.5rem,0);
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
body > main > aside > ul > li{
  line-height: 1.6rem;
  margin-bottom: 0.8rem;
}
.order-summary > ul:nth-child(15) > h2:nth-child(1){
  text-align: left;
}

.popup {
  position: fixed;
  top: 50%;
  left: 60%;
  transform: translate(-60%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: none;
  z-index: 10000;
  width: 60%;
  height: 20%;
}
.popup button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width:12rem;
}
.guest-btn {
  background-color: var(--light-primary-color); /* Blue */
  color: var(--dark-color);
  border: solid 1px var(--dark-color) !important;
}
.guest-btn:hover {
  background-color:  /* Blue */var(--dark-color);
  color: var(--light-primary-color);
  border: solid 1px var(--light-primary-color) !important;
}
.register-btn {
  background-color: var(--light-primary-color); /* Blue */
  color: var(--dark-color);
  border: solid 1px var(--dark-color) !important;
}
.register-btn:hover {
  background-color:  /* Blue */var(--dark-color);
  color: var(--light-primary-color);
  border: solid 1px var(--light-primary-color) !important;
}

/*--------------------------------------------------- responsivness ------------------------------------------------*/



/* Extra Small Devices (up to 360px) */
@media (max-width: 360px) {
 
  main{
    width:100vw !important;
    grid-template-columns: 1fr  ;
    grid-auto-rows: 1fr !important;
    gap:5rem;
    
  }
  main>div{
    max-width:100vw !important;
    height:100%;
    overflow: visible;

  }
  .shopping-items{
    max-width:100%;
    margin-bottom: 50px;
    
  }
  .item {
    width:90%;
    margin-bottom: 2rem;
    flex-direction: column;
    height:auto;
  }
  .item img {
    width:30%;
    height:15vh!important;
    align-self: center;
  }
  .quality i {
    color:red;
    font-size: 20px;
    position: absolute;
    top:-130%;
    right:0;
    border: 1px solid red;
    background:rgb(247, 166, 166);
    padding:5px;
    border-radius: 5px;
    cursor: pointer;
  }
}

/* Small Devices (361px to 480px) */
@media (min-width: 351px) and (max-width: 490px) {
  .quality i {
    color:red;
    font-size: 20px;
    position: absolute;
    top: -100%;
right: -2%;
    border: 1px solid red;
    background:rgb(247, 166, 166);
    padding:5px;
    border-radius: 5px;
    cursor: pointer;
  }
  main{
    width:100vw !important;
    grid-template-columns: 1fr  ;
    grid-auto-rows: 1fr !important;
    gap:5rem;
    
  }
  main>div{
    margin-top: 5rem;
    max-width:100vw !important;
    height:100%;
    overflow: visible;

  }
  .shopping-items{
    max-width:100%;
    margin-bottom: 50px;
    
  }
  .item {
    width:90%;
    margin-bottom: 2rem;
    flex-direction: column;
    height:auto;
  }
  .item img {
    width:30%;
    height:15vh!important;
    align-self: center;
  }
  .popup {
    position: fixed;
    top: 30%;
    left: 60%;
    transform: translate(-60%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    z-index: 10000;
    width: 80%;
    height: 20%;
  }
 
}

/* Medium-Small Devices (481px to 579px) */
@media (min-width: 481px) and (max-width: 579px) {

  main{
    width:100vw !important;
    grid-template-columns: 1fr  ;
    grid-auto-rows: 1fr !important;
    gap:5rem;
    
  }
  main>div{
    max-width:100vw !important;
    height:100%;
    overflow: visible;
    margin-top:5rem ;
  }
  .shopping-items{
    max-width:100%;
    margin-bottom: 50px;
    
  }
  .item {
    width:90%;
    margin-bottom: 2rem;
    flex-direction: column;
    height:auto;
  }
  .item img {
    width:30%;
    height:15vh!important;
    align-self: center;
  }
 
  .popup {
    position: fixed;
    top: 30%;
    left: 60%;
    transform: translate(-60%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    z-index: 10000;
    width: 80%;
    height: 20%;
  }
}

/* Medium Devices (580px to 649px) */
@media (min-width: 490px) and (max-width: 599px) {
main{
    width:100vw !important;
    grid-template-columns: 1fr  ;
    grid-auto-rows: 1fr !important;
    gap:5rem;
    
  }
  main>div{
    max-width:100vw !important;
    height:100%;
    overflow: visible;
    margin-top:5rem ;

  }
  .shopping-items{
    max-width:100%;
    margin-bottom: 50px;
    
  }
  .item {
    width:90%;
    margin-bottom: 2rem;
    flex-direction: column;
    height:auto;
  }
  .item img {
    width:30%;
    height:15vh!important;
    align-self: center;
  }
  body > header > nav > div.links{
    width:30%;
    gap:1rem;
    text-align: center;
  }
}

/* Tablets (650px to 768px) */
@media (min-width: 600px) and (max-width: 1024px) {
  main{
    width:100vw !important;
    grid-template-columns: 1fr  ;
    grid-auto-rows: 1fr !important;
    gap:5rem;
    
  }
  main>div{
    max-width:100vw !important;
    height:100%;
    overflow: visible;

  }
  .shopping-items{
    max-width:100%;
    margin-bottom: 50px;
    
  }
  .item {
    width:90%;
    margin-bottom: 2rem;
    flex-direction: column;
    height:auto;
  }
  .item img {
    width:30%;
    height:15vh!important;
    align-self: center;
  }
 
}


/* Large Devices (769px to 1024px) */
@media (min-width: 1024px) and (max-width: 1264px) {
main{
  width:100vw !important;
  grid-template-columns: 1fr 1fr ;
}
.shopping-items{
  max-width:100%;
  
}
.item {
  width:90%;
  margin-bottom: 2rem;
  flex-direction: column;
  height:auto;
}
.item img {
  width:30%;
  height:15vh!important;
  align-self: center;
}

}







/* ─── Checkout form (moved from Cart.html inline <style>) ───────────── */
.order-summary form {
    background: #ffffff;
    max-width: 400px;
    width: 75%;
    padding: 20px 30px;
    border-radius: 8px;
}
.order-summary label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #000;
    margin-bottom: 14px;
    width: 100%;
}
.order-summary input,
.order-summary select,
.order-summary button.cartCheckout {
    width: 60%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
#shippingDetails {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}
@media (max-width: 768px) {
    .order-summary form { padding: 20px; }
    .order-summary h1 { font-size: 20px; }
    .order-summary button.cartCheckout { font-size: 14px; }
}

/* ─── Shipping modal (moved from Cart.html inline <style>) ──────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content .close:hover { color: #000; }
.modal-content form label { display: block; margin: 10px 0 5px; }
.modal-content form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal-content form button {
    background-color: #04cda3;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 20%;
}
.modal-content form button:hover { background-color: #019e7c; }
