@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Bebas+Neue&family=Dancing+Script:wght@500&family=Raleway:wght@400;700&family=Roboto+Slab:wght@400;700&family=Montserrat:wght@400;700&family=Heebo:wght@400;700&family=Rubik:wght@400;500;700&family=Assistant:wght@400;500;600;700&family=Secular+One&family=Frank+Ruhl+Libre:wght@400;700&family=Cairo:wght@400;700&display=swap');

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card-hover: #334155;
  --primary: #7b61ff;
  --primary-hover: #6b51ef;
  --secondary: #427af2;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
  --shadow:0 15px 40px rgba(0,0,0,.4);
  --radius: 12px;
  --card:#111c34;
  --btn:#1e3a8a;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-gray: rgba(255,255,255,0.08);
}

/* ================= GLOBAL ================= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:'Heebo',sans-serif;
}
body{
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  
}



button{font-family:'Rubik','Heebo','Assistant','Arial',sans-serif;}

/* ================= HEADER ================= */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(120deg,#18233a,var(--bg));
  padding:15px 30px;
  position:sticky;
  top:0;
  right: 0;
  z-index:999;
  color:white;
  flex-wrap:wrap;
  gap:15px;
}

header .logo {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 1px;
  z-index: 999;
  position: absolute; /* Change to absolute positioning */
  top: 50%; /* Vertical center */
  left: 50%; /* Horizontal center */
  transform: translate(-50%, -50%); /* Offset by 50% of the element's size */
}

/* this to do in mobile row that do little buttons */
.header-cats{
  display:flex;
  flex-direction: row;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  flex:1;
}

.header-right{
  display:flex;
  align-items:center;
  gap:15px;
}

/* ================================
   FOR Mini Header Styling
================================ */
.mini-header {
  background: linear-gradient(to top, #18233a7c,#7b61ff74);
  color: white;
  border-radius: 3%;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 1;
  margin-top: 8vh;
  /* top:105.6%; */
  left: 50%;
  transform: translate(-50%, -50%); /* מרכז אמיתי */
  width: 60%; 
  /* height: 50px; */
}

/* Container for Buttons */
.mini-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; 
  transition: transform 0.3s ease; 
}

/* When collapsed, slide to the left */
.mini-header-container.collapsed {
  transform: translateX(-100%); /* Slide out */
}


/* Mini header stacked filters: Dept on top, Category on bottom */
.header-cats--stacked{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.header-row{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch; /* iOS Safari smooth scroll */
  padding:4px 2px;
  scrollbar-width:none;
}
.header-row::-webkit-scrollbar{ display:none; }

.header-row .filter-btn{
  flex:0 0 auto; /* keep buttons in one row with horizontal scroll */
  white-space:nowrap;
}

/* optional: slightly separate dept row visually */
.header-row--dept{
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

/* Header Categories (buttons) */
.header-cats {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Category Buttons */
.filter-btn {
  background: transparent;
  border: 1px solid #6f5df6;
  color: white;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn.active {
  background-color: #7b61ff; /* Highlight active button */
}

.filter-btn:hover {
  background-color: rgba(123, 97, 255, 0.2);
}

/* Expand Button (Emoji) */
.expand-btn {
  font-size: 24px; /* Emoji size */
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.7s ease;
  margin-bottom:1vh;
  background: var(--primary);
  border-radius: .4vh;

}

/* Clothing Shop Homepage */
.shop-homepage {
  width: 100%;
  height: 100vh; /* Make it take full viewport height */
  background: url('../images/home3.png') no-repeat center center fixed;
  background-size: cover;
  background-position: center top; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;

}

.shop-background {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 40px;
}

.shop-content h1 {
  font-size: 3rem;
  margin: 0;
  font-family:"Bebas Neue", sans-serif;

}

.shop-content span {
      font-family: 'Dancing Script', cursive;

}

.shop-content p {
    font-family: 'Bebas Neue', serif;
  font-size: 2rem;
  font-weight: bold;
}

/* Sale Items Section */
.sale-items {
  width: 100%;
  height: 100%;
  margin-top: 20px;
  padding: 5vh 0;
}
/* body {
    font-family: 'Raleway', sans-serif; 
    font-family: 'Roboto Slab', serif;
    font-family: 'Montserrat', sans-serif;
} */
.sale-items h2 {
  font-size: 2rem;
  font-weight: bold; 
  background:#330358a6;
  width: auto;
  text-shadow: 0 0 20px rgba(75, 49, 69, 0.4), 0 0 30px rgba(154, 153, 153, 0.9), 0 0 40px rgba(0, 0, 0, 0.4); /* Glowing multi-shadow effect */
  text-align: center;
  font-family: 'Heebo', sans-serif;
  padding: .2vh;
  border-radius: 1vh;
  white-space: nowrap;
  border: .2vh solid rgb(167, 53, 237);
  margin-bottom: 1vh;
}

/* Modal Container */
.sale-item-modal {
  background: rgba(27, 18, 28, 0.7);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  color: white;
  max-width: 300px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.sale-item-modal img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Add shadow to the image */
}

/* Modal Item Name */
.modal-item-name {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(221, 221, 221);
  text-transform: uppercase;
  font-family: "Heebo", sans-serif;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

/* Modal Item Original Price */
.modal-item-original-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-muted);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Modal Item Price (Sale Price) */
.modal-item-price {
  margin-top: 5px;
  text-decoration: none;
  font-size: 1rem;
  color: #7b61ff; 
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
}


@media (max-width: 768px) {
  .shop-homepage {
    padding: 10px;
  }
}


/* ================= CART BUTTON ================= */

.cart {
  background: #7b61ff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;

  &:hover {
    background: #5b47cc;
  /* box-shadow: 0 4px 12px rgba(66, 122, 242, 0.3); */
  }
}

#cartCount {
  background: white;
  color: var(--secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ================= PRODUCTS GRID ================= */
.products{
  margin-top:22.5vh;
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  padding:20px;
  justify-content:center;
  align-items:flex-start;
}

.products-load{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  padding:20px;
  justify-content:center;
  align-items:flex-start;
}

/* ================= Filters ================= */

.filters {
  background:#7403ed47;
  border-radius: 1.2vh;
  border: .3vh solid #9748edee;
  padding:2vh;
  position: relative;
    top:25vh;
  left: 50%;
  transform: translate(-50%, -50%);

    width: 32vh;
    white-space: nowrap;
}

.filters p {
    text-align: center;
    color: #b070ff;
    margin-top: -2.5vh;
    margin-bottom: 1.3vh;
    font-size:2rem;

}


.filters-apply {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.filters-apply h2 {
  font-size: 1rem;
  color: #ffffff;
}

.filters-apply h2 span { 
  color: #9748edee;
  text-shadow: .2vh .2vh 2vh #000000;
}

#filtersex {
  font-size: 1.1rem;
}
/* ================= PRODUCT CARD ================= */
.product-card{
  background:#3123794b;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border-gray);
  transition:.3s ease;
  width:230px;
}
.product-card:hover{transform:translateY(-4px);}

.product-details{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease;
}
.product-card.open .product-details{
  max-height:200px;
  opacity:1;
}

/* ===== OFF STOCK OVERLAY ===== */
.product-card.disabled {
  position: relative;
  overflow: hidden;
}

/* dark overlay */
.product-card.disabled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2;
}

/* for out of stock */
.product-card.disabled::after {
  content: "SOLD OUT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);

  z-index: 3;
  pointer-events: none;
}

/* disable interaction */
.product-card.disabled * {
  pointer-events: none;
}


.img-wrap{
  width:100%;
  height:250px;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  transition:transform .4s ease;
  position:relative;
}
.product-card:hover .img-wrap{transform:scale(1.05);}
.img-wrap img{
  width:100%;
  height:250px;
  /* height for d s 100 */
  object-fit:cover;
  transition:opacity .2s ease, transform .4s ease;
}

.gallery-nav{
  position:absolute;
  top:0;
  bottom:0;
  width:52px;
  border:none;
  color:#fff;
  /* background:rgba(8, 12, 24, 0.08); */
  opacity:0;
  cursor:pointer;
  transition:opacity .2s ease, background .2s ease;
  z-index:2;
}

.gallery-prev{
  left:0;
  /* background:linear-gradient(90deg, rgba(6,10,18,.55) 0%, rgba(6,10,18,.18) 100%); */
}

.gallery-next{
  right:0;
  /* background:linear-gradient(270deg, rgba(6,10,18,.55) 0%, rgba(6,10,18,.18) 100%); */
}

.gallery-nav i{
  font-size:1.05rem;
  /* text-shadow:0 3px 14px rgba(0,0,0,.45); */
}

.product-card:hover .gallery-nav,
.product-card.open .gallery-nav{
  opacity:1;
}

.gallery-nav:hover{
  /* background-color:rgba(10, 15, 28, 0.45); */
}


/* ================= CARD BODY ================= */
.card-body{padding:18px;}

.product-name{font-size:15px;font-weight:bold;
  text-shadow: 0 0 8px #1b1a1aa8;
  font-family: "Heebo", sans-serif;
  text-transform: uppercase;
}
.product-price{
  color:var(--text-muted);
  margin:4px 0 14px;
  font-family:monospace;
}

/* ================= SIZES ================= */
.sizes-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 6px 0 10px;
  padding-bottom: 18px;
    scrollbar-color: var(--btn);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.sizes {
  overflow-x: auto;
  display: flex;
  gap: 9px;
  white-space: nowrap;
  padding-bottom: 14px;  /* creates space under content */
  margin-bottom: -8px;   /* pulls layout back up */
}

.sizes::-webkit-scrollbar {
  height: 3px;
}

.sizes::-webkit-scrollbar-track {
  background: #e6f0ff;
  border-radius: 10px;
}

.sizes::-webkit-scrollbar-thumb {
  background: var(--btn);
  border-radius: 10px;
}

.sizes::-webkit-scrollbar-thumb:hover {
  background: var(--btn);
}


.size{
  padding:6px 10px;
  border-radius:6px;
  border:1px solid var(--btn);
  background:none;
  cursor:pointer;
  font-size:13px;
  transition:.2s;
  color:#64748b;
}
.size:hover {
  background: var(--btn);
  color: white;
  border-color: var(--btn);
}
.size.active{
  background:var(--btn);
  color:white;
  border-color:var(--btn);
}
.size:disabled{
  opacity:.35;
  cursor:not-allowed;
  text-decoration:line-through;
}

/* ================= BUTTONS ================= */
.btn-primary{
  width:100%;
  padding:11px;
  border-radius:6px;
  border:none;
  background:var(--btn);
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}
.btn-primary:disabled{
  background:#64748b;
  cursor:not-allowed;
}

/* ================= CART MODAL (RIGHT DRAWER 30%) ================= */
.cart-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:flex-end;
  z-index:999;
}

.cart-box{
  background:#020617;
  padding:30px;
  width:30%;
  min-width:320px;
  height:100%;
  overflow-y:auto;
  box-shadow:-10px 0 30px rgba(0,0,0,.5);
  animation:slideIn .35s ease;
}

@keyframes slideIn{
  from{transform:translateX(100%)}
  to{transform:translateX(0)}
}

.cart-box h3{margin-bottom:20px;font-size:20px;}

.cart-table{
  width:100%;
  border-collapse:collapse;
}
.cart-table th,
.cart-table td{
  padding:8px 6px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.cart-table th{
  color:var(--text-muted);
  font-weight:500;
}

.cart-total{
  margin-top:15px;
  font-weight:700;
  font-size:16px;
  text-align:right;
}
/* CART TABLE */
#cartItems {
  width: 50%;
  font-size: 14px;
  color: var(--text);
}

.cart-item-row {
  border-bottom: 1px solid #eee;
  transition: background .2s;
}

.cart-item-row:hover {
  background: var(--bg);
}

/* CART CELLS */
.cart-item-row td {
  padding: 6px 2px;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

/* PRODUCT NAME */
.cart-item-row td:nth-child(2) {
  font-weight: 600;
  text-align: left;
}

/* SIZE */
.cart-item-row td:nth-child(3) {
  font-size: 13px;
  opacity: .8;
}

/* QTY */
.cart-item-row td:nth-child(4) {
  font-weight: 600;
}

/* PRICE */
.cart-item-row td:nth-child(5),
.cart-item-row td:nth-child(6) {
  font-weight: 600;
  color: var(--green);
}

.cart-image-row {
  width: 60px;
}

.cart-image-row img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 6px; /* makes image lower */
  box-shadow: 0 4px 10px rgba(0,0,0,.08);

}


/* CHECKOUT BUTTON */
.checkout {
  margin-top: 14px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: var(--btn);
  color: white;
  cursor: pointer;
  transition: .25s;
}

.checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
}



#cartTotal{
    font-weight: 700;

  text-align:center;
  padding-top:2vh;
}

.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  justify-content: center;
  align-items: center;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8); /* Dark overlay */
  backdrop-filter: blur(8px); /* Blur background */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  transition: var(--transition); /* Smooth transition for visibility */


  &.active { display: flex;  visibility: visible; }

  .modal-content {
    background: var(--card); /* Background color from :root */
    padding: 2rem;
    border-radius: var(--radius); /* Rounded corners from :root */
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow); /* Box shadow from :root */
    border: 1px solid var(--border); /* Border color from :root */
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition); /* Transition for scaling effect */

  .modal.active .modal-content {
    transform: scale(1);
  }

    .modal-title {font-size: 1.75rem;font-weight: 900;margin-bottom: 1.5rem;color: var(--primary); text-align: center;}

    .input { 
      width: 100%;
      padding: 0.875rem;
      background: var(--bg); /* Background from :root */
      border: 2px solid var(--border); /* Border from :root */
      border-radius: 8px;
      color: var(--text); /* Text color from :root */
      font-size: 1rem;
      margin-bottom: 1rem;
      transition: var(--transition); /* Smooth transition */
      font-family: 'Rubik','Heebo','Assistant','Arial',sans-serif;
      &:focus {outline: none;border-color: var(--primary);background: var(--card-hover); }
      &::placeholder { color: var(--text-muted); }
    }

    .btn { 
      width: 100%;
      padding: 1rem;
      background: var(--primary);
      border: none;
      border-radius: 8px;
      color: white;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: var(--transition);
      margin-top: 0.5rem;
      font-family: 'Rubik','Heebo','Assistant','Arial',sans-serif;
      &:hover {background: var(--primary-hover); transform: translateY(-2px);box-shadow: 0 6px 20px rgba(123, 97, 255, 0.4)}
    }
    .error-msg {color: var(--error);margin-top: 1rem;text-align: center;font-weight: 500;}
    .toggle-signup {
      text-align: center;
      cursor: pointer;
    }

    .toggle-signup span {
      font-weight: 700;
      text-decoration: underline;
    }
  }
}

.login-header-btn {
  background: #7b61ff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;

  &:hover {
    background: #5b47cc;
  }
}


/* ===============================
   NOTIFICATIONS
=================================*/

#notifyWrap{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.notify{
  min-width:260px;
  max-width:340px;
  padding:14px 18px;
  border-radius:16px;
  color:white;
  font-weight:600;
  box-shadow:0 15px 35px rgba(0,0,0,.25);

  transform:translateX(120%);
  opacity:0;
  animation: slideIn .35s forwards;
}

/* purple primary */
.notify.primary{
  background:linear-gradient(135deg,#7b61ff,#5b7cff);
}

/* success */
.notify.success{
  background:linear-gradient(135deg,#22c55e,#16a34a);
}

/* error */
.notify.error{
  background:linear-gradient(135deg,#ef4444,#dc2626);
}

/* warning */
.notify.warning{
  background:linear-gradient(135deg,#f59e0b,#d97706);
}
.task {
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
}


.task.orange {
  background: rgba(255,152,0,.15);
  color: var(--warning);
  border: .25vh solid #c47600;
}

.task.blue {
  background: rgba(33,150,243,.15);
  color: #2196f3;
  border: .25vh solid #0384ed;
}

.task.green {
  background: rgba(46,204,113,.15);
  color: var(--success);
  border: .25vh solid #24fa7d;
}

.task.cancel {
  background: rgba(231,76,60,.15);
  color: var(--danger);
  border: .25vh solid #f83620;
}
.task.purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  /* color: ; */
  border: .25vh solid linear-gradient(135deg, #8b5cf6, #6366f1);
}


.global-loading{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.global-loading.hidden{ display:none; }

.loading-card{
  background:#111c34;
  padding:30px 40px;
  border-radius:12px;
  box-shadow:0 15px 40px rgba(0,0,0,.5);
  text-align:center;
  min-width:280px;
}

.loading-card .spinner{
  width:42px;
  height:42px;
  border:4px solid rgba(255,255,255,.2);
  border-top:4px solid #427af2;
  border-radius:50%;
  margin:0 auto 15px;
  animation:spin 1s linear infinite;
}

.loading-card #loadingText{
  font-weight:700;
  margin-bottom:6px;
}

.loading-card .loading-step{
  font-size:.9rem;
  color:#94a3b8;
}

@keyframes spin{ to{ transform:rotate(360deg); } }

/* ========= MY ORDERS MODAL ========= */

.orders-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* Dark overlay */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px); /* More pronounced blur effect for background */
  overflow-y: auto; /* Ensures scrolling when the modal is very large */
}

/* main box */
.orders-box {
  width: 95%;
  max-width: 820px;
  max-height: 85vh;
  border-radius: var(--radius); /* Rounded corners from :root */
  background: var(--card); /* Base card background color from :root */
  border: 1px solid var(--border); /* Soft border from :root */
  box-shadow: var(--shadow); /* Soft shadow from :root */
  color: var(--text); /* Text color from :root */
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px; /* Added padding for some breathing space */
  transition: var(--transition); /* Smooth transition for any hover or state change */
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Ensures the modal is centered */

}

/* header */
.orders-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border); /* Use border variable from :root */
  background-color: var(--card); /* Background from :root */
  color: var(--text); /* Text color from :root */
}

.orders-header h2 {
  font-size: 22px; /* Increased font size for better emphasis */
  font-weight: 600;
  color: var(--primary); /* Highlight header text with primary color */
}

/* Close button */
.orders-close {
  background: transparent;
  border: none;
  color: var(--primary); /* Primary color for the close button */
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.orders-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* scroll area */
.orders-list {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: var(--card); /* Keep the card-like background for the list */
}

/* Add custom scrollbar styles */
.orders-list::-webkit-scrollbar {
  width: 8px;
}

.orders-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}

/* Enhanced visual styling for the order cards */
.order-card {
  border-radius: var(--radius);
  padding: 14px;
  background: var(--card); /* Base card background */
  border: 1px solid var(--border); /* Soft border */
  transition: var(--transition); /* Smooth transition for hover effect */
  box-shadow: var(--shadow); /* Soft shadow */
}

.order-card:hover {
  transform: translateY(-5px); /* Subtle lift effect on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Slightly more intense shadow on hover */
}

/* title */
.order-card h4 {
  margin-bottom: 6px;
  font-size: .85rem;
  color: var(--primary);
}

/* user text */
.order-card p {
  font-size: 1rem;
  opacity: 0.7;
  margin: 4px 0;
  color: var(--text-muted);
}

/* items list */
.order-card ul {
  margin: 8px 0;
  padding-left: 16px;
  font-size: 1rem;
  opacity: 0.9;
  color: var(--text);
}

/* Close button */
.close-orders {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text);
}

/* Applying consistent padding and margins for all elements inside the modal */
.orders-box,
.orders-list,
.order-card {
  padding: 18px;
}

.user-menu{
  position: relative;
  display: inline-block;
}

.user-btn{
  background: transparent;
  border: 1px solid var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: 120%;
  /* right: 0; */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.user-item:last-child {
  border-bottom: none;
}

.user-item:hover {
  background: var(--card-hover);
  padding-left: 1.25rem;
}

.user-item.logout {
  color: var(--error);
}

.user-divider {
  height: 1px;
  background: var(--border);
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Rubik','Heebo','Assistant','Arial',sans-serif;
}

.lang-btn:hover {
  background: var(--primary);
  border-color: #6b51ef;
}

.lang-list {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 140px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}

.lang-list div {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-list div:hover {
  background: var(--card-hover);
  color: var(--primary);
}

.logout{
  color: #ff5a5a;
}


/* Shipping Modal */
.shipping-modal {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center; 
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.shipping-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.shipping-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.shipping-modal.show .shipping-box {
  transform: translateY(0);
  opacity: 1;
}

.shipping-box h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.shipping-box input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #33333340;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Heebo', sans-serif;
  text-align: right;
  outline: none;
  border: none;
  transition: border-color 2s ease, transform 2.5s ease, background 3s ease;
}

.shipping-box input:focus-within {
  background: #0000003f;
  transform: translateY(-1px);
  border: .4vh solid var(--primary);
  color: white;
}

.shipping-box button {
  width: 100%;
  padding: 0.7rem;
  background: #9c88ff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.shipping-box button:hover {
  background: #7b61ff;
}

.shipping-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}


@keyframes slideIn{
  to{
    transform:translateX(0);
    opacity:1;
  }
}

@keyframes slideOut{
  to{
    transform:translateX(120%);
    opacity:0;
  }
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{
  background:#111c34;
  border-radius:8px;
}
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--btn),var(--btn2));
  border-radius:8px;
  border:2px solid #111c34;
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,var(--btn2),var(--btn));
}

*{
  scrollbar-width:thin;
  scrollbar-color:var(--btn) #111c34;
}

/* ================================
   MOBILE MEDIA QUERIES
================================ */
/* ================================ MOBILE VIEW (max-width: 768px) ================================ */
@media (max-width: 768px) {

  /* =============================== HEADER ================================ */
  header {
    display: flex;
    flex-direction:column-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(120deg, #18233a, var(--bg));
  }

  /* Logo at the top */
  header .logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
  }

  /* Header Right: Language, Cart, and Login buttons in a row */
  .header-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
  }

  /* Language Button */
  .lang-wrap {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .lang-btn {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s ease;
  }

  .lang-btn:hover {
    background: var(--primary);
    border-color: #6b51ef;
  }

  /* Cart Button */
  .cart {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .cart span {
    font-weight: bold;
  }

  /* Move Login Button Below the Logo */
  .login-header-btn {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px; /* Move the login button below the logo */
  }

  .login-header-btn:hover {
    background: #5b47cc;
  }

  /* ================================ MINI HEADER ================================ */
  .mini-header {
    background: #17171f;
    padding: 15px;
    width: 100%;
    text-align: center;
    position: relative;
    top: 0;
    margin-top: 20px;
  }

  .mini-header-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .filter-btn {
    font-size: 10px;
  }

  .filter-btn:hover {
    background: #2f2f37;
  }
  /* Expand Button */
  .expand-btn {
    background: var(--primary);
    border-radius: 50%;
    padding: 8px;
    margin-top: 10px;
    font-size: 18px;
    cursor: pointer;
  }

  .expand-btn i {
    font-size: 18px;
  }

  /* ================================ SHOP HOMEPAGE ================================ */
  .shop-homepage {
    height: auto;
    background: url('../images/home.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
  }

  .shop-background {
    height: auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .shop-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .shop-content p {
    font-size: 1.2rem;
    text-align: center;
  }

  /* ================================ SALE ITEMS ================================ */
  .sale-items {
    width: 100%;
    padding: 20px;
  }

  .sale-items h2 {
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #7f1df6, #7b61ff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(75, 49, 69, 0.4), 0 0 30px rgba(154, 153, 153, 0.9);
  }

  .sale-item-modal {
    width: 100%;
    margin-top: 15px;
  }

  .sale-item {
    width: 100%;
    text-align: center;
  }

  .sale-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }


  /* ================================ PRODUCT CARDS ================================ */
  .filters {
      position: relative;
      top:0;
      left: 50%;
  }
  .products {
    position: relative;
    bottom: 20vh
  }
  .product-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .product-card .img-wrap {
    height: 250px;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .product-details {
    max-height: 300px;
    opacity: 1;
  }

  .product-details .sizes-scroll {
    margin-top: 10px;
  }

  .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
  }

  .btn-primary:hover {
    background: #5b47cc;
  }

  /* ================================ CART MODAL ================================ */
  .cart-modal {
    width: 100%;
    height: 100%;
  }

  .cart-box {
    width: 100%;
    height: auto;
    padding: 15px;
  }

  .cart-table th,
  .cart-table td {
    font-size: 12px;
    padding: 10px;
  }

  .checkout {
    font-size: 14px;
    padding: 12px 18px;
  }
}

/* ================================ FOOTER ================================ */
.jojo-footer {
  background: linear-gradient(120deg, #18233a, var(--bg));
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: 60px;
  color: var(--text);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 600;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--primary);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .jojo-footer {
    padding: 30px 15px 15px;
    margin-top: 40px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}






/* animation by ym */

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: 100%;
    animation: marquee 13s forwards infinite;
}
.font-display {
    font-family: 'Archivo Black', sans-serif;
}

.bg-carbon {
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
}
/* ============================================
   Accessibility (a11y) Module Styles
   ============================================ */

/* Floating button */
#a11yBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#a11yBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#a11yBtn:active {
  transform: scale(0.95);
}

#a11yBtn svg {
  width: 24px;
  height: 24px;
}

/* Panel */
#a11yPanel {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9999;
  width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow: hidden;
}

#a11yPanel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.a11y-panel-inner {
  padding: 16px;
}

.a11y-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  text-align: right;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Option buttons */
.a11y-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-option-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.a11y-option-btn.active {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  color: #fff;
  border-color: transparent;
}

.a11y-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.a11y-option-btn.active .a11y-icon {
  color: #fff;
}

.a11y-label {
  flex: 1;
  text-align: right;
  font-weight: 500;
}

/* Reset button */
#a11y-reset-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  background: #f5f5f5;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#a11y-reset-btn:hover {
  background: #e0e0e0;
  color: #333;
}

#a11y-reset-btn svg {
  flex-shrink: 0;
}

/* Accessibility states on html element */
html.a11y-font {
  font-size: 115%;
}

html.a11y-contrast {
  filter: contrast(1.2) saturate(1.1);
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #a11yBtn {
    bottom: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
  }

  #a11yPanel {
    bottom: 70px;
    left: 15px;
    width: 200px;
  }
}

/* RTL support */
[dir="rtl"] #a11yBtn {
  left: auto;
  right: 20px;
}

[dir="rtl"] #a11yPanel {
  left: auto;
  right: 20px;
}

[dir="rtl"] .a11y-label {
  text-align: left;
}

@media (max-width: 480px) {
  [dir="rtl"] #a11yBtn {
    left: auto;
    right: 15px;
  }

  [dir="rtl"] #a11yPanel {
    left: auto;
    right: 15px;
  }
}
