:root {
  --bg: #f6f4f1;
  --surface: #F5F5F7;
  --ink: #0c0c0c;
  --muted: #5e5e5e;
  --accent: #f16b4e;
  --accent-dark: #d3563c;
  --line: #e5e1db;
  --shadow: 0 20px 50px rgba(12, 12, 12, 0.15);
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20px;
  /* background: url("https://i.pinimg.com/1200x/05/b9/01/05b901bec8542d7a2f10796c410b97ec.jpg") center/cover no-repeat; */
  filter: blur(8px);
  transform: scale(1.04);
  z-index: -2;
}

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

.ambient {
  position: fixed;
  inset: -30% 0 auto;
  height: 60vh;
  background: radial-gradient(circle at 15% 20%, rgba(241, 107, 78, 0.35), transparent 45%),
              radial-gradient(circle at 85% 25%, rgba(40, 120, 235, 0.25), transparent 50%),
              linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(246, 244, 241, 0));
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 6vw;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
  color: #1d1d1f;
  letter-spacing: 0.1px;
  justify-self: center;
  align-items: center;
  z-index: 100;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-item {
  position: relative;
  z-index: 100;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link::after {
  content: "?";
  font-size: 0.7rem;
}

.nav-link-with-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-with-toggle .nav-link::after {
  display: none;
}

.nav-dropdown-toggle {
  border: none;
  background: transparent;
  color: inherit;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
}

.nav-dropdown-toggle svg {
  width: 18px;
  height: 18px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  z-index: 3;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown a {
  display: block;
  padding: 8px 16px;
  color: #1d1d1f;
  font-size: 0.85rem;
}

.dropdown a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.dropdown.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.nav-actions {
  display: flex;
  gap: 14px;
  margin-left: 8px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 999px;
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 4px 6px;
  font-size: 0.85rem;
  color: #1d1d1f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-cart-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.icon-btn:hover {
  color: var(--accent-dark);
}


.icon {
  width: 20px;
  height: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.promo-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 0.85rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.filter-subcategory-bar {
  flex-wrap: wrap;
  row-gap: 8px;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: #6e6e73;
  cursor: pointer;
}

.promo-close:hover {
  color: #1d1d1f;
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #f5f5f7;
  padding: 26px 6vw 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
  z-index: 11;
}

.search-panel-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-preview {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  padding: 14px;
  display: grid;
  gap: 14px;
}

.search-preview-section {
  display: grid;
  gap: 8px;
}

.search-preview-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1d1d1f;
}

.search-preview-list {
  display: grid;
  gap: 8px;
}

.search-preview-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-preview-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f3f5;
}

.search-preview-item:hover {
  background: #f2f2f4;
}

.search-preview-text {
  display: grid;
  gap: 2px;
}

.search-preview-text span {
  font-weight: 600;
}

.search-preview-text small {
  color: #7a7a7a;
}

.search-preview-item.donation {
  grid-template-columns: 1fr;
}

.search-page-field {
  margin: 16px auto 0;
  max-width: 1084px;
}

.search-page-field input {
  width: 100%;
}

.search-filters {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-filter {
  text-decoration: none;
  color: #1d1d1f;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f2f2f4;
  font-weight: 600;
  font-size: 0.9rem;
}

.search-filter.active {
  background: #1d1d1f;
  color: #ffffff;
}

.search-sort {
  bottom: 24px;
}

.cart-page {
  padding: 32px 6vw 70px;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 24px;
  align-items: start;
}

.cart-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.cart-header {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr 0.7fr 0.3fr;
  font-weight: 600;
  color: #6f6f6f;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececef;
}

.cart-item {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr 0.7fr 0.3fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ececef;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-product {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-product img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  background: #f2f2f4;
}

.cart-product h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-product p {
  margin: 0;
  color: #7a7a7a;
  font-size: 0.9rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  padding: 4px 6px;
  gap: 6px;
  justify-content: space-between;
  width: 150px;
}

.cart-qty button {
  border: none;
  background: transparent;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-total {
  font-weight: 600;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #1d1d1f;
  cursor: pointer;
}

.cart-remove svg {
  width: 18px;
  height: 18px;
}

.cart-summary h3 {
  margin: 0 0 16px;
}

.cart-voucher {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-voucher input {
  flex: 1;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  padding: 10px 14px;
}

.cart-summary-list {
  display: grid;
  gap: 10px;
}

.cart-summary-list div {
  display: flex;
  justify-content: space-between;
  color: #6f6f6f;
}

.cart-summary-list strong {
  color: #1d1d1f;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 16px 0;
}

.cart-summary-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6f6f6f;
  margin-bottom: 16px;
}

.cart-summary-note a {
  color: inherit;
  text-decoration: underline;
}

.cart-checkout {
  width: 100%;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 18px;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.checkout-dialog {
  position: relative;
  width: min(1100px, 100%);
  margin: 4vh auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 8vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.checkout-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: #111;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  flex: 1;
  min-height: 0;
}

#checkoutPaymentForm {
  display: contents;
}

.checkout-summary {
  border: 1px solid #1c1c1c;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  align-self: start;
}

.checkout-summary h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.95rem;
  color: #333;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.05rem;
}

.checkout-donation-box {
  margin-top: 14px;
  border-top: 1px solid #ececec;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.checkout-donation-box h4 {
  margin: 0;
  font-size: 0.98rem;
}

.checkout-donation-box label {
  font-size: 0.82rem;
  color: #575757;
}

.checkout-donation-box select,
.checkout-donation-box input {
  width: 100%;
  border: 1px solid #d2d2d2;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  background: #fff;
}

.checkout-donation-box small {
  color: #6a6a6a;
  font-size: 0.78rem;
}

.checkout-main {
  overflow-y: auto;
  padding-right: 6px;
  min-height: 0;
}

.checkout-main h2 {
  margin: 0;
  font-size: 1.35rem;
}

.checkout-subtitle {
  margin: 6px 0 16px;
  color: #6a6a6a;
  font-size: 0.92rem;
}

.checkout-methods {
  display: grid;
  gap: 10px;
}

.checkout-method {
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkout-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-method.is-active {
  border-color: #111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.checkout-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f4f4f6;
  color: #111;
}

.checkout-method-icon svg {
  width: 20px;
  height: 20px;
}

.checkout-method-icon img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.checkout-method-copy strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.checkout-method-copy small {
  color: #6c6c6c;
  font-size: 0.82rem;
}

.checkout-badge {
  background: #19c5c5;
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.checkout-divider {
  height: 1px;
  background: #ececec;
  margin: 16px 0;
}

.checkout-card-fields {
  display: grid;
  gap: 8px;
}

.checkout-card-fields[hidden] {
  display: none;
}

.checkout-card-fields label {
  font-size: 0.85rem;
  color: #333;
}

.checkout-card-fields input {
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 10px 12px;
}

.checkout-card-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
}

.checkout-terms {
  margin: 14px 0;
  color: #6a6a6a;
  font-size: 0.83rem;
}

.checkout-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #2b2bcf;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    order: 2;
  }
}

@media (max-width: 640px) {
  .cart-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product remove"
      "qty total";
    gap: 12px 10px;
  }

  .cart-product {
    grid-area: product;
  }

  .cart-qty {
    grid-area: qty;
  }

  .cart-total {
    grid-area: total;
    justify-self: end;
  }

  .cart-remove {
    grid-area: remove;
    display: flex;
    justify-content: end;
    width: 100%;
    height: 100%;
  }

  .cart-qty {
    justify-content: space-between;
    align-items: start;
  }

  .checkout-dialog {
    padding: 18px;
    border-radius: 16px;
    max-height: calc(100vh - 16px);
  }

  .checkout-card-row {
    grid-template-columns: 1fr;
  }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-field input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-body);
  background: transparent;
  width: 100%;
}

.search-links {
  display: grid;
  gap: 10px;
}

.search-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6e6e73;
}

.search-link {
  color: #1d1d1f;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-link::before {
  content: "?";
  color: #8a8a8d;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9;
}

.promo-link {
  color: #0066cc;
  font-weight: 500;
}

main {
  padding: 0 0vw 0px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  padding: 6vh 6vw;
  margin-bottom: 15px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-primary {
  height: 100vh;
  grid-template-columns: 1fr;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.9) 0%, rgba(245, 245, 245, 0.7) 45%, rgba(255, 160, 80, 0.05) 70%),
              url("https://i.pinimg.com/736x/8c/25/b3/8c25b3bb58a2deffeeddc1fd423178d5.jpg") right center / cover no-repeat;
  align-items: center;
  margin-top: 0px;

}

.hero-primary .hero-content {
  max-width: 520px;
}

.hero-primary h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}


.hero-secondary {
  background: linear-gradient(120deg, #ffffff, #f6efe9);
}

.hero-tertiary {
  background: linear-gradient(140deg, #111111, #3a3a3a);
  color: #f8f8f8;
}

.hero-tertiary .subhead,
.hero-tertiary .eyebrow {
  color: rgba(248, 248, 248, 0.75);
}

.hero-content h1,
.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  margin: 0 0 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.subhead {
  color: var(--muted);
  max-width: 460px;
}

.cta-group {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cta.dark {
  background: rgb(58, 58, 61);
  border: none;
  cursor: pointer;
}

.cta::after {
  content: none;
}

.cta.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  cursor: pointer;
  background-color: white;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 20%, rgba(241, 107, 78, 0.35), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(12, 12, 12, 0.1), transparent 55%),
              linear-gradient(160deg, #f8f8f8, #efebe5);
}

.hero-visual.stripe {
  background: repeating-linear-gradient(120deg, rgba(241, 107, 78, 0.2), rgba(241, 107, 78, 0.2) 16px, transparent 16px, transparent 36px),
              linear-gradient(120deg, #ffffff, #f7efe7);
}

.hero-visual.gridlight {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)),
              repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
              repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.orb-1 {
  width: 140px;
  height: 140px;
  background: rgba(241, 107, 78, 0.75);
  top: 25px;
  left: 40px;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(20, 95, 255, 0.35);
  bottom: -40px;
  right: 20px;
}

.orb-3 {
  width: 90px;
  height: 90px;
  background: rgba(12, 12, 12, 0.1);
  top: 40%;
  right: 35%;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 10px;
  padding-bottom: 24px;
}

.products-section {
  margin: 10px 0px;
  background: var(--bg);
  padding: 20px;
  border-radius: 0;
  width: 100%;
}

.store-page {
  padding: 16px 0 60px;
}

.store-banner {
  margin: -15px 0 24px;
  border-radius: 0;
  overflow: hidden;
  height: 100vh;
}

.store-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.store-category {
  margin: 18px 0 32px;
}

.store-category-header {
  max-width: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.store-category-header .cta-group {
  justify-content: flex-end;
}

.store-category-text h2 {
  margin: 0 0 6px;
  text-align: left;
}

.store-category-text p {
  margin: 0;
  text-align: left;
}

.store-category-text,
.store-category-text h2,
.store-category-text p {
  color: #000000;
}

.category-back {
  padding: 12px 0 0;
}

.store-category-title-row {
  display: flex;
  align-items: center;
  /* gap: 6px; */
}

.store-category-title-row h2 {
  margin: 0;
}

.category-back-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.category-back-link svg {
  width: 22px;
  height: 22px;
}

.store-sort {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
}

.store-sort-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.store-sort-toggle svg {
  width: 26px;
  height: 26px;
}

.store-sort-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  min-width: 220px;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  gap: 6px;
}

.store-sort.open .store-sort-panel {
  display: flex;
}

.store-sort-option {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.store-sort-option:hover,
.store-sort-option.active {
  background: #f4f4f6;
}

.product-detail {
  padding: 32px 6vw 70px;
}

.product-back {
  margin-bottom: 22px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.product-gallery {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
}

.product-gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  border-radius: 20px;
  background: #f4f4f6;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.product-gallery-thumbs .thumb {
  border: none;
  background: #f4f4f6;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.product-summary {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a5a4c;
  background: #f1ece5;
  border-radius: 999px;
  padding: 6px 12px;
}

.product-summary h1 {
  margin: 14px 0 6px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.product-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
}

.product-summary .product-rating {
  margin-bottom: 12px;
}

.rating-count {
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0 18px;
}

.product-option {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.color-swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #2c3e50;
  cursor: pointer;
}

.swatch-light {
  background: #f6f6f6;
}

.swatch-olive {
  background: #5a6b4e;
}

.swatch.is-active {
  border-color: #1d1d1f;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.size-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.size-btn.is-active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  cursor: pointer;
}

.product-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
}

.product-action-btn .action-icon {
  width: 18px;
  height: 18px;
}

.cta.ghost {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.product-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
  font-size: 0.9rem;
}

.attr-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attr-value {
  font-weight: 600;
}

.product-detail-tabs {
  margin-top: 30px;
}

.product-related {
  margin-top: 40px;
}

.product-reviews {
  margin-top: 40px;
}

.review-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  max-width: 720px;
  margin: 0 auto;
}

.review-form form {
  display: grid;
  gap: 14px;
}

.review-form .cta {
  align-self: flex-start;
  padding: 12px 22px;
  min-height: 46px;
  width: auto;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}

.review-stars {
  display: flex;
  gap: 8px;
}

.review-stars .star-btn {
  border: none;
  background: #f2f2f4;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.review-stars .star-btn svg {
  width: 22px;
  height: 22px;
  stroke: #d7d7d7;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-stars .star-btn.is-active svg,
.review-stars .star-btn.is-active ~ .star-btn svg {
  stroke: #f15b4a;
}

.review-stars .star-btn.is-active svg {
  fill: #f15b4a;
}

.review-form textarea {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.review-message {
  margin: 0 0 12px;
  color: #2f6ce5;
  font-weight: 600;
}

.review-message.error {
  color: #e04848;
}

.review-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 6px;
}

.review-date {
  color: #7a7a7a;
  font-weight: 500;
}

.review-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.review-rating .star {
  width: 16px;
  height: 16px;
  stroke: #d7d7d7;
  stroke-width: 1.6;
  fill: none;
}

.review-rating .star.filled {
  fill: #f15b4a;
  stroke: #f15b4a;
}

.review-empty {
  color: #7a7a7a;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tab-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.donation-program-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.donation-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0 6vw;
}

.donation-program-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.15);
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

@media (max-width: 640px) {
  .donation-program-grid {
    grid-template-columns: 1fr;
    padding: 0 4vw;
  }
}

.donation-program-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.donation-program-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.donation-program-content {
  position: relative;
  z-index: 2;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d1d1f;
  text-align: center;
  justify-items: center;
}

.donation-program-content h3 {
  margin: 0;
  font-size: 1.2rem;
}

.donation-program-content p {
  margin: 0;
  color: #3a3a3a;
}

.donation-program-foundation {
  font-weight: 600;
}

.donation-program-link {
  color: #1d1d1f;
  text-decoration: underline;
  font-weight: 600;
}

.donation-program-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  background: #1d1d1f;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.tab-card h3 {
  margin: 0 0 8px;
}

.tab-card ul {
  margin: 0;
  padding-left: 18px;
}

.about-card-grid {
  margin: 0 6vw;
}

.admin-page {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  padding: 32px 6vw 70px;
}

.admin-sidebar {
  background: #f7f6f8;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 18px;
  height: fit-content;
}

.admin-brand {
  display: grid;
  gap: 4px;
}

.admin-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.admin-brand small {
  color: #6f6f6f;
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: #1d1d1f;
  background: transparent;
}

.admin-nav-link.is-active,
.admin-nav-link:hover {
  background: #ecebed;
}

.admin-content {
  display: grid;
  gap: 8px;
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.admin-header p {
  margin: 0;
  color: #6f6f6f;
}

.admin-header {
  margin-bottom: 4px;
  padding: 0;
  min-height: 0;
  display: grid;
  gap: 6px;
}

.admin-search {
  justify-self: end;
}

.admin-search input {
  width: min(360px, 100%);
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.admin-section { 
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  border: 1px solid #ececef;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 16px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.admin-card {
  border: 1px solid #ececef;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  background: #f9f9fb;
}

.admin-card strong {
  font-size: 1.5rem;
}

.admin-card small {
  display: block;
  color: #66646a;
  line-height: 1.35;
}

.admin-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #2a2a2e;
}

.admin-card-icon {
  min-width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2f2f36;
  padding: 0 5px;
  line-height: 1;
}

.admin-card-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-card-icon.icon-products,
.admin-card-icon.icon-top-products {
  background: #33304a;
}

.admin-card-icon.icon-users,
.admin-card-icon.icon-activity {
  background: #0b5f6d;
}

.admin-card-icon.icon-categories,
.admin-card-icon.icon-top-categories {
  background: #3f5f23;
}

.admin-card-icon.icon-donations {
  background: #7a374f;
}

.admin-card-icon.icon-stock,
.admin-card-icon.icon-alerts,
.admin-card-icon.icon-quality {
  background: #8d4f08;
}

.admin-card-icon.icon-orders {
  background: #5b2f8d;
}

.admin-card-icon.icon-sales,
.admin-card-icon.icon-week,
.admin-card-icon.icon-month {
  background: #1d1d1f;
}

.admin-kpi-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f8fa 100%);
}

.admin-overview-list-card {
  gap: 10px;
}

.admin-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.admin-overview-list li {
  border: 1px solid #ececef;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.admin-overview-time {
  color: #73717a;
  font-size: 0.76rem;
  white-space: nowrap;
}

.admin-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-badge.is-success {
  background: #e8f6ef;
  color: #1f7a4a;
}

.admin-badge.is-warn {
  background: #fff3df;
  color: #9c5a00;
}

.admin-badge.is-danger {
  background: #fde8e8;
  color: #b42318;
}

.admin-badge.is-dark {
  background: #1d1d1f;
  color: #fff;
}

.admin-btn {
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.admin-panel {
  border: 1px dashed #d3d3d8;
  border-radius: 16px;
  padding: 12px;
  color: #6f6f6f;
  background: #fafafa;
  min-height: 0;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ececef;
  font-size: 0.85rem;
}

.admin-table th {
  font-weight: 700;
  color: #3a3a3a;
  font-size: 0.8rem;
}

.admin-actions {
  display: inline-flex;
  gap: 8px;
}

.admin-action-btn {
  border: 1px solid #1d1d1f;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.admin-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-note-muted {
  color: #7a7880;
  font-size: 0.78rem;
}

.admin-content-panel {
  display: grid;
  gap: 14px;
}

.admin-content-title {
  margin: 0;
  font-size: 1rem;
  color: #1e1d21;
}

.admin-content-banner-add {
  padding: 2px 0 8px;
}

.admin-content-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.admin-content-preview-item {
  border: 1px solid #ececef;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.admin-content-preview-item strong {
  font-size: 0.82rem;
  color: #2b2a31;
}

.admin-content-preview-item p {
  margin: 0;
  color: #66646a;
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-word;
}

.admin-attr-select {
  min-width: 200px;
  max-width: 260px;
  padding: 6px 10px;
  border: 1px solid #ececef;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.78rem;
}

.admin-attr-dropdown {
  position: relative;
  display: inline-block;
}

.admin-attr-toggle {
  font-size: 0.78rem;
}

.admin-attr-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-width: 260px;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 10px;
  z-index: 5;
  display: none;
}

.admin-attr-dropdown.open .admin-attr-menu {
  display: block;
}

.admin-attr-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}

.admin-attr-menu li {
  color: #2f2f2f;
}

.admin-action-btn.danger {
  border-color: #e04848;
  color: #e04848;
}

.admin-inline-form {
  display: inline-flex;
}

.admin-inline-input {
  border: 1px solid #d5d4d9;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  width: 130px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.admin-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: min(640px, 92vw);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: grid;
  gap: 16px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-modal-form {
  display: grid;
  gap: 16px;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-modal-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.admin-modal-field input,
.admin-modal-field textarea {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.admin-modal-hint {
  font-size: 0.78rem;
  color: #6f6f6f;
  font-weight: 500;
}

.admin-modal-field-full {
  grid-column: 1 / -1;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Add Product wizard styling (scoped) */
#product-add-modal .product-add-shell {
  width: min(980px, 94vw);
  border-radius: 22px;
  padding: 26px 30px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

#product-add-modal .admin-modal-header h3 {
  font-size: 2rem;
  font-weight: 600;
}

#product-add-modal .admin-modal-close {
  font-size: 2rem;
  line-height: 1;
}

#product-add-modal .admin-modal-field {
  font-size: 1rem;
  font-weight: 600;
}

#product-add-modal .admin-modal-field input,
#product-add-modal .admin-modal-field textarea,
#product-add-modal .admin-modal-field select {
  border: 1px solid #a99ea3;
  border-radius: 18px;
  padding: 9px 12px;
  background: #fff;
}

#product-add-modal .product-stage-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

#product-add-modal .product-dynamic-grid {
  grid-template-columns: 1fr;
}

#product-add-modal .product-pill-btn,
#product-add-modal #product-add-step-3 .admin-btn[type="submit"] {
  border-radius: 999px;
  padding-inline: 24px;
}

#product-add-modal .product-dynamic-list {
  border: 1px solid #d9d3d6;
  border-radius: 16px;
  background: #faf8f9;
}

#product-add-modal .product-image-field {
  gap: 12px;
}

#product-add-modal .product-images-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

#product-add-modal .product-image-tiles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#product-add-modal .product-image-add-tile {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid #9f9398;
  background: #fff;
  color: #141414;
  font-size: 2.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#product-add-modal .product-image-thumb {
  width: 156px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid #9f9398;
  background: #fff;
  padding: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#product-add-modal .product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-add-modal .product-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#product-add-modal .product-image-divider {
  border-top: 1px solid #9f9398;
  margin-top: 8px;
}

#product-add-modal .product-dynamic-item {
  margin-top: 7px;
  font-weight: 500;
}

#product-add-modal .product-static-wrap {
  border: 1px solid #d9d3d6;
  border-radius: 16px;
  background: #fff;
}

#product-add-modal .product-static-group {
  margin-bottom: 14px;
  border: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

#product-add-modal .product-static-section {
  padding: 8px 2px 12px;
  border-bottom: 1px solid #eee7eb;
}

#product-add-modal .product-static-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#product-add-modal .product-static-section-title {
  margin: 2px 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #474245;
}

#product-add-modal .product-static-options {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#product-add-modal .product-chip-option {
  display: inline-flex;
  align-items: center;
}

#product-add-modal .product-chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#product-add-modal .product-chip-label {
  border: 1px solid #d2c7cc;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 500;
  color: #554f52;
  cursor: pointer;
  user-select: none;
}

#product-add-modal .product-chip-option input:checked + .product-chip-label {
  background: #111;
  border-color: #111;
  color: #fff;
}

@media (max-width: 820px) {
  #product-add-modal .product-stage-three {
    grid-template-columns: 1fr;
  }

  #product-add-modal .product-image-thumb {
    width: 130px;
  }
}

#product-add-modal {
  align-items: flex-start;
  padding: 24px 0;
}

@media (max-width: 640px) {
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  #product-add-modal {
    padding: 10px 0;
  }

  #product-add-modal .product-add-shell {
    max-height: calc(100vh - 20px);
    width: min(980px, 96vw);
    border-radius: 16px;
    padding: 18px 16px;
  }
}

@media (max-width: 900px) {
  .admin-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-detail {
    padding: 20px 4vw 60px;
    overflow-x: hidden;
  }

  .product-gallery {
    padding: 16px;
  }

  .product-summary {
    padding: 18px;
  }

  .product-gallery-main img {
    height: 260px;
  }

  .product-detail-hero {
    width: 100%;
    max-width: 100%;
  }

  .product-gallery,
  .product-summary {
    min-width: 0;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-attributes {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    grid-template-columns: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery-thumbs .thumb {
    flex: 0 0 70px;
  }
}

.brand-marquee {
  margin: 10px 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0;
}

.donation-section {
  margin: 10px 0;
  background: url("images/Home/donationBanner.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 20px;
  position: relative;
}

.donation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.18); */
}

.donation-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.donation-content h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

.donation-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.brand-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 18px 34px;
}

.brand-row img {
  height: 70px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.products-header {
  max-width: 1084px;
  margin: 0 auto 18px;
  text-align: center;
  /* justify-content: space-between; */
}

.products-header .cta-group {
  justify-content: center;
}

.products-grid {
  margin-top:30px;
}

.products-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.products-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 28px;
  justify-content: center;
  width: 100%;
}

.product-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-fav {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  color: #1d1d1f;
  cursor: pointer;
}

.product-fav button {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-fav svg {
  width: 30px;
  height: 30px;
}

.product-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 18px;
  margin-top: 8px;
  align-self: center;
}

.product-card h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
}

.product-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.thumb.is-active {
  box-shadow: inset 0 0 0 2px #1d1d1f;
}

.product-price {
  margin: 0;
  font-weight: 600;
}

.product-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.product-rating .star {
  width: 18px;
  height: 18px;
  stroke: #d7d7d7;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-rating .star.filled {
  fill: #f15b4a;
  stroke: #f15b4a;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-cta {
  margin-top: auto;
  border: none;
  /* background: #1d1d1f; */
  background: rgb(58, 58, 61);
  color: #ffffff;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-cta:hover {
  transform: translateY(-2px);
  background: #1d1d1f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-cta.is-added {
  background: #1d1d1f;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1f;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-icon-header {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e04848;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.notification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 60;
}

.notification-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(360px, 92vw);
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
  padding: 18px 18px 14px;
  transform: translateX(120%);
  transition: transform 0.2s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.notification-panel.open {
  transform: translateX(0);
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.notification-header .icon-btn {
  font-size: 1.4rem;
  line-height: 1;
}

.notification-body {
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding-right: 6px;
}

.notification-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7a7a;
  margin-top: 6px;
}

.notification-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  background: #f7f7f9;
}

.notification-item.unread {
  background: #eef2ff;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d1d1f;
}

.notification-content {
  display: grid;
  gap: 4px;
}

.notification-title {
  font-weight: 600;
}

.notification-message {
  font-size: 0.85rem;
  color: #6f6f6f;
}

.notification-link {
  font-size: 0.85rem;
  color: #1d1d1f;
  text-decoration: underline;
}

.notification-time {
  font-size: 0.75rem;
  color: #8a8a8a;
}

.notification-empty {
  color: #7a7a7a;
  text-align: center;
  padding: 12px 0;
}

.auth-page {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
}

.auth-hero {
  background: url("images/login_register/Login_banner.png") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  min-height: 100vh;
}

.auth-hero::before {
  content: "SALE";
  position: absolute;
  inset: 0;
  font-size: clamp(5rem, 16vw, 12rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  display: grid;
  gap: 10px;
}

.auth-hero-label {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.auth-hero-offer {
  display: grid;
  gap: 2px;
}

.auth-hero-percent {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

.auth-hero-sub {
  font-size: 1.1rem;
}

.auth-hero-code {
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  width: fit-content;
}

.auth-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  width: fit-content;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #ffffff;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.auth-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}

.auth-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.auth-back svg {
  width: 20px;
  height: 20px;
}

.auth-card {
  width: min(420px, 90%);
}

.auth-card-welcome {
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
  justify-content: center;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: #6f6f6f;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form-secondary {
  margin-top: 12px;
}

.profile-page {
  padding: 32px 6vw 70px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
}

.profile-sidebar {
  background: #f7f6f8;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  min-width: 0;
}

.profile-sidebar-header {
  display: grid;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e2dc;
}

.profile-sidebar-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-sidebar-info p {
  margin: 4px 0 0;
  color: #6f6f6f;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 6px #ffffff, 0 10px 24px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  font-size: 1.4rem;
  color: #1d1d1f;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.profile-avatar.large {
  width: 92px;
  height: 92px;
  font-size: 1.6rem;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar.is-editable {
  cursor: pointer;
}

.profile-avatar-edit {
  position: absolute;
  right: 26px;
  bottom: 0px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1d1d1f;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.profile-avatar-edit svg {
  width: 14px;
  height: 14px;
}

.profile-image-input {
  display: none;
}

.profile-nav {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #1d1d1f;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
}

.profile-nav-link:hover,
.profile-nav-link.is-active {
  background: #ecebed;
}

.profile-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.profile-nav-icon svg {
  width: 20px;
  height: 20px;
}

.profile-content h1 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.12);
  border: 1px solid #ececef;
  min-width: 0;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececef;
}

.profile-card-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-card-user h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.profile-card-user p {
  margin: 0;
  color: #6f6f6f;
  overflow-wrap: anywhere;
}

.profile-edit-btn {
  border: none;
  background: #f1f1f4;
  color: #1d1d1f;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.profile-form {
  margin-top: 20px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #3a3a3a;
}

.profile-field input {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #ffffff;
}

.profile-field select {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #ffffff;
}

.profile-save-btn {
  margin-top: 22px;
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}

.profile-save-btn.outline {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid #1d1d1f;
}

.profile-addresses {
  margin-top: 32px;
}

.profile-address-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.profile-address-header p {
  margin: 0 0 16px;
  color: #6f6f6f;
}

.profile-address-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.profile-address-card {
  border: 1px solid #ececef;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.profile-address-card.is-default {
  border-color: #1d1d1f;
}

.profile-address-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-address-label {
  font-weight: 700;
}

.profile-address-badge {
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-address-text {
  margin: 0 0 12px;
  color: #5e5e5e;
  line-height: 1.4;
}

.profile-address-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-address-btn {
  border: 1px solid #1d1d1f;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.profile-address-btn.danger {
  border-color: #e04848;
  color: #e04848;
}

.profile-address-form {
  margin-top: 12px;
  display: grid;
  gap: 16px;
}

.profile-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f6f6f;
  font-weight: 600;
}

.profile-empty {
  color: #6f6f6f;
  margin-bottom: 16px;
}

.profile-orders {
  margin-top: 32px;
}

.profile-orders-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.profile-orders-header p {
  margin: 0 0 16px;
  color: #6f6f6f;
}

.profile-orders-list {
  display: grid;
  gap: 16px;
}

.profile-order-card {
  border: 1px solid #ececef;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
}

.profile-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-order-id {
  margin: 0;
  font-weight: 700;
}

.profile-order-date {
  margin: 4px 0 0;
  color: #6f6f6f;
  font-size: 0.9rem;
}

.profile-order-status {
  background: #f1f1f4;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.profile-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e5e5e;
}

.profile-settings {
  margin-top: 24px;
}

.profile-settings-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.profile-settings-header p {
  margin: 0 0 16px;
  color: #6f6f6f;
}

.profile-settings-group {
  border: 1px solid #ececef;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-settings-title h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.profile-settings-title p {
  margin: 0;
  color: #6f6f6f;
}

.profile-settings-actions {
  display: grid;
  gap: 8px;
}

.profile-settings-link {
  color: #1d1d1f;
  font-weight: 600;
  text-decoration: underline;
}

.profile-settings-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-settings-meta span {
  display: block;
  color: #6f6f6f;
  font-size: 0.9rem;
}

.profile-settings-meta strong {
  font-size: 1rem;
}

.profile-sessions {
  display: grid;
  gap: 10px;
}

.profile-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f9f9fb;
}

.profile-session-card span {
  display: block;
  color: #6f6f6f;
  font-size: 0.85rem;
}

.profile-session-badge {
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-payment-list {
  display: grid;
  gap: 10px;
}

.profile-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f9f9fb;
}

.profile-payment-card span {
  display: block;
  color: #6f6f6f;
  font-size: 0.85rem;
}

.profile-payment-badge {
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-settings-form {
  display: grid;
  gap: 16px;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #3a3a3a;
}

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

  .profile-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding: 22px 4vw 50px;
  }

  .profile-layout {
    gap: 18px;
  }

  .profile-sidebar,
  .profile-card {
    padding: 18px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-address-list {
    grid-template-columns: 1fr;
  }
}

.auth-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.auth-field input {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.auth-phone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.auth-phone select {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 18px 12px 10px;
  font: inherit;
  background: #ffffff;
}

.auth-phone input {
  width: 100%;
}

.auth-password {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 0 10px;
}

.auth-password input {
  border: none;
  flex: 1;
  padding: 12px 4px;
  outline: none;
}

.auth-eye {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #7a7a7a;
}

.auth-eye svg {
  width: 20px;
  height: 20px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f6f6f;
}

.auth-link {
  color: #6f6f6f;
  text-decoration: none;
}

.auth-submit {
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
}

.auth-submit-verify {
  margin-bottom: 20px;
}

.auth-message {
  margin: 0 0 12px;
  font-weight: 600;
}

.auth-hint {
  color: #6f6f6f;
}

.auth-message.error,
.auth-hint.is-error {
  color: #e04848;
}

.auth-message.success {
  color: #2f8f4e;
}

.auth-signup-submit {
  background: transparent;
  border: 1px solid #1d1d1f;
  color: #1d1d1f;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: #9b9b9b;
  font-size: 0.85rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #ededf0;
  z-index: 0;
}

.auth-divider span {
  background: #ffffff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.auth-google {
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}

.google-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  color: #ffffff;
  font-size: 0.75rem;
}

.auth-footer {
  margin-top: 20px;
  color: #6f6f6f;
  text-align: center;
}

.auth-footer a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    margin-top: 0px;
  }

  .auth-hero {
    min-height: 320px;
    margin-top: 0px;
  }
}

.product-cta .cart-icon {
  width: 18px;
  height: 18px;
}

.category-section {
  margin: 10px 0;
  background: var(--surface);
  border-radius: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  height: auto;
}

.category-section-new {
  background-color: var(--surface);
  width: 100%;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.category-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.category-link {
  color: var(--muted);
  font-size: 0.85rem;
}

.category-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.category-stack {
  display: grid;
  gap: 10px;
  height: 100%;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.category-card {
  background: #ffffff;
  border-radius: 0;
  padding: 30px;
  min-height: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.category-card.tall {
  min-height: 0;
  height: 100vh;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
}

.category-card-content {
  position: relative;
  z-index: 1;
  max-width: 280px;
  text-align: left;
  margin: 0;
  padding-left: 3vw;
}

.category-card-content h4 {
  margin: 0 0 12px;
  font-size: 3.6vw;
}

.category-card-content p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.category-card.featured {
  background-image: url("images/Home/category-card1.png");
}

.category-card.furniture {
  background-image: url("images/Home/category-card2.png");
}

.category-card.clothing {
  background-image: url("images/Home/category-card3.png");
}



.promo-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: #fdfbf8;
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card:nth-child(2) {
  background: #f7f3ef;
}

.promo-card:nth-child(3) {
  background: #f8f6fb;
}

.promo-card:nth-child(4) {
  background: #f4f7f6;
}

.promo-card:nth-child(5) {
  background: #f9f5f1;
}

.promo-card:nth-child(6) {
  background: #f6f0ed;
}

.site-footer {
  padding: 60px 8vw 40px;
  border-top: 1px solid var(--line);
  background: #fbfaf8;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-columns h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-columns a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-description {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #1d1d1f;
  background: #ffffff;
}

.social-icons a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s ease forwards;
}

.hero-primary.reveal {
  animation-delay: 0.1s;
}

.hero-secondary.reveal {
  animation-delay: 0.2s;
}

.hero-tertiary.reveal {
  animation-delay: 0.3s;
}

.promo-card.reveal:nth-child(1) { animation-delay: 0.35s; }
.promo-card.reveal:nth-child(2) { animation-delay: 0.45s; }
.promo-card.reveal:nth-child(3) { animation-delay: 0.55s; }
.promo-card.reveal:nth-child(4) { animation-delay: 0.65s; }
.promo-card.reveal:nth-child(5) { animation-delay: 0.75s; }
.promo-card.reveal:nth-child(6) { animation-delay: 0.85s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-card.tall {
    min-height: 320px;
  }

  .category-card.tall .category-media {
    height: 200px;
  }


}

.product-header-justifycontent {
  justify-content: space-between;
}

@media (max-width: 900px) {
  .promo-bar {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    padding: 12px 10px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .nav-toggle {
    grid-column: 3;
    justify-self: end;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .nav-actions {
    grid-column: 2;
    justify-self: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 52px);
    left: 6vw;
    right: 6vw;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }

  .nav-links .dropdown {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-links .dropdown a {
    padding: 6px 0;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .dropdown.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-toggle {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 6vw;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  body.nav-open .nav-links,
  body.nav-open .nav-actions {
    display: flex;
  }

  .filter-subcategory-bar {
    display: none;
  }

  body.nav-open .filter-subcategory-bar {
    display: flex;
    position: absolute;
    top: calc(100% + 52px + 30px);
    left: 6vw;
    right: 6vw;
    z-index: -5;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }

  body.dropdown-open .filter-subcategory-bar {
    display: none;
  }

  .cart-icon-header {
    display: none;
  }

  .mobile-cart-float {
    display: inline-flex;
  }

  main {
    padding: 0px 0vw 60px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    border-radius: 10px;
  }


  .products-header .cta-group {
    justify-content: center;
    align-items: center;
  } 

  .products-header {
    margin-left: 6vw;
    margin-right: 6vw;
  }

  .store-category-header {
    flex-direction: column;
    align-items: flex-start;

  }

  .store-category-header .cta-group {
    justify-content: flex-start;
  }

  .product-cta {
    font-size: 0.65rem;
    padding: 10px 14px;
  }

  .brand-row {
    gap: 28px;
    padding: 14px 0;
  }

  .brand-row img {
    height: 22px;
  }

  .category-card.tall {
    height: 50vh;
    min-height: 50vh;
  }

  .category-stack .category-card {
    height: 35vh;
    min-height: 35vh;
  }

  .category-section {
    margin: 18px 0 32px;
  }



  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-social {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 520px) {
  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-category {
    padding: 0 14px;
  }

  .store-category-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .store-category-header .cta-group {
    justify-content: flex-end;
  }

  .store-category-text {
    max-width: 70%;
  }

  .store-category-text h2 {
    font-size: 1.1rem;
  }

  .store-category-text p {
    font-size: 0.9rem;
  }

  .store-category-header .cta-group .cta {
    font-size: 0.8rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .product-meta {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .store-sort {
    right: 16px;
    bottom: 16px;
  }

  .store-sort-toggle {
    width: 48px;
    height: 48px;
  }

  .store-sort-toggle svg {
    width: 22px;
    height: 22px;
  }

  .filter-subcategory-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 10px;
    z-index: -5;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-subcategory-bar a {
    white-space: nowrap;
  }

  .product-rating {
    gap: 2px;
  }

  .product-rating .star {
    width: 14px;
    height: 14px;
  }

  .product-cta {
    width: 38px;
    height: 38px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}
