/* ==================== FONTS ==================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:lang(en) {
  font-family: "Inter", sans-serif;
}

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors */
  --color-primary: #ff4ecd;
  --color-primary-d: #18181b;
  --color-primary-l: #71717a;
  --color-primary-reverse: #ffffff;
  
  /* Backgrounds */
  --bg-color: #000000;
  --bg-gray: #18181b;
  --bg-lighter-gray: #27272a;
  --color-grey: #3f3f46;
  
  /* Text */
  --main-text-color: #e4e4e7;
  --main-text-color-dark: #a1a1aa;
  --color-text: #d4d4d8;
  
  /* Borders */
  --color-border: #52525b;
  --color-light-grey: var(--bg-gray);
  
  /* Shadows */
  --dark-grey-shadow: 0 0 0 1px var(--bg-lighter-gray);
  
  /* Dark Mode Variables */
  --dark-bg-main: var(--bg-gray);
  --dark-bg-sec: var(--bg-lighter-gray);
  --dark-grey: #3f3f46;
  --dark-text-main: var(--main-text-color);
  --dark-text-sec: var(--main-text-color-dark);
  
  /* Other */
  --infinte-color: #3f3f46;
  --mm-ocd-width: calc(100% - 51px);
}

/* ==================== GLOBAL STYLES ==================== */
* {
  border-color: var(--color-border) !important;
}

img {
  border-radius: 0.5rem;
}

.app-inner {
  background-image: url(https://i.ibb.co/9hW1FXt/wallpepr.png) !important;
  background-color: var(--bg-color) !important;
  color: var(--main-text-color) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* ==================== BUTTONS ==================== */
.btn,
.s-button-element,
button {
  border-radius: 20rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.s-button-element:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 78, 205, 0.2);
}

.btn:active,
.s-button-element:active,
button:active {
  transform: translateY(0);
}

.s-product-card-promotion-title {
  border-radius: 20rem !important;
  padding-top: 0;
  padding-bottom: 0;
}

/* ==================== GLASSY EFFECTS ==================== */
.s-block--features__item,
.a-glassy-block {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}

.s-block--features__item {
  text-align: center;
  padding: 64px 0;
  border-left-width: 1px !important;
}

@media (max-width: 767px) {
  .s-block--features__item {
    padding: 32px 0;
  }
}

.s-block--features__item::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 138, 255, 0.2);
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 40px));
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  z-index: -1;
  filter: blur(16px);
  transition: background 0.5s ease;
}

.s-block--features__item__leave::before {
  transition: left 0.5s ease, top 0.5s ease, opacity 0.5s ease, background 0.5s ease;
}

.s-block--features__item__active::before {
  background: rgba(255, 138, 255, 0.4);
}

.s-block--features__item > small,
.s-block--features__item > p {
  color: #e4e4e7;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header-is-dark .main-nav-container .inner,
.overlay-layer::after {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#app > div.app-inner > header.page-header.h-16 {
  background-color: var(--bg-gray);
}

/* ==================== FOOTER ==================== */
.store-footer {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  overflow: hidden;
  background-color: #18181b;
  background-image: url(https://i.ibb.co/ChXkpBB/image.png);
}

.store-footer__top {
  background-color: #18181b;
  background-image: url(https://i.ibb.co/QDtqT3H/image.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 300px;
}

.glowing-line {
  position: relative;
}

.glowing-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 100px;
  background: linear-gradient(180deg, rgba(254, 165, 254, 0) 0%, rgba(254, 165, 254, 1) 50%, rgba(254, 165, 254, 0) 100%);
  border-radius: 50%;
}

:lang(ar) .glowing-line::after {
  left: 20px;
}

:lang(en) .glowing-line::after {
  right: 20px;
}

/* Social Links */
.social-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
}

.social-logo-title {
  font-size: 14px;
  color: #fff;
  font-weight: normal;
  display: inline-block;
  vertical-align: middle;
}

.s-contacts-list-vertical a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
}

#app > div.app-inner > footer > div > div > div > div.col-span-6 > a > img {
  max-height: 150px;
}

#app > div.app-inner > footer > div > div > div > div:nth-child(2),
#app > div.app-inner > footer > div > div > div > div:nth-child(3) {
  margin-top: 30px;
}

/* ==================== FORMS & INPUTS ==================== */
.s-form-control,
.s-search-input {
  border-color: var(--color-border);
  background-color: #3f3f46;
  color: #fff;
}

.s-form-control::placeholder,
.s-search-input::placeholder {
  color: #e4e4e7;
}

/* ==================== PRODUCTS ==================== */
.s-product-card-entry {
  background-color: var(--bg-gray);
  border-color: var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.s-product-card-entry:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 78, 205, 0.15);
}

.s-product-card-image {
  background-color: #3f3f46;
  overflow: hidden;
}

.s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.s-product-card-content {
  margin-top: 8px;
}

.s-product-card-wishlist-btn button:not(:hover) {
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  box-shadow: var(--tw-shadow);
}

/* Product Fixed Bar - Dark Theme */
.product-fixed-bar {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==================== READ MORE FEATURE ==================== */
.read-more-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: var(--main-text-color);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.read-more-btn:active {
  transform: translateY(0);
}

.read-more-icon {
  transition: transform 0.3s ease;
}

.read-more-btn.expanded .read-more-icon {
  transform: rotate(180deg);
}

:lang(ar) .read-more-btn {
  flex-direction: row-reverse;
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 78, 205, 0.9);
  border: 1px solid rgba(255, 78, 205, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: rgba(255, 78, 205, 1);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 78, 205, 0.4);
}

.scroll-to-top svg {
  stroke: white;
}

:lang(ar) .scroll-to-top {
  right: auto;
  left: 30px;
}

/* ==================== DARK MODE (Consolidated) ==================== */
.dark,
[data-theme="dark"] {
  color-scheme: dark;
}

/* Base Elements */
.dark .s-input,
.dark .form-input,
.dark input,
.dark textarea,
.dark select,
.dark .tel-input,
.dark .s-login-modal-input,
.dark .s-product-availability-input,
.dark .s-verify-input,
.dark .s-comment-form-input {
  color: var(--dark-text-main);
  background-color: var(--dark-grey);
}

.dark .s-product-options-wrapper input,
.dark .s-product-options-wrapper textarea,
.dark .s-product-options-wrapper select {
  background-color: var(--dark-bg-main);
}

/* Text Colors */
.dark label,
.dark .text-dark,
.dark .text-base,
.dark dd,
.dark h3 > a,
.dark h4,
.dark .text-gray-800,
.dark .text-gray-600,
.dark .s-block__title,
.dark .s-slider-block__title-right,
.dark .s-product-card-content-title,
.dark .s-metadata-row-name,
.dark .s-metadata-row-value,
.dark .s-comments-count-label,
.dark .s-comments-item-user-info-name,
.dark .s-comments-item-content p,
.dark .opt-text h4,
.dark .opt-text p,
.dark .opt-text li,
.dark .s-product-options-option-label,
.dark .s-filters-option-name,
.dark .s-filters-widget-title,
.dark .s-filters-widget-values .s-price-range-currency,
.dark .s-filters-widget-values .s-price-range-gray-text,
.dark .notification-item__icon,
.dark .s-loyalty-header-subtitle,
.dark .s-user-settings-section-subtitle {
  color: var(--dark-text-main) !important;
}

/* Secondary Text */
.dark .s-product-card-content-subtitle,
.dark .s-comments-item-timestamp,
.dark .s-product-options-option-label small,
.dark .s-reviews-summary-count,
.dark .s-reviews-summary-percentage,
.dark .s-reviews-summary-row-rate,
.dark .no-content-placeholder,
.dark .no-content-placeholder p,
.dark .points-ways__list .way-item__content p {
  color: var(--dark-text-sec);
}

/* Backgrounds */
.dark .bg-white,
.dark .bg-gray-100,
.dark .bg-gray-50,
.dark .lg\:bg-white,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-gray-100,
[data-theme="dark"] .bg-gray-50 {
  background-color: var(--dark-bg-main) !important;
}

.dark .product-entry,
.dark .s-product-card-entry,
.dark .faqs-list__item,
.dark .slide--cat-entry,
.dark .details,
.dark .s-metadata-box,
.dark .s-list-tile-item,
.dark .notification-item,
.dark .s-comments-item,
.dark .brands-nav__item,
.dark .s-modal-body,
.dark .s-filters-widget-container,
.dark .s-filters-widget-values .s-price-range-number-input,
.dark .angel-search-btn,
.dark .menu-user-login .s-user-menu-wrapper,
.dark .store-header .s-user-menu-toggler .s-user-menu-dropdown,
.dark .dropdown__menu,
.dark .thankyou-block,
.dark .form--user-profile input,
.dark .form--user-profile select,
.dark .tabs__outline .tab-trigger,
.dark .tabs__flex .tab-trigger,
.dark .s-social-share-list,
.dark button.s-social-share-btn,
.dark .sidebar salla-button.btn--wishlist .btn--wishlist,
.dark .cart .btn--wishlist,
.dark .s-product-availability-subscribed,
.dark .s-quick-order .s-quick-order-container,
.dark .s-quick-order input,
.dark .s-search-modal .s-search-results,
.dark .s-search-modal .s-search-input,
.dark .s-login-modal .s-login-modal-main-btn,
.dark .s-verify-back,
.dark .contact-links a,
.dark .s-product-options-grid-mode-span,
.dark .s-notifications-item,
.dark .s-table tbody tr,
.dark .s-count-down-item,
.dark .special-product-countdown .s-count-down-item,
.dark .s-gifting-widget .s-list-tile-item,
.dark .multihome-loading,
.dark .s-modal-close,
.dark .no-content-placeholder .icon,
.dark .s-product-card-rating,
.dark .s-product-card-category,
.dark .s-product-card-brand,
.dark .product-index .mm-ocd__content,
.dark .brands-nav__item.is-selected,
.dark .s-notifications-item-icon,
.dark .s-rating-modal-icon,
.dark .s-rating-modal-contact,
.dark .s-offer-modal-badge,
.dark .details.total,
.dark .s-file-upload-wrapper .filepond--drop-label {
  background-color: var(--dark-bg-main);
}

/* Secondary Backgrounds */
.dark .tabs-wrapper {
  background-color: var(--dark-grey);
}

/* FAQs */
.dark .s-block--faqs .faqs-list .faq-answer-wrap:after {
  background-image: linear-gradient(to top, var(--bg-gray), transparent);
}

.dark .faq-answer > p {
  color: #ecedee !important;
}

.dark .s-block--faqs .faqs-list label .open-badge,
.dark .s-block--faqs .faqs-list input:checked + div .open-badge {
  background-color: #3f3f46;
  color: #f31260;
}

/* Sliders & Blocks */
.dark salla-slider > div > div > div > div,
.dark salla-slider > div > div > div > div > p {
  background-color: var(--bg-gray) !important;
  color: #ecedee !important;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Primary Color */
.dark .da-cp,
.dark .s-table thead,
.dark .s-block__title,
.dark .s-user-settings-section-title,
.dark .s-block--banners .banner-square h3,
.dark .s-product-card-sale-price span,
.dark .s-offer-modal-product-price,
.dark .btn--quantity:hover,
.dark .s-product-options-multiple-options-wrapper div input {
  color: var(--color-primary) !important;
}

/* Utility Classes */
.dark .da-tm { color: var(--dark-text-main) !important; }
.dark .da-ts { color: var(--dark-text-sec) !important; }
.dark .da-fm { fill: var(--dark-text-main) !important; }
.dark .da-fg { fill: var(--dark-grey) !important; }
.dark .da-bgm { background-color: var(--dark-bg-main) !important; }
.dark .da-bgs { background-color: var(--dark-bg-sec) !important; }
.dark .da-bgg { background-color: var(--dark-grey) !important; }
.dark .da-brdr { border-color: var(--dark-grey) !important; }

/* Placeholders */
.dark ::-moz-placeholder,
.dark ::placeholder {
  color: #b8b8b8 !important;
  opacity: 0.8 !important;
}

/* Misc Dark Mode */
.dark #preloader {
  background-color: rgba(0, 0, 0, 0.2);
}

.dark #preloader .loading-logo-light {
  display: none !important;
}

.dark #preloader .loading-logo-dark {
  display: flex;
}

.dark tbody tr {
  box-shadow: var(--dark-grey-shadow) !important;
}

.dark .mode-toggler .dark-mode,
.dark .mode-toggler .light-mode {
  stroke: var(--dark-text-main);
}

.dark .s-quantity-input-container {
  border-color: var(--dark-text-sec);
}

.dark .s-quantity-input-button {
  fill: var(--dark-text-sec);
}

.dark .s-quantity-input-button:hover {
  fill: var(--color-primary);
}

.dark .s-cart-summary-total {
  color: var(--dark-text-main) !important;
}

.dark .iti__arrow::after {
  filter: invert(1);
}

.dark .iti__country-list {
  background: var(--dark-grey) !important;
  color: var(--dark-text-main);
}

.dark .s-search-modal .s-search-results .s-search-product {
  border-color: var(--dark-grey);
}

.dark .s-search-modal .s-search-results .s-search-product:hover {
  background: var(--dark-bg-sec);
}

/* ==================== MISC ==================== */
.s-slider-container,
.search-bar {
  background-color: transparent !important;
  box-shadow: none !important;
}

.self-start {
  position: static;
}

salla-slider.details-slider .swiper-slide {
  padding: 1em !important;
}

.s-payments-list-item {
  background-color: #e4e4e7;
}

i.sicon-quote-open {
  color: var(--color-border);
}

.s-block__title h2:before,
.s-slider-block__title h2:before {
  background-color: var(--color-border);
}

/* ==================== SMOOTH ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
  
  .s-block--features__item.is-visible {
    animation: fadeInUp 0.6s ease forwards;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  :lang(ar) .scroll-to-top {
    right: auto;
    left: 20px;
  }
}

/* ==================== PERFORMANCE OPTIMIZATION ==================== */
.s-product-card-entry,
.slide--cat-entry,
.s-block--features__item {
  will-change: transform;
  contain: layout style paint;
}

/* ==================== important links ==================== */

a[href="https://discord.gg/44x"] i::before,
a[href="https://t.me/+Xxpq4q2HmHk0NDY0"] i:before,
a[href="https://wa.me/966502946031"] i::before{
  display: none;
}

a[href="https://discord.gg/44x"] i{

background-image: url(https://cdn.salla.sa/form-builder/yfs2UUAQJZzwcp7BXynYiPcGhYQkTHVik2Waiip0.png);
}



a[href="https://t.me/+Xxpq4q2HmHk0NDY0"] i{
background-image: url(https://cdn.salla.sa/form-builder/UvQ0mnGdf72gXUpOg2Z16BrspdwvGCpc2e5px9Uf.png);
}

a[href="https://wa.me/966502946031"] i{
background-image: url(https://i.ibb.co/hF2nZ3xP/Untitled-design-32.webp);
}


.s-product-options-option-container{
  background: #3f3f47;
  margin-bottom: 0;
}
.s-login-modal-title{
  color:red;
}
div.s-login-modal-tab.s-show.s-login-modal-active label.s-login-modal-label{
  color: red !important;
}