/*
Theme Name: Meneviş Tozu

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: right;
	clear: both;
}

table.shop_table_responsive tr td::before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
	display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive thead {
		display: table-header-group;
	}

	table.shop_table_responsive tbody th {
		display: table-cell;
	}

	table.shop_table_responsive tr th,
	table.shop_table_responsive tr td {
		text-align: left;
	}

	table.shop_table_responsive tr td {
		display: table-cell;
	}

	table.shop_table_responsive tr td::before {
		display: none;
	}
}

/**
 * Products
 */
ul.products {
	margin: 0;
	padding: 0;
	display: contents;
	/* Let parent grid handle items */
}

ul.products li.product,
.grid>.product {
	list-style: none;
	position: relative;
	margin-bottom: 0;
	width: auto !important;
	float: none !important;
	margin-right: 0 !important;
}

ul.products li.product img,
.product img {
	display: block;
}

/* Catalog Ordering Styles */
.catalog-ordering-wrapper .woocommerce-ordering {
	margin: 0;
}

.catalog-ordering-wrapper select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.25rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #475569;
}

/* Pagination Styles */
.product-pagination .woocommerce-pagination ul {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-pagination .woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	padding: 0;
}

.product-pagination .woocommerce-pagination ul li a,
.product-pagination .woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.125rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #475569;
	transition: all 0.2s;
	text-decoration: none;
}

.product-pagination .woocommerce-pagination ul li span.current {
	background-color: var(--primary, #009EE0);
	border-color: var(--primary, #009EE0);
	color: #ffffff;
}

.product-pagination .woocommerce-pagination ul li a:hover {
	border-color: var(--primary, #009EE0);
	color: var(--primary, #009EE0);
}

.product-pagination .woocommerce-pagination ul li a.next,
.product-pagination .woocommerce-pagination ul li a.prev {
	font-family: 'Material Symbols Outlined';
	font-size: 1.25rem;
}

/**
 * Single product
 */
.single-product div.product {
	position: relative;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 2em;
	right: 1em;
	display: block;
	z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.79667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.15%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}

.stock:empty::before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {

	.col2-set .form-row-first {
		float: left;
		margin-right: 3.8%;
	}

	.col2-set .form-row-last {
		float: right;
		margin-right: 0;
	}

	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
	display: none;
}

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;
}

.star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #4169e1;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	font-weight: 400;
}

p.stars a::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: star;
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: 0.25;
}

p.stars a:hover~a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active~a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1em 0;
	display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: #f00;
}

/**
 * Notices
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	display: flex;
	align-items: center;
	gap: 1rem;
	border: 1px solid transparent;
	position: relative;
	clear: both;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	font-family: 'Material Symbols Outlined';
	font-size: 1.5rem;
	flex-shrink: 0;
}

/* Info Notice (Coupons, etc) */
.woocommerce-info {
	background-color: #f0f9ff;
	/* sky-50 */
	border-color: #e0f2fe;
	/* sky-100 */
	color: #0369a1;
	/* sky-700 */
}

.woocommerce-info::before {
	content: "info";
	color: #0ea5e9;
	/* primary */
}

.woocommerce-info a {
	color: #0ea5e9;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 800;
}

/* Success Message */
.woocommerce-message {
	background-color: #ecfdf5;
	/* emerald-50 */
	border-color: #d1fae5;
	/* emerald-100 */
	color: #047857;
	/* emerald-700 */
}

.woocommerce-message::before {
	content: "check_circle";
	color: #10b981;
}

.woocommerce-message .button {
	margin-left: auto;
	background: #10b981;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
}

/* Error Message */
.woocommerce-error {
	background-color: #fef2f2;
	/* red-50 */
	border-color: #fee2e2;
	/* red-100 */
	color: #b91c1c;
	/* red-700 */
	list-style: none;
	flex-direction: column;
	align-items: flex-start;
}

.woocommerce-error li {
	list-style: none;
	margin-left: 0;
}

.woocommerce-error::before {
	content: "error";
	color: #ef4444;
	position: absolute;
	left: 1.5rem;
	top: 1.25rem;
}

.woocommerce-error li {
	padding-left: 2.5rem;
}


.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3d9cd2;
	z-index: 9999;
}

@media screen and (min-width: 48em) {

	/**
	 * Header cart
	 */
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}

	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: #4169e1;
	box-sizing: border-box;
	margin-top: -0.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: 0.5em;
}


/**
 * Custom Form Field & Layout Fixes
 * Ensures Tailwind grid and flex utilities work correctly within WooCommerce wrappers
 */

/* Restore width for form containers inside checkout */
.woocommerce-checkout .col2-set {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
	max-width: none;
	padding: 0;
}

/* Fix generic form row styling to use flex/grid instead of floats */
.woocommerce form .form-row {
	padding: 0;
	margin: 0 0 1rem;
	float: none;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
	float: none;
	width: 100%;
	overflow: visible;
}

/* Specific field width overrides using Tailwind-like behavior */
@media screen and (min-width: 768px) {
	.woocommerce form .form-row-first {
		float: left;
		width: 48%;
		margin-right: 4%;
		clear: both;
	}

	.woocommerce form .form-row-last {
		float: right;
		width: 48%;
		margin-right: 0;
		clear: right;
	}

	.woocommerce form .form-row-wide {
		clear: both;
		width: 100%;
	}
}

/* Input Styling Fixes */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	/* slate-300 */
	border-radius: 0.5rem;
	/* rounded-lg */
	font-size: 0.875rem;
	/* text-sm */
	line-height: 1.25rem;
	box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: #0ea5e9;
	/* primary */
	box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* Payment Method Styles in Right Column */
#payment-section ul.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

#payment-section ul.payment_methods li.payment_method {
	margin-bottom: 1rem;
	list-style: none;
}

#payment-section .place-order {
	padding: 0;
	margin-top: 1.5rem;
}

/* Hide default checkout headings if we are injecting our own */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: #1e293b;
	/* dark-blue */
	text-transform: uppercase;
}