.catalog-product-card,
.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	border-radius: 28px;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: 0 18px 34px rgba(31, 31, 31, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-product-card:hover,
.product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(242, 101, 34, 0.18);
	box-shadow: 0 24px 44px rgba(31, 31, 31, 0.12);
}

.catalog-product-card__media,
.product-card__media {
	display: block;
	aspect-ratio: 1 / 0.88;
	background: linear-gradient(180deg, #fff 0%, #f1f1f1 100%);
}

.catalog-product-card__media img,
.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.catalog-product-card__body,
.product-card__body {
	display: grid;
	gap: 16px;
	padding: 20px 20px 20px;
}

.catalog-product-card__title,
.product-card__title {
	font-size: 1.04rem;
	line-height: 1.35;
	color: var(--color-heading);
}

.catalog-product-card__title a,
.product-card__title a {
	color: inherit;
	text-decoration: none;
}

.catalog-product-card__price,
.product-card__price,
.product-summary__price {
	color: var(--color-accent);
	font-size: 1.35rem;
	font-weight: 800;
}

.catalog-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.catalog-product-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	box-shadow: 0 10px 18px rgba(242, 101, 34, 0.28);
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-product-card__link:hover {
	background: var(--color-accent-dark);
	transform: translateX(2px);
	box-shadow: 0 12px 22px rgba(217, 84, 26, 0.32);
}

.catalog-product-card__link svg {
	width: 18px;
	height: 18px;
}

.catalog-product-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(31, 31, 31, 0.34);
}

.front-popular-products {
	background: var(--color-bg);
}

.front-popular-products__heading {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 18px 24px;
}

.front-popular-products__heading .section-description {
	max-width: 60ch;
	margin: 0;
	grid-column: 1 / 2;
}

.front-popular-products__all {
	grid-column: 2 / 3;
	grid-row: 1 / span 2;
	align-self: center;
}

.product-card__specs,
.product-summary__spec-list {
	display: grid;
	gap: 10px;
	list-style: none;
}

.product-card__specs li,
.product-summary__spec-item,
.packages-list__item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--color-border);
}

.product-card__actions {
	display: flex;
	gap: 12px;
}

.product-gallery {
	padding: 24px;
}

.product-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	border-radius: 24px;
	background:
		radial-gradient(circle at top, rgba(239, 125, 34, 0.12), transparent 34%),
		linear-gradient(180deg, #fff5ea 0%, #fff 100%);
}

.product-gallery__main-image,
.product-gallery__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.product-gallery__thumb {
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.product-gallery__thumb.is-active {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.product-summary {
	display: grid;
	gap: 20px;
	padding: 28px;
}

.product-summary__header,
.product-summary__block,
.product-choice,
.product-summary__cta,
.product-summary__actions {
	display: grid;
	gap: 14px;
}

.product-summary__header {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--color-border);
}

.product-summary__base-package {
	display: grid;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff4e8 0%, #fffdfb 100%);
	border: 1px solid rgba(239, 125, 34, 0.18);
}

.product-summary__caption,
.product-summary__block-title,
.product-choice__title,
.product-choice__text {
	color: var(--color-text-muted);
}

.product-summary__caption {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.product-choice__list {
	display: grid;
	gap: 10px;
}

.product-choice__option {
	position: relative;
	display: block;
	cursor: pointer;
}

.product-choice__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.product-choice__content {
	display: grid;
	gap: 8px;
	padding: 16px 18px;
	border-radius: 20px;
	border: 1px solid var(--color-border);
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-choice__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.product-choice__price {
	color: var(--color-accent);
	font-weight: 800;
	white-space: nowrap;
}

.product-choice__text {
	font-size: 0.95rem;
	line-height: 1.45;
}

.product-choice__input:checked + .product-choice__content {
	border-color: var(--color-accent);
	background: linear-gradient(180deg, #fff6ee 0%, #fff 100%);
	box-shadow: 0 10px 24px rgba(239, 125, 34, 0.12);
	transform: translateY(-1px);
}

.product-summary__actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 820px) {
	.front-popular-products__heading {
		grid-template-columns: 1fr;
	}

	.front-popular-products__all {
		grid-column: auto;
		grid-row: auto;
		justify-self: start;
	}

	.product-card__actions,
	.product-choice__row,
	.product-summary__spec-item,
	.product-summary__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.product-gallery {
		padding: 18px;
	}

	.product-gallery__thumbs {
		grid-template-columns: 1fr;
	}

	.product-summary {
		padding: 22px;
	}

	.product-summary__actions {
		display: grid;
		grid-template-columns: 1fr;
	}
}

.product-page--door {
	background: #f8f5f1;
}

.product-page--door .container {
	display: grid;
	gap: 28px;
}

.product-page__breadcrumbs {
	margin-bottom: 0;
	color: #4a4a4a;
}

.product-page__header {
	display: grid;
	gap: 10px;
}

.product-page__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(2rem, 3vw, 2.9rem);
	line-height: 1.04;
	color: #1f1f1f;
}

.product-layout--hero {
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
	gap: 24px;
	align-items: start;
}

.product-layout__sidebar {
	min-width: 0;
}

.product-gallery {
	padding: 24px;
	border-radius: 28px;
	border: 1px solid #e7e0d8;
	background: #fff;
	box-shadow: 0 20px 44px rgba(31, 31, 31, 0.06);
}

.product-gallery__main {
	aspect-ratio: 1 / 0.96;
	border-radius: 24px;
	background: linear-gradient(180deg, #fcfaf7 0%, #f4efe8 100%);
}

.product-gallery__main-image,
.product-gallery__placeholder {
	border-radius: 24px;
}

.product-gallery__placeholder {
	display: grid;
	place-items: center;
	padding: 24px;
	color: #4a4a4a;
	font-size: 0.95rem;
	background:
		radial-gradient(circle at top, rgba(239, 125, 34, 0.08), transparent 36%),
		linear-gradient(180deg, #faf7f2 0%, #f1ebe3 100%);
}

.product-gallery__thumbs {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.product-gallery__thumb {
	border-radius: 18px;
	border-color: #e7e0d8;
	background: #fff;
}

.product-gallery__thumb.is-active {
	border-color: #ef7d22;
	box-shadow: 0 0 0 2px rgba(239, 125, 34, 0.14);
}

.product-sidebar {
	display: grid;
	gap: 14px;
}

.product-sidebar__card,
.product-choice,
.product-related,
.product-specs__card {
	padding: 24px;
	border-radius: 24px;
	border: 1px solid #e7e0d8;
	background: #fff;
	box-shadow: 0 18px 38px rgba(31, 31, 31, 0.05);
}

.product-sidebar__card--main {
	display: grid;
	gap: 18px;
}

.product-sidebar__price {
	color: #ef7d22;
	font-size: clamp(1.9rem, 3vw, 2.35rem);
	font-weight: 800;
	line-height: 1;
}

.product-sidebar__price .woocommerce-Price-amount {
	font-size: 1em;
}

.product-sidebar__subtitle {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1f1f1f;
}

.product-sidebar__package-note {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 18px;
	background: #faf6f1;
	border: 1px solid #eee4d8;
}

.product-sidebar__package-note span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a746d;
}

.product-sidebar__package-note strong {
	font-size: 1rem;
	color: #1f1f1f;
}

.product-sidebar__features {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-sidebar__feature {
	position: relative;
	display: grid;
	gap: 4px;
	padding-left: 18px;
	color: #4a4a4a;
}

.product-sidebar__feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #ef7d22;
}

.product-sidebar__feature-label {
	font-size: 0.92rem;
	line-height: 1.4;
}

.product-sidebar__feature-value {
	font-size: 0.96rem;
	line-height: 1.45;
	color: #1f1f1f;
}

.product-choice {
	display: grid;
	gap: 14px;
}

.product-choice__title {
	margin: 0;
	font-size: 1rem;
	font-family: var(--font-heading);
	color: #1f1f1f;
}

.product-choice__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.product-choice__heading {
	display: grid;
	gap: 6px;
}

.product-choice__caption {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #4a4a4a;
}

.product-choice__all-link {
	flex: 0 0 auto;
	font-size: 0.9rem;
	font-weight: 700;
	color: #f26522;
}

.product-choice--finish .product-choice__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.product-choice__content {
	position: relative;
	padding: 16px 18px;
	border-radius: 18px;
	border: 1px solid #e7e0d8;
	background: #fff;
}

.product-choice--finish .product-choice__content {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 76px;
	padding: 12px;
}

.product-choice__content.is-active {
	border-color: #ef7d22;
	background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
	box-shadow: 0 12px 24px rgba(239, 125, 34, 0.12);
}

.product-choice__name {
	color: #1f1f1f;
}

.product-choice__body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.product-choice__text {
	color: #4a4a4a;
}

.product-choice__price {
	color: #ef7d22;
	font-size: 0.95rem;
	font-weight: 800;
}

.product-choice__input:checked + .product-choice__content {
	border-color: #ef7d22;
	background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
	box-shadow: 0 12px 24px rgba(239, 125, 34, 0.12);
}

.product-choice__state {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px #d7cec3;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-choice__content.is-active .product-choice__state,
.product-choice__input:checked + .product-choice__content .product-choice__state {
	background: #ef7d22;
	box-shadow: 0 0 0 4px rgba(239, 125, 34, 0.12);
}

.product-choice__swatch-wrap {
	display: inline-flex;
}

.product-choice__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	border: 1px solid #e7e0d8;
	background: var(--swatch-color, linear-gradient(180deg, #f7f3ee 0%, #ece4da 100%));
	color: #6d645a;
	font-size: 0.9rem;
	font-weight: 800;
	overflow: hidden;
}

.product-choice__swatch--image {
	background: #f4efe9;
	background-image: var(--swatch-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.product-choice__swatch--fallback {
	background: linear-gradient(180deg, #f7f3ee 0%, #ece4da 100%);
}

.product-sidebar__button {
	min-height: 62px;
	font-size: 1rem;
	font-weight: 800;
	background: #ef7d22;
	box-shadow: 0 16px 28px rgba(239, 125, 34, 0.22);
}

.product-sidebar__button:hover {
	background: #d96b15;
}

.product-sections--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.product-section--specs,
.product-section--related {
	min-width: 0;
}

.product-specs {
	display: grid;
	gap: 18px;
}

.product-specs__shell {
	padding: 28px;
	border-radius: 28px;
	border: 1px solid #e7e0d8;
	background: #fff;
	box-shadow: 0 18px 38px rgba(31, 31, 31, 0.05);
}

.product-specs__heading,
.product-related__heading {
	margin-bottom: 0;
}

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

.product-specs__card {
	display: grid;
	gap: 16px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.product-specs__card-title {
	margin: 0;
	font-size: 1.05rem;
	font-family: var(--font-heading);
	color: #1f1f1f;
}

.product-specs__table {
	display: grid;
	border-top: 1px solid #eee7de;
}

.product-specs__row {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 14px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid #eee7de;
}

.product-specs__row:first-child {
	padding-top: 0;
}

.product-specs__label {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #4a4a4a;
}

.product-specs__value {
	font-size: 0.96rem;
	line-height: 1.5;
	font-weight: 700;
	color: #1f1f1f;
}

.product-related {
	display: grid;
	gap: 16px;
}

.product-related__list {
	display: grid;
	gap: 16px;
}

.product-related .catalog-product-card,
.product-related .product-card {
	border-radius: 22px;
	border-color: #e7e0d8;
	box-shadow: none;
}

.product-related .catalog-product-card__body,
.product-related .product-card__body {
	padding: 18px;
}

.product-related .catalog-product-card__title,
.product-related .product-card__title {
	font-size: 1rem;
}

@media (max-width: 1100px) {
	.product-layout--hero,
	.product-sections--split,
	.product-specs__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	.product-page--door .container {
		gap: 20px;
	}

	.product-gallery,
	.product-sidebar__card,
	.product-choice,
	.product-related {
		padding: 18px;
		border-radius: 20px;
	}

	.product-specs__shell {
		padding: 20px 18px;
		border-radius: 20px;
	}

	.product-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.product-choice__row {
		align-items: flex-start;
	}

	.product-choice__head {
		flex-direction: column;
	}

	.product-specs__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 620px) {
	.product-gallery__thumbs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-choice--finish .product-choice__list {
		grid-template-columns: 1fr;
	}
}

/* UI Kit Commerce */
.product-card,
.catalog-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.catalog-product-card:hover {
	transform: translateY(-3px);
	border-color: rgba(242, 101, 34, 0.16);
	box-shadow: var(--shadow-md);
}

.product-card__media,
.catalog-product-card__media {
	display: block;
	aspect-ratio: 1 / 0.88;
	background: var(--color-surface-alt);
}

.product-card__media img,
.catalog-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__body,
.catalog-product-card__body {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-5);
}

.product-card__title,
.catalog-product-card__title {
	font-size: 1.02rem;
	line-height: 1.35;
	color: var(--color-heading);
}

.product-card__price,
.catalog-product-card__price {
	color: var(--color-accent);
	font-size: 1.28rem;
	font-weight: 800;
}

.filter-card {
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.product-choice__swatch,
.swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: var(--color-surface-alt);
	overflow: hidden;
}

.swatch.is-active,
.product-choice__content.is-active .product-choice__swatch {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.spec-table__row,
.product-specs__row {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: var(--space-4);
	padding: 12px 0;
	border-bottom: 1px solid var(--color-border);
}

.spec-table__row span:first-child,
.product-specs__label {
	color: var(--color-text);
}

.spec-table__row span:last-child,
.product-specs__value {
	color: var(--color-heading);
	font-weight: 700;
}

@media (max-width: 820px) {
	.spec-table__row,
	.product-specs__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
