/* 
 * Custom CSS dla Universal Theme
 * Tutaj umieszczaj style specyficzne dla konkretnego sklepu
 * 
 * UWAGA: Zmienne CSS są zdefiniowane w tailwind.css
 * Edytuj je tam, nie tutaj!
 */

/* === RESET I PODSTAWY === */
* {
	box-sizing: border-box;
}

.universal-theme {
	font-family: var(--theme-font-primary);
}

.about-info h1,
.about-info h2,
.about-info h3,
.about-info h4 {
	padding-bottom: 10px;
	font-weight: 600;
}

.about-info p {
	font-weight: 300;
}

.page-template-about .site-footer {
	margin-top: 0 !important;
}

/* === KONTENERY === */
.universal-container {
	max-width: var(--theme-container-width);
	margin: 0 auto;
	padding: 0 var(--theme-spacing-md);
}

/* === PRZYCISKI === */
.universal-btn {
	display: inline-block;
	padding: var(--theme-spacing-sm) var(--theme-spacing-lg);
	border: none;
	border-radius: var(--theme-border-radius);
	background-color: var(--theme-accent);
	color: white;
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.universal-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--theme-box-shadow);
	color: white;
}

.universal-btn-primary {
	background-color: var(--theme-primary);
}

.universal-btn-secondary {
	background-color: var(--theme-secondary);
}

/* === WOOCOMMERCE CUSTOMIZATION === */

/* Lista produktów */
.woocommerce ul.products,
.woocommerce ul.products.columns-3 {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 20px 2px !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Debug - usuń pseudo elementy */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products.columns-3::before,
.woocommerce ul.products.columns-3::after {
	display: none !important;
	content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products.columns-3 li.product {
	position: relative;
	overflow: hidden;
	width: auto !important; /* Nadpisz domyślne 29.4117647059% */
	float: none !important; /* Usuń float */
	margin-right: 0 !important; /* Usuń margin-right */
	margin-left: 0 !important; /* Usuń margin-left */
	margin-top: 0 !important; /* Usuń margin-top */
	margin-bottom: 0 !important; /* Usuń margin-bottom */
}

/* Obrazy produktów */
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
	border-radius: var(--theme-border-radius);
	transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.05);
}

/* Tytuły produktów */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: var(--theme-spacing-sm) 0;
	color: var(--theme-text-dark);
}

/* Ceny */
.woocommerce .price {
	font-weight: 600;
	color: var(--theme-primary);
}

.woocommerce .price del {
	color: var(--theme-text-light);
	font-weight: normal;
}

/* Przyciski dodaj do koszyka */
.woocommerce ul.products li.product .button {
	background-color: var(--theme-accent);
	border: none;
	border-radius: var(--theme-border-radius);
	padding: var(--theme-spacing-sm) var(--theme-spacing-md);
	font-weight: 500;
	transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
	background-color: var(--theme-primary);
	transform: translateY(-2px);
}

/* Quick View */
.universal-quick-view {
	position: absolute;
	top: var(--theme-spacing-sm);
	right: var(--theme-spacing-sm);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
	border-radius: var(--theme-border-radius);
	font-size: 0.8rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product:hover .universal-quick-view {
	opacity: 1;
}

/* === PRELOADER === */
.universal-preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 0.5s ease;
}

.universal-preloader.hidden {
	opacity: 0;
	pointer-events: none;
}

.universal-spinner {
	width: 70px;
	display: flex;
	justify-content: space-between;
}

.universal-spinner > div {
	width: 18px;
	height: 18px;
	background-color: var(--theme-primary);
	border-radius: 100%;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.universal-spinner .bounce1 {
	animation-delay: -0.32s;
}

.universal-spinner .bounce2 {
	animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
	0%,
	80%,
	100% {
		transform: scale(0);
	}
	40% {
		transform: scale(1);
	}
}

/* === BREADCRUMBS === */
.universal-breadcrumbs {
	padding: var(--theme-spacing-md) 0;
	color: var(--theme-text-light);
	font-size: 0.9rem;
}

.universal-breadcrumbs a {
	color: var(--theme-primary);
	text-decoration: none;
}

.universal-breadcrumbs a:hover {
	text-decoration: underline;
}

/* === STICKY FOOTER === */
html,
body {
	height: 100%;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#content {
	flex: 1 0 auto;
}

.site-footer {
	flex-shrink: 0;
	margin-top: auto;
	padding-bottom: 20px !important;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
	:root {
		--theme-spacing-md: 0.75rem;
		--theme-spacing-lg: 1rem;
	}

	.woocommerce ul.products,
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: var(--theme-spacing-md);
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products,
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: var(--theme-spacing-sm);
	}

	.woocommerce ul.products li.product {
		padding: var(--theme-spacing-sm);
	}
}

/* === UTILITY CLASSES === */
.text-center {
	text-align: center;
}
.text-left {
	text-align: left;
}
.text-right {
	text-align: right;
}

.mt-0 {
	margin-top: 0;
}
.mt-1 {
	margin-top: var(--theme-spacing-sm);
}
.mt-2 {
	margin-top: var(--theme-spacing-md);
}
.mt-3 {
	margin-top: var(--theme-spacing-lg);
}

.mb-0 {
	margin-bottom: 0;
}
.mb-1 {
	margin-bottom: var(--theme-spacing-sm);
}
.mb-2 {
	margin-bottom: var(--theme-spacing-md);
}
.mb-3 {
	margin-bottom: var(--theme-spacing-lg);
}

.p-0 {
	padding: 0;
}
.p-1 {
	padding: var(--theme-spacing-sm);
}
.p-2 {
	padding: var(--theme-spacing-md);
}
.p-3 {
	padding: var(--theme-spacing-lg);
}

/* === CHECKOUT ORDER REVIEW ENHANCEMENTS === */
.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--theme-spacing-lg);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: var(--theme-spacing-sm);
	text-align: left;
	vertical-align: top;
}

.woocommerce-checkout-review-order-table thead th {
	background-color: var(--theme-background-alt);
	font-weight: 600;
	color: var(--theme-text-dark);
	border-bottom: 2px solid var(--theme-primary);
}

/* Product Info Styling */
.product-info {
	display: flex;
	align-items: flex-start;
	gap: var(--theme-spacing-sm);
}

.product-thumbnail {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
}

.product-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--theme-border-radius);
}

.product-details {
	flex: 1;
}

.product-title {
	display: block;
	font-size: 0.9rem;
	color: var(--theme-text-dark);
	margin-bottom: var(--theme-spacing-xs);
	line-height: 1.3;
}

.product-quantity {
	display: flex;
	align-items: center;
	gap: var(--theme-spacing-xs);
	margin-top: var(--theme-spacing-xs);
	flex-wrap: wrap;
}

.quantity-label {
	font-size: 0.8rem;
	color: var(--theme-text-light);
	font-weight: 500;
}

.qty-input {
	width: 60px;
	padding: 4px 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 0.8rem;
}

.qty-input:focus {
	outline: none;
	border-color: var(--theme-primary);
	box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.update-quantity-btn {
	background: var(--theme-secondary);
	color: white;
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.update-quantity-btn:hover {
	background: #2980b9;
	transform: translateY(-1px);
}

.update-quantity-btn.changed {
	background: var(--theme-accent);
	animation: pulse 1s infinite;
}

.update-quantity-btn.updating {
	background: #95a5a6;
	cursor: not-allowed;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* Remove Button Styling */
.product-remove {
	text-align: center;
	width: 80px;
}

.remove-product {
	background: #6a263a;
	color: white;
	padding: 8px 12px;
	border-radius: var(--theme-border-radius);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	transition: all 0.3s ease;
	cursor: pointer;
}

.remove-product:hover {
	background: #6a263a;
	transform: translateY(-1px);
	color: white;
	text-decoration: none;
}

.remove-product.removing {
	background: #95a5a6;
	cursor: not-allowed;
}

.remove-icon {
	font-size: 1.2rem;
	line-height: 1;
}

.remove-text {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Totals Styling */
.woocommerce-checkout-review-order-table tfoot th {
	font-weight: 600;
	color: var(--theme-text-dark);
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--theme-primary);
	border-top: 2px solid var(--theme-primary);
	padding-top: var(--theme-spacing-md);
}

/* Notifications */
.checkout-notification {
	padding: var(--theme-spacing-sm) var(--theme-spacing-md);
	border-radius: var(--theme-border-radius);
	margin-bottom: var(--theme-spacing-sm);
	font-size: 0.9rem;
	font-weight: 500;
}

.checkout-notification.success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.checkout-notification.error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
	.woocommerce-checkout-review-order-table {
		font-size: 0.8rem;
	}

	.product-title {
		display: block;
		font-size: 10px !important;
		color: var(--theme-text-dark);
		margin-bottom: var(--theme-spacing-xs);
		line-height: 1.3;
	}

	.product-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: var(--theme-spacing-xs);
	}

	.product-thumbnail {
		width: 50px;
		height: 50px;
	}

	.product-quantity {
		justify-content: center;
	}

	.woocommerce-checkout-review-order-table th:last-child,
	.woocommerce-checkout-review-order-table td:last-child {
		width: 60px;
	}

	.remove-text {
		display: none;
	}

	.remove-product {
		padding: 6px;
		min-width: 32px;
		justify-content: center;
	}

	.storefront-breadcrumb {
		padding: 10px 16px 0 !important;
	}
}

.woocommerce-breadcrumb a:first-of-type::before {
	display: none !important;
}

.woocommerce-breadcrumb {
	color: black !important;
	font-size: 10px !important;
	font-weight: 300 !important;
	font-family: 'Inter', 'sans-serif';
	text-decoration: none !important;
}

.woocommerce-breadcrumb a {
	text-decoration: none !important;
}

form.universal-search-form {
	margin-bottom: 0;
}

.button-primary {
	background: var(--theme-primary) !important;
	color: white !important;
	padding: 8px 14px;
	font-family: 'Inter', 'sans-serif';
	font-size: 14px;
	border: 1px solid black;
}

.button-secondary {
	background: var(--theme-secondary) !important;
	color: black !important;
	border: 1px solid black !important;
	padding: 8px 14px;
	font-family: 'Inter', 'sans-serif';
	font-size: 14px;
	border-radius: 0 !important;
}

#content {
	width: 100% !important;
}

.storefront-breadcrumb {
	max-width: 1380px !important;
	padding: 2rem 16px;
	margin: 0 auto !important;
	width: 100%;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background-color: #000000 !important;
}

.hentry .entry-content .woocommerce-MyAccount-navigation ul {
	border-top: none !important;
}

.wrapper,
body.page-template-default .site-content {
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 16px;
}

@media (min-width: 1440px) {
	.wrapper,
	body.page-template-default .site-content {
		padding: 0;
	}
	.storefront-breadcrumb,
	.single-product #content {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.storefront-breadcrumb {
		width: 100%;
		padding-bottom: 50px;
		margin: 0 auto !important;
	}
}

h2.title {
	font-size: 32px;
	margin-bottom: 12px;
	letter-spacing: -1px;
}

.category-item.active {
	z-index: 100;
}

@media (min-width: 1024px) {
	.product-categories-grid {
		width: 100%;
	}

	.product-categories-grid > .category-item {
		flex: 1 1 0;
		min-width: 0;
	}

	.product-categories-grid > .category-item + .category-item {
		border-left: 1px solid #000;
	}
}

.product-categories-grid > .category-item {
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
	width: 100%;
}

.product-categories-grid > .category-item:hover .category-name {
	color: #fff !important;
}

a:focus,
button:focus,
.button.alt:focus,
input:focus,
textarea:focus,
input[type='button']:focus,
input[type='reset']:focus,
input[type='submit']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='url']:focus,
input[type='password']:focus,
input[type='search']:focus {
	outline: none !important;
}

.yith-add-to-wishlist-button-block button:hover {
	background-color: transparent !important;
}

.klaviyo-form-T8xFYE form {
	padding: 0 !important;
}

#post-339 h1 {
	font-size: 24px;
	text-align: center;
	padding-bottom: 50px;
}

.wishlist-title-container {
	display: none;
}

.entry-header h1.entry-title {
	font-size: 24px;
	text-align: center;
	padding-bottom: 50px;
	font-family: 'Inter', 'sans-serif';
}

@media (max-width: 639px) {
	.entry-header h1.entry-title {
		padding-bottom: 10px;
		padding-top: 20px;
	}
}

.product-price {
	font-family: 'Arial', sans-serif;
}

@media (max-width: 1023px) {
	.universal-header-row .universal-header-account,
	.universal-header-row .universal-header-wishlist,
	.universal-header-row .universal-header-cart {
		display: none !important;
		visibility: hidden !important;
	}

	footer.bottom-footer {
		margin-bottom: 40px !important;
	}
}

/* === WYŁĄCZENIE HOVER EFFECTS NA URZĄDZENIACH DOTYKOWYCH === */
@media (hover: none) {
	button:hover,
	input[type='button']:hover,
	input[type='submit']:hover,
	a button:hover {
		background-color: inherit;
		transform: none;
		box-shadow: none;
		opacity: inherit;
	}

	.universal-btn:hover {
		transform: none;
		box-shadow: none;
	}

	.woocommerce ul.products li.product:hover img {
		transform: none;
	}

	.woocommerce ul.products li.product .button:hover {
		background-color: var(--theme-accent);
		transform: none;
	}

	.woocommerce ul.products li.product:hover .universal-quick-view {
		opacity: 0;
	}

	.product-categories-grid > .category-item:hover .category-name {
		color: inherit !important;
	}

	.update-quantity-btn:hover {
		transform: none;
	}

	.remove-product:hover {
		transform: none;
	}

	.yith-add-to-wishlist-button-block button:hover {
		background-color: transparent !important;
	}
}

.easypack-parcel-machine .easypack-parcel-machine-label {
	display: none !important;
}

.easypack-parcel-machine-select {
	width: 100% !important	;
}

.easypack_show_geowidget {
	margin: 10px !important;
	max-width: none !important;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: #000000 !important;
}

@media (min-width: 768px) and (max-width: 1439px) {
	.storefront-breadcrumb {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

body.default-white {
	--color-primary: rgb(106, 38, 58) !important;
}

div#page {
	overflow-x: hidden !important;
}

.slide-in-cart-item.is-gift-item > .cart-item-total {
	display: none !important;
}

input[type='email']:focus,
textarea:focus,
input[type='text']:focus {
	--tw-ring-color: white !important;
}

#menu-primary-menu > li:first-of-type,
#menu-primary-menu > li a:first-of-type {
	padding-left: 0 !important;
}

@media (min-width: 900px) {
	.page-template-about .contact-elements {
		display: flex;
		flex-direction: row;
		justify-content: center;
	}

	.page-template-about .social-links {
		display: none;
	}
}

.page-template-contact footer,
.page-template-about footer {
	margin-top: 0 !important;
}

#sb_instagram #sbi_images {
	padding: 0 10px !important;
}

.L5Fo6c-PQbLGe {
	width: auto !important;
}

.woocommerce-ordering {
	margin-right: 0 !important;
}

.woocommerce-checkout .col-full {
	max-width: none !important;
}

@media (max-width: 1023px) {
	.woocommerce-checkout .col-full {
		max-width: 1380px !important;
		margin: 0 auto !important;
	}
}
.woocommerce-checkout #content,
.woocommerce-checkout #content .col-full {
	padding: 0;
}
.woocommerce-checkout #content .izi-widget-placeholder.izi-widget-order,
.woocommerce-checkout #content .woocommerce-checkout #customer_details {
	padding: 0 16px;
}
