/* =========================================================
   ALFAFA SOCKS - MASTER CSS V5 PERFORMANCE
   Salla + Selia
   Header / Banner / CLS / Products / Product Page
========================================================= */

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #ffffff !important;
}

img {
  max-width: 100%;
}


/* =========================================================
   2) HEADER - BLUE + WHITE
========================================================= */

header.store-header,
.main-nav-container,
.main-nav-container .inner,
.main-nav-container.fixed-header,
.main-nav-container.fixed-header .inner,
.main-nav-container.shadow-default,
.main-nav-container.shadow-default.bg-white,
.main-nav-container.shadow-default.bg-white.fixed-pinned,
.main-menu-row {
  background-color: #1c2086 !important;
}

.main-nav-container {
  min-height: 70px;
}

#mainnav {
  height: auto !important;
}

#mainnav .container {
  width: 100% !important;
  max-width: 100% !important;
}

.main-nav-container,
.main-nav-container a,
.main-nav-container button,
.main-nav-container i,
.main-menu > li > a,
.store-header a,
.store-header button,
.store-header i {
  color: #ffffff !important;
}

.main-nav-container svg,
.store-header svg {
  color: #ffffff !important;
  fill: currentColor !important;
}

.main-menu {
  justify-content: center !important;
}

.main-menu > li > a {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.main-menu > li > a:hover,
.main-menu > .has-children:hover > a {
  color: #ffffff !important;
  opacity: .9;
  text-decoration: none !important;
}

.topnav-is-dark .top-navbar {
  --tw-bg-opacity: 1 !important;
  background-color: #1c2086 !important;
}


/* =========================================================
   3) DROPDOWN
========================================================= */

.sub-menu,
.main-menu .has-children ul {
  background: #ffffff !important;
}

.sub-menu li a,
.main-menu .has-children li a {
  color: #1c2086 !important;
}

.sub-menu li a:hover,
.main-menu .has-children li a:hover {
  color: #1c2086 !important;
  background: #f5f6ff !important;
}


/* =========================================================
   4) LOGO - CLS FIX
========================================================= */

img.logo-normal {
  display: block !important;

  width: 48px !important;
  height: 48px !important;

  min-width: 48px !important;
  min-height: 48px !important;

  max-width: 48px !important;
  max-height: 48px !important;

  aspect-ratio: 1 / 1 !important;

  object-fit: contain !important;

  flex: 0 0 48px !important;
}

.navbar-brand img {
  object-fit: contain !important;
}

@media (min-width: 640px) {
  .navbar-brand img {
    max-height: 4rem !important;
  }
}


/* =========================================================
   5) FIXED BANNER
   FULL WIDTH + NO CROPPING
========================================================= */

.s-block--fixed-banner {
  position: relative !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 0 10px !important;
  padding: 0 !important;

  overflow: visible !important;
}


/* البنر فقط يخرج من Container سلة */

.s-block--fixed-banner > .container {
  width: 100vw !important;
  max-width: none !important;

  margin-inline:
    calc(50% - 50vw) !important;

  padding-inline: 0 !important;
}


/* رابط البنر */

.s-block--fixed-banner .banner,
.s-block--fixed-banner .banner--fixed {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  border-radius: 0 !important;
}


/* Picture */

.s-block--fixed-banner picture {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  line-height: 0 !important;
}


/* الصورة نفسها */

.s-block--fixed-banner .fixed-banner__image,
.s-block--fixed-banner picture img {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 auto !important;
  padding: 0 !important;

  aspect-ratio: auto !important;

  object-fit: contain !important;
  object-position: center center !important;

  border-radius: 0 !important;

  opacity: 1 !important;
  filter: none !important;

  transform: none !important;
  transition: none !important;
}


/* مهم:
   لا نستخدم cover هنا لأن cover كان يقص البنر */

@media (min-width: 768px) {

  .s-block--fixed-banner
  .fixed-banner__image[width="1200"][height="300"] {

    width: 100% !important;
    height: auto !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

}


/* Mobile */

@media (max-width: 767px) {

  .s-block--fixed-banner > .container {
    width: 100vw !important;
    max-width: none !important;

    margin-inline:
      calc(50% - 50vw) !important;
  }

  .s-block--fixed-banner .fixed-banner__image,
  .s-block--fixed-banner picture img {
    width: 100% !important;
    height: auto !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
  }

}


/* Lazy image */

.s-block--fixed-banner .fixed-banner__image.lazy,
.s-block--fixed-banner .fixed-banner__image.loaded,
.s-block--fixed-banner .fixed-banner__image.lazy.loaded {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}


/* =========================================================
   6) HERO / OTHER BANNERS
========================================================= */

.banner-entry,
.s-block--hero-slider .swiper-slide,
.s-block--hero-slider .swiper-slide .swiper-lazy::after,
section.s-block--banners .grid {
  background-color: transparent !important;
}

.s-block.s-block--banners.container {
  width: 100% !important;
  max-width: 100% !important;

  padding: 0 !important;
}

section.s-block--banners .grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0 !important;
}

.banner-entry div {
  background-size: cover !important;
}


/* =========================================================
   7) CIRCLE CATEGORIES
========================================================= */

.circle-links img,
[class*="circle-links"] img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  object-fit: cover;

  opacity: 1 !important;
  filter: none !important;

  transition: none !important;
}

.circle-links__title {
  min-height: 44px;
}

.circle-links-2 .container {
  margin-top: 0 !important;
}


/* =========================================================
   8) SECTIONS
========================================================= */

.s-block {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}

.s-slider-block__title-right {
  flex-grow: 1;
  text-align: center;
}

[dir="rtl"] .s-slider-block__title h2,
[dir="ltr"] .s-slider-block__title h2 {
  padding-bottom: 1rem !important;

  color: #1c2086 !important;

  font-size: 1.5rem !important;
}

[dir="rtl"] .s-slider-block__title h2 {
  text-align: right;
}

[dir="ltr"] .s-slider-block__title h2 {
  text-align: left;
}


/* =========================================================
   9) BEST OFFERS - CLS
========================================================= */

#best-offers-2-slider {
  position: relative;

  width: 100%;

  min-height: 390px;

  contain: layout;
}

#best-offers-2-slider .s-slider-container {
  min-height: 330px;
}

#best-offers-2-slider .swiper-wrapper {
  min-height: 320px;
}

@media (max-width: 767px) {

  #best-offers-2-slider {
    min-height: 340px;
  }

  #best-offers-2-slider .s-slider-container {
    min-height: 285px;
  }

  #best-offers-2-slider .swiper-wrapper {
    min-height: 275px;
  }

}


/* =========================================================
   10) SLIDERS
========================================================= */

.carousel-slider .swiper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.swiper-wrapper {
  margin: 10px 0 !important;
}

salla-slider
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -.25rem !important;
}

.swiper-pagination-bullet {
  background: #eeeeee !important;
}

.swiper-pagination-bullet-active {
  background: #1c2086 !important;
}


/* =========================================================
   11) GENERAL PRODUCT CARDS
========================================================= */

.s-product-card-vertical {
  flex-direction: column;

  outline: 1px solid #1c2086 !important;
}

.s-product-card-image {
  overflow: hidden;
}

.s-product-card-image img,
img.main-image {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  object-fit: contain;
}


/* Title */

.s-product-card-content-title,
.s-product-card-content-title a {
  display: block !important;
}

.s-product-card-content-title a {
  color: #1c2086 !important;

  font-size: 1rem !important;
  font-weight: 700 !important;

  text-align: center !important;
}


/* Footer */

.s-product-card-content-footer {
  display: block !important;
}

.s-product-card-content-footer button {
  padding: 10px 20px !important;

  background: #1c2086 !important;
  color: #ffffff !important;

  border: 1px solid transparent;
  border-radius: 25px !important;
}


/* =========================================================
   12) PRODUCTS INSIDE SLIDERS
========================================================= */

.s-slider-container .swiper-wrapper,
salla-slider .swiper-wrapper {
  align-items: stretch !important;
}

.s-products-slider-card.swiper-slide {
  display: flex !important;

  height: auto !important;

  align-self: stretch !important;
}

.s-products-slider-card custom-salla-product-card,
.s-products-slider-card .product-card,
.s-products-slider-card .s-product-card-entry {
  display: flex !important;

  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 0 !important;
}


/* Product images */

.s-products-slider-card .product-card__image,
.s-products-slider-card .s-product-card-image {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  min-height: 0 !important;

  flex: 0 0 auto !important;

  overflow: hidden !important;
}

.s-products-slider-card img.main-image,
.s-products-slider-card .product-card__image img,
.s-products-slider-card .s-product-card-image img {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;

  object-fit: contain !important;
}


/* Card content */

.s-products-slider-card .product-card__content,
.s-products-slider-card .product-card__content-wrapper,
.s-products-slider-card .s-product-card-content {
  display: flex !important;

  flex: 1 1 auto !important;
  flex-direction: column !important;

  width: 100% !important;

  min-height: 0 !important;
}


/* Product title */

.s-products-slider-card .product-card__title,
.s-products-slider-card .s-product-card-content-title {
  width: 100% !important;

  min-height: 42px !important;

  margin: 4px 0 7px !important;
}

.s-products-slider-card .product-card__title a,
.s-products-slider-card .s-product-card-content-title a {
  display: -webkit-box !important;

  overflow: hidden !important;

  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;

  color: #1c2086 !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  line-height: 1.55 !important;

  text-align: center !important;
}


/* Subtitle */

.s-products-slider-card .product-card__subtitle,
.s-products-slider-card .s-product-card-content-sub {
  display: block !important;

  margin: 0 0 6px !important;

  color: #64748b !important;

  font-size: 11px !important;

  text-align: center !important;
}


/* Price */

.s-products-slider-card .product-card__price,
.s-products-slider-card .s-product-card-price,
.s-products-slider-card .s-product-card-sale-price {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;
  min-height: 26px !important;

  margin: 5px 0 8px !important;

  color: #1c2086 !important;

  font-size: 14px !important;
  font-weight: 800 !important;
}


/* Actions */

.s-products-slider-card .product-card__actions,
.s-products-slider-card .product-card__buttons,
.s-products-slider-card .product-card__normal-cart,
.s-products-slider-card .s-product-card-content-footer {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;

  margin-top: auto !important;
}

.s-products-slider-card .product-card__mini-cart {
  display: none !important;
}


/* Add to cart */

.s-products-slider-card salla-add-product-button {
  display: block !important;

  width: 100% !important;
}

.s-products-slider-card
salla-add-product-button
.s-button-element {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;
  min-height: 38px !important;

  padding: 8px 10px !important;

  background: #ffffff !important;
  color: #1c2086 !important;

  border: 1px solid #1c2086 !important;
  border-radius: 8px !important;

  font-size: 12px !important;
  font-weight: 700 !important;
}


/* =========================================================
   13) PRODUCT PAGE
========================================================= */

#variant-inventory,
nav.breadcrumbs {
  display: none !important;
}

.product-single__info {
  margin-top: 10px;
}

.product-single-top-description,
.product-single__info h1 {
  margin-bottom: 0 !important;
}

.product-single__slider {
  margin-bottom: 0 !important;
}

.product-single__main-media .swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: auto !important;
}


/* =========================================================
   14) SHOW MORE
   نسخة أخف بدون :has()
========================================================= */

article#more-content {
  max-height: 150px !important;

  overflow: hidden !important;

  transition:
    max-height .2s ease !important;
}


/* الكلاس الذي يضاف عند الفتح */

.product-single__description.alfafa-description-expanded,
.product-single-description.alfafa-description-expanded,
.product-description.alfafa-description-expanded,
.product__description.alfafa-description-expanded,
article#more-content.alfafa-description-expanded {
  display: block !important;

  max-height: none !important;
  height: auto !important;

  overflow: visible !important;

  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

#btn-show-more {
  position: relative !important;
  z-index: 5 !important;

  display: block;

  margin-top: 10px;

  color: #007bff;

  font-weight: 700;

  text-align: center;

  cursor: pointer;
}


/* =========================================================
   15) BUY BEFORE DESCRIPTION
========================================================= */

.alfafa-buy-before-description {
  direction: rtl;

  width: 100%;

  margin: 24px 0 38px;
  padding: 24px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 18px;

  text-align: right;
}

.alfafa-buy-head {
  margin-bottom: 22px;
}

.alfafa-buy-eyebrow {
  display: inline-block;

  margin-bottom: 8px;
  padding: 5px 11px;

  background: #fff7d6;
  color: #172554;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 800;
}

.alfafa-buy-title {
  margin: 0 0 7px;

  color: #172554;

  font-size: 23px;
  font-weight: 900;
}

.alfafa-buy-subtitle {
  margin: 0;

  color: #64748b;

  line-height: 1.8;
}

.alfafa-step-number {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  background: #172554;
  color: #ffffff;

  border-radius: 50%;

  font-weight: 900;
}

.alfafa-options-heading,
.alfafa-quantity-heading {
  display: flex;

  align-items: center;

  gap: 11px;

  margin: 18px 0 12px;
}

.alfafa-main-buy-button {
  display: block !important;

  width: 100% !important;

  margin-top: 12px !important;
}

.alfafa-main-buy-button .s-button-element {
  width: 100% !important;
  min-height: 54px !important;

  background: #172554 !important;
  color: #ffffff !important;

  border-color: #172554 !important;
  border-radius: 13px !important;

  font-size: 16px !important;
  font-weight: 900 !important;
}

.alfafa-buy-trust {
  display: flex;

  flex-wrap: wrap;

  gap: 9px 16px;

  margin-top: 18px;
  padding-top: 16px;

  border-top: 1px solid #e2e8f0;

  color: #475569;

  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   16) LIGHT TRUST BAR
========================================================= */

.alfa-light-trust-bar {
  direction: rtl;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  width: 100%;

  margin: 14px 0 20px;
  padding: 14px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.alfa-light-trust-item {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 42px;

  color: #1c2086;

  font-size: 13px;
  font-weight: 700;
}

.alfa-light-trust-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  flex: 0 0 22px;

  background: #1c2086;
  color: #ffffff;

  border-radius: 50%;
}


/* =========================================================
   17) CART SELECTED COLOR
========================================================= */

.alfafa-cart-selected-color {
  direction: rtl;

  width: 100%;

  margin: 12px 0 16px;
  padding: 12px;

  background: #f8fafc;

  border: 1px solid #dbe3ef;
  border-radius: 14px;
}

.alfafa-cart-selected-color__row {
  display: flex;

  align-items: center;

  gap: 10px;
}

.alfafa-cart-selected-color__image {
  width: 56px;
  height: 56px;

  flex: 0 0 56px;

  overflow: hidden;

  background: #ffffff;

  border-radius: 8px;
}

.alfafa-cart-selected-color__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.alfafa-cart-selected-color__details {
  display: flex;

  flex-direction: column;

  gap: 3px;
}

.alfafa-cart-selected-color__name {
  color: #111827;

  font-weight: 800;
}

.alfafa-cart-selected-color__code {
  color: #6b7280;

  font-size: 11px;
}

.alfafa-cart-selected-color__confirmed {
  color: #16803b;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   18) FOOTER
========================================================= */

.footer-bottom,
.store-footer__contacts-row,
.store-footer__inner {
  background: #1c2086 !important;
}

.store-footer__inner > * {
  color: #ffffff !important;
}


/* =========================================================
   19) HIDE UNWANTED SMALL IMAGE
========================================================= */

img.flex-none.w-24.h-20.border.border-gray-200.bg-gray-100.rounded-md.object-center.object-cover {
  display: none;
}


/* =========================================================
   20) MOBILE
========================================================= */

@media (max-width: 640px) {

  .s-products-slider-card
  .product-card__title a,

  .s-products-slider-card
  .s-product-card-content-title a {
    font-size: 11px !important;
  }

  .s-products-slider-card
  .product-card__price,

  .s-products-slider-card
  .s-product-card-price {
    font-size: 12px !important;
  }

  .alfafa-buy-before-description {
    margin: 18px 0 28px;

    padding: 17px;

    border-radius: 14px;
  }

  .alfafa-buy-title {
    font-size: 20px;
  }

  .alfafa-buy-trust,
  .alfa-light-trust-bar {
    display: grid;

    grid-template-columns: 1fr;

    gap: 7px;
  }

  .alfa-light-trust-item {
    justify-content: flex-start;
  }

}


/* =========================================================
   21) PERFORMANCE / ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }

}






.store-footer__contacts-row a[href^="tel:"]{
  display:none !important;
}
.starting-price-title{
  display:none!important;
}