/* Add custom CSS styles below */ 
.s-block:first-of-type {
  margin: 0;
}

.s-block--fixed-banner:nth-of-type(1),
.s-block--fixed-banner:nth-of-type(5) {
	height: auto;
}

.s-block--fixed-banner:first-of-type .container {
  width: 100vw !important;
  height: 100%;
  padding: 0;
  margin: 0 auto;
}

.s-block--fixed-banner:first-of-type img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1280px) {
  .s-block--fixed-banner:first-of-type .container {
    max-width: none;
  }
  زs-block--fixed-banner:nth-of-type(2){
    margin-top: 12em;
  }
}

.s-block--fixed-banner:nth-of-type(2) .container,
.s-block--fixed-banner:nth-of-type(7) .container {
  max-width: 500px;
}

.banner--fixed img {
  background-color: #F9FAFB;
}

/* Force vertical layout on product cards */
.s-products-list-horizontal-cards {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px; /* space between cards */
}

.s-product-card-horizontal {
  flex: 1 1 calc(20% - 16px); /* 5 per row */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  max-width: calc(20% - 16px);
  box-sizing: border-box;
}

/* Image on top */
.s-product-card-image {
  width: 100% !important;
  height: auto !important;
  order: -1; /* Move image to top if needed */
}

/* Ensure image is responsive */
.s-product-card-image-cover {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* Align text content below */
.s-product-card-content {
  padding: 10px 0;
  text-align: center;
}

/* Responsive behavior */
@media (max-width: 1024px) {
  .s-product-card-horizontal {
    flex: 1 1 calc(25% - 16px); /* 4 per row */
    max-width: calc(25% - 16px);
  }
}

@media (max-width: 768px) {
  .s-product-card-horizontal {
    flex: 1 1 calc(50% - 16px); /* 2 per row */
    max-width: calc(50% - 16px);
  }
}

@media (max-width: 480px) {
  .s-product-card-horizontal {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.s-block--banners:nth-of-type(3) .square-photos:second-child .lazy__bg{
  background-#fff;
}

.s-product-card-image{
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.s-block--fixed-banner:nth-of-type(6) .container{
  max-width: 1400px;
}

.s-product-card-horizontal{
  max-width: calc(25% - 16px) !important;
  min-width: 250px;
}

.s-product-card-image img.loaded{
  height: 380px !important;
}




@media (max-width: 480px){
  .s-product-card-wishlist-btn{
    display: none;
  }
}

@media (max-width: 768px){
  .s-product-card-content-sub {
    justify-content: center !important;
    gap: 0.75rem;
    }
}

@media (min-width: 768px){
  .s-product-card-content-sub {
    justify-content: space-between!important;
    gap: 0.75rem;
    }
}

.store-footer__inner {
  position: relative;
  z-index: 1;
    background-image: url(https://i.postimg.cc/sXY7fb07/e7e021a….png);
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    color: #000;
}

.store-footer__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* Light white overlay */
  z-index: 0;
}

/* Make sure actual content sits above overlay */
.store-footer__inner > * {
  position: relative;
  z-index: 1;
}

/* Replace grid layout with flex layout */
.grid.md\:grid-cols-3.two-row.grid-flow-row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center; 
}

/* Optional: control width of each banner entry */
.banner-entry {
  flex: 1 1 calc(16.666% - 4px); /* 6 per row with gap */
  max-width: calc(16.666% - 4px);
  box-sizing: border-box;
  padding: 0;
}

.gap-3, .sm\:gap-8{
  gap: 0;
}

.s-block--banners .banner-entry{
  background-color: transparent !important;
  height: 250px
}

/* Responsive - 2 columns on medium screens */
@media (max-width: 768px) {
  .banner-entry {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}

/* Responsive - 1 column on small screens */
@media (max-width: 480px) {
  .banner-entry {
    flex: 1 1 100%;
    height: 240px;
  }
  .loaded{
  height: 240px;
}
}

@media (min-width: 768px) {
    .two-row .banner-entry:first-child {
        height: auto;
    }
}

  /* Wrapper and overlay styles */
  .fixed-banner-overlay-wrapper {
    position: relative;
  }

  .fixed-banner-overlay-wrapper img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .banner-entry:first-child{
    padding: 0;
  }

  .fixed-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    z-index: 1;
    padding: 1rem;
  }

  @media (max-width: 768px) {
    .fixed-banner-overlay {
      font-size: 1.2rem;
    }
  }
  
  .s-block--fixed-banner:nth-of-type(5) .container {
  width: 100vw !important;
  height: 100%;
  padding: 0;
  margin: 0 auto;
}

.s-block--fixed-banner:nth-of-type(5) img {
  width: 100vw;
  max-height: 900px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1280px) {
  .s-block--fixed-banner:nth-of-type(5) .container        {
        max-width: none;
    }
    
  .s-block--fixed-banner:nth-of-type(5) img{
    max-height: 1200px
  }
}

iframe{
      width: 250px;
    height: 250px;
}

.s-social-link{
    display: flex;
    direction: ltr;
}