.welcome-card {
  margin: 40px 20px 12px;
  padding: 24px;
  border-radius: 16px;
}

.welcome-card h1 {
  color: var(--gold);
  font-size: 28px;
  line-height: 1.25;
}

.welcome-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.gold-button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0 30px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.28);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 20px 24px;
}

.product-card {
  aspect-ratio: 0.64;
  min-height: 0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  flex: 11;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #ececec;
}

.product-image img { object-fit: cover; }

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--ink);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.24);
  font-size: 12px;
  font-weight: 700;
}

.product-info {
  flex: 7;
  min-height: 0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-tag {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 12px;
  color: rgba(212, 175, 55, 0.9);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-brand {
  max-width: 100%;
  margin-top: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row { margin-top: auto; }

.old-price {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.final-price {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}

.route-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  background: rgba(245, 245, 245, 0.62);
  backdrop-filter: blur(8px);
}

.route-overlay[hidden],
.shell-dynamic.is-empty {
  display: none;
}

.route-overlay-card {
  min-width: 210px;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.route-overlay-card p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.route-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 3px solid rgba(212, 175, 55, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.shell-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.shell-bottom-nav button {
  min-height: 76px;
  padding: 7px 8px 8px;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.shell-bottom-nav .nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.shell-bottom-nav .nav-label {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
}

.shell-bottom-nav .is-active { color: var(--gold); }

.shell-bottom-nav .is-active .nav-label {
  font-size: 13px;
  font-weight: 500;
}

.legacy-splash {
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #f5f5f5, #eaeaea);
}

.legacy-splash-card {
  padding: 28px 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.legacy-splash-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #c6a15b, #f2d08f);
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.4);
}

.legacy-splash-mark::after {
  content: "";
  position: absolute;
  inset: -50% 20%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(20deg);
  animation: shimmer 1.6s infinite;
}

.legacy-splash-title {
  font-size: 18px;
  font-weight: 700;
}

.legacy-splash-subtitle,
.legacy-splash-error {
  font-size: 13px;
  color: #5f5f5f;
}

.legacy-splash-error,
.legacy-splash-retry,
.legacy-splash-copy {
  display: none;
}

.legacy-splash-error {
  margin-top: 8px;
  max-width: 280px;
  color: #c0392b;
  white-space: pre-wrap;
  word-break: break-word;
}

.legacy-splash-retry,
.legacy-splash-copy {
  margin-top: 12px;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
}

.legacy-splash-retry {
  border: 0;
  background: linear-gradient(135deg, #c6a15b, #f2d08f);
  color: #fff;
}

.legacy-splash-copy {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #1f1f1f;
}

@media (min-width: 900px) {
  .shell-logo { height: 120px; }
  .banner-frame { height: 300px; }
  .brand-list { justify-content: center; flex-wrap: wrap; overflow: visible; gap: 32px; }
  .brand-card { width: 200px; height: 260px; flex-basis: 200px; padding: 24px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .shell-topbar { padding-inline: 24px; }
  .shell-page { padding-bottom: 32px; }
  .banner-frame { height: 400px; }
  .welcome-card { margin-inline: 24px; padding: 28px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-inline: 24px; }
  .shell-bottom-nav { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fafafa;
    --muted: #b0b0b0;
    --page: #0d0d0d;
    --glass-border: rgba(255, 255, 255, 0.12);
  }

  .landing-shell { background: linear-gradient(135deg, #1a1a1a, #000); }
  .shell-topbar { background: linear-gradient(180deg, rgba(13, 13, 13, 0.94), rgba(13, 13, 13, 0)); }
  .brand-card,
  .welcome-card,
  .product-card,
  .route-overlay-card,
  .shell-bottom-nav { background: rgba(30, 30, 30, 0.88); }
  .banner-frame,
  .product-image,
  .brand-placeholder,
  .product-placeholder,
  .banner-placeholder { background: #1e1e1e; }
}

@keyframes shell-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

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

@keyframes shimmer {
  from { transform: translateX(-80%) rotate(20deg); }
  to { transform: translateX(120%) rotate(20deg); }
}

.shell-icon-button svg,
.shell-bottom-nav .nav-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.shell-link-button::after {
  content: '›';
  margin-inline-start: 6px;
  font-size: 16px;
  vertical-align: middle;
}

html[dir='rtl'] .shell-link-button::after {
  content: '‹';
}

html[dir='rtl'] .product-info {
  align-items: flex-end;
}

html[dir='rtl'] .shell-section-header {
  direction: rtl;
}

html[dir='ltr'] .shell-section-header {
  direction: ltr;
}
