/* WooCommerce Product Single Layout Styles */

/* WooCommerce Product List Styles */
ul.products {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}

ul.products li.product {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products li.product a {
	display: block;
	text-decoration: none;
	width: 100%;
	height: 100%;
}

ul.products li.product .onsale {
	display: none;
}

ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title {
	display: none;
}

ul.products li.product .price {
	display: none;
}

ul.products li.product .star-rating {
	display: none;
}

ul.products li.product .button {
	display: none;
}

/* WooCommerce Cart Styles */
.woocommerce-cart-form {
	margin: 0;
}

.woocommerce-cart-form table.shop_table {
	border: none;
	border-collapse: collapse;
	width: 100%;
	margin: 0;
}

.woocommerce-cart-form table.shop_table thead {
	border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart-form table.shop_table thead th {
	padding: 1rem 0;
	text-align: left;
	font-weight: 500;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #374151;
	border: none;
}

.woocommerce-cart-form table.shop_table tbody tr {
	border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart-form table.shop_table tbody tr:last-child {
	border-bottom: none;
}

.woocommerce-cart-form table.shop_table tbody td {
	padding: 1.5rem 0;
	vertical-align: middle;
	border: none;
}

.woocommerce-cart-form table.shop_table .product-remove {
	width: 40px;
	padding-right: 1rem;
}

.woocommerce-cart-form table.shop_table .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 1.5rem;
	line-height: 1;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s ease;
}

.woocommerce-cart-form table.shop_table .product-remove a.remove:hover {
	color: #000;
}

.woocommerce-cart-form table.shop_table .product-thumbnail {
	width: 100px;
	padding-right: 1.5rem;
}

.woocommerce-cart-form table.shop_table .product-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 0;
}

.woocommerce-cart-form table.shop_table .product-thumbnail a {
	display: block;
}

.woocommerce-cart-form table.shop_table .product-name {
	padding-right: 1.5rem;
}

.woocommerce-cart-form table.shop_table .product-name a {
	color: #111827;
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.2s ease;
}

.woocommerce-cart-form table.shop_table .product-name a:hover {
	color: #374151;
}

.woocommerce-cart-form table.shop_table .product-price {
	padding-right: 1.5rem;
	text-align: right;
	font-weight: 500;
	color: #111827;
}

.woocommerce-cart-form table.shop_table .product-quantity {
	padding-right: 1.5rem;
	width: 120px;
}

.woocommerce-cart-form table.shop_table .product-quantity .quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.woocommerce-cart-form table.shop_table .product-quantity .quantity input.qty {
	width: 60px;
	padding: 0.5rem;
	border: 1px solid #d1d5db;
	text-align: center;
	font-size: 0.875rem;
	border-radius: 0;
	appearance: textfield;
}

.woocommerce-cart-form table.shop_table .product-quantity .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart-form table.shop_table .product-quantity .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce-cart-form table.shop_table .product-subtotal {
	text-align: right;
	font-weight: 500;
	color: #111827;
}

.woocommerce-cart-form .actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

.woocommerce-cart-form .actions .coupon {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce-cart-form .actions .coupon input#coupon_code {
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	font-size: 0.875rem;
	border-radius: 0;
	min-width: 200px;
}

.woocommerce-cart-form .actions .coupon button.button {
	padding: 0.75rem 1.5rem;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 0;
}

.woocommerce-cart-form .actions .coupon button.button:hover {
	background: #374151;
	border-color: #374151;
}

.woocommerce-cart-form .actions button.button[name="update_cart"] {
	padding: 0.75rem 1.5rem;
	background: transparent;
	color: #000;
	border: 1px solid #000;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 0;
}

.woocommerce-cart-form .actions button.button[name="update_cart"]:hover {
	background: #000;
	color: #fff;
}

.woocommerce .cart-collaterals {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid #e5e7eb;
}

.woocommerce .cart-collaterals .cart_totals {
	width: 100%;
	max-width: 400px;
	margin-left: auto;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: 1.5rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
	color: #111827;
}

.woocommerce .cart-collaterals .cart_totals table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce .cart-collaterals .cart_totals table tr {
	border-bottom: 1px solid #e5e7eb;
}

.woocommerce .cart-collaterals .cart_totals table tr:last-child {
	border-bottom: none;
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
	padding: 1rem 0;
	text-align: left;
	border: none;
}

.woocommerce .cart-collaterals .cart_totals table th {
	font-weight: 500;
	color: #374151;
}

.woocommerce .cart-collaterals .cart_totals table td {
	text-align: right;
	font-weight: 500;
	color: #111827;
}

.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
	font-size: 1.125rem;
	font-weight: 600;
	padding-top: 1.5rem;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout {
	margin-top: 1.5rem;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
	display: block;
	padding: 1rem 2rem;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	text-align: center;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	border-radius: 0;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
	background: #374151;
	border-color: #374151;
}

.woocommerce .return-to-shop {
	margin-top: 2rem;
}

.woocommerce .return-to-shop a.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: transparent;
	color: #000;
	border: 1px solid #000;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	border-radius: 0;
}

.woocommerce .return-to-shop a.button:hover {
	background: #000;
	color: #fff;
}

/* Responsive Cart */
@media (max-width: 768px) {
	.woocommerce-cart-form table.shop_table {
		display: block;
	}

	.woocommerce-cart-form table.shop_table thead {
		display: none;
	}

	.woocommerce-cart-form table.shop_table tbody {
		display: block;
	}

	.woocommerce-cart-form table.shop_table tbody tr {
		display: block;
		margin-bottom: 2rem;
		padding-bottom: 2rem;
		border-bottom: 1px solid #e5e7eb;
	}

	.woocommerce-cart-form table.shop_table tbody tr:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.woocommerce-cart-form table.shop_table tbody td {
		display: block;
		padding: 0.75rem 0;
		text-align: left;
	}

	.woocommerce-cart-form table.shop_table tbody td:before {
		content: attr(data-title) ": ";
		font-weight: 500;
		text-transform: uppercase;
		font-size: 0.75rem;
		letter-spacing: 0.05em;
		color: #6b7280;
	}

	.woocommerce-cart-form table.shop_table .product-remove {
		position: absolute;
		top: 0;
		right: 0;
		width: auto;
		padding: 0;
	}

	.woocommerce-cart-form table.shop_table .product-thumbnail {
		width: 100%;
		padding: 0 0 1rem 0;
	}

	.woocommerce-cart-form table.shop_table .product-thumbnail img {
		width: 100px;
		height: 100px;
	}

	.woocommerce-cart-form table.shop_table .product-name {
		padding: 0 0 1rem 0;
	}

	.woocommerce-cart-form table.shop_table .product-price {
		text-align: left;
		padding: 0 0 1rem 0;
	}

	.woocommerce-cart-form table.shop_table .product-quantity {
		width: 100%;
		padding: 0 0 1rem 0;
	}

	.woocommerce-cart-form table.shop_table .product-subtotal {
		text-align: left;
		padding: 0;
		font-size: 1.125rem;
		font-weight: 600;
	}

	.woocommerce-cart-form .actions {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.woocommerce-cart-form .actions .coupon {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-cart-form .actions .coupon input#coupon_code {
		width: 100%;
		min-width: auto;
	}

	.woocommerce-cart-form .actions button.button {
		width: 100%;
	}

	.woocommerce .cart-collaterals .cart_totals {
		max-width: 100%;
	}
}

/* Main Container */
.product-single-layout {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.product-single-container {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Product Images Section */
.product-images-section {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Product Image Slider */
.product-image-slider {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.product-slider-track {
	display: flex;
	width: 100%;
	height: 100%;
}

.product-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
}

.product-image-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8f9fa;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Slider Navigation */
.product-slider-navigation {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
	z-index: 10;
}

.product-slider-prev,
.product-slider-next {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #333;
}

.product-slider-prev:hover,
.product-slider-next:hover {
	background: rgba(255, 255, 255, 1);
	transform: scale(1.1);
}

/* Slider Dots */
.product-slider-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 10;
}

.product-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.product-slider-dot.active {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(255, 255, 255, 1);
}

/* Product Image Actions */
.product-image-actions {
	position: absolute;
	top: 2rem;
	left: 2rem;
	z-index: 10;
}

.product-enlarge-btn {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #333;
	font-size: 0.875rem;
	font-weight: 500;
}

.product-enlarge-btn:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-1px);
}

/* Product Info Overlay */
.product-info-overlay {
	position: absolute;
	top: 0;
	right: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
	backdrop-filter: blur(10px);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem;
	box-sizing: border-box;
}

.product-info-content {
	width: 100%;
	max-width: 500px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	overflow-y: auto;
}

/* Product Title */
.product_title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

/* Product Price */
.price {
	font-size: 2rem;
	font-weight: 600;
	color: #2563eb;
	margin: 0;
}

.price del {
	color: #6b7280;
	font-size: 1.25rem;
	margin-right: 0.5rem;
}

.price ins {
	text-decoration: none;
}

/* Product Rating */
.woocommerce-product-rating {
	margin: 0;
}

.star-rating {
	color: #fbbf24;
	font-size: 1.25rem;
}

/* Product Excerpt */
.woocommerce-product-details__short-description {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
}

/* Add to Cart Form */
.cart {
	margin: 0;
}

.quantity {
	margin-bottom: 1rem;
}

.quantity input {
	width: 80px;
	padding: 0.75rem;
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	font-size: 1rem;
}

.single_add_to_cart_button {
	background: #2563eb;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 1rem 2rem;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.single_add_to_cart_button:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

/* Product Meta */
.product_meta {
	margin: 0;
	padding: 0;
	border: none;
}

.product_meta span {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.product_meta a {
	color: #2563eb;
	text-decoration: none;
}

.product_meta a:hover {
	text-decoration: underline;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
	position: absolute;
	top: 2rem;
	right: 2rem;
	z-index: 10;
	background: rgba(255, 255, 255, 0.9);
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	color: #6b7280;
}

.woocommerce-breadcrumb a {
	color: #2563eb;
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.product-single-container {
		flex-direction: column;
		height: auto;
		min-height: auto;
	}

	.product-images-section {
		position: relative;
		height: 50vh;
		min-height: 300px;
	}

	.product-info-overlay {
		position: relative;
		width: 100%;
		height: auto;
		background: white;
		padding: 2rem 1rem;
	}

	.product-info-content {
		max-width: none;
		height: auto;
		gap: 1.5rem;
	}

	.product_title {
		font-size: 2rem;
	}

	.price {
		font-size: 1.5rem;
	}

	.product-slider-navigation {
		padding: 0 1rem;
	}

	.product-slider-prev,
	.product-slider-next {
		width: 40px;
		height: 40px;
	}

	.product-slider-dots {
		bottom: 1rem;
	}

	.product-image-actions {
		top: 1rem;
		left: 1rem;
	}

	.woocommerce-breadcrumb {
		position: relative;
		top: auto;
		right: auto;
		margin-bottom: 1rem;
		text-align: center;
	}
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
	.product-info-overlay {
		width: 50%;
		padding: 2rem;
	}

	.product_title {
		font-size: 2rem;
	}

	.price {
		font-size: 1.75rem;
	}
}

/* Large Screen Optimizations */
@media (min-width: 1025px) {
	.product-single-container {
		height: 80vh;
	}

	.product-info-overlay {
		width: 35%;
		padding: 4rem;
	}

	.product_title {
		font-size: 3rem;
	}

	.price {
		font-size: 2.25rem;
	}
}

/* Loading State */
.woocommerce-product-gallery {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.woocommerce-product-gallery.loaded {
	opacity: 1;
}

/* Focus States for Accessibility */
.product-slider-prev:focus,
.product-slider-next:focus,
.product-slider-dot:focus,
.product-enlarge-btn:focus,
.single_add_to_cart_button:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* Print Styles */
@media print {
	.product-single-container {
		height: auto;
	}

	.product-info-overlay {
		position: relative;
		width: 100%;
		background: white;
	}

	.product-slider-navigation,
	.product-image-actions,
	.product-slider-dots {
		display: none;
	}
}
