/* Каталог для партнёров (/partners/) */

.aq-pc {
	--aq-pc-green: #009640;
	--aq-pc-green-dark: #007a34;
	--aq-pc-border: #e2e8f0;
	--aq-pc-text: #1e293b;
	--aq-pc-muted: #64748b;
	color: var(--aq-pc-text);
}
.aq-pc code {
	padding: 1px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	font-size: .92em;
	word-break: break-all;
}

.aq-pc-intro p {
	max-width: 820px;
	margin: 0 0 14px;
	color: var(--aq-pc-muted);
}
.aq-pc-downloads {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 24px;
}
.aq-pc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid var(--aq-pc-green);
	border-radius: 10px;
	background: var(--aq-pc-green);
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
}
.aq-pc-btn:hover {
	background: var(--aq-pc-green-dark);
}
.aq-pc-btn--light {
	background: #fff;
	color: var(--aq-pc-green) !important;
}
.aq-pc-btn--light:hover {
	background: #f0fdf4;
}
.aq-pc-link {
	color: var(--aq-pc-green);
	text-decoration: underline;
}

.aq-pc-editor {
	margin-bottom: 20px;
	padding: 12px 16px;
	border: 1px solid #fde68a;
	border-radius: 10px;
	background: #fffbeb;
	font-size: 14px;
}
.aq-pc-editor a {
	color: var(--aq-pc-green);
}

.aq-pc-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.aq-pc-filter input[type="search"],
.aq-pc-filter select {
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--aq-pc-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: var(--aq-pc-text);
}
.aq-pc-filter input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
}
.aq-pc-filter select {
	flex: 0 1 220px;
	min-width: 0;
}
.aq-pc-count {
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--aq-pc-muted);
}
.aq-pc-empty {
	padding: 40px 20px;
	border: 1px dashed var(--aq-pc-border);
	border-radius: 12px;
	text-align: center;
	color: var(--aq-pc-muted);
}

.aq-pc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.aq-pc-card {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 1px solid var(--aq-pc-border);
	border-radius: 12px;
	background: #fff;
	color: var(--aq-pc-text) !important;
	text-decoration: none !important;
	transition: box-shadow .15s, border-color .15s;
}
.aq-pc-card:hover {
	border-color: var(--aq-pc-green);
	box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.aq-pc-card-img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	margin-bottom: 10px;
	border-radius: 8px;
	background: #f8fafc;
}
.aq-pc-card-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.aq-pc-nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	color: var(--aq-pc-muted);
	font-size: 13px;
	text-align: center;
}
.aq-pc-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e145b5;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.aq-pc-badge--static {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
}
.aq-pc-card-name {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}
.aq-pc-card-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	font-size: 12px;
	color: var(--aq-pc-muted);
}
.aq-pc-chip {
	align-self: flex-start;
	margin-top: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--aq-pc-text);
}

.aq-pc-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 28px 0;
}
.aq-pc-pager a,
.aq-pc-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border: 1px solid var(--aq-pc-border);
	border-radius: 8px;
	color: var(--aq-pc-text);
	text-decoration: none;
}
.aq-pc-pager .is-current {
	border-color: var(--aq-pc-green);
	background: var(--aq-pc-green);
	color: #fff;
}
.aq-pc-pager .is-gap {
	border: 0;
}

.aq-pc-api {
	margin-top: 40px;
	padding: 20px 24px;
	border-radius: 12px;
	background: #f8fafc;
	font-size: 14px;
}
.aq-pc-api h2,
.aq-pc-upload-rules h2,
.aq-pc-props-group h2 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
}
.aq-pc-api ul,
.aq-pc-upload-rules ul {
	margin: 0 0 10px;
	padding-left: 20px;
}
.aq-pc-api li,
.aq-pc-upload-rules li {
	margin-bottom: 4px;
}

/* ---------- Карточка товара ---------- */

.aq-pc-detail-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
	margin-bottom: 30px;
}
.aq-pc-gallery-main {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 460px;
	border: 1px solid var(--aq-pc-border);
	border-radius: 12px;
	background: #fff;
}
.aq-pc-gallery-main img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.aq-pc-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.aq-pc-gallery-thumb {
	width: 76px;
	height: 76px;
	padding: 4px;
	border: 2px solid var(--aq-pc-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.aq-pc-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.aq-pc-gallery-thumb.is-active {
	border-color: var(--aq-pc-green);
}
.aq-pc-facts dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin: 0 0 20px;
	font-size: 15px;
}
.aq-pc-facts dt {
	color: var(--aq-pc-muted);
}
.aq-pc-facts dd {
	margin: 0;
	font-weight: 600;
	word-break: break-word;
}

.aq-pc-props {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
	gap: 20px 30px;
	margin-bottom: 30px;
}
.aq-pc-props-group table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.aq-pc-props-group th,
.aq-pc-props-group td {
	padding: 7px 0;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: top;
}
.aq-pc-props-group th {
	width: 45%;
	padding-right: 16px;
	font-weight: 400;
	color: var(--aq-pc-muted);
}
.aq-pc-description {
	font-size: 14px;
	line-height: 1.6;
}

/* ---------- Загрузка фото ---------- */

.aq-pc-upload > p {
	max-width: 860px;
}
.aq-pc-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 180px;
	margin: 20px 0;
	padding: 20px;
	border: 2px dashed #94a3b8;
	border-radius: 14px;
	background: #f8fafc;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.aq-pc-dropzone.is-over {
	border-color: var(--aq-pc-green);
	background: #f0fdf4;
}
.aq-pc-dropzone input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.aq-pc-dropzone-title {
	font-size: 17px;
	font-weight: 600;
}
.aq-pc-dropzone-hint {
	font-size: 13px;
	color: var(--aq-pc-muted);
}
.aq-pc-upload-summary {
	margin-bottom: 12px;
	font-weight: 600;
}
.aq-pc-upload-log {
	width: 100%;
	margin-bottom: 30px;
	border-collapse: collapse;
	font-size: 14px;
}
.aq-pc-upload-log th,
.aq-pc-upload-log td {
	padding: 6px 8px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: top;
}
.aq-pc-upload-log .is-ok {
	color: var(--aq-pc-green);
}
.aq-pc-upload-log .is-error {
	color: #e11d48;
}
.aq-pc-upload-log .is-warning {
	color: #b45309;
}

@media (max-width: 992px) {
	.aq-pc-detail-top {
		grid-template-columns: 1fr;
	}
	.aq-pc-gallery-main {
		height: 340px;
	}
	.aq-pc-props {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 576px) {
	.aq-pc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.aq-pc-card-img {
		height: 150px;
	}
	.aq-pc-filter select,
	.aq-pc-filter input[type="search"] {
		flex: 1 1 100%;
	}
	.aq-pc-facts dl {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.aq-pc-facts dd {
		margin-bottom: 8px;
	}
}
