/* Agma Product Extras – front-end (Victourriahz style). Override the variables in your theme if needed. */
.ape-accordion,
.ape-details {
	--ape-text: #fff;
	--ape-muted: #bbb;
	--ape-line: #2a2a2a;
	--ape-head-font: "Montserrat", sans-serif;
	--ape-body-font: "Montserrat", sans-serif;
}

/* ---------- Accordion ---------- */
.ape-accordion { border-top: 1px solid var(--ape-line); }
.ape-acc-item { border-bottom: 1px solid var(--ape-line); }
.ape-acc-title {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 17px 0; cursor: pointer; list-style: none;
	color: var(--ape-text); font: 500 12px/1.3 var(--ape-body-font); letter-spacing: 2.5px; text-transform: uppercase;
}
.ape-acc-title::-webkit-details-marker { display: none; }
.ape-acc-title::marker { content: ""; }
.ape-acc-icon { position: relative; width: 12px; height: 12px; flex: none; }
.ape-acc-icon::before,
.ape-acc-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ape-text); transition: transform .25s ease; }
.ape-acc-icon::after { transform: rotate(90deg); }
.ape-acc-item[open] .ape-acc-icon::after { transform: rotate(0deg); }
.ape-acc-content { padding: 0 0 18px; color: var(--ape-muted); font: 400 14px/1.7 var(--ape-body-font); }
.ape-acc-content p:last-child { margin-bottom: 0; }
.ape-acc-content a { color: var(--ape-text); text-decoration: underline; }
.ape-acc-content table { width: 100%; border-collapse: collapse; }
.ape-acc-content th,
.ape-acc-content td { padding: 6px 0; border-bottom: 1px solid var(--ape-line); color: var(--ape-muted); text-align: left; font-size: 13px; }
.ape-acc-content th { color: var(--ape-text); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

/* ---------- Details ---------- */
.ape-details { color: var(--ape-text); }
.ape-details-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.ape-details-title {
	margin: 0; color: var(--ape-text); font: 300 28px/1.1 var(--ape-head-font); letter-spacing: 4px; text-transform: uppercase;
}
.ape-details-subtitle {
	margin: 2px 0 0; color: var(--ape-text); font: 300 18px/1.2 var(--ape-head-font); letter-spacing: 4px; text-transform: uppercase;
}
.ape-details-side { list-style: none; margin: 0; padding: 0; text-align: right; }
.ape-details-side li { margin: 0; color: var(--ape-text); font: 500 11px/1.45 var(--ape-body-font); letter-spacing: 2px; text-transform: uppercase; }

.ape-details-grid { display: grid; grid-template-columns: repeat(var(--ape-cols, 3), minmax(0, 1fr)); gap: 22px; }
.ape-details-item { margin: 0; position: relative; }
.ape-details-img { overflow: hidden; border: 1px solid var(--ape-line); aspect-ratio: 1.13 / 1; }
.ape-details-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ape-details-item:hover .ape-details-img img { transform: scale(1.04); }
.ape-details-item figcaption { margin-top: 12px; color: var(--ape-text); font: 500 11px/1.3 var(--ape-body-font); letter-spacing: 2px; text-transform: uppercase; }

.ape-bracket::before,
.ape-bracket::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid #aaa; pointer-events: none; }
.ape-bracket::before { top: -16px; left: -12px; border-width: 1px 0 0 1px; }
.ape-bracket::after { bottom: -6px; right: -12px; border-width: 0 1px 1px 0; }

/* Editor-only notice */
.ape-notice { border: 1px dashed #666; padding: 14px; color: #aaa; background: #111; font: 12px/1.4 sans-serif; }

@media (max-width: 767px) {
	.ape-details-head { flex-direction: column; align-items: flex-start; }
	.ape-details-side { text-align: left; }
	.ape-details-grid { grid-template-columns: 1fr; }
	.ape-details-title { font-size: 24px; }
	.ape-bracket::before,
	.ape-bracket::after { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ape-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
