/* ============================================
   Simo Webshop – Prototyp Styles
   Ergänzt modern.css
   ============================================ */

.shop-page {
	padding-top: 70px;
}

/* Cart Toggle in Nav */
.cart-toggle {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 12px;
	color: var(--text-color);
	transition: var(--transition);
	margin-left: 1rem;
}

.cart-toggle:hover {
	background: rgba(0, 212, 255, 0.2);
	border-color: var(--secondary-color);
	color: var(--secondary-color);
}

.cart-icon {
	width: 22px;
	height: 22px;
}

.cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--accent-gradient);
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-count:empty,
.cart-count[data-count="0"] {
	display: none;
}

/* Shop Header */
.shop-header {
	padding: 3rem 0 2rem;
	text-align: center;
	border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.shop-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	background: linear-gradient(135deg, var(--text-color) 0%, var(--secondary-color) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.shop-subtitle {
	color: var(--text-light);
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.shop-filters {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.filter-btn {
	padding: 0.6rem 1.25rem;
	border-radius: 50px;
	background: var(--card-bg);
	border: 1px solid rgba(0, 212, 255, 0.2);
	color: var(--text-color);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: var(--transition);
}

.filter-btn:hover {
	border-color: var(--secondary-color);
	background: rgba(0, 212, 255, 0.1);
	color: var(--secondary-color);
}

.filter-btn.active {
	background: var(--accent-gradient);
	border-color: transparent;
	color: var(--white);
}

/* Shop Main */
.shop-main {
	padding: 3rem 0 5rem;
}

.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

/* Shop Product Card */
.shop-product-card {
	background: var(--card-bg);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(0, 212, 255, 0.2);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
}

.shop-product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
	border-color: rgba(0, 212, 255, 0.4);
}

.shop-product-card.hidden {
	display: none;
}

.shop-product-image {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.shop-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.shop-product-card:hover .shop-product-image img {
	transform: scale(1.08);
}

.btn-add-cart {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
	padding: 0.75rem 1rem;
	background: var(--accent-gradient);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.shop-product-card:hover .btn-add-cart {
	opacity: 1;
	transform: translateY(0);
}

.btn-add-cart:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.shop-product-info {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.shop-product-info h3 {
	font-size: 1.2rem;
	color: var(--text-color);
	margin-bottom: 0.5rem;
}

.shop-product-info h3 strong {
	color: var(--secondary-color);
}

.shop-product-desc {
	color: var(--text-light);
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 1rem;
	flex: 1;
}

.shop-product-price {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--secondary-color);
	margin-top: auto;
}

/* Cart Sidebar */
.cart-sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 100%;
	max-width: 400px;
	height: 100vh;
	background: var(--dark-card);
	border-left: 1px solid rgba(0, 212, 255, 0.2);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: flex;
	flex-direction: column;
	transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.cart-sidebar.open {
	right: 0;
}

.cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 1.5rem;
	border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.cart-header h2 {
	font-size: 1.5rem;
	color: var(--text-color);
	margin: 0;
}

.cart-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
	transition: var(--transition);
}

.cart-close:hover {
	background: rgba(255, 107, 157, 0.2);
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.cart-empty {
	color: var(--text-light);
	text-align: center;
	padding: 2rem;
	margin: 0;
}

.cart-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
	border-bottom: none;
}

.cart-item-image {
	width: 70px;
	height: 70px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--dark-bg);
}

.cart-item-details {
	flex: 1;
	min-width: 0;
}

.cart-item-name {
	font-weight: 700;
	color: var(--text-color);
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
}

.cart-item-price {
	color: var(--secondary-color);
	font-weight: 700;
	font-size: 1rem;
}

.cart-item-remove {
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	padding: 0.25rem;
	font-size: 1.2rem;
	line-height: 1;
	transition: var(--transition);
}

.cart-item-qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0;
}

.qty-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dark-bg);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1.1rem;
	cursor: pointer;
	transition: var(--transition);
}

.qty-btn:hover {
	background: rgba(0, 212, 255, 0.2);
	border-color: var(--secondary-color);
}

.qty-value {
	min-width: 1.5rem;
	text-align: center;
	font-weight: 700;
}

.cart-item-remove:hover {
	color: var(--accent-color);
}

.cart-footer {
	padding: 1.5rem;
	border-top: 1px solid rgba(0, 212, 255, 0.2);
	background: rgba(0, 0, 0, 0.2);
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	color: var(--text-color);
}

.cart-total strong {
	color: var(--secondary-color);
	font-size: 1.5rem;
}

.btn-checkout {
	width: 100%;
	padding: 1rem 1.5rem;
	background: var(--accent-gradient);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-checkout:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1999;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.cart-overlay.open {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 768px) {
	.cart-sidebar {
		max-width: 100%;
		right: -100%;
	}

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

	.btn-add-cart {
		opacity: 1;
		transform: translateY(0);
	}
}
