/**
 * Mattonflex WooCommerce Styles
 * Basic structure and layout - Designer will add detailed styling
 */

/* ==========================================================================
   Product Page Layout
   ========================================================================== */

.mattonflex-single-product {
	padding: 40px 0;
}

.product-main-content {
	margin-bottom: 40px;
}

.product-gallery-col,
.product-summary-col {
	padding: 15px;
}

/* ==========================================================================
   Product Gallery
   ========================================================================== */

.mattonflex-product-gallery {
	width: 100%;
}

.woocommerce-product-gallery__main-image {
	margin-bottom: 20px;
}

.woocommerce-product-gallery__main-image img {
	width: 100%;
	height: auto;
	display: block;
}

.woocommerce-product-gallery__thumbnails {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
}

.woocommerce-product-gallery__thumbnails .woocommerce-product-gallery__image {
	flex: 0 0 calc(33.333% - 7px);
	max-width: calc(33.333% - 7px);
}

.woocommerce-product-gallery__thumbnails img {
	width: 100%;
	height: auto;
	display: block;
	cursor: pointer;
}

/* ==========================================================================
   Product Summary
   ========================================================================== */

.mattonflex-product-title {
	margin-bottom: 20px;
}

.mattonflex-price-wrapper {
	margin-bottom: 20px;
}

/* .mattonflex-price-wrapper .price {
	font-size: 24px;
	color: #9d4425;
} */

.price-label {
	font-weight: 500;
}

.price-unit {
	font-size: 18px;
}

/* ==========================================================================
   Add to Cart Form
   ========================================================================== */

.mattonflex-package-selector {
	margin-bottom: 20px;
}

.mattonflex-package-selector label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.package-size-select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* ==========================================================================
   Quantity Selector
   ========================================================================== */

.mattonflex-quantity-wrapper {
	margin-bottom: 20px;
}

.mattonflex-quantity-wrapper label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.quantity-selector {
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: 1px solid #E8E8E8;
	border-radius: 8px;
	padding: 4px 8px;
	gap: 0;
}

.quantity-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	color: #1b1b25;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
	transition: background-color 0.2s ease;
}

.quantity-btn:hover {
	background: #f2f2f2;
}

.quantity-btn:active {
	background: #e5e5e5;
}

/* Input number - remove default spinners */
.quantity-selector input[type="number"],
.mattonflex-quantity-input input[type="number"],
input.qty {
	min-width: 50px;
	width: 50px;
	padding: 6px 4px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	color: #9D4425;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: color 0.2s ease;
}

/* Over stock warning */
.quantity-selector input.qty.over-stock,
input.qty.over-stock {
	color: #FD1A38;
}

/* Remove spinners for Chrome, Safari, Edge */
.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button,
input.qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity-selector input[type="number"]:focus,
input.qty:focus {
	outline: none;
}

/* ==========================================================================
   Warnings and Messages
   ========================================================================== */

.mattonflex-quantity-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.warning-text {
	margin: 0;
	color: #856404;
}

.request-quote-link {
	color: #9d4425;
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   Quantity Row (Quantity + Package Info)
   ========================================================================== */

.mattonflex-quantity-row {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.mattonflex-quantity-row .mattonflex-quantity-wrapper {
	margin-bottom: 0;
}

.package-info-label {
	font-size: 13px;
	color: #666;
	white-space: nowrap;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
	.mattonflex-quantity-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
        flex-wrap: wrap;
        align-content: center;
	}

	.package-info-label {
		margin-top: 5px;
	}
}

/* ==========================================================================
   Package Recap List (small text)
   ========================================================================== */

.package-recap-list {
	list-style: none;
	margin: 0 0 15px 0;
	padding: 0;
	font-size: 12px;
	color: #666;
}

.package-recap-list li {
	display: inline;
}

.package-recap-list li:not(:last-child)::after {
	content: " · ";
}

/* ==========================================================================
   Totals Row (Weight + Price)
   ========================================================================== */

.mattonflex-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 20px;
}

.total-weight-info,
.total-price-info {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.total-weight-label,
.total-label {
	font-size: 14px;
	color: #1b1b25;
}

.total-weight-value {
	font-weight: 600;
	color: #1b1b25;
	font-size: 14px;
}

.total-price-info {
	font-size: 18px;
}

.total-label {
	font-weight: 400;
}

.total-value {
	font-weight: 700;
	color: #9d4425;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
	.mattonflex-totals-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.total-price-info {
		width: 100%;
		justify-content: space-between;
	}
}

/* ==========================================================================
   Add to Cart Button
   ========================================================================== */

.mattonflex-add-to-cart {
	width: 100%;
	background: #9d4425;
	color: #fff;
	padding: 15px 30px;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.mattonflex-add-to-cart:hover {
	background: #7d3419;
}

/* ==========================================================================
   Bulk Quote Modal
   ========================================================================== */

.mattonflex-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.modal-icon {
	text-align: center;
	font-size: 48px;
	color: #ffc107;
	margin-bottom: 20px;
}

.modal-title {
	text-align: center;
	margin-bottom: 30px;
	color: #1b1b25;
}

.modal-form .form-group {
	margin-bottom: 20px;
}

.modal-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.modal-form button[type="submit"] {
	width: 100%;
	background: #9d4425;
	color: #fff;
	padding: 12px;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   Additional Information Section
   ========================================================================== */

.product-additional-info {
	margin-bottom: 40px;
}

.additional-info-title {
	margin-bottom: 20px;
	color: #1b1b25;
}

.mattonflex-additional-info .shop_attributes {
	width: 100%;
	border-collapse: collapse;
}

.mattonflex-additional-info .attribute-row {
	border-bottom: 1px solid #ddd;
}

.mattonflex-additional-info .attribute-label {
	width: 30%;
	padding: 15px;
	font-weight: 600;
	text-align: left;
}

.mattonflex-additional-info .attribute-value {
	padding: 15px;
}

.download-link,
.tutorial-link {
	color: #9d4425;
	text-decoration: underline;
}

/* ==========================================================================
   Related Products Carousel
   ========================================================================== */

.mattonflex-related-products {
	margin-bottom: 40px;
}

.mattonflex-related-products h2 {
	margin-bottom: 20px;
	color: #1b1b25;
}

.related-products-slider {
	position: relative;
}

.related-product-slide {
	padding: 10px;
}

.product-card {
	text-align: center;
}

.product-card img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
}

.product-title {
	font-size: 16px;
	margin-bottom: 10px;
}

.slick-nav-arrows {
	margin-top: 20px;
	text-align: center;
}

.slick-prev,
.slick-next {
	width: 38px;
	height: 38px;
	background: #9d4425;
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	margin: 0 5px;
}

/* ==========================================================================
   Carousels (Inspiration, Colors, etc.)
   ========================================================================== */

.product-inspiration-section,
.product-colors-section {
	margin-bottom: 40px;
}

.section-title {
	margin-bottom: 20px;
	color: #9d4425;
	font-weight: 500;
}

/* ==========================================================================
   Shop Page
   ========================================================================== */

.mattonflex-shop-page {
	padding: 40px 0;
}

.woocommerce-products-header__title {
	margin-bottom: 30px;
	color: #1b1b25;
}

/* Product Grid */
.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 992px) {
	.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.products {
		grid-template-columns: 1fr;
	}
}

/* Product Card */
.mattonflex-product-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mattonflex-product-card:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.mattonflex-product-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mattonflex-product-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background: #f5f5f5;
}

.mattonflex-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mattonflex-product-card:hover .mattonflex-product-image img {
	transform: scale(1.05);
}

.mattonflex-product-image .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #9d4425;
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

.mattonflex-product-info {
	padding: 20px;
	text-align: center;
}

.mattonflex-product-title {
	font-weight: 400;
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.mattonflex-product-price {
	font-size: 18px;
	font-weight: 600;
	color: #9d4425;
}

.mattonflex-product-price del {
	color: #999;
	font-weight: 400;
	margin-right: 8px;
}

.mattonflex-product-price ins {
	text-decoration: none;
}

.mattonflex-product-actions {
	padding: 0 20px 20px;
	text-align: center;
}

.mattonflex-product-actions .button {
	display: inline-block;
	background: #9d4425;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.mattonflex-product-actions .button:hover {
	background: #7d3419;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.mattonflex-cart-page {
	padding: 40px 0;
}

.cart-title {
	margin-bottom: 30px;
	color: #1b1b25;
}

.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.shop_table th,
.shop_table td {
	padding: 15px;
	border-bottom: 1px solid #ddd;
}

.shop_table th {
	background: #f2f2f2;
	font-weight: 600;
	text-align: left;
}

.product-remove a {
	color: #dc3545;
	font-size: 24px;
	text-decoration: none;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.mattonflex-notice {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.mattonflex-notice ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mattonflex-notice li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mattonflex-notice-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.mattonflex-notice-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
	.product-gallery-col,
	.product-summary-col {
		margin-bottom: 30px;
	}

	.woocommerce-product-gallery__thumbnails {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.modal-content {
		padding: 20px;
	}

	.shop_table {
		font-size: 14px;
	}

	.shop_table th,
	.shop_table td {
		padding: 10px;
	}
}

/* ==========================================================================
   NEW SECTIONS - Based on Figma Design
   ========================================================================== */

/* ==========================================================================
   Product Page Container
   ========================================================================== */

.mattonflex-product-page {
	padding: 0;
}

.product-hero-section {
	padding: 40px 0;
}

/* ==========================================================================
   Product Gallery (Updated)
   ========================================================================== */

.mattonflex-product-gallery {
	width: 100%;
}

.product-gallery__main {
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 16/9;
}

.product-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-gallery__thumbnails {
	display: flex;
	gap: 10px;
}

.product-thumbnail {
	flex: 0 0 calc(25% - 8px);
	max-width: calc(25% - 8px);
	aspect-ratio: 16/9;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
	border-color: #9d4425;
}

.product-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Additional Information (Side-by-side layout)
   ========================================================================== */

.product-additional-info-section {
	padding: 40px 0;
}

.additional-info-wrapper {
	display: flex;
	flex-direction: row;
	gap: 40px;
}

.additional-info-title-col {
	flex: 0 0 250px;
	max-width: 250px;
}

.additional-info-title {
	position: sticky;
	top: 120px;
	margin: 0;
	color: #9d4425;
	font-weight: 600;
}

.additional-info-content-col {
	flex: 1;
	min-width: 0;
}

/* Mobile: stack vertically */
@media (max-width: 991px) {
	.additional-info-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.additional-info-title-col {
		flex: none;
		max-width: 100%;
	}

	.additional-info-title {
		position: static;
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
	.product-additional-info-section {
		padding: 30px 0;
	}

	.additional-info-wrapper {
		gap: 15px;
	}
}

/* ==========================================================================
   Installation Products Section
   ========================================================================== */

.mattonflex-installation-products {
	padding: 40px 0;
}

.mattonflex-installation-products .section-header {
	margin-bottom: 30px;
}

.mattonflex-installation-products .section-description {
	max-width: 800px;
}

.installation-products-slider {
	margin: 0 -10px;
}

.installation-product-slide {
	padding: 0 10px;
}

.installation-product-slide .product-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.installation-product-slide .product-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.installation-product-slide .product-card-image img {
	width: 100%;
	height: auto;
}

.installation-product-slide .product-card-info {
	padding: 15px;
}

.installation-product-slide .product-card-title {
	margin: 0 0 5px 0;
	font-weight: 400;
}

.installation-product-slide .product-card-price {
	font-weight: 600;
}

/* Slider navigation */
.mattonflex-installation-products .slider-nav,
.color-variants-nav {
	text-align: right;
	margin-top: 20px;
}

.slider-prev,
.slider-next {
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid #9d4425;
	color: #9d4425;
	border-radius: 50%;
	cursor: pointer;
	margin-left: 10px;
	transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
	background: #9d4425;
	color: #fff;
}

/* ==========================================================================
   Video Section
   ========================================================================== */

.mattonflex-video-section {
	padding: 60px 0;
}

.mattonflex-video-section .section-title {
	margin-bottom: 20px;
}

.video-section-text {
	line-height: 1.6;
}

.video-wrapper {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-placeholder {
	position: relative;
}

.video-placeholder .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 72px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
	cursor: pointer;
}

/* ==========================================================================
   Usage Areas Section
   ========================================================================== */

.mattonflex-usage-areas {
	padding: 60px 0;
}

.mattonflex-usage-areas .section-header {
	max-width: 900px;
	margin: 0 auto 40px;
}

.mattonflex-usage-areas .section-description {
	color: #666;
}

.usage-areas-grid {
	margin: 0 -15px;
}

.usage-area-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 30px;
}

/* Title above image */
.usage-area-title {
	margin-bottom: 15px;
}

/* Square image - max 150px */
.usage-area-image {
	width: 150px;
	height: 150px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 15px;
	flex-shrink: 0;
}

.usage-area-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.usage-area-placeholder {
	background: #f2f2f2;
	width: 100%;
	height: 100%;
}

/* Description below image */
.usage-area-description {
	max-width: 200px;
}

.usage-area-description p {
	color: #666;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.usage-area-image {
		width: 120px;
		height: 120px;
	}

	.usage-area-description {
		max-width: 160px;
	}
}

.usage-area-link {
	text-decoration: none;
	color: inherit;
}

/* ==========================================================================
   Color Variants Section
   ========================================================================== */

.mattonflex-color-variants {
	padding: 60px 0;
}

.mattonflex-color-variants .section-title {
	margin-bottom: 20px;
}

.mattonflex-color-variants .section-description {
	color: #666;
	line-height: 1.6;
}

.color-variants-slider {
	margin: 0 -10px;
}

.color-variant-slide {
	padding: 0 10px;
}

.color-variant-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.color-variant-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.color-variant-image img {
	width: 100%;
	height: auto;
}

.color-variant-info {
	padding: 15px;
}

.color-variant-name {
	margin-bottom: 5px;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */

.mattonflex-certifications {
	padding: 60px 0;
}

.mattonflex-certifications .section-header {
	max-width: 900px;
	margin: 0 auto 40px;
}

.mattonflex-certifications .section-description {
	color: #666;
}

.certifications-grid {
	margin: 0 -15px;
}

.certification-card {
	text-align: center;
	padding: 20px;
	margin-bottom: 30px;
}

.certification-logo {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.certification-logo img {
	max-height: 80px;
	max-width: 100%;
	height: auto;
}

.certification-title {
	margin-bottom: 15px;
	color: #666;
}

.certification-download {
	margin-top: 15px;
}

/* Brown download button */
.btn-download-brown {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: #9d4425;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.btn-download-brown:hover {
	background-color: #7d3419;
	color: #fff;
	text-decoration: none;
}

.btn-download-brown i {
	font-size: 14px;
}

.btn-download-brown.btn-disabled {
	background-color: #ccc;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==========================================================================
   Responsive Updates for New Sections
   ========================================================================== */

@media (max-width: 991px) {
	.mattonflex-video-section .row {
		flex-direction: column-reverse;
	}

	.mattonflex-video-section .col-md-5,
	.mattonflex-video-section .col-md-7 {
		margin-bottom: 30px;
	}

	.mattonflex-color-variants .row {
		flex-direction: column;
	}

	.mattonflex-color-variants .col-md-4 {
		margin-bottom: 30px;
	}
}

@media (max-width: 767px) {
	.product-gallery__thumbnails {
		flex-wrap: wrap;
	}

	.product-thumbnail {
		flex: 0 0 calc(25% - 8px);
		max-width: calc(25% - 8px);
	}

	.mattonflex-installation-products,
	.mattonflex-video-section,
	.mattonflex-usage-areas,
	.mattonflex-color-variants,
	.mattonflex-certifications {
		padding: 40px 0;
	}

	.certification-logo {
		height: 60px;
	}

	.certification-logo img {
		max-height: 60px;
	}
}

/* ==========================================================================
   Variable Product - Variant Selector (Figma Design)
   ========================================================================== */

.mattonflex-variations {
	margin-bottom: 20px;
}

.mattonflex-variant-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.mattonflex-variant-row .variant-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.mattonflex-variant-row .variant-dot {
	width: 12px;
	height: 12px;
	background: #ccc;
	border-radius: 50%;
}

.variant-select-wrapper {
	flex: 1;
}

.mattonflex-variant-select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	cursor: pointer;
}

.mattonflex-variant-select:focus {
	border-color: #9d4425;
	outline: none;
}

/* Variable product total price */
.variations_form .mattonflex-total-price {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 18px;
}

.variations_form .mattonflex-total-price .total-label {
	font-weight: 400;
}

.variations_form .mattonflex-total-price .total-value,
.variations_form .mattonflex-total-price .price {
	font-weight: 700;
	color: #9d4425;
}

/* Variable product quantity and button layout */
.woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 15px;
}

.woocommerce-variation-add-to-cart .mattonflex-quantity-wrapper {
	margin-bottom: 0;
	flex: 0 0 auto;
}

.woocommerce-variation-add-to-cart .quantity-selector {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 0;
}

.woocommerce-variation-add-to-cart .quantity-btn {
	width: 40px;
	height: 40px;
	background: #fff;
	color: #1b1b25;
	border: none;
	border-radius: 0;
	font-size: 18px;
}

.woocommerce-variation-add-to-cart .quantity-btn:hover {
	background: #f2f2f2;
}

.woocommerce-variation-add-to-cart .quantity input {
	width: 50px;
	height: 40px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	font-size: 16px;
}

.woocommerce-variation-add-to-cart .mattonflex-add-to-cart {
	flex: 1;
	height: 40px;
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hide default variation description */
.woocommerce-variation.single_variation {
	display: none !important;
}

/* ==========================================================================
   Environment Section (Rispetto per l'ambiente)
   ========================================================================== */

.product-environment-section {
	padding: 0;
}

.mattonflex-environment-section {
	margin-top: 20px;
}

.mattonflex-environment-section .environment-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 25px 30px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.mattonflex-environment-section .environment-icon {
	flex: 0 0 60px;
}

.mattonflex-environment-section .environment-icon svg {
	width: 60px;
	height: 60px;
}

.mattonflex-environment-section .environment-content {
	flex: 1;
}

.mattonflex-environment-section .environment-title {
	font-weight: 400;
	margin-bottom: 8px;
}

.mattonflex-environment-section .environment-text {
	color: #666;
	line-height: 1.5;
	margin: 0 0 15px 0;
}

@media (max-width: 767px) {
	.mattonflex-environment-section .environment-card {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}

	.mattonflex-environment-section .environment-icon {
		margin: 0 auto;
	}

	.woocommerce-variation-add-to-cart {
		flex-wrap: wrap;
	}

	.woocommerce-variation-add-to-cart .mattonflex-quantity-wrapper {
		width: 100%;
		margin-bottom: 15px;
	}

	.woocommerce-variation-add-to-cart .quantity-selector {
		justify-content: center;
	}

	.woocommerce-variation-add-to-cart .mattonflex-add-to-cart {
		width: 100%;
	}
}

/* ==========================================================================
   Header Cart Icon
   ========================================================================== */

.header-cart-link {
	display: flex;
	align-items: center;
	padding: 0 15px;
	color: #9d4425;
	font-size: 20px;
	position: relative;
	text-decoration: none;
	border: none !important;
}

.header-cart-link:hover {
	color: #7d3419;
}

.header-cart-link .cart-count {
	position: absolute;
	top: -5px;
	right: 5px;
	background: #9d4425;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

@media (max-width: 991px) {
	.header-cart-link {
		padding: 10px 0;
		justify-content: center;
	}
}
