/* ============================================
   GulfPep - تصميم متجر سلة (النسخة الكاملة المجمّعة)
   هوية بصرية: كحلي داكن + ذهبي شمبين (Dark Navy & Champagne Gold)
   ضعه في: لوحة تحكم سلة > المتجر الإلكتروني > تصميم المتجر > CSS مخصص
   ============================================ */

:root {
  --gp-navy-dark: #0a1128;
  --gp-navy: #14213d;
  --gp-navy-light: #1f2f52;
  --gp-gold: #c9a86a;
  --gp-gold-light: #e4cd9a;
  --gp-gold-dark: #a3824f;
  --gp-white: #f8f6f1;
  --gp-gray: #9aa1b0;
  --gp-radius: 10px;
  --gp-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --gp-transition: all 0.3s ease;
}

/* ===== الخلفية العامة ===== */
html, body {
  background-color: var(--gp-navy-dark) !important;
  color: var(--gp-white) !important;
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

/* ===== الهيدر (مؤكد: data-testid="store-header") ===== */
[data-testid="store-header"],
.store-header,
header,
theme-header,
salla-header,
.header,
.main-header,
.header-top,
.header-top-nav,
.top-bar,
.top-nav,
.navbar,
.main-nav,
.header-main,
.header-actions,
.header-wrapper,
.utility-bar {
  background-color: var(--gp-navy) !important;
  border-color: var(--gp-gold-dark) !important;
  box-shadow: var(--gp-shadow) !important;
}

[data-testid="store-header"] *,
header *,
.header *,
.header-main *,
.header-actions *,
.utility-bar * {
  background-color: transparent !important;
}

/* استثناء اللوجو والأيقونات لو داخلها صور بخلفية شفافة أصلاً */
header img,
.header img,
salla-cart-summary img {
  background-color: transparent !important;
}

/* ===== اللوجو ===== */
.header .logo,
.store-name,
.shop--logo,
.header-logo {
  color: var(--gp-gold) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

/* ===== روابط التنقل ===== */
.main-menu a,
.nav-link,
salla-menu a,
header nav a {
  color: var(--gp-white) !important;
  transition: var(--gp-transition) !important;
}

.main-menu a:hover,
.nav-link:hover,
salla-menu a:hover,
header nav a:hover {
  color: var(--gp-gold) !important;
}

/* ===== أيقونات السلة / الحساب / البحث ===== */
salla-cart-summary,
salla-user-menu,
salla-search,
.icons-wrapper,
.header-icons,
.cart-icon,
.account-icon {
  background-color: transparent !important;
  color: var(--gp-white) !important;
}

salla-cart-summary *,
salla-user-menu *,
salla-search * {
  color: var(--gp-white) !important;
}

/* حقل البحث نفسه */
input[type="search"],
.search-input,
salla-search input {
  background-color: var(--gp-navy-light) !important;
  color: var(--gp-white) !important;
  border: 1px solid var(--gp-gold-dark) !important;
  border-radius: var(--gp-radius) !important;
}

/* ===== القائمة الجانبية (موبايل) ===== */
.mm-spn,
.mm-spn--light,
nav.mobile-menu,
#mobile-menu,
.mm-spn ul.main-menu {
  background-color: var(--gp-navy) !important;
  color: var(--gp-white) !important;
}

.mm-spn ul li,
.mm-spn ul li a {
  background-color: transparent !important;
  color: var(--gp-white) !important;
  border-color: rgba(201, 168, 106, 0.2) !important;
}

.mm-spn ul li a:hover {
  color: var(--gp-gold) !important;
}

.mm-spn .btn--close,
.close-mobile-menu {
  color: var(--gp-white) !important;
}

/* ===== أزرار عامة (إضافة للسلة، الشراء الآن...) ===== */
.btn,
.add-to-cart:not([disabled]),
button.primary,
.s-button-primary,
salla-add-product-button:not([data-status="out"]) button {
  background-color: var(--gp-gold) !important;
  color: var(--gp-navy-dark) !important;
  border: none !important;
  border-radius: var(--gp-radius) !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: var(--gp-transition) !important;
}

.btn:hover,
.add-to-cart:hover,
button.primary:hover,
.s-button-primary:hover {
  background-color: var(--gp-gold-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--gp-shadow) !important;
}

.btn-outline,
.s-button-secondary {
  background-color: transparent !important;
  color: var(--gp-gold) !important;
  border: 1px solid var(--gp-gold) !important;
  border-radius: var(--gp-radius) !important;
}

/* زر نفدت الكمية - غير نشط (عام) */
.add-to-cart[disabled],
button[disabled],
salla-add-product-button[data-status="out"] button,
.out-of-stock-btn {
  background-color: transparent !important;
  color: var(--gp-gray) !important;
  border: 1px solid var(--gp-gray) !important;
  cursor: not-allowed !important;
}

/* ============================================
   بطاقة المنتج - نسخة فخمة (الكلاسات الفعلية المؤكدة
   من فحص العنصر: custom-salla-product-card /
   s-product-card-entry / s-product-card-image /
   s-product-card-content)
   ملاحظة: هذا القسم يلغي أي تنسيق عام قديم لبطاقة
   المنتج (.product-card, .s-product-card) عشان ما
   يصير تعارض ألوان.
   ============================================ */

.custom-salla-product-card,
.s-product-card-entry {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(201, 168, 106, 0.25) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.35s ease !important;
}

.custom-salla-product-card:hover,
.s-product-card-entry:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 30px rgba(201, 168, 106, 0.25) !important;
  border-color: var(--gp-gold) !important;
}

.s-product-card-image {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(201, 168, 106, 0.3) !important;
  position: relative !important;
}

.s-product-card-content {
  background: linear-gradient(180deg, #F4E9D3 0%, #EFE0BF 100%) !important;
  padding: 18px 16px !important;
}

.s-product-card-content h3,
.s-product-card-content .product-title,
.s-product-card-content a {
  color: var(--gp-navy) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.s-product-card-content .price,
.s-product-card-content .s-product-card-price,
.s-product-card-content .amount {
  color: var(--gp-gold-dark) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

.s-product-card-content .old-price,
.s-product-card-content .compare-price {
  color: #a89a7f !important;
  text-decoration: line-through !important;
}

.s-product-card-content .add-to-cart,
.s-product-card-content button.primary,
.s-product-card-content salla-add-product-button button {
  background: linear-gradient(180deg, var(--gp-gold-light) 0%, var(--gp-gold) 100%) !important;
  color: var(--gp-navy-dark) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 0 !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

.s-product-card-content .add-to-cart:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 4px 14px rgba(201, 168, 106, 0.4) !important;
}

.s-product-card-entry.s-product-card-out-of-stock .add-to-cart,
.s-product-card-content button[disabled] {
  background: transparent !important;
  color: #9aa1b0 !important;
  border: 1px solid #9aa1b0 !important;
  cursor: not-allowed !important;
}

.s-product-card-entry .wishlist-icon,
.s-product-card-entry button svg {
  color: var(--gp-gold) !important;
}

.s-product-card-entry .wishlist-icon-bg,
.s-product-card-entry .favorite-btn {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.s-product-card-entry .badge,
.s-product-card-entry .sale-badge {
  background-color: var(--gp-navy) !important;
  color: var(--gp-gold) !important;
  border: 1px solid var(--gp-gold) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* ===== عناوين الأقسام ===== */
.section-title,
.page-title,
h1, h2, h3 {
  color: var(--gp-gold) !important;
  font-weight: 700 !important;
}

/* ===== آراء العملاء (مؤكد: s-reviews-testimonial) ===== */
.s-reviews-testimonial,
.testimonial-card,
.review-card,
.s-testimonial,
.slider-item {
  background-color: var(--gp-navy-light) !important;
  border: 1px solid rgba(201, 168, 106, 0.25) !important;
  border-radius: var(--gp-radius) !important;
}

.s-reviews-testimonial p,
.s-reviews-testimonial span,
.testimonial-card p,
.review-card p {
  color: var(--gp-white) !important;
}

.testimonial-card .quote-icon,
.review-card .quote-icon {
  color: var(--gp-gold) !important;
}

/* ===== الفوتر (مؤكد: data-testid="store-footer") ===== */
[data-testid="store-footer"],
.store-footer,
.footer,
footer,
theme-footer {
  background-color: var(--gp-navy) !important;
  border-top: 1px solid var(--gp-gold-dark) !important;
  color: var(--gp-gray) !important;
}

.footer-widget,
.footer-column,
.footer-block,
.s-footer,
.footer-info,
footer .container,
footer > div {
  background-color: var(--gp-navy) !important;
  color: var(--gp-white) !important;
}

.footer-widget h3,
.footer-column h3,
.footer-block h3 {
  color: var(--gp-gold) !important;
}

.footer-widget p,
.footer-column p {
  color: var(--gp-gray) !important;
}

.footer a,
footer a {
  color: var(--gp-gold-light) !important;
}

.footer a:hover,
footer a:hover {
  color: var(--gp-gold) !important;
}

/* ===== شارة تنويه (الاستخدام البحثي) ===== */
.badge-warning,
.disclaimer-badge {
  background-color: rgba(201, 168, 106, 0.15) !important;
  color: var(--gp-gold-light) !important;
  border: 1px solid var(--gp-gold-dark) !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
}

/* ===== حقول عامة (فلاتر، فورمات) ===== */
select,
textarea {
  background-color: var(--gp-navy-light) !important;
  color: var(--gp-white) !important;
  border: 1px solid rgba(201, 168, 106, 0.3) !important;
  border-radius: var(--gp-radius) !important;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--gp-gold) !important;
  outline: none !important;
}

/* ===== شريط الإعلانات العلوي (إن وجد) ===== */
.announcement-bar,
.top-message-bar {
  background-color: var(--gp-gold) !important;
  color: var(--gp-navy-dark) !important;
  font-weight: 600 !important;
}

/* ===== سكرول بار مخصص ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gp-navy-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gp-gold-dark);
  border-radius: 4px;
}