/**
 * Single product page — gallery arrows & responsive layout
 *
 * @package LC_Ayurveda
 */

/* --------------------------------------------------------------------------
   Gallery arrows — match homepage hero-slider
   -------------------------------------------------------------------------- */
body.single-product .product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease,
              visibility 0.3s ease,
              background-color var(--transition),
              transform var(--transition);
}

body.single-product .product-gallery__arrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.single-product .product-gallery__arrow--prev {
  left: 20px;
}

body.single-product .product-gallery__arrow--next {
  right: 20px;
}

@media (min-width: 769px) {
  body.single-product .product-gallery__main--slider:hover .product-gallery__arrow {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 769px) and (hover: hover) {
  body.single-product .product-gallery__arrow:hover {
    background: var(--gradient-gold);
    color: var(--color-text);
    transform: translateY(-50%) scale(1.08);
  }
}

@media (max-width: 768px) {
  body.single-product .product-gallery__arrow {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive layout fixes
   -------------------------------------------------------------------------- */
body.single-product {
  overflow-x: clip;
}

body.single-product .product-main .container,
body.single-product .product-breadcrumb .container,
body.single-product .product-accordion .container,
body.single-product .product-related .container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

body.single-product .product-main__grid {
  min-width: 0;
}

body.single-product .product-gallery,
body.single-product .product-info {
  min-width: 0;
  max-width: 100%;
}

body.single-product .product-info__title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-product .product-info__pricing {
  row-gap: 8px;
}

body.single-product .product-btn {
  max-width: 100%;
}

body.single-product .product-description__text {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  body.single-product .product-main__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.single-product .product-main {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  body.single-product .product-main .container,
  body.single-product .product-breadcrumb .container,
  body.single-product .product-accordion .container,
  body.single-product .product-related .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.single-product .product-main {
    padding: 32px 0;
  }

  body.single-product .product-main__grid {
    gap: 24px;
  }

  body.single-product .product-gallery {
    padding: 16px;
    border-radius: 12px;
  }

  body.single-product .product-info__title {
    font-size: 1.375rem;
    margin-bottom: 12px;
  }

  body.single-product .product-info__price {
    font-size: 1.5rem;
  }

  body.single-product .product-info__tax-note {
    margin-bottom: 20px;
  }

  body.single-product .product-trust-badges {
    gap: 10px;
    margin-bottom: 20px;
  }

  body.single-product .product-trust-badges__item {
    padding: 12px 8px;
    font-size: 10px;
  }

  body.single-product .product-trust-badges__icon {
    width: 24px;
    height: 24px;
  }

  body.single-product .product-btn {
    width: 100%;
    justify-content: center;
  }

  body.single-product .product-qty {
    margin-bottom: 16px;
  }

  body.single-product .product-related {
    padding: 40px 0;
  }

  body.single-product .product-related .section-heading {
    margin-bottom: 24px;
  }

  body.single-product .product-accordion {
    padding: 32px 0;
  }

  body.single-product .product-breadcrumb {
    padding: 12px 0;
  }

  body.single-product .product-breadcrumb__list {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  body.single-product .product-main .container,
  body.single-product .product-breadcrumb .container,
  body.single-product .product-accordion .container,
  body.single-product .product-related .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.single-product .product-gallery {
    padding: 12px;
  }

  body.single-product .product-gallery__thumbs {
    gap: 8px;
  }

  body.single-product .product-gallery__thumb {
    width: 60px;
    height: 60px;
  }

  body.single-product .product-breadcrumb__list {
    font-size: 11px;
  }

  body.single-product .product-breadcrumb__current {
    display: inline-block;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  body.single-product .product-trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product .product-trust-badges__item span {
    display: block;
    line-height: 1.25;
  }

  body.single-product .product-info__price {
    font-size: 1.375rem;
  }

  body.single-product .related-slider .product-card {
    flex: 0 0 calc(78% - 8px);
    min-width: calc(78% - 8px);
  }
}

@media (max-width: 360px) {
  body.single-product .product-trust-badges__item {
    padding: 10px 6px;
    font-size: 9px;
  }
}
