/* Cairo loads from templates/store/base.html — single UI font site-wide */
/* DeliverTier store shell + home sections (.dt-store on all pages; .dt-homepage for home layout tweaks) */
.dt-store {
  --dt-primary: #ed1c24;
  --dt-text: #1a1a1a;
  --dt-muted: #848688;
  --dt-border: #e8e8ea;
  --dt-surface: #ffffff;
  --dt-radius: 12px;
  --dt-radius-sm: 8px;
  --dt-font: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--dt-font);
  color: var(--dt-text);
  background: var(--dt-surface);
}

.dt-nav-links a.dt-nav-active {
  color: var(--dt-primary);
}

.dt-homepage #ptContent {
  padding: 0;
  max-width: none;
}

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

/* ——— Top bar (Figma: Website Navbar — 1440 / 92px, #E2EBF6 border, pill search) ——— */
.dt-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #e2ebf6;
}

.dt-topbar-inner {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 72px;
}

@media (min-width: 900px) {
  .dt-topbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px clamp(24px, 5vw, 80px);
    gap: clamp(24px, 5vw, 83px);
    min-height: 92px;
  }
}

.dt-topbar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dt-topbar .brand-logo__img {
  width: 114px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Mobile: open overlay search */
.dt-header-search-mobile {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid #eff3f8;
  border-radius: 50%;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  flex-shrink: 0;
}

.dt-header-search-mobile:hover {
  background: #f1f5f9;
}

@media (min-width: 900px) {
  .dt-header-search-mobile {
    display: none;
  }
}

.dt-topbar-flex-gap {
  display: none;
}

@media (max-width: 899px) {
  .dt-topbar-flex-gap {
    display: block;
    flex: 1 1 auto;
    min-width: 4px;
  }
}

.dt-header-search {
  box-sizing: border-box;
  flex: 1 1 200px;
  min-width: 0;
  display: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
  gap: 12px;
  height: 44px;
  max-width: 480px;
  border: 1px solid #e2ebf6;
  border-radius: 999px;
  background: #f8fafc;
}

@media (min-width: 900px) {
  .dt-header-search {
    display: flex;
    flex: 0 1 480px;
    width: 100%;
  }
}

.dt-header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: var(--dt-font);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  outline: none;
  color: #1e293b;
  text-align: start;
}

.dt-header-search input::placeholder {
  color: #abb9cc;
}

.dt-header-search .dt-header-search-submit {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  background: #d51920;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.dt-header-search .dt-header-search-submit:hover {
  opacity: 0.92;
}

.dt-nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .dt-nav-links {
    display: flex;
  }
}

.dt-nav-links a {
  font-family: var(--dt-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #1e293b;
  text-decoration: none;
  white-space: nowrap;
}

.dt-nav-links a:hover {
  color: var(--dt-primary);
}

.dt-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .dt-topbar-actions {
    gap: 10px;
  }
}

.dt-wishlist-mobile {
  box-sizing: border-box;
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #eff3f8;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dt-wishlist-mobile:hover {
  background: #f1f5f9;
}

@media (min-width: 900px) {
  .dt-wishlist-mobile {
    display: none !important;
  }
}

.dt-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: var(--dt-radius-sm);
  color: var(--dt-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dt-icon-btn:hover {
  background: #f5f5f5;
}

/* Cart + account row (Figma: 32px circles, #F8FAFC / #EFF3F8; mobile cart stays pill) */
.dt-topbar-actions-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.dt-store .dt-cart-trigger.cart-trigger-pill {
  position: relative;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #eff3f8;
  border-radius: 50%;
  background: #f8fafc;
  color: #1e293b;
  box-shadow: none;
  font-size: 0;
}

.dt-store .dt-cart-trigger.cart-trigger-pill:hover {
  filter: none;
  background: #f1f5f9;
  box-shadow: none;
}

.dt-store .dt-cart-trigger .cart-badge-pill {
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  background: #d51920;
  color: #fff;
}

@media (min-width: 900px) {
  .dt-store .dt-cart-trigger .dt-cart-total-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 899px) {
  .dt-store .dt-cart-trigger.cart-trigger-pill {
    width: auto;
    min-width: auto;
    height: 42px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--dt-primary);
    color: #fff;
    border: 0;
  }

  .dt-store .dt-cart-trigger .dt-cart-total-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    font-size: 13px;
  }

  .dt-store .dt-cart-trigger .cart-badge-pill {
    top: 2px;
    right: 2px;
    background: #fff;
    color: var(--dt-primary);
  }
}

.dt-topbar-divider {
  display: none;
  width: 1px;
  height: 24px;
  background: #eff3f8;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .dt-topbar-divider {
    display: block;
  }
}

.dt-account-chip {
  display: none;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  padding: 0;
  border-radius: 999px;
  transition: opacity 0.15s;
}

.dt-account-chip:hover {
  opacity: 0.85;
}

@media (min-width: 900px) {
  .dt-account-chip {
    display: inline-flex;
  }
}

.dt-account-icon-circle {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #eff3f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  flex-shrink: 0;
}

.dt-account-label {
  font-family: var(--dt-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #1e293b;
}

.dt-store .dt-nav-expand.nav-expand-btn {
  box-sizing: border-box;
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #eff3f8;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dt-store .dt-nav-expand.nav-expand-btn:hover {
  background: #f1f5f9;
}

@media (min-width: 900px) {
  .dt-store .dt-nav-expand.nav-expand-btn {
    display: none !important;
  }
}

.dt-store .header-nav-link.dt-overlay-wishlist-btn {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 899px) {
  .dt-topbar-inner {
    flex-wrap: nowrap;
  }

  .dt-topbar-actions {
    gap: 6px;
  }

  .dt-topbar-actions-end {
    gap: 8px;
  }
}

/* ——— Hero ——— */
.dt-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .dt-hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

.dt-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.dt-hero .dt-accent {
  color: var(--dt-primary);
}

.dt-hero-lead {
  font-size: 16px;
  color: var(--dt-muted);
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 520px;
}

.dt-finder-card {
  background: var(--dt-surface);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dt-finder-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dt-finder-tab {
  flex: 1;
  min-width: 64px;
  border: 1px solid var(--dt-border);
  background: #fafafa;
  border-radius: var(--dt-radius-sm);
  padding: 10px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--dt-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.dt-finder-tab svg {
  opacity: 0.7;
}

.dt-finder-tab.is-active {
  border-color: var(--dt-primary);
  color: var(--dt-primary);
  background: rgba(237, 28, 36, 0.06);
}

.dt-finder-tab.is-active svg {
  opacity: 1;
}

.dt-finder-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .dt-finder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dt-finder-grid label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--dt-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dt-finder-grid select {
  width: 100%;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  background: var(--dt-surface);
  color: var(--dt-text);
}

.dt-finder-submit {
  width: 100%;
  border: 0;
  border-radius: var(--dt-radius-sm);
  background: var(--dt-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dt-finder-submit:hover {
  opacity: 0.95;
}

.dt-hero-visual {
  border-radius: var(--dt-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.dt-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— Value props ——— */
.dt-values {
  border-top: 1px solid var(--dt-border);
  border-bottom: 1px solid var(--dt-border);
  background: #fafafa;
}

.dt-values-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .dt-values-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dt-values-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.dt-value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dt-value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(237, 28, 36, 0.1);
  color: var(--dt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dt-value h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.dt-value p {
  margin: 0;
  font-size: 13px;
  color: var(--dt-muted);
  line-height: 1.45;
}

/* ——— Section headers ——— */
.dt-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.dt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dt-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.dt-section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dt-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dt-section-link:hover {
  text-decoration: underline;
}

/* ——— Product grid ——— */
.dt-product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dt-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dt-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dt-product-card.product-card {
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  overflow: hidden;
  background: var(--dt-surface);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
}

.dt-product-card.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dt-pc-img {
  aspect-ratio: 1;
  background: #f4f4f5;
  position: relative;
}

.dt-pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.dt-pc-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--dt-border);
}

.dt-pc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.dt-pc-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dt-muted);
  text-transform: uppercase;
}

.dt-pc-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--dt-text);
}

.dt-pc-spec {
  font-size: 13px;
  color: var(--dt-muted);
  margin: 0;
}

.dt-pc-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.dt-pc-price {
  font-size: 18px;
  font-weight: 800;
}

.dt-pc-price .currency-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dt-muted);
}

.dt-pc-buy {
  border: 0;
  background: var(--dt-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.dt-pc-buy:hover {
  opacity: 0.92;
}

/* ——— Vehicle cards ——— */
.dt-vehicle-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dt-vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dt-vehicle-card {
  position: relative;
  border-radius: var(--dt-radius);
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.dt-vehicle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 0;
}

.dt-vehicle-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.dt-vehicle-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.dt-vehicle-card .dt-vehicle-count {
  position: relative;
  z-index: 1;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.dt-vehicle-card .dt-vehicle-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: #fff;
  color: var(--dt-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.dt-vehicle-card--fallback {
  background: linear-gradient(135deg, #2a2a2e 0%, #111 100%);
}

.dt-vehicle-card--fallback::before {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
}

/* ——— CTA banner ——— */
.dt-cta {
  margin: 0 20px 48px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--dt-radius);
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(135deg, #fde8ea 0%, #fff5f5 45%, #fce4ec 100%);
  border: 1px solid rgba(237, 28, 36, 0.15);
}

.dt-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--dt-text);
}

.dt-cta p {
  margin: 0 auto 20px;
  max-width: 520px;
  color: var(--dt-muted);
  font-size: 15px;
  line-height: 1.5;
}

.dt-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--dt-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dt-cta-btn:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

/* ——— Footer (Figma: Frame 2147224414) ——— */
.dt-footer .brand-logo__link--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.dt-footer .brand-logo__tagline {
  display: block;
  margin-top: 10px;
  font-family: var(--dt-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #848688;
  line-height: 1.35;
  max-width: 341px;
}

.dt-footer .dt-footer-brand-logo .brand-logo__img {
  width: 100%;
  max-width: 341px;
  height: auto;
}

.dt-footer {
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #abb9cc;
  padding: 64px 80px 16px;
}

.dt-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dt-footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px clamp(32px, 8vw, 251px);
}

.dt-footer-brand {
  flex: 0 1 341px;
  max-width: 341px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.dt-footer-desc {
  margin: 0;
  font-family: var(--dt-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #99a1af;
  max-width: 341px;
}

.dt-footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(48px, 12vw, 200px);
  flex: 1 1 auto;
  min-width: 0;
}

.dt-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 0 0 auto;
}

.dt-footer-heading {
  margin: 0;
  font-family: var(--dt-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1e293b;
}

.dt-footer-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.dt-footer-list a {
  font-family: var(--dt-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #64748b;
  text-decoration: none;
}

.dt-footer-list a:hover {
  color: var(--dt-primary);
}

.dt-footer-bottom {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 0 0;
  border-top: 1px solid #abb9cc;
  text-align: center;
}

.dt-footer-copy {
  margin: 0;
  font-family: var(--dt-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #64748b;
}

@media (max-width: 1024px) {
  .dt-footer {
    padding: 48px 40px 16px;
  }

  .dt-footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .dt-footer-links {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .dt-footer {
    padding: 40px 20px 16px;
    gap: 32px;
  }

  .dt-footer-links {
    flex-direction: column;
    gap: 28px;
  }
}
