/* Bar Selector Nav */
.bar-selector {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0 10px;
}
.bar-selector a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 2px;
  background: #f5f0e6;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #c9a84c66;
  transition: all 0.2s;
  white-space: nowrap;
}
.bar-selector a:hover {
  background: #c9a84c;
  color: #fff;
}
.bar-selector a.active {
  background: #c9a84c;
  color: #fff;
  border-color: #c9a84c;
}
@media (max-width: 600px) {
  .bar-selector a {
    padding: 5px 9px;
    font-size: 11.5px;
  }
  .bar-selector {
    gap: 5px;
  }
}

/* Product Page Styles */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #326e73;
  margin: 0 0 10px 0;
}

.page-title-ar {
  font-size: 24px;
  font-weight: 600;
  color: #666;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

/* Compact Two-Column Hero Layout */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  align-items: start;
  max-width: 100%;
}

.hero-image {
  position: sticky;
  top: 20px;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-order-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #daa520;
}

.wa-button-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wa-button-hero:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.price-button {
  display: block;
  text-align: center;
  color: #326e73;
  text-decoration: none;
  font-weight: 600;
  padding: 12px;
  border: 2px solid #326e73;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.price-button:hover {
  background: #326e73;
  color: white;
}

/* Trust Badges */
.trust-badges-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 0 0 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(218,165,32,0.08) 0%, rgba(50,110,115,0.08) 100%);
  border-radius: 16px;
  border: 2px solid rgba(218,165,32,0.2);
  max-width: 100%;
}

.trust-badge,
a.trust-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}

a.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.badge-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
}

.badge-icon-wrapper.verified {
  border: 2px solid #28a745;
}

.badge-icon {
  font-size: 24px;
}

.verified-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #28a745;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.badge-content {
  flex: 1;
  min-width: 0;
}

.badge-title {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

/* Section Cards */
.section-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
  margin: 0 0 25px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  max-width: 100%;
}

.section-title {
  color: #daa520;
  font-size: 22px;
  margin: 0 0 20px;
  text-align: center;
  font-weight: 700;
}

/* Specifications table */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #444;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list strong {
  color: #326e73;
  min-width: 140px;
  display: inline-block;
}

/* Why Buy Section */
.why-section {
  background: linear-gradient(145deg, #1f1f1f, #0d0d0d);
  border-radius: 12px;
  padding: 35px 30px;
  margin: 0 0 25px 0;
  color: #fff;
  max-width: 100%;
}

.why-title {
  color: #daa520;
  font-size: 26px;
  text-align: center;
  margin: 0 0 8px;
  font-weight: 700;
}

.why-title-ar {
  color: #daa520;
  font-size: 24px;
  text-align: center;
  margin: 8px 0;
  font-weight: 700;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.why-subtitle {
  color: #888;
  font-size: 14px;
  text-align: center;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.why-subtitle-ar {
  color: #888;
  font-size: 14px;
  text-align: center;
  margin: 0 0 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.benefits-list {
  max-width: 600px;
  margin: 0 auto;
}

.arabic-benefits {
  margin-top: 30px;
  direction: rtl;
}

.arabic-benefits .benefit-item {
  flex-direction: row-reverse;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: transparent;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-check {
  color: #daa520 !important;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  background: transparent !important;
}

.benefit-text {
  color: #ccc !important;
  font-size: 16px;
  line-height: 1.5;
  background: transparent !important;
}

.benefit-text strong {
  color: #fff !important;
  display: block;
  margin-bottom: 3px;
  background: transparent !important;
}

/* Related Products */
.related-products {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px 20px;
  margin: 0 0 25px 0;
  max-width: 100%;
}

.related-title {
  text-align: center;
  color: #daa520;
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #daa520;
}

.product-card h4 {
  color: #333;
  font-size: 14px;
  margin: 0 0 5px;
  font-weight: 600;
}

.product-card p {
  color: #888;
  font-size: 12px;
  margin: 0;
}

/* SEO Content */
.seo-content {
  max-width: 100%;
}

.seo-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 15px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #ddd;
  }
  
  .page-title {
    color: #daa520;
  }
  
  .page-title-ar {
    color: #999;
  }
  
  .section-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ddd;
  }
  
  .spec-list li {
    border-bottom-color: #3a3a3a;
    color: #ccc;
  }
  
  .spec-list strong {
    color: #8adce2;
  }
  
  .quick-order-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #daa520;
  }
  
  .price-button {
    color: #8adce2;
    border-color: #8adce2;
  }
  
  .price-button:hover {
    background: #8adce2;
    color: #1a1a1a;
  }
  
  .trust-badge,
  a.trust-badge {
    background: rgba(42,42,42,0.95);
    border-color: rgba(255,255,255,0.1);
  }
  
  .badge-icon-wrapper {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  }
  
  .badge-title {
    color: #999;
  }
  
  .badge-text {
    color: #ddd;
  }
  
  .hero-image img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  
  .related-products {
    background: #2a2a2a;
  }
  
  .product-card {
    background: #333;
    border-color: #444;
  }
  
  .product-card h4 {
    color: #ddd;
  }
  
  .product-card p {
    color: #999;
  }
  
  .seo-content p {
    color: #aaa;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .page-container {
    padding: 15px;
  }
  
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-image {
    position: relative;
    top: 0;
  }
  
  .trust-badges-container {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .trust-badge,
  a.trust-badge {
    padding: 12px;
  }
  
  .section-card {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  .why-section {
    padding: 25px 15px;
    margin-bottom: 20px;
  }
  
  .related-products {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  /* Font size reductions */
  .page-title {
    font-size: 22px;
  }
  
  .page-title-ar {
    font-size: 18px;
  }
  
  .badge-title {
    font-size: 9px;
  }
  
  .badge-text {
    font-size: 12px;
  }
  
  .section-title {
    font-size: 19px;
  }
  
  .spec-list li {
    font-size: 14px;
  }
  
  .spec-list strong {
    font-size: 14px;
    min-width: 100px;
  }
  
  .why-title {
    font-size: 20px;
  }
  
  .why-title-ar {
    font-size: 19px;
  }
  
  .why-subtitle,
  .why-subtitle-ar {
    font-size: 11px;
  }
  
  .benefit-check {
    font-size: 18px !important;
  }
  
  .benefit-text {
    font-size: 14px !important;
  }
  
  .benefit-text strong {
    font-size: 14px !important;
  }
  
  .related-title {
    font-size: 19px;
  }
  
  .product-card h4 {
    font-size: 13px;
  }
  
  .product-card p {
    font-size: 11px;
  }
  
  .seo-content p {
    font-size: 14px;
  }
  
  .wa-button-hero {
    font-size: 16px;
    padding: 14px 20px;
  }
}

@media (max-width: 400px) {
  .page-title {
    font-size: 20px;
  }
  
  .page-title-ar {
    font-size: 16px;
  }
  
  .why-title {
    font-size: 18px;
  }
  
  .why-title-ar {
    font-size: 17px;
  }
}
