/* === Fashion Floating Background Shapes === */

@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --main-color: rgb(198, 144, 76);
  --second-color: #f8e3c6;
  --ss-color: #685135;
  --third-color: rgb(71, 69, 69);
  --text-color: #fffaf7;
  --back-color: #beb4a4;
  --black-color: #252424;
  --card-color: rgba(71, 69, 69, 0.6);
  --ff-color: rgba(198, 144, 76, 0.6);
}

/* ستايل البانر */
.category-custom-banner {
  width: 100%;
  margin-bottom: 25px;
  overflow: hidden;
}

.category-custom-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* للشاشات الكبيرة */
@media (min-width: 770px) {
  .app-inner .container .items-start {
    display: grid;
    flex-wrap: wrap;
  }

  .app-inner .container .items-start > .category-custom-banner {
    flex: 0 0 100%; /* ياخد صف كامل */
    max-width: 100%; /* العرض كله */
    order: -1; /* يخليه في الأول */
    margin-bottom: 40px;
  }
}

/* حاوية الخلفية */
#perfume-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0; /* خلف كل العناصر */
  pointer-events: none;
}

/* العنصر الذهبي الصغير */
.perfume-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(71, 69, 69, 0.9) 0%,
    rgba(198, 144, 76, 0.5) 70%
  );
  opacity: 0.7;
  animation: floatUp linear forwards;
}

/* حركة الطفو */
@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* Body */
body {
  background-color: var(--second-color) !important;
  font-family: "Almarai", sans-serif;
  font-weight: 700;
  font-style: normal;
}

body:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  position: fixed;
  z-index: 999999;
  background: transparent
    url(https://cdn.salla.sa/AzaZbZ/iKR7ZR02rnYzxyCKpCCJokC7qQvdN4Zz7Zdkld9m.png);
  left: 0;
  backdrop-filter: blur(3px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 320px;
  animation-name: fade-in;
  animation-duration: 2s;
  transform: scale(0);
  border: none;
}

@keyframes fade-in {
  0% {
    opacity: 0.5;
    transform: scale(0);
  }

  25% {
    opacity: 0.8;
    transform: scale(0.6);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    rotate: 5deg;
  }
  90% {
    opacity: 0.6;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(0.3);
    rotate: -5deg;
  }
}

/* Top page */

header.store-header:before {
  content: "";
  background: url(https://i.postimg.cc/NFhz323n/3x.png);
  background-repeat-y: no-repeat;
  background-position-x: 0;
  animation: scrollBrands 2000s linear alternate both infinite;
  background-size: contain;
  height: 50px;
  display: block;
  background-color: var(--ff-color);
  background-position: center;
  margin-bottom: 16px;
  position: relative !important;
}

@keyframes scrollBrands {
  0% {
    background-position-x: 0;
  }

  50% {
    background-position-x: 35000px;
  }

  100% {
    background-position-x: 0;
  }
}

@media (max-width: 767px) {
  header.store-header:before {
    background-size: 180%;
    height: 39px;
    background-position: center;
    margin-bottom: -2px;
  }
}

@media (max-width: 700px) {
  .s-search-input {
    width: 100% !important;
  }
}

.s-search-input {
  background-color: transparent !important;
  box-shadow: 0 2px 5px var(--back-color);
  border: 1px solid var(--third-color) !important;
  width: 100% !important;
  border-radius: 8px !important;
}

/* NavBar start */

#mainnav,
.bg-inherit {
  position: relative !important;
  background-color: transparent;
  border-radius: 5px 5px 5px 5px;
  border-bottom: 1px solid var(--third-color) !important;
  border-top: 1px solid var(--main-color) !important;
  box-shadow: 0 2px 10px var(--back-color) !important;
}

.bg-inherit .container {
  border-radius: 5px;
}
.navbar-brand {
  scale: 1.3;
  animation-name: navlogo;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}
@keyframes navlogo {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(5px);
    rotate: 2deg;
  }

  50% {
    transform: translateX(0px);
  }
  75% {
    transform: translateX(-5px);
    rotate: -2deg;
  }

  100% {
    transform: translateX(0px);
    rotate: -5deg;
  }
}
.hydrated {
  color: var(--black-color);
}

.main-menu {
  color: var(--black-color);
  background-color: transparent !important;
}
.main-menu li:hover {
  color: var(--third-color);
  transition: 0.3s;
}
.main-menu li a span {
  color: var(--black-color) !important;
}
.main-menu li a span:hover {
  color: var(--third-color) !important;
  scale: 1.05;
  transition: 0.2s;
}

.mobile-menu {
  color: var(--black-color) !important;
  background-color: transparent !important;
}

.sicon-user-circle:hover::before {
  color: var(--main-color);
}
.s-cart-summary-total {
  color: var(--third-color) !important;
}
.sicon-menu {
  color: var(--third-color) !important;
}
.sicon-menu:hover {
  color: var(--main-color) !important;
  rotate: 360deg;
  transition: 0.2s;
}
.header-btn__icon {
  color: var(--third-color);
  border: 2px solid var(--main-color);
  border-radius: 15px 20px 20px 20px !important;
}

.header-btn__icon:hover {
  color: var(--main-color) !important;
  transition: 0.4s;
  scale: 1.03;
}
.main-menu::after {
  font-size: 0rem;
  color: transparent;
  background-image: url(https://cdn.salla.sa/AzaZbZ/iKR7ZR02rnYzxyCKpCCJokC7qQvdN4Zz7Zdkld9m.png);
  background-size: 40%;
  background-repeat: no-repeat;
  scale: 0.8;
  line-height: 2;
  background-position: center;
  margin-bottom: 50px;
  margin-top: 20px;
  height: 180px !important;
  animation-name: foot;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}
.header-btn:hover {
  border: none;
  color: var(--main-color);
  transition: 0.3s;
  scale: 1.04;
}

.s-cart-summary-total {
  color: var(--third-color);
}
#mobile-menu {
  background: var(--third-color);
}
@media only screen and (max-width: 1024px) {
  .mm-spn.mm-spn--light {
    color: var(--second-color);
    background: var(--main-color);
  }
  .btn--close:hover {
    rotate: 360deg;
    scale: 1.1;
    transition: 0.3s;
  }
}

/* NavBar End */

/*قـــائمــة عنـــاصــــر*/

.square-photos {
  width: 48%;
  height: 200px;
  transition-duration: 0.5s;
  transition-property: scale;
  background: transparent;
}

.lazy__bg {
  scale: 1.7;
}
.square-photos:hover {
  scale: 1.07;
  transition: 0.4s;
}

.grid-flow-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 600px) {
  .grid-flow-row:nth-child(1) {
    height: 250px;
  }
  .square-photos {
    width: 48%;
    height: 250px;
    transition-duration: 0.5s;
    transition-property: scale;
    background: transparent;
  }
  .s-block--fixed-banner img {
    scale: 1.075 !important;
  }
  .lazy__bg {
    scale: 1;
  }
}

/* Banners */
.s-block--fixed-banner img {
  background: none;
  border-radius: 0px 0px 0px 0px;
  width: 100% !important;
  height: auto;
  display: block;
  scale: 1.06;
}

/* Title */

.s-breadcrumb-wrapper {
  transform: translateY(0px);
  border: none !important;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  background-color: var(--third-color);
  height: 4px;
  box-sizing: border-box;
  width: 100%;
  border-radius: 5px;
  align-items: center;
  margin-bottom: 10px !important;
}
.s-slider-block__title h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -25px;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background-color: var(--main-color);
  z-index: 111;
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: MOVE-BG;
  animation-name: MOVE-BG;
}
@keyframes MOVE-BG {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(80px);
    transform: translateX(80px);
  }
}
.s-slider-block__title h2 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--black-color);
}
.s-slider-block__title h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--third-color);
  height: 4px;
  box-sizing: border-box;
  width: 100%;
  z-index: 0;
  border-radius: 5px;
}

.s-slider-block__title h2 {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: auto;
  background: linear-gradient(
    to right,
    var(--black-color) 20%,
    var(--main-color) 30%,
    var(--black-color) 70%,
    var(--main-color) 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}
/* رابط عرض الكل */
.s-slider-block__display-all {
  color: var(--third-color);
  background: transparent;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--main-color);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.s-slider-block__display-all:hover {
  background: var(--main-color);
  color: #fff;
  transform: scale(1.05);
}

.py-8 {
  background: transparent;
}
/* Card */

/* الكارت شفاف تماماً */
.s-product-card-entry {
  background: transparent !important;
  height: 360px;
  box-shadow: 0px 2px 8px var(--back-color) !important;
  position: relative;
  border: 1px solid var(--third-color);
  overflow: hidden;
  text-align: center;
  padding: 15px;
  scale: 0.9;
}
.s-product-card-entry:hover {
  transition: 0.4s ease;
}
.carousel-slider .swiper-wrapper > div {
  margin: auto -7px;
}
.s-product-card-entry .s-product-card-image {
  background: transparent !important;
}

/* صورة المنتج بدون خلفية وبتبان بشكل أنيق */
.s-product-card-entry .s-product-card-image img {
  background: transparent !important;
  border-radius: 50px 50px 0 0 !important;
  border: 1px solid var(--main-color);
  object-fit: cover;
  transition: 0.4s ease;
}
.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* اسم التصنيف */
.product-category-badge {
  display: inline-block;
  background: var(--third-color);
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* العنوان */
.s-product-card-content-title a {
  font-size: 16px;
  font-weight: bold;
  color: var(--third-color);
}
.s-product-card-content-title a:hover {
  color: var(--main-color);
}

/* زر أضف للسلة فيه أيقونة عربة التسوق */
.s-button-element {
  background: var(--third-color) !important;
  border-radius: 25px 10px 15px 20x;
  border: none !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  width: auto;
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

/* زر القلب (Wishlist) */
.s-product-card-vertical .s-product-card-wishlist-btn button {
  border: none !important;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 2.5rem;
  border: 2px solid var(--third-color) !important;
  height: 2.5rem;
  background: var(--back-color) !important;
  padding: 5px;
  color: var(--black-color) !important;
  border-radius: 20px 20px 20px 20px !important;
  cursor: pointer;
}

/* Footer */

/* Footer */
.footer-is-light .store-footer {
  position: relative;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
  background: transparent;
  color: var(--black-color);
}

/* خلفية GIF للفوتر */
.footer-is-light .store-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://cdn.salla.sa/AzaZbZ/iKR7ZR02rnYzxyCKpCCJokC7qQvdN4Zz7Zdkld9m.png")
    center/contain no-repeat;
  opacity: 0.3 !important;
  z-index: -1;
  animation: fadeBg 10s infinite alternate;
}

@keyframes fadeBg {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* تنسيق الـ Inner */
.footer-is-light .store-footer .store-footer__inner {
  background: rgba(198, 144, 76, 0.3);
  border-radius: 70px 70px 10px 10px;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  animation: shadowPulse 6s infinite;
}

@keyframes shadowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px var(--main-color);
  }
  50% {
    box-shadow: 0 0 40px var(--third-color);
  }
}

/* اللوجو في النص */
.footer-is-light .store-footer .store-footer__inner::before {
  content: "" !important;
  display: block;
  width: 150px;
  height: 110px;
  margin: 5px auto 0px auto;
  background: url("https://cdn.salla.sa/AzaZbZ/iKR7ZR02rnYzxyCKpCCJokC7qQvdN4Zz7Zdkld9m.png")
    center/contain no-repeat;
  animation: logoBounce 4s infinite;
}
.store-footer a h3:nth-child(1) {
  font-size: 0rem;
}
@keyframes logoBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
  }
}

/* النصوص داخل الفوتر */
.store-footer h3 {
  color: var(--black-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.store-footer a {
  color: var(--third-color);
  transition: 0.3s;
}
.store-footer a:hover {
  color: var(--black-color);
  transform: scale(1.05);
}

/* أيقونات السوشيال */
.s-social-list {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

.s-social-list a {
  background: var(--third-color);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}
.s-social-list a:hover {
  background: var(--main-color);
  transform: translateY(-3px);
}
.s-contacts-list.s-contacts-list-vertical {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.text-center::before {
  content: " برمجة و تطوير | ADFAZ";
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--third-color),
    var(--back-color),
    var(--third-color)
  );
  -webkit-background-clip: text;
  color: transparent;
  padding: 8px 0 !important;
  display: inline-block;
  animation: colorChange 3s infinite;
  background-size: 200% 200%;
  text-shadow: none;
  border-radius: 5px;
}

@keyframes colorChange {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: #000;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 30px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,  0,  0,  0.2);
}

section {
  opacity: 0;
  transform: translateY(50px); /* Slide up effect */
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}