/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Assistant, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: rgb(241, 238, 239);
  padding-top: 80px;
}

/* =========================
   HEADER
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 999;
}

.nexora_home {
  height: 45px;
}

/* =========================
   NAVIGATION
========================= */
.nav_bar {
  display: flex;
  gap: 28px;
}

.nav_bar a {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
}

.nav_bar a:hover {
  color: rgb(22, 145, 194);
}

.nav_bar sup {
  color: skyblue;
  font-size: 10px;
}

/* =========================
   SEARCH BAR
========================= */
.search_bar {
  display: flex;
  height: 40px;
  min-width: 200px;
  align-items: center;
  width: 30%;
}

.search_icon {
  padding: 10px;
  height: 20px;
  padding: 10px;
  font-weight: 300;
  box-sizing: content-box;
  background-color: rgb(9, 14, 27);
  color: #fff;
}

.search_input {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 0 4px 4px 0;
  background-color: rgb(9, 14, 27);
  color: #fff;
}

/* =========================
   ACTION BAR
========================= */
.action_bar {
  display: flex;
  gap: 25px;
}

.action_container {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  align-items: center;
  color: #fff;
}

a.action_container:link{
  color: black;
}

.action_icon {
  font-size: 24px;
}

.action_name {
  cursor: pointer;
}

.cart-item-count {
    background-color: #f16565;
    white-space: nowrap;
    text-align: center;
    line-height: 18px;
    padding: 0 6px;
    height: 18px;
    position: relative;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
    left: 13px;
    top: -44px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================
   BANNER
========================= */
.banner_container {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}


.slide.active {
  opacity: 1;
}



.Footwear-title {
  text-align: center;
  margin: 30px 0 20px;
}

.-title h1 {
  font-size: 25px;
  font-weight: 800;
  color: #000;
  letter-spacing: 1px;
}

.Footwear-title p {
  margin-top: 6px;
  font-size: 15px;
  color: #555;
}

/* underline accent */
.Footwear-title h1::after {
  content: "";
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, #000, rgb(22,145,194));
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
}


/* =========================
   ITEMS / PRODUCTS
========================= */
.items-container {
  width: 90%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.item-container {
  max-width: 260px;
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: auto;
  transition: transform 0.2s ease;
}

.item-container:hover {
  transform: translateY(-3px);
}

/* PRODUCT IMAGE */
.item-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

/* PRODUCT DETAILS */
.rating {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.company-name {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0;
  color: #282c3f;
}

.item-name {
  font-size: 14px;
  color: #535766;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  margin-top: 10px;
  font-size: 14px;
}

.current-price {
  font-weight: 700;
  color: #282c3f;
}

.original-price {
  text-decoration: line-through;
  color: #7e818c;
  font-size: 12px;
  margin-left: 6px;
}

.discount {
  font-size: 12px;
  color: #000;
  margin-left: 6px;
}

/* ADD TO CART BUTTON */
.btn-add-cart {
  margin-top: 10px;
  width: 100%;
  background-color: lightgreen;
  border: none;
  padding: 8px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.btn-add-cart:hover {
  background: rgb(6, 228, 62);
}

/* =========================
   FOOTER
========================= */
.footer-container {
  background: #1f2020;
  padding: 40px 0;
  display: flex;
  justify-content: space-evenly;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

/* COPYRIGHT */
.copyright {
  background: #f1eeef;
  color: #000;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}


/* PROFILE MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 350px;
  border-radius: 8px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-weight: 600;
  border-radius: 5px 5px 0 0;
}

.tab-btn.active {
  background: #000;
  color: #fff;
}

.tab-form {
  display: none;
  flex-direction: column;
}

.tab-form.active {
  display: flex;
}

.tab-form input {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.tab-form button {
  padding: 10px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.tab-form button:hover {
  background-color: rgb(22, 145, 194);
}




/* =========================
   HAMBURGER (RIGHT FIXED)
========================= */
.hamburger {
  display: none;
  position: fixed;
  top: 26px;
  right: 20px;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* X animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================
   MOBILE NAV PANEL
========================= */
.mobile_nav {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: calc(100vh - 80px);
  background: #000;
  padding: 20px;
  z-index: 998;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.mobile_nav.active {
  right: 0;
}

/* =========================
   MOBILE ACTIONS
========================= */
.mobile-actions {
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.mobile-link span {
  font-size: 22px;
}

.mobile-cart-count {
  margin-left: auto;
  background: #f16565;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* =========================
   MOBILE NAV LINKS
========================= */
.mobile-links a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

.mobile-links a:hover {
  color: skyblue;
}

/* =========================
   BLUR OVERLAY
========================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 997;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}





/* =========================
   MOBILE & TABLET MEDIA QUERIES
========================= */

/* Mobile Small (up to 480px) */
@media (max-width: 480px) {
  header {
    padding: 0 2%;
  }

  .nav_bar,
  .action_bar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-links sup {
    color: rgb(13, 141, 214);
  }

  .search_bar {
    width: 60%;
    margin: 0 auto;
  }

  .banner_container {
    height: 220px;
  }

  .items-container {
    width: 100%;
    max-width: 400px; /* fixed container width */
    display: grid;
    grid-template-columns: repeat(2, 200px); /* fixed column width */
    grid-template-rows: repeat(2, 370px);   /* fixed row height */
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
  }

  .item-container {
    width: 200px;
    height: 400px;
  }

  .item-image {
    height: 220px;
  }
}

/* Mobile / Small Tablet (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  header {
    padding: 0 3%;
  }

  .nav_bar,
  .action_bar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .search_bar {
    width: 85%;
    margin: 0 auto;
  }

  .banner_container {
    height: 260px;
  }

  .items-container {
    width: 95%;
    max-width: 500px;
    display: grid;
    grid-template-columns: repeat(2, 200px); /* fixed column width */
    grid-template-rows: repeat(2, 270px);    /* fixed row height */
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
  }

  .item-container {
    width: 200px;
    height: 270px;
  }

  .item-image {
    height: 160px;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  header {
    padding: 0 4%;
  }

  .search_bar {
    width: 60%;
    margin: 0 auto;
  }

  .banner_container {
    height: 320px;
  }

  .items-container {
    width: 90%;
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 240px); /* fixed column width */
    grid-template-rows: repeat(2, 300px);    /* fixed row height */
    justify-content: center;
    gap: 16px;
    margin: 40px auto;
  }

  .item-container {
    width: 240px;
    height: 300px;
  }

  .item-image {
    height: 180px;
  }
}




/* ===============================
   BALLOON CONGRATS EFFECT
================================ */
.balloon {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.9;
  animation: floatUp 1.5s ease-out forwards;
  pointer-events: none;
}

/* Balloon string */
.balloon::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 10px;
  background: rgba(0,0,0,0.3);
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) scale(1.2);
    opacity: 0;
  }
}
