/* Product page, matched to the website's product pages (themes/gamry/css/pages/
   ProductListing.css on the website, which the store does not load — the values
   below are copied from it). Colours and fonts come from the website's
   redesign.css custom properties, which the store does load.
   Everything is scoped to body.store-pdp (set in catalog_product_view.xml). */

/* Page margins, breadcrumb and title type: store-common.css */

/* ---- Category label + title ---- */
.store-pdp .store-pd-eyebrow {
	display: inline-block; margin: 22px 0 13px;
	font-family: var(--gm-font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--gm-navy); text-decoration: none;
}
.store-pdp .store-pd-eyebrow:hover { text-decoration: underline; }
.store-pdp .page-title-wrapper.product { margin: 0 0 30px; }

/* ---- Photo left, details right ---- */
/* Products with their own "2 columns" layout setting: the sidebar is removed in
   catalog_product_view.xml, so the main column takes the full width like every other product. */
body.store-pdp.page-layout-2columns-right .columns .column.main,
body.store-pdp.page-layout-2columns-left .columns .column.main { width: 100%; float: none; padding-right: 0; padding-left: 0; }

.store-pdp .column.main {
	display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 52px; align-items: start;
	width: 100%; float: none; padding: 0;
}
.store-pdp .column.main > * { grid-column: 1 / -1; min-width: 0; }
.store-pdp .column.main > .product.media { grid-column: 1; grid-row: 1; width: auto; float: none; margin: 0; }
.store-pdp .column.main > .product-info-main { grid-column: 2; grid-row: 1; width: auto; float: none; margin: 0; }

/* Gallery: the main photo in a rounded frame, thumbnails as framed tiles */
.store-pdp .fotorama__stage {
	border: 1px solid var(--gm-border); border-radius: 18px; background: #fff; overflow: hidden;
}
.store-pdp .fotorama__nav-wrap { margin-top: 10px; }
.store-pdp .fotorama__nav__frame--thumb { padding: 0 10px 0 0 !important; }
.store-pdp .fotorama__thumb { border: 2px solid var(--gm-border); border-radius: 11px; background: #fff; box-sizing: border-box; }
.store-pdp .fotorama__thumb-border { border: 2px solid var(--gm-navy); border-radius: 11px; background: none; }
.store-pdp .gallery-placeholder__image { border: 1px solid var(--gm-border); border-radius: 18px; }

/* Description: the website's lede */
.store-pdp .product.attribute.overview { margin: 0 0 26px; }
.store-pdp .product.attribute.overview .value,
.store-pdp .product.attribute.overview .value p {
	font-family: var(--gm-font-body); font-size: 18px; line-height: 1.6; color: var(--gm-body);
	max-width: 34em; text-wrap: pretty;
}
.store-pdp .product.attribute.overview .value p { margin: 0 0 12px; }
.store-pdp .product.attribute.overview strong { color: var(--gm-ink); font-weight: 600; }
/* Descriptions are admin-typed and many were pasted from Word: headings as h2 (the website's
   30px) or h3 (20px), and spans with their own font-size (14-20px) or font-family (Aptos,
   Calibri). One heading style, and everything else in the page's own text. */
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute :is(.value h1, .value h2, .value h3, .value h4, .value h5) {
	margin: 18px 0 8px; font-family: var(--gm-font-display); font-size: 20px; font-weight: 600;
	line-height: 1.3; letter-spacing: -0.01em; color: var(--gm-ink);
}
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute .value > :is(h1, h2, h3, h4, h5):first-child { margin-top: 0; }
/* bold/italic inside a heading follows the heading (a website rule made it 30px) */
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute .value :is(h1, h2, h3, h4, h5) * { font-size: inherit; font-family: inherit; line-height: inherit; }
/* The full description (below the short one on some products; on "product-full-width" products
   it sits outside #maincontent, in .page-main-description) had no text style of its own,
   so its lists fell back to 14px: same text as the short description. */
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute.description .value,
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute.description .value :is(p, li, td, th) {
	font-family: var(--gm-font-body); font-size: 18px; line-height: 1.6; color: var(--gm-body);
}
@media (max-width: 900px) {
	body.store-pdp :is(#maincontent, .page-main-description) .product.attribute.description .value,
	body.store-pdp :is(#maincontent, .page-main-description) .product.attribute.description .value :is(p, li, td, th) { font-size: 17px; }
}
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute .value [style*="font-size"] { font-size: inherit !important; }
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute .value [style*="font-family"] { font-family: inherit !important; }
body.store-pdp :is(#maincontent, .page-main-description) .product.attribute .value [style*="line-height"] { line-height: inherit !important; }

/* ---- Buying panel ---- */
.store-buybox {
	display: flex; flex-direction: column;
	border: 1px solid var(--gm-border); border-radius: 14px; background: var(--gm-surface, #fff);
	padding: 22px 24px 24px;
}
/* Magento renders the form before the price block; show stock + price first. */
.store-buybox > .product-info-price { order: 0; }
.store-buybox > .product-add-form { order: 1; }
.store-buybox .product-info-price {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px;
	width: auto; margin: 0; padding: 0; border: 0;
}
.store-buybox .product-info-stock-sku {
	display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; order: 0;
	font-family: var(--gm-font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm-muted);
}
.store-buybox .product-info-stock-sku .stock,
.store-buybox .product-info-stock-sku .stock span,
.store-buybox .product-info-stock-sku .sku,
.store-buybox .product-info-stock-sku .sku * { font: inherit; color: inherit; margin: 0; }
.store-buybox .product-info-stock-sku .stock.available { color: #1f6b3a; }
.store-buybox .product-info-stock-sku .stock.unavailable { color: #8a3b12; }
.store-buybox .product-info-stock-sku .sku .type::after { content: ' '; }
.store-buybox .price-box { order: 1; margin: 0; padding: 0; }
.store-buybox .price-box .price {
	font-family: var(--gm-font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
	color: var(--gm-ink) !important; /* orders-gamry.css forces gold with !important */
}
.store-buybox .product-add-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gm-border-soft); }
.store-buybox .box-tocart { margin: 0; }
.store-buybox .box-tocart .fieldset { display: flex; align-items: flex-end; gap: 14px; margin: 0; }
.store-buybox .box-tocart .field.qty { margin: 0; padding: 0; }
.store-buybox .box-tocart .field.qty .label {
	display: block; margin: 0 0 6px;
	font-family: var(--gm-font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gm-muted);
}
.store-buybox .box-tocart .input-text.qty {
	width: 72px; height: 48px; border: 1px solid var(--gm-border-ctl); border-radius: 10px; text-align: center;
	font-family: var(--gm-font-body); font-size: 16px; color: var(--gm-ink);
}
.store-buybox .box-tocart .actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }

/* Store buttons in the website's button style (redesign.css .rd-btn) */
.store-pdp .box-tocart .action.primary,
.store-pdp .box-tocart .action.toquote,
.store-pdp .box-tocart .action.towishlist {
	display: inline-flex; align-items: center; height: 48px; margin: 0; padding: 0 28px;
	border-radius: 10px; font-family: var(--gm-font-body); font-size: 16px; font-weight: 600; line-height: 1;
	box-shadow: none; text-shadow: none; transition: background .15s ease, border-color .15s ease;
}
.store-pdp .box-tocart .action.primary { background: var(--gm-navy); border: 1px solid var(--gm-navy); }
.store-pdp .box-tocart .action.primary:hover { background: var(--gm-navy-hover); border-color: var(--gm-navy-hover); }
.store-pdp .box-tocart .action.toquote {
	background: #fff !important; color: var(--gm-navy) !important; border: 1px solid var(--gm-border-ctl);
}
.store-pdp .box-tocart .action.toquote:hover { border-color: var(--gm-navy); background: #f4f8fa !important; }
.store-pdp .box-tocart .action span { font: inherit; }

/* Guest / unverified notice, in place of the buttons */
.store-buy-notice-text { margin: 0 0 16px; font-family: var(--gm-font-body); font-size: 16px; line-height: 1.5; color: var(--gm-ink); }
.store-buy-notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.store-buy-notice-actions .rd-btn { text-decoration: none; }
.store-btn-outline { background: #fff; color: var(--gm-navy); border: 1px solid var(--gm-border-ctl); }
.store-btn-outline:hover { border-color: var(--gm-navy); background: #f4f8fa; color: var(--gm-navy); text-decoration: none; }
.store-buy-notice-fine { margin: 0; font-family: var(--gm-font-body); font-size: 13.5px; line-height: 1.5; color: var(--gm-muted); }
.store-pdp .product-social-links:empty,
.store-pdp .product-addto-links:empty { display: none; }

/* ---- "Related Products" / "Related Items & Individual Components" ---- */
.store-pdp .block.related,
.store-pdp .block.upsell {
	margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid var(--gm-border);
}
.store-pdp .block.related .block-title,
.store-pdp .block.upsell .block-title {
	margin: 0 0 22px; padding: 0; background: none; border: 0;
}
.store-pdp .block.related .block-title strong,
.store-pdp .block.upsell .block-title strong {
	font-family: var(--gm-font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
	line-height: 1.1; color: var(--gm-ink);
}
.store-pdp .block.related .block-actions { margin: 0 0 18px; font-family: var(--gm-font-body); font-size: 14px; color: var(--gm-body); }
.store-pdp .block.related .block-actions .action.select {
	margin-left: 4px; padding: 0; border: 0; background: none !important; color: var(--gm-navy) !important;
	font: inherit; font-weight: 600; text-decoration: underline;
}

/* Product cards: a grid of framed photos with the name under each */
.store-pdp .block .products-grid .product-items {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 24px;
	margin: 0; padding: 0;
}
.store-pdp .block .products-grid .product-item {
	width: auto !important; margin: 0 !important; padding: 0; float: none;
}
.store-pdp .block .products-grid .product-item-info { width: 100%; }
.store-pdp .block .product-item-photo { display: block; }
.store-pdp .block .product-image-container {
	width: 100% !important; border: 1px solid var(--gm-border); border-radius: 12px; background: #fff; overflow: hidden;
}
.store-pdp .block .product-image-wrapper { padding-bottom: 100% !important; }
.store-pdp .block .product-image-photo { padding: 12px; box-sizing: border-box; object-fit: contain; }
.store-pdp .block .product-item:hover .product-image-container { border-color: var(--gm-navy); }
.store-pdp .block .product-item-details { padding-top: 12px; }
.store-pdp .block .product-item-name { margin: 0; }
.store-pdp .block .product-item-name a,
.store-pdp .block .product-item-link {
	font-family: var(--gm-font-body); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--gm-navy);
}
.store-pdp .block .product-item .price-box { margin: 6px 0 0; }
.store-pdp .block .products-grid .product-item .product-item-info .product-item-details .price-box .price {
	font-family: var(--gm-font-body); font-size: 15px !important; font-weight: 600; color: var(--gm-ink) !important;
}
.store-pdp .block .product-item .field.choice.related { margin-top: 8px; font-size: 13px; color: var(--gm-body); }

/* ---- Narrow screens: one column ---- */
@media (max-width: 900px) {
	.store-pdp .column.main { grid-template-columns: 1fr; }
	.store-pdp .column.main > .product.media,
	.store-pdp .column.main > .product-info-main { grid-column: 1; grid-row: auto; }
	.store-pdp .column.main > .product.media { margin-bottom: 28px; }
	.store-pdp .block .products-grid .product-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
	.store-pdp .product.attribute.overview .value,
	.store-pdp .product.attribute.overview .value p { font-size: 17px; }
}

/* The store's link colour (orders-gamry.css) beats redesign.css's white on .rd-btn-primary. */
.store-buy-notice-actions .rd-btn-primary,
.store-buy-notice-actions .rd-btn-primary:hover { color: #fff !important; }
.store-buy-notice-actions .store-btn-outline { color: var(--gm-navy) !important; }

/* ---- Consistency pass ---- */
/* Signed-in customers get Add to Cart on the related / components cards: same as category cards */
.store-pdp .block .products-grid .action.tocart {
	height: 38px; padding: 0 16px; border-radius: 8px; white-space: nowrap;
	background: var(--gm-navy); border: 1px solid var(--gm-navy); box-shadow: none;
	font-family: var(--gm-font-body); font-size: 14px; font-weight: 600; line-height: 1;
}
.store-pdp .block .products-grid .action.tocart:hover { background: var(--gm-navy-hover); border-color: var(--gm-navy-hover); }
.store-pdp .box-tocart .action.toquote { font-size: 16px; } /* was 18px from Cart2Quote */
