/* Store-specific styles */
.cart-toggle {
	background: #dc3545;
	color: #FFF;
	border: 2px solid var(--border);
	padding: 0.5rem 1rem;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	position: relative;
	text-transform: uppercase;
	transition: all 0.3s;
}
.cart-toggle:hover {
	background: var(--text);
	color: var(--bg);
}
.cart-toggle.active {
	background: var(--text);
	color: var(--bg);
}
.cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--text);
	color: var(--bg);
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: bold;
}
/* Clean Brutalist Checkbox - No shadows, bold and aligned */
.brutalist-checkbox {
	margin: 0;
	font-family: 'IBM Plex Mono', monospace;
}
.brutalist-checkbox-input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.brutalist-checkbox-label {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	cursor: pointer;
	user-select: none;
	color: var(--text);
}
/* The visible checkbox box */
.brutalist-checkbox-box {
	width: 32px;
	height: 32px;
	background: var(--bg);
	border: 5px solid var(--border);
	flex-shrink: 0;
	position: relative;
	transition: all 0.2s ease;
}
/* Checked state: fill black */
.brutalist-checkbox-input:checked + .brutalist-checkbox-label .brutalist-checkbox-box {
	background: var(--text);
}
/* Big white checkmark when checked */
.brutalist-checkbox-input:checked + .brutalist-checkbox-label .brutalist-checkbox-box::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 22px;
	font-weight: 900;
	color: var(--bg);
	line-height: 1;
}
/* Subtle hover lift without shadow */
.brutalist-checkbox-label:hover .brutalist-checkbox-box {
	background: var(--secondary);
}
/* Focus outline for accessibility */
.brutalist-checkbox-input:focus-visible + .brutalist-checkbox-label .brutalist-checkbox-box {
	outline: 3px solid var(--hover);
	outline-offset: 4px;
}
/* Cart Dropdown - Always visible when items exist */
.cart-dropdown {
	position: fixed;
	top: 0;
	right: 2rem;
	width: 350px;
	background: var(--bg);
	border: 2px solid var(--border);
	box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
	z-index: 101;
	margin-top: 100px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
}
.cart-dropdown.hidden {
	display: none;
}
.cart-header {
	padding: 1rem;
	border-bottom: 2px solid var(--border);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.cart-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	color: var(--text);
}
.cart-close:hover {
	color: var(--hover);
}
.cart-items {
	max-height: 300px;
	overflow-y: auto;
}
.cart-item {
	padding: 1rem;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 1rem;
}
.cart-item-info {
	flex: 1;
}
.cart-item-name {
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
}
.cart-item-details {
	font-size: 0.75rem;
	color: #555;
}
.cart-item-remove {
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	color: var(--text);
	font-weight: 700;
}
.cart-item-remove:hover {
	color: var(--hover);
}
.cart-footer {
	padding: 1rem;
	border-top: 2px solid var(--border);
}
.cart-total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 1rem;
}
/* Hero */
.hero {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 2rem 1rem;
	text-align: left;
}
.hero h1 {
	font-size: 4.5rem;
	margin-bottom: 0.5rem;
	letter-spacing: -2px;
}
.hero p {
	font-size: 0.95rem;
	color: #555;
}
.hero h1 {
	font-size: clamp(3.5rem, 6vw, 4rem);
	line-height: 1.3;
}
.hero .highlight {
	border-bottom: 2px dotted #dc3545;
}
section.hero>h1>span.hero-sub {
	font-size: 70%;
	background-color: #111;
	white-space: nowrap;
}
.hero-sub {
	background: #111;
	color: #fff;
	text-shadow: none;
	padding: 0 5px;
}
.hero-tagline {
	margin-top: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

/* ========================================
   HORIZONTAL PRODUCT CARDS - FULL WIDTH
   ======================================== */

/* Products section - match hero width */
.products,
.contact {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 2rem 2rem;
}

/* Product grid - stack vertically */
.product-grid {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* Product card - horizontal layout with footer underneath */
.product-card {
	border: 0;
	background: #fff;
	border-radius: 0 !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: auto;               /* no forced min height anymore */
	box-shadow: 8px 8px 0 rgba(0,0,0,1), 16px 16px 0 rgba(0,0,0,0.15);
}

/* Product image - left side, fixed aspect ratio */
.product-image {
	background: #000;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;           /* ← this is the key change */
	overflow: hidden;
}

/* Make sure media fills nicely */
.product-image img,
.product-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;              /* or try 'contain' if you hate cropping */
	display: block;
}

.product-image-placeholder {
	font-size: 0.85rem;
	color: #999;
}

/* Product body - right side with content */
.product-body {
	padding: 1.5rem 1.5rem 1rem;
	flex-grow: 1;                   /* pushes footer down if content is short */
	display: flex;
	flex-direction: column;
}

.product-category {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #666;
	margin-bottom: 0.5rem;
}

.product-name {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

.product-description {
	font-size: 0.90rem;
	color: #666;
	margin-bottom: 1rem;
}

.product-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem 0;
}

.product-features li {
	font-size: 0.85rem;
	padding: 0.35rem 0;
	padding-left: 1.2rem;
	position: relative;
	display: flex;
	align-items: center;
}

.product-features li::before {
	content: '■';
	position: absolute;
	left: 0;
	top: 52%;
	transform: translateY(-50%);
	font-size: 0.6rem;
	color: #111;
}

/* Product footer - spans full width at bottom underneath both columns */
.product-footer {
	grid-column: 1 / -1; /* Span all columns */
	padding: 1.5rem 1.5rem 0;
	border-top: 1px dotted var(--border);
	background: #fff;
}

.product-footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.product-price {
	font-family: 'Space Mono', monospace;
	font-weight: 700;
	font-size: 1.5rem;
}

/* Status banners - inside footer, full width */
.status-banner {
	font-size: 0.75rem;
	margin-left: -25px;
	margin-right: -25px;
	padding: 0.75rem 1rem;
}

.status-backorder {
	background-color: #ffc107;
}

.status-out-of-stock {
	background-color: #EEE;
}

.status-instock {
	background-color: #18d37d;
}

.out-of-stock-badge {
	background: #dc3545;
	color: white;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.stock-info {
	font-size: 0.75rem;
	color: #666;
	margin-top: 0.5rem;
}

.stock-notification-form {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.stock-notification-form input {
	font-family: 'IBM Plex Mono', monospace;
	border: 2px solid var(--border);
	padding: 0.5rem;
	font-size: 0.8rem;
	width: 100%;
	margin-bottom: 0.5rem;
}

/* ========================================
   MOBILE RESPONSIVE - STACK VERTICALLY
   ======================================== */

@media (max-width: 768px) {
	.products {
		padding: 2rem 1rem;
	}

	/* Stack image above content on mobile */
	.product-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto; /* Image, body, footer */
		min-height: auto;
	}

	.product-image {
		border-right: none;
		border-bottom: 2px solid var(--border);
		aspect-ratio: 3/4;
		height: auto;
	}

	.product-body {
		padding: 1.25rem;
	}

	.product-footer {
		grid-column: 1; /* Reset for mobile */
	}

	.product-name {
		font-size: 1.15rem;
	}

	.cart-dropdown {
		right: 1rem;
		left: 1rem;
		width: auto;
	}
	.product-card {
		box-shadow: 6px 6px 0 rgba(0,0,0,1), 12px 12px 0 rgba(0,0,0,0.15);
	}

	.product-image {
		aspect-ratio: 16 / 9;       /* still 16:9 on mobile */
	}

	.product-body {
		padding: 1.25rem 1.25rem 0.75rem;
	}

	.product-footer {
		padding: 1rem 1.25rem 1.5rem;
	}
}

/* Retro Brutalist Contact Form - Sharp Square + External 3D Shadow */
.contact-section .form-control,
.contact-section textarea {
	font-family: 'IBM Plex Mono', monospace !important;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.9rem;
	background: #FFF;
	border: 4px solid var(--border);
	border-radius: 0 !important;
	padding: 1rem;
	box-shadow:
		6px 6px 0 rgba(0,0,0,1),
		12px 12px 0 rgba(0,0,0,0.1);
	transition: all 0.2s ease;
}

.contact-section .form-control:focus,
.contact-section textarea:focus {
	outline: none;
	transform: translate(-4px, -4px);
	box-shadow:
		10px 10px 0 rgba(0,0,0,1),
		20px 20px 0 rgba(0,0,0,0.1);
}

.contact-section .form-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 0.5rem;
}

/* Submit Button - Extra chunky external 3D */
.contact-section .btn-3d {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 1.2rem 3rem;
	font-size: 1rem;
	margin-top: 1rem;
	border-radius: 0 !important;
	border: 4px solid var(--border);
	box-shadow:
		8px 8px 0 rgba(0,0,0,1),
		16px 16px 0 rgba(0,0,0,0.2);
	transition: all 0.2s ease;
}

.contact-section .btn-3d:hover {
	transform: translate(4px, 4px);
	box-shadow:
		4px 4px 0 rgba(0,0,0,1),
		8px 8px 0 rgba(0,0,0,0.2);
}

.contact-section .btn-3d:active {
	transform: translate(8px, 8px);
	box-shadow: 0 0 0 rgba(0,0,0,1);
}

/* Alerts */
.contact-section .alert {
	font-family: 'IBM Plex Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: 3px solid var(--border);
	box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.terms-content {
	max-height: 300px;
	overflow-y: auto;
	padding: 1rem;
	background: var(--secondary);
	border: 2px solid var(--border);
	margin-bottom: 1rem;
	font-size: 0.8rem;
	line-height: 1.6;
}

/* Custom Product Image Carousel - No conflict with Bootstrap */
.product-image-custom-carousel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.product-image-custom-carousel .custom-carousel-inner {
	display: flex;
	transition: transform 0.4s ease;
	height: 100%;
	width: 100%;
}

.product-image-custom-carousel .custom-carousel-item {
	min-width: 100%;
	width: 100%;
	flex-shrink: 0;
	height: 100%;
}

.product-image-custom-carousel .custom-carousel-item img,
.product-image-custom-carousel .custom-carousel-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* On mobile - show full media without aggressive cropping */
@media (max-width: 768px) {
	.product-image-custom-carousel .custom-carousel-item img,
	.product-image-custom-carousel .custom-carousel-item video {
		object-fit: cover;
		background: var(--secondary);
	}
}

/* Carousel dots */
.product-image-custom-carousel .custom-carousel-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 10;
}

.product-image-custom-carousel .custom-dot {
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	transition: background 0.3s;
	cursor: pointer;
}

.product-image-custom-carousel .custom-dot.active {
	background: white;
}

.product-image-custom-carousel .custom-carousel-arrow {
	display: none !important;
}

/* Video styling */
.product-image-custom-carousel video {
	pointer-events: none;
}

.product-image-custom-carousel:hover video {
	pointer-events: auto;
}

.product-image-custom-carousel video::-webkit-media-controls-panel {
	background: rgba(0, 0, 0, 0.8);
}

/* Lightbox video styling */
#lightboxImageContainer video {
	width: 100%;
	height: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
	background: black;
}

/* Video badge in admin preview */
.badge.bg-info {
	background-color: #0dcaf0 !important;
}

/* Minimal Brutalist Lightbox - All Overlaid, No Header/Footer */
.lightbox-content {
	background: transparent;
	border: 6px solid var(--border);
	border-radius: 0;
	box-shadow:
		12px 12px 0 rgba(0,0,0,0.8),
		24px 24px 0 rgba(0,0,0,0.2);
	overflow: hidden;
	max-width: 95vw;
	max-height: 95vh;
}

.modal-backdrop {
	background: rgba(0,0,0,0.98);
}

.lightbox-image-container {
	position: relative;
	width: 100%;
	height: 100%;
}

#lightboxImage {
	width: 100%;
	height: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
	background: black;
}

/* Close button - smaller, tighter */
.lightbox-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0,0,0,0.8);
	color: white;
	border: 3px solid var(--border);
	width: 50px;
	height: 50px;
	font-size: 2rem;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	cursor: pointer;
	z-index: 20;
	box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
	transition: all 0.2s;
}

.lightbox-close:hover {
	transform: translate(3px, 3px);
	box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
}

/* < > Arrows - smaller, cleaner */
.lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.8);
	color: white;
	border: 3px solid var(--border);
	width: 60px;
	height: 60px;
	font-size: 2.5rem;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	cursor: pointer;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
	transition: all 0.2s;
}

.lightbox-arrow:hover {
	transform: translateY(-50%) scale(1.1);
	box-shadow: 8px 8px 0 rgba(0,0,0,0.6);
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

/* Counter - minimal */
.lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 0.5rem 1.5rem;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: 3px solid var(--border);
	box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
	z-index: 20;
}

#termsContent h6 {
	text-transform: uppercase;
}
/* Carousel arrows - inside each product card */
.carousel-arrow {
	align-items: baseline;
	background: rgba(0, 0, 0, 0.5);          /* semi-transparent dark */
	border: 3px dotted #fff;                  /* white border like lightbox */
	border-radius: 0;                        /* keep brutalist square */
	box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
	color: white;
	cursor: pointer;
	display: flex;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 2.4rem;
	font-weight: 700;
	height: 50px;
	justify-content: center;
	line-height: 1;
	opacity: 0;                              /* hidden by default */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.15s ease;
	width: 50px;
	z-index: 8;
}

.carousel-arrow:hover {
	transform: translateY(-50%) scale(1.1);
	box-shadow: 8px 8px 0 rgba(0,0,0,0.6);
}
.carousel-prev {
	left: 12px;
}

.carousel-next {
	right: 12px;
}

/* Show arrows on hover of the whole carousel area */
.product-image-custom-carousel:hover .carousel-arrow {
	opacity: 0.85;   /* slightly visible on hover even before full opacity */
}

.product-image-custom-carousel:hover .carousel-arrow:hover {
	opacity: 1;
}

/* Always show arrows on touch devices / small screens */
@media (hover: none) {   /* touch devices */
	.carousel-arrow {
		opacity: 0.7 !important;   /* always somewhat visible */
		width: 60px;
		height: 60px;
		font-size: 2.6rem;
	}
}

/* ──────────────────────────────────────────────
   Smaller arrows on mobile / narrow screens
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
	.carousel-arrow {
		width: 38px;
		height: 38px;
		font-size: 1.8rem;           /* smaller chevron/symbol */
		box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
	}

	.carousel-arrow:hover {
		transform: translateY(-50%) scale(1.08);
		box-shadow: 5px 5px 0 rgba(0,0,0,0.6);
	}

	.carousel-prev {
		left: 8px;
	}

	.carousel-next {
		right: 8px;
	}
}

/* Even smaller on very narrow phones (optional) */
@media (max-width: 480px) {
	.carousel-arrow {
		width: 34px;
		height: 34px;
		font-size: 1.6rem;
	}

	.carousel-prev {
		left: 6px;
	}

	.carousel-next {
		right: 6px;
	}
}
