/* ═══════════════════════════════════════════════════
   متجر المملكة — SAFE PREMIUM CSS v4
   ✅ Header restored & untouched
   ✅ Product description section styled beautifully
   ✅ Cards, buttons, inputs polished
   ═══════════════════════════════════════════════════ */

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

*, *::before, *::after {
  font-family: 'Tajawal', sans-serif !important;
}

h1, h2, h3, h4, h5,
[class*="title"],
[class*="heading"] {
  font-family: 'Cairo', sans-serif !important;
}

html { scroll-behavior: smooth; }

body { background: #FAFAF7 !important; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #f0ece4; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C9A84C, #A07830);
  border-radius: 99px;
}

::selection { background: #C9A84C; color: #0B1340; }

/* ════════════════════════════════
   IMAGES — ALWAYS VISIBLE
════════════════════════════════ */
img {
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100% !important;
}

/* ════════════════════════════════
   PRODUCT DESCRIPTION SECTION
   .product_description > .ql-editor
════════════════════════════════ */
.product_description {
  background: linear-gradient(160deg, #FFFDF8 0%, #F9F5EC 100%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  box-shadow: 0 4px 24px rgba(11,19,64,0.08) !important;
  padding: 32px 24px !important;
  margin-top: 16px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Subtle gold corner accent */
.product_description::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(201,168,76,0.12), transparent 70%);
  pointer-events: none;
}

.product_description::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at bottom left, rgba(11,19,64,0.04), transparent 70%);
  pointer-events: none;
}

/* The inner editor content */
.product_description .ql-editor {
  padding: 0 !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 16px !important;
  line-height: 2 !important;
  color: #2A2A3E !important;
  direction: rtl !important;
}

/* Paragraphs inside description */
.product_description .ql-editor p {
  margin-bottom: 4px !important;
  font-size: 15px !important;
  line-height: 2 !important;
  color: #2A2A3E !important;
}

/* Bold text inside description */
.product_description .ql-editor strong {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800 !important;
  color: #0B1340 !important;
}

/* Headers / feature lines — bold emoji lines */
.product_description .ql-editor p strong:first-child {
  display: inline-block !important;
}

/* Ordered list styling */
.product_description .ql-editor ol {
  padding-right: 24px !important;
  padding-left: 0 !important;
  margin: 8px 0 16px !important;
}

.product_description .ql-editor ol li {
  font-size: 15px !important;
  line-height: 2.2 !important;
  color: #2A2A3E !important;
  padding-right: 8px !important;
  position: relative !important;
}

/* Image inside description — centered, rounded, shadowed */
.product_description .ql-editor img {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(11,19,64,0.12) !important;
  margin: 16px auto !important;
  display: block !important;
  max-width: 100% !important;
}

/* Section separator lines (empty paragraphs as dividers) */
.product_description .ql-editor br {
  line-height: 0.5 !important;
}

/* ════════════════════════════════
   PRODUCT CARDS
════════════════════════════════ */
.product-card,
[class*="product-card"],
[class*="item-card"],
[class*="product_card"] {
  background: #FFFDF8 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
  box-shadow: 0 2px 14px rgba(11,19,64,0.07) !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  position: relative !important;
}

.product-card:hover,
[class*="product-card"]:hover,
[class*="item-card"]:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 40px rgba(11,19,64,0.13), 0 0 30px rgba(201,168,76,0.1) !important;
  border-color: rgba(201,168,76,0.3) !important;
}

.product-card::after,
[class*="product-card"]::after,
[class*="item-card"]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #A07830, #E8C96A, #A07830);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::after,
[class*="product-card"]:hover::after,
[class*="item-card"]:hover::after {
  opacity: 1;
}

.product-card img,
[class*="product-card"] img,
[class*="item-card"] img {
  transition: transform 0.45s ease !important;
}

.product-card:hover img,
[class*="product-card"]:hover img,
[class*="item-card"]:hover img {
  transform: scale(1.05) !important;
}

[class*="product-title"],
[class*="product-name"],
[class*="item-title"],
[class*="item-name"] {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1A1A2E !important;
  line-height: 1.5 !important;
}

[class*="price"]:not([class*="old"]):not([class*="compare"]):not([class*="original"]) {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  color: #0B1340 !important;
}

[class*="old-price"],
[class*="original-price"],
[class*="compare-price"] {
  color: #aaa !important;
  text-decoration: line-through !important;
  font-size: 13px !important;
}

[class*="discount"],
[class*="sale-badge"],
[class*="offer-badge"] {
  background: linear-gradient(135deg, #E63946, #FF4D6D) !important;
  color: #fff !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 3px 9px !important;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3) !important;
}

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
[class*="add-to-cart"],
[class*="add_to_cart"],
[class*="buy-now"],
[class*="order-btn"],
button[type="submit"] {
  background: linear-gradient(135deg, #0B1340, #152060) !important;
  color: #F5E6B2 !important;
  border: 1.5px solid rgba(201,168,76,0.35) !important;
  border-radius: 12px !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(11,19,64,0.2) !important;
}

[class*="add-to-cart"]:hover,
[class*="buy-now"]:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #152060, #1E3A8A) !important;
  border-color: #C9A84C !important;
  box-shadow: 0 8px 28px rgba(11,19,64,0.25), 0 4px 16px rgba(201,168,76,0.2) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

[class*="whatsapp"],
[class*="wa-btn"] {
  background: linear-gradient(135deg, #128C7E, #25D366) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(37,211,102,0.25) !important;
}

[class*="whatsapp"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35) !important;
}

/* ════════════════════════════════
   FORM INPUTS
════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  background: #FFFDF8 !important;
  border: 1.5px solid #E8E4DA !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  color: #1A1A2E !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
  outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #C9A84C !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12) !important;
  background: #fff !important;
}

input::placeholder,
textarea::placeholder {
  color: #aaa !important;
}

/* ════════════════════════════════
   CART
════════════════════════════════ */
[class*="cart-item"],
[class*="order-item"] {
  background: #FFFDF8 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(201,168,76,0.12) !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 6px rgba(11,19,64,0.05) !important;
}

[class*="cart-total"],
[class*="order-summary"],
[class*="summary-box"] {
  background: linear-gradient(145deg, #0B1340, #152060) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  box-shadow: 0 8px 32px rgba(11,19,64,0.2) !important;
}

[class*="cart-total"] *,
[class*="order-summary"] * {
  color: #fff !important;
}

[class*="total-price"],
[class*="final-price"],
[class*="grand-total"] {
  color: #E8C96A !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  font-family: 'Cairo', sans-serif !important;
}

/* ════════════════════════════════
   MOBILE
════════════════════════════════ */
@media (max-width: 768px) {
  .product_description {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .product_description .ql-editor p {
    font-size: 14px !important;
  }

  .product-card,
  [class*="product-card"],
  [class*="item-card"] {
    border-radius: 12px !important;
  }

  [class*="add-to-cart"],
  button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
  }
}

/* ═══════════════════════════════════
   END — متجر المملكة v4
═══════════════════════════════════ */