/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Galeria dwukolumnowa - shortcode [galeria_2kolumny] */
.galeria-2kolumny {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	padding: 0;
}

/* 1 zdjęcie = pełna szerokość */
.galeria-2kolumny--count-1 {
	grid-template-columns: 1fr;
}

.galeria-2kolumny__item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
}

.galeria-2kolumny--count-1 .galeria-2kolumny__item {
	aspect-ratio: auto;
}

.galeria-2kolumny__link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.galeria-2kolumny__zoom-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.galeria-2kolumny__zoom-icon::before {
	content: "";
	position: absolute;
	width: 3.5rem;
	height: 3.5rem;
	background: rgba(0, 0, 0, 0.55);
}

.galeria-2kolumny__zoom-icon svg {
	position: relative;
	width: 1.75rem;
	height: 1.75rem;
	color: #fff;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.galeria-2kolumny__link:hover .galeria-2kolumny__zoom-icon {
	opacity: 1;
}

.galeria-2kolumny__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.galeria-2kolumny--count-1 .galeria-2kolumny__img {
	height: auto;
	object-fit: contain;
}

.galeria-2kolumny__link:hover .galeria-2kolumny__img {
	opacity: 0.9;
}

/* Lightbox – powiększanie zdjęć */
.galeria-2kolumny-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.galeria-2kolumny-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.galeria-2kolumny-lightbox__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.9);
	cursor: zoom-out;
}

.galeria-2kolumny-lightbox__img {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
}

.galeria-2kolumny-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 1;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.galeria-2kolumny-lightbox__close svg {
	width: 1.25rem;
	height: 1.25rem;
}

.galeria-2kolumny-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.galeria-2kolumny-lightbox__prev,
.galeria-2kolumny-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
	display: none;
	align-items: center;
	justify-content: center;
}

.galeria-2kolumny-lightbox__prev {
	left: 1rem;
}

.galeria-2kolumny-lightbox__next {
	right: 1rem;
}

.galeria-2kolumny-lightbox__prev:hover,
.galeria-2kolumny-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.galeria-2kolumny-lightbox__prev svg,
.galeria-2kolumny-lightbox__next svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* ===== Wishlist – ikonka w navbarze [wishlist_icon] ===== */
.wishlist-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 2rem;
	height: 2rem;
	color: currentColor;
	text-decoration: none;
}

.wishlist-nav-icon__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wishlist-nav-icon__icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 1px;
	fill: none;
}

@media (max-width: 480px) {
	.wishlist-nav-icon__icon svg {
		width: 20px;
		height: 20px;
	}
	
	.wishlist-heart .wishlist-heart__icon svg {
		width: 18px !important;
		height: 18px !important;
	}

}

.wishlist-nav-icon__badge {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 0.25rem;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.125rem;
	text-align: center;
	color: #fff;
	background: #1a1a1a;
	border-radius: 9999px;
}

.wishlist-nav-icon__badge--hidden {
	opacity: 0;
	pointer-events: none;
}

/* ===== Wishlist – shortcode [wishlist_heart] ===== */
.wishlist-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
/* 	width: 2.25rem;
	height: 2.25rem; */
	padding: 0;
	border: none;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.wishlist-heart:hover {
	transform: scale(1.1);
}

.wishlist-heart:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wishlist-heart .wishlist-heart__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wishlist-heart .wishlist-heart__icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 1px;
	transition: fill 0.2s ease;
}

.wishlist-heart:not(.is-active) .wishlist-heart__icon svg {
	fill: none;
}

.wishlist-heart.is-active .wishlist-heart__icon svg {
	fill: currentColor;
}

/* ===== Wishlist – strona [wishlist_produkty] ===== */
.wishlist-produkty {
	padding: 1rem 0;
}

.wishlist-produkty__empty {
	text-align: center;
	padding: 2rem;
}

.wishlist-produkty__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.5rem;
}

.wishlist-produkty__item {
	position: relative;
}

.wishlist-produkty__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wishlist-produkty__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f5;
}

.wishlist-produkty__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wishlist-produkty__title {
	display: block;
	margin-top: 0.5rem;
	font-weight: 500;
}

.wishlist-produkty__price {
	display: block;
	margin-top: 0.25rem;
}

.wishlist-produkty__item .wishlist-heart {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
}

/* ===== Wishlist – komunikat ===== */
.wishlist-notice {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(1rem);
	padding: 0.75rem 1.25rem;
	background: var(--text-title, #1a1a1a);
	color: #fff;
	font-size: 0.9rem;
	border-radius: 0.25rem;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.wishlist-notice--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ===== Licytacja – formularz na stronie produktu [auction_box] ===== */
.tadam-auction-box {
	padding: 1.75rem 0;
	margin: 2rem 0;
}

.tadam-auction-box__current {
	margin-bottom: 1.25rem;
}

.tadam-auction-box__bid {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
	color: #0f0f0f;
}

.tadam-auction-box__history-btn {
	margin-top: 0.5rem;
	padding: 0.45rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fafafa;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s ease;
	color: #333;
}

.tadam-auction-box__history-btn:hover {
	background: #f0f0f0;
	border-color: rgba(0, 0, 0, 0.18);
}

/* Countdown – „Do końca aukcji” */
.tadam-auction-box__countdown-block {
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.tadam-auction-box__countdown-block.is-finished {
	opacity: 0.65;
}

.tadam-auction-box__countdown-label {
	display: block;
	font-size: 0.8rem;
	margin-bottom: 0.6rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.tadam-auction-box__countdown {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #0f0f0f;
	letter-spacing: -0.01em;
}

.tadam-auction-box__countdown-part {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
}

.tadam-auction-box__countdown-sep {
	display: inline-block;
	width: 2px;
	height: 0.9em;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 1px;
	margin: 0 0.25rem;
	vertical-align: middle;
}

.tadam-auction-box__min {
	font-size: 0.9rem;
	margin: 0 0 1rem 0;
	color: #555;
}

.tadam-auction-box__login-required {
	margin-top: 0.75rem;
}

.tadam-auction-box__login-required p {
	margin: 0 0 0.5rem 0;
}

.tadam-auction-box__login-required .tadam-auction-form__btn {
	display: inline-block;
	text-decoration: none;
}

/* Formularz – input i przycisk */
.tadam-auction-form__row-inline {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tadam-auction-form__input {
	flex: 1;
	min-width: 12rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	font-size: 1rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tadam-auction-form__input::placeholder {
	color: #999;
}

.tadam-auction-form__input:focus {
	outline: none;
	border-color: #0f0f0f;
	box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}

.tadam-auction-form__btn {
	padding: 0.75rem 1.75rem;
	background: #0f0f0f;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.tadam-auction-form__btn:hover:not(:disabled) {
	background: #262626;
	transform: translateY(-1px);
}

.tadam-auction-form__btn:active:not(:disabled) {
	transform: translateY(0);
}

.tadam-auction-form__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tadam-auction-box__msg {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

.tadam-auction-box__msg--success {
	color: #0d9488;
}

.tadam-auction-box__msg--error {
	color: #dc2626;
}

.tadam-auction-box__ended {
	font-weight: 500;
	color: #666;
	margin: 0;
}

.tadam-auction-box__payment {
	margin-top: 1rem;
}

.tadam-auction-box__pay-link {
	display: inline-flex;
	text-decoration: none;
}

.tadam-auction-box__ended--winner {
	color: #0d9488;
}

.tadam-auction-box__ended--no-winner {
	color: #dc2626;
}

/* ===== Licytacja – lista produktów [auction_list] ===== */
.tadam-auction-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
	padding: 1rem 0;
}

.tadam-auction-list__empty {
	text-align: center;
	padding: 2rem;
	color: #666;
}

.tadam-auction-list__item {
	position: relative;
}

.tadam-auction-list__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tadam-auction-list__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f5;
	border-radius: 0.25rem;
}

.tadam-auction-list__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tadam-auction-list__title {
	display: block;
	margin-top: 0.5rem;
	font-weight: 500;
}

.tadam-auction-list__price {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9rem;
}

.tadam-auction-list__countdown {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	color: #666;
	font-variant-numeric: tabular-nums;
}

/* ===== Licytacja – popup historii ofert ===== */
.tadam-auction-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tadam-auction-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.tadam-auction-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.tadam-auction-popup__content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 0.25rem;
	padding: 1.5rem;
	max-width: 24rem;
	width: 90%;
	max-height: 80vh;
	overflow: auto;
}

.tadam-auction-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
}

.tadam-auction-popup__close:hover {
	opacity: 1;
}

.tadam-auction-popup__title {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.tadam-auction-popup__body {
	font-size: 0.9rem;
}

.tadam-auction-history__header {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 0 0.5rem 0;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	font-size: 0.8rem;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tadam-auction-history__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tadam-auction-history__item {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tadam-auction-history__item:last-child {
	border-bottom: none;
}

.tadam-auction-history__amount {
	font-weight: 600;
}

.tadam-auction-history__bidder {
	color: #888;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.tadam-auction-history__date {
	color: #666;
	font-size: 0.85rem;
}

.tadam-auction-history__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tadam-auction-history__page-btn {
	padding: 0.5rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fafafa;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	color: #333;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.tadam-auction-history__page-btn:hover:not(:disabled) {
	background: #f0f0f0;
}

.tadam-auction-history__page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tadam-auction-history__page-info {
	font-size: 0.85rem;
	color: #666;
	text-align: center;
	flex: 1;
}
