/* Add custom CSS styles below */ 
/*
 * N8 Store — Western / Cowboy Theme
 * Version: 1.1 — fixed for the current Salla Angel product-card markup
 * Paste this file into: Salla > Advanced customization > CSS
 *
 * Font note:
 * If "Qomra / قمرة" is uploaded or selected in your Salla theme settings,
 * it will be used automatically. Tajawal and Rakkas are safe fallbacks.
 */

@import url("https://fonts.googleapis.com/css2?family=Rakkas&family=Tajawal:wght@400;500;600;700;800;900&display=swap");

:root {
  /* Salla / Twilight variables */
  --font-main: "Qomra Arabic", "Qomra", "قمرة", "Tajawal", sans-serif;
  --color-primary: #9f432b;
  --color-primary-dark: #6e271e;
  --color-primary-light: #c9784c;
  --color-primary-reverse: #fff3d9;

  /* N8 Western palette */
  --n8-ink: #0f0b09;
  --n8-coal: #17110e;
  --n8-surface: #211713;
  --n8-surface-2: #2a1d17;
  --n8-oxblood: #6e271e;
  --n8-rust: #9f432b;
  --n8-copper: #c9784c;
  --n8-gold: #c99c58;
  --n8-paper: #ead6ad;
  --n8-cream: #fff3d9;
  --n8-muted: #b8a58b;
  --n8-line: rgba(201, 156, 88, 0.28);
  --n8-line-strong: rgba(201, 156, 88, 0.56);
  --n8-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  --n8-radius: 18px;
  --n8-radius-sm: 12px;
  --n8-transition: 220ms ease;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  background: var(--n8-ink);
}

body,
button,
input,
textarea,
select,
salla-button,
salla-search,
salla-quantity-input {
  font-family: var(--font-main) !important;
}

body {
  color: var(--n8-cream);
  background-color: var(--n8-ink) !important;
  background-image:
    radial-gradient(
      circle at 12% 12%,
      rgba(159, 67, 43, 0.13),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 42%,
      rgba(201, 156, 88, 0.08),
      transparent 27%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 243, 217, 0.012) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(145deg, #0f0b09 0%, #17100d 52%, #0c0908 100%) !important;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--n8-cream);
  background: var(--n8-rust);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--n8-ink);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--n8-copper), var(--n8-oxblood));
  border: 2px solid var(--n8-ink);
  border-radius: 999px;
}

a {
  color: inherit;
  transition:
    color var(--n8-transition),
    opacity var(--n8-transition);
}

a:hover {
  color: var(--n8-copper);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.s-slider-block__title,
.s-block__title {
  color: var(--n8-cream);
  font-family:
    "Qomra Arabic", "Qomra", "قمرة", "Rakkas", "Tajawal", sans-serif !important;
  font-weight: 800;
  letter-spacing: 0;
}

p,
.description,
.text-gray-500,
.text-gray-600,
.text-gray-700 {
  color: var(--n8-muted) !important;
}

main,
#app,
.app-inner,
.page-wrapper {
  background: transparent !important;
}

/* Keep Salla's white utility surfaces inside the new dark system. */
body :where(.bg-white, .bg-gray-50, .bg-gray-100) {
  color: var(--n8-cream);
  background-color: var(--n8-surface) !important;
}

body :where(.text-black, .text-gray-800, .text-gray-900) {
  color: var(--n8-cream) !important;
}

hr,
.divide-y > :not([hidden]) ~ :not([hidden]),
.border,
.border-b,
.border-t {
  border-color: var(--n8-line) !important;
}

/* ---------- Announcement bar ---------- */

.top-navbar,
.topnav-is-dark,
.announcement-bar,
.store-announcement {
  color: var(--n8-cream) !important;
  background:
    linear-gradient(
      90deg,
      rgba(15, 11, 9, 0.28),
      transparent 35% 65%,
      rgba(15, 11, 9, 0.28)
    ),
    var(--n8-oxblood) !important;
  border-bottom: 1px solid var(--n8-line-strong);
}

.top-navbar a,
.announcement-bar a {
  color: var(--n8-cream) !important;
}

/* ---------- Header and navigation ---------- */

header,
.store-header,
.main-nav-container,
.navbar,
.main-nav {
  color: var(--n8-cream);
  background: rgba(15, 11, 9, 0.94) !important;
  border-color: var(--n8-line) !important;
}

.store-header,
.main-nav-container {
  border-bottom: 1px solid var(--n8-line) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-brand img,
.store-header img[alt*="logo" i],
.store-header .logo img {
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(201, 156, 88, 0.18));
}

.main-menu a,
.main-nav a,
.store-header a,
.store-header button,
.navbar a,
.navbar button {
  color: var(--n8-cream) !important;
}

.main-menu > li > a,
.main-nav li > a {
  position: relative;
  font-weight: 700;
}

.main-menu > li > a::after,
.main-nav li > a::after {
  position: absolute;
  right: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--n8-rust), var(--n8-gold));
  border-radius: 99px;
  transition:
    right var(--n8-transition),
    width var(--n8-transition);
}

.main-menu > li > a:hover::after,
.main-nav li > a:hover::after,
.main-menu > li.active > a::after {
  right: 0;
  width: 100%;
}

.main-menu .sub-menu,
.sub-menu,
.dropdown-menu,
.mm-spn--open,
salla-menu {
  color: var(--n8-cream) !important;
  background: var(--n8-surface) !important;
  border: 1px solid var(--n8-line) !important;
  box-shadow: var(--n8-shadow);
}

/* Header action icons */
.store-header :where(i, svg),
.main-nav-container :where(i, svg),
.navbar :where(i, svg) {
  color: var(--n8-gold);
  transition:
    color var(--n8-transition),
    transform var(--n8-transition);
}

.store-header button:hover :where(i, svg),
.navbar button:hover :where(i, svg) {
  color: var(--n8-copper);
  transform: translateY(-1px);
}

/* ---------- Search and form controls ---------- */

input,
textarea,
select,
.form-input,
.form-select,
.s-form-control,
.s-search-input,
salla-search input {
  color: var(--n8-cream) !important;
  caret-color: var(--n8-copper);
  background: rgba(255, 243, 217, 0.045) !important;
  border: 1px solid var(--n8-line) !important;
  border-radius: var(--n8-radius-sm) !important;
  outline: none;
  transition:
    border-color var(--n8-transition),
    box-shadow var(--n8-transition),
    background var(--n8-transition);
}

input::placeholder,
textarea::placeholder {
  color: rgba(234, 214, 173, 0.55) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-input:focus,
.s-form-control:focus-within,
salla-search:focus-within {
  background: rgba(255, 243, 217, 0.07) !important;
  border-color: var(--n8-copper) !important;
  box-shadow: 0 0 0 3px rgba(201, 120, 76, 0.16) !important;
}

/* ---------- Hero banners and sliders ---------- */

.s-block,
.section,
.home-block {
  color: var(--n8-cream);
}

.s-slider-container,
.swiper,
.banner,
.banner--fixed,
.main-slider {
  border-radius: var(--n8-radius);
}

.s-slider-container,
.main-slider,
.banner--fixed {
  overflow: hidden;
  border: 1px solid var(--n8-line);
  box-shadow: var(--n8-shadow);
}

.s-slider-container img,
.swiper-slide img,
.banner img,
.banner--fixed img {
  display: block;
  width: 100%;
}

.s-slider-block__title,
.section-title,
.s-block__title {
  position: relative;
  margin-bottom: 1.4rem;
  padding-bottom: 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

.s-slider-block__title::after,
.section-title::after,
.s-block__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--n8-rust), var(--n8-gold));
  border-radius: 999px;
}

.s-slider-next,
.s-slider-prev,
.swiper-button-next,
.swiper-button-prev {
  color: var(--n8-cream) !important;
  background: rgba(15, 11, 9, 0.84) !important;
  border: 1px solid var(--n8-line-strong) !important;
  border-radius: 50% !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.swiper-pagination-bullet {
  background: var(--n8-muted) !important;
  opacity: 0.45;
}

.swiper-pagination-bullet-active {
  width: 24px;
  background: var(--n8-copper) !important;
  border-radius: 999px;
  opacity: 1;
}

/* ---------- Category cards ---------- */

.category-entry,
.category-card,
.s-category-card,
.s-block--categories a {
  color: var(--n8-cream) !important;
}

.category-entry img,
.category-card img,
.s-category-card img,
.s-block--categories img {
  border: 1px solid var(--n8-line);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--n8-transition),
    border-color var(--n8-transition),
    filter var(--n8-transition);
}

.category-entry:hover img,
.category-card:hover img,
.s-category-card:hover img,
.s-block--categories a:hover img {
  border-color: var(--n8-copper);
  filter: saturate(0.9) contrast(1.04);
  transform: translateY(-4px);
}

/* ---------- Product cards ---------- */

salla-product-card,
.s-product-card-entry,
.product-entry,
.product-block,
.product-card {
  color: var(--n8-cream);
}

.s-product-card-entry,
.product-entry,
.product-block,
.product-card {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 243, 217, 0.028), transparent 40%),
    var(--n8-surface) !important;
  border: 1px solid var(--n8-line) !important;
  border-radius: var(--n8-radius) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform var(--n8-transition),
    border-color var(--n8-transition),
    box-shadow var(--n8-transition);
}

.s-product-card-entry:hover,
.product-entry:hover,
.product-block:hover,
.product-card:hover {
  border-color: var(--n8-line-strong) !important;
  box-shadow:
    0 17px 38px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(159, 67, 43, 0.13);
  transform: translateY(-5px);
}

.s-product-card-image,
.product-entry__image,
.product-block__image,
.product-card__image {
  overflow: hidden;
  background: #120e0c !important;
}

.s-product-card-image img,
.product-entry__image img,
.product-block__image img,
.product-card__image img {
  transition:
    transform 450ms ease,
    filter 450ms ease;
}

.s-product-card-entry:hover .s-product-card-image img,
.product-entry:hover .product-entry__image img,
.product-block:hover .product-block__image img,
.product-card:hover .product-card__image img {
  filter: saturate(0.94) contrast(1.03);
  transform: scale(1.025);
}

.s-product-card-content,
.product-entry__content,
.product-block__info,
.product-card__content {
  color: var(--n8-cream);
  background: transparent !important;
}

.s-product-card-content-title,
.s-product-card-title,
.product-entry__title,
.product-block__title,
.product-card__title {
  color: var(--n8-cream) !important;
  font-weight: 800 !important;
  line-height: 1.55;
}

.s-product-card-price,
.s-product-card-sale-price,
.product-entry__price,
.product-block__price,
.product-card__price,
.price {
  color: var(--n8-gold) !important;
  font-weight: 900 !important;
}

.s-product-card-price-before,
.s-product-card-regular-price,
.old-price,
.price-before {
  color: var(--n8-muted) !important;
  opacity: 0.9 !important;
  text-decoration-color: var(--n8-muted) !important;
}

/* Current Angel-theme category chip. */
.s-product-card-category {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 5px 10px !important;
  color: var(--n8-surface) !important;
  background: var(--n8-gold) !important;
  border: 1px solid var(--n8-gold) !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}

.s-product-card-content-subtitle {
  color: #d2c0a7 !important;
  opacity: 1 !important;
}

.s-product-card-rating {
  color: var(--n8-surface) !important;
  background: var(--n8-cream) !important;
  opacity: 1 !important;
}

.s-product-card-rating i {
  color: var(--n8-gold) !important;
}

.s-product-card-promotion-title,
.badge--sale,
.discount-badge,
.offer-badge {
  color: var(--n8-cream) !important;
  background: var(--n8-oxblood) !important;
  border: 1px solid rgba(255, 243, 217, 0.16);
  border-radius: 999px !important;
}

/* ---------- Buttons ---------- */

.s-button-primary,
.btn,
.btn--primary,
.btn-primary,
.button-primary,
.product-form .s-add-product-button-main,
.product-form button[type="submit"] {
  min-height: 46px;
  color: var(--n8-cream) !important;
  background: linear-gradient(
    135deg,
    var(--n8-rust),
    var(--n8-oxblood)
  ) !important;
  border: 1px solid rgba(201, 156, 88, 0.5) !important;
  border-radius: var(--n8-radius-sm) !important;
  box-shadow: 0 9px 22px rgba(110, 39, 30, 0.25);
  font-weight: 800 !important;
  transition:
    transform var(--n8-transition),
    box-shadow var(--n8-transition),
    filter var(--n8-transition) !important;
}

.s-button-primary:hover,
.btn:hover,
.btn--primary:hover,
.btn-primary:hover,
.button-primary:hover,
.product-form .s-add-product-button-main:hover,
.product-form button[type="submit"]:hover {
  color: #fff8e8 !important;
  box-shadow: 0 12px 28px rgba(159, 67, 43, 0.38);
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.s-button-outline,
.btn--outline,
.btn-outline,
.button-secondary,
.s-add-product-button-mini {
  color: var(--n8-paper) !important;
  background: rgba(255, 243, 217, 0.035) !important;
  border: 1px solid var(--n8-line-strong) !important;
  border-radius: var(--n8-radius-sm) !important;
  box-shadow: none;
}

.s-button-outline:hover,
.btn--outline:hover,
.btn-outline:hover,
.button-secondary:hover,
.s-add-product-button-mini:hover {
  color: var(--n8-cream) !important;
  background: rgba(159, 67, 43, 0.2) !important;
  border-color: var(--n8-copper) !important;
}

/* Product-card cart button: keep outline buttons readable on dark cards. */
custom-salla-product-card
  .s-product-card-content-footer
  .s-button-element {
  color: var(--n8-cream) !important;
  background: var(--n8-oxblood) !important;
  border: 1px solid var(--n8-gold) !important;
  opacity: 1 !important;
}

custom-salla-product-card
  .s-product-card-content-footer
  .s-button-element:hover {
  color: var(--n8-cream) !important;
  background: var(--n8-rust) !important;
  filter: brightness(1.08);
}

/* ---------- Product page ---------- */

.breadcrumb,
salla-breadcrumb,
.s-breadcrumb-wrapper {
  color: var(--n8-muted) !important;
}

.breadcrumb a,
.s-breadcrumb-item a {
  color: var(--n8-paper) !important;
}

.product-single,
.product-details,
.product__description,
.product-form,
.product-entry--side,
.product-tabs,
.product-info {
  color: var(--n8-cream);
}

.product-details,
.product-form,
.product-info,
.product-tabs,
.product__description {
  background: rgba(33, 23, 19, 0.78) !important;
  border-color: var(--n8-line) !important;
  border-radius: var(--n8-radius);
}

/* The mini-checkout label had the same rust color as its background. */
.product-form .s-add-product-button-mini-checkout,
.product-form .s-add-product-button-mini-checkout-content {
  color: var(--n8-cream) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.product-form .s-add-product-button-mini-checkout-content svg,
.product-form .s-add-product-button-mini-checkout-content svg path {
  color: var(--n8-cream) !important;
  fill: var(--n8-cream) !important;
}

.product-form .s-add-product-button-main {
  overflow: hidden !important;
}

.product-form .s-add-product-button-main .s-button-text,
.product-form .s-add-product-button-main i {
  color: var(--n8-cream) !important;
  opacity: 1 !important;
}

.product-form button:disabled,
.product-form [aria-disabled="true"] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.product-details h1,
.product-info h1,
.product-title {
  color: var(--n8-cream) !important;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

salla-product-options,
salla-quantity-input,
.product-option,
.quantity-input {
  color: var(--n8-cream);
  --color-primary: var(--n8-rust);
}

.tabs__item,
.s-tabs-header,
.accordion-item,
.s-accordion-item {
  color: var(--n8-cream) !important;
  background: var(--n8-surface) !important;
  border-color: var(--n8-line) !important;
}

.tabs__item.is-active,
.s-tabs-header.is-active {
  color: var(--n8-copper) !important;
  border-color: var(--n8-copper) !important;
}

/* ---------- Features, reviews and notices ---------- */

.s-block--features .feature-item,
.feature-item,
.testimonial,
.review-card,
.s-comments-item,
.notice,
.alert {
  color: var(--n8-cream) !important;
  background: var(--n8-surface) !important;
  border: 1px solid var(--n8-line) !important;
  border-radius: var(--n8-radius) !important;
}

.feature-item :where(i, svg),
.s-block--features :where(i, svg),
.rating-stars,
.s-rating-stars {
  color: var(--n8-gold) !important;
}

.alert-success {
  color: #e7e9d5 !important;
  background: #273024 !important;
  border-color: #5f6d4c !important;
}

.alert-danger,
.alert-error {
  color: #ffe4d5 !important;
  background: #40201c !important;
  border-color: var(--n8-rust) !important;
}

/* ---------- Cart, drawers and modal windows ---------- */

.s-modal-wrapper,
.s-modal-body,
.modal-content,
.drawer,
.side-panel,
.cart-item,
.s-cart-summary-wrapper,
salla-cart-summary {
  color: var(--n8-cream) !important;
  background: var(--n8-surface) !important;
  border-color: var(--n8-line) !important;
}

.s-modal-overlay,
.modal-backdrop {
  background: rgba(8, 6, 5, 0.8) !important;
  backdrop-filter: blur(6px);
}

.cart-item,
.s-cart-summary-wrapper {
  border-radius: var(--n8-radius-sm);
}

.s-modal-close,
.modal-close,
.drawer-close {
  color: var(--n8-cream) !important;
  background: rgba(255, 243, 217, 0.08) !important;
  border: 1px solid var(--n8-line) !important;
  border-radius: 50%;
}

/* ---------- Pagination ---------- */

.pagination a,
.pagination button,
.s-pagination-item {
  color: var(--n8-paper) !important;
  background: var(--n8-surface) !important;
  border: 1px solid var(--n8-line) !important;
  border-radius: 10px !important;
}

.pagination .active,
.pagination a:hover,
.pagination button:hover,
.s-pagination-item.is-active {
  color: var(--n8-cream) !important;
  background: var(--n8-oxblood) !important;
  border-color: var(--n8-copper) !important;
}

/* ---------- Footer ---------- */

footer,
.store-footer,
.footer-is-light,
.store-footer__inner {
  color: var(--n8-muted) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(159, 67, 43, 0.1), transparent 36%),
    #0b0807 !important;
  border-color: var(--n8-line) !important;
}

.store-footer {
  position: relative;
  margin-top: 3rem;
  border-top: 1px solid var(--n8-line-strong) !important;
}

.store-footer::before {
  position: absolute;
  top: -2px;
  right: 50%;
  width: min(320px, 55vw);
  height: 3px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--n8-rust),
    var(--n8-gold),
    var(--n8-rust),
    transparent
  );
  transform: translateX(50%);
}

.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer .footer-title,
footer h2,
footer h3,
footer h4 {
  color: var(--n8-paper) !important;
}

.store-footer a,
footer a {
  color: var(--n8-muted) !important;
}

.store-footer a:hover,
footer a:hover {
  color: var(--n8-copper) !important;
}

.store-footer :where(i, svg),
footer :where(i, svg) {
  color: var(--n8-gold);
}

/* Preserve clarity of payment and security logos. */
.payment-methods,
.s-payment-methods,
.footer-payment-methods {
  border-radius: 10px;
}

.payment-methods img,
.s-payment-methods img,
.footer-payment-methods img {
  filter: none !important;
}

/* ---------- Floating WhatsApp/contact button ---------- */

.s-contacts-whatsapp,
.whatsapp-button,
a[href*="wa.me"] {
  border: 2px solid rgba(255, 243, 217, 0.78) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34) !important;
}

/* ---------- Mobile refinements ---------- */

@media (max-width: 767px) {
  :root {
    --n8-radius: 14px;
    --n8-radius-sm: 10px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
    background-image:
      radial-gradient(
        circle at 50% 0,
        rgba(159, 67, 43, 0.12),
        transparent 34%
      ),
      linear-gradient(145deg, #0f0b09, #17100d 58%, #0c0908) !important;
  }

  .store-header,
  .main-nav-container {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .navbar-brand img,
  .store-header img[alt*="logo" i],
  .store-header .logo img {
    max-height: 45px;
  }

  .s-block,
  .section,
  .home-block {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .s-slider-block__title,
  .section-title,
  .s-block__title {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .s-product-card-entry:hover,
  .product-entry:hover,
  .product-block:hover,
  .product-card:hover,
  .category-entry:hover img,
  .category-card:hover img,
  .s-category-card:hover img {
    transform: none;
  }

  .s-button-element,
  .btn,
  button[type="submit"] {
    min-height: 48px;
  }

  .s-slider-next,
  .s-slider-prev,
  .swiper-button-next,
  .swiper-button-prev {
    transform: scale(0.86);
  }

  .store-footer {
    margin-top: 2rem;
  }
}

@media (min-width: 1024px) {
  body {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}