:root {
  --ds-red: #df1010;
  --ds-red-dark: #b70c0c;
  --ds-black: #111214;
  --ds-ink: #25262a;
  --ds-muted: #6c7078;
  --ds-line: #e7e8eb;
  --ds-soft: #f5f6f8;
  --ds-soft-2: #fafafa;
  --ds-white: #fff;
  --ds-green: #11864b;
  --ds-shadow: 0 14px 36px rgba(17, 18, 20, .08);
  --ds-shadow-sm: 0 8px 22px rgba(17, 18, 20, .06);
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

body {
  background: var(--ds-white) !important;
  color: var(--ds-ink);
}

body,
button,
input,
select,
textarea {
  font-family: "Tajawal", "Cairo", Arial, sans-serif;
}

.ds-page {
  direction: rtl;
  background: var(--ds-white);
  color: var(--ds-ink);
}

.ds-shell {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.ds-section {
  padding: 70px 0;
}

.ds-section-soft {
  background: var(--ds-soft);
}

.ds-eyebrow {
  color: var(--ds-red);
  font: 800 13px/1.2 "Cairo", sans-serif;
  margin-bottom: 10px;
}

.ds-title {
  color: var(--ds-black);
  font: 900 clamp(28px, 4vw, 46px)/1.25 "Cairo", sans-serif;
  margin: 0;
}

.ds-muted {
  color: var(--ds-muted);
  line-height: 1.8;
}

.ds-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 20px;
  font: 800 14px "Cairo", sans-serif;
  border: 1px solid transparent;
  transition: .2s ease;
}

.ds-btn-red,
.ds-primary {
  background: var(--ds-red);
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(223, 16, 16, .22);
}

.ds-btn-red:hover,
.ds-primary:hover {
  background: var(--ds-red-dark);
  transform: translateY(-2px);
}

.ds-btn-light,
.ds-secondary {
  background: #fff;
  color: var(--ds-black) !important;
  border-color: var(--ds-line);
}

.ds-btn-light:hover,
.ds-secondary:hover {
  border-color: var(--ds-red);
  color: var(--ds-red) !important;
}

.ds-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.ds-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fff 0%, #f6f7f9 58%, #fff 100%);
  border-bottom: 1px solid var(--ds-line);
}

.ds-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 55%, rgba(223,16,16,.10) 55% 57%, transparent 57%),
    radial-gradient(circle at 78% 18%, rgba(223,16,16,.08), transparent 28%);
  pointer-events: none;
}

.ds-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  min-height: 620px;
  padding: 46px 0;
}

.ds-hero-content {
  max-width: 610px;
  padding: 30px 0;
}

.ds-hero h1 {
  color: var(--ds-black);
  font: 900 clamp(38px, 6vw, 70px)/1.15 "Cairo", sans-serif;
  margin: 0 0 18px;
}

.ds-hero h1 span {
  color: var(--ds-red);
}

.ds-hero p {
  color: #40434a;
  font-size: 18px;
  line-height: 1.9;
  max-width: 560px;
  margin: 0 0 26px;
}

.ds-hero-visual {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 58px rgba(17,18,20,.13);
  border: 1px solid rgba(17,18,20,.08);
  min-height: 430px;
}

.ds-hero-visual picture,
.ds-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-hero-visual img {
  min-height: 430px;
  object-fit: cover;
  object-position: 34% center;
}

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

.ds-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-black);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17,18,20,.05);
}

.ds-hero-trust i {
  color: var(--ds-red);
}

.ds-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-trust-grid,
.ds-feature-grid,
.ds-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ds-trust-card,
.ds-feature-card,
.ds-review-card,
.ds-panel {
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  box-shadow: var(--ds-shadow-sm);
}

.ds-trust-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.ds-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--ds-red);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ds-trust-card strong,
.ds-feature-card strong,
.ds-review-card strong {
  display: block;
  color: var(--ds-black);
  font: 800 15px "Cairo", sans-serif;
}

.ds-trust-card span,
.ds-feature-card span,
.ds-review-card p {
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ds-category-grid,
.ds-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.ds-category-card {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #151618;
  box-shadow: var(--ds-shadow-sm);
}

.ds-category-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: .82;
  transition: transform .35s ease;
}

.ds-category-card:hover img {
  transform: scale(1.04);
}

.ds-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.78), transparent 62%);
}

.ds-category-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  left: 18px;
  bottom: 16px;
  color: #fff;
}

.ds-category-copy strong {
  display: block;
  font: 900 20px "Cairo", sans-serif;
}

.ds-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ds-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.ds-card-media {
  position: relative;
  aspect-ratio: 1 / .92;
  background: #f1f2f4;
  overflow: hidden;
}

.ds-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s ease;
}

.ds-card:hover .ds-card-media img {
  transform: scale(1.035);
}

.ds-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #9a9da5;
  text-align: center;
  gap: 8px;
}

.ds-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ds-red);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: 800 11px "Cairo", sans-serif;
  z-index: 2;
}

.ds-card-body {
  padding: 14px;
}

.ds-card-cat {
  color: var(--ds-muted);
  font: 700 12px "Cairo", sans-serif;
  margin-bottom: 6px;
}

.ds-card-title {
  color: var(--ds-black);
  font: 800 16px/1.45 "Cairo", sans-serif;
  margin: 0 0 8px;
  min-height: 46px;
}

.ds-stars {
  color: #f5a400;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ds-price {
  color: var(--ds-red);
  font: 900 20px "Cairo", sans-serif;
}

.ds-old-price {
  color: #9a9da5;
  text-decoration: line-through;
  font-size: 13px;
  margin-inline-start: 7px;
}

.ds-card-cta {
  width: 100%;
  margin-top: 12px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--ds-black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 800 13px "Cairo", sans-serif;
}

.ds-card-cta:hover {
  background: var(--ds-red);
}

.ds-banner {
  background: var(--ds-black);
  color: #fff;
  border-radius: 8px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.ds-banner h2 {
  color: #fff;
  font: 900 clamp(26px, 4vw, 42px) "Cairo", sans-serif;
  margin: 0 0 8px;
}

.ds-banner p {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.ds-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.ds-sidebar {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.ds-filter-group {
  border-bottom: 1px solid var(--ds-line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.ds-filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.ds-filter-group h3 {
  color: var(--ds-black);
  font: 900 15px "Cairo", sans-serif;
  margin: 0 0 12px;
}

.ds-check-list {
  display: grid;
  gap: 10px;
}

.ds-check {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ds-muted);
  font-size: 14px;
}

.ds-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ds-select,
.ds-input,
.ds-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ds-black);
  padding: 10px 12px;
  font: 600 14px "Tajawal", sans-serif;
}

.ds-input:focus,
.ds-select:focus,
.ds-textarea:focus {
  outline: none;
  border-color: var(--ds-red);
  box-shadow: 0 0 0 3px rgba(223, 16, 16, .09);
}

.ds-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-muted);
  font-size: 13px;
  padding-top: 28px;
}

.ds-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
  align-items: start;
}

.ds-gallery-main {
  aspect-ratio: 1 / .78;
  background: #f1f2f4;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.ds-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.ds-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.ds-thumb {
  border: 1px solid var(--ds-line);
  background: #fff;
  border-radius: 8px;
  aspect-ratio: 1;
  padding: 4px;
}

.ds-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ds-detail-info {
  padding: 24px;
}

.ds-detail-title {
  color: var(--ds-black);
  font: 900 clamp(28px, 4vw, 44px)/1.25 "Cairo", sans-serif;
  margin: 10px 0;
}

.ds-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-green);
  background: #eefaf3;
  border: 1px solid #ccefd9;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.ds-quantity {
  display: inline-flex;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ds-quantity button,
.ds-quantity input {
  width: 46px;
  height: 44px;
  border: 0;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.ds-quantity button:hover {
  background: var(--ds-soft);
}

.ds-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.ds-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ds-muted);
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.ds-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.ds-tab {
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  color: var(--ds-black);
}

.ds-tab.active {
  background: var(--ds-black);
  color: #fff;
}

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

.ds-form-field label {
  display: block;
  color: var(--ds-black);
  font: 800 13px "Cairo", sans-serif;
  margin-bottom: 7px;
}

.ds-form-field.full {
  grid-column: 1 / -1;
}

.ds-cart-layout,
.ds-checkout-grid,
.ds-auth-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.ds-cart-items,
.ds-summary,
.ds-form-card,
.ds-auth-card {
  padding: 22px;
}

.ds-cart-item,
.ds-summary-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--ds-line);
  padding: 16px 0;
}

.ds-summary-item {
  grid-template-columns: 58px 1fr auto;
  padding: 12px 0;
}

.ds-cart-item:first-child,
.ds-summary-item:first-child {
  padding-top: 0;
}

.ds-item-img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ds-soft);
}

.ds-summary-item .ds-item-img {
  width: 58px;
  height: 58px;
}

.ds-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ds-item-name {
  color: var(--ds-black);
  font: 900 16px "Cairo", sans-serif;
}

.ds-item-meta {
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.ds-summary-row.total {
  border-bottom: 0;
  color: var(--ds-black);
  font: 900 19px "Cairo", sans-serif;
}

.ds-empty {
  text-align: center;
  padding: 54px 20px;
}

.ds-empty i {
  color: var(--ds-red);
  font-size: 42px;
  margin-bottom: 16px;
}

.ds-payment-box,
.ds-delivery-choice {
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.ds-delivery-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.ds-delivery-choice {
  cursor: pointer;
}

.ds-delivery-choice.active {
  border-color: var(--ds-red);
  background: #fff5f5;
}

.ds-auth-page {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 42px 0;
  background: linear-gradient(135deg, var(--ds-soft), #fff);
}

.ds-auth-grid {
  width: min(980px, calc(100% - 32px));
  grid-template-columns: .9fr 1.1fr;
}

.ds-auth-brand {
  background: var(--ds-black);
  color: #fff;
  border-radius: 8px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
}

.ds-auth-brand img {
  max-width: 180px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.ds-auth-brand h1 {
  color: #fff;
  font: 900 34px "Cairo", sans-serif;
  margin: 24px 0 8px;
}

.ds-auth-brand p,
.ds-auth-brand li {
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}

.ds-auth-card h2 {
  color: var(--ds-black);
  font: 900 28px "Cairo", sans-serif;
  margin: 0 0 8px;
}

.ds-alert {
  border: 1px solid #ffd0d0;
  background: #fff5f5;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Compact storefront layout inspired by mobile-first marketplace homepages */
.ds-home-compact {
  background: #fff;
}

.ds-compact-hero {
  padding: 18px 0 16px;
  background:
    linear-gradient(180deg, rgba(17,18,20,.04), rgba(255,255,255,0) 74%),
    #fff;
}

.ds-hero-stage {
  width: min(100%, 1100px);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 10%, rgba(223,16,16,.32), transparent 28%),
    linear-gradient(135deg, #0a0a0b 0%, #17181b 52%, #0a0a0b 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 46px rgba(17,18,20,.2);
}

.ds-hero-stage::before {
  content: "";
  position: absolute;
  inset-inline: 22px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ds-red), transparent);
}

.ds-hero-stage::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 260px;
  height: 260px;
  border: 48px solid rgba(223,16,16,.12);
  border-radius: 50%;
  pointer-events: none;
}

.ds-hero-banner {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f3f5;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
}

.ds-hero-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 2.65 / 1;
  object-fit: cover;
}

.ds-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  padding: 8px 6px 2px;
}

.ds-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(223,16,16,.16);
  color: #fff;
  border: 1px solid rgba(223,16,16,.55);
  font: 900 13px "Cairo", sans-serif;
}

.ds-hero-copy h1 {
  margin: 0;
  color: #fff;
  font: 900 clamp(24px, 3.2vw, 38px)/1.25 "Cairo", sans-serif;
}

.ds-hero-copy p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.ds-hero-copy .ds-actions {
  grid-row: span 2;
}

.ds-mini-trust {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.ds-mini-trust::-webkit-scrollbar {
  display: none;
}

.ds-mini-trust span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font: 800 13px "Tajawal", sans-serif;
  backdrop-filter: blur(8px);
}

.ds-mini-trust i {
  color: #ff4b4b;
}

.ds-home-block {
  padding: 26px 0;
}

.ds-home-block-last {
  padding-bottom: 64px;
}

.ds-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ds-slider-head h2 {
  margin: 0;
  color: var(--ds-black);
  font: 900 24px "Cairo", sans-serif;
  position: relative;
  padding-inline-start: 14px;
}

.ds-slider-head h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 99px;
  background: var(--ds-red);
}

.ds-slider-head a {
  color: var(--ds-red);
  font-weight: 900;
}

.ds-category-slider,
.ds-product-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ds-red) transparent;
}

.ds-category-slider::-webkit-scrollbar,
.ds-product-slider::-webkit-scrollbar {
  height: 5px;
}

.ds-category-slider::-webkit-scrollbar-thumb,
.ds-product-slider::-webkit-scrollbar-thumb {
  background: var(--ds-red);
  border-radius: 99px;
}

.ds-category-tile {
  flex: 0 0 168px;
  scroll-snap-align: start;
  height: 126px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223,16,16,.74), rgba(17,18,20,.92)),
    var(--ds-black);
  border: 1px solid rgba(17,18,20,.08);
  box-shadow: 0 8px 20px rgba(17,18,20,.08);
}

.ds-category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.9) contrast(1.04);
  transition: transform .25s ease, opacity .25s ease;
}

.ds-category-tile:hover img {
  opacity: .42;
  transform: scale(1.05);
}

.ds-category-tile strong {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 1;
  color: #fff;
  font: 900 16px/1.25 "Cairo", sans-serif;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.ds-product-slider .ds-product-link-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.ds-product-link-card {
  display: block;
  color: inherit;
  border: 1px solid rgba(17,18,20,.1);
  overflow: hidden;
}

.ds-product-link-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ds-black), var(--ds-red));
}

.ds-product-link-card .ds-card-media {
  aspect-ratio: 1 / .82;
  background:
    linear-gradient(180deg, #f7f8fa, #eceef2);
}

.ds-product-link-card .ds-card-media img {
  padding: 0;
  object-fit: cover;
}

.ds-product-link-card .ds-card-body {
  padding: 12px;
}

.ds-product-link-card .ds-card-title {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 15px;
}

.ds-product-link-card:hover .ds-card-title {
  color: var(--ds-red);
}

.ds-product-link-card:hover {
  border-color: rgba(223,16,16,.32);
}

/* Products page refresh */
.ds-shop-page {
  background: #f7f8fa;
}

.ds-shop-hero {
  background: #fff;
  border-bottom: 1px solid var(--ds-line);
  padding: 28px 0 24px;
}

.ds-shop-hero h1 {
  margin: 16px 0 6px;
  color: var(--ds-black);
  font: 900 clamp(28px, 4vw, 46px)/1.25 "Cairo", sans-serif;
}

.ds-shop-hero p {
  margin: 0;
  color: var(--ds-muted);
}

.ds-shop-content {
  padding: 28px 0 64px;
}

.ds-shop-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ds-shop-filters {
  position: sticky;
  top: 92px;
}

.ds-filter-card {
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(17,18,20,.06);
  animation: dsRise .45s ease both;
}

.ds-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ds-filter-title strong {
  font: 900 20px "Cairo", sans-serif;
  color: var(--ds-black);
}

.ds-filter-title button {
  background: #fff0f0;
  color: var(--ds-red);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 900;
}

.ds-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ds-muted);
  font-weight: 800;
  transition: .2s ease;
}

.ds-filter-link:hover,
.ds-filter-link.active {
  background: #fff2f2;
  color: var(--ds-red);
  transform: translateX(-3px);
}

.ds-price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ds-price-filter label {
  color: var(--ds-muted);
  font-size: 13px;
  font-weight: 800;
}

.ds-filter-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7f8fa;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  color: var(--ds-black);
  font-weight: 800;
}

.ds-filter-pill i {
  color: var(--ds-red);
}

.ds-shop-main {
  min-width: 0;
}

.ds-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(17,18,20,.045);
}

.ds-shop-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ds-shop-product {
  animation: dsRise .42s ease both;
}

.ds-shop-product.is-filtered-in {
  animation: dsPop .34s ease both;
}

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

@keyframes dsPop {
  from { opacity: .25; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
  .ds-layout,
  .ds-detail-grid,
  .ds-cart-layout,
  .ds-checkout-grid,
  .ds-auth-grid {
    grid-template-columns: 1fr;
  }

  .ds-sidebar {
    position: static;
  }

  .ds-category-grid,
  .ds-product-grid,
  .ds-trust-grid,
  .ds-feature-grid,
  .ds-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-hero-grid {
    grid-template-columns: 1.1fr .9fr;
    min-height: 590px;
  }

  .ds-hero-visual,
  .ds-hero-visual img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .ds-shell {
    width: min(100% - 20px, 1220px);
  }

  .ds-section {
    padding: 46px 0;
  }

  .ds-head,
  .ds-banner,
  .ds-toolbar {
    display: block;
  }

  .ds-actions,
  .ds-banner .ds-btn,
  .ds-toolbar .ds-select {
    width: 100%;
  }

  .ds-actions {
    display: grid;
  }

  .ds-hero {
    min-height: auto;
  }

  .ds-hero::before {
    background: radial-gradient(circle at 75% 10%, rgba(223,16,16,.08), transparent 34%);
  }

  .ds-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px 0 38px;
    gap: 18px;
  }

  .ds-hero-visual {
    order: -1;
    min-height: 230px;
  }

  .ds-hero-visual img {
    min-height: 230px;
    object-position: 40% center;
  }

  .ds-hero-content {
    padding: 10px 0 0;
  }

  .ds-hero h1 {
    font-size: 34px;
  }

  .ds-hero p {
    font-size: 16px;
  }

  .ds-hero-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .ds-category-grid,
  .ds-trust-grid,
  .ds-feature-grid,
  .ds-review-grid,
  .ds-form-grid,
  .ds-benefits,
  .ds-tabs,
  .ds-delivery-options {
    grid-template-columns: 1fr;
  }

  .ds-card-body {
    padding: 10px;
  }

  .ds-card-title {
    font-size: 13px;
    min-height: 40px;
  }

  .ds-price {
    font-size: 16px;
  }

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

  .ds-cart-item > .ds-item-actions {
    grid-column: 1 / -1;
  }

  .ds-auth-brand {
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .ds-shop-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ds-compact-hero {
    padding-top: 14px;
  }

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

  .ds-hero-copy .ds-actions {
    grid-row: auto;
  }

  .ds-shop-grid {
    grid-template-columns: 1fr;
  }

  .ds-shop-filters {
    position: static;
  }

  .ds-filter-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ds-filter-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

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

@media (max-width: 640px) {
  .ds-hero-stage {
    padding: 8px;
    border-radius: 10px;
  }

  .ds-hero-banner {
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(17,18,20,.08);
  }

  .ds-hero-banner img {
    aspect-ratio: 1.78 / 1;
    object-position: center;
  }

  .ds-hero-copy {
    margin-top: 12px;
    gap: 10px;
  }

  .ds-hero-copy h1 {
    font-size: 24px;
  }

  .ds-hero-copy p {
    font-size: 14px;
  }

  .ds-mini-trust span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .ds-home-block {
    padding: 20px 0;
  }

  .ds-slider-head h2 {
    font-size: 20px;
  }

  .ds-category-slider,
  .ds-product-slider {
    gap: 10px;
    margin-inline: -10px;
    padding-inline: 10px;
    scroll-padding-inline: 10px;
  }

  .ds-category-tile {
    flex-basis: 116px;
    height: 104px;
  }

  .ds-category-tile strong {
    inset-inline: 9px;
    bottom: 9px;
    font-size: 12px;
  }

  .ds-product-slider .ds-product-link-card {
    flex-basis: 156px;
  }

  .ds-product-link-card .ds-card-media {
    aspect-ratio: 1 / .94;
  }

  .ds-product-link-card .ds-card-body {
    padding: 10px;
  }

  .ds-product-link-card .ds-card-title {
    min-height: 36px;
    font-size: 13px;
  }

  .ds-shop-hero {
    padding: 18px 0;
  }

  .ds-shop-content {
    padding: 18px 0 46px;
  }

  .ds-filter-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .ds-price-filter {
    grid-template-columns: 1fr 1fr;
  }

  .ds-shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-shop-toolbar .ds-select {
    width: 100%;
  }

  .ds-shop-products {
    gap: 10px;
  }

  .ds-shop-product .ds-card-title {
    min-height: 38px;
  }
}

/* =====================================================================
   Products page — marketplace cards, trust bar, pills (scoped to shop)
   ===================================================================== */

/* Trust strip */
.ds-trustbar-wrap {
  background: var(--ds-black);
  color: #fff;
}

.ds-trustbar {
  list-style: none;
  margin: 0;
  padding: 11px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.ds-trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef0f3;
  font: 800 13px "Cairo", sans-serif;
}

.ds-trustbar i {
  color: var(--ds-red);
  font-size: 14px;
}

/* Category pills */
.ds-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.ds-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ds-line);
  color: var(--ds-ink);
  font: 800 13px "Cairo", sans-serif;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.ds-pill:hover {
  border-color: var(--ds-red);
  color: var(--ds-red);
  transform: translateY(-1px);
}

.ds-pill.active {
  background: var(--ds-red);
  border-color: var(--ds-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(223, 16, 16, .28);
}

/* Toolbar: result range + sort */
.ds-result-count {
  color: var(--ds-muted);
  font: 700 14px "Cairo", sans-serif;
}

.ds-result-count strong {
  color: var(--ds-black);
  font-weight: 900;
}

.ds-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ds-sort-label {
  color: var(--ds-muted);
  font: 800 13px "Cairo", sans-serif;
  white-space: nowrap;
}

.ds-sort-label i {
  color: var(--ds-red);
  margin-inline-end: 4px;
}

/* Marketplace product card */
.ds-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 6px 18px rgba(17, 18, 20, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ds-pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 16, 16, .45);
  box-shadow: 0 18px 38px rgba(17, 18, 20, .14);
}

.ds-pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--ds-soft);
}

.ds-pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .35s ease;
}

.ds-pcard:hover .ds-pcard-media img {
  transform: scale(1.06);
}

.ds-pcard .ds-placeholder {
  height: 100%;
}

.ds-pcard-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 8px;
  line-height: 1;
  color: #fff;
  background: var(--ds-red);
  font: 900 12px "Cairo", sans-serif;
  box-shadow: 0 6px 14px rgba(223, 16, 16, .32);
}

.ds-pcard-badge.is-new,
.ds-pcard-badge.is-pop {
  background: var(--ds-black);
  box-shadow: 0 6px 14px rgba(17, 18, 20, .28);
}

.ds-pcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 14px 16px;
}

.ds-pcard-title {
  margin: 0;
  color: var(--ds-black);
  font: 800 14.5px/1.5 "Cairo", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-pcard:hover .ds-pcard-title {
  color: var(--ds-red);
}

.ds-pcard-sold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff4ec;
  color: #c2410c;
  font: 800 11.5px "Cairo", sans-serif;
}

.ds-pcard-sold i {
  color: #f97316;
}

.ds-pcard-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.ds-pcard-now {
  color: var(--ds-red);
  font: 900 21px "Cairo", sans-serif;
}

.ds-pcard-was {
  color: #9a9da5;
  text-decoration: line-through;
  font: 700 13px "Cairo", sans-serif;
}

.ds-pcard-foot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 11px;
  border-top: 1px dashed var(--ds-line);
}

.ds-pcard-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ds-muted);
  font: 700 12px "Cairo", sans-serif;
}

.ds-pcard-foot i {
  color: var(--ds-green);
  width: 14px;
  text-align: center;
}

/* Denser grid + large-desktop 5 columns */
.ds-shop-products {
  gap: 16px;
  align-items: start;
}

@media (min-width: 1500px) {
  .ds-shop-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ds-shop-products {
    gap: 12px;
  }

  .ds-pcard {
    border-radius: 12px;
  }

  .ds-pcard-media img {
    padding: 10px;
  }

  .ds-pcard-body {
    gap: 7px;
    padding: 11px 11px 13px;
  }

  .ds-pcard-title {
    font-size: 13px;
  }

  .ds-pcard-now {
    font-size: 17px;
  }

  .ds-pcard-foot span {
    font-size: 11px;
  }

  .ds-trustbar {
    gap: 6px 16px;
  }

  .ds-trustbar li {
    font-size: 11.5px;
  }

  .ds-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -10px;
    padding-inline: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ds-cat-pills::-webkit-scrollbar {
    display: none;
  }

  .ds-sort {
    width: 100%;
    justify-content: space-between;
  }
}

/* Same marketplace card inside the home horizontal sliders */
.ds-product-slider {
  align-items: flex-start;
}

.ds-product-slider .ds-pcard {
  flex: 0 0 232px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .ds-product-slider .ds-pcard {
    flex-basis: 168px;
  }
}
