/* Same typeface as the home page. The font file is linked from the page head (config/default.json). */
body.frontStore, body.frontStore button, body.frontStore input, body.frontStore select, body.frontStore textarea { font-family: "Alexandria", ui-sans-serif, system-ui, sans-serif; }

/* Right-to-left layout for Arabic. EverShop core sets lang but not dir. */
html[lang="ar"] { direction: rtl; }

/* Keep the footer at the bottom of the window when a page has little content. */
body.frontStore .wrapper { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.frontStore .wrapper > main { flex: 1 0 auto; width: 100%; }

/* No customer accounts: hide the sign-in icon. */
header a[href*="/account"] { display: none; }

/* Orders are confirmed on WhatsApp: no coupon box, shipping line or tax note in the cart summary. */
.coupon-form,
.cart__total__summary > div:has(> .coupon-form),
.cart__total__summary .summary-row,
.cart__total__summary .grand-total .italic { display: none; }

/* ===================================================================================
   New design on every store page (category, product, cart, search), matching home.html.
   Colours: ink #0B0B0B, yellow #FFD60A, grey #F2F2F2, muted #5C5C5C.
   =================================================================================== */
body.frontStore { color: #0B0B0B; }

/* Announcement bar. Keep the text the same as the one in home.html. */
body.frontStore .header::before { content: "اطلب من الموقع وأكمل طلبك معنا على واتساب"; display: block; padding: 9px 16px; background: #FFD60A; color: #0B0B0B; font-size: 15px; font-weight: 600; line-height: 1.75; text-align: center; }

/* Header: logo first (right in Arabic), category menu in the middle, search and cart last. */
body.frontStore .header { border-bottom: 1px solid #EEEEEE; }
body.frontStore .header__middle { min-height: 88px; padding-block: 12px; gap: 24px; }
body.frontStore .header__middle__center { order: -1; flex: none; }
body.frontStore .header__middle__left { flex: 1; min-width: 0; justify-content: center; }
body.frontStore .header__middle__right { flex: none; gap: 12px; }
body.frontStore .logo-icon { display: inline-flex; align-items: baseline; direction: ltr; font-size: 28px; line-height: 1; letter-spacing: -.03em; color: #0B0B0B; text-decoration: none; }
body.frontStore .logo-icon > * { display: none; }
body.frontStore .logo-icon::before { content: "offres"; font-weight: 900; }
body.frontStore .logo-icon::after { content: ".mr"; font-weight: 400; color: #5C5C5C; }
body.frontStore .header .evershop-basic-menu__items { gap: 20px; }
body.frontStore .header .evershop-basic-menu__items a { font-size: 16px; font-weight: 400; color: #0B0B0B; background: none; }
body.frontStore .header .evershop-basic-menu__items a[data-active="true"], body.frontStore .header .evershop-basic-menu__items a[aria-current] { font-weight: 700; }
body.frontStore .search__icon, body.frontStore .mini-cart-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 999px; }
body.frontStore .search__icon { background: #F2F2F2; color: #0B0B0B; }
body.frontStore .mini-cart-icon { background: #0B0B0B; color: #FFFFFF; }
body.frontStore .mini-cart-icon:hover { background: #0B0B0B; color: #FFD60A; }

/* Headings and buttons */
body.frontStore main h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
body.frontStore main h2, body.frontStore main h3 { font-weight: 700; }
body.frontStore button[data-slot="button"] { border-radius: 999px; font-weight: 700; }
body.frontStore main button[data-slot="button"] { min-height: 48px; padding-inline: 22px; }

/* Product cards in listings */
body.frontStore .product__list__image { aspect-ratio: 1 / 1; border-radius: 20px; background: #F2F2F2; }
body.frontStore .product__list__image img { width: 100%; height: 100% !important; object-fit: cover; }
body.frontStore .product__list__name { font-size: 17px; font-weight: 500; line-height: 1.65; }
body.frontStore .product__list__price .regular-price { font-size: 20px; font-weight: 800; }

/* Product page */
body.frontStore .product__single__price { font-size: 28px; font-weight: 800; }
body.frontStore .product__detail__left img { border-radius: 24px; }

/* Footer: wordmark plus the links placed there by the footer menu widget. */
body.frontStore .footer { margin-top: 80px; padding-block: 56px 40px; background: #FFFFFF; border-top: 1px solid #EEEEEE; }
body.frontStore .footer__middle { align-items: center; }
body.frontStore .footer__middle::before { content: "offres.mr"; direction: ltr; font-size: 32px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
body.frontStore .footer__bottom { display: none; }
body.frontStore .footer .evershop-basic-menu__mobile-inline, body.frontStore .footer .evershop-basic-menu__items { display: flex; flex-wrap: wrap; gap: 8px 24px; }
body.frontStore .footer a { font-size: 16px; font-weight: 500; color: #0B0B0B; }
body.frontStore .footer a[href*="wa.me"] { padding: 12px 22px; border-radius: 999px; background: #0E7A45; color: #FFFFFF; font-weight: 700; }

/* Same logo area as the home page: the yellow sticker beside the wordmark, and the same page width. */
body.frontStore .logo { gap: 8px; min-height: 44px; }
body.frontStore .logo::after { content: "عروض"; padding: 2px 10px; border-radius: 6px; background: #FFD60A; color: #0B0B0B; font-size: 13px; font-weight: 800; line-height: 1.75; transform: rotate(-6deg); }
body.frontStore .page-width { max-width: 1440px; padding-inline: 80px; }
@media (max-width: 1100px) { body.frontStore .page-width { padding-inline: 40px; } }
@media (max-width: 860px) { body.frontStore .page-width { padding-inline: 20px; } }
@media (max-width: 480px) {
  /* Phone header: logo, menu button, search and cart must share one 320px row. */
  body.frontStore .header__middle { gap: 8px; }
  body.frontStore .header__middle__right { gap: 8px; }
  body.frontStore .logo { gap: 6px; }
  body.frontStore .logo-icon { font-size: 22px; }
  body.frontStore .logo::after { padding: 1px 7px; font-size: 11px; }
  body.frontStore .search__icon, body.frontStore .mini-cart-icon { width: 44px; height: 44px; }
}
@media (max-width: 350px) { body.frontStore .logo::after { display: none; } }

/* Product page: simpler. The green WhatsApp button (added by store.js) is the main action,
   so the built-in add-to-cart button becomes the outlined second choice; the SKU row,
   which is always the first row of the details list, is hidden from customers. */
body.frontStore.productView #productForm button[data-slot="button"] { width: 100%; min-height: 52px; background: #FFFFFF; color: #0B0B0B; border: 2px solid #0B0B0B; }
body.frontStore.productView .product__single__attributes > div:first-child { display: none; }
body.frontStore.productView .product__single__attributes { border-top: 0; }
