/* Product detail (shortcode + fallback) — scoped under .tc-product-detail */

/* Match search chrome. .content margin-top sits above the breadcrumb. */
body.tc-storefront-product-route .header {
	margin-top: 1em;
}

body.tc-storefront-product-route .content {
	margin-top: 1em;
}

.tc-product-detail {
	--tc-pd-text: 1rem;
	--tc-pd-text-sm: 0.9rem;
	--tc-pd-h1: 1.5rem;
	--tc-pd-price: 1.05rem;
	--tc-pd-pack: 1.85rem;
	--tc-pd-line: 1.6;
	--tc-pd-weight-body: 400;
	--tc-pd-weight-heading: 700;
	--tc-pd-pack-color: #e60012;
	--tc-pd-muted: #4a5560;
	--tc-pd-border: #e6e8eb;
	--tc-pd-cta: #ff6a00;
	--tc-pd-cta-hover: #e55f00;

	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	font-size: var(--tc-pd-text);
	font-weight: var(--tc-pd-weight-body);
	line-height: var(--tc-pd-line);
}

.tc-storefront-breadcrumb {
	margin: 0 0 1.25em;
	font-size: var(--tc-pd-text-sm);
	line-height: 1.5;
	font-weight: var(--tc-pd-weight-body);
}

.tc-storefront-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-storefront-breadcrumb-sep {
	margin: 0 0.15em;
	opacity: 0.55;
}

.tc-storefront-breadcrumb-item.is-current {
	font-weight: var(--tc-pd-weight-body);
}

.tc-product-detail .tc-storefront-product-title,
.tc-product-detail h1.tc-storefront-product-title.entry-title {
	margin-top: 0;
	margin-bottom: 0.35rem;
	padding: 0;
	font-size: var(--tc-pd-h1);
	font-weight: var(--tc-pd-weight-heading);
	line-height: 1.35;
	background: none;
	background-image: none;
	color: inherit;
	text-shadow: none;
}

.tc-product-detail .tc-storefront-product-model {
	margin: 0 0 0.75rem;
	color: var(--tc-pd-muted);
	font-size: var(--tc-pd-text-sm);
	font-weight: var(--tc-pd-weight-body);
	line-height: 1.45;
	word-break: break-all;
}

.tc-storefront-product-page .entry-content > .tc-storefront-product:first-child {
	margin-top: 0;
}

.tc-product-detail__header {
	margin: 0;
	max-width: 100%;
	min-width: 0;
}

.tc-product-detail__header .tc-storefront-product-title {
	margin-bottom: 0.35rem;
}

/* Hero: ProductDetailUpper spans full width; image | prices sit below it. */
.tc-product-detail__hero {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 0 1rem;
}

.tc-product-detail__hero > .tc-storefront-product-catch-copy {
	grid-column: 1 / -1;
	width: 100%;
	max-width: none;
	min-width: 0;
	box-sizing: border-box;
}

.tc-product-detail__hero > .tc-storefront-product-catch-copy .ProductDetailUpper,
.tc-product-detail__hero > .tc-storefront-product-catch-copy .ProductDetailUpper h2 {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.tc-product-detail__hero > .tc-storefront-product-catch-copy .ProductDetailUpper h2 {
	font-weight: lighter;
	font-size: 17px !important;
}

.tc-product-detail__media,
.tc-product-detail__buy-actions {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.tc-product-detail__hero:not(.tc-storefront-product-hero--meta-only) {
		grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
		column-gap: 1.25rem;
		row-gap: 0.75rem;
	}
}

.tc-product-detail__buy-actions .tc-storefront-estimate-action {
	margin: 1.25em 0 0;
}

/* Price board */
.tc-product-detail .tc-storefront-price-board {
	margin: 0 0 1.25rem;
	border: 0;
	background: transparent;
}

.tc-product-detail .tc-storefront-price-board__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35em 1em;
	padding: 0.35em 0;
	border: 0;
	background: transparent;
}

.tc-product-detail .tc-storefront-price-board__label {
	font-size: var(--tc-pd-text-sm);
	font-weight: var(--tc-pd-weight-body);
	color: #333;
}

.tc-product-detail .tc-storefront-price-board__values {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.75em;
	margin-left: auto;
	text-align: right;
}

.tc-product-detail .tc-storefront-price-board__list {
	color: #8a9199;
	font-size: var(--tc-pd-text-sm);
	font-weight: var(--tc-pd-weight-body);
	text-decoration: line-through;
}

.tc-product-detail .tc-storefront-price-board__sale {
	color: #1f2a37;
	font-size: var(--tc-pd-price);
	font-weight: var(--tc-pd-weight-body);
}

.tc-product-detail .tc-storefront-price-board__amount {
	margin-left: auto;
	color: #1f2a37;
	font-size: var(--tc-pd-price);
	font-weight: var(--tc-pd-weight-body);
}

.tc-product-detail .tc-storefront-price-board__row--pack {
	align-items: center;
	margin-top: 0.35em;
	padding-top: 0.6em;
	background: transparent;
	border: 0;
}

.tc-product-detail .tc-storefront-price-board__pack {
	margin-left: auto;
	color: var(--tc-pd-pack-color);
	font-size: var(--tc-pd-pack);
	font-weight: var(--tc-pd-weight-heading);
	letter-spacing: -0.03em;
	line-height: 1.05;
}

section#tc-storefront-estimate {
	margin-top: 4em;
}

.tc-product-detail .tc-storefront-estimate,
.tc-product-detail .tc-storefront-estimate * {
	font-size: 16px !important;
}

.tc-product-detail .tc-storefront-estimate .tc-product-detail__buy-actions {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-self: stretch;
}

.tc-product-detail .tc-storefront-estimate .tc-storefront-product-identifiers {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0.75em;
	margin: 0 0 0.75rem;
	padding: 0 0 0.5rem;
	border-bottom: 2px solid #1f2a37;
}

.tc-product-detail .tc-storefront-estimate .tc-storefront-product-identifiers__maker {
	font-size: 24px !important;
	font-weight: 700;
	line-height: 1.3;
}

.tc-product-detail .tc-storefront-estimate .tc-storefront-product-identifiers__category {
	font-size: 22px !important;
	font-weight: 600;
	line-height: 1.3;
}

.tc-product-detail .tc-storefront-estimate .tc-storefront-product-identifiers__model {
	font-size: 22px !important;
	font-weight: 600;
	line-height: 1.3;
}

/* Gallery */
.tc-storefront-product-gallery {
	margin: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.tc-storefront-product-gallery__main,
.tc-storefront-product-gallery__thumbs,
.tc-storefront-product-gallery__thumb {
	max-width: 100%;
	box-sizing: border-box;
}

.tc-storefront-product-gallery__main {
	display: flex;
	justify-content: center;
	align-items: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 22rem;
	margin: 0 auto;
	background: #fafafa;
}

.tc-storefront-product-gallery__trigger {
	display: flex;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: zoom-in;
}

.tc-storefront-product-gallery__main > .tc-storefront-product-gallery__trigger {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
}

.tc-storefront-product-gallery__image {
	display: block;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
}

.tc-storefront-product-gallery__image--main {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0 auto;
}

.tc-storefront-product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
	margin: 0.75em 0 0;
	padding: 0;
	list-style: none;
}

.tc-storefront-product-gallery__thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
}

.tc-storefront-product-gallery__thumb .tc-storefront-product-gallery__trigger {
	width: 96px;
	height: 96px;
	min-height: 44px;
	box-sizing: border-box;
	overflow: hidden;
}

.tc-storefront-product-gallery__image--thumb {
	width: 96px;
	height: 96px;
	max-width: 96px;
	max-height: 96px;
	object-fit: contain;
	margin: 0 auto;
}

.tc-storefront-product-gallery-modal {
	z-index: 20000 !important;
}

.tc-storefront-product-gallery-modal.fade:not(.show) {
	opacity: 0;
}

.tc-storefront-product-gallery-modal.show {
	display: block !important;
	opacity: 1 !important;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tc-storefront-product-gallery-modal.fade .modal-dialog,
.tc-storefront-product-gallery-modal.show .modal-dialog {
	transform: none !important;
}

.tc-storefront-product-gallery-modal .modal-content {
	background: #fff;
	color: #111;
}

.tc-storefront-product-gallery-modal .modal-header {
	background: #fff;
	border-bottom: 1px solid #e6e8eb;
}

.tc-storefront-product-gallery-modal .modal-title {
	color: #111;
}

.tc-storefront-product-gallery-modal .modal-body {
	padding: 1rem;
	background: #fff;
}

.tc-storefront-product-gallery-modal .carousel-item {
	text-align: center;
	background: #fff;
}

.tc-storefront-product-gallery-modal img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

body.tc-storefront-product-page .modal-backdrop {
	z-index: 19990;
	background-color: #000;
	opacity: 0.55;
}

/* Catch copy + description */
.tc-product-detail .tc-storefront-product-description,
.tc-product-detail .tc-storefront-product-catch-copy,
.tc-product-detail__description {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
	font-weight: var(--tc-pd-weight-body);
}

.tc-product-detail__description {
	margin: 1rem 0 0;
}

.tc-product-detail .tc-storefront-product-description table,
.tc-product-detail .tc-storefront-product-description img,
.tc-product-detail .tc-storefront-product-description pre,
.tc-product-detail .tc-storefront-product-description iframe,
.tc-product-detail .tc-storefront-product-description .ProductDetail,
.tc-product-detail .tc-storefront-product-description .ProductDetail ul,
.tc-product-detail .tc-storefront-product-description .gazou_img {
	max-width: 100%;
	box-sizing: border-box;
}

.tc-product-detail .tc-storefront-product-description .ProductDetail ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	grid-template-columns: none;
	padding-left: 0;
	margin-left: 0;
}

.tc-product-detail .ProductDetailUpper {
	margin-bottom: 0.75rem;
}

.tc-product-detail .product_discription,
.tc-product-detail .Productdescription_detail {
	margin-top: 1.25rem;
}

.tc-product-detail .drowingInner {
	height: auto;
	max-height: 28rem;
	margin-bottom: 1.5rem;
}

.tc-product-detail .tc-storefront-product-catch-copy {
	margin: 0 0 0.75rem;
	font-size: var(--tc-pd-text-sm);
	font-weight: var(--tc-pd-weight-body);
	line-height: 1.55;
}

.tc-product-detail .tc-storefront-product-catch-copy p,
.tc-product-detail .tc-storefront-product-catch-copy li,
.tc-product-detail .tc-storefront-product-catch-copy td,
.tc-product-detail .tc-storefront-product-catch-copy th {
	font-size: var(--tc-pd-text-sm);
	font-weight: var(--tc-pd-weight-body);
	line-height: 1.55;
}

.tc-product-detail .tc-storefront-product-catch-copy h1,
.tc-product-detail .tc-storefront-product-catch-copy h2,
.tc-product-detail .tc-storefront-product-catch-copy h3,
.tc-product-detail .tc-storefront-product-catch-copy h4 {
	margin: 0.75em 0 0.4em;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.4;
}

.tc-product-detail .tc-storefront-product-description p,
.tc-product-detail .tc-storefront-product-description li,
.tc-product-detail .tc-storefront-product-description td,
.tc-product-detail .tc-storefront-product-description th {
	font-weight: var(--tc-pd-weight-body);
}

.tc-product-detail .tc-storefront-product-description img {
	max-width: 100%;
	width: auto;
	height: auto;
}

.tc-product-detail .tc-storefront-product-catch-copy img {
	max-width: 100%;
	max-height: 5em;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Imported ProductDetail HTML may repeat the old EC purchase widget. Keep our CTA. */
.tc-product-detail .tc-storefront-product-description .sexy_koujikomi_box,
.tc-product-detail .tc-storefront-product-catch-copy .sexy_koujikomi_box,
.tc-product-detail .tc-storefront-product-description .sexy_pricebox,
.tc-product-detail .tc-storefront-product-catch-copy .sexy_pricebox,
.tc-product-detail .tc-storefront-product-description .sexy_pricebox2,
.tc-product-detail .tc-storefront-product-catch-copy .sexy_pricebox2 {
	display: none;
}

/* Legacy selectors kept for category-archive / non-detail reuse of shared classes */
.tc-storefront-product {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.tc-product-detail .tc-storefront-product-only-inquiry {
	display: flex;
	justify-content: flex-end;
	margin: 1em 0 0;
}

.tc-product-detail .tc-storefront-product-only-inquiry__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	box-sizing: border-box;
	width: auto !important;
	max-width: 100%;
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 0.4em 1.1em;
	border: 0;
	border-radius: 50px;
	background-color: #2ea44f;
	background-image: none;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px !important;
	line-height: 27px;
	text-align: center !important;
	box-shadow: none;
	transition: filter 0.15s ease;
}

.tc-product-detail .tc-storefront-product-only-inquiry__button:hover,
.tc-product-detail .tc-storefront-product-only-inquiry__button:focus {
	background-color: #2ea44f;
	color: #fff !important;
	box-shadow: none;
	filter: brightness(0.88);
	transform: none;
}

.tc-product-detail .tc-storefront-product-only-inquiry__icon {
	flex: 0 0 auto;
	margin: 0;
	font-size: 1em !important;
}

