/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --brand: #ff385c;
  --brand-dark: #d42f4f;
  --brand-light: #fff0f3;
  --brand-lighter: #ffe8ee;
  --brand-mid: #ffb3c1;
  --brand-shadow: rgba(255, 56, 92, 0.22);

  --ink: #111118;
  --ink-2: #3d3d4a;
  --ink-3: #6b6b7a;
  --ink-4: #a0a0ae;
  --line: #ebebf0;
  --surface: #ffffff;
  --surface-2: #f8f8fb;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-xs: 0 1px 4px rgba(0, 0, 0, 0.06);
  --sh-sm: 0 3px 12px rgba(0, 0, 0, 0.07);
  --sh-md: 0 8px 28px rgba(0, 0, 0, 0.09);
  --sh-lg: 0 16px 48px rgba(0, 0, 0, 0.11);
  --sh-brand: 0 6px 20px var(--brand-shadow);

  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ────────────────────────────────────────────────── */
.productSummaryPage {
  color: var(--ink);
  padding-bottom: 2rem;
}

@media (min-width: 992px) {
  .productSummaryPage {
    padding-bottom: 2rem;
  }
}

/* ── SKELETON ────────────────────────────────────────────── */
.ps-skeleton {
  padding-top: 1rem;
  padding-bottom: 2rem;
}
.ps-skeleton__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
}
.ps-skeleton__body {
  padding: 1.25rem 0;
}
.ps-skeleton__title {
  height: 2rem;
  width: 70%;
  border-radius: var(--r-sm);
  margin-bottom: 0.75rem;
}
.ps-skeleton__line {
  height: 1rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.5rem;
}
.ps-skeleton__btn {
  height: 50px;
  border-radius: var(--r-pill);
}

.skeleton-shimmer {
  background-color: #efefef;
  background-image: linear-gradient(
    90deg,
    #efefef 0%,
    #e3e3e3 40%,
    #efefef 80%
  );
  background-size: 500px 100%;
  animation: ps-shimmer 1.4s linear infinite;
  display: block;
}
@keyframes ps-shimmer {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 500px 0;
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE LAYOUT
══════════════════════════════════════════════════════════ */

/* ── Gallery ─────────────────────────────────────────────── */
.ps-mob-gallery {
  position: relative;
  width: 100%;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.product-mobile-gallery {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.product-mobile-gallery .owl-stage-outer,
.product-mobile-gallery .owl-stage {
  height: 100%;
}

.product-mobile-gallery .item {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

.product-mobile-gallery .item img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}

/* Dots */
.product-mobile-gallery .owl-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 6px;
  z-index: 5;
}
.product-mobile-gallery .owl-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18) !important;
  border: none !important;
  margin: 0 !important;
  transition: all 0.2s;
}
.product-mobile-gallery .owl-dot.active {
  background: var(--brand) !important;
  width: 18px !important;
  border-radius: 4px !important;
}

/* Gallery Counter */
.ps-gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  z-index: 6;
}
.ps-gallery-sep {
  margin: 0 2px;
  opacity: 0.7;
}

/* ── Info Block ──────────────────────────────────────────── */
.ps-mob-info {
  padding: 1.25rem 1rem 1rem;
}

.ps-mob-tags {
  margin-bottom: 0.75rem;
  min-height: 24px;
}

.ps-mob-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.ps-mob-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.ps-price-block {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.ps-currency {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.ps-price-value {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ps-mob-rating,
.ps-desk-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.95rem;
}

/* Sold-by strip */
.ps-sold-by-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.ps-sold-by-label {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.ps-vendor-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: opacity var(--ease);
}
.ps-vendor-link:hover {
  opacity: 0.75;
}

/* Review shortcut */
.ps-review-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition:
    color var(--ease),
    border-color var(--ease);
}
.ps-review-shortcut:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.ps-review-shortcut .fa-star {
  color: #f59e0b;
  font-size: 0.8rem;
}

/* Divider */
.ps-section-divider {
  height: 1px;
  background: var(--line);
  margin: 1.1rem 0;
}

/* Label */
.ps-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

/* Error msg */
.ps-error-msg {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 500;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

/* Unavailable */
.ps-unavailable-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f3f6;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Quantity Control ─────────────────────────────────────── */
.ps-qty-wrap {
  display: flex;
  align-items: center;
}

.quantity-control-v2 .pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  margin: 0 !important;
  box-shadow: var(--sh-xs);
}

.quantity-control-v2 .page-item .page-link,
.quantity-control-v2 .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none !important;
  background: transparent !important;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50% !important;
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
  padding: 0;
  line-height: 1;
  box-shadow: none !important;
}

.quantity-control-v2 .page-link.minusButton,
.quantity-control-v2 .page-link.plusButton,
.quantity-control-v2 .minusButton,
.quantity-control-v2 .plusButton {
  color: var(--brand);
}

.quantity-control-v2 .page-link.minusButton:hover,
.quantity-control-v2 .page-link.plusButton:hover,
.quantity-control-v2 .minusButton:hover,
.quantity-control-v2 .plusButton:hover {
  background: var(--brand) !important;
  color: #fff;
  transform: scale(1.08);
}

.quantity-control-v2 .page-link.quantityButton,
.quantity-control-v2 .qntyTextField {
  font-weight: 700;
  font-size: 1rem;
  pointer-events: none;
  background: var(--surface) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ink);
  width: 40px;
  height: 40px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.ps-btn-cart,
.ps-btn-buy,
.ps-btn-proceed,
.ps-btn-ghost,
.ps-btn-leave-review,
.ps-btn-view-more,
.ps-btn-visit,
.reviewViewMoreBtn,
.submitreviewBtn,
.removeFromCart,
.addToCartProductSummary,
.buyNow,
.proceedToCartBtn,
.continueShoppingBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    opacity var(--ease);
}

/* Primary (brand) button */
.ps-btn-buy,
.buyNow,
.buyNowBtnV2,
.submitreviewBtn,
.productReviewClose,
.startNewCart,
.reviewViewMoreBtn,
.ps-btn-view-more,
.continueShoppingBtn {
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: var(--sh-brand);
}
.ps-btn-buy:hover,
.buyNow:hover,
.buyNowBtnV2:hover,
.submitreviewBtn:hover,
.productReviewClose:hover,
.startNewCart:hover,
.reviewViewMoreBtn:hover,
.ps-btn-view-more:hover,
.continueShoppingBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-shadow) !important;
}

/* Outlined cart button */
.ps-btn-cart,
.addToCartProductSummary,
.addToCartBtnV2 {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--brand-mid) !important;
  box-shadow: none !important;
}
.ps-btn-cart:hover,
.addToCartProductSummary:hover,
.addToCartBtnV2:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  transform: translateY(-2px);
  box-shadow: var(--sh-brand) !important;
}

/* Ghost / secondary */
.ps-btn-ghost,
.keepOldCart,
.reviewprodductModalClose {
  background: var(--surface-2) !important;
  color: var(--ink-3) !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: none !important;
}
.ps-btn-ghost:hover,
.keepOldCart:hover,
.reviewprodductModalClose:hover {
  background: #ebebf0 !important;
}

/* Remove from cart (injected dynamically) */
.removeFromCart {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--brand-mid) !important;
}
.removeFromCart:hover {
  background: var(--brand) !important;
  color: #fff !important;
}

/* Proceed to cart */
.proceedToCartBtn {
  background: var(--ink) !important;
  color: #fff !important;
}
.proceedToCartBtn:hover {
  background: var(--ink-2) !important;
  transform: translateY(-2px);
}

/* Leave review (small) */
.ps-btn-leave-review {
  background: var(--brand-light);
  color: var(--brand);
  border: 1.5px solid var(--brand-mid);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.ps-btn-leave-review:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Visit store */
.ps-btn-visit {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.ps-btn-visit:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* View photos button */
.ps-view-photos-btn {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all var(--ease);
}
.ps-view-photos-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand-mid);
  color: var(--brand);
}

/* ── Action Buttons — inline layout (mobile + desktop) ─────── */
.ps-mob-actions.action-buttons-v2,
.ps-desk-actions.action-buttons-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ps-mob-actions .ps-btn-cart,
.ps-mob-actions .addToCartProductSummary,
.ps-mob-actions .ps-btn-buy,
.ps-mob-actions .buyNow,
.ps-mob-actions .proceedToCartBtn,
.ps-mob-actions .removeFromCart {
  flex: 1;
  min-width: 130px;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP LAYOUT
══════════════════════════════════════════════════════════ */

@media (min-width: 992px) {
  .ps-desktop-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    align-items: start;
  }
}

/* ── Desktop Gallery ─────────────────────────────────────── */
.ps-desk-gallery {
  position: sticky;
  top: 90px;
}

.ps-desk-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ps-desk-main-img,
.main-product-image-v2,
.landingPageProductImageV2 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-xl);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-product-image-v2.swapping,
.ps-desk-main-img.swapping {
  opacity: 0.5;
  transform: scale(0.96);
}

/* Thumbnails */
.ps-desk-thumbs,
.thumbnail-grid-v2,
.product-thumbnails-desktop {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.thumb-v2 {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 2px solid var(--line);
  object-fit: cover;
  background: var(--surface-2);
  transition: all 0.2s ease;
  box-shadow: var(--sh-xs);
}
.thumb-v2:hover {
  border-color: var(--brand-mid);
  transform: scale(1.05);
}
.thumb-v2.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-lighter);
  transform: scale(1.06);
}

/* ── Desktop Info Panel ──────────────────────────────────── */
.ps-desk-info-inner {
  padding: 0.5rem 0;
}

.ps-desk-tags {
  margin-bottom: 0.85rem;
  min-height: 24px;
}

.ps-desk-name {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.ps-desk-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

.ps-desk-price-row .ps-price-value {
  font-size: 2.4rem;
}

/* Desktop action buttons */
.ps-desk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 1100px) {
  .ps-desk-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ps-desk-actions .ps-btn-cart,
  .ps-desk-actions .addToCartProductSummary,
  .ps-desk-actions .ps-btn-buy,
  .ps-desk-actions .buyNow,
  .ps-desk-actions .proceedToCartBtn {
    flex: 1;
    min-width: 140px;
  }
}

/* ══════════════════════════════════════════════════════════
   CONTENT SECTIONS (shared)
══════════════════════════════════════════════════════════ */

.ps-sections-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 991.98px) {
  .ps-sections-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.ps-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--ease);
}
.ps-section-card:hover {
  box-shadow: var(--sh-sm);
}

/* Section head */
.ps-section-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
}

@media (min-width: 576px) {
  .ps-section-head {
    flex-direction: row;
    align-items: center;
  }
  .ps-review-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ps-section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.1rem;
}

@media (min-width: 576px) {
  .ps-section-tag {
    width: 64px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    padding-right: 1rem;
    margin-right: 1rem;
    margin-bottom: 0;
    text-align: right;
    line-height: 1.4;
  }
}

.ps-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Section body */
.ps-section-body {
  padding: 1.5rem;
}

/* Description */
.product-description-copy {
  font-size: 0.95rem;
  line-height: 1.82;
  color: var(--ink-2);
}
.product-description-copy p:last-child {
  margin-bottom: 0;
}

/* ── Vendor Card ─────────────────────────────────────────── */
.ps-vendor-card,
.vendor-card-v2 {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  flex-direction: column;
}

@media (min-width: 576px) {
  .ps-vendor-card,
  .vendor-card-v2 {
    flex-direction: row;
    align-items: center;
  }
  .ps-vendor-action {
    margin-left: auto;
    flex-shrink: 0;
  }
}

.ps-vendor-avatar-wrap {
  flex-shrink: 0;
}

.ps-vendor-avatar,
.soldByVendorImage {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--line);
}

.ps-vendor-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.ps-vendor-address {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.ps-vendor-min-order {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}
.ps-vendor-stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

/* ── Reviews ─────────────────────────────────────────────── */
.ps-review-head {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.productReviews .row,
#productReviewsMore .row {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.productReviews .row:last-child,
#productReviewsMore .row:last-child {
  border-bottom: none;
}

.productReviews h4.card-title,
#productReviewsMore h4.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.productReviews h5.card-title,
#productReviewsMore h5.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.2rem;
}
.productReviews p.card-text,
#productReviewsMore p.card-text {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.ps-review-error {
  font-size: 0.85rem;
  color: var(--ink-4);
}

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.ps-modal-content {
  border: none !important;
  border-radius: var(--r-xl) !important;
  overflow: hidden;
  box-shadow: var(--sh-lg) !important;
}

.ps-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.ps-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.ps-modal-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  font-size: 0.9rem;
}
.ps-modal-close:hover {
  background: var(--brand-light);
  border-color: var(--brand-mid);
  color: var(--brand);
}

.ps-modal-body {
  padding: 1.5rem;
  background: var(--surface);
}

.ps-modal-text {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

.ps-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

/* Modal Form */
.ps-form-group {
  margin-bottom: 1.25rem;
}
.ps-form-group:last-child {
  margin-bottom: 0;
}

.ps-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.ps-form-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
  outline: none;
}
.ps-form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.ps-form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* Star rating */
.ps-rating-display {
  margin-bottom: 0.75rem;
}
.ps-rating-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}
.ps-rating-denom {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.ps-star-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btnrating.btn-default {
  background: var(--surface-2);
  border: 1.5px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ink-3);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--ease);
  cursor: pointer;
}
.btnrating.btn-default:hover {
  background: var(--brand-light);
  border-color: var(--brand-mid) !important;
  color: var(--brand);
  transform: scale(1.1);
}
.btnrating.btn-warning {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
  border-radius: var(--r-sm) !important;
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(251, 191, 36, 0.4);
}

/* Carousel images */
.imageCarosel .carousel-item img {
  border-radius: 0;
  max-height: 420px;
  width: 100%;
  object-fit: contain;
  background: var(--surface-2);
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.emptyProductSummaryPage {
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 400px;
}

.ps-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--brand);
}

.ps-empty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.ps-empty-sub {
  font-size: 0.95rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════
   VEG / NON-VEG
══════════════════════════════════════════════════════════ */
.diet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: var(--surface);
  padding: 2px;
}
.diet-icon .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.diet-icon.veg {
  border-color: #16a34a;
}
.diet-icon.veg .dot {
  background: #16a34a;
}
.diet-icon.non-veg {
  border-color: #dc2626;
}
.diet-icon.non-veg .dot {
  background: #dc2626;
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.text-brand {
  color: var(--brand) !important;
}

.product-summary-content-shell {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .product-summary-content-shell {
    margin-top: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-mid);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* Bootstrap overrides for our cards in sections area */
.productSummaryPage .card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 0;
}

/* Legacy skeleton class names still work */
.product-summary-skeleton {
  min-height: 80vh;
  padding-top: 2rem;
}
.skeleton-text {
  height: 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.skeleton-title {
  height: 2rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.skeleton-image {
  height: 280px;
  border-radius: 18px;
}
.skeleton-btn {
  height: 48px;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.skeleton-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-right: 8px;
}
