:root {
  --font: "Cairo", sans-serif;
  --font-brand: "Syne", "Cairo", sans-serif;
  --font-script: "Syne", "Cairo", sans-serif;
  --bg: #f3f2ef;
  --bg-2: #ebe8e2;
  --surface: #ffffff;
  --text: #161616;
  --muted: #6b6b6b;
  --line: rgba(22, 22, 22, 0.1);
  --accent: #111111;
  --accent-2: #1a1a1a;
  --accent-soft: rgba(17, 17, 17, 0.08);
  --gold: #a8894d;
  --gold-2: #8a6f3c;
  --night: #111111;
  --sand: #d8d4cc;
  --ink: #111111;
  --danger: #c0392b;
  --success: #1f8a4c;
  --shadow: 0 20px 40px rgba(18, 18, 18, 0.12);
  --radius: 14px;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(17, 17, 17, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f6f3 0%, var(--bg) 45%, var(--bg-2) 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 246, 243, 0.92);
  border-bottom: 1px solid transparent;
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.store-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.store-header-home {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  color: #f7f5f1;
}

.store-header-home .store-brand-name,
.store-header-home .store-brand-script,
.store-header-home .store-nav a,
.store-header-home .header-user,
.store-header-home .icon-btn,
.store-header-home .menu-toggle {
  color: #f7f5f1;
}

.store-header-home .store-nav a {
  color: rgba(247, 245, 241, 0.82);
}

.store-header-home .store-nav a:hover,
.store-header-home .store-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.store-header-home .icon-btn,
.store-header-home .menu-toggle,
.store-header-home .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.store-header-home .btn-primary {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.store-header-home.is-scrolled {
  position: sticky;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.store-header-home.is-scrolled .store-brand-name,
.store-header-home.is-scrolled .store-brand-script,
.store-header-home.is-scrolled .header-user,
.store-header-home.is-scrolled .icon-btn,
.store-header-home.is-scrolled .menu-toggle {
  color: var(--text);
}

.store-header-home.is-scrolled .store-brand-script {
  color: var(--ink);
}

.store-header-home.is-scrolled .store-nav a {
  color: var(--muted);
}

.store-header-home.is-scrolled .store-nav a:hover,
.store-header-home.is-scrolled .store-nav a.is-active {
  color: #111111;
  background: var(--accent-soft);
}

.store-header-home.is-scrolled .icon-btn,
.store-header-home.is-scrolled .menu-toggle,
.store-header-home.is-scrolled .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--text);
}

.store-header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.store-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  color: #f4f1ea;
  flex-shrink: 0;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.18);
  display: grid;
  place-items: center;
  padding: 0;
}

.store-brand-logo img,
.store-brand-logo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.store-brand-text {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.store-brand-script {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.store-brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.72;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}

.store-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.store-nav a:hover,
.store-nav a.is-active {
  color: #111111;
  background: var(--accent-soft);
}

.store-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

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

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #121212;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.header-user {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #111111;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 0.8rem 1.15rem;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.28);
}

.btn-gold {
  background: linear-gradient(135deg, #e0c35a, var(--gold));
  color: var(--night);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.3);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-block {
  width: 100%;
}

.store-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.page-home .store-main {
  width: 100%;
  max-width: none;
  padding: 0 0 3rem;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f5f1;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 12, 12, 0.72) 0%, rgba(12, 12, 12, 0.28) 46%, rgba(12, 12, 12, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.18), rgba(12, 12, 12, 0.55));
  z-index: 1;
}

.hero-look {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  filter: saturate(1.02) contrast(1.02);
}

.hero-media {
  background:
    linear-gradient(135deg, #1a1a1a, #2a3d36 55%, #111111);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 4.2rem;
  max-width: 640px;
  margin-inline-end: auto;
  margin-inline-start: max(1rem, calc((100% - 1180px) / 2 + 1rem));
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.95rem;
  line-height: 1;
}

.hero-brand-main {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-brand-rest {
  font-family: var(--font-brand);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(3.1rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: #fff;
  max-width: none;
}

.hero-text {
  color: rgba(247, 245, 241, 0.88);
  max-width: 32rem;
  line-height: 1.75;
  margin-bottom: 1.55rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-primary {
  min-width: 148px;
  padding: 0.95rem 1.35rem;
}

.hero-actions .btn-light {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.page-home .section {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  margin-top: 3.2rem;
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.section-head p,
.page-hero p {
  color: var(--muted);
}

.page-hero {
  margin: 0.4rem 0 1.4rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.category-link {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  color: #f7f5f1;
  border: 0;
  background: #1a1a1a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-link-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #111111, #111111 55%, #c9a227);
}

.category-link-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 0.55s ease;
  display: block;
}

.category-link-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.12) 0%, rgba(18, 18, 18, 0.78) 100%);
  pointer-events: none;
}

.category-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-link:hover .category-link-bg img {
  transform: scale(1.08);
}

.category-link-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
}

.category-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.78;
  letter-spacing: 0.04em;
}

.category-title {
  font-family: var(--font-brand);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.category-link small {
  color: rgba(247, 245, 241, 0.82);
  font-size: 0.95rem;
}

.section-promise {
  margin-top: 3.6rem;
}

.promise-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.7rem 1.6rem;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.96), rgba(17, 17, 17, 0.92)),
    var(--night);
  color: #f7f5f1;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.promise-copy h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.promise-copy p {
  color: rgba(247, 245, 241, 0.78);
  max-width: 40rem;
  line-height: 1.7;
}

.hide-mobile {
  display: inline-flex;
}

.show-mobile {
  display: none;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(17, 17, 17, 0.28);
}

.product-media {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, #e8e4dc, #f3f2ef);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-media-fallback {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 1rem;
}

.product-media-fallback.large {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: #e8e4dc;
  border-radius: 20px;
}

.product-body {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.product-cat {
  color: #555555;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-body h3 {
  font-size: 1.02rem;
  line-height: 1.4;
}

.product-stock,
.cart-stock-hint {
  margin: 0.35rem 0 0.55rem;
  color: var(--muted, #6b6b6b);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.product-price strong {
  color: #111111;
  font-size: 1.05rem;
}

.product-price s {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-price.large strong {
  font-size: 1.45rem;
}

.product-add-form {
  margin-top: auto;
}

.section-cta {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.filter-bar input,
.filter-bar select,
.field input,
.field select,
.field textarea,
.buy-row input,
.cart-qty-form input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
}

.filter-bar input,
.filter-bar select {
  width: auto;
  min-width: 180px;
  flex: 1;
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.type-tabs a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.type-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.product-gallery img#mainProductImage {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: #e8e4dc;
}

.gallery-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #e8e4dc;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0.4rem 0 0.7rem;
}

.product-desc {
  color: var(--muted);
  line-height: 1.75;
  margin: 0.9rem 0 1.1rem;
  white-space: pre-wrap;
}

.product-meta {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.product-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.product-meta span {
  color: var(--muted);
}

.buy-box label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.buy-row {
  display: flex;
  gap: 0.65rem;
}

.buy-row input {
  max-width: 110px;
}

.cart-layout,
.checkout-layout,
.account-grid,
.order-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 0.8rem;
}

.cart-item,
.panel-box,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.cart-item-media {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: #e8e4dc;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-qty-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.cart-qty-form input {
  width: 84px;
}

.cart-item-side {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.cart-summary h2,
.panel-box h2,
.auth-card h1 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.compact {
  font-size: 0.92rem;
}

.summary-row.total {
  border-bottom: 0;
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.summary-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.7rem 0 1rem;
  line-height: 1.5;
}

.cart-summary .btn + .btn {
  margin-top: 0.55rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.auth-section {
  min-height: calc(100dvh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}

.auth-card {
  width: min(440px, 100%);
  padding: 1.4rem 1.25rem 1.3rem;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.auth-switch {
  margin-top: 1rem;
  text-align: center;
}

.auth-switch a {
  color: #111111;
  font-weight: 800;
  text-decoration: underline;
}

.orders-list {
  display: grid;
  gap: 0.65rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.order-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.order-row > div:first-child {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.order-row span {
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-side {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-prep {
  background: rgba(210, 150, 40, 0.16);
  color: #9a6a00;
}

.status-ship {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.status-done {
  background: rgba(31, 138, 76, 0.14);
  color: #1f8a4c;
}

.status-rejected {
  background: rgba(192, 57, 43, 0.14);
  color: #a93226;
}

.order-rejected-box {
  margin-bottom: 1.1rem;
}

.order-rejected-box p {
  margin: 0.45rem 0 0;
  line-height: 1.6;
}

.track-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.track-step {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 0.8rem;
  text-align: center;
  color: var(--muted);
}

.track-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: #cfc8bb;
  margin-bottom: 0.45rem;
}

.track-step.is-done,
.track-step.is-current {
  color: var(--text);
  border-color: rgba(17, 17, 17, 0.35);
}

.track-step.is-done .track-dot,
.track-step.is-current .track-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.track-step.is-current {
  background: rgba(17, 17, 17, 0.1);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.alert-success {
  background: rgba(31, 138, 76, 0.12);
  color: var(--success);
}

.alert-error {
  background: rgba(192, 57, 43, 0.12);
  color: var(--danger);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.store-footer {
  margin-top: 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(165deg, #0e0e0e 0%, #121212 55%, #1a1a1a 100%);
  color: #e8e4dc;
}

.store-footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.6rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 1.6rem 1.4rem;
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #fff;
}

.footer-col a {
  color: rgba(232, 228, 220, 0.78);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.footer-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  background: #1a1a1a;
  padding: 2px;
  border: 2px solid rgba(201, 162, 39, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.footer-brand {
  display: grid;
  line-height: 1.05;
}

.footer-brand-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.8rem;
  color: #fff;
}

.footer-brand-rest {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-about {
  color: rgba(232, 228, 220, 0.72);
  line-height: 1.75;
  max-width: 28rem;
  margin-bottom: 0.7rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: rgba(17, 17, 17, 0.45);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800 !important;
  color: #fff !important;
}

.footer-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-whatsapp {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.16);
  color: #9af0b8 !important;
  width: fit-content;
}

.footer-muted {
  color: rgba(232, 228, 220, 0.55);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 228, 220, 0.55);
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

@keyframes washPulse {
  from { opacity: 1; }
  to { opacity: 0.92; }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 36px, 36px 72px; }
}

@keyframes lookDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-only {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 980px) {
  .store-header {
    position: sticky;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-bottom-color: var(--line);
  }

  .store-header .store-brand-script,
  .store-header .store-brand-name,
  .store-header .icon-btn,
  .store-header .menu-toggle,
  .store-header .header-user {
    color: var(--text);
  }

  .store-header .icon-btn,
  .store-header .menu-toggle,
  .store-header .btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
  }

  .store-header-home,
  .store-header-home.is-scrolled {
    position: sticky;
    background: rgba(18, 18, 18, 0.92);
    color: #f7f5f1;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .store-header-home .store-brand-script,
  .store-header-home .store-brand-name,
  .store-header-home .icon-btn,
  .store-header-home .menu-toggle,
  .store-header-home .header-user,
  .store-header-home.is-scrolled .store-brand-script,
  .store-header-home.is-scrolled .store-brand-name,
  .store-header-home.is-scrolled .icon-btn,
  .store-header-home.is-scrolled .menu-toggle,
  .store-header-home.is-scrolled .header-user {
    color: #f7f5f1 !important;
  }

  .store-header-home .icon-btn,
  .store-header-home .menu-toggle,
  .store-header-home .btn-ghost,
  .store-header-home.is-scrolled .icon-btn,
  .store-header-home.is-scrolled .menu-toggle,
  .store-header-home.is-scrolled .btn-ghost {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
  }

  .store-header-inner {
    width: calc(100% - 1rem);
    gap: 0.45rem;
    min-height: 64px;
  }

  .store-brand {
    flex: 1;
    min-width: 0;
    order: 1;
  }

  .store-header-actions {
    order: 2;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-inline-start: auto;
  }

  .store-brand-script {
    font-size: 1.15rem;
    color: inherit;
  }

  .store-brand-name {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    opacity: 0.8;
  }

  .store-brand-logo {
    width: 44px;
    height: 44px;
  }

  .desktop-only {
    display: none !important;
  }

  .nav-mobile-only {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .product-detail-grid,
  .cart-layout,
  .checkout-layout,
  .account-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .store-nav {
    display: none;
    position: fixed;
    top: 68px;
    right: 0.75rem;
    left: 0.75rem;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #fff !important;
    border: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.16);
    color: #161616 !important;
    max-height: calc(100dvh - 90px);
    overflow: auto;
  }

  .store-nav a,
  .store-nav.is-open a,
  .store-header-home .store-nav a,
  .store-header-home .store-nav.is-open a,
  .store-header-home.is-scrolled .store-nav a,
  .store-header-home .store-nav a:hover,
  .store-header-home .store-nav a.is-active {
    color: #161616 !important;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    font-size: 1rem;
    background: transparent !important;
  }

  .store-nav a.is-active,
  .store-nav.is-open a.is-active,
  .store-header-home .store-nav a.is-active,
  .store-header-home .store-nav.is-open a.is-active {
    color: #111111 !important;
    background: rgba(17, 17, 17, 0.08) !important;
  }

  .store-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--night);
  }

  .hero-media {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.75rem 1.25rem 2.75rem;
    overflow: visible;
  }

  .hero-media {
    min-height: 52vh;
  }

  .hero-look {
    position: absolute;
    animation: none;
    transform: scale(1.05);
  }

  .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    margin-inline: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    max-width: none;
    padding: 1.5rem 1.15rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(18, 18, 18, 0.99));
    border-radius: 0;
    box-sizing: border-box;
  }

  .hero-brand {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }

  .hero-brand-main {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .hero-brand-rest {
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 3.4rem);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0.15rem;
  }

  .hero-text {
    font-size: 0.98rem;
    margin-inline: auto;
    padding-inline: 0.15rem;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .page-home .section,
  .store-main {
    width: calc(100% - 1.2rem);
  }

  .section {
    margin-top: 2rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar .btn {
    width: 100%;
    min-width: 0;
  }

  .type-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .type-tabs a {
    flex: 0 0 auto;
  }

  .buy-row {
    flex-direction: column;
  }

  .buy-row input,
  .buy-row .btn {
    max-width: none;
    width: 100%;
  }

  .promise-band {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.1rem;
  }

  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: flex;
  }

  .category-link {
    min-height: 200px;
  }

  .auth-card {
    width: 100%;
  }

  .cart-summary,
  .panel-box,
  .cart-item {
    padding: 0.9rem;
  }

  .store-footer-inner {
    width: calc(100% - 1.2rem);
    padding: 2rem 0 1.2rem;
  }
}

@keyframes logoFloatMobile {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.02); }
}

@media (min-width: 641px) and (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

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

  .hero-content {
    padding: 1.8rem 1.4rem 2.4rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    flex: 1;
    width: auto;
  }

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

@media (max-width: 640px) {
  .product-grid,
  .category-strip,
  .track-steps {
    grid-template-columns: 1fr;
  }

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

  .product-body {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .product-body h3 {
    font-size: 0.98rem;
  }

  .product-add-form .btn,
  .btn {
    min-height: 44px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item-side {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .footer-logo {
    width: 56px;
    height: 56px;
  }

  .page-hero h1 {
    font-size: 1.45rem;
  }

  .order-row {
    flex-direction: column;
    align-items: stretch;
  }

  .order-row-side {
    justify-items: start;
    text-align: start;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .auth-section {
    padding: 0.5rem 0 1.5rem;
    min-height: auto;
  }

  .icon-btn,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
}

.checkout-section-title {
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.checkout-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.checkout-product-questions {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-product-name {
  display: block;
  margin-bottom: 0.7rem;
  color: #111111;
}

.optional-tag {
  margin-inline-start: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.checkout-addons {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.checkout-addons-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.checkout-addon {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.checkout-addon:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checkout-addon span {
  display: grid;
  gap: 0.15rem;
}

.checkout-addon small {
  color: var(--muted);
  font-weight: 700;
}

.addon-questions-block {
  display: none;
  margin: 0.15rem 0 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed var(--line);
}

.addon-questions-block.is-open {
  display: grid;
  gap: 0.55rem;
}

.addon-summary-row span {
  color: var(--muted);
}

.product-addons-preview,
.product-questions-preview {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.product-addons-preview h3,
.product-questions-preview h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.product-addons-preview ul,
.product-questions-preview ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.product-addons-preview li {
  display: grid;
  gap: 0.1rem;
}

.product-addons-preview li span {
  color: #111111;
  font-weight: 700;
}

.product-addons-preview li small {
  color: var(--muted);
}

.deposit-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.12), rgba(201, 162, 39, 0.14));
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.deposit-box strong {
  font-size: 1.15rem;
  color: #111111;
}

.pay-methods {
  display: grid;
  gap: 0.65rem;
}

.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.pay-method:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pay-method span {
  display: grid;
  gap: 0.2rem;
}

.pay-method small {
  color: var(--muted);
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

.product-questions-preview {
  margin: 0.9rem 0 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.16);
}

.product-questions-preview h3 {
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.product-questions-preview ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.payment-proof-box {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.payment-proof-box img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 14px;
  background: #f0ece4;
  border: 1px solid var(--line);
}

.answer-row {
  align-items: start;
}

.answer-row small {
  color: #111111;
  font-weight: 700;
}

.answer-image-link {
  display: inline-block;
  max-width: 160px;
}

.answer-image-link img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f0ece4;
}

.color-picker {
  margin: 1.15rem 0 0.15rem;
}

.color-picker-head,
.size-picker-label {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.color-picker-label {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.color-picker-selected {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.color-option {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 3px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-swatch {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #111;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.color-option:hover {
  transform: translateY(-1px);
}

.color-option:has(input:checked) {
  border-color: #111;
}

.color-option:has(input:focus-visible) {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.size-picker {
  margin: 1rem 0 1.1rem;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.size-option {
  position: relative;
  min-width: 52px;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.size-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.size-option.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f3f3f3;
  color: #9a9a9a;
}

.size-option.is-disabled .size-option-label {
  text-decoration: line-through;
}

.size-stock-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.size-stock-note.is-low {
  color: #9a6a00;
}

.size-stock-note.is-out {
  color: var(--danger);
}

.buy-box .buy-row {
  margin-bottom: 0.9rem;
  align-items: end;
}

.buy-box .buy-row label {
  margin: 0;
}

.product-media {
  aspect-ratio: 3 / 4;
}

.product-gallery img#mainProductImage {
  aspect-ratio: 3 / 4;
}

.category-link {
  border-radius: 18px;
  min-height: 260px;
}

.promise-band {
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.96), rgba(17, 17, 17, 0.92)),
    var(--night);
  border: 1px solid rgba(176, 141, 87, 0.28);
}

.store-footer {
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(17, 17, 17, 0.35), transparent 55%),
    linear-gradient(165deg, #0e0e0e 0%, #161616 55%, #1a1a1a 100%);
}

.footer-brand-script {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.footer-logo {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
}

.store-toast-host {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.65rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.store-toast {
  pointer-events: auto;
  background: #111111;
  color: #f7f5f1;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.store-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.store-toast-success {
  border-color: rgba(31, 138, 76, 0.55);
}

.store-toast-error {
  border-color: rgba(192, 57, 43, 0.55);
}

.store-toast-ship {
  border-color: rgba(201, 162, 39, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
