:root {
  --blue: #1a4a8f;
  --blue-dark: #133562;
  --gold: #f5b942;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e8e8e8;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --container: min(1280px, 100% - 2rem);
  --header-sticky: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html.locale-pending:not(.locale-ready) body {
  visibility: hidden;
}

html.locale-pending.locale-ready body {
  visibility: visible;
}

body {
  margin: 0;
  font-family: "Cairo", "Jost", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* شريط علوي — مثل aldfyn */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  gap: 1rem;
  min-height: 36px;
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.top-phone:hover {
  color: var(--blue);
}

.top-phone svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.social-top {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1a1a1a;
  transition: color 0.15s, background 0.15s;
}

.social-icon:hover {
  color: var(--blue);
  background: #f3f6fb;
}

/* هيدر رئيسي */
.site-header-main {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 #ececec;
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header-main.is-menu-open {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.4rem 0 0.6rem;
  flex-wrap: nowrap;
  width: 100%;
}

.logo {
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  display: block;
  height: 67px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  object-position: right center;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--blue);
  padding: 0.5rem;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  transition: color 0.15s, opacity 0.15s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.menu-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle[aria-expanded="true"] {
  color: var(--blue-dark);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 0.35rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

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

.nav-mobile[hidden] {
  display: none !important;
}

.mobile-nav-link,
.mobile-nav-parent {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-group {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0;
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.header-search-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
}

.header-search-mobile input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  min-height: 44px;
}

.header-search-mobile button {
  border: none;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0 1.1rem;
  font-family: inherit;
  font-weight: 700;
  min-height: 44px;
}

body.nav-open {
  overflow: hidden;
}

/* هيرو */
.hero {
  position: relative;
  background: #f4f7fb;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: clamp(220px, 42vw, 520px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef5;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: clamp(220px, 42vw, 520px);
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
}

/* أقسام */
.section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.section-title--left {
  text-align: right;
}

/* منتجات */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fafafa;
  padding: 0.75rem;
}

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

.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.product-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-current {
  font-weight: 700;
  font-size: 1.05rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.btn-add {
  margin-top: auto;
  width: 100%;
  border: none;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add:hover {
  background: var(--blue);
}

.btn-readmore {
  background: transparent;
  border: 2px solid #111;
  color: #111;
}

.btn-readmore:hover {
  background: #111;
  color: #fff;
}

/* تصنيفات */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.category-tile {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.65rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

/* ماركات */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.brand-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s;
}

.brand-card:hover {
  transform: translateY(-2px);
}

.brand-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.brand-card h4 {
  margin: 0;
  padding: 0.65rem;
  font-size: 0.9rem;
}

/* من نحن */
.about-section {
  background: #f8fafc;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text p {
  margin: 0 0 1rem;
  color: #333;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-card h4 {
  margin: 0 0 0.35rem;
  color: var(--blue);
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

/* فوتر */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

/* عائم */
.float-cart {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.float-cart .count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-chat {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-bubble {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* صفحة السلة */
.page-cart main,
.cart-page {
  padding: 1.75rem 0 4.5rem;
}

.cart-page-head {
  margin-bottom: 1.5rem;
}

.cart-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.cart-page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-empty-state {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
  background: #f8fafc;
  border: 1px dashed #d5dee8;
  border-radius: calc(var(--radius) + 4px);
}

.cart-empty-state h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cart-empty-state p {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.7;
}

.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.65rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 0.85rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cart-line-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #eef1f5;
}

.cart-line-thumb img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: 0.35rem;
}

.cart-line-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.cart-line-title a {
  color: #111;
}

.cart-line-title a:hover {
  color: var(--blue);
}

.cart-line-unit {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.cart-line-each {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  border: none;
  background: #f3f6fb;
  color: #111;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--blue);
  color: #fff;
}

.qty-value {
  min-width: 2.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-line-remove {
  border: none;
  background: none;
  color: #c0392b;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.25rem 0;
}

.cart-line-total {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: #111;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.cart-summary-panel {
  position: sticky;
  top: calc(var(--header-sticky, 72px) + 0.75rem);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.cart-summary-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.cart-summary-rows {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.cart-summary-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}

.cart-summary-rows dt {
  margin: 0;
  color: var(--muted);
}

.cart-summary-rows dd {
  margin: 0;
  font-weight: 700;
}

.cart-summary-total dd {
  font-size: 1.25rem;
  color: var(--blue);
}

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

.btn-cart-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-cart-primary:hover {
  background: var(--blue);
  color: #fff;
}

.btn-cart-primary--wide {
  display: flex;
  width: 100%;
  margin-bottom: 0.65rem;
}

.btn-cart-ghost {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #444;
}

.btn-cart-ghost:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.btn-cart-link {
  display: block;
  text-align: center;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.92rem;
}

/* إتمام الطلب */
.page-checkout .checkout-page {
  padding: 1.75rem 0 4.5rem;
}

.checkout-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.checkout-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #f8fafc;
  border: 1px dashed #d5dee8;
  border-radius: calc(var(--radius) + 4px);
}

.checkout-empty p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 380px);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.checkout-block {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.15rem 1.25rem 1.25rem;
  margin: 0 0 1.15rem;
  background: #fff;
}

.checkout-block legend {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-dark);
  padding: 0 0.35rem;
}

.checkout-shipping-note {
  margin: 0.65rem 0 0.25rem;
  padding: 0.65rem 0.85rem;
  background: #f0f6ff;
  border: 1px solid #d8e6f8;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
}

#checkoutCountry {
  max-width: 100%;
}

.checkout-map-block {
  grid-column: 1 / -1;
  margin: 0.85rem 0 1.1rem;
}

.checkout-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.btn-checkout-map-geo {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.btn-checkout-map-geo:hover {
  background: var(--blue);
  color: #fff;
}

.checkout-map {
  width: 100%;
  height: clamp(220px, 42vw, 320px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1;
}

.checkout-map-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-step-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-step-back {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.checkout-step-back a {
  color: var(--blue);
  font-weight: 600;
}

.checkout-form-status--muted {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-layout--map-only {
  max-width: 100%;
}

.payment-location-summary {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
}

.payment-location-summary__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.payment-location-summary__text {
  margin: 0;
}

.payment-location-summary__name,
.payment-location-summary__country {
  margin: 0 0 0.35rem;
}

.payment-location-summary__edit {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.payment-location-summary__edit a {
  color: var(--blue);
  font-weight: 600;
}

.payment-location-summary__contact {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.payment-form-simple .btn-checkout-submit--pay {
  width: 100%;
  max-width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem 1.25rem;
}

.checkout-note--secure {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.card-payment-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.card-payment-brands img {
  display: block;
  height: 30px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-payment-fields input[dir="ltr"] {
  text-align: left;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.card-payment-fields.is-paid {
  opacity: 0.55;
  pointer-events: none;
}

.checkout-form-status.is-error {
  color: #b91c1c;
}

.payment-processing {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

.payment-processing-card {
  width: min(100%, 360px);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.payment-processing-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.payment-processing-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.payment-processing-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid #e2e8f0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: payment-spin 0.75s linear infinite;
}

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

body.payment-is-processing {
  overflow: hidden;
}

/* ——— تدفق الدفع: خطوات + بطاقة + OTP ——— */
.page-payment,
.page-payment-otp,
.page-checkout-location {
  background: linear-gradient(180deg, #f0f4fa 0%, #fff 320px);
}

.page-checkout .float-chat,
.page-payment .float-chat,
.page-payment-otp .float-chat {
  display: none !important;
}

.pay-flow-head {
  margin-bottom: 1.35rem;
}

.pay-flow-head--center {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.pay-flow-head .checkout-title {
  margin-bottom: 0.35rem;
}

.pay-flow-head .checkout-step-back {
  margin-bottom: 1rem;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.checkout-steps--center {
  justify-content: center;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
}

.checkout-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.75rem;
  background: #eef2f7;
  color: #475569;
}

.checkout-step.is-done {
  color: var(--blue-dark);
  border-color: #c7d8f0;
  background: #f7fafd;
}

.checkout-step.is-done .checkout-step__num {
  background: var(--blue);
  color: #fff;
}

.checkout-step.is-current {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(26, 74, 143, 0.28);
}

.checkout-step.is-current .checkout-step__num {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.checkout-step.is-disabled {
  opacity: 0.55;
}

.checkout-block--compact {
  padding-bottom: 0.95rem;
}

.payment-location-summary--card {
  margin-bottom: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pay-card-panel {
  overflow: hidden;
}

.pay-card-visual {
  position: relative;
  margin: 0.35rem 0 1.1rem;
  padding: 1.35rem 1.15rem 1.1rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1a4a8f 0%, #0f2d5c 55%, #1e3a6e 100%);
  box-shadow: 0 14px 36px rgba(15, 45, 92, 0.35);
  min-height: 168px;
}

.pay-card-visual__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.pay-card-visual__chip {
  width: 42px;
  height: 30px;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #e8c547, #c9a227);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.pay-card-visual__number {
  margin: 0 0 1rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  letter-spacing: 0.12em;
  direction: ltr;
  text-align: left;
}

.pay-card-visual__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.92;
}

.pay-card-visual__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.pay-secure-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}

.pay-secure-badge__icon {
  font-size: 1rem;
}

.card-payment-fields {
  padding: 0.85rem 0 0;
  border-top: 1px dashed #e2e8f0;
}

.checkout-order-review--pay {
  border-color: #d5e0ef;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.checkout-order-review__badge {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-checkout-submit--pay {
  box-shadow: 0 6px 20px rgba(26, 74, 143, 0.25);
}

.payment-processing-card {
  border: 1px solid var(--border);
}

.payment-processing-spinner {
  margin-bottom: 1rem;
}

.pay-otp-page {
  padding-bottom: 4.5rem;
  max-width: 520px;
  margin-inline: auto;
}

.otp-page-badge {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.otp-page-subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.otp-shell {
  position: relative;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: 0 0 1.65rem;
  text-align: center;
  background: #fff;
  border: 1px solid #d5e0ef;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 10px 40px rgba(26, 74, 143, 0.1);
  overflow: hidden;
}

.otp-shell::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, #3b82f6 50%, var(--blue-dark) 100%);
}

.otp-shell__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.35rem 0;
}

.otp-shell__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0f6ff, #e8f0fc);
  border: 1px solid #d0dff5;
  border-radius: 50%;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(26, 74, 143, 0.12);
}

.otp-summary--hero {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.otp-summary-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.otp-summary-amount {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.otp-hint {
  margin: 0;
  padding: 1rem 1.35rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.otp-form {
  padding: 0 1.35rem;
}

.otp-fields-label {
  margin: 1.1rem 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
}

.otp-boxes-wrap {
  padding: 0.85rem 0.5rem 1.1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #eef2f7;
  margin-bottom: 1.25rem;
}

.otp-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  direction: ltr;
}

.otp-boxes-sep {
  width: 10px;
  height: 3px;
  margin: 0 0.15rem;
  border-radius: 2px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.otp-box {
  width: 2.85rem;
  height: 3.25rem;
  padding: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  border: 2px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-dark);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}

.otp-box--filled {
  border-color: #93b4e8;
  background: #f0f6ff;
}

.otp-box:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 74, 143, 0.18);
  transform: scale(1.03);
}

.otp-form-status {
  text-align: center;
  margin-top: 0.75rem;
}

.otp-form.is-done .otp-boxes-wrap {
  opacity: 0.55;
  pointer-events: none;
}

.otp-form.is-done .btn-checkout-submit--pay {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .otp-form,
  .otp-hint {
    padding-inline: 1rem;
  }

  .otp-shell__head {
    padding-inline: 1rem;
  }

  .otp-box {
    width: 2.45rem;
    height: 2.9rem;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .otp-boxes {
    gap: 0.28rem;
  }

  .otp-boxes-sep {
    width: 6px;
    margin: 0 0.05rem;
  }

  .checkout-steps {
    justify-content: center;
  }

  .checkout-step span:not(.checkout-step__num) {
    display: none;
  }

  .checkout-step {
    padding: 0.35rem 0.55rem;
  }
}

.payment-location-summary__coords {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.checkout-payment-note {
  margin-bottom: 0.85rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.payment-method {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.payment-method:has(input:checked) {
  border-color: var(--blue);
  background: #f0f6ff;
}

.payment-method input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.payment-method-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.payment-method-body strong {
  font-size: 0.95rem;
}

.payment-method-body small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.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;
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 0.75rem;
}

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

.checkout-field span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.checkout-field em {
  color: #c0392b;
  font-style: normal;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  min-height: 46px;
}

.checkout-field textarea {
  min-height: 110px;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 74, 143, 0.12);
}

.checkout-secure {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-pay-options {
  display: grid;
  gap: 0.55rem;
}

.checkout-pay-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  background: #fafbfd;
}

.checkout-pay-option:has(input:checked) {
  border-color: var(--blue);
  background: #f3f6fb;
}

.checkout-pay-option input {
  accent-color: var(--blue);
}

.checkout-terms {
  margin: 0.25rem 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-terms a {
  color: var(--blue);
  font-weight: 600;
}

.btn-checkout-submit {
  width: 100%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 52px;
}

.btn-checkout-submit:hover {
  background: var(--blue-dark);
}

.checkout-form-status {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-form-status.is-success {
  color: #1e7e34;
  font-weight: 600;
}

.checkout-order-review {
  position: sticky;
  top: calc(var(--header-sticky, 72px) + 0.75rem);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.checkout-order-review h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.checkout-review-lines {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  max-height: 320px;
  overflow-y: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.checkout-review-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem 0.65rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-review-qty {
  font-weight: 700;
  color: var(--muted);
}

.checkout-review-price {
  font-weight: 700;
  white-space: nowrap;
}

.checkout-review-totals {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.checkout-review-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.checkout-review-totals dt {
  margin: 0;
  color: var(--muted);
}

.checkout-review-totals dd {
  margin: 0;
  font-weight: 700;
}

.checkout-review-grand dd {
  font-size: 1.2rem;
  color: var(--blue);
}

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

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1280px, 100% - 1rem);
  }

  .section {
    padding: 1.75rem 0;
  }

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

  .product-body {
    padding: 0.65rem 0.55rem 0.75rem;
  }

  .product-title {
    font-size: 0.8rem;
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .btn-add {
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
  }

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

  .category-tile span {
    font-size: 0.72rem;
    padding: 0.45rem 0.35rem;
  }

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

  .top-bar-inner {
    justify-content: center;
    font-size: 0.78rem;
  }

  .social-top {
    gap: 0.35rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .float-chat .chat-bubble {
    display: none;
  }

  .float-cart,
  .chat-btn {
    width: 50px;
    height: 50px;
  }

  .float-cart {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: calc(1rem + env(safe-area-inset-left, 0px));
  }

  .float-chat {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }

  .site-footer {
    padding: 2rem 0 5.5rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
    line-height: 1.5;
  }

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

  .shop-search-wide {
    max-width: none;
    width: 100%;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    position: static;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "thumb total";
  }

  .cart-line-thumb {
    grid-area: thumb;
  }

  .cart-line-thumb img {
    width: 72px;
    height: 72px;
  }

  .cart-line-body {
    grid-area: body;
  }

  .cart-line-total {
    grid-area: total;
    justify-self: start;
    padding-top: 0;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-fields-grid {
    grid-template-columns: 1fr;
  }

  .checkout-order-review {
    position: static;
    order: -1;
  }

  .btn-add--wide {
    max-width: none;
    width: 100%;
  }

  .wp-content {
    overflow-wrap: anywhere;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-story-img-secondary {
    max-width: 100%;
    margin-inline-start: 0;
  }
}

@media (max-width: 480px) {
  .hero-slide img,
  .hero-slider {
    min-height: 200px;
  }

  .hero-slide img {
    height: 200px;
    object-fit: cover;
  }

  .header-row {
    min-height: 50px;
    padding: 0.3rem 0 0.35rem;
  }

  .header-row .logo img {
    height: 46px;
    max-width: min(160px, 58vw);
  }

  .header-row .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .product-thumb {
    padding: 0.45rem;
  }

  .price-current {
    font-size: 0.95rem;
  }
}

.hidden {
  display: none !important;
}

.site-header-main .nav-desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-desktop .nav-item {
  position: relative;
}

.nav-desktop .nav-item > a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  padding: 0.45rem 0.2rem;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.3;
}

.nav-desktop .nav-item > a:hover,
.nav-desktop .nav-item > a.active {
  color: var(--blue);
}

.nav-desktop .has-children > a::after {
  content: " ▾";
  font-size: 0.65em;
}

.submenu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 50;
}

.nav-desktop .has-children:hover .submenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.submenu-panel a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.submenu-panel a:hover {
  background: #f5f8fc;
  color: var(--blue);
}

.footer-logo {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.mobile-sub {
  padding-inline-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.mobile-sub a {
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.shop-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.shop-sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-cats a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.sidebar-cats a:hover {
  color: var(--blue);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-search-wide {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 420px;
}

.shop-search-wide input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
}

.shop-search-wide button {
  border: none;
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  padding: 0 1.1rem;
  font-family: inherit;
  cursor: pointer;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.product-gallery {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.product-gallery img {
  margin: 0 auto;
}

.product-summary h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 0 0.5rem;
}

.product-prices--lg .price-current {
  font-size: 1.5rem;
}

.btn-add--wide {
  max-width: 320px;
  margin: 1rem 0;
}

.product-tabs {
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--border);
}

.page-shell {
  min-height: 40vh;
}

.page-inner {
  padding-bottom: 3rem;
}

.page-title {
  margin: 2rem 0 1rem;
}

/* تواصل معنا */
.contact-page {
  padding-bottom: 3rem;
}

.contact-hero {
  background:
    linear-gradient(135deg, rgba(19, 53, 98, 0.88), rgba(26, 74, 143, 0.82)),
    url("https://www.aldfyn.com/wp-content/uploads/2025/07/24452_2458_divi-cart-pro-contact-hero.webp") center / cover no-repeat;
  color: #fff;
  margin-bottom: 2rem;
}

.contact-hero-inner {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
  text-align: center;
}

.contact-hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
}

.contact-hero-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.contact-panel,
.contact-aside {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-aside h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--blue-dark);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form .field {
  display: grid;
  gap: 0.35rem;
}

.contact-form .field span {
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form .field em {
  color: #c0392b;
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 74, 143, 0.15);
}

.btn-contact-submit {
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}

.btn-contact-submit:hover {
  background: var(--blue-dark);
}

.contact-form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form-note.is-error {
  color: #c0392b;
}

.contact-form-note.is-success {
  color: #1e7e34;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.contact-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: #f3f6fb;
  border-radius: 50%;
  font-size: 1.1rem;
}

.contact-info-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-info-list a {
  color: var(--blue);
  font-weight: 700;
  word-break: break-word;
}

.contact-social {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-social > p {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-social-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.contact-social-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* من نكون؟ */
.about-page {
  padding-bottom: 3rem;
}

.about-hero {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.72), rgba(26, 74, 143, 0.65)),
    url("https://www.aldfyn.com/wp-content/uploads/2026/03/1170X500.1.png") center / cover no-repeat;
  color: #fff;
  margin-bottom: 2rem;
}

.about-hero-inner {
  padding: clamp(2.5rem, 9vw, 4.75rem) 0;
  text-align: center;
}

.about-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 700;
}

.about-hero-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.75;
  opacity: 0.96;
}

.about-body {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.about-intro {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.about-welcome {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--blue-dark);
}

.about-lead {
  margin: 0;
  color: #333;
  line-height: 1.85;
  font-size: 1.05rem;
}

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

.about-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.about-feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  color: var(--blue);
}

.about-feature-card p {
  margin: 0;
  color: #444;
  line-height: 1.75;
  font-size: 0.96rem;
}

.about-section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--blue-dark);
  text-align: center;
}

.about-stats {
  background: #f4f7fb;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.about-stat {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
}

.about-stat-value {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.about-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.about-story-text p {
  margin: 0 0 1rem;
  color: #333;
  line-height: 1.85;
}

.about-story-text .about-section-title {
  text-align: start;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem !important;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--blue);
  min-height: 46px;
}

.btn-about:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-about--outline {
  background: #fff;
  color: var(--blue);
}

.btn-about--outline:hover {
  background: #f3f6fb;
  color: var(--blue-dark);
}

.about-story-media {
  display: grid;
  gap: 0.75rem;
}

.about-story-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-story-img-secondary {
  max-width: 92%;
  margin-inline-start: auto;
}

.wp-content {
  line-height: 1.8;
}

.wp-content img {
  max-width: 100%;
  height: auto;
}

.wp-content h2,
.wp-content h3 {
  margin-top: 1.5rem;
}

.wp-content ul {
  padding-inline-start: 1.25rem;
}

.site-footer .footer-logo {
  margin-bottom: 1rem;
}

.empty-msg {
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2rem;
}

.checkout-note {
  background: #fff8e6;
  border: 1px solid #f5d76e;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}

.sidebar-accordion summary {
  cursor: pointer;
}

.sidebar-accordion summary h3 {
  display: inline;
  margin: 0;
}

@media (min-width: 1025px) {
  .sidebar-accordion summary {
    pointer-events: none;
    list-style: none;
  }

  .sidebar-accordion summary::-webkit-details-marker {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-header-main .nav-desktop {
    display: none !important;
  }

  .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.35rem 0 0.4rem;
    min-height: 54px;
  }

  .header-row .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }

  .header-row .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: flex;
    min-height: 44px;
    min-width: 44px;
    padding: 0.45rem;
  }

  .header-row .menu-toggle-bars {
    width: 18px;
    height: 14px;
    gap: 4px;
  }

  .header-row .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header-row .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .header-row .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-row .logo img {
    height: 52px;
    max-width: min(180px, 62vw);
  }

  .header-search-mobile {
    display: flex;
    padding-top: 0.1rem;
    padding-bottom: 0.45rem;
    border-top: 1px solid #f2f2f2;
    gap: 0.4rem;
  }

  .header-search-mobile input {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .header-search-mobile button {
    min-height: 38px;
    padding: 0 0.85rem;
    font-size: 0.88rem;
  }

  .site-header-main.is-menu-open .header-search-mobile {
    display: none;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 0 2.5rem;
  }

  .shop-sidebar {
    position: static;
    padding: 0.75rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
  }

  .submenu-panel {
  position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-layout {
    grid-template-columns: 220px 1fr;
  }
}

.locale-bar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.8125rem;
}

.locale-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
}

.locale-bar-prices {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.locale-bar-prices strong {
  color: var(--gold);
  font-weight: 700;
}

.locale-bar-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.locale-bar-picker select {
  font: inherit;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  max-width: min(220px, 55vw);
}

.locale-bar-picker select option {
  color: var(--text);
  background: #fff;
}

body.lang-en {
  font-family: "Jost", "Cairo", system-ui, sans-serif;
}

html[dir="ltr"] .cart-summary-panel,
html[dir="ltr"] .checkout-summary,
html[dir="ltr"] .float-cart {
  /* keep floats usable in LTR */
}

html[dir="ltr"] .btn-cart-link {
  direction: ltr;
}
