/* Holy IT Product Showcase — developed by Holy IT BD (https://holyitbd.com.bd) */
.hipsw {
	--hipsw-cols: 4;
	--hipsw-gap: 20px;
	--hipsw-radius: 14px;
	--hipsw-dur: .7s;
	--hipsw-scroll: 30s;
	--hipsw-led-speed: 4s;
	--hipsw-led-w: 3px;
	--hipsw-c1: #ff2d55;
	--hipsw-c2: #ffd60a;
	--hipsw-c3: #30d158;
	--hipsw-c4: #0a84ff;
	--hipsw-c5: #bf5af2;
	--hipsw-bg: #0d1117;
	--hipsw-fg: #f5f7fa;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px;
	overflow: hidden;
	overflow: clip;
	container-type: inline-size;
	isolation: isolate;
	text-align: left;
}
.hipsw *, .hipsw *::before, .hipsw *::after { box-sizing: border-box; }
.hipsw-card-light { --hipsw-bg: #ffffff; --hipsw-fg: #14181f; }
.hipsw-card-glass { --hipsw-bg: rgba(20,24,32,.55); }

@property --hipsw-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ── লেআউট ── */
.hipsw-grid {
	display: grid;
	grid-template-columns: repeat(var(--hipsw-cols), minmax(0, 1fr));
	gap: var(--hipsw-gap);
}
.hipsw-layout-list .hipsw-grid { grid-template-columns: 1fr; }
.hipsw-empty { padding: 16px; text-align: center; opacity: .7; }
.hipsw-layout-list .hipsw-inner { flex-direction: row; align-items: stretch; }
.hipsw-layout-list .hipsw-img { width: 32%; min-width: 120px; flex: none; }
.hipsw-layout-list .hipsw-body { justify-content: center; }
@container (max-width: 520px) {
	.hipsw-layout-list .hipsw-inner { flex-direction: column; }
	.hipsw-layout-list .hipsw-img { width: 100%; }
}
@supports not (container-type: inline-size) {
	@media (max-width: 520px) {
		.hipsw-layout-list .hipsw-inner { flex-direction: column; }
		.hipsw-layout-list .hipsw-img { width: 100%; }
	}
}

.hipsw-viewport { width: 100%; max-width: 100%; overflow: hidden; padding: 6px 0; }
.hipsw-track { display: flex; width: max-content; gap: var(--hipsw-gap); animation: hipsw-scroll var(--hipsw-scroll) linear infinite; }
.hipsw-viewport:hover .hipsw-track { animation-play-state: paused; }
.hipsw-dup { display: contents; }
.hipsw-layout-slider .hipsw-card,
.hipsw-layout-ticker .hipsw-card { width: 240px; max-width: 78vw; flex: none; }
.hipsw-layout-ticker .hipsw-card { width: 210px; }
@supports (width: 1cqw) {
	.hipsw-layout-slider .hipsw-card { width: clamp(170px, calc((100cqw - (var(--hipsw-cols) - 1) * var(--hipsw-gap)) / var(--hipsw-cols)), 360px); max-width: none; }
}
@keyframes hipsw-scroll { to { transform: translateX(calc(-50% - var(--hipsw-gap) / 2)); } }

/* ── কার্ড ── */
.hipsw-card { position: relative; border-radius: var(--hipsw-radius); transition: transform .35s ease, box-shadow .35s ease; }
.hipsw-inner {
	position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%;
	background: var(--hipsw-bg); color: var(--hipsw-fg);
	border-radius: calc(var(--hipsw-radius) - 1px); overflow: hidden;
	margin: 0;
}
.hipsw-card-glass .hipsw-inner { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hipsw-card-billboard .hipsw-inner { box-shadow: inset 0 0 40px rgba(255,255,255,.04); }

.hipsw-img { position: relative; width: 100%; aspect-ratio: var(--hipsw-ratio, 1 / 1); overflow: hidden; background: rgba(128,128,128,.12); }
.hipsw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hipsw-img a { display: block; width: 100%; height: 100%; }
.hipsw-badge {
	position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 10px; font-size: 12px; font-weight: 700;
	color: #fff; border-radius: 999px; background: linear-gradient(90deg, var(--hipsw-c1), var(--hipsw-c5));
}
.hipsw-soldout {
	position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.hipsw-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hipsw-title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--hipsw-title, inherit); }
.hipsw-title a { color: inherit; text-decoration: none; }
.hipsw-pricebox { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hipsw-price { font-size: 18px; font-weight: 800; color: var(--hipsw-price, var(--hipsw-c2)); }
.hipsw-card-light .hipsw-price { color: var(--hipsw-price, #d6336c); }
.hipsw-old { opacity: .55; font-size: 13px; }
.hipsw-qty { font-size: 13px; opacity: .85; }
.hipsw-qty.is-low { color: var(--hipsw-c1); opacity: 1; }
.hipsw-qty.is-out { color: #8e8e93; }
.hipsw-qty em { font-style: normal; font-weight: 600; }
.hipsw-btn {
	margin-top: auto; align-self: flex-start; padding: 8px 18px; border-radius: 999px; text-decoration: none;
	font-weight: 700; font-size: 14px; color: #fff; background: var(--hipsw-btn, linear-gradient(90deg, var(--hipsw-c4), var(--hipsw-c5)));
	transition: transform .25s ease, filter .25s ease;
}
.hipsw-btn:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff; }

/* ── হোভার ── */
.hipsw-hover-lift .hipsw-card:hover { transform: translateY(-8px); }
.hipsw-hover-zoom .hipsw-card:hover .hipsw-img img { transform: scale(1.12); }
.hipsw-hover-tilt .hipsw-card:hover { transform: perspective(700px) rotateX(3deg) rotateY(-4deg) translateY(-4px); }

/* ── LED লাইটিং ── */
.hipsw-led-layer { display: none; }
.hipsw-led .hipsw-led-layer { display: block; position: absolute; inset: calc(var(--hipsw-led-w) * -1); border-radius: calc(var(--hipsw-radius) + var(--hipsw-led-w)); z-index: 1; pointer-events: none; }

/* ১) ঘূর্ণায়মান রঙিন বর্ডার */
.hipsw-led-chase .hipsw-led-layer {
	background: conic-gradient(from var(--hipsw-angle), var(--hipsw-c1), var(--hipsw-c2), var(--hipsw-c3), var(--hipsw-c4), var(--hipsw-c5), var(--hipsw-c1));
	animation: hipsw-spin var(--hipsw-led-speed) linear infinite;
	filter: drop-shadow(0 0 8px var(--hipsw-c4));
}
@keyframes hipsw-spin { to { --hipsw-angle: 360deg; } }

/* ২) রঙ বদলানো গ্লো */
.hipsw-led-glow .hipsw-led-layer {
	background: var(--hipsw-c1);
	animation: hipsw-hue var(--hipsw-led-speed) linear infinite alternate;
	box-shadow: 0 0 22px 2px currentColor;
	color: var(--hipsw-c1);
}
@keyframes hipsw-hue {
	0%   { background: var(--hipsw-c1); color: var(--hipsw-c1); }
	25%  { background: var(--hipsw-c2); color: var(--hipsw-c2); }
	50%  { background: var(--hipsw-c3); color: var(--hipsw-c3); }
	75%  { background: var(--hipsw-c4); color: var(--hipsw-c4); }
	100% { background: var(--hipsw-c5); color: var(--hipsw-c5); }
}

/* ৩) বিলবোর্ড বাল্ব */
.hipsw-led-bulbs .hipsw-led-layer {
	inset: -8px; border-radius: calc(var(--hipsw-radius) + 8px);
	background:
		radial-gradient(circle, var(--hipsw-c2) 0 3px, transparent 4px) 0 0 / 22px 22px repeat-x top,
		radial-gradient(circle, var(--hipsw-c1) 0 3px, transparent 4px) 11px 0 / 22px 22px repeat-x bottom,
		radial-gradient(circle, var(--hipsw-c3) 0 3px, transparent 4px) 0 0 / 22px 22px repeat-y left,
		radial-gradient(circle, var(--hipsw-c4) 0 3px, transparent 4px) 0 11px / 22px 22px repeat-y right;
	animation: hipsw-blink calc(var(--hipsw-led-speed) / 4) steps(2, jump-none) infinite;
	filter: drop-shadow(0 0 5px var(--hipsw-c2));
}
@keyframes hipsw-blink { 0% { opacity: 1; } 100% { opacity: .35; } }
.hipsw-led-bulbs .hipsw-card { margin: 8px; }

/* ৪) রেইনবো স্ট্রিপ + গ্লো */
.hipsw-led-rainbow .hipsw-led-layer {
	background: linear-gradient(90deg, var(--hipsw-c1), var(--hipsw-c2), var(--hipsw-c3), var(--hipsw-c4), var(--hipsw-c5), var(--hipsw-c1));
	background-size: 300% 100%;
	animation: hipsw-slide var(--hipsw-led-speed) linear infinite;
	filter: blur(.4px) drop-shadow(0 0 10px var(--hipsw-c5));
}
@keyframes hipsw-slide { to { background-position: 300% 0; } }

/* ── প্রবেশ অ্যানিমেশন (JS .is-in যোগ করলে চলে) ── */
.hipsw-card[data-anim]:not([data-anim="none"]) { opacity: 0; }
.js-hipsw-ready .hipsw-card.is-in { opacity: 1; animation-duration: var(--hipsw-dur); animation-delay: var(--hipsw-delay); animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.hipsw-card.is-in[data-anim="fade-up"]     { animation-name: hipsw-fade-up; }
.hipsw-card.is-in[data-anim="fade-in"]     { animation-name: hipsw-fade-in; }
.hipsw-card.is-in[data-anim="zoom-in"]     { animation-name: hipsw-zoom-in; }
.hipsw-card.is-in[data-anim="slide-left"]  { animation-name: hipsw-slide-left; }
.hipsw-card.is-in[data-anim="slide-right"] { animation-name: hipsw-slide-right; }
.hipsw-card.is-in[data-anim="flip"]        { animation-name: hipsw-flip; }
.hipsw-card.is-in[data-anim="bounce"]      { animation-name: hipsw-bounce; }
@keyframes hipsw-fade-up    { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes hipsw-fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes hipsw-zoom-in    { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes hipsw-slide-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes hipsw-slide-right{ from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes hipsw-flip       { from { opacity: 0; transform: perspective(700px) rotateY(-90deg); } to { opacity: 1; transform: none; } }
@keyframes hipsw-bounce     { 0% { opacity: 0; transform: translateY(-60px); } 60% { opacity: 1; transform: translateY(12px); } 80% { transform: translateY(-5px); } 100% { opacity: 1; transform: none; } }
/* JS না চললে কার্ড লুকানো থাকবে না */
.hipsw:not(.js-hipsw-ready) .hipsw-card { opacity: 1 !important; }

/* ── ডেভলাপার ক্রেডিট (স্থায়ী, ছোট) ── */
.hipsw .hipsw-credit {
	display: flex !important; visibility: visible !important; opacity: 1 !important; position: relative !important;
	flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	margin: 16px auto 0 !important; padding: 0 !important; width: fit-content; max-width: 100%;
	height: auto !important; transform: none !important; clip: auto !important; background: none; border: 0;
	text-align: center; line-height: 1.2;
}
.hipsw .hipsw-credit a { text-decoration: none !important; }
.hipsw .hipsw-credit-logo { display: block !important; line-height: 0; }
.hipsw .hipsw-credit img { display: block !important; width: 56px !important; height: auto !important; border-radius: 5px; background: #fff; }
.hipsw .hipsw-credit-link { display: block !important; font-size: 10px; font-weight: 600; letter-spacing: .3px; color: #6b7280 !important; }
.hipsw .hipsw-credit-link:hover { color: #0a84ff !important; }

@media (prefers-reduced-motion: reduce) {
	.hipsw *, .hipsw *::before, .hipsw *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
	.hipsw-track { animation: none !important; overflow-x: auto; }
}
/* কলাম: কনটেইনারের (নিউজ বডি/সাইডবার) প্রস্থ অনুযায়ী */
@container (max-width: 720px) {
	.hipsw-grid, .hipsw-viewport { --hipsw-cols: var(--hipsw-cols-t, 2); }
}
@container (max-width: 460px) {
	.hipsw-grid, .hipsw-viewport { --hipsw-cols: var(--hipsw-cols-m, 1); }
}
@supports not (container-type: inline-size) {
	@media (max-width: 1024px) { .hipsw-grid, .hipsw-viewport { --hipsw-cols: var(--hipsw-cols-t, 2); } }
	@media (max-width: 600px)  { .hipsw-grid, .hipsw-viewport { --hipsw-cols: var(--hipsw-cols-m, 1); } }
}

/* থিম/নিউজ বডির স্টাইলের সাথে সংঘর্ষ এড়ানো */
.hipsw .hipsw-grid > *, .hipsw .hipsw-track > * { min-width: 0; }
.hipsw article.hipsw-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; max-width: 100%; }
.hipsw .hipsw-inner, .hipsw .hipsw-body, .hipsw .hipsw-img, .hipsw .hipsw-pricebox, .hipsw .hipsw-qty { margin-left: 0; margin-right: 0; float: none; }
.hipsw img { max-width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0; float: none; }
.hipsw .hipsw-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hipsw h3.hipsw-title { margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: normal; font-family: inherit; }
.hipsw h3.hipsw-title::before, .hipsw h3.hipsw-title::after { content: none; }
.hipsw a { box-shadow: none; border-bottom: 0; }
.hipsw del, .hipsw strong, .hipsw em { background: none; }
.hipsw .hipsw-btn { display: inline-block; line-height: 1.4; border: 0; }
.hipsw p { margin: 0; }
