/* Add custom CSS styles below */ 

:root{
    --second-color:#fff;
}
.navbar-brand img {
    max-height: 4rem;
     scale: 1.5;
}
.topnav-is-dark .top-navbar {
    background-color: var(--color-primary);
  }
body  ,.s-comments-product {
    background-color:#F9FAFB !important ;

}
[dir=rtl] salla-slider.photos-slider .swiper{
    padding: 0 !important;
}
.s-block salla-slider.photos-slider .swiper-slide {
    margin: 0;
    width: 100%;
}
 .carousel-slider .swiper-wrapper>div:first-of-type {
    padding: 0;
}
.s-block:first-of-type {
    margin-top: 0;
}
button.s-slider-prev.s-slider-nav-arrow.swiper-button-disabled.swiper-button-lock ,button.s-slider-next.s-slider-nav-arrow.swiper-button-disabled.swiper-button-lock{
    display: none;
}
.banner--fixed img {
       background-color: transparent;
       margin: auto;
}
/*  grid*/
.md\:grid-cols-3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}
.banner-entry ,.two-row .banner-entry:first-child {
     height: 200px !important;
      background-color: transparent;
      padding: 0px;
      color: #fff;
 overflow: hidden;
  position: relative;
  transition: 0.5s;
   animation: fadeUp 1.5s ease-in-out infinite alternate;
   }
.one-row .banner-entry,
.two-row .banner-entry,
.one-row .banner-entry:first-child,
.two-row .banner-entry:first-child {
  grid-column: span 1;
  grid-row: span 1;
}
.sm\:gap-8 {
    gap: 10px;
}
.sm\:py-16 {
    padding-top: 0;
    padding-bottom: 4rem;
}
/* animation on hover */
a.banner-entry.square-photos:hover {
    transform: scale(1.1);
    transition: 1s ease;
}
.banner-entry::after ,.s-product-card-image::after  {
  content: '';
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.25);
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.banner-entry:hover::after ,.s-product-card-image:hover::after{
  animation: flashing 0.6s linear;
}

@keyframes flashing {

  0%,
  50% {
    opacity: 1;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}
.s-product-card-entry {
    border: 2px solid #000000;
    
}
.s-product-card-image img {
    background: #fff;
}
/*footer*/
/*.footer-is-light .store-footer .store-footer__inner  ,footer.store-footer {
    background-color: var(--color-primary) !important;
    color: var(--second-color);
}*/
.copyright-text p {
    color: var(--second-color);
}
@media (max-width: 767px){
.sm\:gap-8 {
    gap: .5rem;
}
.banner-entry ,.two-row .banner-entry:first-child {
    height:80px !important;
  } 
/*slides*/
.swiper-slide {
    width: 56%;
}
.store-footer__inner * {
    text-align: center;
    justify-content: center;
}
}

/*logo */
.store-footer a[href="https://efelegance.com/"] h3 {
    font-size: 0;
    position: relative;
    margin-bottom: 0rem;
    filter: brightness(0) invert(1);
}

/* الصورة */
.store-footer a[href="https://efelegance.com/"] h3::before {
    content: "";
    display: block;
    width: 100px; 
    height: 100px;
    background: url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/BrdvBV/3A25udJ1nLL5xH4EoiOXFExoQhjlYwBitU9PGEYN.png") no-repeat center;
    background-size: contain;
    margin: auto;
    animation: fadeUp 1.5s ease-in-out infinite alternate;
}

/* animation */
@keyframes fadeUp {
    from {
        opacity: 0.9;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}
/*features*/
.s-block--features__item h2 {
    color: var(--color-primary);
}
.s-block--features__item {
        padding: 1rem .5rem;
    }
.s-block--features__item:first-child {
    grid-column: span 1/span 1;
}
.s-block--features .grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\] {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .5rem !important;
}
/* ===== Base Button ===== */
salla-add-product-button .s-button-btn {
    position: relative;
    overflow: hidden;
    border: 0.89px solid #000;
    border-radius: 8px;
    box-shadow: 1px 2px 6px rgba(0,0,0,0.08);
    color:#000;
    background-color:#fff;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Glow + Pulse Animation ===== */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0); transform: scale(1); }
    50% { box-shadow: 0 0 22px rgba(0,0,0,0.15); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 rgba(0,0,0,0); transform: scale(1); }
}

salla-add-product-button .s-button-btn {
    animation: pulseGlow 2.8s ease-in-out infinite;
}

/* ===== Layout fix ===== */
salla-add-product-button .s-button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

salla-add-product-button .s-button-text span {
    transition: opacity .3s ease, transform .3s ease, scale .3s ease;
    animation: textHideLoop 3s ease-in-out infinite;
}

/* ===== ICON base ===== */
salla-add-product-button .s-button-btn i {
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    animation: cartMoveLoop 3s ease-in-out infinite;
}

/* ===== AUTO LOOP ANIMATION (Icon move) ===== */
@keyframes cartMoveLoop {
    0%   { transform: translateX(0); }
    30%  { transform: translateX(-50px); }
    50%  { transform: translateX(-50px) scale(1.1); }
    70%  { transform: translateX(-50px); }
    100% { transform: translateX(0); }
}

/* ===== TEXT hide with Icon ===== */
@keyframes textHideLoop {
    0%   { opacity: 1; transform: translateX(0) scale(1); }
    25%  { opacity: 0; transform: translateX(10px) scale(.8); }
    70%  { opacity: 0; transform: translateX(10px) scale(.8); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== HOVER EFFECT ===== */
salla-add-product-button .s-button-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ===== HOVER ACTION ===== */
salla-add-product-button .s-button-btn:hover .s-button-text span {
    opacity: 0;
    transform: translateX(10px);
}

salla-add-product-button .s-button-btn:hover i {
    animation: cartSlide .7s forwards;
}

@keyframes cartSlide {
    0%   { transform: translateX(0); }
    40%  { transform: translateX(25px) scale(1.15) rotate(5deg); }
    60%  { transform: translateX(22px) scale(1) rotate(0deg); }
    100% { transform: translateX(0); }
}

/* ===== Glow Pulse Hover ===== */
.s-button-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(0,0,0,0.15), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.s-button-btn:hover::before {
    opacity: 1;
}

/* ===== Mobile ===== */
@media (max-width:450px) {
  .s-button-btn {
    padding: .5rem .75rem;
  }
}