/* ==========================================================================
   Fenarox Fire - Global Store Layout Styles
   ========================================================================== */

/* Variables & Base */
:root {
	--ff-primary: #1e293b;
	--ff-text: #334155;
	--ff-text-light: #64748b;
	--ff-bg: #f8fafc;
	--ff-white: #ffffff;
	--ff-border: #e2e8f0;
	--ff-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--ff-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--ff-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--ff-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--ff-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.ff-store-container {
	font-family: var(--ff-font);
	color: var(--ff-text);
	background-color: var(--ff-bg);
	min-height: 100vh;
	line-height: 1.5;
	box-sizing: border-box;
}

.ff-store-container * {
	box-sizing: inherit;
}

/* Common Components */
.ff-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ff-badge-primary { background: var(--ff-primary); color: #fff; }
.ff-badge-sale { background: #ef4444; color: #fff; }

.ff-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--ff-transition);
	cursor: pointer;
	border: none;
}

.ff-btn-primary {
	background: var(--ff-primary);
	color: #fff;
}

.ff-btn-primary:hover {
	background: #0f172a;
	transform: translateY(-2px);
	box-shadow: var(--ff-shadow-md);
}

/* Premium Product Grid */
.ff-store-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
}

/* Premium Product Card */
.ff-product-card {
	background: var(--ff-white);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--ff-shadow-sm);
	border: 1px solid var(--ff-border);
	transition: var(--ff-transition);
	display: flex;
	flex-direction: column;
	position: relative;
	height: 100%;
}

.ff-product-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ff-shadow-lg);
	border-color: transparent;
}

.ff-product-card-img-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f1f5f9;
}

.ff-product-card-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ff-product-card:hover .ff-product-card-img-wrapper img {
	transform: scale(1.05);
}

.ff-product-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 10;
}

.ff-product-info {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ff-product-category {
	font-size: 0.75rem;
	color: var(--ff-text-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.ff-product-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ff-primary);
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.ff-product-price {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ff-primary);
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ff-product-price del {
	font-size: 0.9rem;
	color: var(--ff-text-light);
	font-weight: 400;
}

.ff-product-price ins {
	text-decoration: none;
	color: #ef4444;
}

/* Empty State */
.ff-empty-products {
	grid-column: 1 / -1;
	background: var(--ff-white);
	border: 2px dashed var(--ff-border);
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	color: var(--ff-text-light);
	font-size: 1.1rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
	.ff-store-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.ff-store-products-grid { 
		grid-template-columns: repeat(2, 1fr); 
		gap: 16px;
	}
	.ff-product-info { padding: 16px; }
	.ff-product-title { font-size: 0.95rem; }
}

@media (max-width: 480px) {
	.ff-store-products-grid { 
		grid-template-columns: 1fr; 
	}
}
