/* ====================================================
   PART 1: EXISTING SITE STYLES (SLIDER & PRODUCTS)
   ==================================================== 
*/
body {
  background: #ffffff !important;
  position: relative;
  overflow-x: hidden;
}

/* Premium overlay for content section only */
.s-block--slider-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(64, 0, 34, 0.93) 0%,
    rgba(64, 0, 34, 0.88) 30%,
    rgba(255, 255, 240, 0.1) 100%);
  z-index: -1;
  border-radius: 12px;
}

/* Restored original header/footer */
.main-nav-container,
.store-footer,
.store-footer__inner {
  background-color: #ffffff !important;
  backdrop-filter: none;
  border: none !important;
}

/* Premium content styling */
.s-slider-container .w-4\/6 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  padding-top: 50px;
}

.line-clamp-2.description {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  width: fit-content;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 8px rgba(255, 255, 255, 0.1);
  position: relative;
  will-change: transform, box-shadow;
}

.line-clamp-2.description:hover {
  background: linear-gradient(45deg,
    #a0ddf7,
    #a0ddf7) !important;
  border: 1px solid white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(160, 221, 247, 0.25),
              inset 0 2px 6px rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.home-slider__content h2 {
  font-weight: 700;
  font-size: 48px;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

/* Mobile optimization */
@media only screen and (max-width: 768px) {
  .home-slider__content h2 {
    font-size: 32px;
    padding: 0 15px;
  }
  .line-clamp-2.description {
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

/* Z-index management */
.s-block--slider-with-bg {
  position: relative;
  z-index: 1;
  margin: 2rem 0;
  background: transparent !important;
}

.s-slider-block__title-nav {
    display: none !important;
}

.main-nav-container,
.store-footer {
  position: relative;
  z-index: 2;
}

/* Premium Product Effects */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease !important;
  will-change: transform, box-shadow;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(160, 221, 247, 0.05) 0%, 
    rgba(255, 255, 255, 0.1) 100%); 
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15),
              0 8px 24px rgba(160, 221, 247, 0.15) !important;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4; 
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-price {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.product-card:hover .product-price {
  transform: translateX(8px);
  color: #a0ddf7 !important;
}

@keyframes productShine {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(200%) rotate(15deg); }
}

.product-card:hover::after {
  content: '';
  position: absolute;
  top: -100%; 
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  animation: productShine 1.2s ease;
  z-index: 3;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-actions {
  position: absolute;
  bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 4;
  width: 100%;
  text-align: center;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.line-clamp-2.description:focus-visible {
  outline: 2px solid #a0ddf7;
  outline-offset: 3px;
}

/* ====================================================
   PART 2: NERDS NEW NOTIFICATION (SLIDE-IN V5)
   ==================================================== 
*/
#nerds-toast-v5 {
    position: fixed;
    bottom: 140px !important; /* الموقع الذهبي فوق الواتساب */
    right: -110%; /* يبدأ مختفي تماماً خارج الشاشة */
    width: 90%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.18);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2147483647;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    direction: rtl;
    border: 1px solid #f0f0f0;
    font-family: inherit;
}

#nerds-toast-v5.show-slide {
    right: 5%; /* يظهر ويثبت في اليمين */
}

.nerds-icon-box {
    width: 48px;
    height: 48px;
    background: #fdfdfd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.nerds-content {
    flex-grow: 1;
    text-align: right;
}

.nerds-title {
    font-size: 14px;
    font-weight: 900;
    color: #111;
    display: block;
    margin-bottom: 5px;
}

.nerds-msg {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.nerds-wa-btn {
    background: #25D366;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nerds-wa-btn:hover {
    transform: scale(1.05);
}

.nerds-close {
    position: absolute;
    top: 5px;
    left: 10px;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    z-index: 2147483648;
}