/* Shop Page Styles */
.shop-page-wrapper {
	background-color: var(--arynaz-bg);
}

.shop-breadcrumb {
	margin-bottom: var(--arynaz-space-6);
	font-size: 14px;
	color: var(--arynaz-text-muted);
}

.shop-breadcrumb a {
	color: var(--arynaz-text-main);
	transition: color 0.2s;
}

.shop-breadcrumb a:hover {
	color: var(--arynaz-walnut);
}

.woocommerce-products-header__title {
	font-size: 32px;
	margin-bottom: var(--arynaz-space-8);
	padding-bottom: var(--arynaz-space-4);
	border-bottom: 1px solid var(--arynaz-border);
}

.shop-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
}

/* Sidebar Widgets */
.shop-sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.widget.woocommerce {
	background: var(--arynaz-surface);
	padding: 24px;
	border-radius: var(--arynaz-radius-lg);
	border: 1px solid var(--arynaz-border);
	box-shadow: var(--arynaz-shadow-sm);
}

.widget-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--arynaz-border);
	color: var(--arynaz-walnut);
}

.product-categories, .widget_layered_nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.product-categories li, .widget_layered_nav ul li {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.product-categories li:last-child, .widget_layered_nav ul li:last-child {
	margin-bottom: 0;
}

.product-categories a, .widget_layered_nav ul a {
	color: var(--arynaz-text-muted);
	text-decoration: none;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
}

.product-categories a::before, .widget_layered_nav ul a::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--arynaz-border);
	margin-left: 10px;
	transition: all 0.2s;
}

.product-categories a:hover, .widget_layered_nav ul a:hover,
.product-categories .current-cat a {
	color: var(--arynaz-walnut);
}

.product-categories a:hover::before, .widget_layered_nav ul a:hover::before,
.product-categories .current-cat a::before {
	background-color: var(--arynaz-walnut);
	transform: scale(1.5);
}

.count {
	font-size: 13px;
	color: var(--arynaz-text-muted);
	background: var(--arynaz-bg);
	padding: 2px 8px;
	border-radius: var(--arynaz-radius-pill);
}

/* Custom Price Slider Fallback */
.price_slider_amount {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.price_slider_amount .button {
	background: var(--arynaz-walnut);
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: var(--arynaz-radius-md);
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	transition: opacity 0.2s;
}

.price_slider_amount .button:hover {
	opacity: 0.9;
}

.price_label {
	font-size: 14px;
	color: var(--arynaz-text-muted);
	width: 100%;
	margin-top: 8px;
}

/* Shop Toolbar */
.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	background: var(--arynaz-surface);
	padding: 16px 24px;
	border-radius: var(--arynaz-radius-lg);
	border: 1px solid var(--arynaz-border);
}

.woocommerce-ordering select {
	padding: 10px 16px;
	border: 1px solid var(--arynaz-border);
	border-radius: var(--arynaz-radius-md);
	background: var(--arynaz-bg);
	font-family: inherit;
	outline: none;
	cursor: pointer;
}

.woocommerce-result-count {
	margin: 0;
	color: var(--arynaz-text-muted);
	font-size: 14px;
}

/* Product Cards */
.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
}

.products-grid::before, .products-grid::after {
	display: none; /* override woocommerce floats */
}

.product-card {
	background: var(--arynaz-surface);
	border-radius: var(--arynaz-radius-lg);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid var(--arynaz-border);
	position: relative;
}

.product-card:hover {
	box-shadow: var(--arynaz-shadow-md);
	border-color: var(--arynaz-sand);
}

.product-image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1/1;
	background: #f9f9f9;
}

.product-image-link { display: block; width: 100%; height: 100%; }
.product-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.product-card:hover .product-image-link img {
	transform: scale(1.05);
}

.product-badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 2;
}

.badge {
	padding: 4px 10px;
	border-radius: var(--arynaz-radius-pill);
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}

.badge.sale {
	background: var(--arynaz-walnut);
}

.badge.discount {
	background: var(--arynaz-rose);
}

.product-card .product-image-wrapper .product-actions {
	position: absolute !important;
	bottom: -60px !important;
	left: 0 !important;
	right: 0 !important;
	display: flex !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 12px !important;
	transition: bottom 0.3s ease !important;
	z-index: 10 !important;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent) !important;
	opacity: 0;
	visibility: hidden;
}

.product-card:hover .product-image-wrapper .product-actions {
	bottom: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.product-card .product-image-wrapper {
	position: relative !important;
	overflow: hidden !important;
}



.action-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--arynaz-surface);
	color: var(--arynaz-text-main);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.action-btn:hover {
	background: var(--arynaz-walnut);
	color: #fff;
}
.action-btn.added {
	background: #4caf50;
	color: #fff;
}

.product-info {
	padding: 20px;
}

.product-category {
	display: block;
	font-size: 12px;
	color: var(--arynaz-text-muted);
	margin-bottom: 4px;
}

.product-title {
	font-size: 16px;
	margin-bottom: 8px;
	line-height: 1.4;
}

.product-price, .product-price .amount, .product-price ins .amount, .product-price bdi {
	font-weight: 700 !important;
	color: var(--arynaz-walnut) !important;
}
.product-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.product-price del, .product-price del .amount, .product-price del bdi {
	color: var(--arynaz-text-muted) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	text-decoration: line-through;
}

.product-price ins {
	text-decoration: none !important;
}

/* Pagination */
.woocommerce-pagination {
	margin-top: 40px;
}

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	padding: 0;
}

.woocommerce-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--arynaz-radius-md);
	background: var(--arynaz-surface);
	border: 1px solid var(--arynaz-border);
	color: var(--arynaz-text-main);
	font-weight: 500;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
	background: var(--arynaz-walnut);
	color: #fff;
	border-color: var(--arynaz-walnut);
}

/* Responsive */
@media (max-width: 1200px) {
	.products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
	.shop-layout {
		grid-template-columns: 1fr;
	}
	
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.shop-sidebar {
		display: none; /* Mobile sidebar hidden by default */
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 300px;
		background: var(--arynaz-surface);
		z-index: 1000;
		padding: 24px;
		overflow-y: auto;
		box-shadow: var(--arynaz-shadow-lg);
	}
	
	.shop-sidebar.active {
		display: flex;
	}
}

@media (max-width: 768px) {
	.products-grid { grid-template-columns: repeat(2, 1fr); }
	.shop-toolbar { flex-direction: column; gap: 16px; align-items: stretch; }
	.product-card .product-image-wrapper .product-actions { bottom: 0 !important; background: transparent; padding: 8px; justify-content: flex-end;}
	.action-btn { width: 32px; height: 32px; box-shadow: var(--arynaz-shadow-sm);}
	.action-btn svg { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.product-info { padding: 12px; }
	.product-title { font-size: 14px; }
	.product-price { font-size: 14px; }
}

/* Beautiful Hover Effect for Product Images */
.product-image-wrapper {
	position: relative;
	overflow: hidden;
	background: #f9f9f9;
}

.product-image-wrapper::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.05);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.product-card:hover .product-image-wrapper::after {
	opacity: 1;
}

.product-image-link img {
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.product-card:hover .product-image-link img {
	transform: scale(1.1);
	filter: brightness(0.95);
}

.product-card {
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Cart Drawer Quantity Control */
.mini-cart-qty-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	width: 100%;
}

.cart-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--arynaz-border);
	border-radius: var(--arynaz-radius-sm);
	overflow: hidden;
	background: #fff;
	height: 32px;
}

.qty-btn {
	background: transparent;
	border: none;
	width: 32px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: var(--arynaz-text-main);
	transition: background 0.2s ease;
}

.qty-btn:hover {
	background: var(--arynaz-sand);
}

.cart-qty-input {
	width: 40px;
	text-align: center;
	border: none;
	font-size: 14px;
	pointer-events: none;
	background: transparent;
	color: var(--arynaz-text-main);
	padding: 0;
}

.mini-cart-price {
	font-weight: 600;
	color: var(--arynaz-text-main);
}

/* Checkout and Cart Pages Styles */
.checkout-steps .step.active .step-icon {
    box-shadow: 0 0 0 4px rgba(var(--arynaz-primary-rgb, 192,160,128), 0.2);
}
.cart-table th {
    background: #f9f9f9;
    font-weight: 500;
}
.cart-page-qty-plus, .cart-page-qty-minus {
    font-weight: bold;
}

/* Grid rules */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.shop-content .products-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 992px) {
    .products-grid, .shop-content .products-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Global Quantity Buttons */
.woocommerce .quantity,
.woocommerce-page .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--arynaz-border);
    border-radius: var(--arynaz-radius-md);
    height: 48px;
    overflow: hidden;
    background: #fff;
    width: max-content;
}
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
    width: 45px;
    height: 100%;
    border: none !important;
    text-align: center;
    font-size: 16px;
    font-family: inherit;
    -moz-appearance: textfield;
    background: transparent;
    padding: 0;
    box-shadow: none !important;
    outline: none !important;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-page .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-page .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce .quantity .qty-btn,
.woocommerce-page .quantity .qty-btn {
    width: 35px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--arynaz-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}
.woocommerce .quantity .qty-btn:hover,
.woocommerce-page .quantity .qty-btn:hover {
    color: var(--arynaz-walnut);
    background: var(--arynaz-sand);
}
.woocommerce .quantity.hidden, .woocommerce-page .quantity.hidden {
    display: none !important;
}
