/* ==========================================================================
   Header — Ignavo inspired (3-tier)
   ========================================================================== */

.pc-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); max-width: 100%; }

.pc-header__top { background: #f3f4f6; font-size: 0.8125rem; border-bottom: 1px solid #e5e7eb; }
.pc-header__top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 0.75rem; }
.pc-header__top-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.pc-header__top-links a { color: #6b7280; text-decoration: none; }
.pc-header__top-links a:hover { color: #2563eb; }
.pc-header__top-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }

.pc-header__dropdown { position: relative; }
.pc-header__dropdown-btn { background: none; border: none; font: inherit; color: #374151; cursor: pointer; padding: 0.25rem 0.5rem; }
.pc-header__dropdown-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 120px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); list-style: none; margin: 0.25rem 0 0; padding: 0.35rem 0; z-index: 20; }
.pc-header__dropdown.is-open .pc-header__dropdown-menu { display: block; }
.pc-header__dropdown-menu a, .pc-header__dropdown-menu span { display: block; padding: 0.45rem 0.85rem; color: #374151; text-decoration: none; font-size: 0.8125rem; }

.pc-header__main { border-bottom: 1px solid #e5e7eb; }
.pc-header__main-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	min-height: 78px;
	max-width: 100%;
}

.pc-header__brand { flex-shrink: 0; min-width: 0; max-width: 220px; }
.pc-header__brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; max-width: 100%; }
.pc-header__brand .custom-logo-link img { max-height: 48px; width: auto; max-width: 100%; display: block; }

.pc-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #2563eb; min-width: 0; }
.pc-logo__mark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #1d4ed8); flex-shrink: 0; }
.pc-logo__name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-header__search { display: flex; align-items: center; background: #fff; border: 1px solid #d1d5db; border-radius: 999px; overflow: hidden; max-width: 560px; width: 100%; margin: 0 auto; min-width: 0; }
.pc-header__search input { flex: 1; border: none; padding: 0.85rem 1.25rem; font: inherit; outline: none; background: transparent; min-width: 0; width: 100%; }
.pc-header__search button { border: none; background: none; padding: 0 1rem; color: #6b7280; cursor: pointer; display: flex; flex-shrink: 0; }

.pc-header__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.pc-header__lang {
	display: none;
	align-items: center;
	gap: 0.15rem;
	padding: 0.15rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f9fafb;
}

.pc-header__lang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	padding: 0 0.45rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-decoration: none;
	color: #6b7280;
	letter-spacing: 0.04em;
}

.pc-header__lang-btn:hover { color: #111827; }
.pc-header__lang-btn.is-active { background: #111827; color: #fff; }

.pc-header__action { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #111827; }
.pc-header__action-icon { width: 42px; height: 42px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #374151; flex-shrink: 0; }
.pc-header__action-text { display: flex; flex-direction: column; line-height: 1.2; }
.pc-header__action-text small { font-size: 0.6875rem; color: #6b7280; }
.pc-header__action-text strong { font-size: 0.8125rem; font-weight: 600; }
.pc-header__action--icon { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #f3f4f6; justify-content: center; color: #374151; }
.pc-header__badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 0.625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.pc-header__nav { background: #fff; border-bottom: 1px solid #e5e7eb; }
.pc-header__nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 52px; max-width: 100%; min-width: 0; }

.pc-header__categories { position: relative; border-right: 1px solid #e5e7eb; padding-right: 1.25rem; flex-shrink: 0; }
.pc-header__categories-btn { display: flex; align-items: center; gap: 0.65rem; background: none; border: none; font-weight: 600; font-size: 0.9375rem; cursor: pointer; padding: 0.5rem 0; color: #111827; white-space: nowrap; }
.pc-header__hamburger { width: 18px; height: 2px; background: #111827; box-shadow: 0 -6px 0 #111827, 0 6px 0 #111827; flex-shrink: 0; }
.pc-header__cat-panel { position: absolute; left: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 2rem)); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.1); padding: 0.75rem 0; z-index: 50; }
.pc-cat-panel__list { list-style: none; margin: 0; padding: 0; }
.pc-cat-panel__list a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 1.25rem; color: #374151; text-decoration: none; font-size: 0.9375rem; }
.pc-cat-panel__list a:hover { background: #f3f4f6; color: #2563eb; }
.pc-cat-panel__list span { color: #9ca3af; font-size: 0.8125rem; flex-shrink: 0; }

.pc-header__menu { flex: 1; min-width: 0; overflow: hidden; }
.pc-header__menu .pc-nav__list,
.pc-header__menu .pc-nav__list > li,
.pc-header__menu .sub-menu,
.pc-header__menu .sub-menu li { list-style: none; margin: 0; padding: 0; }
.pc-header__menu .pc-nav__list { display: flex; align-items: center; gap: 1.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pc-header__menu .pc-nav__list::-webkit-scrollbar { display: none; }
.pc-header__menu .pc-nav__list > li { position: relative; flex-shrink: 0; }
.pc-header__menu .pc-nav__list > li > a { display: flex; align-items: center; gap: 0.35rem; color: #111827; text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; padding: 0.5rem 0; }
.pc-header__menu .pc-nav__list a:hover { color: #2563eb; }
.pc-header__menu .menu-item-has-children > a::after { content: '\25BE'; font-size: 0.75rem; color: #9ca3af; }
.pc-header__menu .sub-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 0.4rem 0; z-index: 60; }
.pc-header__menu li:hover > .sub-menu { display: block; }
.pc-header__menu .sub-menu a { display: block; padding: 0.55rem 1rem; font-weight: 500; font-size: 0.875rem; color: #374151; white-space: nowrap; }
.pc-header__menu .sub-menu a:hover { background: #f3f4f6; color: #2563eb; }

.pc-header__promo { display: flex; align-items: center; gap: 0.35rem; text-decoration: none; color: #111827; font-weight: 600; font-size: 0.875rem; white-space: nowrap; flex-shrink: 0; }
.pc-header__promo-badge { background: #ef4444; color: #fff; font-size: 0.6875rem; padding: 0.15rem 0.45rem; border-radius: 999px; margin-left: 0.25rem; }

.pc-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; cursor: pointer; flex-shrink: 0; }
.pc-nav-toggle span { display: block; width: 24px; height: 2px; background: #111827; }

.pc-mobile-panel { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 1rem; max-height: min(70vh, 480px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pc-mobile-panel .pc-nav__list,
.pc-mobile-panel .pc-nav__list li,
.pc-mobile-panel .sub-menu,
.pc-mobile-panel .sub-menu li { list-style: none; margin: 0; padding: 0; }
.pc-mobile-panel .pc-nav__list { flex-direction: column; gap: 0; }
.pc-mobile-panel .pc-nav__list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; text-decoration: none; color: #111827; font-weight: 600; }
.pc-mobile-panel .sub-menu { padding-left: 1rem; }
.pc-mobile-panel .sub-menu a { font-weight: 500; font-size: 0.875rem; border-bottom-color: #f9fafb; }

.pc-btn--dark { background: #111827; color: #fff; border-radius: 8px; }
.pc-btn--dark:hover { background: #374151; color: #fff; }

/* Noteshop product card */
.pc-shop-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; min-width: 0; flex: 0 0 calc(25% - 1.125rem); }
.pc-shop-card__media { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #fafafa; }
.pc-shop-card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s; }
.pc-shop-card__img--hover { position: absolute; inset: 0; opacity: 0; }
.pc-shop-card__media:hover .pc-shop-card__img--primary { opacity: 0; }
.pc-shop-card__media:hover .pc-shop-card__img--hover { opacity: 1; }
.pc-shop-card__body { padding: 1rem; }
.pc-shop-card__title { font-size: 0.875rem; font-weight: 500; margin: 0 0 0.5rem; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-shop-card__title a { color: #111; text-decoration: none; }
.pc-shop-card__price-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; min-height: 1.25rem; flex-wrap: wrap; }
.pc-shop-card__discount { background: #e11; color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 3px; }
.pc-shop-card__old-price { font-size: 0.75rem; color: #999; text-decoration: line-through; }
.pc-shop-card__price { font-size: 1.125rem; font-weight: 700; color: #111; margin: 0 0 0.75rem; }
.pc-shop-card__price .amount { font-weight: 700; }
.pc-shop-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pc-shop-card__actions--solo { grid-template-columns: 1fr; }
.pc-shop-card__cart, .pc-shop-card__wa { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 0.8125rem; font-weight: 600; text-decoration: none; border-radius: 4px; text-align: center; padding: 0 0.5rem; }
.pc-shop-card__wa--solo { width: 100%; }
.pc-shop-card__cart { background: #111; color: #fff; }
.pc-shop-card__cart:hover { background: #333; color: #fff; }
.pc-shop-card__wa { background: #25d366; color: #fff; }
.pc-shop-card__wa:hover { background: #1da851; color: #fff; }

.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; list-style: none; }

@media (max-width: 1200px) {
	.pc-shop-card { flex: 0 0 calc(33.333% - 1rem); }
	.pc-header__action-text { display: none; }
	.pc-header__main-inner { gap: 1rem; }
}

@media (max-width: 1024px) {
	.pc-header__nav { display: none; }
	.pc-nav-toggle { display: flex; }
	.pc-header__main-inner {
		grid-template-columns: 1fr auto auto;
		gap: 0.75rem;
	}
	.pc-header__search {
		order: 4;
		grid-column: 1 / -1;
		max-width: none;
		margin-top: 0;
	}
	.pc-shop-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 767px) {
	.pc-header__top { display: none; }
	.pc-header__lang { display: inline-flex; }
	.pc-header__main-inner {
		grid-template-columns: 1fr auto auto;
		gap: 0.5rem;
		min-height: auto;
		padding-block: 0.75rem;
	}
	.pc-header__search {
		display: flex;
		order: 4;
		grid-column: 1 / -1;
		max-width: none;
		margin-top: 0.15rem;
	}
	.pc-header__search input { padding: 0.7rem 1rem; font-size: 16px; }
	.pc-header__actions { gap: 0.35rem; }
	.pc-header__action-text { display: none; }
	.pc-header__action--icon { width: 38px; height: 38px; }
	.pc-header__action-icon { width: 38px; height: 38px; }
	.pc-header__brand { max-width: 160px; }
	.pc-header__brand .custom-logo-link img { max-height: 40px; }
	.pc-logo__name { font-size: 1rem; }
	.pc-shop-card { flex: 0 0 min(82vw, 300px); }
	.pc-shop-card__actions { grid-template-columns: 1fr; }
	.pc-shop-card__cart { min-height: 44px; }
	.pc-shop-card__wa { min-height: 44px; }
}
