/* =========================================================================
   Pravidelný odber — frontend (produkt, košík, pokladňa, môj účet)
   ========================================================================= */

:root {
	--pow-primary: #3f6b4f;
	--pow-primary-dark: #2f5240;
	--pow-primary-light: #eaf3ec;
	--pow-accent: #d98a3d;
	--pow-danger: #c0392b;
	--pow-danger-light: #fbeae8;
	--pow-border: #e3e6e2;
	--pow-text: #2b2f2c;
	--pow-text-muted: #767f78;
	--pow-radius: 12px;
}

/* ---------- Box na stránke produktu ---------- */

.pow-box {
	margin: 18px 0;
	border: 1px solid var(--pow-border);
	border-radius: var(--pow-radius);
	background: #fff;
	padding: 16px 18px 14px;
}

.pow-box--login {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--pow-primary-light);
	color: var(--pow-primary-dark);
	font-size: 0.95em;
}

.pow-box--login a {
	color: var(--pow-primary-dark);
	text-decoration: underline;
}

.pow-box__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.pow-box__icon svg {
	color: var(--pow-primary);
	display: block;
}

.pow-box__title {
	font-weight: 700;
	font-size: 1.02em;
	color: var(--pow-text);
}

.pow-box__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pow-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border: 1.5px solid var(--pow-border);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.pow-option:hover {
	border-color: var(--pow-primary);
}

.pow-option.is-active {
	border-color: var(--pow-primary);
	background: var(--pow-primary-light);
}

.pow-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pow-option__radio {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c7ccc6;
	margin-top: 2px;
	position: relative;
	transition: border-color .15s ease;
}

.pow-option.is-active .pow-option__radio {
	border-color: var(--pow-primary);
}

.pow-option.is-active .pow-option__radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--pow-primary);
}

.pow-option__body {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
}

.pow-option__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--pow-text);
}

.pow-option__tag-icon {
	color: var(--pow-accent);
}
.pow-option__tag-icon svg { display: block; }

.pow-option__price {
	font-weight: 700;
	color: var(--pow-text);
	white-space: nowrap;
}

.pow-original-price {
	font-weight: 400;
	color: var(--pow-text-muted);
	margin-left: 6px;
	font-size: 0.85em;
}

.pow-frequency-select {
	margin-top: 6px;
	width: 100%;
	max-width: 320px;
	border-radius: 8px;
	border: 1px solid var(--pow-border);
	padding: 6px 10px;
	background: #fff;
}

.pow-option--subscribe .pow-option__body {
	flex-direction: column;
	align-items: flex-start;
}

.pow-option--subscribe .pow-option__price {
	margin-top: 4px;
}

.pow-box__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 0.85em;
	color: var(--pow-text-muted);
}
.pow-box__note svg { flex: 0 0 auto; color: var(--pow-text-muted); }

/* ---------- Košík / pokladňa ---------- */

.pow-cart-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--pow-primary-light);
	border: 1px solid #cfe1d3;
	border-radius: var(--pow-radius);
	padding: 14px 16px;
	margin: 0 0 20px;
	color: var(--pow-primary-dark);
}

.pow-cart-notice__icon svg { display: block; margin-top: 2px; }

.pow-cart-notice__text strong { display: block; margin-bottom: 2px; }

/* ---------- Moje odbery (My Account) ---------- */

.pow-account { display: flex; flex-direction: column; gap: 20px; }

.pow-empty {
	text-align: center;
	padding: 48px 20px;
	border: 1px dashed var(--pow-border);
	border-radius: var(--pow-radius);
	color: var(--pow-text-muted);
}
.pow-empty__icon svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--pow-text-muted); }

.pow-card {
	border: 1px solid var(--pow-border);
	border-radius: var(--pow-radius);
	background: #fff;
	padding: 18px 20px;
	position: relative;
}

.pow-card.is-loading { opacity: .5; pointer-events: none; }

.pow-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.pow-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 1.05em;
}
.pow-card__icon svg { color: var(--pow-primary); display: block; }

.pow-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pow-card__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	background: #fafbfa;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 16px;
}

.pow-meta-item { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92em; }
.pow-meta-item svg { color: var(--pow-primary); flex: 0 0 auto; margin-top: 2px; }
.pow-meta-label { display: block; color: var(--pow-text-muted); font-size: 0.85em; }
.pow-meta-item--note a { color: var(--pow-primary-dark); }

.pow-items { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.pow-items th { text-align: left; font-size: 0.8em; text-transform: uppercase; letter-spacing: .03em; color: var(--pow-text-muted); padding: 6px 4px; border-bottom: 1px solid var(--pow-border); }
.pow-items td { padding: 8px 4px; border-bottom: 1px solid var(--pow-border); vertical-align: middle; }
.pow-items__product { display: flex; align-items: center; gap: 10px; }
.pow-items__product img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }

.pow-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--pow-border); border-radius: 8px; overflow: hidden; }
.pow-qty-stepper button { border: none; background: #f4f5f3; width: 28px; height: 28px; cursor: pointer; font-size: 1em; }
.pow-qty-stepper button:hover { background: var(--pow-primary-light); }
.pow-qty-input { width: 42px; border: none; text-align: center; height: 28px; }

.pow-icon-btn { border: none; background: transparent; cursor: pointer; color: var(--pow-text-muted); padding: 4px; border-radius: 6px; }
.pow-icon-btn:hover { color: var(--pow-danger); background: var(--pow-danger-light); }

.pow-card__add-product { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pow-add-product-select { flex: 1 1 240px; border-radius: 8px; border: 1px solid var(--pow-border); padding: 7px 10px; }

/* ---------- Zdieľané prvky (tlačidlá, badge, status) ---------- */

.pow-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.9em;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}
.pow-btn svg { width: 16px; height: 16px; display: block; }
.pow-btn--primary { background: var(--pow-primary); color: #fff; }
.pow-btn--primary:hover { background: var(--pow-primary-dark); color: #fff; }
.pow-btn--ghost { background: #fff; color: var(--pow-text); border-color: var(--pow-border); }
.pow-btn--ghost:hover { border-color: var(--pow-primary); color: var(--pow-primary-dark); }
.pow-btn--danger { background: var(--pow-danger-light); color: var(--pow-danger); }
.pow-btn--danger:hover { background: var(--pow-danger); color: #fff; }

.pow-status {
	display: inline-block;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 3px 9px;
	border-radius: 999px;
}
.pow-status--active { background: #e4f3e6; color: #2f7a3c; }
.pow-status--paused { background: #fdf1dc; color: #a9660b; }
.pow-status--cancelled { background: #f3e4e4; color: #a12f2f; }
.pow-status--failed { background: #f3e4e4; color: #a12f2f; }

@media (max-width: 600px) {
	.pow-card__header { flex-direction: column; align-items: flex-start; }
	.pow-option__body { flex-direction: column; align-items: flex-start; }
}
