/* Single Product Page — meharat-style layout with Arad Sport colors */

.arad-shop-wrap--pdp {
  padding: 20px 0 64px;
  background: #eef1f4;
}

.arad-shop-wrap--pdp .arad-container {
  max-width: min(1560px, calc(100vw - 24px));
  padding-inline: 12px;
}

@media (min-width: 1280px) {
  .arad-shop-wrap--pdp .arad-container {
    max-width: min(1600px, calc(100vw - 40px));
    padding-inline: 20px;
  }
}

.arad-shop-wrap--pdp .arad-page-hero {
  display: none;
}

.arad-pdp {
  color: var(--bg-dark);
}

/* Breadcrumb bar */
.arad-pdp__crumb {
  background: rgba(170, 221, 221, 0.35);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
}

.arad-pdp__breadcrumb {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.arad-pdp__breadcrumb a {
  color: var(--brand-teal);
  font-weight: 500;
}

.arad-pdp__breadcrumb a:hover {
  color: #3d8289;
}

.arad-pdp__crumb-sep {
  margin: 0 8px;
  color: #b0bec5;
}

/* Main card */
.arad-pdp__card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 20px rgba(51, 52, 71, 0.07);
  margin-bottom: 24px;
}

.arad-pdp__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .arad-pdp__grid {
    grid-template-columns: minmax(420px, 1.25fr) minmax(260px, 1fr) minmax(280px, 340px);
    gap: 32px;
  }
}

@media (min-width: 1200px) {
  .arad-pdp__grid {
    grid-template-columns: minmax(500px, 1.35fr) minmax(280px, 1fr) minmax(300px, 350px);
    gap: 40px;
  }

  .arad-pdp__card {
    padding: 28px 36px;
  }
}

/* Gallery */
.arad-pdp__gallery {
  position: relative;
  width: 100%;
}

.arad-pdp__gallery .onsale {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--danger) !important;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: auto;
  line-height: 1.4;
}

.arad-pdp__gallery .woocommerce-product-gallery {
  opacity: 1 !important;
  width: 100% !important;
  float: none !important;
}

.arad-pdp__gallery .woocommerce-product-gallery__wrapper,
.arad-pdp__gallery .flex-viewport {
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafb;
  border: 1px solid #e3eaed;
}

.arad-pdp__gallery .woocommerce-product-gallery__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.arad-pdp__gallery .flex-viewport {
  height: auto !important;
  min-height: 460px;
  width: 100%;
}

.arad-pdp__gallery .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 460px;
  float: none !important;
}

.arad-pdp__gallery .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 460px;
  padding: 12px 16px;
}

.arad-pdp__gallery .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(560px, 58vh) !important;
  margin: 0 auto;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 1200px) {
  .arad-pdp__gallery .flex-viewport,
  .arad-pdp__gallery .woocommerce-product-gallery__wrapper,
  .arad-pdp__gallery .woocommerce-product-gallery__image,
  .arad-pdp__gallery .woocommerce-product-gallery__image a {
    min-height: 520px;
  }

  .arad-pdp__gallery .woocommerce-product-gallery__image img {
    max-height: min(620px, 62vh) !important;
  }
}

.arad-pdp__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.arad-pdp__gallery .flex-control-thumbs li {
  width: 80px;
  flex: 0 0 80px;
  margin: 0 !important;
}

.arad-pdp__gallery .flex-control-thumbs img {
  border: 1px solid #e5eaed;
  border-radius: 8px;
  opacity: 0.7;
  cursor: pointer;
  transition: 0.2s ease;
}

.arad-pdp__gallery .flex-control-thumbs img.flex-active,
.arad-pdp__gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--brand-teal);
}

.arad-pdp__gallery .woocommerce-product-gallery__trigger {
  top: 12px;
  left: 12px;
  right: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

/* Info column */
.arad-pdp__head {
  margin-bottom: 20px;
}

.arad-pdp__info .product_title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bg-dark);
}

@media (min-width: 1200px) {
  .arad-pdp__info .product_title {
    font-size: 24px;
  }
}

.arad-pdp__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.arad-pdp__info .woocommerce-product-rating {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arad-pdp__info .star-rating {
  color: var(--star);
}

.arad-pdp__actions {
  display: flex;
  gap: 8px;
}

.arad-pdp__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5eaed;
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.arad-pdp__action:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.arad-pdp__features-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-dark);
}

.arad-pdp__features-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.arad-pdp__features-list li {
  position: relative;
  padding: 6px 16px 6px 0;
  font-size: 13px;
  line-height: 1.8;
  color: #4a5568;
}

.arad-pdp__features-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}

.arad-pdp__shipping {
  margin-top: 18px;
  border: 1px solid #e5eaed;
  border-radius: 8px;
  overflow: hidden;
}

.arad-pdp__shipping summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arad-pdp__shipping summary::-webkit-details-marker {
  display: none;
}

.arad-pdp__shipping summary::after {
  content: "‹";
  font-size: 18px;
  color: var(--brand-teal);
  transform: rotate(-90deg);
  transition: 0.2s ease;
}

.arad-pdp__shipping[open] summary::after {
  transform: rotate(90deg);
}

.arad-pdp__shipping ul {
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
}

.arad-pdp__shipping li {
  font-size: 13px;
  line-height: 1.8;
  color: #4a5568;
  padding: 4px 0;
}

/* Buy box */
.arad-pdp__buybox {
  background: rgba(170, 221, 221, 0.22);
  border: 1px solid rgba(74, 149, 159, 0.15);
  border-radius: 12px;
  padding: 20px;
}

@media (min-width: 992px) {
  .arad-pdp__buybox {
    position: sticky;
    top: 100px;
  }
}

.arad-pdp__buybox-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-dark);
}

.arad-pdp__services {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.arad-pdp__services li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a5568;
  padding: 6px 0;
}

.arad-pdp__services svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-teal);
}

.arad-pdp__price-wrap {
  margin-bottom: 16px;
}

.arad-pdp__discount-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.arad-pdp__buybox .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--success-gold);
  margin: 0;
}

.arad-pdp__buybox .price del {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #9aa0a6;
  margin-bottom: 4px;
}

.arad-pdp__buybox .price ins {
  text-decoration: none;
  color: var(--brand-teal);
}

.arad-pdp__cart form.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.arad-pdp__cart .quantity {
  display: flex;
  align-items: center;
}

.arad-pdp__cart .quantity input.qty {
  width: 100%;
  max-width: none;
  height: 44px;
  border: 1px solid #e5eaed;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font);
  font-size: 15px;
  color: var(--bg-dark);
  background: #fff;
}

.arad-pdp__cart .single_add_to_cart_button {
  width: 100%;
  height: 48px;
  background: var(--brand-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: 0.2s ease;
}

.arad-pdp__cart .single_add_to_cart_button:hover {
  background: #3d8289 !important;
}

.arad-pdp__better-price {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--brand-teal);
  font-weight: 500;
}

.arad-pdp__better-price:hover {
  color: #3d8289;
  text-decoration: underline;
}

/* Tabs */
.arad-pdp__below {
  background: var(--white);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 20px rgba(51, 52, 71, 0.07);
  overflow: hidden;
  margin-bottom: 32px;
}

.arad-pdp__below .woocommerce-tabs {
  margin: 0;
}

.arad-pdp__below .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 32px;
  list-style: none;
  border-bottom: 2px solid #e8eef0;
  background: #fff;
}

.arad-pdp__below .woocommerce-tabs ul.tabs::before,
.arad-pdp__below .woocommerce-tabs ul.tabs::after {
  display: none;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li::before,
.arad-pdp__below .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li a {
  position: relative;
  display: block;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #7a869a;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: color 0.2s ease;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li a::after {
  content: "";
  position: absolute;
  right: 28px;
  left: 28px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.2s ease;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li a:hover {
  color: var(--brand-teal);
}

.arad-pdp__below .woocommerce-tabs ul.tabs li.active a {
  color: var(--brand-teal);
  background: transparent;
}

.arad-pdp__below .woocommerce-tabs ul.tabs li.active a::after {
  background: var(--brand-teal);
}

.arad-pdp__below .woocommerce-Tabs-panel {
  padding: 32px 40px 40px;
  color: #3d4852;
  font-size: 15px;
  line-height: 2.1;
  background: #fff;
  border-top: none;
}

.arad-pdp__below .woocommerce-Tabs-panel--description {
  max-width: none;
}

.arad-pdp__below .woocommerce-Tabs-panel--description p:first-child {
  font-size: 16px;
  color: var(--bg-dark);
}

.arad-pdp__below .woocommerce-Tabs-panel p {
  margin: 0 0 1em;
}

.arad-pdp__below .woocommerce-Tabs-panel h2:first-child {
  display: none;
}

/* Reviews tab */
.arad-pdp__below #reviews {
  padding: 0;
}

.arad-pdp__below #reviews #comments {
  margin-bottom: 24px;
}

.arad-pdp__below #reviews #comments h2,
.arad-pdp__below #reviews .comment-reply-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.arad-pdp__below #reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.arad-pdp__below #review_form_wrapper {
  background: #f7fafa;
  border: 1px solid #e3eaed;
  border-radius: 12px;
  padding: 24px;
  margin-top: 8px;
}

.arad-pdp__below #review_form .comment-form-rating label,
.arad-pdp__below #review_form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-dark);
}

.arad-pdp__below #review_form input[type="text"],
.arad-pdp__below #review_form input[type="email"],
.arad-pdp__below #review_form textarea,
.arad-pdp__below #review_form select {
  width: 100%;
  border: 1px solid #dde4e8;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--bg-dark);
  background: #fff;
  transition: border-color 0.2s ease;
}

.arad-pdp__below #review_form input:focus,
.arad-pdp__below #review_form textarea:focus,
.arad-pdp__below #review_form select:focus {
  outline: none;
  border-color: var(--brand-teal);
}

.arad-pdp__below #review_form #submit {
  background: var(--brand-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.arad-pdp__below .star-rating {
  color: var(--star);
}

/* Related products */
.arad-pdp__related {
  margin-top: 8px;
}

.arad-pdp__related > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 20px;
  text-align: center;
}

.arad-pdp__related ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .arad-pdp__related ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.arad-pdp__related ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(51, 52, 71, 0.06);
  transition: 0.2s ease;
}

.arad-pdp__related ul.products li.product:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.arad-pdp__related ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-dark);
  padding: 10px 12px 0;
  line-height: 1.5;
}

.arad-pdp__related ul.products li.product .price {
  padding: 4px 12px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-teal);
}

.arad-pdp__related ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fafbfc;
}

.arad-pdp__related ul.products li.product .button {
  display: none;
}

/* Hide default WC layout pieces */
.arad-pdp .summary.entry-summary,
.arad-pdp > .woocommerce-product-gallery {
  display: none;
}

/* Mobile stack order */
@media (max-width: 991px) {
  .arad-pdp__grid {
    grid-template-columns: 1fr;
  }

  .arad-pdp__card {
    padding: 16px;
  }
}

/* Notices on PDP */
.arad-shop-wrap--pdp .woocommerce-message,
.arad-shop-wrap--pdp .woocommerce-info,
.arad-shop-wrap--pdp .woocommerce-error {
  border-radius: 8px;
  margin-bottom: 16px;
  color: var(--bg-dark);
}
