/* 
  صفحة منتج احترافية RTL 
  Theme: 👑 الملكي الذهبي والأسود
*/
:root {
  --primary: #D4AF37;
  --secondary: #18181B;
  --accent: #F59E0B;
  --bg-page: #09090B;
  --card-bg: #18181B;
  --text-color: #F4F4F5;
  --text-muted: #A1A1AA;
  --border: #27272A;
  --badge-bg: #D4AF37;
  --badge-text: #000000;
  --btn-bg: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
  --btn-text: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.store-brand-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.store-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.store-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-brand-logo {
  height: 34px;
  max-width: 130px;
  object-fit: contain;
  border-radius: 6px;
}

.store-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.store-brand-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
}

.store-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.store-brand-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: bold;
}

.store-trust-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
}

.top-banner {
  background: var(--btn-bg);
  color: var(--btn-text);
  text-align: center;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.main-wrapper {
  padding-top: 30px;
  padding-bottom: 60px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.gallery-block .main-image-wrapper {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-block .main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-block .main-image-wrapper:hover img {
  transform: scale(1.02);
}

.main-video-box {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.main-video-box video, .main-video-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.thumbnails-grid {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 5px;
  align-items: center;
}

.thumbnails-grid .thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  flex-shrink: 0;
}

.thumbnails-grid .thumb.active, .thumbnails-grid .thumb:hover {
  border-color: var(--primary);
  opacity: 1;
  transform: scale(1.04);
}

.video-thumb-btn {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: #0f172a;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  gap: 3px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.video-thumb-btn:hover, .video-thumb-btn.active {
  transform: scale(1.05);
  background: var(--primary);
  color: #000;
}

.product-info-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ratings-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #F59E0B;
  font-size: 18px;
  font-weight: bold;
}

.rating-num {
  font-weight: 800;
}

.reviews-count {
  font-size: 12px;
  color: var(--text-muted);
}

.product-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}

.product-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.current-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
}

.original-price {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-badge {
  background: #DC2626;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.stock-counter {
  margin-top: 10px;
  font-size: 13px;
  color: #F59E0B;
  font-weight: bold;
}

.hero-desc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
}

.highlights-list {
  list-style: none;
  margin-top: 10px;
}

.highlights-list li {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.bundles-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.bundles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.bundle-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bundle-card.popular {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
}

.bundle-tag {
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--primary);
  color: var(--badge-text);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

.bundle-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bundle-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 20px;
  font-weight: 900;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.section-block {
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 18px;
  text-align: right;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: rgba(0,0,0,0.1);
  font-weight: 900;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.spec-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
}

.spec-name {
  font-weight: bold;
}

.spec-val {
  color: var(--primary);
  font-weight: bold;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.component-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: bold;
}

.component-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--badge-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 18px;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--badge-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin: 0 auto 15px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extra-review-item {
  display: none !important;
}

.extra-review-item.show {
  display: flex !important;
}

.toggle-reviews-btn {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: inherit;
}

.toggle-reviews-btn:hover {
  background: var(--primary);
  color: var(--btn-text);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-verified {
  background: #10B981;
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: bold;
}

.guarantees-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 60px;
}

.g-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.guarantees-banner h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 5px;
}

.guarantees-banner p {
  font-size: 13px;
  color: var(--text-muted);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 18px 24px;
  color: var(--text-color);
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  font-family: inherit;
}

.faq-answer {
  display: none;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  color: var(--text-muted);
}

.order-form-block {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 700px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-header h2 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-color);
  font-size: 16px;
  font-family: inherit;
}

.order-summary-box {
  background: rgba(0,0,0,0.1);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.submit-order-btn {
  width: 100%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 22px;
  font-weight: 900;
  padding: 18px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-family: inherit;
}

.royal-footer {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  margin-top: 50px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
}

.wa-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 999999;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wa-modal-card {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  text-align: right;
}

.wa-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.wa-modal-close:hover {
  color: var(--text-color);
  background: rgba(0, 0, 0, 0.4);
}

.wa-option-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-option-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  transition: transform 0.15s;
}

.wa-option-btn.inquiry {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.wa-option-btn.order {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.wa-option-btn:hover {
  transform: scale(1.02);
}

.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
