/* DG Innovations — theme styles for WordPress/WooCommerce generated markup. */

/* ---------------------------------------------------------- Clickable cursor */
a,
button,
[role="button"],
[role="link"],
summary,
select,
label[for],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
input[type="file"],
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="color"],
.theme-cat-filter,
.theme-qty-plus,
.theme-qty-minus,
.theme-product-thumb,
[data-cart-open],
[data-cart-close],
[data-faq-toggle],
[data-promo-close],
[data-buy-now],
[data-card-prev],
[data-card-next],
[data-testimonial-prev],
[data-testimonial-next],
[data-testimonial-dots] button,
#theme-shop-more,
#theme-menu-toggle {
	cursor: pointer;
}

/* ---------------------------------------------- Shop visibility / filters
 * Tailwind utilities (.block, .flex) override the HTML [hidden] attribute. */
#theme-shop-grid .theme-product-card-wrap[hidden],
#theme-shop-more-wrap[hidden],
#theme-shop-empty[hidden] {
	display: none !important;
}

/* Card images: fill the square without the WP 600x750 crop zoom. */
.theme-product-card-wrap .theme-card-image,
.theme-product-card-wrap img[data-card-image] {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
}
.single-product #product-main-img img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
}

/* ---------------------------------------------------------------- Identity */
.site-logo-img {
	height: var(--logo-height, 20px) !important;
	width: auto !important;
	display: block;
}
.site-logo-text {
	line-height: var(--logo-height, 20px);
	display: block;
}

/* ----------------------------------------------------------- Admin bar */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}
@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

/* --------------------------------------------------------- Reveal fallback
 * The compiled app.css hides [data-reveal] but dropped .is-revealed.
 * Restore the visible state here, and keep the Customizer override. */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-revealed,
.reveal.in {
	opacity: 1 !important;
	transform: none !important;
}
body.is-customizer [data-reveal],
body.is-customizer .reveal {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}

/* ------------------------------------------------------------- Cart drawer */
#theme-cart-drawer {
	visibility: hidden;
	opacity: 0;
}
body.cart-open #theme-cart-drawer {
	visibility: visible;
	opacity: 1;
}
#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}
.theme-cart-count:empty {
	display: none;
}
#theme-cart-drawer .theme-cart-variation p {
	margin: 0;
}
#theme-cart-drawer img {
	display: block;
}

/* ------------------------------------------- Add to cart button behaviour */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled,
a.single_add_to_cart_button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* Loading state */
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

/* --------------------------------------------------------------- Quantity */
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	height: 2.5rem;
	line-height: 1;
	border: 1px solid hsl(var(--foreground) / 0.2);
	border-radius: 9999px;
	box-sizing: border-box;
	overflow: hidden;
	vertical-align: middle;
}
.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}
.theme-qty-input,
.single-product .theme-qty-input,
.woocommerce .quantity input.qty,
.woocommerce .quantity input.qty.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	display: block;
	width: 2.75rem !important;
	min-width: 2.75rem !important;
	max-width: 2.75rem !important;
	height: 2.5rem !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 2.5rem !important;
	text-align: center !important;
	color: hsl(var(--foreground));
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.theme-qty-input:focus {
	outline: none;
}

/* -------------------------------------------------------- Single product */
.single-product .theme-product-layout {
	min-width: 0;
}
.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}
.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}
.single-product .theme-add-to-cart-area {
	display: block;
	width: 100%;
}
.single-product .theme-quantity-block {
	margin-bottom: 1.5rem;
}
.single-product .theme-product-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
}
.single-product .theme-product-actions .single_add_to_cart_button,
.single-product .theme-product-actions [data-buy-now],
.single-product .theme-product-actions > a,
.single-product .theme-product-actions > button,
.single-product .theme-product-actions > span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 0 0 auto;
	height: 3rem !important;
	min-height: 3rem !important;
	max-height: 3rem !important;
	padding: 0 1.75rem !important;
	margin: 0 !important;
	border-radius: 9999px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.single-product .theme-product-actions {
		flex-direction: row;
		align-items: center;
	}
	.single-product .theme-product-actions .single_add_to_cart_button,
	.single-product .theme-product-actions [data-buy-now],
	.single-product .theme-product-actions > a,
	.single-product .theme-product-actions > button,
	.single-product .theme-product-actions > span {
		flex: 1 1 0;
		width: auto;
	}
}
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}
.single-product .theme-product-details p {
	margin-bottom: 0.75rem;
}
.single-product .theme-product-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.single-product .theme-product-details li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.625rem;
}
.single-product .theme-product-details li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.25rem;
	height: 0.25rem;
	border-radius: 9999px;
	background: hsl(var(--primary));
}

/* Variations table: label above control */
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}
.single-product .variations tbody td.value {
	padding-top: 0;
}
.single-product .variations select {
	width: 100%;
	height: 3rem;
	padding: 0 1rem;
	background-color: hsl(var(--ivory));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: 0.375rem;
	font-size: 14px;
	color: hsl(var(--foreground));
}
.single-product .single_variation_wrap {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	font-size: 15px;
	color: hsl(var(--foreground) / 0.75);
}

/* ---------------------------------------------------------- WC notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	background: hsl(var(--ivory));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	font-size: 14px;
	margin: 0 0 1.5rem;
}
.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
	color: hsl(var(--destructive));
}
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
	display: none;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ----------------------------------------------------------- Pagination */
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.woocommerce-pagination ul li {
	border: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.15);
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground) / 0.75);
	text-decoration: none;
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------- Page heading */
.page-title {
	font-family: 'Newsreader', 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.014em;
	line-height: 1.05;
}
.entry-content > *:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------------- Checkout */
body.woocommerce-checkout .site-main {
	padding-top: 7rem;
	padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: 'Switzer', system-ui, -apple-system, sans-serif;
	color: hsl(var(--foreground));
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: 1rem;
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	font-family: 'Switzer', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--ivory)) !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: 0.375rem !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	font-family: 'Switzer', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	height: 3rem !important;
	padding: 0 1.75rem !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.75rem !important;
	border: 1px solid hsl(var(--border)) !important;
	background: hsl(var(--ivory)) !important;
	color: hsl(var(--foreground)) !important;
	font-size: 14px !important;
}
body.woocommerce-checkout .wc-block-cart-items__header,
body.woocommerce-checkout .wc-block-cart-items__row {
	font-family: 'Switzer', system-ui, -apple-system, sans-serif;
	font-size: 14px;
}
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout .wc-block-components-title {
	font-family: 'Newsreader', 'Instrument Serif', Georgia, serif !important;
	font-weight: 400 !important;
	letter-spacing: -0.014em;
}

@media (max-width: 767px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: block;
	}
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		margin-top: 2rem;
	}
}

/* ------------------------------------------------------------- Thank you */
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	background: hsl(var(--ivory));
	padding: 0.9rem 1.1rem;
	font-size: 13px;
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 14px;
}
body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Newsreader', 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	font-size: 1.75rem;
	padding: 0 0 1rem;
	margin: 0;
}
body.theme-thankyou-page .woocommerce-order-details {
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 14px;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	vertical-align: top;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
}

/* -------------------------------------------------------- Cart / account */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce {
	font-family: 'Switzer', system-ui, -apple-system, sans-serif;
	color: hsl(var(--foreground));
}
body.woocommerce-cart .wc-block-components-button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account button.button {
	border-radius: 9999px;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
	font-size: 14px;
	font-weight: 500;
}
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	padding: 2rem;
	background: hsl(var(--ivory));
}
body.woocommerce-account .woocommerce-form-login input.input-text,
body.woocommerce-account .woocommerce-form-register input.input-text {
	height: 3rem;
	padding: 0 1rem;
	background: hsl(var(--ivory));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: 0.375rem;
	font-size: 14px;
}

/* ------------------------------------------ WooCommerce layout helpers */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.75rem 0.5rem;
	text-align: left;
}
.woocommerce .quantity input.qty {
	width: 2.75rem;
}
