/* Souq Display v2 — MegaMart storefront */
.theme-souq-v2{
  --theme-bg:#ffffff;
  --theme-surface:#f5f5f5;
  --theme-elevated-surface:#ffffff;
  --theme-text:#222222;
  --theme-muted:#666666;
  --theme-accent:#008ecc;
  --theme-accent-contrast:#ffffff;
  --theme-section-padding-scale:.55;
  --theme-radius:16px;
  --theme-radius-card:16px;
  --theme-radius-button:10px;
  --theme-heading:"Space Grotesk","Tajawal",system-ui,sans-serif;
  --theme-body:"Tajawal","Space Grotesk",system-ui,sans-serif;
  --theme-heading-tracking:0;
  --mm-navy:#212844;
  --mm-save:#249b3e;
  --mm-gutter:clamp(16px,8vw,120px);
  font-family:var(--theme-body);
}
.theme-souq-v2 .sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.theme-souq-v2 .theme-brand,
.theme-souq-v2 .theme-hero h1,
.theme-souq-v2 .theme-section h2,
.theme-souq-v2 .theme-split h2,
.theme-souq-v2 .theme-slider-copy h2,
.theme-souq-v2 .theme-footer strong,
.theme-souq-v2 .theme-products h3,
.theme-souq-v2 .theme-services h3{
  font-family:var(--theme-heading);
  letter-spacing:0;
}

/* —— Storefront header —— */
.theme-souq-v2 .theme-header-storefront{
  display:block;
  height:auto;
  padding:0;
  background:#fff;
  border-bottom:0;
}
.theme-souq-v2 .theme-storefront-utility{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:42px;
  padding:10px var(--mm-gutter);
  background:#f5f5f5;
  color:#666;
  font-size:14px;
}
.theme-souq-v2 .theme-storefront-utility-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 22px;
}
.theme-souq-v2 .theme-storefront-utility-links a{
  color:#666;
  font-weight:400;
}
.theme-souq-v2 .theme-storefront-bar{
  display:grid;
  grid-template-columns:auto minmax(180px,507px) auto;
  gap:24px;
  align-items:center;
  padding:18px var(--mm-gutter);
  border-bottom:1px solid #ededed;
}
.theme-souq-v2 .theme-header-storefront .theme-brand{
  position:relative;
  padding-inline-start:60px;
  color:#008ecc;
  font-size:28px;
  font-weight:700;
}
.theme-souq-v2 .theme-header-storefront .theme-brand:before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:50%;
  width:48px;
  height:48px;
  margin-top:-24px;
  border-radius:10px;
  background:#f3f9fb;
  box-shadow:inset 0 11px 0 -8px #008ecc, inset 0 20px 0 -17px #008ecc, inset 0 29px 0 -26px #008ecc;
}
.theme-souq-v2 .theme-storefront-search{
  width:100%;
}
.theme-souq-v2 .theme-storefront-search input{
  width:100%;
  height:48px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:#f3f9fb;
  color:#222;
}
.theme-souq-v2 .theme-storefront-search input::placeholder{color:#666}
.theme-souq-v2 .theme-storefront-actions{
  display:flex;
  align-items:center;
  gap:18px;
  font-size:16px;
  font-weight:700;
  color:#666;
}
.theme-souq-v2 .theme-storefront-actions a{color:#666}
.theme-souq-v2 .theme-storefront-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px var(--mm-gutter) 16px;
  border-bottom:1px solid #ededed;
}
.theme-souq-v2 .theme-storefront-pills a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:9px 14px;
  border-radius:18px;
  background:#f3f9fb;
  color:#222;
  font-size:14px;
  font-weight:500;
}
.theme-souq-v2 .theme-storefront-pills a[aria-current=page],
.theme-souq-v2 .theme-storefront-pills a:first-child{
  background:#008ecc;
  color:#fff;
}

/* —— Slider: navy rounded banner —— */
.theme-souq-v2 .theme-slider{
  min-height:0;
  margin:24px var(--mm-gutter) 8px;
  background:transparent;
  color:#fff;
  overflow:visible;
}
.theme-souq-v2 .theme-slider-track,
.theme-souq-v2 .theme-slider-slide{
  min-height:316px;
  border-radius:16px;
  overflow:hidden;
  background:var(--mm-navy);
}
.theme-souq-v2 .theme-slider-slide{
  grid-template-columns:1.15fr .85fr;
}
.theme-souq-v2 .theme-slider-slide>img{
  min-height:316px;
  max-height:316px;
  object-fit:contain;
  padding:24px 40px 24px 0;
  background:transparent;
}
.theme-souq-v2 .theme-slider-copy{
  padding:48px 40px 56px;
  background:transparent;
}
.theme-souq-v2 .theme-slider-hero .theme-slider-copy{background:transparent}
.theme-souq-v2 .theme-slider .theme-kicker{
  color:#fff;
  text-transform:none;
  letter-spacing:0;
  font-size:22px;
  font-weight:600;
}
.theme-souq-v2 .theme-slider-copy h2{
  max-width:none;
  color:#fff;
  font-size:clamp(32px,4.4vw,63px);
  line-height:.95;
  font-weight:700;
}
.theme-souq-v2 .theme-slider-copy p{
  color:#fff;
  font-size:22px;
  font-weight:600;
  line-height:1.25;
}
.theme-souq-v2 .theme-slider-copy .theme-button{
  display:none;
}
.theme-souq-v2 .theme-slider>.theme-carousel-controls{
  inset-inline:calc(var(--mm-gutter) - 28px);
  inset-block:50% auto;
  transform:translateY(-50%);
  justify-content:space-between;
}
.theme-souq-v2 .theme-slider>.theme-carousel-controls .theme-carousel-toggle{display:none}
.theme-souq-v2 .theme-slider .theme-carousel-dots{
  position:absolute;
  inset-inline-start:calc(var(--mm-gutter) + 90px);
  inset-block-end:36px;
  transform:none;
}
.theme-souq-v2 .theme-carousel-controls>button{
  width:86px;
  height:86px;
  min-width:86px;
  border:8px solid #fff;
  background:#f3f9fb;
  color:#008ecc;
  font-size:28px;
}
.theme-souq-v2 .theme-slider .theme-carousel-dots button{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#fff;
  opacity:.55;
}
.theme-souq-v2 .theme-slider .theme-carousel-dots button[aria-current=true]{
  width:24px;
  border-radius:7px;
  opacity:1;
  background:#fff;
}

/* —— Section chrome —— */
.theme-souq-v2 .theme-section{
  width:100%;
  padding-inline:var(--mm-gutter);
  padding-block:36px 28px;
  background:#fff;
}
.theme-souq-v2 .theme-section:nth-of-type(even){background:#fff}
.theme-souq-v2 .theme-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid #ededed;
  grid-template-columns:none;
}
.theme-souq-v2 .theme-section-head>span{
  order:2;
  color:#222;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  padding-top:0;
}
.theme-souq-v2 .theme-section-head>span:after{
  content:" ›";
  color:#008ecc;
}
.theme-souq-v2 .theme-section h2{
  order:1;
  font-size:24px;
  line-height:30px;
  font-weight:700;
  color:#666;
  max-width:none;
}
.theme-souq-v2 .theme-section-head:before{
  content:"";
  position:absolute;
}
.theme-souq-v2 .theme-products-section,
.theme-souq-v2 .theme-services-section{
  position:relative;
}
.theme-souq-v2 .theme-products-section .theme-section-head,
.theme-souq-v2 .theme-services-section .theme-section-head{
  position:relative;
}
.theme-souq-v2 .theme-products-section .theme-section-head:after,
.theme-souq-v2 .theme-services-section .theme-section-head:after{
  content:"";
  position:absolute;
  left:0;
  right:auto;
  bottom:-1px;
  width:min(280px,40%);
  height:3px;
  background:#008ecc;
}
.theme-page[dir=rtl].theme-souq-v2 .theme-products-section .theme-section-head:after,
.theme-page[dir=rtl].theme-souq-v2 .theme-services-section .theme-section-head:after{
  left:auto;
  right:0;
}

/* —— Product cards —— */
.theme-souq-v2 .theme-products{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.theme-souq-v2 .theme-products article{
  display:flex;
  flex-direction:column;
  background:#f5f5f5;
  border:1px solid #ededed;
  border-radius:16px;
  overflow:hidden;
  min-height:295px;
}
.theme-souq-v2 .theme-products article:nth-child(2){
  border-color:#008ecc;
  box-shadow:0 24px 24px #0000000a;
}
.theme-souq-v2 .theme-product-index{display:none}
.theme-souq-v2 .theme-product-badge{
  position:absolute;
  top:0;
  inset-inline-end:0;
  z-index:2;
  width:51px;
  min-height:53px;
  padding:8px 6px;
  border-radius:0 16px 0 16px;
  background:#008ecc;
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1.15;
  text-align:center;
}
.theme-page[dir=rtl].theme-souq-v2 .theme-product-badge{border-radius:16px 0 16px 0}
.theme-souq-v2 .theme-product-media{
  flex:1;
  display:grid;
  place-items:center;
  padding:12px 12px 0;
  background:#f5f5f5;
}
.theme-souq-v2 .theme-product-media img{
  aspect-ratio:auto;
  max-height:158px;
  width:auto;
  object-fit:contain;
}
.theme-souq-v2 .theme-products h3,
.theme-souq-v2 .theme-product-meta,
.theme-souq-v2 .theme-products p,
.theme-souq-v2 .theme-products .theme-text-link{
  padding-inline:13px;
  margin:0;
}
.theme-souq-v2 .theme-products h3{
  margin-top:8px;
  padding-top:12px;
  background:#fff;
  font-size:16px;
  font-weight:600;
  line-height:18px;
}
.theme-souq-v2 .theme-product-meta{
  display:flex;
  gap:10px;
  align-items:baseline;
  background:#fff;
  padding-top:10px;
  font-size:16px;
  font-weight:700;
  color:#222;
}
.theme-souq-v2 .theme-product-meta s{
  font-weight:400;
  color:#222;
}
.theme-souq-v2 .theme-products p{
  background:#fff;
  padding-top:10px;
  padding-bottom:4px;
  border-top:1px solid #ededed;
  margin-top:10px;
  color:var(--mm-save);
  font-size:16px;
  font-weight:600;
}
.theme-souq-v2 .theme-products .theme-text-link{
  display:none;
}

/* Essentials: image-forward square cards */
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-products,
.theme-souq-v2 [data-section-id=souq-catalog-grid] .theme-products{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-products{grid-template-columns:repeat(6,minmax(0,1fr))}
.theme-souq-v2 [data-section-id=souq-home-essentials] article{
  min-height:0;
  background:#f5f5f5;
  border:0;
  text-align:center;
}
.theme-souq-v2 [data-section-id=souq-home-essentials] article:first-child{border:1px solid #008ecc}
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-product-media{
  aspect-ratio:1;
  padding:12px;
}
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-product-media img{max-height:none;width:100%;height:100%}
.theme-souq-v2 [data-section-id=souq-home-essentials] h3,
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-product-meta,
.theme-souq-v2 [data-section-id=souq-home-essentials] p{
  background:transparent;
  border:0;
  margin:0;
  padding:8px 8px 0;
  text-align:center;
  justify-content:center;
}
.theme-souq-v2 [data-section-id=souq-home-essentials] h3{color:#666;font-size:16px;padding-top:16px}
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-product-meta{color:#222;font-size:20px;padding-bottom:16px}
.theme-souq-v2 [data-section-id=souq-home-essentials] p,
.theme-souq-v2 [data-section-id=souq-home-essentials] .theme-product-badge{display:none}

/* —— Category circles —— */
.theme-souq-v2 .theme-services-section-icons .theme-services{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:24px 16px;
  border:0;
}
.theme-souq-v2 .theme-services-section-icons article{
  width:132px;
  border:0;
  text-align:center;
}
.theme-souq-v2 .theme-services-section-icons .theme-service-media{
  width:132px;
  height:132px;
  margin-inline:auto;
  border-radius:999px;
  background:#f5f5f5;
}
.theme-souq-v2 .theme-services-section-icons article:first-child .theme-service-media{
  border:1px solid #008ecc;
  box-shadow:0 10px 10px #0000000a;
}
.theme-souq-v2 .theme-services-section-icons .theme-service-media img{
  object-fit:contain;
  padding:16px;
}
.theme-souq-v2 .theme-services-section-icons .theme-service-index,
.theme-souq-v2 .theme-services-section-icons .theme-arrow,
.theme-souq-v2 .theme-services-section-icons p,
.theme-souq-v2 .theme-services-section-icons .theme-text-link{display:none}
.theme-souq-v2 .theme-services-section-icons .theme-service-copy{padding:12px 0 0}
.theme-souq-v2 .theme-services-section-icons h3{
  margin:0;
  font-size:16px;
  font-weight:500;
  color:#222;
}

/* —— Brand promo tiles —— */
.theme-souq-v2 .theme-services-section-cards .theme-services{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  border:0;
}
.theme-souq-v2 .theme-services-section-cards article{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:207px;
  border:0;
  border-radius:16px;
  overflow:hidden;
  color:#fff;
}
.theme-souq-v2 .theme-services-section-cards article:nth-child(1){background:#313131}
.theme-souq-v2 .theme-services-section-cards article:nth-child(2){background:#fff3cc;color:#222}
.theme-souq-v2 .theme-services-section-cards article:nth-child(3){background:#ffecdf;color:#222}
.theme-souq-v2 .theme-services-section-cards .theme-service-media{
  height:100%;
  min-height:207px;
  order:2;
}
.theme-souq-v2 .theme-services-section-cards .theme-service-media img{object-fit:contain;padding:12px}
.theme-souq-v2 .theme-services-section-cards .theme-service-copy{
  order:1;
  padding:20px;
}
.theme-souq-v2 .theme-services-section-cards .theme-service-index,
.theme-souq-v2 .theme-services-section-cards .theme-arrow,
.theme-souq-v2 .theme-services-section-cards .theme-text-link{display:none}
.theme-souq-v2 .theme-services-section-cards h3{
  margin:0 0 48px;
  display:inline-block;
  padding:9px 20px;
  border-radius:8px;
  font-size:14px;
  font-weight:400;
  letter-spacing:.1em;
}
.theme-souq-v2 .theme-services-section-cards article:nth-child(1) h3{background:#494949;color:#fff}
.theme-souq-v2 .theme-services-section-cards article:nth-child(2) h3{background:#f6de8d;color:#222}
.theme-souq-v2 .theme-services-section-cards article:nth-child(3) h3{background:#ffd1b0;color:#222}
.theme-souq-v2 .theme-services-section-cards p{
  margin:0;
  color:inherit;
  font-size:24px;
  font-weight:600;
  line-height:30px;
}

/* —— Inner pages —— */
.theme-souq-v2 .theme-hero{
  margin:24px var(--mm-gutter);
  min-height:0;
  border-radius:16px;
  overflow:hidden;
  background:var(--mm-navy);
  color:#fff;
}
.theme-souq-v2 .theme-hero-copy{padding:48px 40px;color:#fff}
.theme-souq-v2 .theme-hero h1{color:#fff;font-size:clamp(32px,4vw,52px);margin-bottom:16px}
.theme-souq-v2 .theme-hero p{color:#ffffffcc}
.theme-souq-v2 .theme-hero-image{min-height:280px;background:#d9d9d9}
.theme-souq-v2 .theme-split{
  margin-inline:var(--mm-gutter);
  border-radius:16px;
  overflow:hidden;
}
.theme-souq-v2 .theme-split h2{font-size:clamp(28px,3vw,40px)}

/* —— Footer —— */
.theme-souq-v2 .theme-footer,
.theme-souq-v2 .theme-footer-columns{
  position:relative;
  overflow:hidden;
  background:#008ecc;
  color:#fff;
  border:0;
  padding:80px var(--mm-gutter) 32px;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(220px,1fr);
}
.theme-souq-v2 .theme-footer:before{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  inset-inline-end:-80px;
  top:-80px;
  border-radius:50%;
  background:#0c9bda;
  border:16px solid transparent;
  box-shadow:0 0 0 1px #05abf3;
  pointer-events:none;
}
.theme-souq-v2 .theme-footer strong{
  display:inline-block;
  margin-bottom:28px;
  padding:6px 10px;
  background:#fff;
  color:#008ecc;
  font-size:28px;
}
.theme-souq-v2 .theme-footer p,
.theme-souq-v2 .theme-footer a,
.theme-souq-v2 .theme-footer>span{color:#fff}
.theme-souq-v2 .theme-footer>div:first-child::after{
  content:"";
  display:block;
  width:min(280px,100%);
  height:40px;
  margin-top:20px;
  background-image:url("/themes/v2/souq-display/badge-google-play.png"),url("/themes/v2/souq-display/badge-app-store.png");
  background-repeat:no-repeat;
  background-size:auto 40px,auto 40px;
  background-position:0 0,148px 0;
}
.theme-page[dir=rtl].theme-souq-v2 .theme-footer>div:first-child::after{
  background-position:100% 0,calc(100% - 148px) 0;
}
.theme-souq-v2 .theme-footer nav:not(.theme-footer-social){
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 40px;
  align-content:start;
}
.theme-souq-v2 .theme-footer nav:not(.theme-footer-social) a{
  font-size:16px;
  font-weight:500;
  line-height:2.1;
}
.theme-souq-v2 .theme-footer-social{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}
.theme-souq-v2 .theme-footer-social a{color:#fff}
.theme-souq-v2 .theme-footer>span{
  grid-column:1/-1;
  margin-top:36px;
  padding-top:18px;
  border-top:1px solid #05abf3;
  text-align:center;
  font-size:18px;
}
.theme-souq-v2 .theme-footer>span:after{content:" MegaMart"}

@media(max-width:1100px){
  .theme-souq-v2 .theme-products,
  .theme-souq-v2 [data-section-id=souq-home-essentials] .theme-products,
  .theme-souq-v2 [data-section-id=souq-catalog-grid] .theme-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-souq-v2 .theme-services-section-cards .theme-services{grid-template-columns:1fr}
  .theme-souq-v2 .theme-storefront-bar{grid-template-columns:1fr;gap:14px}
  .theme-souq-v2 .theme-slider>.theme-carousel-controls{inset-inline:8px}
  .theme-souq-v2 .theme-carousel-controls>button{width:56px;height:56px;min-width:56px;border-width:5px}
}
@media(max-width:900px){
  .theme-souq-v2 .theme-slider-slide,
  .theme-souq-v2 .theme-hero{grid-template-columns:1fr}
  .theme-souq-v2 .theme-slider-slide>img{grid-column:1;max-height:220px;min-height:220px;padding:12px}
  .theme-souq-v2 .theme-slider-copy{padding:28px 24px 72px}
  .theme-souq-v2 .theme-footer-columns,
  .theme-souq-v2 .theme-footer{grid-template-columns:1fr}
  .theme-souq-v2 .theme-products,
  .theme-souq-v2 [data-section-id=souq-home-essentials] .theme-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .theme-souq-v2 .theme-storefront-utility{flex-direction:column;align-items:flex-start}
  .theme-souq-v2 .theme-header-storefront .theme-brand{font-size:22px;padding-inline-start:52px}
  .theme-souq-v2 .theme-products{grid-template-columns:1fr}
  .theme-souq-v2 .theme-slider{margin-inline:12px}
}
