/* iTap Laravel Store - WooCommerce-style layout */

/* Shop - product list */
.itap-shop ul.products,
.itap-product-single {
	max-width: 100%;
}
/* Force remove theme aspect-ratio on product-top */
.woocommerce.itap-shop ul.products li.product .product-top,
.woocommerce-page.itap-shop ul.products li.product .product-top {
	aspect-ratio: auto !important;
}
.woocommerce ul.products li.product .product-top .product-image img,
.woocommerce-page ul.products li.product .product-top .product-image img {
	width: 100%;
	aspect-ratio: 1.75;
	object-fit: contain;
}
.woocommerce ul.products li.product a img {
	margin: 0 !important;
}
.woocommerce ul.products li.product .product-top,
.woocommerce-page ul.products li.product .product-top {
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
}
.woocommerce.itap-shop ul.products.columns-3 li.product,
.woocommerce-page.itap-shop ul.products.columns-3 li.product {
	align-self: self-end;
}
.itap-shop .product-top,
.itap-product-single .itap-product-gallery {
	position: relative;
	overflow: hidden;
}
/* Gallery - shared by shop and single product (dynamic image dimensions) */
.itap-shop .product-image,
.itap-product-single .itap-product-gallery .product-image {
	position: relative;
	display: block;
	box-sizing: border-box;
}
.itap-shop .product-image .itap-image-wrap,
.itap-product-single .itap-product-gallery .product-image .itap-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1.75;
	overflow: visible;
	overflow-x: visible;
	overflow-y: visible;
	border-radius: 12px;
	background: #fff;
}
.itap-shop .product-image img,
.itap-product-single .itap-product-gallery .product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.25s ease;
}
.itap-shop .product-image img.itap-image-changing,
.itap-product-single .itap-product-gallery .product-image img.itap-image-changing {
	opacity: 0;
}
.itap-shop .product-image .itap-placeholder-image,
.itap-product-single .itap-product-gallery .product-image .itap-placeholder-image {
	display: block;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
}
.itap-shop .product-actions .itap-view-btn {
	display: inline-block !important;
}
/* Lower product image scale on hover (override theme's 1.1) */
.itap-shop ul.products li.product:hover .product-top .product-image img {
	transform: scale(1.03);
}
.itap-shop .itap-shop-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0.5rem 0;
	align-items: center;
}
.itap-shop .itap-shop-swatch {
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s;
}
.itap-shop .itap-shop-swatch:hover {
	transform: scale(1.1);
}
.itap-shop .itap-shop-swatch.selected {
	border-color: #333;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.itap-shop .itap-shop-swatch.itap-swatch-light {
	border: 1px solid #ddd;
}
.itap-shop .itap-shop-swatch.itap-swatch-light.selected {
	border-color: #333;
}
/* Force remove page title block (heading + breadcrumb) on product, shop and reserve pages */
body.single-product #pxl-ptit__elementor,
body.itap-product-page #pxl-ptit__elementor,
body.itap-shop-page #pxl-ptit__elementor,
body.itap-reserve-page #pxl-ptit__elementor {
	display: none !important;
}
/* Replace removed block with padding */
body.single-product .pxl-content-area,
body.itap-product-page .pxl-content-area,
body.itap-shop-page .pxl-content-area,
body.itap-reserve-page .pxl-content-area {
	padding-top: 8rem;
}

/* Single product - gallery layout (visual styles shared above) */
.itap-product-single .itap-product-gallery {
	width: 100%;
}
@media screen and (min-width: 768px) {
	.itap-product-single .itap-product-gallery {
		max-width: 48%;
	}
}
@media screen and (min-width: 1260px) {
	.itap-product-single .itap-product-gallery {
		max-width: 632px;
	}
}
.itap-product-single .color-variable-items-wrapper .itap-swatch.itap-swatch-light {
	border: 1px solid #ddd !important;
}
.itap-product-single .color-variable-items-wrapper .itap-swatch.selected.itap-swatch-light {
	border-color: #333 !important;
}
.itap-product-single {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
}
.itap-product-single .summary.entry-summary {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0;
	margin-top: 32px;
}
.itap-product-single .itap-product-description, .summary {
	padding-left: 2rem !important;
	padding-right: 0.7rem !important;
}
@media screen and (min-width: 768px) {
	.itap-product-single .summary.entry-summary {
		max-width: 48%;
		margin-top: 0;
	}
}
@media screen and (min-width: 1260px) {
	.itap-product-single .summary.entry-summary {
		max-width: 584px;
	}
}
.itap-product-single .variations_button {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
	margin-top: 1.25rem;
}
.itap-product-single .quantity-form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.itap-product-single .quantity-form .quantity-label {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #111;
}
.itap-product-single .quantity-form .quantity-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	width: fit-content;
	min-height: 50px;
	padding: 0.25rem 1rem;
	border: 1px solid #d4d7dc;
	border-radius: 999px;
	background: #fff;
}
.itap-product-single .quantity-form .itap-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 500;
	cursor: pointer;
}
.itap-product-single .quantity-form .itap-qty-btn:hover {
	opacity: 0.75;
}
.itap-product-single .quantity-form .itap-qty-btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
	border-radius: 999px;
}
.itap-product-single .quantity-form .quantity {
	float: none;
	margin: 0;
}
.itap-product-single .quantity-form .quantity input.qty {
	width: 3rem;
	min-height: auto;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}
.itap-product-single .quantity-form .quantity input.qty::-webkit-outer-spin-button,
.itap-product-single .quantity-form .quantity input.qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
	-webkit-appearance: none;
}
.itap-product-single .itap-reserve-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	height: 70px;
	min-height: 70px;
	box-sizing: border-box;
	padding: 0 1.5rem !important;
	border: 1px solid #000 !important;
	border-radius: 999px !important;
	background: #000 !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none !important;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.itap-product-single .itap-reserve-button:hover,
.itap-product-single .itap-reserve-button:focus,
.itap-product-single .itap-reserve-button:active {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}
.itap-product-single .itap-reserve-button .itap-button-icon {
	display: inline-flex;
	align-items: center;
}
.itap-product-single .itap-reserve-button .itap-button-icon svg {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
}
/* Checkout page */
body.itap-popup-open {
	overflow: hidden;
}
.itap-checkout .itap-success-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 1.25rem;
}
.itap-checkout .itap-success-popup.is-hidden {
	display: none;
}
.itap-checkout .itap-success-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.itap-checkout .itap-success-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	margin-top: 10vh;
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	color: #111;
	box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2);
}
.itap-checkout .itap-success-popup__dialog h2 {
	margin: 0 0 0.8rem;
	font-size: 1.35rem;
	line-height: 1.3;
}
.itap-checkout .itap-success-popup__dialog p {
	margin: 0 0 0.75rem;
	color: #333;
	line-height: 1.5;
}
.itap-checkout .itap-success-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.itap-checkout .itap-success-popup__close:hover {
	color: #111;
}
.itap-checkout .itap-success-popup__actions {
	margin-top: 1.2rem;
}
.itap-checkout .itap-success-popup__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 46px;
	min-height: 46px;
	padding: 0 1.25rem !important;
	border: 1px solid #000 !important;
	border-radius: 999px !important;
	background: #000 !important;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.itap-checkout .itap-success-popup__button:hover,
.itap-checkout .itap-success-popup__button:focus {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}
.itap-checkout .woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	color: #721c24;
}
.itap-checkout .woocommerce-error li {
	margin: 0;
	padding: 0;
}
.itap-checkout-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 640px;
}
@media screen and (min-width: 768px) {
	.itap-checkout-layout {
		flex-direction: row;
		flex-wrap: wrap;
		max-width: 100%;
		gap: 2.5rem;
	}
	.itap-checkout-summary {
		flex: 0 0 280px;
	}
	.itap-checkout-form {
		flex: 1;
		min-width: 300px;
	}
}
.itap-checkout-summary-title,
.itap-checkout-form-title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 600;
	color: #111;
}
.itap-checkout-product {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #d4d7dc;
	border-radius: 12px;
	background: #fff;
}
.itap-checkout-product-image {
	position: relative;
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f5f5;
}
.itap-checkout-product-image .itap-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.itap-checkout-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
    aspect-ratio: 1.75;
}
.itap-checkout-product-image .itap-placeholder-image {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}
.itap-checkout-product-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
}
.itap-checkout-product-name {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #111;
	line-height: 1.3;
}
.itap-checkout-product-price {
	font-size: 1rem;
	font-weight: 600;
	color: #111;
}
.itap-checkout-quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	color: #444;
}
.itap-checkout-quantity-label {
	font-weight: 500;
}
.itap-checkout-quantity-value {
	font-weight: 600;
}
.itap-checkout .form-row {
	margin-bottom: 1.25rem;
}
.itap-checkout .form-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
}
.itap-checkout .form-row .required {
	color: #c00;
}
.itap-checkout .form-row .itap-input {
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	padding: 0.65rem 1rem;
	border: 1px solid #d4d7dc;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}
.itap-checkout .form-row .itap-input:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.itap-checkout .form-row .itap-input::placeholder {
	color: #999;
}
.itap-checkout .form-row .itap-textarea {
	border-radius: 12px;
	min-height: 100px;
	resize: vertical;
}
.itap-checkout .form-row .itap-field-description {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #666;
	line-height: 1.4;
}
.itap-checkout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}
.itap-checkout .itap-reserve-button.itap-checkout-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	height: 56px;
	min-height: 56px;
	padding: 0 1.5rem !important;
	border: 1px solid #000 !important;
	border-radius: 999px !important;
	background: #000 !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none !important;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.itap-checkout .itap-reserve-button.itap-checkout-submit:hover,
.itap-checkout .itap-reserve-button.itap-checkout-submit:focus,
.itap-checkout .itap-reserve-button.itap-checkout-submit:active {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}
.itap-checkout .itap-reserve-button.itap-checkout-submit .itap-button-icon {
	display: inline-flex;
	align-items: center;
}
.itap-checkout .itap-reserve-button.itap-checkout-submit .itap-button-icon svg {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
}
.itap-checkout .itap-checkout-cancel {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 56px;
	min-height: 56px;
	padding: 0 1.5rem !important;
	border: 1px solid #d4d7dc !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none;
	color: #111 !important;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none !important;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.itap-checkout .itap-checkout-cancel:hover,
.itap-checkout .itap-checkout-cancel:focus {
	background: #f8f8f8 !important;
	border-color: #111 !important;
	color: #111 !important;
}
.itap-placeholder-image {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: #f0f0f0;
}
