/* =====================================================
   Product Single Page - Myntra-Style Layout Override
   ===================================================== */

/* ---- Reset old ps-page layout ---- */
.ps-page--product .ps-page__container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ps-page--product .ps-page__left {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}
.ps-page--product .ps-page__right {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* ---- Main product detail layout ---- */
.psp-detail-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0 32px;
}

/* ---- LEFT: Image Gallery (sticky vertical thumbnails + main image) ---- */
.psp-gallery-col {
  width: 40%;
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: sticky;
  top: 80px;
}

.psp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 68px;
  flex-shrink: 0;
}

.psp-thumb-item {
  width: 68px;
  height: 80px;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #f5f5f6;
}
.psp-thumb-item:hover,
.psp-thumb-item.active {
  border-color: #282c3f;
}
.psp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.psp-thumb-video {
  position: relative;
}
.psp-thumb-video .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.psp-main-image {
  flex: 1 1 auto;
  position: relative;
  background: #f5f5f6;
  border-radius: 6px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.psp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 500px;
  display: block;
  transition: opacity 0.3s;
}
.psp-main-image .psp-wishlist {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: #7e818c;
  cursor: pointer;
  z-index: 2;
}
.psp-main-image .psp-wishlist:hover {
  color: #ff3f6c;
}
.psp-main-image .psp-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  display: none;
}
.psp-main-image.show-video .psp-video-frame {
  display: block;
}
.psp-main-image.show-video > img {
  display: none;
}

/* Discount badge on main image area */
.psp-main-image .psp-img-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  background: #ff3f6c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- RIGHT: Product Info Panel ---- */
.psp-info-col {
  width: 100%;
  flex: 0 0 60%;
  min-width: 280px;
  padding: 4px 0 0 8px;
}

/* Brand */
.psp-brand-link {
  font-size: 13px;
  font-weight: 700;
  color: #ff3f6c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.psp-brand-link:hover {
  text-decoration: underline;
  color: #ff3f6c;
}

/* Product name */
.psp-product-name {
  font-size: 20px;
  font-weight: 400;
  color: #282c3f;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Ratings row */
.psp-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  flex-wrap: wrap;
}
.psp-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #14958f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}
.psp-rating-badge i {
  font-size: 11px;
}
.psp-rating-count {
  font-size: 13px;
  color: #7e818c;
}

/* Price section */
.psp-price-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.psp-price-current {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
}
.psp-price-mrp {
  font-size: 18px;
  color: #7e818c;
  text-decoration: line-through;
}
.psp-price-discount {
  font-size: 18px;
  font-weight: 600;
  color: #ff905a;
}

/* Cashback / offer banner */
.psp-cashback-banner {
  
  padding: 10px 0px;
  margin: 10px 0;
  font-size: 14px;
  color: #212529;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.psp-cashback-banner i {
  color: #14958f;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.psp-cashback-text strong {
  color: #282c3f;
}
.psp-cashback-text span {
  color: #7e818c;
  display: block;
  font-size: 12px;
}

/* Delivery badges */
.psp-delivery-badges {
  display: flex;
  gap: 14px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.psp-delivery-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #282c3f;
  background: #f4f4f5;
  padding: 6px 12px;
  border-radius: 4px;
}
.psp-delivery-badge i {
  color: #14958f;
  font-size: 14px;
}

/* Reward points */
.psp-reward-banner {
  background: #fff7cc;
  border: 1px solid #ffe066;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #7a5c00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.psp-reward-banner i {
  font-size: 18px;
  color: #f5a623;
}

/* Availability */
.psp-availability {
  font-size: 13px;
  margin: 4px 0 8px;
}
.psp-availability .in-stock {
  color: #03a685;
  font-weight: 600;
}
.psp-availability .out-stock {
  color: #ff3f6c;
  font-weight: 600;
}

/* Section divider with label */
.psp-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #282c3f;
  margin: 16px 0 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

/* Check Delivery */
.psp-check-delivery {
  margin: 10px 0 14px;
}
.psp-check-delivery .psp-pincode-row {
  display: flex;
  border: 1px solid #d4d5d9;
  border-radius: 4px;
  overflow: hidden;
}
.psp-check-delivery input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: #282c3f;
  background: transparent;
}
.psp-check-delivery button {
  background: none;
  border: none;
  color: #ff3f6c;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  border-left: 1px solid #d4d5d9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.psp-check-delivery button:hover {
  color: #c8305a;
}

/* ADD TO CART + BUY NOW */
.psp-action-buttons {
  display: flex;
  gap: 12px;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}
.psp-btn-atc,
.psp-btn-buy {
  /* flex: 1;  */ 
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.psp-btn-atc {
  background: #1E65A8;
  color: #fff;
}
.psp-btn-atc:hover {
  opacity: 0.85;
  color: #fff;
}
.psp-btn-buy {
  background: #ff905a;
  color: #fff;
}
.psp-btn-buy:hover {
  opacity: 0.85;
  color: #fff;
}
.psp-btn-enquiry {
  
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  background: #282c3f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}
.psp-btn-enquiry:hover {
  opacity: 0.85;
}

/* Quantity control */
.psp-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d4d5d9;
  border-radius: 4px;
  width: fit-content;
  margin: 10px 0;
}
.psp-qty-wrap button {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #282c3f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.psp-qty-wrap input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid #d4d5d9;
  border-right: 1px solid #d4d5d9;
  font-size: 14px;
  font-weight: 600;
  color: #282c3f;
  outline: none;
  height: 36px;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.psp-qty-wrap input::-webkit-outer-spin-button,
.psp-qty-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Product Details Accordion */
.psp-details-section {
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}
.psp-accordion-item {
  border-bottom: 1px solid #f0f0f0;
}
.psp-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.psp-accordion-trigger h3 {
  font-size: 14px;
  font-weight: 700;
  color: #282c3f;
  margin: 0;
}
.psp-accordion-trigger .psp-acc-toggle {
  font-size: 18px;
  color: #7e818c;
  transition: transform 0.2s;
  font-style: normal;
}
.psp-accordion-item.open .psp-acc-toggle {
  transform: rotate(45deg);
}
.psp-accordion-body {
  display: none;
  padding: 0 0 14px;
}
.psp-accordion-item.open .psp-accordion-body {
  display: block;
}
.psp-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 8px;
}
.psp-spec-item .spec-label {
  font-size: 12px;
  color: #7e818c;
  margin-bottom: 2px;
}
.psp-spec-item .spec-val {
  font-size: 14px;
  color: #282c3f;
  font-weight: 500;
}
.psp-accordion-body p {
  font-size: 14px;
  color: #212529;
  line-height: 1.7;
  margin: 0;
}
.psp-accordion-body .ps-document {
  font-size: 14px;
  color: #535766;
  line-height: 1.7;
}

/* Tags & Share */
.psp-tags-row {
  margin: 10px 0 4px;
  font-size: 13px;
  color: #7e818c;
}
.psp-tags-row a {
  color: #282c3f;
  margin-right: 4px;
}
.psp-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.psp-share-row span {
  font-size: 13px;
  color: #7e818c;
}
.psp-share-row a {
  width: 32px;
  height: 32px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.psp-share-row a:hover {
  opacity: 0.8;
}
.psp-share-row a.facebook {
  background: #3b5998;
}
.psp-share-row a.twitter {
  background: #1da1f2;
}
.psp-share-row a.pinterest {
  background: #bd081c;
}
.psp-share-row a.linkedin {
  background: #0077b5;
}
.psp-share-row a.whatsapp {
  background: #25d366;
}

/* ---- TRUST BADGES STRIP ---- */
.psp-trust-strip {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 0;
  margin: 0 0 32px;
}
.psp-trust-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.psp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.psp-trust-item i {
  font-size: 36px;
  color: #282c3f;
}
.psp-trust-item span {
  font-size: 12px;
  font-weight: 600;
  color: #282c3f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- SIMILAR PRODUCTS SECTION ---- */
.psp-similar-section {
  padding: 0 0 40px;
}
.psp-similar-section .psp-section-head {
  font-size: 18px;
  font-weight: 700;
  color: #282c3f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #282c3f;
  display: inline-block;
}
.psp-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.psp-sim-card {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s;
  text-decoration: none;
  display: block;
}
.psp-sim-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.psp-sim-card .sim-img-wrap {
  position: relative;
  background: #f5f5f6;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.psp-sim-card .sim-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.psp-sim-card:hover .sim-img-wrap img {
  transform: scale(1.04);
}
.psp-sim-card .sim-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff3f6c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}
.psp-sim-card .sim-info {
  padding: 10px 10px 12px;
}
.psp-sim-card .sim-name {
  font-size: 13px;
  font-weight: 600;
  color: #282c3f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 4px;
}
.psp-sim-card .sim-fit {
  font-size: 12px;
  color: #7e818c;
  margin-bottom: 4px;
}
.psp-sim-card .sim-price {
  font-size: 14px;
  font-weight: 700;
  color: #282c3f;
}
.psp-sim-card .sim-price-mrp {
  font-size: 12px;
  color: #7e818c;
  text-decoration: line-through;
  margin-left: 4px;
}
.psp-sim-card .sim-price-off {
  font-size: 12px;
  color: #ff905a;
  font-weight: 600;
  margin-left: 4px;
}

/* ---- REVIEWS SECTION ---- */
.psp-reviews-section {
  padding: 0 0 40px;
}
.psp-reviews-section .psp-section-head {
  font-size: 18px;
  font-weight: 700;
  color: #282c3f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #282c3f;
  display: inline-block;
}

/* ---- BREADCRUMB ---- */
.ps-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}
.ps-breadcrumb .breadcrumb {
  font-size: 12px;
  margin: 0;
  padding: 0;
  background: none;
  color: #7e818c;
}
.ps-breadcrumb .breadcrumb li {
  color: #7e818c;
}
.ps-breadcrumb .breadcrumb li a {
  color: #7e818c;
  text-decoration: none;
}
.ps-breadcrumb .breadcrumb li a:hover {
  color: #282c3f;
}
.ps-breadcrumb .breadcrumb li:last-child {
  color: #282c3f;
  font-weight: 600;
}
.ps-breadcrumb .breadcrumb li + li::before {
  content: " > ";
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .psp-gallery-col {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .psp-thumbs {
    flex-direction: row;
    width: 100%;
    order: 2;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .psp-thumb-item {
    flex-shrink: 0;
  }
  .psp-main-image {
    order: 1;
    width: 100%;
    min-height: 300px;
  }
  .psp-detail-wrap {
    flex-direction: column;
  }
  .psp-info-col {
    padding: 0;
  }
}
@media (max-width: 576px) {
  .psp-action-buttons {
    flex-direction: column;
  }
  .psp-btn-atc,
  .psp-btn-buy {
    min-width: unset;
    width: 100%;
  }
  .psp-trust-strip .container {
    gap: 24px;
  }
  .psp-similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .psp-price-current {
    font-size: 20px;
  }
  .psp-product-name {
    font-size: 17px;
  }
}
