/* assets/css/pages/products/section2.css */
/* ORIENT YEMEN - Products Section 2 (Tabs + Intro + Grid + Pagination) */

.oy-products-tabs {
  background: var(--oy-color-white);
}

/* Title + Tabs on same row */
.oy-products-tabs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.oy-products-tabs__title {
  margin: 0;
  color: var(--oy-color-navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ===========================================================
   Tabs wrapper (scroll hint arrow + fade)
=========================================================== */

.oy-products-tabs__tabsWrap {
  position: relative;
  max-width: 100%;
  flex: 1 1 420px;
}

.oy-products-tabs__tabsWrap::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 64px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  background: linear-gradient(to left, var(--oy-color-white), rgba(255, 255, 255, 0));
}

:dir(rtl) .oy-products-tabs__tabsWrap::after {
  background: linear-gradient(to right, var(--oy-color-white), rgba(255, 255, 255, 0));
}

.oy-products-tabs__scrollHint {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--oy-color-white);
  color: var(--oy-color-primary);
  box-shadow: 0 10px 20px rgba(23, 49, 89, 0.10);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .15s ease, filter .15s ease;
}

.oy-products-tabs__scrollHint:hover {
  filter: brightness(0.98);
}

.oy-products-tabs__scrollHint i {
  font-size: 16px;
  line-height: 1;
}

:dir(ltr) .oy-products-tabs__scrollHint i {
  transform: rotate(180deg);
}

.oy-products-tabs__tabsWrap--showHint::after,
.oy-products-tabs__tabsWrap--showHint .oy-products-tabs__scrollHint {
  opacity: 1;
  pointer-events: auto;
}

/* Tabs */
.oy-products-tabs__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 2px;
  padding-bottom: 6px;
  padding-inline-end: 58px;
  scrollbar-width: none;
}

.oy-products-tabs__nav::-webkit-scrollbar {
  display: none;
}

.oy-products-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oy-color-white);
  color: var(--oy-color-navy);
  border: 1px solid #E8E7E7;
  border-radius: var(--oy-radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, filter .15s ease;
}

.oy-products-tabs__tab:hover {
  border-color: var(--oy-color-navy);
  filter: brightness(0.99);
}

.oy-products-tabs__tab--active {
  color: var(--oy-color-primary);
  border-color: var(--oy-color-navy);
}

/* Subtitle */
.oy-products-tabs__subtitle {
  color: var(--oy-color-primary);
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* ===========================================================
   Products Grid + Cards (Base)
=========================================================== */

.oy-products-grid {
  margin-top: 34px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oy-product-card {
  background: var(--oy-color-white);
  border-radius: 14px;
  box-shadow: -15px 10px 11px rgba(23, 49, 89, 0.14);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 470px;
}

.oy-product-card[hidden] {
  display: none !important;
}

.oy-product-card__media {
  width: 100%;
  margin: 6px auto 0;
  border-radius: 12px;
  overflow: hidden;
  height: 340px;
  background: var(--oy-color-white);
}

.oy-product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.oy-product-card__title {
  margin: 10px 0 0;
  color: var(--oy-color-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.oy-product-card__desc {
  margin: 0;
  color: rgba(23, 49, 89, 0.82);
  font-size: 15px;
  line-height: 1.85;
}

/* ===========================================================
   Larger laptop / narrow desktop
=========================================================== */

@media (max-width: 1280px) and (min-width: 1025px) {
  .oy-product-card {
    min-height: 500px;
  }

  .oy-product-card__media {
    height: 380px;
  }
}

/* ===========================================================
   1024 -> 750 : 2 columns + taller images
=========================================================== */

@media (max-width: 1024px) and (min-width: 750px) {
  .oy-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .oy-product-card {
    min-height: 520px;
    padding: 14px 16px 18px;
  }

  .oy-product-card__media {
    height: 400px;
  }

  .oy-product-card__title {
    font-size: 18px;
  }

  .oy-product-card__desc {
    font-size: 15px;
    line-height: 1.85;
  }
}

/* ===========================================================
   749 and below
=========================================================== */

@media (max-width: 749px) {
  .oy-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .oy-products-tabs__tab {
    font-size: 14px;
    padding: 9px 14px;
  }

  .oy-products-tabs__nav {
    padding-inline-end: 54px;
  }

  .oy-products-tabs__scrollHint {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .oy-product-card {
    min-height: 430px;
    padding: 14px 14px 18px;
  }

  .oy-product-card__media {
    width: 100%;
    height: 270px;
  }

  .oy-product-card__title {
    margin-top: 10px;
    font-size: 17px;
  }

  .oy-product-card__desc {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* 600 -> 501 : still 2 cards per row */
@media (max-width: 600px) {
  .oy-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .oy-product-card {
    min-height: 390px;
    padding: 12px 12px 16px;
    gap: 8px;
  }

  .oy-product-card__media {
    height: 235px;
  }

  .oy-product-card__title {
    font-size: 16px;
    margin-top: 8px;
  }

  .oy-product-card__desc {
    font-size: 13px;
    line-height: 1.75;
  }
}

/* switch to 1 column only below 500px */
@media (max-width: 500px) {
  .oy-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .oy-product-card {
    min-height: 460px;
    padding: 14px 14px 18px;
    gap: 10px;
  }

  .oy-product-card__media {
    height: 400px;
  }

  .oy-product-card__title {
    font-size: 18px;
    margin-top: 10px;
    line-height: 1.35;
  }

  .oy-product-card__desc {
    font-size: 14px;
    line-height: 1.85;
  }
}

/* 380 and below */
@media (max-width: 380px) {
  .oy-product-card {
    min-height: 420px;
  }

  .oy-product-card__media {
    height: 300px;
  }

  .oy-product-card__title {
    font-size: 17px;
  }

  .oy-product-card__desc {
    font-size: 13px;
    line-height: 1.8;
  }
}

/* very small phones */
@media (max-width: 470px) {
  .oy-products-tabs__tab {
    font-size: 13px;
    padding: 8px 12px;
  }

  .oy-products-pagination {
    gap: 10px;
  }

  .oy-products-pagination__item {
    width: 54px;
    height: 54px;
    font-size: 16px;
    border-radius: 14px;
  }
}

/* ===========================================================
   Pagination
=========================================================== */

.oy-products-pagination-wrap {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.oy-products-pagination-wrap[hidden] {
  display: none !important;
}

.oy-products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(544px, 100%);
  margin-inline: auto;
  padding: 6px 8px;
  direction: ltr;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.oy-products-pagination::-webkit-scrollbar {
  display: none;
}

.oy-products-pagination__item {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  user-select: none;
  background: var(--oy-color-white);
  color: #F6A626;
  border: 1px solid rgba(0, 0, 0, 0.10);
  transition: filter .15s ease, border-color .15s ease, opacity .15s ease;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.oy-products-pagination__item:hover {
  filter: brightness(0.98);
  border-color: rgba(0, 0, 0, 0.18);
}

.oy-products-pagination__item--active {
  background: #F6A626;
  color: var(--oy-color-white);
  border-color: transparent;
}

.oy-products-pagination__item--dots {
  cursor: default;
  pointer-events: none;
}

.oy-products-pagination__item--next {
  color: var(--oy-color-primary);
}

.oy-products-pagination__item--next i {
  font-size: 20px;
  line-height: 1;
}

.oy-products-pagination__item:disabled,
.oy-products-pagination__item[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}