/**
 * Design Cart Classic – style globalne (layout, header, komponenty)
 *
 * Firma: Design Cart
 * Autor: Paweł Nosko
 */

/**
 * Design Cart Classic – główne style
 *
 * Firma: Design Cart
 * Autor: Paweł Nosko
 */

:root {
	--dcc-bg: #ffffff;
	--dcc-fg: #2c3e50;
	--dcc-footer-bg: #1a2832;
	--dcc-primary: #bac5ce;
	--dcc-secondary: #7691a4;
	--dcc-accent: #bac5ce;
	--dcc-muted: #fafafa;
	--dcc-muted-fg: #6b7280;
	--dcc-border: #e5e7eb;
	--dcc-radius: 6px;
	--dcc-container: 1280px;
	--dcc-font: "Plus Jakarta Sans", system-ui, sans-serif;
	--dcc-star-gold: #d4af37; /* royal gold */
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	overflow-x: clip;
	max-width: 100svw;
}

body {
	margin: 0;
	overflow-x: clip;
	max-width: 100svw;
	font-family: var(--dcc-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--dcc-fg);
	background: var(--dcc-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Ikony UI – nie rozciągaj do szerokości kontenera */
img.dcc-icon,
img.dc-trash-icon,
.dcc-header__logo img {
	max-width: none;
}

a {
	color: var(--dcc-secondary);
	text-decoration: none;
}

a:hover {
	color: var(--dcc-accent);
}

.dcc-container {
	width: 100%;
	max-width: var(--dcc-container);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 1024px) {
	.dcc-container {
		padding: 0 32px;
	}
}

.dcc-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.dcc-icon--sm { width: 16px; height: 16px; }
.dcc-icon--xs { width: 14px; height: 14px; }

.dcc-eyebrow {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dcc-secondary);
	margin: 0 0 8px;
}

.dcc-section-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 16px;
}

.dcc-section-title--lg {
	font-size: clamp(28px, 4vw, 36px);
}

.dcc-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.dcc-section-head__link {
	display: none;
}

@media (min-width: 1024px) {
	.dcc-section-head__link {
		display: inline-flex;
	}
}

.dcc-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dcc-secondary);
}

.dcc-link-arrow:hover {
	color: var(--dcc-accent);
}

.dcc-prose {
	color: var(--dcc-muted-fg);
	line-height: 1.75;
}

.dcc-prose p {
	margin: 0 0 16px;
}

.dcc-prose--sm {
	font-size: 14px;
}

.dcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	border-radius: var(--dcc-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dcc-btn--primary {
	background: var(--dcc-primary);
	color: #fff;
	border-color: var(--dcc-primary);
}

.dcc-btn--primary:hover {
	background: var(--dcc-accent);
	border-color: var(--dcc-accent);
	color: #fff;
}

.dcc-btn--outline {
	background: #fff;
	color: var(--dcc-fg);
	border-color: rgba(44, 62, 80, 0.2);
}

.dcc-btn--outline:hover {
	border-color: var(--dcc-secondary);
	color: var(--dcc-secondary);
}

.dcc-btn--lg {
	padding: 16px 32px;
}

.dcc-btn--sm {
	padding: 10px 16px;
	font-size: 12px;
}

.dcc-page-content {
	padding: 48px 0;
}

.dcc-main {
	overflow-x: clip;
	max-width: 100%;
}

.dcc-footer-minimal {
	background: var(--dcc-fg);
	color: rgba(255, 255, 255, 0.6);
	padding: 24px 0;
	font-size: 12px;
	text-align: center;
}

.dcc-footer-bar {
	background: var(--dcc-footer-bg);
	color: rgba(255, 255, 255, 0.3);
	padding: 24px 0;
	font-size: 12px;
}

.dcc-footer-bar__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

@media (min-width: 1024px) {
	.dcc-footer-bar__inner {
		flex-direction: row;
	}
}

.dcc-footer-minimal a {
	color: rgba(255, 255, 255, 0.8);
}

.dcc-footer-minimal a:hover {
	color: #fff;
}

.dcc-footer-minimal__copy,
.dcc-footer-bar__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.3);
}

.dcc-footer-bar__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dcc-footer-bar__menu a {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.2s ease;
}

.dcc-footer-bar__menu a:hover {
	color: rgba(255, 255, 255, 0.6);
}
/**
 * Design Cart Classic – header
 *
 * Firma: Design Cart
 * Autor: Paweł Nosko
 */

.dcc-header {
	background: #fff;
	border-bottom: 1px solid var(--dcc-border);
	z-index: 100;
}

.dcc-header--sticky {
	position: sticky;
	top: 0;
}

.dcc-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	height: auto;
	padding-top: 8px;
	gap: 0;
}

@media (min-width: 1024px) {
	.dcc-header__inner {
		flex-wrap: nowrap;
		height: 80px;
		padding-top: 0;
		gap: 16px;
	}
}

.dcc-header__logo {
	display: flex;
	justify-content: center;
	flex: 1 0 100%;
	padding: 4px 0 10px;
}

@media (min-width: 1024px) {
	.dcc-header__logo {
		display: block;
		flex: 0 0 auto;
		padding: 0;
	}
}

.dcc-header__logo img {
	height: 44px;
	width: auto;
}

@media (min-width: 1024px) {
	.dcc-header__logo img {
		height: 60px;
	}
}

.dcc-header__site-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--dcc-fg);
}

.dcc-header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.dcc-header__nav {
		display: block;
		flex: 1;
	}
}

.dcc-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dcc-menu > li {
	position: relative;
}

.dcc-menu > li > a {
	font-size: 14px;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.7);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.dcc-menu > li > a:hover,
.dcc-menu > li:hover > a {
	color: var(--dcc-secondary);
}

.dcc-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.dcc-menu > .menu-item-has-children.is-open > a::after,
.dcc-menu > .menu-item-has-children:hover > a::after {
	transform: rotate(-135deg) translateY(1px);
}

/* Mostek hover między pozycją a dropdownem */
.dcc-menu > .menu-item-has-children::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 14px;
	display: none;
}

.dcc-menu > .menu-item-has-children.is-open::before,
.dcc-menu > .menu-item-has-children:hover::before {
	display: block;
}

.dcc-menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: min(520px, calc(100svw - 32px));
	max-width: min(720px, calc(100svw - 32px));
	margin: 0;
	padding: 8px 10px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--dcc-border);
	border-radius: var(--dcc-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	z-index: 200;
	grid-template-columns: repeat(2, minmax(240px, 1fr));
	gap: 0;
}

.dcc-menu > .menu-item-has-children.is-open > .sub-menu {
	display: grid;
}

.dcc-menu .sub-menu li {
	margin: 0;
}

.dcc-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.75);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 4px;
}

.dcc-menu .sub-menu a:hover {
	color: var(--dcc-secondary);
	background: var(--dcc-muted);
}

.dcc-menu a {
	font-size: 14px;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.7);
}

.dcc-header__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	width: calc(100% + 32px);
	margin: 0 -16px;
	padding: 4px 8px;
	border-top: 1px solid var(--dcc-border);
	gap: 0;
}

@media (min-width: 1024px) {
	.dcc-header__actions {
		display: flex;
		width: auto;
		margin: 0;
		padding: 0;
		border-top: none;
		gap: 20px;
		flex: 0 0 auto;
	}
}

.dcc-header__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(44, 62, 80, 0.6);
	width: 40px;
	height: 40px;
	text-decoration: none;
}

.dcc-header__phone span {
	display: none;
}

@media (min-width: 1024px) {
	.dcc-header__phone {
		width: auto;
		height: auto;
		justify-content: flex-start;
		color: var(--dcc-secondary);
	}

	.dcc-header__phone span {
		display: inline;
	}
}

.dcc-header__phone:hover {
	color: var(--dcc-accent);
}

.dcc-header__cart,
.dcc-header__account,
.dcc-header__search-toggle,
.dcc-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: none;
	color: rgba(44, 62, 80, 0.6);
	cursor: pointer;
	text-decoration: none;
}

.dcc-header__cart:hover,
.dcc-header__account:hover,
.dcc-header__search-toggle:hover,
.dcc-header__menu-toggle:hover {
	color: var(--dcc-secondary);
}

.dcc-header__search-toggle.is-open {
	color: var(--dcc-secondary);
}

.dcc-header__menu-toggle {
	display: inline-flex;
}

@media (min-width: 1024px) {
	.dcc-header__menu-toggle {
		display: none;
	}
}

.dcc-header__menu-toggle .dcc-icon-close {
	display: none;
}

.dcc-header__menu-toggle.is-open .dcc-icon-open {
	display: none;
}

.dcc-header__menu-toggle.is-open .dcc-icon-close {
	display: block;
}

.dcc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dcc-header-search {
	border-top: 1px solid var(--dcc-border);
	background: #fff;
	padding: 12px 0;
}

.dcc-header-search[hidden]:not(.is-open) {
	display: none;
}

.dcc-header-search.is-open {
	display: block;
}

.dcc-header-search__form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dcc-header-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--dcc-border);
	border-radius: var(--dcc-radius);
	font-family: inherit;
	font-size: 15px;
	color: var(--dcc-fg);
	background: var(--dcc-muted);
}

.dcc-header-search__input:focus {
	outline: none;
	border-color: var(--dcc-secondary);
	background: #fff;
}

.dcc-header-search__submit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: var(--dcc-radius);
	background: var(--dcc-primary);
	color: #fff;
	cursor: pointer;
}

.dcc-header-search__submit:hover {
	background: var(--dcc-secondary);
}

.dcc-mobile-nav {
	border-top: 1px solid var(--dcc-border);
	background: #fff;
	padding: 16px 0;
}

.dcc-mobile-nav[hidden]:not(.is-open) {
	display: none;
}

.dcc-mobile-nav.is-open {
	display: block;
}

.dcc-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dcc-mobile-menu > li > a,
.dcc-acc-link {
	display: block;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.7);
	border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Mobile submenu – wiersz link + strzałka */
.dcc-mobile-menu__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.dcc-mobile-menu__row > a {
	flex: 1;
	border-bottom: none;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.7);
	text-decoration: none;
}

.dcc-mobile-menu__row > a:hover {
	color: var(--dcc-secondary);
}

.dcc-mobile-menu__toggle {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
	color: var(--dcc-muted-fg);
	cursor: pointer;
	transition: color .15s;
}

.dcc-mobile-menu__toggle svg {
	transition: transform .2s;
}

.dcc-mobile-menu__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Mobile sub-menu */
.dcc-mobile-menu .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 4px 0 8px 12px;
}

.dcc-mobile-menu .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.dcc-mobile-menu .sub-menu a {
	display: block;
	padding: 9px 0;
	font-size: 13px;
	color: rgba(44, 62, 80, 0.65);
	text-decoration: none;
	border-bottom: 1px solid rgba(229, 231, 235, 0.4);
}

.dcc-mobile-menu .sub-menu a:hover {
	color: var(--dcc-secondary);
}

.dcc-mobile-nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-weight: 600;
	color: var(--dcc-secondary);
}

.dcc-acc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dcc-acc-toggle {
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	cursor: pointer;
	position: relative;
}

.dcc-acc-toggle::after {
	content: "";
	position: absolute;
	inset: 10px;
	border-right: 2px solid var(--dcc-secondary);
	border-bottom: 2px solid var(--dcc-secondary);
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.dcc-acc-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg);
}

.dcc-collapse {
	display: none;
	padding-left: 16px;
}

.dcc-collapse.is-open {
	display: block;
}

.dcc-submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 8px 16px;
}

.dcc-submenu-item a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	color: rgba(44, 62, 80, 0.7);
	text-decoration: none;
	border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.dcc-submenu-item a:hover {
	color: var(--dcc-secondary);
}

/* ═══════════════════════════════════════════════════════════
   Omnibus – najniższa cena z 30 dni przed obniżką
   ═══════════════════════════════════════════════════════════ */

.dc-omnibus-info {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	margin-top: 6px !important;
	padding: 3px 8px;
	background: #f8f8f6;
	border: 1px solid #e8e6e0;
	border-radius: 4px;
	font-size: 11px !important;
	font-weight: 400;
	font-style: italic;
	color: #888 !important;
	line-height: 1.4;
}

.dc-omnibus-info strong,
.dc-omnibus-info .woocommerce-Price-amount {
	font-weight: 500;
	font-style: normal;
	color: #777 !important;
}

/* Etykieta "od" przy cenie zmiennego produktu */
.dcc-price-from {
	font-size: .7em;
	font-weight: 500;
	color: var(--dcc-muted-fg);
	margin-right: 5px;
	text-transform: lowercase;
}

/* ── Gwiazdki ocen (bez fontu WooCommerce) ───────────────────── */
/* Szerokość musi wynikać z 5 glifów FA (ok. 1.125em), nie z Woo 5.4em —
   inaczej 4.9/5 (width:98%) ucina się jak ~4.1 gwiazdki. */

.star-rating,
.wc-block-grid__product-rating__stars,
.wc-block-product-review-rating__stars,
.wc-block-components-product-rating__stars {
	/* FA solid star = 576/512 em; 5 szt. bez letter-spacing */
	--dcc-star-glyph: 1.125em;
	position: relative;
	display: inline-block;
	overflow: hidden;
	width: calc(5 * var(--dcc-star-glyph));
	height: 1.25em;
	line-height: 1.25;
	font-size: 14px;
	letter-spacing: 0;
	color: #d1d5db;
	vertical-align: middle;
	flex-shrink: 0;
}

.star-rating::before,
.wc-block-grid__product-rating__stars::before,
.wc-block-product-review-rating__stars::before,
.wc-block-components-product-rating__stars::before {
	content: "\f005\f005\f005\f005\f005";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1em;
	line-height: 1.25;
	letter-spacing: 0;
	color: #d1d5db;
	display: block;
	white-space: nowrap;
}

.star-rating span,
.wc-block-grid__product-rating__stars > span,
.wc-block-product-review-rating__stars > span,
.wc-block-components-product-rating__stars > span {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
	padding-top: 1.5em; /* zsuwa tekst "Oceniono X na 5" poza widok */
	color: transparent;
	font-size: 1em;
	letter-spacing: 0;
	text-indent: 0;
}

.star-rating span::before,
.star-rating span:before,
.dcc-product-info__rating .star-rating span::before,
.dcc-product-card__rating .star-rating span::before,
.wc-block-grid__product-rating .star-rating span::before,
.wc-block-grid__product-rating__stars span::before,
.wc-block-product-review-rating__stars span::before,
.wc-block-components-product-rating__stars span::before,
.wp-block-woocommerce-product-review-rating .star-rating span::before {
	content: "\f005\f005\f005\f005\f005" !important;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-size: 1em !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	color: var(--dcc-star-gold) !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	text-indent: 0 !important;
	display: block !important;
	white-space: nowrap !important;
}

/* CookieYes – banner i modal nie mogą rozpychać viewportu (iOS ignoruje overflow-x: hidden na html/body przy position:fixed). */
.cky-consent-container {
	max-width: 100svw !important;
	box-sizing: border-box !important;
}

.cky-consent-container.cky-box-bottom-left {
	width: min(26rem, calc(100svw - 24px)) !important;
	max-width: calc(100svw - 24px) !important;
	left: 12px !important;
	right: auto !important;
}

.cky-consent-bar,
.cky-notice,
.cky-notice-group,
.cky-notice-btn-wrapper {
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.cky-btn {
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.cky-modal {
	left: 50% !important;
	right: auto !important;
	width: min(845px, calc(100svw - 16px)) !important;
	max-width: calc(100svw - 16px) !important;
	transform: translateX(-50%) !important;
	box-sizing: border-box !important;
}

.cky-preference-center {
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.dc-wf-overlay {
	width: 100svw !important;
	max-width: 100svw !important;
	left: 0 !important;
	right: auto !important;
}
