/* ====== PDP Redesign (PBI #45289) ====== */

:root {
  --red: #C4112F;
  --red-dark: #9E0D25;
  --red-light: #FDF2F4;
  --charcoal: #262626;
  --dark: #333;
  --body: #444;
  --g600: #555;
  --g500: #767676;
  --g400: #999;
  --g300: #bbb;
  --g200: #ddd;
  --g150: #e5e5e5;
  --g100: #eee;
  --g50: #f5f5f5;
  --white: #fff;
  --green: #28a745;
  --green-lt: #e8f5ec;
  --amber: #e67e22;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r: 6px;
  --rl: 10px;
}

/* LAYOUT */
.pdp-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 30px 64px;
}
.pdp-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding-top: 20px; padding-bottom: 40px;
}

/* IMAGE GALLERY */
.pdp-gallery { display: flex; gap: 12px; }
.pdp-thumbs-col { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.pdp-thumb {
  width: 64px; height: 64px; border: 2px solid var(--g200);
  border-radius: var(--r); cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.pdp-thumb.active { border-color: var(--red); }
.pdp-thumb img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 3px;
}
.pdp-main-image {
  flex: 1; min-height: 400px;
  background: var(--white); border: 1px solid var(--g200);
  border-radius: var(--rl);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.pdp-main-image img {
  max-width: 100%; max-height: 460px; object-fit: contain;
}

/* PRODUCT INFO */
.pdp-info {
  display: flex; flex-direction: column; justify-content: flex-start;
}
.pdp-brand { margin-bottom: 4px; }
.pdp-brand a { font-size: 13px; color: var(--red); font-weight: 600; text-decoration: none; }
.pdp-brand a:hover { text-decoration: underline; }
.pdp-title {
  font-size: 24px; font-weight: 700; color: var(--dark);
  line-height: 1.25; margin-bottom: 8px;
}
.pdp-sku { font-size: 13px; color: var(--g400); margin-bottom: 20px; }

/* PRICING */
.pdp-pricing { margin-bottom: 24px; }
.pdp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pdp-price { font-size: 32px; font-weight: 800; color: var(--dark); }
.pdp-unit { font-size: 15px; color: var(--g500); }
.pdp-msrp { font-size: 16px; color: var(--g300); text-decoration: line-through; }
.pdp-msrp-unit { font-size: 13px; color: var(--g300); text-decoration: line-through; }
.pdp-save {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--green); background: var(--green-lt);
  padding: 3px 10px; border-radius: 4px; margin-top: 6px;
}

/* QUANTITY & ADD TO CART */
.pdp-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-input {
  width: 64px; height: 42px; text-align: center;
  border: 1px solid var(--g200); border-radius: var(--r);
  font-family: var(--font); font-size: 15px; font-weight: 600;
}
.qty-input:focus { outline: none; border-color: var(--red); }
.btn-add-cart-lg {
  flex: 1; padding: 12px 28px; background: var(--red); color: #fff;
  border: none; border-radius: var(--r); font-family: var(--font);
  font-weight: 700; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add-cart-lg:hover { background: var(--red-dark); }
.btn-add-cart-lg:disabled { opacity: 0.5; cursor: not-allowed; }

/* KEY FEATURES */
.pdp-features { margin-bottom: 24px; }
.pdp-features ul { list-style: disc; padding-left: 20px; }
.pdp-features li { font-size: 14px; margin-bottom: 6px; line-height: 1.45; }

/* ADD TO MY LIST */
.pdp-mylist-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--g200); border-radius: var(--r);
  padding: 8px 16px; font-family: var(--font); font-size: 13px;
  font-weight: 600; color: var(--g600); cursor: pointer; margin-bottom: 20px;
}
.pdp-mylist-btn:hover { border-color: var(--red); color: var(--red); }

/* REBATE */
.pdp-rebate {
  background: var(--red-light); border: 1px solid var(--red);
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px;
}
.pdp-rebate a {
  display: inline-block; margin-top: 6px; padding: 5px 14px;
  background: var(--red); color: #fff; border-radius: 20px;
  font-weight: 700; font-size: 12px; text-decoration: none;
}
.pdp-rebate a:hover { background: var(--red-dark); }

/* DELIVERY INFO PANEL */
.pdp-delivery { border: 1px solid var(--g200); border-radius: var(--rl); overflow: hidden; }
.delivery-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; }
.delivery-row + .delivery-row { border-top: 1px solid var(--g150); }
.delivery-row > i { color: var(--red); font-size: 16px; width: 20px; text-align: center; }
.delivery-label { font-weight: 600; color: var(--dark); }
.delivery-desc { color: var(--g500); font-size: 12px; }

/* TABS */
.pdp-tabs-section { border-top: 1px solid var(--g200); padding-top: 32px; margin-bottom: 48px; }
.pdp-tabs-nav { display: flex; border-bottom: 2px solid var(--g200); margin-bottom: 24px; }
.pdp-tab-btn {
  padding: 10px 20px; border: none; background: transparent;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  color: var(--g400); cursor: pointer; position: relative;
}
.pdp-tab-btn::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 3px; background: var(--red); transform: scaleX(0); transition: 0.2s;
}
.pdp-tab-btn:hover { color: var(--body); }
.pdp-tab-btn.active { color: var(--dark); }
.pdp-tab-btn.active::after { transform: scaleX(1); }
.pdp-tab-content { display: none; }
.pdp-tab-content.active { display: block; }
.tab-prose { max-width: 800px; font-size: 14px; line-height: 1.65; }
.tab-prose p { margin-bottom: 12px; }
.spec-table { width: 100%; max-width: 620px; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: var(--g50); }
.spec-table td { padding: 8px 14px; font-size: 13px; }
.spec-table td:first-child { font-weight: 700; color: var(--dark); width: 200px; }

/* RECOMMEND SECTIONS (FBT & Related Items) */
.recommend-section { margin-bottom: 48px; }
.recommend-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.recommend-subtitle { font-size: 12px; color: var(--g400); margin-bottom: 20px; }

/* FBT BUNDLE */
.fbt-bundle {
  background: var(--g50); border: 1px solid var(--g200);
  border-radius: var(--rl); padding: 20px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.fbt-item { flex: 1; text-align: center; }
.fbt-item a { text-decoration: none; color: inherit; }
.fbt-item-img {
  width: 100%; height: 120px; background: var(--white);
  border: 1px solid var(--g200); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.fbt-item-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.fbt-item-name { font-size: 11px; font-weight: 500; line-height: 1.3; margin-bottom: 3px; }
.fbt-item-price { font-size: 15px; font-weight: 800; color: var(--dark); }
.fbt-plus { font-size: 22px; font-weight: 800; color: var(--g300); flex-shrink: 0; }
.fbt-total { flex-shrink: 0; text-align: center; padding-left: 20px; border-left: 1px solid var(--g200); }
.fbt-total-label { font-size: 11px; color: var(--g400); text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.fbt-total-price { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.btn-fbt {
  padding: 9px 20px; background: var(--red); color: #fff;
  border: none; border-radius: var(--r); font-family: var(--font);
  font-weight: 700; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-fbt:hover { background: var(--red-dark); }
.btn-fbt:disabled { opacity: 0.5; cursor: not-allowed; }

/* RELATED ITEMS GRID */
.recommend-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rec-card {
  background: var(--white); border: 1px solid var(--g200);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: var(--body); transition: 0.2s;
}
.rec-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.rec-card-img {
  height: 140px; background: var(--white); padding: 12px;
  border-bottom: 1px solid var(--g150);
  display: flex; align-items: center; justify-content: center;
}
.rec-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rec-card-body { padding: 10px; }
.rec-card-name {
  font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rec-card-pricing { display: flex; align-items: baseline; gap: 6px; }
.rec-card-price { font-size: 15px; font-weight: 800; color: var(--dark); }
.rec-card-msrp { font-size: 11px; color: var(--g300); text-decoration: line-through; }

/* REPORT / WARRANTY / MISC */
.pdp-report-link {
  font-size: 13px; color: var(--g400); margin-bottom: 24px;
}
.pdp-report-link a { color: var(--red); text-decoration: underline; cursor: pointer; }
.pdp-warranty {
  background: var(--g50); border: 1px solid var(--g200);
  border-radius: var(--r); padding: 16px; margin-bottom: 24px;
  font-size: 13px; line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pdp-top { grid-template-columns: 1fr; }
  .pdp-main-image { min-height: 300px; }
  .recommend-grid { grid-template-columns: repeat(3, 1fr); }
  .fbt-bundle { flex-wrap: wrap; }
  .fbt-total { width: 100%; padding-left: 0; border-left: none; border-top: 1px solid var(--g200); padding-top: 16px; margin-top: 8px; }
}
@media (max-width: 768px) {
  .pdp-wrap { padding: 0 16px 40px; }
  .pdp-top { gap: 24px; }
  .pdp-thumbs-col { flex-direction: row; overflow-x: auto; }
  .pdp-title { font-size: 20px; }
  .pdp-price { font-size: 26px; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-tabs-nav { overflow-x: auto; }
  .pdp-tab-btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
}
