/* ========================================
   DROPDOWN MENU STYLES
   Ekstrahowane z polaris.less (linie 3258-3450)
   Version: 1.1.0
   Adaptacja dla motywu potomnego z zachowaniem color-scheme
   ======================================== */

/* === GRID OFERTAS (Special Offers Grid) === */
.offers-grid {
	margin-top: 8px;
	display: table;
	width: 100%;
	height: 100%;
	table-layout: fixed;
	height: 360px;
}

/* === POJEDYNCZA OFERTA === */
.offers-grid .offer {
	height: 100%;
	display: table-cell;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	vertical-align: middle;
	text-align: center;
	position: relative;
}

/* === TYTUŁ OFERTY === */
.offers-grid .offer .title {
	color: #fff;
	border: #fff 1px solid;
	border-radius: 7px;
	position: relative;
	z-index: 10;
	display: inline-block;
	padding: 15px 20px;
	transition: all 0.2s ease-in-out;
	opacity: 1;
	width: 80%;
	text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 0;
}

.offers-grid .offer .title h2 {
	font-size: 24px;
	line-height: 26px;
	font-weight: 900;
	margin-bottom: 5px;
	transition: all 0.2s ease-in-out;
	white-space: normal;
	color: #fff !important;
}

.offers-grid .offer .title p {
	font-size: 16px;
	transition: all 0.2s ease-in-out;
	margin: 0;
	color: #fff !important;
}

/* === PRZYCISK "SHOP NOW" === */
.offers-grid .offer .btn-medium-2 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	z-index: 10;
	opacity: 0;
	transition: all 0.2s ease-in-out;
	text-shadow: none;
}

.offers-grid .offer .btn-medium-2:hover {
	background: var(--accent-orange-bright, #ff742e) !important;
}

/* === LINK WRAPPER === */
.offers-grid .offer .start-shopping {
	width: 100%;
	height: 360px;
	position: absolute;
	top: 0;
	left: 0;
}

/* === OVERLAY PATTERN (Scanlines Effect) === */
.offers-grid .offer:before {
	content: "";
	width: 100%;
	height: 360px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	background: url(../../planetshine-polaris/theme/assets/images/pattern-scanlines-1.png) 0 0 repeat;
	z-index: 1;
	transition: all 0.2s ease-in-out;
	opacity: 1;
}

/* === HOVER EFFECTS === */
.offers-grid .offer:hover:before {
	opacity: 0;
}

.offers-grid .offer:hover .title {
	opacity: 0;
	visibility: hidden;
	width: 100%;
}

.offers-grid .offer:hover .title h2 {
	font-size: 30px;
}

.offers-grid .offer:hover .title p {
	font-size: 20px;
}

.offers-grid .offer:hover .btn-medium-2 {
	opacity: 1;
}

/* === TAG OFFER (Corner Tag) === */
.offers-grid .offer .offer-tag {
	width: 106px;
	height: 106px;
	overflow: hidden;
	position: absolute;
	top: 0;
	z-index: 10;
	color: #fff;
	text-transform: uppercase;
	font-size: 20px;
	line-height: 22px;
	text-align: left;
}

.offers-grid .offer .offer-tag:after {
	content: "";
	width: 150px;
	height: 150px;
	background: var(--accent-orange-bright, #ff742e);
	display: block;
	position: absolute;
	z-index: 10;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	top: -76px;
	left: -76px;
}

.offers-grid .offer .offer-tag span {
	position: absolute;
	top: 7px;
	z-index: 100;
	width: 65px;
	text-align: center;
}

.offers-grid .offer .offer-tag b {
	font-weight: 700;
	display: block;
}

/* === TAG OFFER 2 (Center Top Tag) === */
.offers-grid .offer .offer-tag-2 {
	font-size: 16px;
	line-height: 16px;
	font-weight: 900;
	text-transform: uppercase;
	padding: 2px 4px 1px 4px;
	display: inline-block;
	vertical-align: middle;
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translate(-50%, 0);
	-webkit-transform: translate(-50%, 0);
	z-index: 1000;
	color: #fff;
	background: var(--accent-orange-bright, #ff742e);
}

/* === TAG BIG (Large Badge) === */
.offers-grid .offer .tag-big {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	z-index: 100;
}

.offers-grid .offer .tag-big.tag-bottom {
	top: 0;
	left: 50%;
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 767px) {
	.offers-grid {
		display: block;
		height: auto;
	}

	.offers-grid .offer {
		display: block;
		height: 360px;
		margin-bottom: 10px;
	}

	.offers-grid .offer .title {
		width: 90%;
	}
}

/* === INTEGRACJA Z WIDGET DROPDOWN === */
.menu .dropdown-menu .offers-grid {
	margin-top: 0;
}

/* === FIX: Dropdown Ekspresy — 2 karty równomiernie na pełnej szerokości === */
#polaris_dropdown_special_offers-5 .offers-grid .offer:empty,
#polaris_dropdown_special_offers-5 .offers-grid .offer:not(:has(*)) {
	display: none !important;
	flex: 0 0 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

#polaris_dropdown_special_offers-5 .offers-grid {
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	height: 360px;
}

#polaris_dropdown_special_offers-5 .offers-grid .offer {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

#polaris_dropdown_special_offers-5 .offers-grid .offer:first-child .title {
	border-color: rgba(255, 255, 255, 0.95);
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
}

/* Dopasowanie do megamenu z color-scheme.css */
.menu .dropdown-menu .offers-grid .offer .title {
	border-color: var(--mega-border, rgba(255, 255, 255, 0.6));
}

.menu .dropdown-menu .offers-grid .offer:hover .title {
	border-color: var(--mega-border-hover, rgba(255, 255, 255, 0.9));
}