/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-success: #16a34a;
  --color-text: #111827;
  --color-text-light: #6b7280;
  --color-bg: #f9fafb;
  --color-bg-light: #ffffff;
  --color-border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover {
  color: var(--color-primary);
}

.header__cta {
  display: flex;
  align-items: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobileMenu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.mobileMenu.show {
  display: flex;
}

.mobileMenu__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 0;
}

.mobileMenu__btn {
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--soft {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--soft:hover {
  background: var(--color-border);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-bg);
}

.w-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.hero__text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text);
}

.hero__text p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust__num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
}

.trust__label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.hero__card {
  position: relative;
}

.heroProduct {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.heroProduct__img {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
}

.heroProduct__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroProduct__info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.heroProduct__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.heroProduct__priceRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-success);
}

.oldPrice {
  font-size: 1rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.discount {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
}

.note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
}

.hero__bgGlow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* Main Content */
.main {
  padding: 4rem 0;
}

.section {
  margin-bottom: 4rem;
}

.sectionHead {
  text-align: center;
  margin-bottom: 3rem;
}

.sectionHead h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.sectionHead p {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card */
.card {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: var(--color-bg);
}

.card__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc2626;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
}

.tag--blue {
  background: var(--color-primary);
}

.tag--green {
  background: var(--color-success);
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.card__desc {
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.card__priceRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Product Details: Gallery & Video */
.productDetails {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sectionSubtitle {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  text-align: center;
}

.productGallery,
.productVideo {
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--color-bg-light);
  padding-top: 75%; /* 4:3 aspect ratio */
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.videoWrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.videoWrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.videoWrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature__text {
  color: var(--color-text-light);
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.qa summary {
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-text);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.qa summary::before {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.qa[open] summary::before {
  content: '−';
}

.qa p {
  margin-top: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-size: 1.5rem;
  font-weight: 900;
}

.footer__note {
  color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal__head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.iconBtn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.iconBtn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal__sub {
  padding: 1rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.modal__sub span {
  color: var(--color-text-light);
}

.modal__sub strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Form */
.form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form label span {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.form input,
.form select {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--color-bg-light);
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__msg {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

.form__msg.success {
  background: #dcfce7;
  color: #166534;
}

.form__msg.error {
  background: #fef2f2;
  color: #dc2626;
}

.form__actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.modal__foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.miniPill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-text-light);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-text);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: toastSlideIn 0.3s ease-out;
}

.toast.hidden {
  display: none;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__text h1 {
    font-size: 2.25rem;
  }

  .nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .form__grid2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0;
  }

  .hero__text h1 {
    font-size: 1.75rem;
  }

  .sectionHead h2 {
    font-size: 2rem;
  }

  .trust {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .productDetails {
    margin-top: 3rem;
    gap: 2rem;
  }

  .sectionSubtitle {
    font-size: 1.5rem;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  .imageGalleryModal__prev,
  .imageGalleryModal__next {
    font-size: 2.5rem;
    padding: 0.5rem;
  }

  .imageGalleryModal__counter {
    font-size: 0.875rem;
  }
}

/* Image Gallery Modal */
.imageGalleryModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.imageGalleryModal.hidden {
  display: none;
}

.imageGalleryModal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.imageGalleryModal__container {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: galleryFadeIn 0.3s ease-out;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.imageGalleryModal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.imageGalleryModal__close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.imageGalleryModal__prev,
.imageGalleryModal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
  padding: 0;
  user-select: none;
}

.imageGalleryModal__prev {
  right: 1rem;
}

.imageGalleryModal__next {
  left: 1rem;
}

.imageGalleryModal__prev:hover,
.imageGalleryModal__next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.imageGalleryModal__imageWrapper {
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.imageGalleryModal__image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.imageGalleryModal__counter {
  position: absolute;
  bottom: -3rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .imageGalleryModal__prev,
  .imageGalleryModal__next {
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .imageGalleryModal__prev {
    right: 0.5rem;
  }

  .imageGalleryModal__next {
    left: 0.5rem;
  }

  .imageGalleryModal__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .imageGalleryModal__counter {
    bottom: 0.5rem;
    font-size: 0.875rem;
  }
}
