/* Affiliate Product Box – every rule is scoped to .apb-box so nothing else on the site is touched. */
.apb-box,
.apb-box *,
.apb-box *::before,
.apb-box *::after { box-sizing: border-box; }

.apb-box {
	--apb-title: #1e73be;
	--apb-price: #ff0000;
	--apb-btn-bg: #ff9d2d;
	--apb-btn-color: #000000;
	--apb-radius: 0px;
	--apb-star: #ff9d2d;
	--apb-line: #d9d9d9;

	position: relative;
	clear: both;
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #eee;
	color: #222;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	overflow: hidden;
}

.apb-box img { display: block; max-width: 100%; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.apb-box p { margin: 0 0 .75em; }
.apb-box a { box-shadow: none; }

/* Header */
.apb-box .apb-head { margin: 0 0 20px; padding: 0 0 14px; border-bottom: 1px solid #000; }
.apb-box .apb-title { margin: 0 0 12px; padding: 0 0 2px; font-size: 22px; line-height: 1.35; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--apb-title); }
.apb-box .apb-title a { display: inline; padding-bottom: 2px; color: inherit; font: inherit; text-decoration: none; border: 0; }
.apb-box .apb-title a:hover { text-decoration: underline; }
.apb-box .apb-subtitle { margin: 0; font-size: 15px; }

/* Rating stars */
.apb-box .apb-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; padding-top: 4px; clear: both; font-size: 15px; line-height: 1.2; }
.apb-box .apb-rating-label { font-weight: 700; color: #111; }
.apb-box .apb-rating-num { font-weight: 700; font-size: 13px; color: #111; }
.apb-box .apb-stars {
	position: relative; display: inline-block; flex: 0 0 auto; width: 120px; height: 24px; background: #dcdcdc; overflow: hidden;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") 0 0 / 24px 24px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") 0 0 / 24px 24px repeat-x;
}
.apb-box .apb-stars-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--apb-star); }

/* Main row */
.apb-box .apb-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.apb-box.apb-no-media .apb-main { grid-template-columns: minmax(0, 1fr); }
.apb-box .apb-media { position: relative; aspect-ratio: 4 / 3; background: #f4f4f4; overflow: hidden; }
.apb-box .apb-media img { width: 100%; height: 100%; object-fit: cover; }

.apb-box .apb-info { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.apb-box .apb-price { font-size: 22px; line-height: 1.3; font-weight: 700; color: #111; }
.apb-box .apb-price-value { color: var(--apb-price); }
.apb-box .apb-store { max-width: 100%; word-break: break-word; }
.apb-box .apb-store a { color: #0b6fc2; text-decoration: underline; }

.apb-box a.apb-btn {
	display: inline-block;
	margin: 8px 0 0;
	padding: 12px 24px;
	background: var(--apb-btn-bg);
	color: var(--apb-btn-color);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border: 0;
	border-radius: var(--apb-radius);
	box-shadow: none;
	cursor: pointer;
	transition: filter .15s ease;
}
.apb-box a.apb-btn:hover,
.apb-box a.apb-btn:focus { color: var(--apb-btn-color); text-decoration: none; filter: brightness(.92); }
.apb-box .apb-disclosure { margin: 0; font-size: 12px; opacity: .7; }

/* Gallery strip */
.apb-box .apb-gallery { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 10px 0; border-top: 1px solid var(--apb-line); border-bottom: 1px solid var(--apb-line); }
.apb-box .apb-track { flex: 1 1 auto; min-width: 0; display: flex; gap: 16px; padding: 2px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.apb-box .apb-track::-webkit-scrollbar { display: none; }
.apb-box button.apb-thumb { flex: 0 0 72px; width: 72px; height: 50px; margin: 0; padding: 0; line-height: 0; background: none; border: 2px solid transparent; border-radius: 0; box-shadow: none; cursor: pointer; opacity: .85; scroll-snap-align: start; }
.apb-box button.apb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.apb-box button.apb-thumb:hover { opacity: 1; }
.apb-box button.apb-thumb.is-active { border-color: var(--apb-btn-bg); opacity: 1; }

.apb-box button.apb-nav { position: relative; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 0; background: #c9dcee; border: 0; border-radius: 50%; box-shadow: none; cursor: pointer; }
.apb-box button.apb-nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border: solid #fff; border-width: 2px 2px 0 0; }
.apb-box button.apb-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.apb-box button.apb-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.apb-box button.apb-nav:hover:not(:disabled) { background: #9fc1e3; }
.apb-box button.apb-nav:disabled { opacity: .45; cursor: default; }
.apb-box button.apb-nav[hidden] { display: none; }

/* Description */
.apb-box .apb-desc { margin: 18px 0 0; }
.apb-box .apb-desc > :last-child { margin-bottom: 0; }

.apb-box.apb-placeholder { padding: 16px; text-align: center; color: #666; border-style: dashed; }

/* Mobile */
@media (max-width: 680px) {
	.apb-box { padding: 14px; }
	.apb-box .apb-title { font-size: 19px; }
	.apb-box .apb-main { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.apb-box .apb-info { align-items: stretch; }
	.apb-box .apb-price { font-size: 20px; }
	.apb-box a.apb-btn { display: block; width: 100%; padding: 14px 16px; }
	.apb-box .apb-track { gap: 10px; }
	.apb-box button.apb-thumb { flex-basis: 64px; width: 64px; height: 46px; }
}


/* ======================================================================
   Pros & Cons review box  (.apb-review)
   ====================================================================== */
.apb-review,
.apb-review *,
.apb-review *::before,
.apb-review *::after { box-sizing: border-box; }

.apb-review {
	--apb-tab-bg: #ff9d2d;
	--apb-tab-color: #000000;
	--apb-pros: #1ba15c;
	--apb-cons: #d64530;
	--apb-link: #1e5fa8;

	clear: both;
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	color: #222;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.apb-review .apb-review-heading { margin: 0 0 14px; padding: 0; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none; color: #111; }
.apb-review .apb-review-heading a,
.apb-review .apb-review-heading .apb-review-name { color: var(--apb-link); font: inherit; text-decoration: none; border: 0; box-shadow: none; }
.apb-review .apb-review-heading a:hover { text-decoration: underline; }

.apb-review .apb-review-tabs { margin: 0; padding: 0; border-bottom: 2px solid var(--apb-tab-bg); }
.apb-review .apb-review-tab { display: inline-block; min-width: 220px; max-width: 100%; padding: 10px 20px; background: var(--apb-tab-bg); color: var(--apb-tab-color); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }

.apb-review .apb-review-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 28px 16px 26px; background: #fff; border: 1px solid #e5e5e5; border-top: 0; box-shadow: 0 2px 3px rgba(0, 0, 0, .12); }
.apb-review.apb-single .apb-review-panel { grid-template-columns: minmax(0, 1fr); }
.apb-review .apb-col-title { margin: 0 0 4px; padding: 0; font-size: 26px; line-height: 1.2; font-weight: 400; letter-spacing: 0; text-transform: none; }
.apb-review .apb-review-pros .apb-col-title { color: var(--apb-pros); }
.apb-review .apb-review-cons .apb-col-title { color: var(--apb-cons); }
.apb-review .apb-review-panel ul { margin: 0; padding: 0 0 0 22px; list-style: disc outside; }
.apb-review .apb-review-panel li { display: list-item; margin: 0; padding: 0; list-style: disc outside; font-size: 16px; line-height: 1.4; }
.apb-review .apb-review-panel a { color: var(--apb-link); }

@media (max-width: 680px) {
	.apb-review .apb-review-heading { font-size: 18px; }
	.apb-review .apb-review-tab { display: block; width: 100%; min-width: 0; }
	.apb-review .apb-review-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 14px; }
	.apb-review .apb-col-title { font-size: 22px; }
}


/* ======================================================================
   Product Quick List  (.apb-ql)  +  anchor jump helpers
   ====================================================================== */
.apb-box[id] { scroll-margin-top: 90px; }
@keyframes apb-flash { 0% { box-shadow: 0 0 0 3px rgba(255, 157, 45, .85); } 100% { box-shadow: 0 0 0 3px rgba(255, 157, 45, 0); } }
.apb-box.apb-flash { animation: apb-flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .apb-box.apb-flash { animation: none; } }

.apb-ql,
.apb-ql *,
.apb-ql *::before,
.apb-ql *::after { box-sizing: border-box; }

.apb-ql { --apb-ql-link: #1f6aa5; --apb-ql-name: #222; --apb-ql-border: #d9d9d9; clear: both; width: 100%; max-width: 100%; margin: 1.5em 0; text-align: left; }
.apb-ql .apb-ql-item { margin: 0 0 16px; padding: 20px; background: #fff; border: 2px solid var(--apb-ql-border); }
.apb-ql .apb-ql-item:last-child { margin-bottom: 0; }
.apb-ql .apb-ql-name { margin: 0 0 14px; padding: 0; font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--apb-ql-name); }
.apb-ql h2.apb-ql-name { font-size: 22px; } .apb-ql h3.apb-ql-name { font-size: 20px; } .apb-ql h4.apb-ql-name { font-size: 18px; }
.apb-ql .apb-ql-actions { display: flex; flex-wrap: wrap; align-items: center; }
.apb-ql .apb-ql-actions a { display: inline-block; padding: 4px 0; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--apb-ql-link); text-decoration: underline; border: 0; box-shadow: none; background: none; }
.apb-ql .apb-ql-actions a:hover,
.apb-ql .apb-ql-actions a:focus { text-decoration: none; }
.apb-ql .apb-ql-read + .apb-ql-buy { position: relative; margin-left: 32px; }
.apb-ql .apb-ql-read + .apb-ql-buy::before { content: ""; position: absolute; left: -17px; top: 18%; height: 64%; border-left: 2px solid #ccc; }

@media (max-width: 520px) {
	.apb-ql .apb-ql-item { padding: 14px; }
	.apb-ql .apb-ql-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
	.apb-ql .apb-ql-actions a { padding: 8px 0; }
	.apb-ql .apb-ql-read + .apb-ql-buy { margin-left: 0; }
	.apb-ql .apb-ql-read + .apb-ql-buy::before { display: none; }
}
