/* ==========================================================================
   PRIJORA Theme — Components (Header, Nav, Search, Footer, Product Card, Hero)
   ========================================================================== */

/* 1. Header & Announcement Bar */
.prijora-announcement-bar {
	background: #111111;
	color: #ffffff;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	padding: 6px 0;
}

.prijora-announcement-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.prijora-announcement-bar__links {
	display: flex;
	gap: 16px;
}

.prijora-announcement-bar__links a {
	color: rgba(255, 255, 255, 0.8);
}

.prijora-announcement-bar__links a:hover {
	color: #ffffff;
}

.prijora-header__main {
	background: #ffffff;
	border-bottom: 1px solid var(--prijora-color-border);
	padding: 14px 0;
}

.prijora-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 24px;
}

.prijora-logo {
	font-family: var(--prijora-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--prijora-color-primary);
}

.prijora-nav__list {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 20px;
}

.prijora-nav__item a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--prijora-color-text);
	padding: 6px 0;
	display: block;
}

.prijora-nav__item a:hover {
	color: var(--prijora-color-accent);
}

.prijora-nav__item--highlight a {
	color: var(--prijora-color-accent);
	font-weight: 600;
}

.prijora-mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 4px;
}

/* 2. Header Search */
.prijora-search {
	position: relative;
	width: 100%;
	max-width: 320px;
}

.prijora-search__form {
	display: flex;
	align-items: center;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	overflow: hidden;
	background: #ffffff;
}

.prijora-search__category {
	border: none;
	border-right: 1px solid var(--prijora-color-border);
	border-radius: 0;
	font-size: 0.78rem;
	padding: 6px 8px;
	width: auto;
	max-width: 90px;
	background: var(--prijora-color-surface);
}

.prijora-search__input {
	border: none;
	padding: 6px 10px;
	font-size: 0.84rem;
	width: 100%;
}

.prijora-search__submit {
	background: transparent;
	border: none;
	padding: 6px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--prijora-color-text-muted);
}

.prijora-search__autocomplete {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	box-shadow: var(--prijora-shadow-hover);
	margin-top: 4px;
	z-index: 100;
	max-height: 380px;
	overflow-y: auto;
}

.prijora-search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--prijora-color-border-subtle);
}

.prijora-search-result-item:last-child {
	border-bottom: none;
}

.prijora-search-result-item img {
	width: 36px;
	height: 44px;
	object-fit: cover;
	border-radius: 2px;
}

/* 3. Header Action Buttons */
.prijora-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.prijora-header-action {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	color: var(--prijora-color-text);
}

.prijora-header-action:hover {
	color: var(--prijora-color-accent);
}

.prijora-cart-count,
.prijora-wishlist-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--prijora-color-primary);
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 700;
}

/* 4. Product Card */
.prijora-product-card {
	background: #ffffff;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color var(--prijora-transition), box-shadow var(--prijora-transition);
}

.prijora-product-card:hover {
	border-color: #bbbbbb;
	box-shadow: var(--prijora-shadow);
}

.prijora-product-card__media {
	position: relative;
	background: #f7f7f8;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-top-left-radius: var(--prijora-radius);
	border-top-right-radius: var(--prijora-radius);
}

.prijora-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.prijora-product-card:hover .prijora-product-card__media img {
	transform: scale(1.03);
}

.prijora-product-card__badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 2;
}

.prijora-product-card__wishlist {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #666666;
	cursor: pointer;
	z-index: 2;
	transition: all var(--prijora-transition);
}

.prijora-product-card__wishlist:hover,
.prijora-product-card__wishlist.is-active {
	color: var(--prijora-color-accent);
	background: #ffffff;
}

.prijora-product-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.prijora-product-card__title {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}

.prijora-product-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	color: #999999;
	margin-bottom: 6px;
}

.prijora-product-card__rating .prijora-stars {
	color: #e28743;
	font-weight: 600;
}

.prijora-product-card__price {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--prijora-color-primary);
	margin-bottom: 12px;
}

.prijora-product-card__price del {
	font-size: 0.8125rem;
	font-weight: normal;
	color: var(--prijora-color-text-light);
	margin-right: 6px;
}

.prijora-product-card__price ins {
	text-decoration: none;
	color: var(--prijora-color-accent);
}

.prijora-product-card__footer {
	margin-top: auto;
}

.prijora-product-card__footer .button,
.prijora-product-card__footer .prijora-btn {
	width: 100%;
	padding: 8px 12px;
	font-size: 0.8125rem;
	border-radius: var(--prijora-radius);
	background-color: var(--prijora-color-surface);
	color: var(--prijora-color-primary);
	border: 1px solid var(--prijora-color-border);
	text-align: center;
	display: inline-block;
	font-weight: 600;
}

.prijora-product-card__footer .button:hover,
.prijora-product-card__footer .prijora-btn:hover {
	background-color: var(--prijora-color-primary);
	color: #ffffff;
	border-color: var(--prijora-color-primary);
}

/* 5. Hero Section */
.prijora-hero {
	background-color: #f7f6f4;
	padding: 72px 0;
	border-bottom: 1px solid var(--prijora-color-border);
}

.prijora-hero__content {
	max-width: 640px;
}

.prijora-hero__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--prijora-color-accent);
	margin-bottom: 12px;
}

.prijora-hero__title {
	font-size: 2.75rem;
	margin-bottom: 16px;
	line-height: 1.15;
}

.prijora-hero__subtitle {
	font-size: 1.0625rem;
	color: var(--prijora-color-text-muted);
	margin-bottom: 28px;
}

.prijora-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* 6. Category Grid */
.prijora-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.prijora-category-card {
	display: block;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	overflow: hidden;
	background: #ffffff;
	transition: all var(--prijora-transition);
}

.prijora-category-card:hover {
	border-color: var(--prijora-color-primary);
	box-shadow: var(--prijora-shadow);
}

.prijora-category-card__media {
	aspect-ratio: 4 / 3;
	background: #f1f1f3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prijora-category-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prijora-category-card__placeholder {
	font-family: var(--prijora-font-heading);
	font-size: 2rem;
	color: #bbbbbb;
}

.prijora-category-card__info {
	padding: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.prijora-category-card__name {
	font-size: 0.9375rem;
	margin-bottom: 0;
}

.prijora-category-card__count {
	font-size: 0.75rem;
	color: var(--prijora-color-text-light);
}

/* 7. Flash Sale Banner */
.prijora-sale-banner {
	background: #191c21;
	color: #ffffff;
	padding: 40px;
	border-radius: var(--prijora-radius-md);
	margin-bottom: 32px;
}

.prijora-sale-banner__tag {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #d1788c;
	display: inline-block;
	margin-bottom: 8px;
}

.prijora-sale-banner__title {
	color: #ffffff;
	font-size: 1.875rem;
	margin-bottom: 8px;
}

.prijora-sale-banner__desc {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 24px;
}

.prijora-sale-banner__actions {
	display: flex;
	gap: 12px;
}

.prijora-sale-banner__actions .prijora-btn--outline {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.4);
}

.prijora-sale-banner__actions .prijora-btn--outline:hover {
	border-color: #ffffff;
}

/* 8. Community Pillars */
.prijora-community__pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
}

.prijora-pillar-card {
	padding: 24px;
	background: var(--prijora-color-surface);
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
}

.prijora-pillar-card h3 {
	font-size: 1rem;
	margin-bottom: 8px;
}

.prijora-pillar-card p {
	font-size: 0.875rem;
	color: var(--prijora-color-text-muted);
}

/* 9. Newsletter */
.prijora-newsletter__box {
	background: #f7f7f8;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius-md);
	padding: 48px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.prijora-newsletter__form {
	display: flex;
	gap: 8px;
}

.prijora-newsletter__form input {
	flex-grow: 1;
}

/* 10. Footer */
.prijora-footer {
	background: #141618;
	color: #ffffff;
	padding-top: 56px;
	padding-bottom: 24px;
}

.prijora-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prijora-footer__logo {
	font-family: var(--prijora-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.04em;
	display: inline-block;
	margin-bottom: 12px;
}

.prijora-footer__tagline {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.875rem;
	max-width: 280px;
}

.prijora-footer__socials {
	display: flex;
	gap: 16px;
	margin-top: 16px;
}

.prijora-footer__socials a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
}

.prijora-footer__socials a:hover {
	color: #ffffff;
}

.prijora-footer__heading {
	color: #ffffff;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}

.prijora-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.prijora-footer__links li {
	margin-bottom: 8px;
}

.prijora-footer__links a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
}

.prijora-footer__links a:hover {
	color: #ffffff;
}

.prijora-footer__bottom {
	padding-top: 24px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.8125rem;
	text-align: center;
}
