/* single product page */
.single-product-page-section {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

.single-product-page__hero {
  position: relative;
  width: 100%;
  height: 100%;
  background: no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-product-page__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.single-product-page__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 20px;
  max-width: 700px;
}

.single-product-page__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  padding: 35px;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  background: rgba(22, 22, 22, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.single-product-page__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  padding: 10px;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  background: rgba(22, 22, 22, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Animation keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .single-product-page__title {
    font-size: 2.5rem;
  }

  .single-product-page__subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .single-product-page__title {
    font-size: 2rem;
  }

  .single-product-page__subtitle {
    font-size: 1rem;
  }
}

.product-intro {
    padding: 100px 0;
    direction: rtl;
}

.product-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.product-text {
    flex: 1;
    min-width: 300px;
    color: #1a2533;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-text.visible {
    opacity: 1!important;
    transform: translateX(0);
}

.product-text h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2a2e34;
    margin-bottom: 1.5rem;
    position: relative;
}
.product-text h4 {
   font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.product-text h5 {
   font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.product-text h6 {
   font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.product-text h3::after {
   content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 80px;
  height: 3px;
  background: #fbbf24;
  opacity: 0.5;
  border-radius: 2px;
  transition: width 0.4s ease, opacity 0.4s ease;
}
[lang="en"] .product-text h3::after {
      left: 0;
}
.product-text:hover h3::after {
    width: 130px;
}

.product-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #374151;
}

.product-text ul,
.product-text ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.product-text ul li,
.product-text ol li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.product-text ul li::marker {
    color: #fbbf24;
    font-size: 1.2rem;
}

.product-text ol li::marker {
    color: #fbbf24;
    font-weight: 600;
}

.product-image {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.usage-section h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2a2e34;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.usage-section h4.visible {
    opacity: 1;
    transform: translateY(0);
}

.usage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto;
}

.usage-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.usage-gallery img.visible {
    opacity: 1;
    transform: scale(1);
}

.usage-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.image-modal img {
    max-width: 80%;
    border-radius: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f3f4f6;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #3b82f6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
        gap: 2rem;
    }

    .product-text, .product-image {
        width: 100%;
        max-width: 100%;
    }

    .product-image {
        min-width: 100%;
    }

    .usage-gallery {
        grid-template-columns: 1fr;
    }

    .usage-gallery img {
        height: 180px;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] .single-product-page-section {
    background: linear-gradient(135deg, #17191b, #2a2e32);
}

[data-theme="dark"] .single-product-page__hero {
    background: url('../images/banners/3.jpg') no-repeat center center/cover;
}

[data-theme="dark"] .single-product-page__overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .single-product-page__content {
    color: var(--text-color);
}

[data-theme="dark"] .single-product-page__title {
    background: rgba(31, 34, 36, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .single-product-page__subtitle {
    background: rgba(31, 34, 36, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .product-intro {
    background: var(--background-color);
}

[data-theme="dark"] .product-text {
    color: var(--text-color);
}

[data-theme="dark"] .product-text h3 {
    color: var(--text-color);
}

[data-theme="dark"] .product-text h3::after {
    background: #3b82f6;
}

[data-theme="dark"] .product-text p {
    color: var(--text-muted);
}

[data-theme="dark"] .product-text ul li,
[data-theme="dark"] .product-text ol li {
    color: var(--text-muted);
}

[data-theme="dark"] .product-text ul li::marker,
[data-theme="dark"] .product-text ol li::marker {
    color: #3b82f6;
}

[data-theme="dark"] .product-image img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .product-image img:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .usage-section h4 {
    color: var(--text-color);
}

[data-theme="dark"] .usage-gallery img {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .usage-gallery img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .image-modal {
    background-color: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .close-modal {
    color: var(--text-muted);
}

[data-theme="dark"] .close-modal:hover {
    color: var(--link-color);
}