/* Shared icon proportions and a mobile-only search drawer. */
.header-icon,.desktop-header #cart-btn{display:inline-flex;position:relative;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid var(--border-color,#e2e6eb);border-radius:12px;background:var(--surface-color,#fff);color:var(--secondary-color,#234776);cursor:pointer;transition:background .18s,transform .18s}
.header-icon svg{width:21px;height:21px;pointer-events:none}
.header-icon:hover{background:var(--surface-muted,#eef2f7)}
.header-icon:focus-visible,#mobile-search-panel input:focus-visible,.mobile-bottom-nav-item:focus-visible,.mobile-lang-option:focus-visible{outline:2px solid var(--primary-color,#315efb);outline-offset:3px}
.desktop-header #cart-btn i{font-size:20px}
.main-header .header-right{gap:6px}
.desktop-header .theme-button{margin-inline:8px}
#mobile-search-panel{position:fixed;top:110px;inset-inline:0;z-index:1001;padding:12px 16px 16px;background:var(--surface-color,#fff);border-bottom:1px solid var(--border-color,#e2e6eb);box-shadow:0 12px 24px #14253a12;animation:search-panel-in .18s ease-out}
#mobile-search-panel[hidden]{display:none!important}
#mobile-search-panel .menu-search{position:relative;margin:0;width:100%;padding:0}
#mobile-search-panel input,.desktop-search input{height:46px!important;padding:10px 15px!important;width:100%;border:1px solid var(--border-color,#dce2ea)!important;border-radius:12px!important;background:var(--surface-muted,#f5f7fa);color:var(--text-color,#202a38);font-family:inherit;font-size:16px}
#mobile-search-panel .search-suggestions,.desktop-search .search-suggestions{max-height:min(420px,55dvh);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border-color,#e2e6eb);border-radius:14px;background:var(--surface-color,#fff)}
.search-suggestions .suggestion-item{border-bottom:1px solid var(--border-color,#edf0f4);padding:8px 10px;margin:0;outline-offset:-3px}
.search-suggestions .suggestion-item:last-child{border-bottom:0}
.search-suggestions .sug-thumb{width:52px;height:52px;object-fit:contain;flex-shrink:0;border-radius:9px;background:#fff}
.search-suggestions .sug-item{display:flex;align-items:center;gap:12px}
.search-suggestions .sug-content{min-width:0;flex:1}
.search-suggestions .sug-title{font-size:14px;color:var(--text-color,#202a38)}
.search-suggestions .sug-price{font-size:13px;color:var(--primary-color,#315efb)}
.search-suggestions .search-empty{padding:18px;text-align:center;color:var(--text-color,#374151);font-size:14px;cursor:default}
.search-reset,.catalog-retry{padding:10px 20px;margin-top:14px;border:0;border-radius:10px;background:var(--primary-color,#315efb);color:#fff;font:inherit;cursor:pointer}
#noResultsMessage{font-size:18px;padding:32px 16px}
#noResultsMessage p,.catalog-error p{font-size:14px;margin:8px 0;color:var(--text-color,#5c6777)}
.catalog-error{grid-column:1/-1;padding:36px 20px;text-align:center;border:1px solid var(--border-color,#e2e6eb);border-radius:16px;background:var(--surface-color,#fff)}
.cards .shimmer-card{pointer-events:none}
.cards .shimmer-card .image{height:150px}
.cards .shimmer-card .shirt_text{height:22px;width:75%;margin:15px auto 2px;padding:0}
.cards .shimmer-card .info{height:34px;width:52%;margin:0 auto 8px}
.cards .shimmer-card .actions{height:34px;margin:0 5px 5px;border-radius:8px}
body.dark .desktop-header #cart-btn,body.dark .header-icon,body.dark #mobile-search-panel,body.dark .search-suggestions,body.dark .catalog-error{background:#20242b;color:#f3f4f6;border-color:#3a414b}
body.dark #mobile-search-panel input,body.dark .desktop-search input{background:#161b22;color:#f3f4f6}
body.dark .search-suggestions .sug-title,body.dark .search-suggestions .search-empty,body.dark #noResultsMessage p{color:#e5e7eb}

/* Mobile top header: Logo + Store Name on the right, Search + Dark Mode + Menu on the left */
.header-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;text-decoration:none}
.header-brand .logo-img{width:60px;height:60px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--border-color,#dbe5ff);box-shadow:0 3px 10px rgba(0,0,0,.1)}
.header-store-name{font-family:'El Messiri',sans-serif;font-size:var(--store-name-size,21px);font-weight:700;color:var(--primary-color,#163db8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25;padding:0!important;margin:0;min-width:0;transition:color .2s ease!important}
body.dark .header-store-name{color:#f3f4f6!important}

/* Mobile bottom navigation bar */
.mobile-bottom-nav{display:none}
.mobile-lang-modal[hidden]{display:none!important}

/* Redesigned Hero Section (Mobile + Desktop) */
.hero-section{
  position:relative;
  overflow:hidden;
  padding:28px 20px 30px;
  font-family:'El Messiri',sans-serif!important;
  background:
    radial-gradient(circle at 38% 26%, color-mix(in srgb, var(--accent-color,#eab308) 20%, transparent) 0%, transparent 44%),
    radial-gradient(circle at 22% 74%, color-mix(in srgb, var(--secondary-color,#9a6b4a) 15%, transparent) 0%, transparent 52%),
    linear-gradient(135deg, var(--hero-section,#f7f0ea) 0%, var(--surface-muted,#fbf7f3) 50%, var(--hero-section,#f7f0ea) 100%);
}
.hero-section #storeName2{display:none!important}
.hero-inner{
  direction:rtl;
  max-width:960px;
  width:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:relative;
  z-index:2;
}
.hero-section .hero-content{
  flex:1 1 auto;
  max-width:none;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:right;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 14px;
  border-radius:999px;
  margin-bottom:10px;
  background:color-mix(in srgb, var(--primary-color,#163db8) 13%, var(--surface-color,#fff));
  border:1px solid color-mix(in srgb, var(--primary-color,#163db8) 16%, transparent);
}
.hero-badge-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  padding:0!important;
  margin:0;
  display:inline-block;
  flex-shrink:0;
}
.hero-badge-dot--primary{background:var(--primary-color,#163db8)}
.hero-badge-dot--muted{background:var(--secondary-color,#315efb);opacity:.55}
.hero-badge-text{
  font-size:13px;
  font-weight:700;
  color:var(--text-color,#102052)!important;
  padding:0!important;
  margin:0;
  line-height:1.3;
}
.hero-section .hero-title{
  font-family:'El Messiri',sans-serif!important;
  font-size:36px;
  font-weight:700;
  color:var(--text-color,#102052)!important;
  line-height:1.26;
  margin:0;
  padding:0!important;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.hero-section .hero-title span,
.hero-section .changing-word{
  font-family:'El Messiri',sans-serif!important;
  color:var(--text-color,#102052)!important;
  font-weight:700;
  padding:0!important;
  margin:0;
  line-height:1.26;
}
.hero-title-line{display:block}
.hero-title-underline{
  width:128px;
  height:3.5px;
  border-radius:999px;
  margin:8px 0 14px;
  background:color-mix(in srgb, var(--primary-color,#163db8) 28%, var(--border-color,#dbe5ff));
}
.hero-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 24px;
  min-width:168px;
  border-radius:999px;
  background:var(--theme-gradient,linear-gradient(135deg,var(--primary-color),var(--secondary-color)));
  color:#fff!important;
  font-family:'El Messiri',sans-serif;
  font-size:15.5px;
  font-weight:700;
  text-decoration:none;
  box-shadow:var(--theme-shadow,0 8px 20px rgba(0,0,0,.15));
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
}
.hero-cta-btn:hover{transform:translateY(-2px)}
.hero-cta-btn:active{transform:scale(.97)}
.hero-cta-btn .hero-cta-text{
  color:#fff!important;
  padding:0!important;
  margin:0;
  line-height:1.2;
}
.hero-cta-arrow{
  width:16px;
  height:16px;
  color:#fff!important;
  flex-shrink:0;
}
.hero-visual{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-visual-stage{
  position:relative;
  width:190px;
  height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-ring{
  position:absolute;
  border-radius:50%;
  padding:0!important;
  pointer-events:none;
}
.hero-ring--inner{
  width:168px;
  height:168px;
  border:2px dotted color-mix(in srgb, var(--primary-color,#163db8) 55%, transparent);
}
.hero-ring--outer{
  width:192px;
  height:192px;
  border:1.5px dotted color-mix(in srgb, var(--secondary-color,#315efb) 28%, transparent);
}
.hero-orb{
  position:absolute;
  border-radius:50%;
  padding:0!important;
  pointer-events:none;
}
.hero-orb--top{
  top:6px;
  right:-4px;
  width:42px;
  height:42px;
  background:radial-gradient(circle, #fff 0%, color-mix(in srgb, var(--accent-color,#f59e0b) 48%, transparent) 45%, transparent 72%);
}
.hero-orb--bottom{
  bottom:4px;
  left:-6px;
  width:32px;
  height:32px;
  background:radial-gradient(circle, color-mix(in srgb, var(--secondary-color,#315efb) 30%, transparent) 0%, transparent 70%);
}
.hero-bag-card{
  position:relative;
  z-index:2;
  width:132px;
  height:132px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg, rgba(255,255,255,.97) 0%, color-mix(in srgb, var(--hero-section,#edf3ff) 65%, #fff) 100%);
  border:1.5px solid rgba(255,255,255,.92);
  box-shadow:0 14px 30px color-mix(in srgb, var(--primary-color,#163db8) 14%, rgba(0,0,0,.06)), inset 0 1px 0 rgba(255,255,255,.9);
}
.hero-bag-svg{
  width:102px;
  height:102px;
  color:var(--primary-color,#163db8);
  display:block;
}
body.dark .hero-section{
  background:
    radial-gradient(circle at 38% 26%, color-mix(in srgb, var(--accent-color,#eab308) 16%, transparent) 0%, transparent 46%),
    linear-gradient(135deg, #171c26 0%, #1f2634 52%, #161b24 100%);
}
body.dark .hero-badge{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14);
}
body.dark .hero-badge-text,
body.dark .hero-section .hero-title,
body.dark .hero-section .hero-title span,
body.dark .hero-section .changing-word{
  color:#f3f4f6!important;
}
body.dark .hero-bag-card{
  background:linear-gradient(145deg, #232a38 0%, #1b212d 100%);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 14px 30px rgba(0,0,0,.35);
}
body.dark .hero-bag-svg{
  color:color-mix(in srgb, var(--secondary-color,#60a5fa) 75%, #fff);
}

@media(max-width:991px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .main-header{direction:rtl;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-inline:10px}
  .main-header .header-brand{max-width:calc(100% - 138px)}
  .main-header .burger-btn{margin-top:0!important}
  .main-header .header-right{display:flex;align-items:center;gap:6px;flex-shrink:0}
  .hero-section{padding:20px 14px 22px;min-height:178px;display:flex;align-items:center;justify-content:center}
  .hero-inner{gap:12px}
  .hero-badge{padding:3px 12px;margin-bottom:8px}
  .hero-badge-text{font-size:12px}
  .hero-section .hero-title,
  .hero-section .hero-title span,
  .hero-section .changing-word{font-size:25px}
  .hero-title-underline{width:108px;margin:6px 0 12px}
  .hero-cta-btn{padding:8px 18px;min-width:152px;font-size:14.5px}
  .hero-visual-stage{width:148px;height:148px}
  .hero-ring--inner{width:134px;height:134px}
  .hero-ring--outer{width:152px;height:152px}
  .hero-bag-card{width:108px;height:108px;border-radius:20px}
  .hero-bag-svg{width:86px;height:86px}
  .floating-contact{bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}
  #backToTop{bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}

  .mobile-bottom-nav{
    position:fixed;
    bottom:0;
    inset-inline:0;
    z-index:1002;
    direction:rtl;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:center;
    min-height:64px;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-top:1px solid var(--border-color,#e2e6eb);
    box-shadow:0 -6px 24px rgba(16,32,82,.08);
  }
  .mobile-bottom-nav-item{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    width:100%;
    min-height:50px;
    padding:4px 2px;
    border:0;
    border-radius:12px;
    background:transparent!important;
    color:#64748b;
    text-decoration:none;
    cursor:pointer;
    font-family:'El Messiri',sans-serif;
    transition:color .2s ease,transform .18s ease;
  }
  .mobile-bottom-nav-item:active{transform:scale(.95)}
  .mobile-bottom-nav-item.is-active{color:var(--primary-color,#163db8)!important}
  .mobile-bottom-nav-item.is-active .bottom-nav-label,
  .mobile-bottom-nav-item.is-active .bottom-nav-icon-wrap,
  .mobile-bottom-nav-item.is-active .bottom-nav-icon{color:var(--primary-color,#163db8)!important;font-weight:700}
  .bottom-nav-icon-wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:26px;
    padding:0!important;
    margin:0;
    color:inherit!important;
  }
  .bottom-nav-icon{
    width:23px;
    height:23px;
    display:block;
    color:inherit!important;
    pointer-events:none;
  }
  .bottom-nav-label{
    font-size:12px;
    font-weight:600;
    line-height:1.2;
    padding:0!important;
    margin:0;
    color:inherit!important;
    white-space:nowrap;
  }
  .mobile-bottom-nav .cart-count-mobile{
    position:absolute;
    top:-5px;
    right:-9px;
    min-width:18px;
    height:18px;
    width:auto;
    padding:0 4px!important;
    border-radius:999px;
    background:var(--danger-color,#ef4444);
    color:#fff!important;
    border:2px solid var(--surface-color,#fff);
    font-size:10.5px;
    font-weight:700;
    line-height:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(239,68,68,.35);
  }

  body.dark .mobile-bottom-nav{
    background:rgba(20,24,33,.97);
    border-top-color:#2e3646;
    box-shadow:0 -6px 24px rgba(0,0,0,.45);
  }
  body.dark .mobile-bottom-nav-item{
    color:#cbd5e1!important;
    background:transparent!important;
  }
  body.dark .mobile-bottom-nav-item .bottom-nav-label,
  body.dark .mobile-bottom-nav-item .bottom-nav-icon-wrap,
  body.dark .mobile-bottom-nav-item .bottom-nav-icon{color:inherit!important}
  body.dark .mobile-bottom-nav-item.is-active,
  body.dark .mobile-bottom-nav-item.is-active .bottom-nav-label,
  body.dark .mobile-bottom-nav-item.is-active .bottom-nav-icon-wrap,
  body.dark .mobile-bottom-nav-item.is-active .bottom-nav-icon{
    color:#60a5fa!important;
  }
  body.dark .mobile-bottom-nav .cart-count-mobile{
    border-color:#141821;
    color:#fff!important;
  }
}

/* Mobile language picker modal */
.mobile-lang-modal{
  position:fixed;
  inset:0;
  z-index:10002;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}
.mobile-lang-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.mobile-lang-sheet{
  position:relative;
  z-index:1;
  width:100%;
  max-width:380px;
  margin-bottom:calc(62px + env(safe-area-inset-bottom,0px));
  padding:18px;
  border-radius:20px;
  background:var(--surface-color,#fff);
  border:1px solid var(--border-color,#dbe5ff);
  box-shadow:0 18px 42px rgba(15,23,42,.22);
  font-family:'El Messiri',sans-serif;
  animation:search-panel-in .2s ease-out;
}
.mobile-lang-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.mobile-lang-header h3{
  font-size:17px;
  font-weight:700;
  color:var(--text-color,#102052);
  padding:0;
  margin:0;
}
.mobile-lang-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:var(--surface-muted,#f4f7ff);
  color:var(--text-color,#102052);
  font-size:15px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.mobile-lang-options{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-lang-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:12px 16px;
  border:1px solid var(--border-color,#dbe5ff);
  border-radius:14px;
  background:var(--surface-muted,#f8faff);
  color:var(--text-color,#102052);
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.mobile-lang-option.active{
  background:var(--theme-gradient,linear-gradient(135deg,#163db8,#315efb));
  color:#fff!important;
  border-color:transparent;
  box-shadow:var(--theme-shadow,0 8px 20px rgba(22,61,184,.2));
}
.mobile-lang-info{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0!important;
  color:inherit!important;
}
.mobile-lang-flag{
  font-size:22px;
  line-height:1;
  padding:0!important;
  color:inherit!important;
}
.mobile-lang-name{
  font-size:15px;
  font-weight:700;
  color:inherit!important;
  padding:0!important;
}
.mobile-lang-option.active .mobile-lang-info,
.mobile-lang-option.active .mobile-lang-flag,
.mobile-lang-option.active .mobile-lang-name{
  color:#fff!important;
}
.mobile-lang-check{
  width:24px;
  height:24px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  padding:0;
  background:rgba(22,61,184,.1);
  color:var(--primary-color,#163db8);
  opacity:0;
  transform:scale(.8);
  transition:opacity .18s ease,transform .18s ease;
}
.mobile-lang-option.active .mobile-lang-check{
  opacity:1;
  transform:scale(1);
  background:rgba(255,255,255,.22);
  color:#fff!important;
}
body.dark .mobile-lang-sheet{
  background:#1b2029;
  border-color:#343c4c;
}
body.dark .mobile-lang-header h3{color:#f3f4f6!important}
body.dark .mobile-lang-close{background:#262d3a;color:#f3f4f6}
body.dark .mobile-lang-option{background:#242b37;border-color:#343c4c;color:#f3f4f6}
body.dark .mobile-lang-option.active{background:var(--theme-gradient,linear-gradient(135deg,#163db8,#315efb));color:#fff}

@media(max-width:360px){
  .main-header{padding-inline:8px;gap:6px}
  .header-icon{width:36px;height:38px;min-width:36px}
  .main-header .header-right{gap:4px}
  .header-brand .logo-img{width:52px;height:52px}
  .main-header .header-brand{max-width:calc(100% - 122px);gap:8px}
  .hero-section{padding:20px 20px 18px}
  .hero-section .hero-title,.hero-section .hero-title span,.hero-section .changing-word{font-size:21px}
  .hero-visual-stage{width:124px;height:124px}
  .hero-ring--inner{width:112px;height:112px}
  .hero-ring--outer{width:128px;height:128px}
  .hero-bag-card{width:90px;height:90px;border-radius:18px}
  .hero-bag-svg{width:64px;height:64px}
  .hero-cta-btn{padding:7px 14px;min-width:136px;font-size:13.5px}
}
@media(min-width:992px){
  #mobile-search-panel,#mobile-search-toggle,.mobile-bottom-nav,.mobile-lang-modal{display:none!important}
  .desktop-header .desktop-center{min-width:180px}
  .desktop-header .desktop-search{width:100%;max-width:420px;margin-inline:16px}
  .desktop-header .desktop-right{gap:8px}
  .desktop-header .header-link{font-size:12px}
}
@keyframes search-panel-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#mobile-search-panel,.mobile-lang-sheet{animation:none}.shimmer{animation:none!important}}

/* Keep all header controls on the same vertical center. */
.main-header .header-right,.desktop-header .desktop-right{align-items:center}
.desktop-header #cart-container{display:flex;align-items:center;justify-content:center;margin:0;padding:0;line-height:1;align-self:center}
.header-icon,.desktop-header #cart-btn{margin-block:0;line-height:1;vertical-align:middle;align-self:center}
.header-icon svg,.desktop-header #cart-btn i{display:block;width:21px;height:21px;line-height:21px;margin:0;padding:0;text-align:center}

/* Cart glyph follows the same light/dark foreground as adjacent controls. */
body.dark .desktop-header #cart-btn i{color:inherit}

/* Store name remains readable against the dark storefront hero. */
body.dark .hero-content #storeName2{color:#f3f4f6}
