﻿/* New noon components */
@import url('../design-system/components/card.css');
@import url('../design-system/components/product-card.css');

.noon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.noon-horizontal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.home-sideways-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  direction: ltr;
  scroll-behavior: smooth;
}

.home-sideways-list .noon-product-card {
  min-width: 185px;
  max-width: 185px;
  flex: 0 0 185px;
  scroll-snap-align: start;
  direction: rtl;
}



.home-sideways-list .noon-product-card--compact {
  min-width: min(168px, calc((100% - 10px) / 2));
  max-width: min(168px, calc((100% - 10px) / 2));
  flex: 0 0 min(168px, calc((100% - 10px) / 2));
  scroll-snap-align: start;
  direction: rtl;
  border-radius: 12px;
}

.home-sideways-list .noon-product-card--compact .noon-product-media img {
  height: 132px;
  max-height: none;
}

.home-sideways-list .noon-product-card--compact .noon-product-body {
  gap: 5px;
  padding: 8px;
}

.home-sideways-list .noon-product-card--compact .noon-rating-pill {
  padding: 2px 6px;
  font-size: 0.72rem;
}

.home-sideways-list .noon-product-card--compact .noon-title {
  min-height: 2.7em;
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-sideways-list .noon-product-card--compact .noon-price {
  font-size: 0.98rem;
}

.home-sideways-list .noon-product-card--compact .noon-old-price {
  font-size: 0.72rem;
}

.home-sideways-list .noon-product-card--compact .noon-discount-pill {
  font-size: 0.68rem;
}

.home-sideways-list .noon-product-card--compact .noon-add-square {
  width: 30px;
  height: 30px;
  left: 8px;
  bottom: 8px;
  font-size: 1.15rem;
}

.home-sideways-list .noon-product-card--compact .noon-wishlist-btn {
  top: 6px;
  right: 6px;
}

.home-sideways-list .noon-product-card--compact .noon-card-cta {
  min-height: 32px;
  font-size: 0.8rem;
}

.home-vertical-list {
  display: grid;
  gap: 10px;
}

.home-vertical-list .noon-product-card {
  border-radius: 12px;
}

.noon-product-card {
  background: #fff;
  border: 1px solid var(--noon-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 12, 27, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.noon-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
  border-color: #cdd9ea;
}

.noon-product-media {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.noon-product-media img {
  max-height: 130px;
  object-fit: contain;
}

.noon-product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.noon-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--noon-text);
}

.noon-muted {
  color: var(--noon-muted);
  font-size: 0.8rem;
}

.noon-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f1f42;
}

.noon-old-price {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.noon-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    border: 0;
    border-radius: 10px;
    min-height: 23px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 180ms ease, background-color 180ms ease, filter 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--noon-blue) 0%, #1258d3 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(31, 111, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--noon-blue-strong) 0%, #0f49af 100%);
  box-shadow: 0 10px 18px rgba(18, 86, 200, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(180deg, #ffe071 0%, var(--noon-yellow) 100%);
  color: #3a2a00;
  border: 1px solid #f1d15d;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #ffe88a 0%, #ffdc5c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(239, 191, 0, 0.2);
}

.btn-danger {
  background: #fff1f2;
  color: var(--noon-danger);
  border: 1px solid #fecdd3;
}

.btn-danger:hover {
  background: #ffe4e6;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.15);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.4);
  transform: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible {
  outline: 2px solid var(--noon-blue);
  outline-offset: 2px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-row .chip,
.filter-btn {
  border: 1px solid var(--noon-border);
  background: #fff;
  color: var(--noon-text);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.chip-row .chip.active,
.filter-btn.active {
  background: var(--noon-yellow);
  border-color: #ffd500;
}

.noon-form {
  display: grid;
  gap: 10px;
}

.noon-field {
  display: grid;
  gap: 6px;
}

.noon-field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

#profile-avatar {
  cursor: pointer;
}

.noon-input,
.noon-textarea,
.noon-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9e2ec;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: 0;
}

.noon-textarea,
textarea {
  min-height: 92px;
  resize: vertical;
}

.noon-input:focus,
.noon-textarea:focus,
.noon-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--noon-blue);
  box-shadow: 0 0 0 3px rgba(56, 102, 223, 0.16);
}

.noon-summary {
  border: 1px solid #dbe6f3;
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.noon-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: #3f526f;
}

.noon-summary-row strong {
  color: #102a43;
}

.noon-summary-row.total {
  border-top: 1px dashed #dce3ed;
  margin-top: 5px;
  padding-top: 10px;
  font-weight: 900;
  color: #0f1f42;
}

.page-hero {
    background: linear-gradient(120deg, #55629a 0%, #8682e1 45%, #3b65a9 100%);
    border: 1px solid #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-hero h1,
.page-hero h2 {
  margin: 0 0 6px;
  color: #10284a;
  font-size: 1.28rem;
}

.page-hero p {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 66ch;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--noon-border);
  border-radius: 14px;
  background: #fff;
}

table.noon-table {
  width: 100%;
  border-collapse: collapse;
}

table.noon-table th,
table.noon-table td {
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: right;
  font-size: 0.86rem;
}

.stack {
  display: grid;
  gap: 12px;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #d4e1f1;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  color: #38506f;
}

.muted-box {
  border: 1px dashed #dbe4f0;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
  color: #5f728f;
  font-size: 0.85rem;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-actions .btn-primary,
.inline-actions .btn-secondary,
.inline-actions .btn-danger {
  min-height: 40px;
  padding-inline: 14px;
}

.two-col {
  display: grid;
  gap: 12px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-card {
  border: 1px solid var(--noon-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.account-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: #102a43;
}

.account-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7c93;
}

.list-items {
  display: grid;
  gap: 8px;
}

.list-item {
  border: 1px solid var(--noon-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.list-item strong {
  color: #102a43;
}

.address-modal-subtitle {
  margin: 0 0 10px;
  color: #6b7c93;
  font-size: 0.8rem;
  line-height: 1.8;
}

.address-list-wrap {
  margin-bottom: 10px;
}

.saved-address-card {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.saved-address-card.active {
  border-color: #bcd0ff;
  background: #f5f8ff;
}

.saved-address-text {
  margin: 0;
  color: #102a43;
  font-size: 0.84rem;
  line-height: 1.8;
  word-break: break-word;
}

.saved-address-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.address-default-pill {
  background: #eaf1ff;
  border-color: #c9d8ff;
  color: #1d4ed8;
}

.address-gps-tools {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f7ff 100%);
  padding: 10px;
}

.location-detect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.location-detect-btn .material-icons-outlined {
  font-size: 18px;
}

.gps-preview {
  border: 1px solid #d2e2ff;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.gps-preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1f3f9d;
}

.gps-preview-head .material-icons-outlined {
  font-size: 18px;
}

.gps-preview-head strong {
  font-size: 0.82rem;
  font-weight: 900;
}

#gps-detected-address {
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.8;
}

.gps-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#gps-map-link {
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 14px;
  background:
    radial-gradient(circle at 20% 10%, hsl(60, 100%, 100%) 0, rgba(255, 243, 166, 0) 35%),
    radial-gradient(circle at 85% 20%, #f3f4f7 0, rgba(214, 228, 255, 0) 38%),
    #f7f8fb;
}

.auth-card {
  width: min(100%, 420px);
  border: 1px solid var(--noon-border);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--noon-shadow);
  padding: 18px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #102a43;
}

.auth-card p {
  margin: 0 0 14px;
  color: #5f728f;
  font-size: 0.86rem;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .icon-btn {
  position: absolute;
  inset-inline-start: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #5f728f;
}

.auth-links a {
  color: var(--noon-blue);
  font-weight: 800;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  direction: ltr;
}

.otp-row input {
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
}

.status-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #48607e;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 9px 11px;
}

.status-note.error {
  color: #b42318;
  border-color: #fecdd3;
  background: #fff1f2;
}

.status-note.success {
  color: #067647;
  border-color: #b7ebc6;
  background: #eefcf3;
}

.status-note.info {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.boda-toast-root {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 120;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 12px;
}

.boda-toast {
  pointer-events: auto;
  width: min(100%, 480px);
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
  padding: 11px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.boda-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.boda-toast.boda-success {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}

.boda-toast.boda-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.boda-toast.boda-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.boda-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 14px;
}

.boda-confirm-card {
  width: min(100%, 420px);
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.boda-confirm-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #102a43;
}

.boda-confirm-card p {
  margin: 0;
  color: #3d556f;
  font-size: 0.9rem;
  line-height: 1.8;
}

.boda-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.boda-confirm-actions .btn-primary,
.boda-confirm-actions .btn-secondary {
  min-width: 96px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: min(100%, 460px);
  border: 1px solid var(--noon-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--noon-shadow);
}

.center-empty {
  text-align: center;
  padding: 28px 14px;
  border: 1px dashed #d9e5f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.center-empty h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #10284a;
}

.center-empty p {
  margin: 0;
  color: #5b6f8d;
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #5f728f;
  font-size: 0.8rem;
}

.footer-links a {
  color: #3a4f71;
  font-weight: 700;
}

.order-items-preview {
  margin-top: 10px;
  border-top: 1px dashed #dce3ed;
  padding-top: 10px;
}

.order-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.order-items-head strong {
  color: #102a43;
}

.order-items-thumbs {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.order-item-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-items-text {
  margin: 7px 0 0;
  color: #5f728f;
  font-size: 0.78rem;
}

.order-items-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

.order-address-row {
  align-items: flex-start;
}

.order-address-value {
  max-width: 72%;
  text-align: start;
  line-height: 1.7;
  color: #0f1f42;
  font-size: 0.82rem;
  word-break: break-word;
}

/* Home banners */
.home-banners {
  background: linear-gradient(145deg, #fff6c8 0%, #eef4ff 100%);
  border-color: #e6edf8;
}

.home-banners-top {
  display: grid;
  gap: 12px;
}

.home-hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  background: #f3f5f9;
  min-height: 190px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 160ms ease, background-color 160ms ease;
}

.hero-nav.next {
  right: 10px;
}

.hero-nav.prev {
  left: 10px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 20px;
  border-radius: 999px;
  background: #fff;
}

.home-banner-side,
.home-wide-banner {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.home-banner-side {
  min-height: 185px;
}

.home-wide-banner {
  margin-top: 10px;
  min-height: 88px;
}

.home-banner-side img,
.home-wide-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner-side span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Product card noon-like style */
.noon-product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.noon-product-media-wrap {
  position: relative;
}

.noon-product-media {
  width: 100%;
  border: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.noon-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8fafc;
}

.noon-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  background: #f8fafc;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.noon-gallery-img.active {
  opacity: 1;
  pointer-events: auto;
}

.noon-img-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  line-height: 1;
  pointer-events: auto;
  z-index: 3;
}

.noon-img-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}

.noon-img-dots span.active {
  background: #fff;
  transform: scale(1.3);
}

.noon-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.noon-wishlist-btn.is-active {
  border-color: #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

.noon-discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e74c3c;
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.5;
}

.noon-add-square {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.noon-add-square:hover {
  background: #f8fafc;
}

.noon-product-body {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.noon-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}

.noon-rating-stars {
  color: #22c55e;
  font-size: 0.78rem;
  line-height: 1;
}

.noon-rating-count {
  color: #94a3b8;
  font-size: 0.65rem;
}

.noon-title {
  margin: 0;
  min-height: 2.4em;
  line-height: 1.2;
  font-size: 0.82rem;
  font-weight: 800;
  color: #102a43;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noon-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.noon-price {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.noon-price-num {
  font-size: inherit;
  font-weight: inherit;
}

.noon-currency {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.noon-old-price {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-decoration: line-through;
}

.noon-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  position: relative;
  min-height: 1.4em;
}

.noon-delivery-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: noonFade 6s infinite;
}

.noon-return-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: noonFade 6s infinite 3s;
}

@keyframes noonFade {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.noon-express-img {
  display: block;
  width: 83px;
  height: 22px;
  margin: 2px 10px 8px;
}

.noon-low-stock {
  font-size: 0.6rem;
  font-weight: 600;
  color: #ef4444;
}

.noon-card-cta {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #166534;
  font-weight: 900;
}

.noon-card-cta:hover {
  background: #dcfce7;
}

.home-sideways-list .noon-product-card {
  min-width: 192px;
  max-width: 192px;
  flex: 0 0 192px;
}



.home-vertical-list .noon-product-card .noon-product-body {
  gap: 5px;
}

/* Search page */
.search-shell {
  padding: 12px;
}

.search-clear-btn {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 34px;
  height: 34px;
}

.search-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.search-history-list {
  border-style: dashed;
}

.search-row + .search-row {
  border-top: 1px solid #eef2f7;
}

.search-item-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.search-item-btn:hover {
  background: #f8fbff;
}

.search-item-btn .material-icons-outlined {
  font-size: 18px;
  color: #94a3b8;
}

.search-results-grid {
  display: block;
}

#search-results .noon-horizontal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

#search-results .noon-product-card--compact {
  min-width: 0;
  border-radius: 12px;
}

#search-results .noon-product-card--compact .noon-product-media img {
  height: 132px;
}

#search-results .noon-product-card--compact .noon-product-body {
  gap: 5px;
  padding: 8px;
}

#search-results .noon-product-card--compact .noon-rating-pill {
  padding: 2px 6px;
  font-size: 0.72rem;
}

#search-results .noon-product-card--compact .noon-title {
  min-height: 2.7em;
  font-size: 0.82rem;
  line-height: 1.35;
}

#search-results .noon-product-card--compact .noon-price {
  font-size: 0.98rem;
}

#search-results .noon-product-card--compact .noon-old-price {
  font-size: 0.72rem;
}

#search-results .noon-product-card--compact .noon-discount-pill {
  font-size: 0.68rem;
}

#search-results .noon-product-card--compact .noon-add-square {
  width: 30px;
  height: 30px;
  left: 8px;
  bottom: 8px;
  font-size: 1.15rem;
}

#search-results .noon-product-card--compact .noon-wishlist-btn {
  top: 6px;
  right: 6px;
}

#search-results .noon-product-card--compact .noon-card-cta {
  min-height: 32px;
  font-size: 0.8rem;
}

#productsGrid .noon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

#productsGrid .noon-product-card {
  min-width: 0;
  border-radius: 12px;
}

#productsGrid .noon-product-media img {
  object-fit: cover;
}

#productsGrid .noon-product-body {
  gap: 5px;
  padding: 8px;
}

#productsGrid .noon-rating-pill {
  padding: 2px 6px;
  font-size: 0.72rem;
}

#productsGrid .noon-title {
  min-height: 2.7em;
  font-size: 0.84rem;
  line-height: 1.35;
}

#productsGrid .noon-price {
  font-size: 1rem;
}

#productsGrid .noon-old-price {
  font-size: 0.72rem;
}

#productsGrid .noon-discount-pill {
  font-size: 0.68rem;
}

#productsGrid .noon-add-square {
  width: 30px;
  height: 30px;
  left: 8px;
  bottom: 8px;
  font-size: 1.15rem;
}

#productsGrid .noon-wishlist-btn {
  top: 6px;
  right: 6px;
}

#productsGrid .noon-card-cta {
  min-height: 32px;
  font-size: 0.8rem;
}

#random-products .noon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

#random-products .noon-product-card--compact {
  min-width: 0;
  border-radius: 12px;
}

#random-products .noon-product-card--compact .noon-product-media img {
  height: 132px;
}

#random-products .noon-product-card--compact .noon-product-body {
  gap: 5px;
  padding: 8px;
}

#random-products .noon-product-card--compact .noon-rating-pill {
  padding: 2px 6px;
  font-size: 0.72rem;
}

#random-products .noon-product-card--compact .noon-title {
  min-height: 2.7em;
  font-size: 0.82rem;
  line-height: 1.35;
}

#random-products .noon-product-card--compact .noon-price {
  font-size: 0.98rem;
}

#random-products .noon-product-card--compact .noon-old-price {
  font-size: 0.72rem;
}

#random-products .noon-product-card--compact .noon-discount-pill {
  font-size: 0.68rem;
}

#random-products .noon-product-card--compact .noon-add-square {
  width: 30px;
  height: 30px;
  left: 8px;
  bottom: 8px;
  font-size: 1.15rem;
}

#random-products .noon-product-card--compact .noon-wishlist-btn {
  top: 6px;
  right: 6px;
}

#random-products .noon-product-card--compact .noon-card-cta {
  min-height: 32px;
  font-size: 0.8rem;
}

.search-empty-state {
  border: 1px dashed #d8e1ee;
  border-radius: 12px;
  background: #fafcff;
  color: #64748b;
  padding: 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .location-detect-btn {
    width: fit-content;
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  .gps-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #gps-map-link {
    text-align: center;
    display: block;
  }

  #use-gps-address-btn {
    width: 100%;
  }
}

@media (min-width: 880px) {
  .home-banners-top {
    align-items: stretch;
  }

  .home-hero-slider {
    min-height: 210px;
  }

  .home-banner-side {
    min-height: 210px;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .home-sideways-list .noon-product-card {
    min-width: 210px;
    max-width: 210px;
    flex-basis: 210px;
  }
}

/* Home categories section (Noon-inspired) */
.home-category-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #e8eef8;
}

.home-category-section .section-head {
  margin-bottom: 14px;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
}

.home-category-tile {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: #1f3557;
  border: 1px solid #e6edf8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px 8px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#offers-section {
  scroll-margin-top: 118px;
}

.home-category-tile:hover {
  transform: translateY(-2px);
  border-color: #d5e2f3;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.home-category-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #dde8f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.home-category-tile span {
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.35;
  min-height: 2.3em;
}

.home-category-tile:hover .home-category-thumb img {
  transform: scale(1.04);
}

.wishlist-header {
  margin-top: 8px;
}

.wishlist-heading {
  margin: 0;
  color: var(--noon-heading);
}

.wishlist-count-pill {
  padding: 0 12px;
  border-color: #d2e0f2;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.wishlist-count-pill strong {
  margin-inline-start: 4px;
  color: var(--noon-blue);
}

.wishlist-items-wrap {
  margin-top: 12px;
}

.wishlist-actions {
  margin-top: 14px;
}

/* wishlist product cards */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.wishlist-grids {
  display: contents;
}

.wishlist-product-card {
  background: #fff;
  border: 1px solid var(--noon-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 12, 27, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
}

.wishlist-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
  border-color: #cdd9ea;
}

.wishlist-product-media-wrap {
  position: relative;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.wishlist-product-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
}

.wishlist-gallery-img {
  display: none;
  max-height: 130px;
  object-fit: contain;
  width: auto;
}

.wishlist-gallery-img.active {
  display: block;
}

.wishlist-img-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.wishlist-img-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 180ms ease;
}

.wishlist-img-dots span.active {
  background: var(--noon-blue);
}

.wishlist-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease;
  color: #e11d48;
}

.wishlist-remove-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.wishlist-add-to-cart {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: var(--noon-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 10px rgba(31, 111, 235, 0.25);
}

.wishlist-add-to-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(31, 111, 235, 0.32);
}

.wishlist-product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.wishlist-product-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--noon-text);
  line-height: 1.35;
  min-height: 2.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wishlist-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--noon-muted);
}

.wishlist-rating-stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.wishlist-rating-count {
  font-size: 0.7rem;
  color: #94a3b8;
}

.wishlist-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.wishlist-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f1f42;
  margin: 0;
}

.wishlist-old-price {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin: 0;
}

.wishlist-discount-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e11d48;
  background: #fef2f2;
  padding: 1px 6px;
  border-radius: 4px;
}

@media (min-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .wishlist-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wishlist-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
    border-color: #cdd9ea;
  }
}

@media (max-width: 768px) {
  .inline-actions .btn-primary,
  .inline-actions .btn-secondary,
  .inline-actions .btn-danger {
    flex: 1 1 calc(50% - 8px);
  }

  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .inline-actions .btn-primary,
  .inline-actions .btn-secondary,
  .inline-actions .btn-danger {
    flex: 1 1 100%;
  }

  .home-category-grid {
    gap: 10px 8px;
  }

  .home-category-tile {
    padding: 8px 6px;
  }

  .home-category-tile span {
    font-size: 0.73rem;
  }
}
