/* Add custom CSS styles below */ 
/* =========================
   Global Variables
========================= */
:root {
  --main-color: #F8CE83;
  --white-color: #ffffff;
  --black-color: #000000;
}

body {
  background-color: var(--white-color);
}


/* =========================
   Header
========================= */
.navbar-brand img {
  max-height: 4rem;
}

#main-content > section:nth-child(1) {
  margin-top: 0;
}

.top-navbar {
  background-color: var(--main-color) !important;
}

.topnav-link-item {
  border-color: var(--black-color) !important;
}

.s-cart-summary-count {
  color: var(--white-color) !important;
}

.top-navbar .s-search-input {
  background-color: var(--white-color) !important;
}

.main-menu li.root-level > a:hover {
  transform: translateY(-3px);
}

.s-user-menu-login-btn svg {
  fill: var(--white-color) !important;
}

i.header-btn__icon.sicon-user-circle,
i.header-btn__icon.icon.sicon-shopping-bag,
i.sicon-menu,
.s-user-menu-login-btn {
  background: var(--main-color) !important;
  color: var(--white-color) !important;
  box-shadow: rgb(100 100 111 / 20%) 0 7px 29px 0;
  transition: 0.3s;
}

i.sicon-menu {
  padding: 8px;
  border-radius: 50%;
}

i.header-btn__icon.sicon-user-circle:hover,
i.header-btn__icon.icon.sicon-shopping-bag:hover {
  background: var(--white-color) !important;
  color: var(--main-color) !important;
  box-shadow: rgb(100 100 111 / 20%) 0 7px 29px 0;
  transform: translateY(-3px);
}

#mainnav .sicon-menu {
  width: 2.5rem;
}


/* =========================
   Photos Slider
========================= */
section.s-block.s-block--photos-slider {
  margin-top: 0 !important;
}

section.s-block.s-block--photos-slider
salla-slider.photos-slider
.swiper-slide {
  padding: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
}

[dir="rtl"]
section.s-block.s-block--photos-slider
salla-slider.photos-slider
.swiper {
  padding: 0 !important;
}

img.w-full {
  border-radius: 0;
}


/* =========================
   Product Cards
========================= */
.s-product-card-image img,
.s-product-card-image img.loaded {
  background: var(--white-color);
}

.s-product-card-entry {
  box-shadow: 0 0 10px 0 #87816e30;
}

.s-products-slider-card.swiper-slide {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 20px;
  transition: transform 0.3s ease;
}

.s-products-slider-card.swiper-slide:hover {
  transform: translateY(-7px);
}

.s-slider-block__title-right {
  color: var(--main-color) !important;
}

salla-slider[type]:not(.hydrated) > div > div,
salla-slider[type]:not(.hydrated) .swiper > div > div > div,
.carousel-slider .swiper-wrapper > div {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  margin-block: 19px;
}

button.s-slider-next.s-slider-nav-arrow.swiper-button-disabled.swiper-button-lock,
button.s-slider-prev.s-slider-nav-arrow.swiper-button-disabled.swiper-button-lock {
  display: none;
}


/* =========================
   Buttons
========================= */
button.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
  color: var(--white-color);
  background: var(--main-color) !important;
  border: 2px solid var(--main-color) !important;
  box-shadow: inset 0 0 0 0 var(--white-color);
  transition: ease-out 0.5s;
}

button.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center:hover {
  color: var(--main-color) !important;
  box-shadow: inset 0 -100px 0 0 var(--white-color);
}

button.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center:active {
  transform: scale(0.9);
}


/* =========================
   Banners
========================= */
.banner-entry {
  background: var(--white-color);
}

.banner--fixed img {
  border-radius: 0;
  background-color: transparent;
}


/* =========================
   Social Media
========================= */
a[href*="instagram"] {
  color: var(--white-color);
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border: none;
}

a[href*="tiktok"] {
  background: var(--black-color);
  color: var(--white-color);
  border: none;
}

a[href*="snapchat"] {
  background: #ffff00;
  border: none;
}

.s-social-link a[href*="snapchat"] svg {
  fill: var(--black-color) !important;
}

a[href*="youtube"] {
  background: #ff0000;
  color: var(--white-color);
  border: none;
}

footer a[href*="x"] {
  background: var(--black-color);
  color: var(--white-color);
  border: none;
}


/* =========================
   Footer
========================= */
.store-footer {
  background: var(--white-color) !important;
}

.store-footer__inner {
  background-color: var(--main-color) !important;
  background-image: url("https://g.top4top.io/p_3889f7nz91.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  color: var(--white-color) !important;

  border-radius: 50px 50px 0 0;
}

.store-footer__inner * {
  color: var(--black-color) !important;
}


/* =========================
   Product Notes
========================= */
.installation-note {
  display: block;
  margin-bottom: 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;

  color: #b02a37;
}

.starting-or-normal-price {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
}

.starting-or-normal-price h2.total-price {
    order: 1;
}

.starting-or-normal-price::before {
    content: "الأسعار شاملة ضريبة القيمة المضافة";
    order: 2;
    display: block;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.starting-or-normal-price::after {
    content: "رسوم تركيب الباركيه العادي 10 ريال للمتر و هرمي 20.25 ريال";
    order: 3;
    display: block;
    color: #dc2626 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.s-product-options-option-content::before {
  content: "الكمية للمقاس السريع بحساب غرفة واحدة قياسية لا يشمل ممرات أو مداخل";
  display: block;
  color: #dc2626 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 8px;
  order: 2;
}

.s-product-options-option-content::after {
  content: "إن لم تجد الكمية المطلوبة، اختر (كمية أخرى) لدفع 1000 ريال مقدما و كتابة الكمية في الملاحظات";
  display: block;
  color: #000 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 4px;
  order: 3;
}

.s-product-options-option-content {
  display: flex;
  flex-direction: column;
}

.s-product-options-option-content > div {
  order: 1;
}


/* =========================
   Product Details Layout
========================= */
.container--product-details .main-content {
  display: flex;
  flex-direction: column;
}

.container--product-details
.main-content
> form.product-form {
  display: contents;
}


/* Hide Static Price */
.container--product-details
.main-content
> [data-testid="store-product-price"] {
  display: none !important;
}


/* Product Title */
.container--product-details
.main-content
> [data-testid="store-product-title"] {
  order: -40;
}


/* Dynamic Price */
.container--product-details
form.product-form
> section:has(.price-wrapper) {
  order: -30;

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

  background: transparent !important;
  border-radius: 0 !important;
}

.container--product-details
form.product-form
> section:has(.price-wrapper)
.form-label {
  display: none !important;
}

.container--product-details
form.product-form
> section:has(.price-wrapper)
.center-between {
  justify-content: flex-start !important;
}


/* Product Options */
.container--product-details
form.product-form
> salla-product-options {
  order: -20;

  display: block !important;
  width: 100%;

  margin-block: 10px 20px;
}

.container--product-details
salla-conditional-fields {
  display: block !important;
}

.container--product-details
.s-product-options-option {
  margin-block: 20px;
}


/* Quantity + Add to Cart */
.container--product-details
form.product-form
> section.sticky-product-bar {
  order: -15;
  width: 100%;
}


/* Attachments */
.container--product-details
form.product-form
> section:has([data-testid="store-product-add-note"]) {
  order: -12;
  width: 100%;
}


/* Product Description */
.container--product-details
.main-content
> [data-testid="store-product-description"] {
  order: -10;
}


/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  #main-content > section:nth-child(2) {
    margin-top: 0;
  }

  .store-footer__inner {
    border-radius: 25px 25px 0 0 !important;
  }

  .store-footer__inner * {
    justify-content: center;
    text-align: center;
  }
}