/* ==========================================================================
   Plugino modulių stiliai: galerija, kainoraštis, formos, lightbox
   ========================================================================== */

/* ---------- Galerija ---------- */
.av-gallery { margin-bottom: 2em; }
.av-gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.av-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px;
	border: 2px solid var(--av-purple-100); border-radius: var(--av-r-pill); background: #fff;
	color: var(--av-purple); font-family: var(--av-font-head); font-size: 15px; font-weight: 500; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.av-chip:hover { border-color: var(--av-purple); }
.av-chip.is-active { background: var(--av-purple); border-color: var(--av-purple); color: #fff; }
.av-chip__count { font-size: 12px; opacity: .7; }

.av-gallery__grid { columns: 4 240px; column-gap: 16px; }
.av-gallery__item {
	position: relative; display: block; overflow: hidden; margin: 0 0 16px; break-inside: avoid;
	border-radius: var(--av-r-md); background: var(--av-purple-50); cursor: zoom-in;
}
.av-gallery__item img { width: 100%; height: auto; transition: transform .5s var(--av-ease), opacity .3s; }
.av-gallery__item:hover img { transform: scale(1.04); }
.av-gallery__item.is-hidden { display: none; }
.av-gallery__more { display: flex; margin: 16px auto 0; }

.av-gallery--mosaic .av-gallery__grid { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.av-gallery--mosaic .av-gallery__item { margin: 0; aspect-ratio: 1; }
.av-gallery--mosaic .av-gallery__item img { height: 100%; object-fit: cover; }
.av-gallery--mosaic .av-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 600px) {
	.av-gallery__grid { columns: 2 140px; column-gap: 10px; }
	.av-gallery__item { margin-bottom: 10px; border-radius: 12px; }
	.av-gallery--mosaic .av-gallery__grid { gap: 8px; }
}

/* ---------- Lightbox ---------- */
.av-lightbox {
	width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(28, 38, 16, .94); color: #fff;
}
.av-lightbox::backdrop { background: rgba(28, 38, 16, .94); }
.av-lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px; }
.av-lightbox__img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.av-lightbox__btn {
	position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s;
}
.av-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.av-lightbox__close { top: 16px; right: 16px; }
.av-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.av-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.av-lightbox__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--av-font-head); font-size: 14px; opacity: .8; }
@media (max-width: 600px) {
	.av-lightbox__stage { padding: 64px 8px; }
	.av-lightbox__prev, .av-lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Kainoraštis ---------- */
.av-prices__group + .av-prices__group { margin-top: clamp(40px, 6vw, 72px); }
.av-prices__title {
	display: flex; align-items: center; gap: 14px; margin: 0 0 24px !important;
	color: var(--av-coral-600); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
}
.av-prices__title::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--av-coral-50), transparent); }
.av-prices__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.av-price {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 26px 26px 24px; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-r-lg);
	box-shadow: var(--av-shadow-sm); transition: transform .25s var(--av-ease), box-shadow .25s, border-color .25s;
}
.av-price:hover { transform: translateY(-4px); box-shadow: var(--av-shadow); border-color: var(--av-purple-100); }
.av-price__name { margin: 0 !important; color: var(--av-purple-900); font-size: 1.15rem; line-height: 1.35; }
.av-price__meta {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	padding: 4px 12px; border-radius: var(--av-r-pill); background: var(--av-mint-50); color: #1F6F75;
	font-family: var(--av-font-head); font-size: 13px; font-weight: 600;
}
.av-price__meta .av-icon { width: 14px; height: 14px; }
.av-price__desc { margin: 0; color: var(--av-muted); font-size: 15px; line-height: 1.55; }
.av-price__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--av-line); }
.av-price__amount { color: var(--av-purple); font-family: var(--av-font-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.av-price__amount small { font-size: .55em; font-weight: 600; }
.av-price__old { color: var(--av-muted); font-size: 1rem; text-decoration: line-through; margin-right: 6px; }
.av-price--featured { border: 2px solid var(--av-coral); background: linear-gradient(180deg, var(--av-coral-50), #fff 45%); }
.av-price__flag {
	position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: var(--av-r-pill);
	background: var(--av-coral); color: var(--av-ink); font-family: var(--av-font-head); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Formos ---------- */
.av-form { position: relative; }
.av-form__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; }
.av-field { grid-column: span 6; margin: 0; }
.av-field--half { grid-column: span 3; }
.av-field--third { grid-column: span 2; }
@media (max-width: 600px) { .av-field--half, .av-field--third { grid-column: span 6; } }
.av-field label { display: block; margin-bottom: 6px; color: var(--av-purple-900); font-family: var(--av-font-head); font-size: 14px; font-weight: 500; }
.av-req { color: var(--av-coral-600); }
.av-field input,
.av-field textarea,
.av-field select {
	width: 100%; min-height: 52px; padding: 12px 16px;
	border: 1.5px solid var(--av-line); border-radius: 14px; background: #FFFDF8;
	color: var(--av-ink); font: inherit; font-size: 16px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.av-field textarea { min-height: 120px; resize: vertical; }
.av-field input:focus,
.av-field textarea:focus,
.av-field select:focus { outline: 0; border-color: var(--av-purple); background: #fff; box-shadow: 0 0 0 4px rgba(63, 107, 28, .15); }
.av-field.has-error input,
.av-field.has-error textarea { border-color: #D93F3F; }
.av-field__error { display: block; margin-top: 4px; color: #C62F2F; font-size: 13px; }
.av-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.av-form__consent { grid-column: span 6; margin: 0; color: var(--av-muted); font-size: 13px; line-height: 1.5; }
.av-form__submit { grid-column: span 6; margin: 4px 0 0; }
.av-form__submit .av-btn { width: 100%; }
.av-form.is-sending .av-btn { opacity: .7; pointer-events: none; }
.av-notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.av-notice--error { background: #FDECEC; color: #8E1F1F; border-left: 4px solid #D93F3F; }
.av-notice--ok { background: #EAF8EC; color: #1C6B2C; border-left: 4px solid #3BB55A; }
