/* === Modern Product Info Layout (CSS-only) ===
   Template: NTO_bootstrap26
   Scope: product_info pages
*/

body { outline: 5px solid red; }


:root{
  --nto-card-radius: 14px;
  --nto-card-border: rgba(0,0,0,.10);
  --nto-soft-bg: rgba(0,0,0,.03);
  --nto-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Page breathing room */
body.product_info #contentMainWrapper,
body.product_info #mainWrapper,
body.product_info .centerColumn {
  padding-top: 12px;
}

/* Primary product wrapper (Zen Cart commonly uses #productGeneral) */
body.product_info #productGeneral,
body.product_info .productGeneral {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: start;
}

/* Collapse to single column on smaller screens */
@media (max-width: 992px){
  body.product_info #productGeneral,
  body.product_info .productGeneral {
    grid-template-columns: 1fr;
  }
}

/* Product title */
body.product_info h1,
body.product_info #productName {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 12px;
}

/* Image area as a “card” */
body.product_info #productMainImage,
body.product_info .productMainImage,
body.product_info #productMainImage img,
body.product_info .productMainImage img {
  border-radius: var(--nto-card-radius);
}

body.product_info #productMainImage,
body.product_info .productMainImage {
  border: 1px solid var(--nto-card-border);
  background: #fff;
  box-shadow: var(--nto-shadow);
  padding: 14px;
}

body.product_info #productMainImage img,
body.product_info .productMainImage img {
  width: 100%;
  height: auto;
  display: block;
}

/* “larger image” link - make it look intentional */
body.product_info a[rel*="colorbox"],
body.product_info a[onclick*="window.open"],
body.product_info a:has(img) {
  text-decoration: none;
}

/* Description block as a card */
body.product_info #productDescription,
body.product_info .productDescription {
  border: 1px solid var(--nto-card-border);
  background: #fff;
  border-radius: var(--nto-card-radius);
  padding: 16px;
  margin: 14px 0;
}

body.product_info #productDescription ul,
body.product_info .productDescription ul {
  margin: 10px 0 0 18px;
}

/* Price + cart panel */
body.product_info #productPrices,
body.product_info .productPrices,
body.product_info #cartAdd,
body.product_info .addToCart,
body.product_info #cartAdd table {
  border-radius: var(--nto-card-radius);
}

/* Many Zen Cart templates wrap price/add-to-cart in a “cartAdd” container.
   If your markup differs, this still improves common IDs/classes. */
body.product_info #cartAdd,
body.product_info .cartAdd,
body.product_info .add_to_cart,
body.product_info #addToCartForm {
  border: 1px solid var(--nto-card-border);
  background: #fff;
  box-shadow: var(--nto-shadow);
  padding: 16px;
  position: sticky;
  top: 12px;
}

/* “Starting at:” style */
body.product_info .productBasePrice,
body.product_info .productSpecialPrice,
body.product_info .productSalePrice,
body.product_info #productPrices {
  font-size: 1.15rem;
  font-weight: 800;
}

/* Add-to-cart button - let Bootstrap do most of the work if present */
body.product_info input[type="submit"],
body.product_info button[type="submit"],
body.product_info .btn {
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 14px;
}

/* Options/Attributes section */
body.product_info #attribsOptionsText,
body.product_info .attribsOptionsText,
body.product_info #attribsOptions,
body.product_info .attribsOptions,
body.product_info fieldset {
  border: 1px solid var(--nto-card-border);
  background: #fff;
  border-radius: var(--nto-card-radius);
  padding: 16px;
  margin: 14px 0;
}

/* Each option group: spacing + subtle divider */
body.product_info .attribsOptionsText > div,
body.product_info #attribsOptionsText > div,
body.product_info .attributes > div,
body.product_info .wrapperAttribsOptions {
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
body.product_info .attribsOptionsText > div:first-child,
body.product_info #attribsOptionsText > div:first-child,
body.product_info .attributes > div:first-child,
body.product_info .wrapperAttribsOptions:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Labels / headings inside options */
body.product_info legend,
body.product_info label,
body.product_info .attribsSelect,
body.product_info .attribsInput {
  font-weight: 700;
}

/* Inputs */
body.product_info select,
body.product_info input[type="text"],
body.product_info input[type="file"],
body.product_info textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 10px 12px;
  background: #fff;
}

body.product_info textarea {
  min-height: 110px;
}

/* Helper text (“maximum characters allowed”, etc.) */
body.product_info .alert,
body.product_info small,
body.product_info .note,
body.product_info .helpText {
  color: rgba(0,0,0,.65);
}

/* “Customers who bought…” area as a clean grid */
body.product_info #alsoPurchased,
body.product_info .alsoPurchased {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

body.product_info #alsoPurchased .centerBoxContents,
body.product_info .alsoPurchased .centerBoxContents {
  border: 1px solid var(--nto-card-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
