* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #f5f5f5;
  color: #111;
}

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

button,
input {
  font-family: inherit;
}

/* ==============================
   HEADER
============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: white;
  color: black;
  border-bottom: 1px solid transparent;

  /* transition:
      background-color .35s ease,
      box-shadow .35s ease,
      border-color .35s ease,
      transform .35s ease; */
}

/* New Code */
/* Header after leaving hero section */

/* .header.white-header {

  background: rgba(255, 255, 255, .96);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 10px 35px rgba(0, 0, 0, .08);

  border-bottom: 1px solid rgba(0, 0, 0, .08);

} */

/* Logo */

/* .header.white-header .logo {

  color: #111;

} */

/* Navigation */
/* 
.header.white-header .nav-midsection a {

  color: #111;

}

/* Icons */

/* .header.white-header .search-btn,
.header.white-header .icon {

  color: #111;

}

.header.white-header .cart-count {
  background-color: #111;
  color: whitesmoke;

} */ 

/* End */


/* .header.hide {
  transform: translateY(-100%);
}

.header.scrolled {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
} */

.navbar {
  min-height: 3.6rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  color: black;
  transition: 0.3s ease;
}

.logo:hover {
  font-size: 2rem;
  transition: 0.3s ease-in;
}

.nav-midsection {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-midsection a {
  position: relative;
  font-size: 1rem;
  /* font-weight: 700; */
  color: black;
}

.nav-midsection a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: #000;
  transition: 0.3s ease;
}

.nav-midsection a:hover::after,
.nav-midsection a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
  transition: 0.35s ease;
}

.search-container.active .search-input {
  width: 14vw;
  opacity: 1;
  padding: 0.45rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #f7f7f7;
}

.search-btn,
.icon {
  border: none;
  background: none;
  color: black;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.search-btn:hover,
.icon:hover {
  transform: scale(1.08);
  opacity: 0.75;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 0.5rem;
  right: -0.6rem;
  min-width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: normal;
  color: whitesmoke;
  background-color: #4c4545cf;
  border-radius: 1rem;
}

/* ==============================
   MOBILE MENU
============================== */
.mobile-menu {
  display: none;
}

.menu-btn {
  display: none;
}

.mobile-backdrop {
  display: none;
}

/* ==============================
   SEARCH OVERLAY
============================== */

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  z-index: 99998;
}

.search-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay {
  position: fixed;
  top: 0;
  right: -70%;
  width: 40%;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  overflow-y: auto;
  padding: 2rem 3rem;
  box-shadow: -25px 0 60px rgba(0, 0, 0, 0.18);
  transition: right 0.45s cubic-bezier(.22, .61, .36, 1);
}

.search-overlay.active {
  right: 0;
}

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-brand {
  font-size: 1.9rem;
  font-weight: normal;
  /* letter-spacing: 0.15em; */
}

.close-search {
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: #f4f4f4;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.close-search:hover {
  background: #000;
  color: #fff;
  transform: rotate(90deg);
}

.overlay-search-area {
  margin-top: 3rem;
}

.overlay-search-area h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.overlay-search-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #111;
  padding-bottom: 0.2rem;
}

.overlay-search-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
}

.overlay-search-row button {
  border: none;
  background: none;
  font-size: 1.3rem;
  margin-left: 1rem;
  cursor: pointer;
  color: #000;
}

.overlay-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.popular-searches {
  border-right: 1px solid #ddd;
  padding-right: 2rem;
}

.popular-searches h3,
.overlay-results h3 {
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 1.4rem;
}

.overlay-results {
  width: 26rem;
}

/* .suggestion-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  color: #333;
}

.suggestion-text::before {
  content: "↗";
  margin-right: 0.6rem;
}

.suggestion-text:hover {
  color: #000;
  font-weight: 700;
} */
.suggestion-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
}

.suggestion-text::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-right: 0.7rem;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L18 6M9 6H18V15' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.suggestion-text:hover {
  color: #000;
  font-weight: 700;
}

.overlay-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.overlay-products:hover {
  transition: 0.3s ease;
}

.overlay-product-card {
  cursor: pointer;
}

.overlay-product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #eee;
}

.overlay-product-card p {
  margin-top: 0.8rem;
  font-weight: 700;
}

.overlay-product-card small {
  display: block;
  margin-top: 0.3rem;
  color: #666;
}

#seeAllResults {
  width: 100%;
  margin-top: 2rem;
  padding: 1.2rem;
  background: #050505;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: normal;
  letter-spacing: 0.12em;
}

.overlay-features {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.overlay-features div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.overlay-features i {
  font-size: 1.4rem;
}

.overlay-features strong {
  font-size: 0.8rem;
}

.overlay-features span {
  color: #666;
  font-size: 0.85rem;
}
/* End of header */ 

/* HEADER */

/* .account-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 4.5rem;
  padding: 0 4%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.account-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.account-header nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  transition: 0.25s ease;
}

.account-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: #111;
  transition: 0.25s ease;
}

.account-header nav a:hover {
  color: #111;
}

.account-header nav a:hover::after {
  width: 100%;
} */


/* LAYOUT */

.account-layout {
  width: 100%;
  padding: 5rem 4% 2rem;/* change */
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
}

/* SIDEBAR */

.sidebar {
  height: fit-content;
  position: sticky;
  top: 6.5rem;
  background: #fff;
  border-radius: 26px;
  padding: 1.3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.profile-mini {
  text-align: center;
  padding: 1.2rem 0 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #3b3b3b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.profile-mini h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-mini p {
  font-size: 0.78rem;
  color: #777;
  word-break: break-word;
}

.side-btn,
.logout-btn {
  width: 100%;
  min-height: 3.15rem;
  border: none;
  border-radius: 15px;
  padding: 0 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  transition: 0.25s ease;
}

.side-btn i,
.logout-btn i {
  width: 1.2rem;
}

.side-btn:hover,
.side-btn.active {
  background: #111;
  color: #fff;
  transform: translateX(3px);
}

.logout-btn {
  margin-top: 1.3rem;
  background: #fff3f1;
  color: #c0392b;
}

.logout-btn:hover {
  background: #c0392b;
  color: #fff;
}

/* MAIN CONTENT */

.dashboard {
  min-width: 0;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

/* WELCOME */

.welcome-card {
  background: radial-gradient(circle at top right, #333, #0b0b0b 55%);
  color: #fff;
  border-radius: 30px;
  padding: 2.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.small-title {
  font-size: 0.78rem;
  color: #bbb;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.welcome-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.05em;
}

.welcome-card p {
  color: #d7d7d7;
  max-width: 560px;
  line-height: 1.7;
}

.shop-btn {
  white-space: nowrap;
  padding: 0.95rem 1.45rem;
  background: #fff;
  color: #111;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 900;
  transition: 0.25s ease;
}

.shop-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.16);
}

/* STATS */

.stats-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.stat-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

/* .stat-card i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f4f4f4;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
} */

/* .stat-card h3 {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.35rem;
} */

/* .stat-card p {
  color: #777;
  font-size: 0.9rem;
} */

/* PANELS */

.content-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1.2rem;
}

.panel {
  background: #fff;
  border-radius: 26px;
  padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.full-panel {
  min-height: 70vh;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.panel-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.muted-text {
  color: #777;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.link-btn {
  border: none;
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.25s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* PROFILE */

.profile-summary {
  display: grid;
  gap: 0.9rem;
}

.profile-summary p {
  color: #555;
  line-height: 1.7;
  font-size: 0.94rem;
}

.profile-summary strong {
  color: #111;
}

.profile-box {
  padding: 1.1rem;
  border-radius: 18px;
  background: #f8f8f8;
  border: 1px solid #eee;
  margin-bottom: 1rem;
}

/* ORDERS + ADDRESS CARDS */

.order-item,
.list-item {
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: 0.25s ease;
}

.order-item:hover,
.list-item:hover {
  border-color: #111;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.order-item h3,
.list-item strong {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.order-item p,
.list-item p,
.order-item small {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.7;
}

.order-actions,
.address-actions {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
}

.status {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: #f3f3f3;
  color: #333;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status.fulfilled,
.status.delivered {
  background: #eaf8f0;
  color: #148c49;
}

.status.unfulfilled,
.status.processing,
.status.in_transit {
  background: #fff6df;
  color: #a56a00;
  border-radius: 3px;
}

.track-btn,
.edit-address-btn,
.delete-address-btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.track-btn,
.edit-address-btn {
  background: #111;
  color: #fff;
  border-radius: 4px;
  /* width: 4rem; */
}

.delete-address-btn {
  background: #fff3f1;
  color: #c0392b;
}

.track-btn:hover,
.edit-address-btn:hover,
.delete-address-btn:hover {
  transform: translateY(-2px);
}

.track-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-box {
  padding: 2.2rem 1rem;
  text-align: center;
  border-radius: 20px;
  background: #fafafa;
  color: #777;
  border: 1px dashed #ddd;
}

/* FORMS */

.account-form {
  margin-top: 1rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 22px;
  padding: 1.1rem;
}

.hidden {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-input {
  grid-column: 1 / -1;
}

.input-group input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 0.95rem 1rem;
  background: #fff;
  outline: none;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.input-group input:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  margin-top: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-btn {
  background: #111;
  color: #fff;
}

.secondary-btn {
  background: #e9e9e9;
  color: #111;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.form-message {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* RESPONSIVE */

/* @media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
} */

/* ===============================
   ACCOUNT PAGE - TABLET / 960PX
   =============================== */
   @media (max-width: 960px) {
    .account-header {
      padding: 1rem;
      flex-direction: column;
      gap: 0.9rem;
    }
  
    .account-header nav {
      gap: 1.1rem;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .account-layout {
      padding: 1rem;
    }
  
    .welcome-card {
      flex-direction: column;
      align-items: flex-start;
      padding: 1.6rem;
    }
  
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
    }
  
    .full-input {
      grid-column: auto;
    }
  
    .order-item,
    .list-item {
      flex-direction: column;
    }
  
    .order-actions,
    .address-actions {
      align-items: flex-start;
    }
  
    .panel-header {
      flex-direction: column;
    }
  }
  
  /* @media (max-width: 480px) {
    .logo {
      font-size: 1.5rem;
    }
  
    .account-header nav a {
      font-size: 0.82rem;
    }
  
    .panel,
    .sidebar,
    .welcome-card,
    .stat-card {
      border-radius: 18px;
    }
  
    .welcome-card h1 {
      font-size: 2rem;
    }
  
    .side-btn,
    .logout-btn {
      min-height: 3rem;
    }
  } */
  /* ===============================
     TABLET / SMALL LAPTOP DESIGN
     KEEP DESKTOP STYLE TILL 960PX
     =============================== */
  /* =====================================
   FIX ACCOUNT PAGE FOR 834PX / TABLET
   Paste this at the VERY END of CSS file
===================================== */

@media (min-width: 510px) and (max-width: 960px) {

  body {
    overflow-x: hidden;
    background: #f6f6f6;
  }

  /* Make page full and clean */
  .account-layout {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 5.2rem 1.2rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Sidebar becomes top profile card */
  .sidebar {
    position: static;
    width: 100%;
    padding: 1.1rem;
    border-radius: 1.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  }

  .profile-mini {
    width: 100%;
    padding: 0 0 0.8rem;
    margin: 0 0 0.4rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .avatar {
    width: 3.8rem;
    height: 3.8rem;
    margin: 0;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .profile-mini h3 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* .profile-mini p {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  } */
  .profile-mini p{
    display: none;
  }

  /* Sidebar buttons become clean chips */
  .side-btn,
  .logout-btn {
    width: auto;
    flex: 1 1 130px;
    min-height: 2.65rem;
    margin: 0;
    padding: 0 0.85rem;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    gap: 0.5rem;
  }

  .side-btn:hover,
  .side-btn.active {
    transform: translateY(-2px);
  }

  .logout-btn {
    margin-top: 0;
  }

  /* Dashboard uses full width now */
  .dashboard {
    width: 100%;
    min-width: 0;
  }

  /* Welcome card */
  .welcome-card {
    padding: 1.7rem;
    border-radius: 1.4rem;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
  }

  .small-title {
    font-size: 0.65rem;
    margin-bottom: 0.55rem;
  }

  .welcome-card h1 {
    font-size: 2.1rem;
    line-height: 1.05;
    margin-bottom: 0.7rem;
  }

  .welcome-card p {
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: 430px;
  }

  .shop-btn {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* Stats stay in one row */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .stat-card {
    padding: 1rem;
    border-radius: 1.1rem;
    min-height: 8rem;
  }

  .stat-card i {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .stat-card h3 {
    font-size: 1.6rem;
  }

  .stat-card p {
    font-size: 0.72rem;
  }

  /* Content should look wider now */
  .content-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .panel {
    padding: 1.15rem;
    border-radius: 1.15rem;
  }

  .panel-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .panel-header h2 {
    font-size: 1rem;
  }

  .muted-text {
    font-size: 0.7rem;
  }

  .link-btn {
    padding: 0.58rem 0.78rem;
    font-size: 0.65rem;
  }

  .order-item,
  .list-item {
    flex-direction: column;
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .order-actions,
  .address-actions {
    align-items: flex-start;
  }

  .order-item h3,
  .list-item strong {
    font-size: 0.8rem;
  }

  .order-item p,
  .list-item p,
  .order-item small {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .status {
    font-size: 0.58rem;
    padding: 0.35rem 0.55rem;
  }

  .track-btn,
  .edit-address-btn,
  .delete-address-btn {
    padding: 0.48rem 0.68rem;
    font-size: 0.6rem;
  }

  .profile-summary p {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .full-panel {
    min-height: auto;
  }
}
/* ==============================
   FIX EXTRA BOTTOM SPACE
   ============================== */

   @media (min-width: 510px) and (max-width: 960px) {

    html,
    body {
      min-height: auto;
      overflow-x: hidden;
    }
  
    .account-layout {
      padding-bottom: 1.2rem !important;
      min-height: auto !important;
      align-items: start;
    }
  
    .dashboard,
    .account-section,
    .account-section.active,
    .content-grid,
    .panel,
    .full-panel {
      min-height: auto !important;
    }
  
    .content-grid {
      align-items: start;
    }
  
    .panel {
      height: fit-content;
    }
  }
   

/* ===============================
   MOBILE ACCOUNT LAYOUT - 480PX
   =============================== */

   @media (max-width: 480px) {

    body {
      background: #f7f7f7;
    }
  
    .account-header {
      min-height: auto;
      padding: 1rem 1rem 0.8rem;
      flex-direction: column;
      gap: 0.8rem;
      border-bottom: 1px solid #eee;
    }
  
    .logo {
      font-size: 1.7rem;
      letter-spacing: 0.08em;
    }
  
    .account-header nav {
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 1.2rem;
      overflow-x: auto;
      padding-bottom: 0.2rem;
    }
  
    .account-header nav a {
      font-size: 0.78rem;
      white-space: nowrap;
    }
  
    .account-layout {
      padding: 1rem;
      display: block;
      padding-top: 4.5rem;
    }
  
    /* PROFILE TOP CARD */
  
    .sidebar {
      position: static;
      width: 100%;
      padding: 1.2rem;
      border-radius: 1.4rem;
      margin-bottom: 1rem;
      box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    }
  
    .profile-mini {
      border-bottom: none;
      margin-bottom: 1rem;
      padding: 0;
      display: flex;
      align-items: center;
      text-align: left;
      gap: 1rem;
    }
  
    .avatar {
      width: 4.6rem;
      height: 4.6rem;
      margin: 0;
      font-size: 1.8rem;
      flex-shrink: 0;
    }
  
    .profile-mini h3 {
      font-size: 1.15rem;
      margin-bottom: 0.2rem;
    }
  
    .profile-mini p {
      font-size: 0.78rem;
    }
  
    /* SIDEBAR BUTTONS BECOME MOBILE CHIPS */
  
    .side-btn,
    .logout-btn {
      min-height: 2.75rem;
      border-radius: 999px;
      font-size: 0.78rem;
      padding: 0 0.9rem;
      margin-bottom: 0.5rem;
    }
  
    .side-btn {
      display: inline-flex;
      width: auto;
      margin-right: 0.35rem;
    }
  
    .logout-btn {
      width: 100%;
      justify-content: center;
      margin-top: 0.8rem;
    }
  
    /* WELCOME CARD */
  
    .welcome-card {
      padding: 1.4rem;
      border-radius: 1.4rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1.2rem;
      display: none;
    }
  
    .welcome-card h1 {
      font-size: 2rem;
      line-height: 1.05;
    }
  
    .welcome-card p {
      font-size: 0.88rem;
      line-height: 1.6;
    }
  
    .shop-btn {
      width: 100%;
      text-align: center;
      padding: 0.85rem 1rem;
      font-size: 0.8rem;
    }
  
    /* 3 STATS IN ONE ROW LIKE MOBILE APP */
  
    .stats-grid {
      margin-top: 1rem;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.7rem;
    }
  
    .stat-card {
      padding: 1rem 0.75rem;
      border-radius: 1.1rem;
      min-height: 8.2rem;
    }
  
    .stat-card i {
      width: 2.4rem;
      height: 2.4rem;
      font-size: 1rem;
      margin-bottom: 0.8rem;
    }
  
    .stat-card h3 {
      font-size: 1.55rem;
    }
  
    .stat-card p {
      font-size: 0.72rem;
      line-height: 1.3;
    }
  
    /* CONTENT CARDS */
  
    .content-grid {
      margin-top: 1rem;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .panel {
      padding: 1.2rem;
      border-radius: 1.3rem;
    }
  
    .panel-header {
      flex-direction: row;
      align-items: center;
      margin-bottom: 1rem;
    }
  
    .panel-header h2 {
      font-size: 1.15rem;
    }
  
    .muted-text {
      font-size: 0.76rem;
    }
  
    .link-btn {
      padding: 0.65rem 0.9rem;
      font-size: 0.72rem;
    }
  
    /* ORDERS */
  
    .order-item,
    .list-item {
      border-radius: 1.1rem;
      padding: 1rem;
      flex-direction: column;
      gap: 0.9rem;
    }
  
    .order-item h3,
    .list-item strong {
      font-size: 0.95rem;
    }
  
    .order-item p,
    .list-item p,
    .order-item small {
      font-size: 0.78rem;
    }
  
    .order-actions,
    .address-actions {
      width: 100%;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .status {
      font-size: 0.65rem;
      padding: 0.42rem 0.7rem;
    }
  
    .track-btn,
    .edit-address-btn,
    .delete-address-btn {
      padding: 0.55rem 0.8rem;
      font-size: 0.68rem;
    }
  
    /* PROFILE SUMMARY */
  
    .profile-summary {
      gap: 0.75rem;
    }
  
    .profile-summary p {
      font-size: 0.84rem;
    }
  
    .profile-box {
      padding: 1rem;
      border-radius: 1rem;
    }
  
    /* FORMS */
  
    .account-form {
      padding: 1rem;
      border-radius: 1.1rem;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
      gap: 0.85rem;
    }
  
    .full-input {
      grid-column: auto;
    }
  
    .input-group label {
      font-size: 0.7rem;
    }
  
    .input-group input {
      padding: 0.85rem 0.9rem;
      border-radius: 0.9rem;
      font-size: 0.82rem;
    }
  
    .form-actions {
      flex-direction: column;
      gap: 0.6rem;
    }
  
    .primary-btn,
    .secondary-btn {
      width: 100%;
      padding: 0.9rem 1rem;
      font-size: 0.78rem;
    }
  
    .full-panel {
      min-height: auto;
    }
  
    .empty-box {
      padding: 1.6rem 1rem;
      border-radius: 1rem;
      font-size: 0.82rem;
    }
  }
/* Fix profile mini text on 480px mobile */
@media (max-width: 480px) {

  .profile-mini {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    text-align: left;
  }

  .avatar {
    width: 4rem;
    height: 4rem;
    font-size: 1.45rem;
    margin: 0;
  }

  .profile-mini h3,
  .profile-mini p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-mini h3 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .profile-mini p {
    font-size: 0.72rem;
    line-height: 1.2;
    display: none;
  }
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1024px) {
  .navbar {
      padding: 0 1.2rem;
  }

  .nav-midsection {
      gap: 1.4rem;
  }

  .nav-midsection a {
      font-size: 0.9rem;
  }
  .search-overlay {
      width: 55%;
      right: -55%;
  }

  .overlay-products {
      grid-template-columns: repeat(2, 1fr);
  }

  .footer {
      grid-template-columns: repeat(2, 1fr);
      padding: 3rem 2rem 1rem;
  }
}

@media (max-width: 960px) {
  .navbar {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      min-height: 4rem;
      padding: 0 1rem;
  }

  /* ==============================
   MOBILE MENU
============================== */
  .menu-btn {
      display: block;
       color: black;
      font-size: 1.45rem;
      justify-self: start;
  }

  .header.white-header .menu-btn {
      color: #111;
  }

  .logo {
      justify-self: center;
      font-size: 1.45rem;
  }

  .mobile-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      opacity: 0;
      visibility: hidden;
      transition: 0.35s ease;
      z-index: 1999;
  }

  .mobile-backdrop.active {
      opacity: 1;
      visibility: visible;
  }

  .mobile-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 75%;
      max-width: 360px;
      height: 100vh;
      background: #fff;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 1.4rem;
      padding: 2rem;
      transform: translateX(-100%);
      transition: transform 0.45s cubic-bezier(.22, .61, .36, 1);
      box-shadow: 25px 0 70px rgba(0, 0, 0, 0.25);
      overflow-y: auto;
  }

  .mobile-menu.active {
      transform: translateX(0);
  }

  .mobile-menu a {
      color: #111;
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0.04em;
  }

  .close-btn {
      width: 100%;
      padding-bottom: 1rem;
      margin-bottom: 1rem;
      border-bottom: 1px solid #ddd;
  }

  .hamlogo {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: normal;
      /* letter-spacing: 0.1em; */
      font-size: 1.6rem;
  }

  .mobile-close-btn {
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 50%;
      background: #f2f2f2;
      cursor: pointer;
      font-size: 1.2rem;
      transition: 0.3s ease;
  }

  .mobile-close-btn:hover {
      background: #111;
      color: #fff;
      transform: rotate(90deg);
  }

  .mobile-socials {
      margin-top: auto;
      padding-top: 1.5rem;
      border-top: 1px solid #eee;
      display: flex;
      gap: 1rem;
  }

  .mobile-socials a {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid #ddd;
      display: grid;
      place-items: center;
      font-size: 1.1rem;
  }

  .mobile-socials a:hover {
      background: #111;
      color: #fff;
  }
  .mobile-menu {
      padding: 1.5rem;
  }

  .mobile-menu a {
      font-size: 1rem;
      font-weight: normal;
  }

  .nav-midsection {
      display: none;
  }

  .nav-right {
      justify-self: end;
      gap: 1rem;
  }

  .search-input {
      display: none;
  }

  .search-btn,
  .icon {
      font-size: 1.25rem;
  }

  .cart-count {
      top: 0.5rem;
      right: -0.6rem;
      font-size: 0.65rem;
  }
  .search-overlay {
      width: 75%;
      right: -100%;
      padding: 1.5rem;
  }

  .search-overlay.active {
      right: 0;
  }

  .overlay-content {
      display: block;
  }

  .overlay-results {
      width: 100%;
  }

  .overlay-products {
      grid-template-columns: repeat(2, 1fr);
  }

  .overlay-features {
      grid-template-columns: repeat(2, 1fr);
  }
  
}
@media (max-width: 480px) {
  .navbar {
      min-height: 3.8rem;
      padding: 0 0.85rem;
  }

  .logo {
      font-size: 1.25rem;
  }

  .menu-btn {
      font-size: 1.3rem;
  }

  .nav-right {
      gap: 0.75rem;
  }

  .nav-right svg {
      width: 20px;
      height: 22px;
  }

  .search-btn,
  .icon {
      font-size: 1.1rem;
  }

  .cart-count {
      top: 0.45rem;
      right: -0.6rem;
      font-size: 0.6rem;
  }

  /* ==============================
   MOBILE MENU
============================== */
  .menu-btn {
      display: block;
       color: black;
      font-size: 1.45rem;
      justify-self: start;
  }

  .header.white-header .menu-btn {
      color: #111;
  }

  .logo {
      justify-self: center;
      font-size: 1.45rem;
  }

  .mobile-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      opacity: 0;
      visibility: hidden;
      transition: 0.35s ease;
      z-index: 1999;
  }

  .mobile-backdrop.active {
      opacity: 1;
      visibility: visible;
  }

  .mobile-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 75%;
      max-width: 360px;
      height: 100vh;
      background: #fff;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 1.4rem;
      padding: 2rem;
      transform: translateX(-100%);
      transition: transform 0.45s cubic-bezier(.22, .61, .36, 1);
      box-shadow: 25px 0 70px rgba(0, 0, 0, 0.25);
      overflow-y: auto;
  }

  .mobile-menu.active {
      transform: translateX(0);
  }

  .mobile-menu a {
      color: #111;
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0.04em;
  }

  .close-btn {
      width: 100%;
      padding-bottom: 1rem;
      margin-bottom: 1rem;
      border-bottom: 1px solid #ddd;
  }

  .hamlogo {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: normal;
      /* letter-spacing: 0.1em; */
      font-size: 1.6rem;
  }

  .mobile-close-btn {
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 50%;
      background: #f2f2f2;
      cursor: pointer;
      font-size: 1.2rem;
      transition: 0.3s ease;
  }

  .mobile-close-btn:hover {
      background: #111;
      color: #fff;
      transform: rotate(90deg);
  }

  .mobile-socials {
      margin-top: auto;
      padding-top: 1.5rem;
      border-top: 1px solid #eee;
      display: flex;
      gap: 1rem;
  }

  .mobile-socials a {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid #ddd;
      display: grid;
      place-items: center;
      font-size: 1.1rem;
  }

  .mobile-socials a:hover {
      background: #111;
      color: #fff;
  }
  .mobile-menu {
      padding: 1.5rem;
  }

  .mobile-menu a {
      font-size: 1rem;
      font-weight: normal;
  }

  .search-overlay {
      padding: 1.3rem;
      width: 75%;
  }

  .overlay-brand {
      font-size: 1.6rem;
      font-weight: normal;
  }

  .overlay-search-area h1 {
      font-size: 1.6rem;
  }

  .overlay-search-row input {
      font-size: 1rem;
  }

  .overlay-products {
      grid-template-columns: 1fr;
  }

  .overlay-product-card img {
      height: 260px;
  }

  .overlay-features {
      /* grid-template-columns: 1fr; */
      display: flex;
  }

  .overlay-features span {
      font-size: 0.5rem;
  }

  .overlay-features strong {
      font-size: 0.5rem;
  }

  .wishlist-icon {
      display: none;
  }
}

/* ==========================================
   FUZZY SEARCH RESULTS
========================================== */

.overlay-results {
  width: 100%;
  min-width: 0;
}

.overlay-content {
  display: block;
  width: 100%;
}

#overlaySuggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.suggestion-text {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

/* .suggestion-text::before {
  content: "↗";
  margin-right: 0.7rem;
  font-size: 0.9rem;
} */

.suggestion-text:hover {
  padding-left: 0.4rem;
  color: #000;
  font-weight: 600;
}

/* Product results */

.overlay-products {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.overlay-product-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.overlay-product-card:hover,
.overlay-product-card:focus-visible {
  transform: translateY(-4px);
  border-color: #d3d3d3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  outline: none;
}

.overlay-product-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f1f1f1;
}

.overlay-product-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.45s ease;
}

.overlay-product-card:hover img {
  transform: scale(1.04);
}

.overlay-view-label {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.86);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.overlay-product-card:hover .overlay-view-label {
  opacity: 1;
  transform: translateY(0);
}

.overlay-product-details {
  padding: 0.9rem;
}

.overlay-product-details p {
  margin: 0;
  overflow: hidden;
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overlay-product-details small {
  display: block;
  margin-top: 0.4rem;
  color: #555;
  font-size: 0.82rem;
}

/* Loading */

.search-loading-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #666;
  text-align: center;
}

.search-loader {
  width: 34px;
  height: 34px;
  border: 3px solid #e4e4e4;
  border-top-color: #111;
  border-radius: 50%;
  animation: searchLoaderSpin 0.75s linear infinite;
}

@keyframes searchLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* No-results page */

.no-search-results,
.search-message-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 2.5rem 1rem;
  text-align: center;
  background: #fafafa;
  border: 1px solid #ececec;
}

.no-results-icon,
.search-state-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  color: #111;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 50%;
  font-size: 1.25rem;
}

.no-results-label {
  margin-bottom: 0.8rem;
  color: #777;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.no-search-results h2 {
  max-width: 420px;
  margin: 0 auto;
  color: #111;
  font-size: 1.25rem;
  line-height: 1.45;
}

.no-search-results h2 span {
  display: inline;
  word-break: break-word;
}

.no-results-description,
.search-message-state > p {
  max-width: 390px;
  margin: 1rem auto 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
}

.no-results-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.search-state-button {
  min-height: 44px;
  padding: 0.8rem 1rem;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.25s ease;
}

.search-state-button:hover {
  background: #333;
}

.search-state-button.secondary {
  color: #111;
  background: transparent;
}

.search-state-button.secondary:hover {
  color: #fff;
  background: #111;
}

.no-results-popular {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.no-results-popular > p {
  color: #777;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.popular-search-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.popular-search-buttons button {
  padding: 0.65rem 0.9rem;
  color: #333;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.popular-search-buttons button:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

.search-error-state h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.search-error-state .search-state-button {
  margin-top: 1.4rem;
}

/* ==========================================
   RESPONSIVE SEARCH OVERLAY
========================================== */

@media (max-width: 1200px) {
  .search-overlay {
    width: 55%;
    right: -60%;
  }
}

@media (max-width: 960px) {
  .search-overlay {
    width: 70%;
    right: -75%;
    padding: 1.7rem 2rem;
  }

  .overlay-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .search-overlay {
    width: 78%;
    right: -105%;
    padding: 1.3rem;
  }

  .overlay-search-area {
    margin-top: 2rem;
  }

  .overlay-search-area h1 {
    font-size: 1.65rem;
  }

  .overlay-search-row input {
    min-width: 0;
    font-size: 1rem;
  }

  .overlay-products {
    gap: 0.7rem;
  }

  .overlay-product-details {
    padding: 0.75rem;
  }

  .overlay-product-details p {
    font-size: 0.78rem;
  }

  .no-search-results,
  .search-message-state {
    padding: 2rem 0.8rem;
  }

  .no-results-actions {
    flex-direction: column;
  }

  .search-state-button {
    width: 100%;
  }

  .overlay-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

/* =========================================

   FIX VIEW ALL RESULTS AT BOTTOM

========================================= */

.search-overlay {

  height: 100dvh;

  overflow: hidden;

  display: flex;

  flex-direction: column;

}

.overlay-top,

.overlay-search-area,

.overlay-features {

  flex-shrink: 0;

}

.overlay-content {

  flex: 1;

  min-height: 0;

  width: 100%;

  margin-top: 2rem;

  overflow: hidden;

}

.overlay-results {

  width: 100%;

  height: 100%;

  min-height: 0;

  display: flex;

  flex-direction: column;

  overflow-y: auto;

  overflow-x: hidden;

}

/* Let the product area take normal height */

.overlay-products {

  flex: none;

  overflow: visible;

  padding-bottom: 1rem;

}

/* Fixed/sticky at bottom while results scroll */

#seeAllResults {

  position: sticky;

  bottom: 0;

  z-index: 100;

  flex-shrink: 0;

  width: 100%;

  margin: 1rem 0 0;

  padding: 1rem;

  background: #111;

  color: #fff;

  border: none;

  box-shadow: 0 0px 5px rgba(255, 255, 255, 0.95);

  cursor: pointer;

  font-size: 0.75rem;

  letter-spacing: 0.12em;

}

/* Scrollbar */

.overlay-results::-webkit-scrollbar {

  width: 5px;

}

.overlay-results::-webkit-scrollbar-track {

  background: #eee;

}

.overlay-results::-webkit-scrollbar-thumb {

  background: #999;

  border-radius: 20px;
}
/* ==============================
   STAT CARD - ICON + LABEL TOP
   ============================== */

   .stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.4rem 1.5rem;
  
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
  
    column-gap: 0.7rem;
  
    min-height: 160px;
  
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
  }
  
  .stat-card i {
    grid-column: 1;
    grid-row: 1;
  
    width: 42px;
    height: 42px;
  
    border-radius: 50%;
    background: #f4f4f4;
  
    display: grid;
    place-items: center;
  
    font-size: 1.05rem;
    margin: 0;
  }
  
  .stat-card p {
    grid-column: 2;
    grid-row: 1;
  
    align-self: center;
  
    margin: 0;
  
    font-size: 0.95rem;
    font-weight: 700;
    color: #444;
  }
  
  .stat-card h3 {
    grid-column: 1 / -1;
    grid-row: 2;
  
    align-self: center;
    justify-self: center;
  
    margin: 0;
  
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: #111;
  }
  /* =========================================================
   PREMIUM LOGOUT MODAL
   ========================================================= */

.logout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.5rem;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.logout-modal.active {
  opacity: 1;
  visibility: visible;
}


/* BACKDROP */

.logout-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.62);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* MODAL BOX */

.logout-modal-box {
  position: relative;
  z-index: 1;

  width: min(420px, 100%);

  background: #fff;

  border-radius: 24px;

  padding: 2.2rem;

  text-align: center;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28);

  transform: translateY(20px) scale(0.97);

  transition:
    transform 0.35s cubic-bezier(.22, .61, .36, 1);
}

.logout-modal.active .logout-modal-box {
  transform: translateY(0) scale(1);
}


/* CLOSE BUTTON */

.logout-modal-close {
  position: absolute;

  top: 1rem;
  right: 1rem;

  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background: #f3f3f3;

  color: #111;

  display: grid;
  place-items: center;

  cursor: pointer;

  font-size: 0.9rem;

  transition: 0.25s ease;
}

.logout-modal-close:hover {
  background: #111;
  color: #fff;

  transform: rotate(90deg);
}


/* ICON */

.logout-modal-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 1.2rem;

  border-radius: 50%;

  background: #111;

  color: #fff;

  display: grid;
  place-items: center;

  font-size: 1.35rem;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.16);
}


/* TITLE */

.logout-modal-box h2 {
  margin: 0 0 0.55rem;

  font-size: 1.55rem;

  font-weight: 800;

  color: #111;

  letter-spacing: -0.03em;
}


/* DESCRIPTION */

.logout-modal-box p {
  margin: 0 auto;

  max-width: 320px;

  color: #777;

  font-size: 0.88rem;

  line-height: 1.65;
}


/* ACTIONS */

.logout-modal-actions {
  display: flex;

  gap: 0.75rem;

  margin-top: 1.7rem;
}


/* CANCEL */

.logout-cancel-btn,
.logout-confirm-btn {
  flex: 1;

  min-height: 48px;

  border: none;

  border-radius: 12px;

  padding: 0.85rem 1rem;

  font-family: inherit;

  font-size: 0.82rem;

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.logout-cancel-btn {
  background: #f2f2f2;

  color: #111;
}

.logout-cancel-btn:hover {
  background: #e7e7e7;

  transform: translateY(-2px);
}


/* LOGOUT */

.logout-confirm-btn {
  background: #111;

  color: #fff;
}

.logout-confirm-btn:hover {
  background: #222;

  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18);
}


/* MOBILE */

@media (max-width: 480px) {

  .logout-modal {
    padding: 1rem;
  }

  .logout-modal-box {
    border-radius: 20px;

    padding: 2rem 1.25rem;
  }

  .logout-modal-icon {
    width: 56px;
    height: 56px;

    font-size: 1.15rem;
  }

  .logout-modal-box h2 {
    font-size: 1.35rem;
  }

  .logout-modal-box p {
    font-size: 0.82rem;
  }

  .logout-modal-actions {
    flex-direction: column-reverse;
  }

  .logout-cancel-btn,
  .logout-confirm-btn {
    width: 100%;
  }
}

/* ==========================================
   FOOTER SHOP + HELP — 480px
========================================== */
@media (max-width: 480px) {

  /* Keep SHOP and HELP side by side */
  .footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "shop help"
      "newsletter newsletter";
    column-gap: 2rem;
  }

  /* SHOP */
  .footer-shop {
    /* padding-right: 0 !important; */
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* HELP */
  .footer-help {
    padding-left: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* Headings */
  .footer-shop h4,
  .footer-help h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
    padding-left: 2rem;
  }

  /* Links */
  .footer-shop a,
  .footer-help a {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 1rem !important;
    color: #d1d1d1;
  }

  .footer-shop a:last-child,
  .footer-help a:last-child {
    margin-bottom: 0 !important;
  }
  .footer > div:nth-child(2) a{
    margin-left: 2px;
    padding-left: 2rem;
  }
  .footer > div:nth-child(3) a{
    margin-left: 0px;
    padding-left: 2rem;
  }
  .footer > div:nth-child(3){
    margin-left: 1rem;
  }
  .footer-help{
    gap: 0rem;
  }
}

.close-search{
  color: #000;
}
/* ==========================================
   PREMIUM SIZE GUIDE — SMALL PHONES
   ========================================== */

   @media (max-width: 480px) {

    .size-popup {
      padding: 12px;
      align-items: center;
      justify-content: center;
  
      background: rgba(0, 0, 0, 0.68);
  
      /* better mobile overlay performance */
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }
  
    .size-box {
      width: min(100%, 360px);
      max-width: 360px;
  
      /* REMOVE fixed mobile height */
      height: auto;
      max-height: calc(100dvh - 24px);
  
      padding: 18px 16px 16px;
  
      background: #ffffff;
      border-radius: 22px;
  
      box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28);
  
      overflow-y: auto;
      overflow-x: hidden;
  
      -webkit-overflow-scrolling: touch;
  
      scrollbar-width: thin;
  
      transform: translateY(18px) scale(0.97);
    }
  
    .size-popup.active .size-box {
      transform: translateY(0) scale(1);
    }
  
    /* HEADER */
  
    .size-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
  
      margin-bottom: 10px;
    }
  
    .size-header h2 {
      font-size: 1.25rem;
      line-height: 1.15;
      letter-spacing: 0.06em;
      font-weight: 800;
    }
  
    /* CLOSE BUTTON */
  
    .close-size {
      width: 38px;
      height: 38px;
  
      flex: 0 0 38px;
  
      border: none;
      border-radius: 50%;
  
      background: #f3f3f3;
      color: #111;
  
      font-size: 1.45rem;
      line-height: 1;
  
      display: grid;
      place-items: center;
  
      -webkit-tap-highlight-color: transparent;
    }
  
    .close-size:active {
      transform: scale(0.94);
    }
  
    /* SUBTITLE */
  
    .size-subtitle {
      margin: 0 0 14px;
  
      color: #5c5c5c;
  
      font-size: 0.78rem;
      line-height: 1.45;
    }
  
    /* TABLE */
  
    .size-table {
      width: 100%;
      margin: 0 0 14px;
  
      border-collapse: separate;
      border-spacing: 0;
  
      border: 1px solid #eeeeee;
      border-radius: 12px;
  
      overflow: hidden;
    }
  
    .size-table th {
      padding: 10px 9px;
  
      background: #0b0b0b;
      color: #ffffff;
  
      font-size: 0.68rem;
      font-weight: 700;
  
      letter-spacing: 0.05em;
      text-transform: uppercase;
  
      white-space: nowrap;
    }
  
    .size-table td {
      padding: 9px 9px;
  
      font-size: 0.74rem;
      line-height: 1.2;
  
      color: #161616;
  
      border-bottom: 1px solid #eeeeee;
  
      white-space: nowrap;
    }
  
    .size-table tr:last-child td {
      border-bottom: none;
    }
  
    .size-table tr:nth-child(even) td {
      background: #f7f7f7;
    }
  
    /* FOOTER / SUPPORT */
  
    .size-footer {
      padding: 11px 12px;
  
      background: #f5f5f5;
  
      border: 1px solid #ededed;
      border-radius: 12px;
    }
  
    .size-footer p {
      margin: 0;
  
      color: #4b4b4b;
  
      font-size: 0.72rem;
      line-height: 1.55;
    }
  
    .size-footer strong {
      color: #111;
      font-weight: 800;
    }
  
    .size-footer a {
      color: #111;
      text-decoration: none;
    }
  
  }
  
  .mobile-close-btn{
    color: #000;
  }
  .clearSearch{
    color: #000;
  }
  .newsletter button{
    color: #000;
  }
  .edit-address-btn{
    width: 4rem;
    border-radius: 999px;
  }
  