/* 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;     /* Perfect vertical centering */
    gap: 1rem;               /* Space between box and text */
    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);  /* Thick border for brutalist strength */
    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;                /* Start at the top of the viewport */
    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;          /* Higher than header's 100 */
    margin-top: 100px;     /* Push it down below the header – adjust as needed */
    max-height: calc(100vh - 110px);  /* Optional: prevent it from going off-screen */
    overflow-y: auto;      /* Optional: scroll if content is too tall */
}

.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: #666;
}

.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: #666;
}

/* Products */
.products {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 2rem 4rem;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.product-card {
	border: 1px dashed var(--border);
	background: #fff;
	transition: transform 0.2s;
}

.product-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 #a9a9a9;
}

.product-image {
	background: var(--secondary);
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 2px solid var(--border);
	position: relative;
	overflow: hidden;
}

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

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-body {
	padding: 1.5rem;
}

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

.product-name {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.product-description {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 1rem;
	line-height: 1.5;
}

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

.product-features li {
    font-size: 0.75rem;
    padding: 0.35rem 0;        /* Consistent vertical spacing */
    padding-left: 1.2rem;      /* Give room for the bullet */
    position: relative;
    display: flex;             /* Optional: better alignment control */
    align-items: center;       /* Vertically center text with bullet */
}

.product-features li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);  /* Perfect vertical centering */
    font-size: 0.6rem;            /* Slightly larger for better visibility */
    line-height: 1;
    color: #111;
}

.product-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 2px solid var(--border);
}

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

.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;
}

/* 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; /* Force square corners */
	padding: 1rem;

	/* External raised 3D shadow - bottom right */
	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;
	/* Stronger lift on focus */
	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; /* Square */
	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: 4px solid var(--border);
	border-radius: 0;
	box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}
/* Alert messages - retro style */
.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%;          /* Add this line */
    flex-shrink: 0;
    height: 100%;
}

/* Default for desktop - keep cover if you want tight framing */
.product-image-custom-carousel .custom-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Good when cards are narrower */
    display: block;
}

/* On mobile - show the full image without aggressive cropping */
@media (max-width: 768px) {
    .product-image-custom-carousel .custom-carousel-item img {
        object-fit: contain;   /* Shows entire image, letterboxed if needed */
        background: var(--secondary); /* Optional: keep placeholder bg visible in letterbox areas */
    }
}

/* Arrows & Dots */
.product-image-custom-carousel .custom-carousel-arrow {
	position: absolute;
	top: 10%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	font-size: 1.2rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
}

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

.product-image-custom-carousel .arrow-left { left: 10px; }
.product-image-custom-carousel .arrow-right { right: 10px; }

.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;
}

.product-image-custom-carousel .custom-dot.active {
	background: white;
}
/* Responsive */
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: 1fr;
	}

	.cart-dropdown {
		right: 1rem;
		left: 1rem;
		width: auto;
	}


    /* Make image area taller on mobile - better for portraits and product shots */
    .product-image {
        aspect-ratio: 3/4;   /* Taller than 4/3 - or try 1/1 for square */
        /* Alternative options:
           aspect-ratio: 1/1;     // Square
           aspect-ratio: 4/5;     // Slightly taller
           aspect-ratio: 2/3;     // Even taller (good for vertical products)
        */
    }

    /* Use cover again - now fills perfectly without extreme zoom */
    .product-image-custom-carousel .custom-carousel-item img {
        object-fit: cover;     /* Back to fill - no letterboxing */
        background: transparent; /* No need for placeholder bg */
    }
}

/* 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;
}
