.single-product {
	--brand-primary: #4a1137;
	--brand-secondary: #fbf8f3;
	--brand-accent: #c2a56b;
	--brand-medium: #7a2e4e;
	--brand-light: #d3bc9d;
	--text-main: #4a1137;
	--text-muted: #7a2e4e;
	--border-color: #d3bc9d;
	--font-body: 'Open Sans', sans-serif;
	--font-heading: 'Montserrat', sans-serif;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
}

.single-product body,
.single-product .site-main {
	font-family: var(--font-body);
	color: var(--text-main);
	background-color: var(--brand-secondary);
}

.single-product h1,
.single-product h2,
.single-product h3,
.single-product h4,
.single-product h5,
.single-product h6,
.single-product .btn-buy,
.single-product .price-current,
.single-product .size-label,
.single-product .size-matrix-header,
.single-product .total-price {
	font-family: var(--font-heading);
}

.single-product .woocommerce-breadcrumb {
	font-size: 0.92rem;
	color: var(--text-muted);
}

.single-product .woocommerce-breadcrumb a {
	color: var(--text-muted);
	text-decoration: none;
}

.single-product .badge-lote {
	background-color: var(--brand-accent);
	color: #ffffff;
	font-family: var(--font-heading);
	font-weight: 700;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

.single-product .product-gallery {
	display: flex;
	gap: 1rem;
}

.single-product .thumbnails-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 80px;
}

.single-product .thumbnail {
	width: 80px;
	height: 100px;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
}

.single-product .thumbnail:hover,
.single-product .thumbnail.active {
	border-color: var(--brand-primary);
	opacity: 0.8;
}

.single-product .main-image-container {
	flex-grow: 1;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	background-color: #ffffff;
	border: 1px solid var(--border-color);
	cursor: crosshair;
}

.single-product .main-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform 0.1s ease-out;
}

.single-product .product-title {
	font-weight: 800;
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: var(--brand-primary);
}

.single-product .product-price-container {
	margin-bottom: 1.5rem;
}

.single-product .price-current {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--brand-primary);
}

.single-product .price-old {
	font-size: 1.1rem;
	color: var(--text-muted);
	text-decoration: line-through;
	margin-left: 0.5rem;
}

.single-product .product-short-desc {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.single-product .size-matrix {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.single-product .cdg-buy-form-wrap .variations {
	width: 100%;
	margin-bottom: 1rem;
}

.single-product .cdg-buy-form-wrap form.cart {
	display: grid;
	gap: 0.75rem;
}

.single-product .cdg-buy-form-wrap form.cart table.variations tbody {
	display: block;
}

.single-product .cdg-buy-form-wrap .variations td,
.single-product .cdg-buy-form-wrap .variations th {
	padding: 0.35rem 0.2rem;
	vertical-align: bottom;
}

.single-product .cdg-buy-form-wrap .variations label {
	font-weight: 700;
	color: var(--brand-primary);
}

.single-product .cdg-buy-form-wrap .variations select,
.single-product .cdg-buy-form-wrap .qty {
	width: 100%;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	min-height: 2.5rem;
	padding: 0.45rem 0.6rem;
	background: #fff;
}

.single-product .cdg-buy-form-wrap .single_variation_wrap {
	margin-top: 0.6rem;
}

.single-product .cdg-buy-form-wrap .single_variation_wrap .woocommerce-variation {
	margin-bottom: 0.6rem;
	font-weight: 700;
	color: var(--brand-primary);
}

.single-product .cdg-buy-form-wrap .reset_variations,
.single-product .cdg-buy-form-wrap .woocommerce-variation-availability .stock {
	display: none !important;
}

.single-product .cdg-buy-form-wrap .single_variation_wrap .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
	align-items: end;
	gap: 0.75rem;
}

.single-product .cdg-buy-form-wrap .quantity {
	margin: 0;
}

.single-product .cdg-buy-form-wrap .single_add_to_cart_button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	background-color: var(--brand-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--radius-md);
	transition: all 0.3s ease;
}

.single-product .cdg-buy-form-wrap .single_add_to_cart_button:hover:not(:disabled) {
	background-color: var(--brand-medium) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(74, 17, 55, 0.15);
}

.single-product .cdg-buy-form-wrap .single_add_to_cart_button:disabled {
	background-color: #cccccc !important;
	cursor: not-allowed;
	opacity: 0.7;
}

.single-product .cdg-buy-help-text {
	margin-top: 0.8rem;
	font-size: 0.86rem;
	color: var(--text-muted);
}

.single-product .cdg-add-to-cart-feedback {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--brand-light);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--brand-primary);
	font-size: 0.92rem;
}

.single-product .cdg-add-to-cart-feedback a {
	color: var(--brand-medium);
	font-weight: 700;
}

.single-product .cdg-inline-feedback {
	margin-top: 0.75rem;
	padding: 0.75rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: 0.92rem;
	display: none;
}

.single-product .cdg-inline-feedback.is-info,
.single-product .cdg-inline-feedback.is-success,
.single-product .cdg-inline-feedback.is-error {
	display: block;
}

.single-product .cdg-inline-feedback.is-info {
	background: #fff7e8;
	border: 1px solid #f0d7a6;
	color: #7a2e4e;
}

.single-product .cdg-inline-feedback.is-success {
	background: #eef9f0;
	border: 1px solid #9ad8a8;
	color: #196f3d;
}

.single-product .cdg-inline-feedback.is-error {
	background: #fff1f2;
	border: 1px solid #f2a7b0;
	color: #b42318;
}

.single-product .cdg-inline-feedback a {
	color: var(--brand-medium);
	font-weight: 700;
}

.single-product .size-matrix-header {
	font-weight: 600;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.single-product .size-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
}

.single-product .size-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.single-product .size-label {
	font-weight: 600;
	width: 50px;
}

.single-product .size-info {
	flex-grow: 1;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.single-product .qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	background: #fff;
	overflow: hidden;
}

.single-product .qty-btn {
	background: #fff;
	border: none;
	width: 35px;
	height: 35px;
	font-size: 1.2rem;
	color: var(--brand-primary);
	cursor: pointer;
	transition: background 0.2s;
}

.single-product .qty-btn:hover {
	background: var(--brand-secondary);
}

.single-product .qty-input {
	width: 40px;
	height: 35px;
	border: none;
	border-left: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
}

.single-product .qty-input::-webkit-outer-spin-button,
.single-product .qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .purchase-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-top: 1rem;
	border-top: 2px dashed var(--border-color);
}

.single-product .total-items {
	font-weight: 500;
	color: var(--text-muted);
}

.single-product .total-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--brand-primary);
}

.single-product .btn-buy {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	background-color: var(--brand-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	transition: all 0.3s ease;
}

.single-product .btn-buy:hover:not(:disabled) {
	background-color: var(--brand-medium);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(74, 17, 55, 0.15);
}

.single-product .btn-buy:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
	opacity: 0.7;
}

.single-product .logistics-box {
	background-color: var(--brand-secondary);
	border: 1px dashed var(--brand-accent);
	border-radius: var(--radius-md);
	padding: 1.2rem;
	margin-top: 1.5rem;
	font-size: 0.95rem;
	color: var(--brand-primary);
}

.single-product .logistics-box a {
	color: var(--brand-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .logistics-box a:hover,
.single-product .logistics-box a:focus {
	color: var(--brand-accent);
}

.single-product .cdg-inline-cart {
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1rem;
}

.single-product .cdg-inline-cart__header {
	margin-bottom: 0.9rem;
}

.single-product .cdg-inline-cart__title {
	margin: 0 0 0.2rem;
	font-size: 1.2rem;
	color: var(--brand-primary);
}

.single-product .cdg-inline-cart__subtitle {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.single-product .cdg-inline-cart__empty {
	padding: 0.85rem;
	border: 1px dashed var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-muted);
}

.single-product .cdg-inline-cart__list {
	display: grid;
	gap: 0.75rem;
}

.single-product .cdg-inline-cart__item {
	display: grid;
	gap: 0.6rem;
	padding: 0.75rem;
	border: 1px solid #eee3d3;
	border-radius: var(--radius-sm);
}

.single-product .cdg-inline-cart__item-main {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.single-product .cdg-inline-cart__item-name {
	font-size: 0.95rem;
	color: var(--brand-primary);
}

.single-product .cdg-inline-cart__item-price {
	font-weight: 700;
	color: var(--brand-medium);
}

.single-product .cdg-inline-cart__controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.single-product .cdg-inline-cart__qty-input {
	max-width: 88px;
	min-height: 2.3rem;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
}

.single-product .cdg-inline-cart__footer {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border-color);
}

.single-product .cdg-inline-cart__totals {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.8rem;
	color: var(--brand-primary);
}

.single-product .cdg-inline-cart__actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.single-product .urgency-badge {
	color: #d90429;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.single-product .size-guide-link {
	color: var(--brand-accent);
	text-decoration: underline;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: color 0.2s;
}

.single-product .size-guide-link:hover {
	color: var(--brand-primary);
}

.single-product .sticky-bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
	padding: 1rem;
	z-index: 1050;
	transform: translateY(100%);
	transition: transform 0.3s ease-in-out;
	border-top: 2px solid var(--brand-accent);
}

.single-product .sticky-bottom-bar.visible {
	transform: translateY(0);
}

.single-product #sticky-btn {
	background-color: var(--brand-primary);
	color: #fff;
	font-weight: 700;
	padding: 0.6rem 1.5rem;
}

.single-product .cdg-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 2000;
}

.single-product .cdg-modal.is-open {
	display: flex;
}

.single-product .cdg-modal__dialog {
	background: #fff;
	width: min(100%, 720px);
	border-radius: var(--radius-md);
	padding: 1rem;
	position: relative;
	max-height: 85vh;
	overflow-y: auto;
}

.single-product .cdg-modal__close {
	position: absolute;
	right: 0.8rem;
	top: 0.5rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
}

.single-product .cdg-size-table {
	width: 100%;
	border-collapse: collapse;
}

.single-product .cdg-size-table th,
.single-product .cdg-size-table td {
	border: 1px solid var(--border-color);
	padding: 0.45rem;
	text-align: center;
}

.single-product .cdg-size-table thead {
	background-color: var(--brand-primary);
	color: #fff;
}

.single-product .cdg-size-guide__main-title {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}

.single-product .cdg-size-guide__note {
	font-size: 0.85rem;
	color: var(--text-muted, #5c5c5c);
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.single-product .cdg-size-guide__note--secondary {
	margin-bottom: 1rem;
}

.single-product .cdg-size-guide__section {
	margin-bottom: 1.25rem;
}

.single-product .cdg-size-guide__section:last-child {
	margin-bottom: 0;
}

.single-product .cdg-size-guide__section-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: var(--text-color, #1a1a1a);
}

.single-product .woocommerce-Tabs-panel--additional_information .cdg-size-guide {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color, #e5e5e5);
}

.single-product div.product .woocommerce-tabs,
.single-product section.related.products {
	max-width: 1140px;
	margin-inline: auto;
}

@media (max-width: 768px) {
	.single-product .product-gallery {
		flex-direction: column-reverse;
	}

	.single-product .thumbnails-container {
		flex-direction: row;
		width: 100%;
		overflow-x: auto;
		padding-bottom: 10px;
	}

	.single-product .thumbnail {
		width: 70px;
		height: 80px;
	}

	.single-product .cdg-buy-form-wrap form.variations_form.cart,
	.single-product .cdg-buy-form-wrap .single_variation_wrap .woocommerce-variation-add-to-cart {
		grid-template-columns: 1fr;
	}

	.single-product .cdg-inline-cart__item-main {
		flex-direction: column;
		align-items: flex-start;
	}
}
