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

/* RTL + typography — Silver DZ Arabic storefront */
html[dir="rtl"] body {
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #1a1d21;
  background-color: #f6f7fb;
}

html[dir="rtl"] .h1,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "Tajawal", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

html[dir="rtl"] .navbar.shadow {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
}

html[dir="rtl"] #product-single-root .card:not(.silverdz-checkout-card),
html[dir="rtl"] .product-wap.card {
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Product detail: title / price / description (outside checkout card) */
html[dir="rtl"] #product-single-root .silverdz-product-title {
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
}

html[dir="rtl"] #product-single-root .silverdz-product-price-row .silverdz-price-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
}

html[dir="rtl"] #product-single-root .silverdz-product-price-row .silverdz-price-current {
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #2563eb;
}

html[dir="rtl"] #product-single-root .silverdz-product-price-row .silverdz-price-old {
  font-weight: 600;
  font-size: 1.05rem;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
}

/* Cards / listings: price + optional old price */
html[dir="rtl"] .silverdz-price-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
}

html[dir="rtl"] .silverdz-price-line--card .silverdz-price-current {
  font-weight: 700;
  color: #2563eb;
}

/* Related products on shop-single only: blue price */
html[dir="rtl"] #product-single-root .silverdz-price-line--card .silverdz-price-current {
  color: #2563eb;
}

html[dir="rtl"] .silverdz-price-line--card .silverdz-price-old {
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
}

/* Checkout panel — modern framed card */
html[dir="rtl"] #product-single-root .silverdz-checkout-card {
  border-radius: 18px !important;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 18px 42px -12px rgba(37, 99, 235, 0.1);
}

html[dir="rtl"] #product-single-root .silverdz-form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #374151;
  margin: 0;
}

html[dir="rtl"] #product-single-root .silverdz-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.4rem;
}

html[dir="rtl"] #product-single-root .silverdz-form-divider {
  height: 1px;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.08) 15%,
    rgba(0, 0, 0, 0.08) 85%,
    transparent
  );
}

html[dir="rtl"] #product-single-root .silverdz-input {
  border: 1px solid #e5e7eb;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[dir="rtl"] #product-single-root .silverdz-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

html[dir="rtl"] #product-single-root .silverdz-delivery-toggle {
  gap: 0.5rem;
}

html[dir="rtl"] #product-single-root .silverdz-toggle-option {
  position: relative;
  cursor: pointer;
  margin: 0;
}

html[dir="rtl"] #product-single-root .silverdz-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

html[dir="rtl"] #product-single-root .silverdz-toggle-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

html[dir="rtl"] #product-single-root .silverdz-toggle-option:hover .silverdz-toggle-ui {
  border-color: #2563eb;
  color: #1d4ed8;
}

html[dir="rtl"] #product-single-root .silverdz-toggle-input:focus + .silverdz-toggle-ui {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.28);
}

html[dir="rtl"] #product-single-root .silverdz-toggle-input:checked + .silverdz-toggle-ui {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary {
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-sizing: border-box;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #166534;
  margin: 0 0 1rem;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary-row strong {
  font-weight: 700;
  color: #111827;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 2px dashed rgba(37, 99, 235, 0.35);
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
}

html[dir="rtl"] #product-single-root .silverdz-order-summary-total strong {
  font-size: 1.25rem;
  color: #2563eb;
}

html[dir="rtl"] #product-single-root .silverdz-submit-btn {
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.02em;
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

html[dir="rtl"] #product-single-root .silverdz-submit-btn:hover {
  transform: translateY(-1px);
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

html[dir="rtl"] #product-single-root .silverdz-submit-btn:active {
  transform: translateY(0);
}

html[dir="rtl"] #product-single-root .btn-success.text-white {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

html[dir="rtl"] #product-single-root .btn-success.text-white:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

html[dir="rtl"] .btn-success {
  font-weight: 600;
  border-radius: 6px;
  padding-inline: 1.25rem;
}

html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
  border-radius: 10px;
}

html[dir="rtl"] .carousel-control-prev,
html[dir="rtl"] .carousel-control-next {
  opacity: 0.85;
}

html[dir="rtl"] .text-align-left {
  text-align: right !important;
}

html[dir="rtl"] #template_footer .text-left {
  text-align: right !important;
}

/* Product detail: option chips + quantity stepper */
.silverdz-option-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.silverdz-option-list > li {
  margin: 0;
}

.silverdz-option-btn {
  border: 2px solid #dee2e6;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.silverdz-option-btn:hover {
  border-color: #198754;
  color: #146c43;
}

.silverdz-option-btn.active {
  border-color: #198754;
  background: #198754;
  color: #fff;
}

.silverdz-option-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

html[dir="rtl"] #product-single-root .silverdz-option-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

html[dir="rtl"] #product-single-root .silverdz-option-btn.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

html[dir="rtl"] #product-single-root .silverdz-option-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.28);
}

.silverdz-qty-control {
  user-select: none;
}

.silverdz-qty-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.silverdz-qty-value {
  min-width: 2.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
