/* --- Shutter Overlay --- */
.shutter-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	transition: transform 0.5s ease;
}

.shutter-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(180deg, #517292 0px, #4574a4 20px, #3f8dda 40px);
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
	transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
	z-index: 2;
}

.shutter-panel::after {
	content: '';
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 15px;
	background: #95a5a6;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
	border: 2px solid #7f8c8d;
}

.shutter-content {
	position: relative;
	z-index: 10;
	text-align: center;
	margin-bottom: 20%;
	transition: opacity 0.5s ease;
}

.shutter-text {
	color: #ecf0f1;
	font-size: 3rem;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	margin-bottom: 20px;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 10px 20px;
	border-radius: 5px;
}

.shutter-overlay.open .shutter-panel {
	transform: translateY(-100%);
}

.shutter-overlay.open .shutter-content {
	opacity: 0;
	pointer-events: none;
}

.shutter-overlay.finished {
	display: none;
}

/* Header */
header {
	background-color: #ffffffee;
	border-bottom: 1px solid #0c2b49;
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(11, 56, 100, 0.739);
}

.container {
	display: block;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	color: #1e3a8a;
	font-size: 1.8rem;
	margin: 0;
}

.header-icons {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
}

.icon-btn {
	background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
	border: 2px solid #1e3a8a;
	padding: 0.6rem 1rem;
	border-radius: 50px;
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
	position: relative;
}

.icon-btn:hover {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.icon-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

#cartCount,
#wishlistCount {
	background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
	color: white;
	padding: 0.2rem 0.6rem;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	margin-left: 0.3rem;
	min-width: 20px;
	display: inline-block;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Shop Container */
.shop-container {
	max-width: 1300px;
	margin: 50px auto;
	margin-bottom: 100px;
	padding: 20px;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	justify-items: center;
}

/* Loading and Error States */
.loading,
.no-products,
.error-message {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem;
	color: #64748b;
}

.loading-spinner {
	border: 4px solid #e2e8f0;
	border-top: 4px solid #3b82f6;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loading p {
	font-size: 1.2rem;
	font-weight: 500;
}

.error-message {
	color: #ef4444;
}

.error-message p {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.no-products p {
	font-size: 1.2rem;
}

/* Card Styles */
.card {
	/*height: 390px;*/
	width: 100%;
	max-width: 350px;
	border-radius: 20px;
	padding: 1rem;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
	border: 1px solid rgba(59, 130, 246, 0.1);
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
	transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
	left: 100%;
}

.card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
	border-color: rgba(59, 130, 246, 0.3);
}

/* Wishlist Badge */
.wishlist-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid #e2e8f0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: #94a3b8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-badge:hover {
	transform: scale(1.15);
	background: rgba(255, 255, 255, 1);
	border-color: #f87171;
	color: #f87171;
	box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.wishlist-badge.active {
	background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
	border-color: #ef4444;
	color: white;
	animation: heartBeat 0.5s ease;
}

.wishlist-badge:active {
	transform: scale(0.95);
}

.wishlist-badge:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@keyframes heartBeat {

	0%,
	100% {
		transform: scale(1);
	}

	25% {
		transform: scale(1.2);
	}

	50% {
		transform: scale(1.1);
	}

	75% {
		transform: scale(1.25);
	}
}

/* Product Card */
.product-image {
	aspect-ratio: 16/9;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 0.75rem;
	transition: transform 0.3s ease;
}

.card:hover .product-image {
	transform: scale(1.05);
}

.product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	gap: 0.5rem;
}

.product-card .meta {
	font-family: system-ui, -apple-system, sans-serif;
	width: 100%;
	text-align: left;
}

.product-card h4 {
	font-size: 1rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.product-card .description {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0 0 0.5rem 0;
	min-height: 2.2rem;
	line-height: 1.5;
}

.product-card .price {
	font-weight: 800;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
}

/* Card Actions */
.card-actions {
	display: flex;
	gap: 0.75rem;
	width: 100%;
	justify-content: center;
	margin-top: auto;
}

.btn {
	flex: 1;
	border: none;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
	width: 300px;
	height: 300px;
}

.btn:active {
	transform: scale(0.97);
}

.btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
}

.btn-icon {
	font-size: 1.1rem;
	transition: transform 0.3s ease;
	position: relative;
	z-index: 1;
}

.btn:hover .btn-icon {
	transform: scale(1.2) rotate(15deg);
}

.btn-text {
	position: relative;
	z-index: 1;
}

/* Add to Cart Button */
.btn-add {
	background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-add:hover {
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
	transform: translateY(-2px);
}

.btn-add.added {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
	animation: successPulse 0.6s ease;
}

@keyframes successPulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

/* Buy Now Button */
.btn-buy {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
	font-weight: 800;
}

.btn-buy:hover {
	box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
	transform: translateY(-2px);
}

.btn-buy .btn-icon {
	animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.7;
		transform: scale(1.2);
	}
}

/* Toast Notification */
.mini-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4);
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 11000;
	font-weight: 600;
	max-width: 300px;
	line-height: 1.4;
}

.mini-toast.show {
	transform: translateY(0);
	opacity: 1;
}

/* Buy Now Modal */
.buy-now-modal .modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.buy-now-modal .modal-box {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 24px;
	border-radius: 10px;
	width: 90%;
	max-width: 420px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-buttons {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
}

.modal-close {
	background: transparent;
	border: none;
	font-size: 20px;
	position: absolute;
	top: 8px;
	right: 12px;
	cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.shop {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 768px) {
	header h1 {
		font-size: 1.5rem;
	}

	.shutter-text {
		font-size: 2rem;
	}

	.shop-container {
		padding: 10px;
		margin-top: 20px;
		margin-bottom: 130px;
	}

	.shop {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.card {
		height: auto;
		min-height: 380px;
		max-width: 100%;
	}

	.card-actions {
		flex-direction: column;
		gap: 0.5rem;
	}

	.btn {
		width: 100%;
	}

	.wishlist-badge {
		width: 36px;
		height: 36px;
	}

	.wishlist-badge svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 480px) {
	.header-content {
		flex-direction: row;
		gap: 0.5rem;
	}

	header h1 {
		font-size: 1.25rem;
	}

	.header-icons {
		gap: 0.5rem;
	}

	.icon-btn {
		padding: 0.5rem 0.75rem;
		font-size: 1rem;
	}

	.shutter-text {
		font-size: 1.5rem;
		padding: 8px 15px;
	}

	.shop {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.card {
		max-width: 100%;
		padding: 1.25rem;
	}

	.product-card h4 {
		font-size: 1rem;
	}

	.product-card .price {
		font-size: 1.2rem;
	}

	.btn {
		padding: 0.65rem 0.85rem;
		font-size: 0.9rem;
	}

	.mini-toast {
		right: 10px;
		bottom: 10px;
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
		max-width: calc(100vw - 40px);
	}
}