:root {
  --navy: #142B3C;
  --deep: #142B3C;
  --ink: #142B3C;
  --muted: #51636A;
  --steel: #68777D;
  --ivory: #F6F7F5;
  --line: #DCE4E4;
  --gold: #DCA743;
  --gold2: #F4D58A;
  --accent: #74521C;
  --shadow: 0 15px 45px rgba(38, 37, 29, .06);
}
[hidden] { display: none !important; }
body { font: 1rem/1.8 "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; background: #F6F7F5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1220px, calc(100% - 64px)); }
.demo-banner { background: #F9EDCF; color: #614617; font-size: .79rem; font-weight: 400; padding: 5px 12px; }
.header { background: #F6F7F5; border-color: #ecebe3; }
.nav { min-height: 75px; gap: 18px; }
.brand { gap: 10px; }
.brand img { width: 57px; height: 54px; border-radius: 5px; }
.desktop-nav { gap: clamp(12px, 2vw, 24px); }
.desktop-nav a, .mobile-nav a, .footer a, .text-link, .field label, .chip, .product-card .btn { font-size: .875rem; }
.desktop-nav a, .desktop-nav a:hover { color: var(--ink); }
.desktop-nav a.active { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; }
.nav-actions { gap: 8px; }
.account-btn, .cart-btn, .menu-btn {
  min-width: 44px; min-height: 44px; border: 1px solid #dedfd6; border-radius: 7px; background: transparent;
}
.account-btn {
  display: flex; align-items: center; gap: 8px; padding-inline: 11px;
  font-size: .84rem; font-weight: 700; white-space: nowrap;
}
.account-btn:hover, .cart-btn:hover, .menu-btn:hover { background: #efeee7; }
.cart-btn span { top: -5px; left: -5px; background: var(--ink); color: #fff; }
.btn { border-radius: 7px; min-height: 47px; padding-inline: 17px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: #201611; }
.btn-gold:hover { background: #EDBC60; }
.btn-navy { background: var(--deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid #A9B7B9; }
.text-link { color: var(--accent); white-space: normal; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
h1, h2, h3, .page-title { letter-spacing: 0; }

.catalog-section { padding-top: 42px; padding-bottom: 59px; }
.catalog-section .section-head { align-items: center; margin-bottom: 15px; }
.catalog-section h2, .catalog-heading h1 { margin: 0; font-size: clamp(1.55rem, 3.1vw, 2.55rem); line-height: 1.5; }
.catalog-page { min-height: 56vh; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.catalog-search { display: flex; align-items: center; gap: 7px; width: min(100%, 440px); }
.catalog-search input { min-width: 0; width: 100%; border-radius: 7px; border: 1px solid #b6bcb1; background: #fff; min-height: 47px; padding: 8px 12px; font-size: .875rem; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .83rem; margin-bottom: 18px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 13px; border: 1px solid #d6d9ce; }
.chip.selected { background: var(--ink); border-color: var(--ink); }
.product-grid { gap: 15px; }
.product-card { border: 1px solid var(--line); border-radius: 10px; }
.product-card:hover { transform: none; }
.product-photo { background: #efeee9; aspect-ratio: 1.32; height: auto; overflow: hidden; }
.product-card .product-photo img { width: 100%; height: 100%; max-height: 270px; object-fit: contain; }
.product-content { padding: 14px; }
.product-content h3 { min-height: 0; margin: 0 0 8px; font-size: .94rem; line-height: 1.8; }
.product-spec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.product-spec bdi { font-size: .76rem; color: #444f45; border: 1px solid #e6e7de; background: #f7f7f1; padding: 1px 8px; border-radius: 5px; }
.product-bottom { border-top: 1px solid #eeeee6; padding-top: 11px; gap: 6px; }
.product-card .price { font-size: 1.15rem; direction: rtl; font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; font-weight: 700; }
.product-card .btn { padding: 7px 10px; min-height: 40px; }

.page-hero { background: #E9EFED; color: var(--ink); padding: 35px 0; }
.page-hero .page-title { margin: 0; }
.page-hero p { color: var(--muted); }
.eyebrow, .page-hero .eyebrow { color: var(--accent); }
.hint, .notice, .check, .auth-switch, .checkout-account, .sum-row { font-size: .875rem; }
.field input, .field select, .field textarea { border-color: #c6cbc0; border-radius: 7px; padding: 8px 11px; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #DCA74326; }
.field input[type="checkbox"], .consent-choice input { width: 18px; height: 18px; min-height: 0; margin: 4px 0 0; padding: 0; accent-color: var(--accent); flex: 0 0 18px; }
.form-card, .order-summary { border-radius: 10px; }
.customer-container { max-width: 540px; }
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  max-width: 1090px; margin-block: 32px 56px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.auth-panel { padding: 28px clamp(20px, 3.5vw, 46px); }
.auth-heading h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.45; margin: 0 0 6px; }
.auth-heading p { color: var(--muted); font-size: .91rem; margin: 0 0 18px; }
.customer-form { display: grid; gap: 12px; }
.customer-form p { margin: 0; }
.auth-fields { display: grid; gap: 11px 13px; }
.auth-fields-register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-fields .field { gap: 4px; }
.auth-switch { text-align: center; }
.auth-art { background: #24241f; position: relative; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.consent-choice { display: flex; gap: 8px; align-items: flex-start; font-size: .81rem; }
.consent-choice a { color: var(--accent); text-decoration: underline; }
.form-error { background: #fff1ef; border: 1px solid #edb8ae; color: #832519; padding: 10px 12px; border-radius: 6px; font-size: .875rem; }
.account-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.account-details { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 20px; gap: 8px 15px; font-size: .875rem; }
.account-details dt { font-weight: 700; }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-orders { list-style: none; padding: 0; margin: 0; }
.account-orders li { border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.account-orders li div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.account-orders li span { color: var(--muted); font-size: .875rem; }
.zone-form { margin-top: 22px; }
.zone-form .btn { margin-top: 16px; }
.footer { background: var(--deep); padding-top: 34px; }
.footer-grid { gap: 20px; padding-bottom: 33px; }
.footer a { color: #e3e5dd; }
.footer-bottom { color: #d4d6ce; border-color: #52554e; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .auth-art img { object-position: 47% center; }
  .auth-fields-register { grid-template-columns: 1fr; }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 28px); }
  .nav { min-height: 62px; gap: 5px; }
  .brand { gap: 5px; }
  .brand img { width: 41px; height: 41px; }
  .nav-actions { gap: 5px; }
  .account-btn { padding-inline: 7px; gap: 4px; font-size: .76rem; }
  .account-btn svg { width: 16px; }
  .cart-btn, .menu-btn { min-width: 38px; }
  .catalog-section { padding-block: 28px 38px; }
  .catalog-heading { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .catalog-heading h1 { font-size: 1.65rem; }
  .catalog-search input { font-size: 1rem; }
  .catalog-controls { flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
  .catalog-filters .chip { font-size: .76rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .product-content { padding: 8px; }
  .product-content h3 { font-size: .82rem; }
  .product-card .price { font-size: .94rem; }
  .product-bottom { flex-wrap: wrap; }
  .product-card .btn { width: 100%; }
  .page-hero { padding: 24px 0; }
  .content-wrap { padding-block: 27px 41px; }
  .auth-layout { display: block; margin-block: 14px 28px; }
  .auth-panel { padding: 17px 14px; }
  .auth-art { display: none; }
  .auth-heading p { margin-bottom: 12px; }
  .account-layout { grid-template-columns: 1fr; }
}

.market-strip { background: #E9EFED; border-block: 1px solid var(--line); }
.market-strip-inner { display: flex; align-items: center; gap: 16px; padding-block: 6px; }
.market-strip-heading { flex: 0 0 auto; }
.market-strip-heading strong, .market-strip-heading span { display: block; }
.market-strip-heading strong { font-size: .95rem; }
.market-strip-heading span { color: var(--muted); font-size: .77rem; }
.market-ticker { flex: 1 1 auto; min-width: 0; }
.market-ticker iframe { display: block; width: 100%; height: 47px; border: 0; border-radius: 5px; background: #fff; }
.market-source { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; }
.market-source a { color: var(--navy); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.market-news { padding-block: 25px 35px; }
.market-news .section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.market-news-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; }
.market-news-list li { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 15px; }
.market-news-list a { font-family: Manrope, "IBM Plex Sans Arabic", sans-serif; color: var(--navy); text-align: start; font-size: .95rem; line-height: 1.5; font-weight: 700; }
.market-news-list a:hover { text-decoration: underline; }
.market-news-list p, .market-feed-message { color: var(--muted); font-size: .83rem; margin: 0; }
@media (max-width: 680px) {
  .market-strip-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; }
  .market-ticker { grid-row: 2; grid-column: 1 / -1; }
  .market-news-list { grid-template-columns: 1fr; gap: 7px; }
  .market-news { padding-block: 17px 24px; }
}
.spot-quotes { display: flex; flex-wrap: wrap; gap: 2px 15px; align-items: baseline; padding-block: 3px 7px; font-size: .78rem; color: var(--muted); }
.spot-quotes a { color: var(--navy); }
.spot-quotes a:hover { text-decoration: underline; }
.spot-quotes bdi { font-family: Manrope, "IBM Plex Sans Arabic", sans-serif; }
.spot-quotes time { color: var(--muted); margin-inline-start: 4px; }

.preview-only .price,
.preview-only [data-add],
.preview-only .product-detail .filters .pill:last-child,
.preview-only a[href="/track"],
.preview-only a[href="/register"],
.preview-only a[href="/login"],
.preview-only a[href="/account"],
.preview-only a[href="/checkout"],
.preview-only a[href="/cart"],
.preview-only a[href="/contact"],
.preview-only a[href="/survey"],
.preview-only a[href="/earn"],
.preview-only [data-account-links] { display: none !important; }
