/* Soko Africa — AliExpress-inspired storefront */
:root {
  --ae-red: #ff4747;
  --ae-red-dark: #e62e04;
  --ae-orange: #ff6a00;
  --ae-bg: #f5f5f5;
  --ae-text: #191919;
  --ae-muted: #757575;
  --ae-border: #ebebeb;
  --ae-star: #ffb800;
}

.ae-body,
body.ae-body {
  min-height: 100vh;
  color: var(--ae-text);
  -webkit-font-smoothing: antialiased;
  background: var(--ae-bg);
  background-image: none;
}
.ae-body a { text-decoration: none; color: inherit; }
.ae-body a:visited { color: inherit; }

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

.ae-main { background: var(--ae-bg); padding-bottom: env(safe-area-inset-bottom, 0); }

/* Layout container (Kilimall / Jumia-style max width) */
.ae-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (min-width: 768px) {
  .ae-container { padding-left: 1rem; padding-right: 1rem; }
}

/* Top utility bar */
.ae-topbar {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 0.7rem;
  color: var(--ae-muted);
}
.ae-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.ae-topbar__links {
  display: none;
  gap: 1rem;
}
.ae-topbar__links a {
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-topbar__links a:hover { color: var(--ae-red); }
@media (min-width: 640px) {
  .ae-topbar__links { display: flex; }
}

/* Header */
.ae-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--ae-border);
}
.ae-header__bar { background: #fff; }
.ae-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
@media (min-width: 768px) {
  .ae-header__inner { gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
}
.ae-header__logo {
  flex-shrink: 0;
  display: block;
}
.ae-header__logo img {
  height: 2rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}
@media (min-width: 768px) {
  .ae-header__logo img { height: 2.35rem; max-width: 9rem; }
}
.ae-search {
  flex: 1;
  min-width: 0;
  display: flex;
  max-width: 720px;
}
.ae-search__wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid var(--ae-border);
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 0 0.85rem;
  min-height: 2.5rem;
  transition: border-color 0.15s, background 0.15s;
}
.ae-search:focus-within .ae-search__wrap {
  background: #fff;
  border-color: var(--ae-red);
}
@media (min-width: 768px) { .ae-search__wrap { min-height: 2.65rem; } }
.ae-search__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--ae-text);
  outline: none;
}
.ae-search__input::placeholder { color: #aaa; }
.ae-search:focus-within .ae-search__btn { border-color: var(--ae-red); }
.ae-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-width: 2.75rem;
  background: var(--ae-red);
  color: #fff;
  border: 1px solid var(--ae-red);
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background 0.15s;
}
.ae-search__btn:hover { background: var(--ae-red-dark); }
.ae-header__actions { align-items: center; gap: 0.15rem; display: none; }
@media (min-width: 640px) {
  .ae-header__actions { display: flex; }
}
.ae-header__action-label { display: none; }
@media (min-width: 1024px) {
  .ae-header__action-label { display: inline; }
}
.ae-header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}
.ae-header__action:hover { color: var(--ae-red); background: #fff5f5; }
.ae-header__action--active { color: var(--ae-red); background: #fff0f0; }
.ae-header__action--cart { position: relative; }
.ae-header__cart-mobile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 0.5rem;
  color: var(--ae-text);
}
@media (min-width: 640px) {
  .ae-header__cart-mobile { display: none; }
}
.ae-header__cart-mobile--active { background: #fff0f0; color: var(--ae-red); }
@media (max-width: 639px) {
  .ae-header--pdp .ae-search { display: none; }
  .ae-header--pdp .ae-header__inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .ae-header--pdp .ae-header__logo img { height: 1.75rem; max-width: 6.5rem; }
}
.ae-header__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ae-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}
.ae-header__badge--sm { top: -2px; right: -4px; }

/* Category nav — pill tabs */
.ae-category-nav {
  background: #fff;
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid var(--ae-border);
}
.ae-category-nav__track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}
.ae-category-nav__track::-webkit-scrollbar { display: none; }
.ae-category-nav__item {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ae-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.ae-category-nav__item:hover {
  color: var(--ae-red);
  background: #fff8f8;
  border-color: #ffe0e0;
}
.ae-category-nav__item--hot { color: var(--ae-red); font-weight: 600; }
.ae-category-nav__item--active {
  color: var(--ae-red);
  background: #fff0f0;
  border-color: #ffc9c9;
  font-weight: 600;
}

/* Breadcrumb */
.ae-breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
}
.ae-breadcrumb-bar__link {
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-breadcrumb-bar__link:hover { color: var(--ae-red); }
.ae-breadcrumb-bar__sep { color: #ccc; user-select: none; }
.ae-breadcrumb-bar__current {
  color: var(--ae-text);
  font-weight: 600;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .ae-breadcrumb-bar__current { max-width: 24rem; }
}

/* Listing pages (shop / deals / category) */
.ae-listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border);
}
.ae-listing-head__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ae-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ae-listing-head__query {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ae-muted);
}
.ae-listing-head__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ae-muted);
  white-space: nowrap;
}
.ae-listing-grid { margin-top: 0; }

/* Page panel (cart, account, etc.) */
.ae-page-panel {
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
@media (min-width: 640px) {
  .ae-page-panel { padding: 1.25rem; }
}
.ae-page-panel .ae-tabs { margin-top: 0; margin-bottom: 1rem; }
.ae-page-panel .ae-page-head { margin-bottom: 0.5rem; }
.ae-page-panel .ae-page-head + .ae-alert { margin-top: 0.75rem; }
.ae-empty-state { text-align: center; padding: 2rem 1rem; }

/* Coupon tickets */
.ae-ticket {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-radius: 0.45rem;
  border: 1px dashed #ffc9c9;
  min-width: 0;
}
.ae-ticket--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ae-ticket--link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,71,71,0.12);
}
.ae-ticket__off { font-size: 0.8rem; font-weight: 800; color: var(--ae-red); line-height: 1.2; }
.ae-ticket__rule { font-size: 0.62rem; color: var(--ae-muted); line-height: 1.3; }
.ae-ticket__code { font-size: 0.68rem; font-weight: 700; color: var(--ae-orange); margin-top: 0.1rem; }

.ae-deals-strip {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #ff4747 0%, #ff6a00 100%);
  border-radius: 0.5rem;
  color: #fff;
}
.ae-deals-strip__head { margin-bottom: 0.65rem; }
.ae-deals-strip__title { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.ae-deals-strip__sub { font-size: 0.7rem; opacity: 0.9; margin-top: 0.1rem; }
.ae-deals-strip__coupons {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 640px) {
  .ae-deals-strip__coupons { grid-template-columns: repeat(3, 1fr); }
}
.ae-deals-strip .ae-ticket { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.97); }

/* Flash deals strip */
.ae-flash {
  background: #fff;
  border-bottom: 1px solid var(--ae-border);
  padding: 0.85rem 0;
}
.ae-flash__inner { }
.ae-flash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.ae-flash__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ae-red);
  letter-spacing: -0.02em;
}
.ae-flash__more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-flash__more:hover { color: var(--ae-red); }
.ae-flash__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (max-width: 639px) {
  .ae-flash__grid { grid-template-columns: repeat(2, 1fr); }
}
.ae-flash__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #fafafa;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ae-flash__item:hover {
  border-color: #ffc9c9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ae-flash__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #fff;
}
.ae-flash__img img { width: 100%; height: 100%; object-fit: cover; }
.ae-flash__price {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ae-red);
}

/* Hot categories grid */
.ae-hotcats {
  background: #fff;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--ae-border);
}
.ae-hotcats__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ae-text);
  margin-bottom: 0.75rem;
}
.ae-hotcats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem 0.5rem;
}
@media (min-width: 640px) {
  .ae-hotcats__grid { grid-template-columns: repeat(8, 1fr); gap: 0.75rem; }
}
.ae-hotcats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ae-text);
}
.ae-hotcats__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 1.25rem;
  transition: background 0.15s;
}
.ae-hotcats__item:hover .ae-hotcats__icon { background: #fff0f0; }
.ae-hotcats__label {
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  color: var(--ae-muted);
}
@media (min-width: 640px) {
  .ae-hotcats__label { font-size: 0.72rem; }
}

/* Hero / Big Sale — legacy (deals strip pages) */
.ae-hero { background: linear-gradient(180deg, #fff 0%, #fff8f5 100%); }
.ae-hero__grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .ae-hero__grid { grid-template-columns: 1fr 220px; gap: 1rem; }
}
.ae-hero__sale-banner {
  background: linear-gradient(135deg, #ff4747 0%, #ff6a00 55%, #ff8c42 100%);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #fff;
}
.ae-hero__sale-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.ae-hero__coupons {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 640px) {
  .ae-hero__coupons { grid-template-columns: repeat(3, 1fr); }
}
.ae-hero__coupons .ae-ticket {
  background: rgba(255,255,255,0.97);
  border-color: rgba(255,255,255,0.6);
}

.ae-hero__deals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ae-mini-deal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border);
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.ae-mini-deal:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ae-mini-deal__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #f9f9f9;
}
.ae-mini-deal__img img { width: 100%; height: 100%; object-fit: cover; }
.ae-mini-deal__price {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ae-red);
}
.ae-mini-deal__label { font-size: 0.6rem; color: var(--ae-muted); }

.ae-welcome-deal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.15s;
}
.ae-welcome-deal:hover { box-shadow: 0 6px 20px rgba(255,71,71,0.12); }
.ae-welcome-deal__tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ae-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ae-welcome-deal__img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f9f9f9;
}
.ae-welcome-deal__img img { width: 100%; height: 100%; object-fit: cover; }
.ae-welcome-deal__price { font-size: 1.25rem; font-weight: 800; color: var(--ae-red); }
.ae-welcome-deal__pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ae-orange);
  background: #fff3e6;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.25rem;
}
.ae-welcome-deal__cta { margin-top: 0.5rem; font-size: 0.65rem; color: var(--ae-muted); }

/* Trust strip */
.ae-trust {
  background: #fff;
  border-bottom: 1px solid var(--ae-border);
  padding: 0.85rem 0;
}
.ae-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .ae-trust__grid { grid-template-columns: repeat(4, 1fr); }
}
.ae-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--ae-muted);
  line-height: 1.35;
}
.ae-trust__item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--ae-text);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.ae-trust__dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: var(--ae-red);
}

/* Sections */
.ae-section { padding: 1.25rem 0; }
.ae-section--card {
  background: #fff;
  border-top: 1px solid var(--ae-border);
  border-bottom: 1px solid var(--ae-border);
}
.ae-section--super { background: #fff; }
.ae-section--more { background: var(--ae-bg); }
.ae-section__title--accent { color: var(--ae-red); }
.ae-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.ae-section__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ae-text);
  letter-spacing: -0.02em;
}
.ae-section__title--super { color: var(--ae-red); }
.ae-section__title--center { text-align: center; margin-bottom: 1rem; }
.ae-section__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-section__link:hover { color: var(--ae-red); }
.ae-section__sub { font-size: 0.75rem; color: var(--ae-muted); margin-bottom: 0.75rem; }
.ae-btn-outline {
  display: inline-flex;
  padding: 0.65rem 2rem;
  border: 1px solid var(--ae-red);
  border-radius: 999px;
  color: var(--ae-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ae-btn-outline:hover { background: var(--ae-red); color: #fff; }

/* Product grid */
.ae-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .ae-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
}
@media (min-width: 1024px) {
  .ae-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
}
.ae-product-grid--dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .ae-product-grid--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ae-product-grid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Product card */
.ae-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ae-product-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transform: none;
}
.ae-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f9f9f9;
  overflow: hidden;
}
.ae-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.ae-product-card:hover .ae-product-card__img { transform: none; }
.ae-product-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.65rem;
  color: #ccc;
}
.ae-product-card__badge {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  padding: 0.15rem 0.4rem;
  background: var(--ae-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0.25rem;
}
.ae-product-card__body { padding: 0.5rem 0.5rem 0.65rem; flex: 1; display: flex; flex-direction: column; }
.ae-product-card__title {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ae-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em;
}
.ae-product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.ae-product-card__price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ae-red);
}
.ae-product-card__was {
  font-size: 0.65rem;
  color: #bbb;
  text-decoration: line-through;
}
.ae-product-card__pct {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ae-orange);
}
.ae-product-card__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.62rem;
  color: var(--ae-muted);
  flex-wrap: wrap;
}
.ae-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--ae-star);
  font-weight: 600;
}
.ae-star { width: 0.7rem; height: 0.7rem; }
.ae-product-card__sold { color: #999; }

/* Footer */
.ae-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2.5rem 0 5.5rem;
  margin-top: 0;
}
@media (min-width: 768px) {
  .ae-footer { padding-bottom: 2rem; }
}
.ae-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ae-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ae-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
.ae-footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.ae-footer__logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.ae-footer__about {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #999;
}
.ae-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ae-footer__links li { margin-bottom: 0.45rem; }
.ae-footer__links a,
.ae-footer__btn-link {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.ae-footer__links a:hover,
.ae-footer__btn-link:hover { color: #fff; }
.ae-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.72rem;
  color: #777;
}
.ae-footer__legal { margin-top: 0.35rem; }
.ae-footer__legal a { color: #888; text-decoration: none; }
.ae-footer__legal a:hover { color: #fff; }
.ae-footer__legal span { margin: 0 0.35rem; }

/* Mobile nav */
.ae-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .ae-mobile-nav { display: none; }
}
.ae-mobile-nav__bar {
  display: flex;
  height: 3.5rem;
  align-items: stretch;
  justify-content: space-around;
  border-top: 1px solid var(--ae-border);
  background: #fff;
}
.ae-mobile-nav__icon { position: relative; display: block; }
.ae-mobile-nav__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-mobile-nav__item--active { color: var(--ae-red); }
.ae-mobile-nav__item svg { stroke: currentColor; }

/* Page shell & shared components */
.ae-page {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0.85rem 0.75rem 5.5rem;
}
@media (min-width: 768px) {
  .ae-page { padding: 1.25rem 1rem 2rem; }
}
.ae-page--narrow { max-width: 28rem; }
.ae-page--medium { max-width: 48rem; }
.ae-page--wide { max-width: 72rem; }

.ae-page-head { margin-bottom: 1rem; }
.ae-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ae-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .ae-page-title { font-size: 1.5rem; }
}
.ae-page-sub {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--ae-muted);
  line-height: 1.45;
}

.ae-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ae-muted);
  text-decoration: none;
}
.ae-breadcrumb:hover { color: var(--ae-red); }

.ae-card {
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ae-card--flat { box-shadow: none; }

.ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.ae-btn--block { display: flex; width: 100%; }
.ae-btn--lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
.ae-btn--sm { padding: 0.45rem 1rem; font-size: 0.75rem; }
.ae-btn--primary {
  background: var(--ae-red);
  color: #fff;
}
.ae-btn--primary:hover { background: var(--ae-red-dark); }
.ae-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ae-btn--secondary {
  background: #fff;
  color: var(--ae-text);
  border: 1px solid var(--ae-border);
}
.ae-btn--secondary:hover { border-color: var(--ae-red); color: var(--ae-red); }
.ae-btn--accent {
  background: linear-gradient(135deg, #ff4747 0%, #ff6a00 100%);
  color: #fff;
}
.ae-btn--accent:hover { opacity: 0.92; }

.ae-alert {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
}
.ae-alert--success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.ae-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ae-alert--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ae-alert--info { background: #fff5f5; color: #c42400; border: 1px solid #ffd0d0; }

.ae-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  scrollbar-width: none;
}
.ae-tabs::-webkit-scrollbar { display: none; }
.ae-tabs__item {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ae-tabs__item:hover { color: var(--ae-red); background: #fff5f5; }
.ae-tabs__item--active { background: var(--ae-red); color: #fff; }

.ae-form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ae-muted);
}
.ae-form-stack > * + * { margin-top: 0.85rem; }

.ae-empty {
  margin-top: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px dashed var(--ae-border);
}
.ae-empty__icon { font-size: 2.5rem; line-height: 1; opacity: 0.85; }
.ae-empty__title { margin-top: 0.75rem; font-weight: 700; color: var(--ae-text); }
.ae-empty__text { margin-top: 0.35rem; font-size: 0.8rem; color: var(--ae-muted); }

.ae-link { color: var(--ae-red); font-weight: 600; text-decoration: none; }
.ae-link:hover { text-decoration: underline; }
.ae-page-panel .ae-link { color: var(--ae-red); }

/* Cart */
.ae-cart-list { margin-top: 0.75rem; display: flex; flex-direction: column; }
.ae-cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  align-items: flex-start;
  border-bottom: 1px solid #f0f0f0;
}
.ae-cart-item:last-child { border-bottom: none; }
.ae-cart-item__img {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  object-fit: cover;
  background: #f9f9f9;
}
.ae-cart-item__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ae-text);
  text-decoration: none;
  line-height: 1.35;
}
.ae-cart-item__name:hover { color: var(--ae-red); }
.ae-cart-item__meta { margin-top: 0.25rem; font-size: 0.8rem; color: var(--ae-red); font-weight: 700; }
.ae-cart-item__actions { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ae-cart-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border);
}
.ae-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ae-text);
}
.ae-cart-summary__note { margin-top: 0.35rem; font-size: 0.7rem; color: var(--ae-muted); }

.ae-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ae-border);
  border-radius: 0.35rem;
  background: #fff;
  overflow: hidden;
}
.ae-qty__btn {
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--ae-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.ae-qty__btn:hover { background: #fff5f5; color: var(--ae-red); }
.ae-qty__input {
  width: 2.5rem;
  border: none;
  border-left: 1px solid var(--ae-border);
  border-right: 1px solid var(--ae-border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0;
  background: transparent;
}
.ae-qty__input:focus { outline: none; }

.ae-text-danger { color: #dc2626; font-size: 0.75rem; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; }
.ae-text-danger:hover { text-decoration: underline; }

/* Product detail (AliExpress-style) */
.ae-pdp { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .ae-pdp { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
.ae-pdp__gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  overflow: hidden;
}
.ae-pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.ae-pdp__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.ae-pdp__thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.35rem;
  border: 2px solid var(--ae-border);
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: border-color 0.15s, opacity 0.15s;
}
.ae-pdp__thumb--active { border-color: var(--ae-red); opacity: 1; }
.ae-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ae-pdp__panel { padding: 1rem; }
@media (min-width: 640px) { .ae-pdp__panel { padding: 1.25rem; } }
.ae-pdp__category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ae-muted);
}
.ae-pdp__badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  background: #fff3e6;
  color: var(--ae-orange);
  font-size: 0.7rem;
  font-weight: 800;
}
.ae-pdp__title {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ae-text);
  word-break: break-word;
}
@media (min-width: 640px) { .ae-pdp__title { font-size: 1.35rem; } }
.ae-pdp__rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ae-muted);
  flex-wrap: wrap;
}
.ae-pdp__rating { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--ae-star); font-weight: 700; }
.ae-pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.ae-pdp__price { font-size: 1.75rem; font-weight: 800; color: var(--ae-red); line-height: 1; }
@media (min-width: 640px) { .ae-pdp__price { font-size: 2rem; } }
.ae-pdp__was { font-size: 0.9rem; color: #bbb; text-decoration: line-through; }
.ae-pdp__stock { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; }
.ae-pdp__stock--in { color: #16a34a; }
.ae-pdp__stock--out { color: #dc2626; }
.ae-pdp__summary { margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.55; color: var(--ae-muted); }
.ae-pdp__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ae-pdp__trust-item {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--ae-muted);
  border-radius: 0.35rem;
  background: #fafafa;
  border: 1px solid var(--ae-border);
}
.ae-pdp__trust-item strong { display: block; font-size: 0.7rem; color: var(--ae-text); margin-bottom: 0.15rem; }
.ae-pdp__details {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border);
}
@media (min-width: 640px) {
  .ae-pdp__details { padding: 1.25rem 1.5rem; }
}
.ae-pdp__details h2 { font-size: 1rem; font-weight: 800; color: var(--ae-text); margin-bottom: 0.5rem; }
.ae-pdp__gallery-main--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.85rem;
}
.ae-pdp__sold { color: var(--ae-muted); }
.ae-pdp__stock-qty { font-weight: 400; color: var(--ae-muted); }
.ae-pdp__price-block { margin-top: 0.5rem; }
.ae-pdp__trust-item span { display: block; }
.ae-pdp__trust-link { color: var(--ae-muted); text-decoration: underline; text-underline-offset: 2px; }
.ae-pdp__trust-link:hover { color: var(--ae-red); }

/* PDP shell */
.ae-pdp-shell {
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
@media (min-width: 640px) {
  .ae-pdp-shell { padding: 1.25rem; }
}

.ae-pdp-topbar,
.ae-pdp-sticky { display: none; }
.ae-pdp-breadcrumb-desktop { display: block; }

.ae-pdp__buy { background: #fff; border-radius: 0.5rem; }
.ae-pdp__cart-form { margin-top: 1rem; }
.ae-pdp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ae-pdp-qty-label { margin: 0; }
.ae-pdp__add-btn { margin-top: 0.85rem; }

.ae-pdp__options { margin-top: 0.85rem; }
.ae-pdp__options-label { display: block; margin-bottom: 0.25rem; }
.ae-pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ae-pdp-variant {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--ae-text);
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.35rem;
  cursor: pointer;
}
.ae-pdp-variant span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}
.ae-pdp-variant:has(input:checked) {
  border-color: var(--ae-red);
  background: #fff5f5;
  color: var(--ae-red);
  font-weight: 600;
}
.ae-pdp-variant--disabled { opacity: 0.45; cursor: not-allowed; }
.ae-pdp-variant input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ae-pdp__more { margin-top: 1.25rem; }
.ae-pdp__more-grid { margin-top: 0.65rem; }

/* Collapsible details (mobile); open section on desktop */
.ae-pdp-details-fold {
  margin-top: 1rem;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  background: #fafafa;
  overflow: hidden;
}
.ae-pdp-details-fold__summary {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ae-text);
  cursor: pointer;
  list-style: none;
}
.ae-pdp-details-fold__summary::-webkit-details-marker { display: none; }
.ae-pdp-details-fold__summary::after {
  content: '›';
  float: right;
  color: var(--ae-muted);
  transform: rotate(90deg);
  transition: transform 0.15s;
}
.ae-pdp-details-fold:not([open]) .ae-pdp-details-fold__summary::after {
  transform: rotate(0deg);
}
.ae-pdp-details-fold__body.ae-pdp__details {
  margin-top: 0;
  padding: 0 1rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0;
}
@media (min-width: 640px) {
  .ae-pdp-details-fold { border: none; background: transparent; }
  .ae-pdp-details-fold__summary { display: none; }
  .ae-pdp-details-fold__body.ae-pdp__details {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border: 1px solid var(--ae-border);
    border-radius: 0.5rem;
  }
  .ae-pdp-details-fold__body.ae-pdp__details::before {
    content: 'Product details';
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ae-text);
    margin-bottom: 0.5rem;
  }
}

/* ——— Mobile PDP (Jumia / AliExpress pattern) ——— */
@media (max-width: 639px) {
  .ae-page--pdp {
    padding: 0 0 calc(7.5rem + env(safe-area-inset-bottom, 0));
    max-width: 100%;
  }
  .ae-category-nav--pdp { display: none; }

  .ae-pdp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border-bottom: 1px solid var(--ae-border);
  }
  .ae-pdp-topbar__back,
  .ae-pdp-topbar__spacer {
    flex-shrink: 0;
    min-width: 4.5rem;
  }
  .ae-pdp-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ae-red);
    text-decoration: none;
    padding: 0.35rem 0.25rem;
  }
  .ae-pdp-topbar__title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ae-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ae-pdp-topbar__spacer { display: block; }

  .ae-pdp-breadcrumb-desktop { display: none; }

  .ae-pdp-shell {
    padding: 0;
    border: none;
    box-shadow: none;
    background: var(--ae-bg);
  }

  .ae-pdp {
    display: block;
    gap: 0;
  }

  .ae-pdp__media {
    background: #fff;
    padding-bottom: 0.5rem;
  }
  .ae-pdp__gallery-main {
    aspect-ratio: 1;
    max-height: min(92vw, 360px);
    margin: 0 auto;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--ae-border);
  }
  .ae-pdp__gallery-main img { padding: 0.5rem; }
  .ae-pdp__thumbs {
    margin-top: 0.5rem;
    padding: 0 0.65rem;
    gap: 0.4rem;
  }
  .ae-pdp__thumb { width: 3rem; height: 3rem; }

  .ae-pdp__buy {
    margin-top: 0.5rem;
    padding: 0.75rem 0.85rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border: none;
    border-top: 1px solid var(--ae-border);
  }

  .ae-pdp__head { margin-bottom: 0.35rem; }
  .ae-pdp__category { font-size: 0.65rem; margin: 0; }
  .ae-pdp__badge { font-size: 0.62rem; margin-top: 0.3rem; padding: 0.15rem 0.45rem; }
  .ae-pdp__title {
    font-size: 0.88rem;
    line-height: 1.38;
    margin-top: 0.35rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ae-pdp__rating-row {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    gap: 0.4rem;
  }

  .ae-pdp__price-block {
    padding: 0.65rem 0.75rem;
    background: #fff9f9;
    border-radius: 0.4rem;
    border: 1px solid #ffe0e0;
    margin-top: 0.5rem;
  }
  .ae-pdp__price-row { margin-top: 0; }
  .ae-pdp__price { font-size: 1.25rem; }
  .ae-pdp__was { font-size: 0.75rem; }
  .ae-pdp__stock { margin-top: 0.35rem; font-size: 0.72rem; }

  .ae-pdp__options { margin-top: 0.75rem; }
  .ae-pdp__options-label { font-size: 0.75rem; }
  .ae-pdp-variant {
    font-size: 0.68rem;
    padding: 0.32rem 0.5rem;
  }
  .ae-pdp-variant span { max-width: 9rem; }

  .ae-pdp__cart-form { margin-top: 0.75rem; }
  .ae-pdp-qty-row {
    padding: 0.5rem 0;
    border-top: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
    margin-bottom: 0;
  }
  .ae-pdp-qty-label { font-size: 0.75rem; }
  .ae-pdp__add-btn--desktop { display: none; }

  .ae-pdp__trust {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .ae-pdp__trust::-webkit-scrollbar { display: none; }
  .ae-pdp__trust-item {
    flex: 0 0 auto;
    min-width: 6.5rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.62rem;
    text-align: left;
  }
  .ae-pdp__trust-item strong {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
  }

  .ae-pdp-details-fold {
    margin: 0.5rem 0.85rem 0;
    border-radius: 0.4rem;
  }
  .ae-pdp-details-fold__summary { font-size: 0.82rem; padding: 0.75rem 0.85rem; }
  .ae-pdp-details-fold__body.ae-pdp__details { padding: 0 0.85rem 0.85rem; }
  .product-prose { font-size: 0.76rem; line-height: 1.5; }

  .ae-pdp__more {
    margin-top: 0.75rem;
    padding: 0 0.65rem;
  }
  .ae-page--pdp .ae-section-title {
    font-size: 0.88rem;
    padding: 0 0.2rem;
  }
  .ae-pdp__more-grid { gap: 0.4rem; }

  .ae-page--pdp .ae-product-card__title {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    min-height: 1.7em;
  }
  .ae-page--pdp .ae-product-card__price { font-size: 0.82rem; }
  .ae-page--pdp .ae-product-card__body { padding: 0.35rem 0.4rem 0.45rem; }
  .ae-page--pdp .ae-product-card__meta { font-size: 0.58rem; }

  /* Sticky add-to-cart above bottom nav */
  .ae-pdp-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
    z-index: 45;
    background: #fff;
    border-top: 1px solid var(--ae-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .ae-pdp-sticky__inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  .ae-pdp-sticky__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .ae-pdp-sticky__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ae-red);
    line-height: 1.1;
  }
  .ae-pdp-sticky__was {
    font-size: 0.68rem;
    color: #bbb;
    text-decoration: line-through;
  }
  .ae-pdp-sticky__btn {
    flex-shrink: 0;
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    white-space: nowrap;
  }
  .ae-pdp-sticky__btn:disabled { opacity: 0.5; }
}

/* Minimal layout utilities (used across views) */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.min-w-0 { min-width: 0; }
.grid { display: grid; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Checkout & pay */
.ae-checkout-total {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  font-size: 0.85rem;
  color: var(--ae-text);
}
.ae-checkout-total strong { color: var(--ae-red); font-size: 1.1rem; }

.ae-pay-card {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}
.ae-pay-card__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff5f5;
  font-size: 1.75rem;
}
.ae-pay-card__amount {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ae-red);
}

/* Orders */
.ae-order-card { margin-top: 1.25rem; padding: 1rem; text-align: left; }
.ae-order-card__number { font-family: ui-monospace, monospace; font-size: 0.85rem; font-weight: 700; color: var(--ae-text); }
.ae-order-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ae-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.ae-order-row:hover { border-color: #ffd0d0; }

.ae-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ae-badge--pending { background: #fef3c7; color: #92400e; }
.ae-badge--paid { background: #fff5f5; color: #c42400; }
.ae-badge--processing { background: #dbeafe; color: #1e40af; }
.ae-badge--shipped { background: #e0e7ff; color: #3730a3; }
.ae-badge--delivered, .ae-badge--completed { background: #dcfce7; color: #166534; }
.ae-badge--cancelled, .ae-badge--refunded { background: #f4f4f5; color: #52525b; }
.ae-badge--failed { background: #fee2e2; color: #991b1b; }

/* Filter chips (shop page) */
.ae-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ae-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ae-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ae-text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ae-chip:hover { border-color: var(--ae-red); color: var(--ae-red); }
.ae-chip--active { background: var(--ae-red); border-color: var(--ae-red); color: #fff; }
.ae-chip--active:hover { color: #fff; opacity: 0.92; }
.ae-chip__count { opacity: 0.75; font-weight: 500; margin-left: 0.15rem; }

/* Legacy / shared */
.ui-card {
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border, #ebebeb);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ui-panel {
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border, #ebebeb);
  background: #fff;
}
.ui-input {
  border-radius: 0.5rem;
  border: 1px solid var(--ae-border, #ebebeb);
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  width: 100%;
}
.ui-input:focus {
  outline: none;
  border-color: var(--ae-red, #ff4747);
  box-shadow: 0 0 0 2px rgba(255, 71, 71, 0.15);
}
.bg-hero-gradient {
  background: linear-gradient(135deg, #ff4747 0%, #ff6a00 100%);
}
.bg-accent-gradient {
  background: linear-gradient(135deg, #ff4747 0%, #e62e04 100%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
}
.product-prose {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #3f3f46;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: hidden;
}
.product-prose * { max-width: 100% !important; box-sizing: border-box; }
.product-prose img { max-width: 100%; height: auto !important; border-radius: 0.5rem; margin: 0.75rem 0; }
.product-prose table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.product-prose td, .product-prose th { padding: 0.35rem 0.5rem; border: 1px solid var(--ae-border); font-size: 0.8rem; }
.gallery-thumb { cursor: pointer; }
#gallery-main { transition: opacity 0.15s ease; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aspect-square { aspect-ratio: 1 / 1; }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* PWA install toast — footer link only, no phone graphic */
.soko-pwa-toast {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(18rem, calc(100vw - 1.5rem));
}
.soko-pwa-toast__card {
  position: relative;
  padding: 0.85rem 1rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #ffd0d0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.soko-pwa-toast__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 999px;
  background: #f5f5f5;
  color: #71717a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.soko-pwa-toast__title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #191919;
  padding-right: 1.5rem;
}
.soko-pwa-toast__desc {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #52525b;
}
.soko-pwa-toast__install {
  display: flex;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff4747 0%, #e62e04 100%);
  cursor: pointer;
}
.soko-pwa-toast__hint {
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #c42400;
  background: #fff5f5;
  border-radius: 0.35rem;
}
@media (min-width: 768px) {
  .soko-pwa-toast {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    transform: none;
  }
}

/* Admin */
.ae-admin-guest {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(165deg, #f5f5f5 0%, #fff5f5 50%, #f5f5f5 100%);
}
.ae-admin-guest__wrap {
  width: 100%;
  max-width: 24rem;
}
.ae-admin-guest__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ae-admin-guest__logo {
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}
.ae-admin-guest__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
}
.ae-admin-login__card { text-align: left; }
.ae-admin-login__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  background: #fff0f0;
  color: var(--ae-red);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ae-admin-login__hint {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ae-border);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--ae-muted);
  text-align: center;
}
.ae-admin-login__hint code {
  font-size: 0.65rem;
  background: #fafafa;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  color: var(--ae-text);
}

.ae-admin-bar {
  background: #fff;
  border-bottom: 1px solid var(--ae-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.ae-admin-bar__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ae-admin-bar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ae-admin-bar__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ae-red);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.ae-admin-bar__nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.ae-admin-bar__link {
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ae-admin-bar__link:hover { color: var(--ae-red); background: #fff5f5; }
.ae-admin-bar__link--active { color: var(--ae-red); background: #fff0f0; }
.ae-admin-bar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.ae-admin-bar__email { color: var(--ae-muted); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-admin-bar__logout {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
}
.ae-admin-bar__logout:hover { text-decoration: underline; }
.ae-admin-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 3.5rem);
}
@media (min-width: 640px) {
  .ae-admin-main { padding: 1.25rem 1rem 2rem; }
}
.ae-admin-page { max-width: 56rem; }
.ae-admin-page--wide { max-width: none; }
.ae-admin-flash { margin-bottom: 1rem; }

.ae-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ae-admin-head__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ae-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ae-admin-head__sub { margin-top: 0.25rem; font-size: 0.8rem; color: var(--ae-muted); }

.ae-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
}
.ae-admin-tabs__item {
  padding: 0.45rem 0.85rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ae-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ae-admin-tabs__item:hover { color: var(--ae-red); background: #fff8f8; }
.ae-admin-tabs__item--active { background: var(--ae-red); color: #fff; }

.ae-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .ae-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .ae-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ae-stat-grid--7 { }
@media (min-width: 1200px) {
  .ae-stat-grid--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ae-stat-card {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ae-stat-card__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ae-text);
  line-height: 1.2;
}
.ae-stat-card__value--red { color: var(--ae-red); }
.ae-stat-card__value--green { color: #16a34a; }
.ae-stat-card__label { margin-top: 0.25rem; font-size: 0.68rem; color: var(--ae-muted); }

.ae-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.ae-stat-mini {
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.45rem;
  font-size: 0.8rem;
}
.ae-stat-mini span { display: block; font-size: 0.68rem; color: var(--ae-muted); margin-bottom: 0.15rem; }
.ae-stat-mini strong { font-weight: 800; color: var(--ae-text); }

.ae-panel {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ae-panel__head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ae-border);
  background: #fafafa;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ae-text);
}
.ae-panel__body { padding: 0; }
.ae-panel__body--padded { padding: 1rem; }
.ae-panel__empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ae-muted);
}

.ae-table-wrap { overflow-x: auto; }
.ae-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.ae-table th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ae-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--ae-border);
}
.ae-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.ae-table tr:hover td { background: #fffafa; }
.ae-table .mono { font-family: ui-monospace, monospace; font-size: 0.72rem; }

.ae-select {
  border-radius: 0.35rem;
  border: 1px solid var(--ae-border);
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  background: #fff;
  color: var(--ae-text);
}
.ae-select:focus { outline: none; border-color: var(--ae-red); }

.ae-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.ae-toolbar .ui-input { max-width: 20rem; flex: 1; min-width: 10rem; padding: 0.5rem 0.75rem; font-size: 0.8rem; }

.ae-detail-grid {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: #fffafa;
  border-top: 1px solid var(--ae-border);
}
@media (min-width: 900px) {
  .ae-detail-grid { grid-template-columns: 1fr 1fr; }
}
.ae-pre {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.35rem;
  background: #f5f5f5;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ae-text);
}

.ae-cj-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-bottom: 1px solid #f5f5f5;
}
.ae-cj-item:last-child { border-bottom: none; }
.ae-cj-item__img {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #f9f9f9;
  border: 1px solid var(--ae-border);
}
.ae-cj-item__img img { width: 100%; height: 100%; object-fit: cover; }
.ae-cj-item__name { font-size: 0.85rem; font-weight: 600; line-height: 1.35; color: var(--ae-text); }
.ae-cj-item__meta { margin-top: 0.25rem; font-size: 0.72rem; color: var(--ae-muted); }
.ae-cj-item__price { color: var(--ae-red); font-weight: 700; }

.ae-role-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fff0f0;
  color: var(--ae-red);
}
.ae-role-badge--customer { background: #f4f4f5; color: #52525b; }

.ae-details summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ae-text);
  list-style: none;
}
.ae-details summary::-webkit-details-marker { display: none; }
.ae-details { background: #fff; border: 1px solid var(--ae-border); border-radius: 0.5rem; margin-top: 1.25rem; overflow: hidden; }
.ae-details__body { padding: 1rem; border-top: 1px solid var(--ae-border); }

.ae-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: var(--ae-muted);
}
.ae-pagination__links { display: flex; gap: 0.35rem; }
