main.product-page {
  background: #fff !important;
  padding: 30px 20px 48px !important;
}

main.product-page .container {
  max-width: 1280px !important;
}

main.product-page #product-details.product-details {
  display: grid !important;
  grid-template-columns: minmax(360px, .85fr) minmax(500px, 1.15fr) !important;
  gap: clamp(42px, 7vw, 92px) !important;
  align-items: start !important;
  padding: 0 !important;
}

.product-hero {
  margin-bottom: 24px;
}

.product-left-rail {
  display: grid;
  min-width: 0;
  gap: 16px;
}

main.product-page .product-image-column {
  width: 100%;
  max-width: none;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
}

main.product-page .main-image {
  min-height: 420px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
}

main.product-page #product-main-image {
  width: auto;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
}

main.product-page .product-info {
  min-width: 0;
  gap: 16px !important;
}

.product-alerts {
  display: grid;
  gap: 8px;
}

.product-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.product-alert > i {
  margin-top: 3px;
  color: #2563eb;
}

.product-alert--warning {
  border-color: #fde68a;
  border-left-color: #d97706;
  background: #fffbeb;
  color: #78350f;
}

.product-alert--warning > i {
  color: #d97706;
}

.product-alert--danger {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

.product-alert--danger > i {
  color: #dc2626;
}

main.product-page .product-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e8ef;
}

main.product-page .product-header h1 {
  margin-bottom: 12px !important;
  color: #172033 !important;
  font-size: clamp(27px, 3vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
}

main.product-page .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 !important;
  color: #5f6f82 !important;
}

main.product-page .product-meta > div { margin: 0 !important; }

.product-assurance-badges {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.product-assurance-badges span,
.product-assurance-badges a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #dde8f2;
  border-radius: 8px;
  color: #26384f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-assurance-badges i,
.product-assurance-badges .free-shipping,
.product-assurance-badges .quick-ship,
.product-assurance-badges a:hover {
  color: #0b4c8c;
}

.product-assurance-badges .quick-ship {
  background: #eef6ff;
  border-color: #b7d4ef;
}

.product-purchase-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #d8e3ee;
  border-left: 4px solid #0b4c8c;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 35, 55, .08);
}

main.product-page .price-container {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

main.product-page .price-display {
  margin: 0 !important;
  text-align: left;
}

main.product-page .product-price {
  color: #c62828 !important;
  font-size: 38px !important;
  font-weight: 900 !important;
  line-height: 1.05;
}

.price-kicker {
  margin-bottom: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sale-price-kicker {
  margin-top: 8px;
}

main.product-page .product-stock {
  margin: 0 !important;
  text-align: stretch !important;
}

main.product-page .stock-indicator {
  display: flex !important;
  width: 100%;
  min-height: 34px;
  align-items: center;
  box-sizing: border-box;
  border-radius: 999px !important;
  font-weight: 700;
}

.product-service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-service-links a,
.product-service-links span {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #d8e3ee;
  border-radius: 7px;
  color: #26384f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-service-links i { color: #0b4c8c; }

.product-resources {
  padding: 16px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #f8fafc;
}

.product-resources h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.product-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-resource-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d8e3ee;
  border-radius: 7px;
  background: #fff;
  color: #26384f;
  text-decoration: none;
}

.product-resource-link:hover {
  border-color: #0b4c8c;
  color: #0b4c8c;
}

.product-resource-link > i:first-child {
  color: #0b4c8c;
  font-size: 17px;
}

.product-resource-link span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-resource-link strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-resource-link small {
  color: #64748b;
  font-size: 11px;
}

.product-resource-open-icon {
  color: #64748b;
  font-size: 11px;
}

main.product-page .purchase-options {
  margin: 0 !important;
}

main.product-page .quantity-selector {
  gap: 0 !important;
  margin: 0 !important;
}

main.product-page .quantity-selector label { margin-right: 10px; }
main.product-page .quantity-selector .quantity-btn,
main.product-page .quantity-selector input { border-radius: 0 !important; }
main.product-page .quantity-selector .minus { border-radius: 5px 0 0 5px !important; }
main.product-page .quantity-selector .plus { border-radius: 0 5px 5px 0 !important; }

main.product-page .action-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}

main.product-page .action-buttons > button {
  width: 100%;
  min-width: 0 !important;
  min-height: 44px;
  margin: 0 !important;
}

main.product-page .action-buttons .add-to-cart-btn,
main.product-page .action-buttons .subscribe-btn {
  grid-column: 1 / -1;
}

.product-support-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #d8e3ee;
  border-radius: 7px;
  color: #334155;
  font-size: 13px;
  text-decoration: none;
}

.product-support-strip i,
.product-support-strip strong { color: #0b4c8c; }
.product-support-strip strong { font-weight: 800; }

.product-assurance-badges a,
.product-support-strip {
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.product-assurance-badges a:hover,
.product-assurance-badges a:focus,
.product-support-strip:hover,
.product-support-strip:focus {
  background: #eef6fd;
  border-color: #9fc3e4;
  box-shadow: 0 0 0 2px rgba(11, 76, 140, .08);
  outline: none;
}

main.product-page .product-description,
main.product-page .product-options-container:empty {
  display: none;
}

.product-overview-card,
.product-commerce-panel {
  margin: 0 0 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 35, 55, .06);
}

.product-info .product-overview-card {
  margin: 40px 0 0;
  box-shadow: none;
  text-align: left;
}

.product-info .product-overview-card h2 { text-align: center; }

.product-left-rail .product-reviews {
  margin: 0;
  box-shadow: none;
}

.product-left-rail .product-reviews .product-section-heading {
  position: relative;
  justify-content: center;
  margin-bottom: 12px;
  text-align: center;
}

.product-left-rail .product-reviews #write-review-button {
  position: absolute;
  right: 0;
}

.product-overview-card h2,
.product-section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 21px;
}

.product-overview-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-overview-card li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  line-height: 1.45;
}

.product-overview-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0b4c8c;
  font-weight: 900;
}

.product-key-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.product-key-specs div {
  padding: 14px;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
}

.product-key-specs span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-key-specs strong { color: #172033; }

main.product-page .product-tabs {
  border: 1px solid #d8e3ee;
  box-shadow: none;
}

main.product-page .product-tabs .tab-content { padding: 30px !important; }
main.product-page #full-description { white-space: pre-line; line-height: 1.75 !important; }

.product-commerce-panel { margin-top: 20px; margin-bottom: 0; }

.product-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-product-card {
  overflow: hidden;
  border: 1px solid #dce6ef;
  border-radius: 8px;
}

.related-product-image {
  display: flex;
  height: 170px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f8fafc;
}

.related-product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.related-product-copy { display: grid; gap: 8px; padding: 14px; }
.related-product-title { min-height: 44px; color: #172033; font-weight: 700; text-decoration: none; }
.related-shipping-badge { width: max-content; padding: 3px 7px; border-radius: 999px; background: #e8f2fb; color: #0b4c8c; font-size: 11px; font-weight: 800; }
.related-product-copy > span:not(.related-shipping-badge) { color: #64748b; font-size: 13px; }
.related-product-button { padding: 9px 12px; border-radius: 6px; background: #0b4c8c; color: #fff; text-align: center; text-decoration: none; font-weight: 700; }

.product-comparison-wrap { overflow-x: auto; }
.product-comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.product-comparison-table th, .product-comparison-table td { padding: 12px; border: 1px solid #dce6ef; text-align: center; vertical-align: middle; }
.product-comparison-table th:first-child { width: 140px; background: #f8fafc; text-align: left; }
.product-comparison-table thead th { background: #fbfdff; }
.product-comparison-table thead a { display: grid; justify-items: center; gap: 7px; color: #172033; text-decoration: none; }
.product-comparison-table thead img { width: 72px; height: 64px; object-fit: contain; }
.product-comparison-table em { padding: 3px 7px; border-radius: 999px; background: #0b4c8c; color: #fff; font-size: 11px; font-style: normal; }

.review-summary { padding: 14px; background: #f8fafc; border-radius: 8px; color: #334155; }
.review-summary strong { color: #0b4c8c; font-size: 24px; }
.review-list { display: grid; gap: 12px; margin-top: 14px; }
.review-card { padding: 16px; border: 1px solid #dce6ef; border-radius: 8px; }
.review-card h3 { margin: 0 0 6px; font-size: 17px; }
.review-card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #64748b; font-size: 13px; }
.verified-review { color: #11683a; font-weight: 700; }
.review-form { display: grid; gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid #cfe0f1; border-radius: 8px; background: #fbfdff; }
.review-form label { display: grid; gap: 6px; color: #172033; font-weight: 700; }
.review-form input, .review-form select, .review-form textarea { padding: 10px; border: 1px solid #cbd6e2; border-radius: 6px; font: inherit; }
.review-form textarea { min-height: 130px; resize: vertical; }
.review-form button, #write-review-button { padding: 9px 14px; border: 0; border-radius: 6px; background: #0b4c8c; color: #fff; cursor: pointer; font-weight: 700; }
.review-form button + button { margin-left: 8px; background: #64748b; }
#delete-review-button { background: #b42318; }

@media (max-width: 980px) {
  main.product-page { padding-top: 28px !important; }
  main.product-page #product-details.product-details { grid-template-columns: 1fr !important; }
  .related-products-grid, .product-key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  main.product-page { padding: 16px 10px 32px !important; }
  main.product-page #product-details.product-details { padding: 16px !important; }
  main.product-page .main-image { min-height: 300px; }
  .product-service-links, .product-resource-list, .related-products-grid, .product-key-specs { grid-template-columns: 1fr; }
  main.product-page .action-buttons { grid-template-columns: 1fr; }
  main.product-page .action-buttons .add-to-cart-btn,
  main.product-page .action-buttons .subscribe-btn { grid-column: auto; }
  .product-overview-card, .product-commerce-panel { padding: 18px 16px; }
}

.pallet-purchase-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.add-to-pallet-btn {
  width: 100%;
  padding: 12px 24px;
  background-color: #b08d57;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.add-to-pallet-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pallet-incentive {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
}

/* styles.css hides .notification with display:none; JS toasts on this page must stay visible */
.notification.success,
.notification.error,
.notification.info,
.notification.warning {
  display: block;
}
