.s-slider-block__title:has(> .s-slider-block__title-left > a.s-slider-block__display-all) {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.s-slider-block__title:has(> .s-slider-block__title-left > a.s-slider-block__display-all) > .s-slider-block__title-right {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  margin: 0 !important;
}

.s-slider-block__title:has(> .s-slider-block__title-left > a.s-slider-block__display-all) > .s-slider-block__title-left {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}


 .s-slider-block__title {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.s-slider-block__title-right {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  margin: 0 !important;
}

.s-slider-block__title-left {
  grid-column: 3;
  grid-row: 1;
  justify-self: end; 
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

 .s-slider-block__title-right h2 {
  font-size: 1.75rem !important;
  line-height: 1.3;
}

@media (max-width: 767px) {
.s-slider-block__title-right h2 {
    font-size: 1.35rem !important;
  }
}

.s-block__title:has(> a.s-block__display-all) {
  position: relative;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-inline: 90px; 
}

.s-block__title:has(> a.s-block__display-all) > div {
  align-items: center !important;
  text-align: center;
}

.s-block__title > a.s-block__display-all {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}




/* ===== أيقونات السوشيال في الفوتر ===== */
footer ul:has(> a > .olla-social) {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

footer ul:has(> a > .olla-social) > a {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  text-decoration: none;
}

footer ul > a > .olla-social {
  width: 44px !important;
  height: 44px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 19px;
  color: var(--color-footer-text, #fff);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .3s, box-shadow .35s, border-color .3s;
}

footer ul > a > .olla-social::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: scale(0);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: -1;
}

footer ul > a > .olla-social i {
  transition: transform .4s ease;
}

footer ul > a:hover > .olla-social,
footer ul > a:focus-visible > .olla-social {
  transform: translateY(-6px);
  color: #fff;
  border-color: transparent;
}

footer ul > a:hover > .olla-social::before,
footer ul > a:focus-visible > .olla-social::before {
  transform: scale(1);
}

footer ul > a:hover > .olla-social i {
  transform: rotate(-12deg) scale(1.15);
}

footer ul > a[href*="instagram"] > .olla-social::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
footer ul > a[href*="instagram"]:hover > .olla-social {
  box-shadow: 0 10px 22px -6px rgba(214, 36, 159, .6), 0 0 0 4px rgba(214, 36, 159, .15);
}

footer ul > a[href*="tiktok"] > .olla-social::before {
  background: #111;
}
footer ul > a[href*="tiktok"]:hover > .olla-social {
  box-shadow: -3px -3px 0 #25F4EE, 3px 3px 0 #FE2C55, 0 10px 22px -6px rgba(0, 0, 0, .5);
}
footer ul > a[href*="tiktok"]:hover > .olla-social i {
  text-shadow: -1.5px -1.5px 0 #25F4EE, 1.5px 1.5px 0 #FE2C55;
}

@media (max-width: 1023px) {
  footer ul:has(> a > .olla-social) {
    justify-content: center;
  }
}




.olla-card img{
	aspect-ratio: 7/10 !important;
}
.olla-card h3{
	height: 4.5rem !important;
	overflow: hidden !important;
		font-size: 1rem !important;
}
@media(max-width: 768px){
.olla-card h3{
	font-size: 0.9rem !important;
}}

.olla-point::after {
  left: auto !important;
  right: -0.75rem !important;
}




.s-block__title {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.s-block__title > div {
  align-items: center;
  width: 100%;
}

/* ===== خط + معين تحت العناوين ===== */
.s-block__title:has(.olla-point) h3::after,
.s-block--best-offers .s-slider-block__title-right h2::after {
  content: "";
  display: block;
  width: min(100%, 220px);
  height: 16px;
  margin: 0.5rem auto 0;
  background-color: var(--color-primary, #10b981);

  --olla-diamond: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polygon points="8,1.5 14.5,8 8,14.5 1.5,8" fill="none" stroke="black" stroke-width="1.3"/><polygon points="8,5 11,8 8,11 5,8" fill="black"/></svg>');

  -webkit-mask-image: var(--olla-diamond), linear-gradient(black, black), linear-gradient(black, black);
          mask-image: var(--olla-diamond), linear-gradient(black, black), linear-gradient(black, black);
  -webkit-mask-position: center, left center, right center;
          mask-position: center, left center, right center;
  -webkit-mask-size: 16px 16px, calc(50% - 14px) 2px, calc(50% - 14px) 2px;
          mask-size: 16px 16px, calc(50% - 14px) 2px, calc(50% - 14px) 2px;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}


.s-block--best-offers .s-slider-block__title {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.s-block--best-offers .s-slider-block__title-right {
  width: 100%;
}
.s-block--best-offers .s-slider-block__title-right h2 {
  text-align: center;
}
.s-block--best-offers .s-slider-block__title-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.s-slider-block__title-right:where([dir="rtl"], [dir="rtl"] *),
.s-slider-block__title h2:where([dir="rtl"], [dir="rtl"] *){
	padding-left: unset !important;
}
.s-block--best-offers,
.s-block__title:has(.olla-point) {
  --olla-viewall-color: var(--color-primary, #10b981);
  --olla-divider-color: var(--color-primary, #10b981);
}
.s-block--best-offers .s-slider-block__title-right h2::after {
  width: min(100%, 160px);
}

.s-block--best-offers .s-slider-block__display-all,
.s-block__title:has(.olla-point) .s-block__display-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: center;
  padding: 0.4rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--olla-viewall-color);
  background: transparent;
  border: 1.5px solid var(--olla-viewall-color);
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.s-block--best-offers .s-slider-block__display-all:hover,
.s-block__title:has(.olla-point) .s-block__display-all:hover {
  background: var(--olla-viewall-color);
  color: #fff;
  transform: translateY(-2px);
}

.olla-categories .olla-categories-title h2::after {
  content: "";
  display: block;
  width: min(100%, 220px);
  height: 16px;
  margin: 0.5rem auto 0;
  background-color: var(--color-primary, #10b981);

  --olla-diamond: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polygon points="8,1.5 14.5,8 8,14.5 1.5,8" fill="none" stroke="black" stroke-width="1.3"/><polygon points="8,5 11,8 8,11 5,8" fill="black"/></svg>');

  -webkit-mask-image: var(--olla-diamond), linear-gradient(black, black), linear-gradient(black, black);
          mask-image: var(--olla-diamond), linear-gradient(black, black), linear-gradient(black, black);
  -webkit-mask-position: center, left center, right center;
          mask-position: center, left center, right center;
  -webkit-mask-size: 16px 16px, calc(50% - 14px) 2px, calc(50% - 14px) 2px;
          mask-size: 16px 16px, calc(50% - 14px) 2px, calc(50% - 14px) 2px;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

.olla-categories .olla-categories-title h2::after {
  width: 220px;           
  max-width: 70vw;   
  margin-inline: auto;
  position: relative;
  inset-inline-start: 50%;
  transform: translateX(50%);
}
[dir="ltr"] .olla-categories .olla-categories-title h2::after {
  transform: translateX(-50%);
}

.olla-categories .olla-categories-title > div > a:empty {
  display: none;
}
section.olla-categories .olla-categories-title ~ div {
    --olla-cols: 6;
    --olla-gap: 24px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: var(--olla-gap) !important;
    max-width: 1100px;
    margin-inline: auto;
}

section.olla-categories .olla-categories-category {
    flex: 0 0 calc((100% - (var(--olla-cols) - 1) * var(--olla-gap)) / var(--olla-cols));
    min-width: 0;
}

section.olla-categories .olla-categories-category .w-24.h-24 {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 8 / 10;
}

section.olla-categories .olla-categories-category h4 {
    text-align: center;
    font-size: 17px;
    line-height: 1.4;
    margin-top: 6px;
}

@media (max-width: 767px) {
    section.olla-categories .olla-categories-title ~ div {
        --olla-cols: 4;
        --olla-gap: 12px;
    }
    section.olla-categories .olla-categories-category h4 {
        font-size: 14px;
    }
}
