/* ==========================================================================
   Base structure (shared by all themes)
   ========================================================================== */

.apb-box {
	position: relative;
	max-width: 620px;
	margin: 24px 0;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.apb-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #ff9900;
	color: #111;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 4px;
	z-index: 3;
}

.apb-box-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 20px;
}

/* Image + glow effect --------------------------------------------------- */

.apb-image {
	position: relative;
	flex: 0 0 160px;
	text-align: center;
}

.apb-image img {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* A blurred, enlarged copy of the same image sits behind it, creating a
   soft glowing "aura" that automatically matches the product's own colors. */
.apb-image-glow-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 130%;
	height: 130%;
	transform: translate(-50%, -50%) scale(1);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: blur(22px) saturate(1.6) brightness(1.05);
	opacity: 0.55;
	z-index: 0;
	pointer-events: none;
}

.apb-content {
	flex: 1 1 260px;
	min-width: 220px;
}

.apb-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.apb-title a {
	color: #111;
	text-decoration: none;
}

.apb-title a:hover {
	color: #cc6600;
	text-decoration: underline;
}

.apb-rating {
	margin-bottom: 10px;
	font-size: 15px;
}

.apb-star {
	color: #ff9900;
}

.apb-star-empty {
	color: #ccc;
}

.apb-rating-number {
	color: #666;
	font-size: 13px;
	margin-left: 4px;
}

.apb-features {
	margin: 0 0 12px;
	padding-left: 18px;
	color: #333;
	font-size: 14px;
	line-height: 1.6;
}

.apb-price {
	font-size: 22px;
	font-weight: 700;
	color: #111;
	margin-bottom: 12px;
}

/* Shown when no manual price was entered — a plain "Check Price" label,
   kept smaller so it doesn't compete with the CTA button below it. */
.apb-price.apb-price-fallback {
	font-size: 14px;
	font-weight: 600;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 10px;
}

.apb-button {
	display: inline-block;
	background: #ff9900;
	color: #111 !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	padding: 12px 24px;
	border-radius: 6px;
	transition: background 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.apb-button:hover {
	background: #e88a00;
}

.apb-disclosure {
	margin: 10px 0 0;
	font-size: 12px;
	color: #888;
}

@media (max-width: 480px) {
	.apb-box-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.apb-image {
		flex-basis: auto;
	}
}

/* ==========================================================================
   Theme: Classic (default — Amazon orange)
   ========================================================================== */

.apb-theme-classic .apb-button {
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Theme: Minimal — no card chrome, thin divider, outline CTA
   ========================================================================== */

.apb-theme-minimal {
	border: none;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.apb-theme-minimal .apb-badge {
	background: transparent;
	color: #111;
	border: 1px solid #111;
}

.apb-theme-minimal .apb-button {
	background: transparent;
	color: #111 !important;
	border: 2px solid #111;
	border-radius: 2px;
}

.apb-theme-minimal .apb-button:hover {
	background: #111;
	color: #fff !important;
}

.apb-theme-minimal .apb-image-glow-bg {
	opacity: 0.3;
	filter: blur(18px) saturate(1.2);
}

/* ==========================================================================
   Theme: Elevated Card — big soft shadow, rounded corners, centered image
   ========================================================================== */

.apb-theme-card {
	border: none;
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.apb-theme-card .apb-box-inner {
	flex-direction: column;
	text-align: center;
	padding: 28px 24px;
}

.apb-theme-card .apb-image {
	flex-basis: auto;
	margin: 0 auto 10px;
}

.apb-theme-card .apb-image img {
	max-height: 200px;
}

.apb-theme-card .apb-features {
	text-align: left;
	display: inline-block;
}

.apb-theme-card .apb-button {
	border-radius: 999px;
	padding: 12px 32px;
}

/* ==========================================================================
   Theme: Dark Mode — dark background, neon accents
   ========================================================================== */

.apb-theme-dark {
	background: #1b1c22;
	border-color: #2c2d35;
}

.apb-theme-dark .apb-title a {
	color: #f5f5f5;
}

.apb-theme-dark .apb-title a:hover {
	color: #ff9900;
}

.apb-theme-dark .apb-features {
	color: #cfcfcf;
}

.apb-theme-dark .apb-price {
	color: #ffffff;
}

.apb-theme-dark .apb-price.apb-price-fallback {
	color: #9a9a9a;
}

.apb-theme-dark .apb-rating-number {
	color: #aaaaaa;
}

.apb-theme-dark .apb-disclosure {
	color: #777;
}

.apb-theme-dark .apb-button {
	background: #ff9900;
	color: #111 !important;
}

.apb-theme-dark .apb-image-glow-bg {
	opacity: 0.7;
	filter: blur(26px) saturate(1.8) brightness(1.2);
}

/* ==========================================================================
   Theme: Bordered — bold colored frame, squared corners
   ========================================================================== */

.apb-theme-bordered {
	border: 3px solid #111;
	border-radius: 4px;
	box-shadow: none;
}

.apb-theme-bordered .apb-badge {
	top: 0;
	left: 0;
	border-radius: 0 0 6px 0;
}

.apb-theme-bordered .apb-button {
	border-radius: 0;
	background: #111;
	color: #fff !important;
}

.apb-theme-bordered .apb-button:hover {
	background: #ff9900;
	color: #111 !important;
}

/* ==========================================================================
   Theme: Modern Gradient — gradient accents on badge, price, and CTA
   ========================================================================== */

.apb-theme-gradient {
	border: none;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(102, 51, 204, 0.12);
}

.apb-theme-gradient .apb-badge {
	background: linear-gradient(135deg, #ff6a00, #ee0979);
	color: #fff;
}

.apb-theme-gradient .apb-price {
	background: linear-gradient(135deg, #ff6a00, #ee0979);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.apb-theme-gradient .apb-price.apb-price-fallback {
	-webkit-background-clip: initial;
	background-clip: initial;
	color: #777;
	background: none;
}

.apb-theme-gradient .apb-button {
	background: linear-gradient(135deg, #ff6a00, #ee0979);
	color: #fff !important;
	border-radius: 999px;
}

.apb-theme-gradient .apb-button:hover {
	opacity: 0.9;
}

.apb-theme-gradient .apb-image-glow-bg {
	opacity: 0.6;
	filter: blur(24px) saturate(2) hue-rotate(-5deg);
}

/* ==========================================================================
   PRO THEME: Neon Glow — outer glowing ring drawn OUTSIDE the box edge
   ========================================================================== */

.apb-theme-neon {
	border: 1px solid #00e5ff;
	border-radius: 12px;
	background: #0d0f14;
	box-shadow:
		0 0 0 1px #00e5ff,
		0 0 18px 4px rgba(0, 229, 255, 0.55),
		0 0 40px 10px rgba(0, 229, 255, 0.25);
	margin: 30px 6px;
}

.apb-theme-neon .apb-title a {
	color: #f2f9ff;
}

.apb-theme-neon .apb-title a:hover {
	color: #00e5ff;
}

.apb-theme-neon .apb-features {
	color: #b8ccd6;
}

.apb-theme-neon .apb-price {
	color: #00e5ff;
}

.apb-theme-neon .apb-price.apb-price-fallback {
	color: #7fb8c4;
}

.apb-theme-neon .apb-rating-number,
.apb-theme-neon .apb-disclosure {
	color: #8fa3ab;
}

.apb-theme-neon .apb-button {
	background: #00e5ff;
	color: #0d0f14 !important;
	box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.apb-theme-neon .apb-button:hover {
	background: #33ecff;
}

.apb-theme-neon .apb-image-glow-bg {
	opacity: 0.75;
	filter: blur(26px) saturate(2.2) hue-rotate(140deg);
}

/* ==========================================================================
   PRO THEME: Luxury Gold — outer double border, serif type, premium feel
   ========================================================================== */

.apb-theme-luxury {
	border: 1px solid #cbaa63;
	border-radius: 4px;
	background: #fffdf8;
	box-shadow:
		0 0 0 1px #fffdf8,
		0 0 0 5px #cbaa63,
		0 10px 24px rgba(30, 22, 0, 0.15);
	margin: 30px 8px;
	font-family: Georgia, "Times New Roman", serif;
}

.apb-theme-luxury .apb-badge {
	background: #cbaa63;
	color: #fff;
	border-radius: 0;
	letter-spacing: 0.08em;
}

.apb-theme-luxury .apb-title a {
	color: #1c1c1c;
}

.apb-theme-luxury .apb-title a:hover {
	color: #a8823f;
}

.apb-theme-luxury .apb-price {
	color: #a8823f;
}

.apb-theme-luxury .apb-button {
	background: #1c1c1c;
	color: #f4e6c4 !important;
	border-radius: 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 13px;
}

.apb-theme-luxury .apb-button:hover {
	background: #cbaa63;
	color: #1c1c1c !important;
}

.apb-theme-luxury .apb-image-glow-bg {
	opacity: 0.35;
	filter: blur(20px) saturate(1.3) sepia(0.2);
}

/* ==========================================================================
   PRO THEME: Outer Frame — a picture-frame style border sitting outside
   the box with a visible gap, like a matted print
   ========================================================================== */

.apb-theme-frame {
	border: none;
	border-radius: 6px;
	box-shadow:
		0 0 0 10px #ffffff,
		0 0 0 12px #111111,
		0 6px 20px rgba(0, 0, 0, 0.12);
	margin: 32px 16px;
}

.apb-theme-frame .apb-badge {
	top: -4px;
	left: 16px;
}

.apb-theme-frame .apb-button {
	border-radius: 3px;
}

/* ==========================================================================
   PRO THEME: Sale Ribbon — bold corner ribbon and an accent outer edge
   ========================================================================== */

.apb-theme-ribbon {
	border-radius: 10px;
	box-shadow:
		0 0 0 3px #e51937,
		0 6px 18px rgba(0, 0, 0, 0.1);
	margin: 26px 8px;
	overflow: visible;
}

.apb-theme-ribbon .apb-badge {
	top: 14px;
	left: -34px;
	width: 140px;
	text-align: center;
	transform: rotate(-45deg);
	background: #e51937;
	color: #fff;
	border-radius: 0;
	padding: 5px 0;
}

.apb-theme-ribbon .apb-price {
	color: #e51937;
}

.apb-theme-ribbon .apb-button {
	background: #e51937;
	color: #fff !important;
}

.apb-theme-ribbon .apb-button:hover {
	background: #c31530;
}
