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

body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 483px;
  margin: 0 auto;
  padding: 0;
  direction: rtl;
  text-align: right;
  color: #0f1111;
}


/* Main Navigation Bar */
.main-navbar {
  width: 100vw;
  max-width: 100vw;
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: "Tajawal", sans-serif;
  position: relative;
  z-index: 100;
  display: block;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

/* Top Bar: Shipping Info */
.nav-top-bar {
  background-color: #1a1a1a;
  padding: 10px 20px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-top-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.shipping-text {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: underline;
  white-space: nowrap;
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-flag-icon {
  width: 20px;
  height: 15px;
  font-size: 20px;
  display: inline-block;
  border-radius: 2px;
}

.country-code {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
}

.country-selector .fa-chevron-down {
  font-size: 10px;
  color: #ffffff;
  margin-top: 2px;
}

/* Divider */
.nav-divider {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  opacity: 0.2;
}

/* Main Navigation Bar */
.nav-main-bar {
  background-color: white;
  padding: 12px 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-main-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.nav-cart-icon {
  font-size: 20px;
  color: black;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-cart-icon:hover {
  opacity: 0.8;
}

.promo-text {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff !important;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

.nav-promo-bar .promo-text,
.nav-promo-content .promo-text {
  color: #ffffff !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-top-bar,
  .nav-main-bar,
  .nav-promo-bar {
    padding: 8px 15px;
  }

  .nav-top-content {
    gap: 10px;
  }

  .shipping-text {
    font-size: 11px;
  }

  .nav-flag-icon {
    width: 18px;
    height: 13px;
    font-size: 18px;
  }

  .country-code {
    font-size: 11px;
  }

  .nav-logo {
    max-height: 35px;
  }

  .nav-logo-placeholder {
    width: 100px;
    height: 35px;
    font-size: 11px;
  }

  .nav-cart-icon {
    font-size: 18px;
  }

  .promo-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .nav-top-bar,
  .nav-main-bar,
  .nav-promo-bar {
    padding: 6px 12px;
  }

  .shipping-text {
    font-size: 10px;
  }

  .nav-flag-icon {
    width: 16px;
    height: 12px;
    font-size: 16px;
  }

  .country-code {
    font-size: 10px;
  }

  .nav-logo {
    max-height: 30px;
  }

  .nav-logo-placeholder {
    width: 80px;
    height: 30px;
    font-size: 10px;
  }

  .nav-cart-icon {
    font-size: 16px;
  }

  .promo-text {
    font-size: 10px;
  }
}

.product-gallery {
  width: 100%;
  padding: 20px 16px;
}

/* Main Product Slider */
.main-slider-container {
  position: relative;
  margin-bottom: 16px;
}

.swiper.main-slider {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #D5D9D9;
  background: #ffffff;
}

.main-slider .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
}

/* Pagination Dots */
.main-slider .swiper-pagination {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
  width: auto;
}

.main-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.2s ease;
  border: none;
  pointer-events: auto;
}

.main-slider .swiper-pagination-bullet-active {
  background: #1a1a1a;
  transform: scale(1.3);
}

/* Navigation Arrows - RTL Optimized */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #D5D9D9;
  transition: all 0.2s ease;
  z-index: 20;
}

.main-slider .swiper-button-next:after,
.main-slider .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 900;
  color: #0f1111;
}

/* RTL: Reverse the arrow directions for Arabic */
[dir="rtl"] .main-slider .swiper-button-next:after {
  content: "←";
}

[dir="rtl"] .main-slider .swiper-button-prev:after {
  content: "→";
}

/* LTR: Normal arrow directions */
[dir="ltr"] .main-slider .swiper-button-next:after {
  content: "→";
}

[dir="ltr"] .main-slider .swiper-button-prev:after {
  content: "←";
}

.main-slider .swiper-button-next {
  left: 10px;
}

.main-slider .swiper-button-prev {
  right: 10px;
}

.main-slider .swiper-button-next:hover,
.main-slider .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border-color: #1a1a1a;
}

.main-slider .swiper-button-next:active,
.main-slider .swiper-button-prev:active {
  transform: scale(0.95);
}

.main-slider .swiper-button-next.swiper-button-disabled,
.main-slider .swiper-button-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Thumbnail Slider */
.thumbnail-slider-container {
  margin-top: 16px;
}

.swiper.thumbnail-slider {
  width: 100%;
  height: 80px;
  padding: 0 4px;
}

.thumbnail-slider .swiper-slide {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  opacity: 0.7;
  background: #ffffff;
}

.thumbnail-slider .swiper-slide.swiper-slide-thumb-active {
  border-color: #1a1a1a;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
}

/* Loading states */
.swiper-slide {
  background: #f8f8f8;
}

.swiper-slide img {
  transition: opacity 0.3s ease;
}

/* Touch feedback */
.swiper-slide:active {
  transform: scale(0.98);
}

/* Product Info Section */
.product-info {
  padding: 24px 16px 16px;
  background: #ffffff;
}

.product-reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-title {
  font-family: "Tajawal", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f1111;
  margin: 0;
  padding: 0;
  text-align: right;
}

/* Color Variant Section */
.color-variant-section {
  margin: 20px 0;
  padding: 0;
}

.variant-label {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f1111;
  display: block;
  margin-bottom: 12px;
  text-align: right;
}

.color-swatch-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch-btn {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid #D5D9D9;
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.color-swatch-btn:hover {
  border-color: #1a1a1a;
  transform: scale(1.05);
}

.color-swatch-btn.active {
  border-color: #1a1a1a;
  border-width: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-swatch-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Size Variant Section */
.size-variant-section {
  margin: 20px 0;
  padding: 0;
}

.size-swatch-container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.size-swatch-btn {
  font-family: "Tajawal", sans-serif;
  width: 50px;
  padding: 10px 8px;
  border-radius: 6px;
  border: 2px solid #D5D9D9;
  background: #ffffff;
  color: #0f1111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.size-swatch-btn:hover {
  border-color: #1a1a1a;
  background: #f8f8f8;
}

.size-swatch-btn.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 600;
}

/* Price Section */
.price-section {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.sale-price {
  font-family: "Tajawal", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #B12704;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}

.currency {
  font-family: "Tajawal", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.regular-price {
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #565959;
  text-decoration: line-through;
  margin-right: 8px;
}

.discount-badge {
  font-family: "Tajawal", sans-serif;
  background: #CC0C39;
  border: none;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Add to Cart Section */
.add-to-cart-section {
  margin: 24px 0;
}

.add-to-cart-btn {
  font-family: "Tajawal", sans-serif;
  width: 100%;
  padding: 14px 24px;
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
}

.add-to-cart-btn:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.add-to-cart-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.15);
}

.add-to-cart-btn i {
  font-size: 18px;
}

/* Brand Description Images */
.brand-description-images {
  margin: 24px 0;
  width: 100%;
}

.brand-description-images img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 400px) {
  .product-gallery {
    padding: 16px 12px;
  }

  .thumbnail-slider .swiper-slide {
    width: 60px;
    height: 60px;
  }

  .swiper.thumbnail-slider {
    height: 70px;
  }

  .product-info {
    padding: 20px 12px 12px;
  }

  .product-title {
    font-size: 18px;
  }

  .color-variant-section,
  .size-variant-section {
    margin: 16px 0;
  }

  .variant-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .color-swatch-btn {
    width: 55px;
    height: 55px;
  }

  .size-swatch-btn {
    width: 45px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .add-to-cart-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .brand-description-images {
    margin: 20px 0;
  }

  .price-section {
    margin: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .price-container {
    gap: 8px;
  }

  .sale-price {
    font-size: 22px;
  }

  .currency {
    font-size: 16px;
  }

  .regular-price {
    font-size: 16px;
  }

  .discount-badge {
    padding: 6px 10px;
    font-size: 13px;
    align-self: flex-end;
  }

  /* Navigation arrows responsive sizing */
  .main-slider .swiper-button-next,
  .main-slider .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .main-slider .swiper-button-next:after,
  .main-slider .swiper-button-prev:after {
    font-size: 16px;
  }

  .main-slider .swiper-button-next {
    left: 8px;
  }

  .main-slider .swiper-button-prev {
    right: 8px;
  }
}

/* Footer Styles */
.ribal-footer {
  width: 100vw;
  max-width: 100vw;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 50px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  text-align: center;
  margin-bottom: 50px;
}

.footer-logo-section {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.footer-title {
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-description {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85);
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-icon i {
  font-size: 18px;
}

.footer-links-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column {
  text-align: center;
}

.footer-column-title {
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  color: white;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-item i {
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  margin-top: 30px;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.copyright-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copyright-text {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.company-logo img {
  width: 30px;
  height: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ribal-footer {
    padding: 40px 0 20px;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-logo {
    width: 80px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-description {
    font-size: 13px;
  }

  .footer-links-section {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-icon i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .footer-links-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .contact-item i {
    width: auto;
  }

  .social-media-icons {
    gap: 10px;
  }

  .app-store-btn img {
    height: 35px;
  }
}
