/* ==========================================================================
   Campanie Landing (page-campanie.php) — self-contained styles, .oc- prefix.
   Loaded only on the campaign template. No Tailwind dependency.
   ========================================================================== */

.oc-page {
	--oc-ink: #062a33;
	--oc-teal: #005f73;
	--oc-teal-deep: #023540;
	--oc-cyan: #00b3da;
	--oc-red: #E53935;
	--oc-sun: #FFB703;
	--oc-sun-2: #FFD166;
	--oc-green: #0e9f6e;
	--oc-bg: #f6fafb;
	--oc-line: #e3edf0;
	--oc-radius: 20px;
	font-family: 'Figtree', system-ui, sans-serif;
	background: var(--oc-bg);
	color: var(--oc-ink);
	overflow-x: clip;
}

.oc-container { max-width: 1280px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 1024px) { .oc-container { padding-left: 32px; padding-right: 32px; } }

/* Anchor targets clear the sticky site header + filter bar */
#oc-oferte, .oc-group-section { scroll-margin-top: calc(var(--oc-header-h, 0px) + 130px); }
#oc-filterbar { scroll-margin-top: calc(var(--oc-header-h, 0px) + 8px); }

/* ---------- Admin preview note ---------- */
.oc-admin-note {
	background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 600;
	padding: 10px 20px; text-align: center;
}
.oc-admin-note a { color: #92400E; text-decoration: underline; }

/* ==========================================================================
   HERO
   ========================================================================== */
.oc-hero {
	position: relative;
	background: linear-gradient(160deg, var(--oc-teal-deep) 0%, var(--oc-teal) 55%, #007a94 100%);
	color: #fff;
	overflow: hidden;
}
.oc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.oc-sun {
	position: absolute; top: -120px; right: -80px;
	width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--oc-sun-2) 0%, var(--oc-sun) 45%, rgba(255,183,3,0) 72%);
	opacity: .9;
	animation: oc-sun-breathe 7s ease-in-out infinite;
}
@keyframes oc-sun-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.oc-glow {
	position: absolute; bottom: -160px; left: -120px;
	width: 520px; height: 520px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0,179,218,.35) 0%, rgba(0,179,218,0) 70%);
}
.oc-waves {
	position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='none'%3E%3Cpath d='M0 35 Q30 20 60 35 T120 35 T180 35 T240 35 V60 H0 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
	background-size: 480px 120px; background-repeat: repeat-x;
	animation: oc-wave-drift 16s linear infinite;
}
@keyframes oc-wave-drift { from { background-position-x: 0; } to { background-position-x: -480px; } }

.oc-hero-inner {
	position: relative; z-index: 1;
	padding: 72px 20px 110px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
@media (min-width: 768px) { .oc-hero-inner { padding-top: 96px; padding-bottom: 140px; } }

.oc-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	color: #fff; font-size: 12px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	padding: 8px 16px; border-radius: 99px;
}
.oc-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--oc-sun); box-shadow: 0 0 12px var(--oc-sun); }

.oc-h1 {
	font-size: clamp(2.6rem, 6.5vw, 4.6rem);
	font-weight: 900; line-height: 1.02; letter-spacing: -.03em;
	margin: 0; color: #fff;
}
.oc-h1 em {
	display: block; font-style: normal;
	background: linear-gradient(92deg, var(--oc-sun-2), var(--oc-sun) 60%, #ff9e42);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.oc-sub {
	font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500;
	color: rgba(255,255,255,.82); max-width: 620px; margin: 0; line-height: 1.55;
}

/* Countdown */
.oc-count { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.oc-count-box {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 76px; padding: 12px 10px 10px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-radius: 16px;
}
.oc-count-box span {
	font-size: 2rem; font-weight: 800; line-height: 1;
	font-variant-numeric: tabular-nums; color: #fff;
}
.oc-count-box small {
	font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: rgba(255,255,255,.65); margin-top: 6px;
}
.oc-count-sep { font-size: 1.6rem; font-weight: 800; color: var(--oc-sun); animation: oc-blink 2s step-end infinite; }
@keyframes oc-blink { 50% { opacity: .25; } }
@media (max-width: 480px) {
	.oc-count { gap: 6px; }
	.oc-count-box { min-width: 62px; padding: 10px 6px 8px; }
	.oc-count-box span { font-size: 1.5rem; }
}

.oc-hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.oc-hero-meta { font-size: 14px; color: rgba(255,255,255,.78); }
.oc-hero-meta strong { color: #fff; }

/* Buttons */
.oc-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .01em;
	padding: 15px 30px; border-radius: 99px; border: 0; cursor: pointer;
	text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.oc-btn svg { width: 18px; height: 18px; }
.oc-btn-solar {
	background: linear-gradient(120deg, var(--oc-sun-2), var(--oc-sun));
	color: #4a2c00; box-shadow: 0 8px 24px rgba(255,183,3,.35);
}
.oc-btn-solar:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,183,3,.45); color: #4a2c00; }
.oc-btn-ghost {
	background: #fff; color: var(--oc-teal);
	border: 1.5px solid var(--oc-teal); box-shadow: none;
}
.oc-btn-ghost:hover { background: var(--oc-teal); color: #fff; }

.oc-hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.oc-hero-edge svg { width: 100%; height: 46px; display: block; }
@media (min-width: 768px) { .oc-hero-edge svg { height: 70px; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.oc-main { position: relative; }
.oc-section { padding: 56px 0; }
@media (min-width: 768px) { .oc-section { padding: 72px 0; } }

.oc-sec-head { margin-bottom: 32px; max-width: 640px; }
.oc-sec-head p { color: #5b7480; font-size: 15px; margin: 8px 0 0; }
.oc-sec-head-row {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; max-width: none;
}
.oc-sec-kicker {
	display: block; font-size: 11px; font-weight: 800;
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--oc-cyan); margin-bottom: 8px;
}
.oc-h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	font-weight: 900; letter-spacing: -.02em; line-height: 1.08;
	margin: 0; color: var(--oc-ink);
}
.oc-sec-count {
	font-size: 13px; font-weight: 700; color: var(--oc-teal);
	background: rgba(0,95,115,.08); padding: 6px 14px; border-radius: 99px;
	white-space: nowrap;
}

/* ==========================================================================
   FEATURED (Top economii)
   ========================================================================== */
.oc-featured-section { padding-top: 40px; }
.oc-featured-grid {
	display: grid; gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .oc-featured-grid { grid-template-columns: repeat(3, 1fr); } }

.oc-feat {
	position: relative;
	background: #fff; border: 1px solid var(--oc-line); border-radius: var(--oc-radius);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
	transition-delay: 0s;
}
.oc-feat:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(2,53,64,.12); }
.oc-feat-rank {
	position: absolute; top: -14px; right: 6px; z-index: 0;
	font-size: 120px; font-weight: 900; line-height: 1;
	color: rgba(0,95,115,.06); user-select: none; pointer-events: none;
}
.oc-feat-media { position: relative; padding: 28px 28px 0; z-index: 1; }
.oc-feat-img { width: 100%; height: 240px; object-fit: contain; display: block; transition: transform .5s ease; }
.oc-feat:hover .oc-feat-img { transform: scale(1.04); }
.oc-feat-body { padding: 18px 24px 24px; position: relative; z-index: 1; }
.oc-feat-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin: 8px 0 10px; }
.oc-feat-title a { color: var(--oc-ink); text-decoration: none; }
.oc-feat-title a:hover { color: var(--oc-teal); }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.oc-filterbar {
	position: sticky; top: var(--oc-header-h, 0px); z-index: 30;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--oc-line);
	transition: box-shadow .25s ease;
}
.oc-filterbar.is-stuck { box-shadow: 0 8px 24px rgba(2,53,64,.08); }
.oc-filterbar-inner { padding-top: 14px; padding-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.oc-filter-row {
	display: flex; gap: 8px; align-items: center;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.oc-filter-row::-webkit-scrollbar { display: none; }

.oc-pill {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
	font-family: inherit; font-size: 14px; font-weight: 700;
	color: var(--oc-teal); background: #fff;
	border: 1.5px solid rgba(0,95,115,.25); border-radius: 99px;
	padding: 9px 18px; cursor: pointer;
	transition: all .2s ease;
}
.oc-pill b { font-size: 11px; font-weight: 800; background: rgba(0,95,115,.1); border-radius: 99px; padding: 2px 7px; }
.oc-pill:hover { border-color: var(--oc-teal); }
.oc-pill.is-active { background: var(--oc-teal); border-color: var(--oc-teal); color: #fff; }
.oc-pill.is-active b { background: rgba(255,255,255,.2); }

.oc-chip {
	flex: 0 0 auto;
	font-family: inherit; font-size: 12.5px; font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #48626e; background: #eef4f6;
	border: 1px solid transparent; border-radius: 9px;
	padding: 7px 12px; cursor: pointer;
	transition: all .2s ease;
}
.oc-chip:hover { border-color: var(--oc-cyan); color: var(--oc-teal); }
.oc-chip.is-active { background: var(--oc-cyan); color: #fff; font-weight: 700; }

/* ==========================================================================
   PRODUCT GRID + CARDS
   ========================================================================== */
.oc-grid {
	display: grid; gap: 18px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .oc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .oc-grid { grid-template-columns: repeat(4, 1fr); } }

.oc-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--oc-line); border-radius: var(--oc-radius);
	overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.oc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(2,53,64,.1); border-color: #cfe2e7; }
.oc-card.oc-hide, .oc-feat.oc-hide { display: none; }

.oc-card-media { position: relative; background: #fff; }
.oc-card-media a { display: block; aspect-ratio: 1 / 1; }
.oc-card-img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .45s ease; }
.oc-card:hover .oc-card-img { transform: scale(1.05); }

.oc-badge-pct {
	position: absolute; top: 12px; left: 12px;
	background: var(--oc-red); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: .02em;
	padding: 4px 10px; border-radius: 8px;
	box-shadow: 0 4px 12px rgba(229,57,53,.35);
}
.oc-badge-big { font-size: 15px; padding: 6px 14px; border-radius: 10px; }

.oc-fav {
	position: absolute; top: 10px; right: 10px;
	width: 34px; height: 34px; border-radius: 50%;
	background: #fff; border: 1px solid var(--oc-line);
	color: #b6c6cd; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transform: translateY(-4px);
	transition: all .25s ease;
	box-shadow: 0 3px 10px rgba(2,53,64,.08);
}
.oc-fav svg { width: 16px; height: 16px; }
.oc-card:hover .oc-fav,
.oc-card:focus-within .oc-fav,
.oc-fav:focus-visible { opacity: 1; transform: translateY(0); }
.oc-fav:hover { color: var(--oc-red); border-color: rgba(229,57,53,.4); }
@media (hover: none) { .oc-fav { opacity: 1; transform: none; } }

.oc-card-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.oc-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.oc-tag-group {
	font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	color: var(--oc-teal); background: rgba(0,95,115,.08);
	padding: 3px 8px; border-radius: 6px;
}
.oc-tag-size {
	font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
	color: #48626e; background: #eef4f6;
	padding: 3px 8px; border-radius: 6px;
}
.oc-card-title { font-size: .92rem; font-weight: 600; line-height: 1.4; margin: 0; flex: 1; }
.oc-card-title a {
	color: var(--oc-ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oc-card-title a:hover { color: var(--oc-teal); }

.oc-stars { display: flex; align-items: center; gap: 2px; }
.oc-stars svg { width: 12px; height: 12px; color: #e2e8ec; }
.oc-stars svg.on { color: #fbbf24; }
.oc-stars span { font-size: 11px; color: #93a8b1; margin-left: 4px; }

.oc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.oc-price s { font-size: .85rem; color: #9db0b8; text-decoration: line-through; }
.oc-price strong { font-size: 1.3rem; font-weight: 800; color: var(--oc-teal); letter-spacing: -.01em; }
.oc-price-lg s { font-size: 1rem; }
.oc-price-lg strong { font-size: 1.7rem; }

.oc-save {
	display: inline-flex; align-self: flex-start;
	font-size: 12px; font-weight: 700; color: var(--oc-green);
	background: rgba(14,159,110,.09);
	padding: 3px 10px; border-radius: 99px;
}
.oc-save-lg { font-size: 13.5px; padding: 5px 13px; }
.oc-lowest { font-size: 10.5px; color: #93a8b1; }

.oc-add {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; margin-top: 6px;
	font-family: inherit; font-size: 13.5px; font-weight: 700;
	color: var(--oc-teal); background: #fff;
	border: 1.5px solid rgba(0,95,115,.35); border-radius: 12px;
	padding: 10px 12px; cursor: pointer;
	transition: all .22s ease;
}
.oc-add svg { width: 15px; height: 15px; }
.oc-add:hover { background: var(--oc-teal); border-color: var(--oc-teal); color: #fff; }
.oc-add-solid {
	background: var(--oc-teal); border-color: var(--oc-teal); color: #fff;
	font-size: 14.5px; padding: 12px;
}
.oc-add-solid:hover { background: var(--oc-teal-deep); border-color: var(--oc-teal-deep); }

/* Empty state */
.oc-empty {
	text-align: center; padding: 48px 20px; margin: 24px 0 56px;
	background: #fff; border: 1.5px dashed #cfe2e7; border-radius: var(--oc-radius);
}
.oc-empty strong { font-size: 1.1rem; font-weight: 800; color: var(--oc-ink); display: block; }
.oc-empty p { color: #5b7480; margin: 8px 0 18px; }

/* ==========================================================================
   TRUST + CTA
   ========================================================================== */
.oc-trust { padding-top: 8px; }
.oc-trust-grid {
	display: grid; gap: 14px;
	grid-template-columns: repeat(2, 1fr);
	background: #fff; border: 1px solid var(--oc-line); border-radius: var(--oc-radius);
	padding: 26px;
}
@media (min-width: 900px) { .oc-trust-grid { grid-template-columns: repeat(4, 1fr); padding: 32px 36px; } }
.oc-trust-item { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.oc-trust-item svg {
	grid-row: span 2; width: 42px; height: 42px; padding: 9px;
	color: var(--oc-teal); background: rgba(0,95,115,.07); border-radius: 12px;
}
.oc-trust-item strong { font-size: 14px; font-weight: 800; color: var(--oc-ink); }
.oc-trust-item span { font-size: 12px; color: #5b7480; }

.oc-cta {
	position: relative; overflow: hidden;
	background: linear-gradient(150deg, var(--oc-teal-deep), var(--oc-teal) 70%);
	color: #fff; text-align: center;
	padding: 72px 0 88px; margin-top: 64px;
}
.oc-cta-bg { position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.oc-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.oc-cta .oc-h2 { color: #fff; }
.oc-cta p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin: 0; max-width: 520px; }
.oc-count-mini { justify-content: center; }
.oc-count-mini .oc-count-box { min-width: 64px; padding: 10px 8px 8px; }
.oc-count-mini .oc-count-box span { font-size: 1.5rem; }
.oc-cta .oc-btn { margin-top: 10px; }

/* Ended state */
.oc-ended .oc-hero-inner { padding-bottom: 96px; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.oc-reveal {
	opacity: 0; transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
	transition-delay: var(--d, 0ms);
}
.oc-reveal.oc-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.oc-sun, .oc-waves, .oc-count-sep { animation: none !important; }
	.oc-reveal { opacity: 1; transform: none; transition: none; }
	.oc-card, .oc-feat, .oc-card-img, .oc-feat-img, .oc-btn { transition: none; }
}
