/* =================================================================
   ثيم البوتيك النجدي الملكي - متجر أثل حائل (إصدار التشكيلات والفيديو)
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=Amiri:wght@700&display=swap');

:root {
  --athl-bg: #F4EFE6;           /* لون الرمال النجدية الدافئ */
  --athl-surface: #FFFDF9;      /* كريمي عاجي للبطاقات والهيدر */
  --athl-obsidian: #16120E;     /* أسود عود ملكي */
  --athl-walnut: #2C2119;       /* بني خشب الأثل */
  --athl-bronze: #B08D57;       /* برونز نحاسي معتق */
  --athl-gold-soft: #DBC195;    /* ذهبي رملي ناعم */
  --athl-border: #E2D9C8;       /* إطار حجري فاخر */
}

/* 1. الإعدادات العامة والخطوط */
body, #app, .app-inner {
  background-color: var(--athl-bg) !important;
  color: var(--athl-obsidian) !important;
  font-family: 'Readex Pro', sans-serif !important;
}

/* 2. شريط الإعلانات العلوي المتغير */
.athl-announcement-bar {
  background: var(--athl-obsidian);
  color: var(--athl-gold-soft);
  text-align: center;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid var(--athl-bronze);
  letter-spacing: 0.3px;
  transition: opacity 0.4s ease;
}

/* 3. الهيدر المعماري الفاخر */
header.store-header,
.main-nav-container,
.main-nav-container .inner,
.top-navbar {
  background-color: var(--athl-surface) !important;
  border-bottom: 1px solid var(--athl-border) !important;
  box-shadow: 0 4px 20px rgba(22, 18, 14, 0.04) !important;
}

.store-header a,
.store-header button,
.store-header svg,
.store-header span,
.main-nav-container .inner a,
.main-nav-container .inner span,
.header-buttons button,
.s-cart-summary-total {
  color: var(--athl-obsidian) !important;
}

.navbar-brand img {
  border-radius: 8px !important;
  border: 1.5px solid var(--athl-bronze) !important;
  padding: 2px !important;
  background: var(--athl-surface) !important;
}

.s-search-input,
.header-search input {
  background-color: var(--athl-bg) !important;
  border: 1px solid var(--athl-border) !important;
  color: var(--athl-obsidian) !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
}

/* 4. واجهة الفيديو والمشاهد السينمائية المتعددة (Multi-Clip Hero) */
.athl-showcase-hero {
  position: relative;
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at center, #2C2119 0%, #16120E 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .athl-showcase-hero {
    height: 420px;
  }
}

/* مشاهد الصور والفيديو المدمجة */
.athl-scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease-in-out, transform 6s ease-out;
  background-size: cover;
  background-position: center;
}

.athl-scene-layer.is-active {
  opacity: 1;
  transform: scale(1.14);
}

.athl-scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.athl-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,18,14,0.3) 0%, rgba(22,18,14,0.75) 65%, rgba(22,18,14,0.95) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 16px 48px;
}

.athl-hero-badge {
  background: rgba(176, 141, 87, 0.2);
  border: 1px solid var(--athl-bronze);
  color: var(--athl-gold-soft);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}

.athl-hero-heading {
  font-family: 'Amiri', serif !important;
  color: #FFFFFF;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.athl-hero-desc {
  color: #E6DFD3;
  font-size: 0.88rem;
  max-width: 420px;
  line-height: 1.5;
  transition: opacity 0.35s ease;
}

/* أزرار التبديل بين المقاطع والمشاهد أسفل الفيديو */
.athl-hero-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(22, 18, 14, 0.75);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(176, 141, 87, 0.3);
}

.athl-hero-tab {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(176, 141, 87, 0.2);
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.athl-hero-tab.is-active {
  color: var(--athl-gold-soft);
  background: rgba(176, 141, 87, 0.12);
}

.athl-hero-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2.5px;
  background: var(--athl-bronze);
}

/* 5. شريط ضمانات ومميزات المتجر */
.athl-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--athl-walnut);
  border-bottom: 2px solid var(--athl-bronze);
  padding: 10px 8px;
  text-align: center;
}

.athl-trust-item {
  color: var(--athl-surface);
  font-size: 0.73rem;
  font-weight: 600;
  border-left: 1px solid rgba(219, 193, 149, 0.2);
  padding: 2px 4px;
}

.athl-trust-item:last-child {
  border-left: none;
}

.athl-trust-item span {
  display: block;
  color: var(--athl-gold-soft);
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 2px;
}

/* 6. شبكة التشكيلات المميزة (Bento Collections Grid) */
.athl-collections-wrap {
  padding: 20px 14px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.athl-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.athl-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--athl-obsidian);
  border-right: 3.5px solid var(--athl-bronze);
  padding-right: 10px;
}

.athl-section-sub {
  font-size: 0.75rem;
  color: #6E6256;
}

/* تصميم بطاقات التشكيلات (Bento Layout) */
.athl-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.athl-bento-card {
  position: relative;
  background: var(--athl-surface);
  border: 1px solid var(--athl-border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: right;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.28s ease;
  box-shadow: 0 3px 10px rgba(22, 18, 14, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
}

/* جعل بطاقة الأطقم الملكية عريضة تأخذ كامل الصف العلوي */
.athl-bento-card.is-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--athl-obsidian) 0%, var(--athl-walnut) 100%);
  border-color: var(--athl-bronze);
  min-height: 92px;
}

.athl-bento-card.is-featured .athl-bento-name {
  color: #FFFFFF;
  font-size: 1.05rem;
}

.athl-bento-card.is-featured .athl-bento-meta {
  color: var(--athl-gold-soft);
}

.athl-bento-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(176, 141, 87, 0.15);
  color: var(--athl-bronze);
  margin-bottom: 6px;
}

.athl-bento-card.is-featured .athl-bento-tag {
  background: var(--athl-bronze);
  color: #FFFFFF;
}

.athl-bento-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--athl-obsidian);
  margin-bottom: 2px;
}

.athl-bento-meta {
  font-size: 0.72rem;
  color: #7A6C5D;
  font-weight: 400;
}

.athl-bento-card.active {
  border: 1.5px solid var(--athl-bronze);
  background: var(--athl-obsidian);
  box-shadow: 0 6px 18px rgba(22, 18, 14, 0.14);
}

.athl-bento-card.active .athl-bento-name {
  color: #FFFFFF;
}

.athl-bento-card.active .athl-bento-meta {
  color: var(--athl-gold-soft);
}

/* 7. تنسيق أقسام وبطاقات منتجات سلة بطابع البوتيك */
.s-block__title h2 {
  color: var(--athl-obsidian) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding-right: 10px !important;
  border-right: 3.5px solid var(--athl-bronze) !important;
}

.s-block__display-all {
  background: var(--athl-surface) !important;
  color: var(--athl-obsidian) !important;
  border: 1px solid var(--athl-border) !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.s-product-card-entry {
  background-color: var(--athl-surface) !important;
  border: 1px solid var(--athl-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(22, 18, 14, 0.05) !important;
  transition: all 0.3s ease !important;
  position: relative;
}

/* شارة فاخرة أعلى كل منتج */
.s-product-card-entry::before {
  content: 'صناعة حائلية';
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(22, 18, 14, 0.82);
  color: var(--athl-gold-soft);
  border: 1px solid var(--athl-bronze);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.s-product-card-entry:hover {
  transform: translateY(-4px) !important;
  border-color: var(--athl-bronze) !important;
  box-shadow: 0 12px 26px rgba(22, 18, 14, 0.1) !important;
}

.s-product-card-image {
  border-bottom: 1.5px solid var(--athl-border) !important;
}

/* تصغير زر المفضلة في اليسار */
.s-product-card-wishlist-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  background: rgba(255, 253, 249, 0.9) !important;
  color: var(--athl-obsidian) !important;
  border: 1px solid var(--athl-border) !important;
  border-radius: 6px !important;
}

.s-product-card-content-title a {
  color: var(--athl-obsidian) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

.s-product-card-price,
.s-product-card-sale-price {
  color: var(--athl-bronze) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

/* زر إضافة للسلة الجديد */
.s-product-card-content-footer .s-button-element,
salla-add-product-button .s-button-element {
  background: var(--athl-obsidian) !important;
  color: var(--athl-gold-soft) !important;
  border: 1px solid var(--athl-bronze) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 9px 10px !important;
  white-space: nowrap !important;
  transition: all 0.25s ease !important;
}

.s-product-card-content-footer .s-button-element:hover,
salla-add-product-button .s-button-element:hover {
  background: var(--athl-bronze) !important;
  color: #FFFFFF !important;
}

/* 8. واجهة الانتظار والتنقل الملكية (Loading Overlay) */
.athl-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 14, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.athl-loader-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.athl-loader-box {
  background: var(--athl-surface);
  border: 1.5px solid var(--athl-bronze);
  border-radius: 10px;
  padding: 26px 38px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.athl-spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--athl-border);
  border-top-color: var(--athl-bronze);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: athlSpin 0.75s linear infinite;
}

.athl-loader-brand {
  font-family: 'Amiri', serif;
  color: var(--athl-obsidian);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.athl-loader-sub {
  color: var(--athl-bronze);
  font-size: 0.8rem;
  font-weight: 500;
}

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

/* 9. الفوتر */
footer.store-footer,
.store-footer__inner {
  background-color: var(--athl-obsidian) !important;
  color: var(--athl-surface) !important;
  border-top: 2px solid var(--athl-bronze) !important;
}

.store-footer h3,
.store-footer h4,
.store-footer .store-footer__inner p,
.store-footer .store-footer__inner a {
  color: var(--athl-gold-soft) !important;
}