/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #efb6b6;
  --secondary-color: #2c1810;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
  --price-red: #d32f2f;
  --tabby-green: #00d4aa;
  --star-gold: #ffc107;
}

body {
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

.section-title::after {
  content: none !important ;
}

/* ==================== Product Images Section ==================== */
.main-section {
  padding-top: 100px !important;
}
.product-images-section {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  align-items: flex-start;
}

.action-icons {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-btn:hover {
  background: var(--bg-light);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.icon-btn i {
  font-size: 18px;
  color: var(--text-dark);
}

.main-image-container {
  flex: 1;
  height: 500px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Thumbnail Gallery Wrapper */
.thumbnail-gallery-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
  flex-shrink: 0;
  height: 500px;
}

.thumbnail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 5px 0;
  width: 100%;
}

.thumbnail-gallery::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  flex: 0 0 90px;
  width: 100%;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumbnail-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.thumbnail-item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
  border-color: var(--primary-color);
  /* transform: translateX(-3px); */
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.thumbnail-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.thumbnail-item.active::after {
  background: rgba(233, 30, 99, 0.1);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Navigation Buttons */
.thumbnail-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.thumbnail-nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.thumbnail-nav:active {
  transform: scale(0.95);
}

.thumbnail-nav i {
  font-size: 14px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.thumbnail-nav:hover i {
  color: white;
}

.thumbnail-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Main Image Navigation Arrows */
.main-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-image-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.main-image-nav.prev {
  right: 20px;
}

.main-image-nav.next {
  left: 20px;
}

.main-image-nav i {
  font-size: 20px;
  color: var(--text-dark);
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 5;
  backdrop-filter: blur(10px);
}

/* ==================== Product Details Section ==================== */
.product-details-section {
  padding: 20px 40px;
}

.product-details-wrapper {
  max-width: 550px;
}

.product-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Price Section */
.price-section {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.label-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.price-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.old-price {
  font-size: 14px;
  color: var(--text-gray);
  text-decoration: line-through;
}

.current-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--price-red);
}

/* Tabby Payment Info */
.tabby-info {
  background: #f0f9f7;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabby-logo {
  height: 20px;
}

.tabby-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
}

.tabby-link {
  color: var(--tabby-green);
  text-decoration: underline;
  font-weight: 600;
}

/* Option Sections */
.option-section {
  margin-bottom: 28px;
}

.option-header {
  margin-bottom: 12px;
}

.option-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Color Options */
.color-options {
  display: flex;
  gap: 12px;
}

.color-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-btn.active {
  border-color: var(--text-dark);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Size Options */
.size-options {
  display: flex;
  gap: 12px;
}

.size-btn {
  padding: 10px 24px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-btn:hover {
  border-color: var(--primary-color);
  background: #fef5f8;
}

.size-btn.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

/* Quantity Selector */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--bg-light);
}

.qty-btn i {
  font-size: 14px;
  color: var(--text-dark);
}

.qty-input {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1.5px solid var(--border-color);
  border-right: 1.5px solid var(--border-color);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.btn-wishlist,
.btn-add-cart {
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-wishlist {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.btn-wishlist:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-add-cart {
  background: #000;
  color: white;
}

.btn-add-cart:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Product Tabs ==================== */
.product-tabs {
  /* margin-top: 60px;
  border-top: 1px solid var(--border-color); */
  padding-top: 30px;
}

.custom-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.custom-tabs .nav-link {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover {
  color: var(--text-dark);
  border-bottom-color: var(--primary-color);
}

.custom-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.custom-tab-content {
  padding: 20px 0;
}

/* Description Content */
.description-content {
  max-width: 900px;
  margin: auto;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars i {
  color: var(--star-gold);
  font-size: 18px;
}

.rating-text {
  font-size: 14px;
  color: var(--text-gray);
  margin-right: 8px;
}

.description-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.highlight-text {
  background: #fff9e6;
  padding: 12px 16px;
  border-radius: 6px;
  border-right: 4px solid #ffc107;
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.highlight-text i {
  color: #ffc107;
  margin-top: 2px;
}

/* Important Notes */
.important-notes {
  background: var(--bg-light);
  padding: 24px;
  border-radius: 8px;
  margin-top: 24px;
}

.notes-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  margin-bottom: 16px;
}

.note-item i {
  font-size: 18px;
  margin-top: 2px;
}

.note-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary-color);
}

.note-list {
  list-style: none;
  padding: 0;
}

.note-list li {
  padding: 8px 0;
  padding-right: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

.note-list li:before {
  content: "•";
  position: absolute;
  right: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

.note-list li i {
  margin-left: 6px;
}

.note-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==================== Related Products ==================== */
.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
}

.related-products-slider {
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 40px;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.old-price-small {
  font-size: 12px;
  color: var(--text-gray);
  text-decoration: line-through;
}

.current-price-small {
  font-size: 16px;
  font-weight: 700;
  color: var(--price-red);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
  .product-details-section {
    margin-top: 30px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
  .product-images-section {
    height: calc(100vh - 120px) !important;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding: 20px 15px;
  }

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

  /* على الموبايل نرجع للـ layout العمودي */
  .product-images-section {
    flex-direction: column;
  }

  .main-image-container {
    height: 400px;
    width: 100%;
  }

  .thumbnail-gallery-wrapper {
    flex-direction: row;
    width: 100%;
    height: auto;
  }

  /* تغيير اتجاه الأسهم على الموبايل */
  .thumbnail-gallery-wrapper .thumbnail-nav.prev i {
    transform: rotate(-270deg);
  }

  .thumbnail-gallery-wrapper .thumbnail-nav.next i {
    transform: rotate(90deg);
  }

  .thumbnail-gallery {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .thumbnail-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }

  .action-icons {
    top: 30px;
    left: 30px;
  }

  .related-products-slider .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .custom-tabs .nav-link {
    font-size: 13px;
    padding: 10px 16px;
  }
}

@media (max-width: 576px) {
  .product-details-wrapper {
    padding: 0 10px;
  }

  .size-options {
    flex-wrap: wrap;
  }

  .size-btn {
    flex: 1;
    min-width: calc(33.333% - 8px);
  }

  .color-options {
    gap: 10px;
  }

  .color-btn {
    width: 38px;
    height: 38px;
  }

  .related-products-slider .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .main-image-container {
    height: 300px;
  }

  .thumbnail-item {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }
}

.btn-submit-review {
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#review-textarea {
  min-height: 120px !important;
}
