/* ========================================
   UNIFIED STORE STYLES
   Based on new_listing.ejs styling
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
	--bg-primary: #0a0a0a;
	--bg-secondary: #1a1a1a;
	--bg-card: #141414;
	--text-primary: #ffffff;
	--text-secondary: #a0a0a0;
	--accent-green: #22c55e;
	--accent-green-hover: #16a34a;
	--border-color: #2a2a2a;
	--badge-new: #ec4899;
	--badge-debadged: #dc2626;
	--badge-lore: #3b82f6;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: var(--bg-primary);
	border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--accent-green) 0%, #16a34a 100%);
	border-radius: 6px;
	border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #16a34a 0%, var(--accent-green) 100%);
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Firefox Scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--accent-green) var(--bg-primary);
}

/* ========== FULL WIDTH SECTIONS ========== */
#store-section,
#search-section {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	left: 0;
	right: 0;
	position: relative;
	background: var(--bg-primary);
	min-height: 100vh;
	padding: 2rem 0;
}

/* ========== PAGE HEADERS ========== */
#text50,
#text05 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-align: center;
	margin-bottom: 2rem;
	padding: 0 1rem;
}

#text75 {
	font-size: 1rem;
	color: var(--text-secondary);
	text-align: center;
	margin-bottom: 2rem;
	padding: 0 1rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

#text09 {
	font-size: 1.25rem;
	color: var(--text-secondary);
	text-align: center;
	padding: 3rem 1rem;
}

/* ========== MODERN SEARCH SECTION ========== */

/* Main Search Container */
.frozen-search-form {
	max-width: 750px;
	margin: 0 auto 3rem;
	padding: 0 1rem;
}

/* Search Wrapper - Sleek Rounded Pill with Liquid Glass */
.frozen-search-wrapper {
	display: flex;
	align-items: center;
	background: rgba(20, 20, 20, 0.7);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 3rem;
	overflow: visible;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
	            0 1px 0 rgba(255, 255, 255, 0.05) inset;
	transition: all 0.3s ease;
	position: relative;
	padding: 0.5rem 1rem;
	gap: 0.75rem;
	height: 48px;
}

/* Liquid glass gradient overlay */
.frozen-search-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, 
		rgba(255, 255, 255, 0.05) 0%, 
		rgba(255, 255, 255, 0.02) 50%,
		rgba(255, 255, 255, 0) 100%);
	border-radius: 3rem;
	pointer-events: none;
}

.frozen-search-wrapper:focus-within {
	border-color: rgba(34, 197, 94, 0.3);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
				0 0 0 3px rgba(34, 197, 94, 0.1),
				0 1px 0 rgba(255, 255, 255, 0.08) inset;
	background: rgba(25, 25, 25, 0.8);
}

/* Search Field */
.frozen-search-field {
	flex: 1;
	position: relative;
}

/* Search Input */
.frozen-search-input {
	width: 100%;
	background: transparent !important;
	border: none !important;
	color: var(--text-primary);
	padding: 0 !important;
	font-size: 0.95rem;
	outline: none !important;
	transition: all 0.3s ease;
	box-shadow: none !important;
}

.frozen-search-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
	font-weight: 400;
	transition: color 0.3s;
}

.frozen-search-input:focus::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

/* Search Button */
.frozen-search-button {
	background: transparent;
	color: rgba(255, 255, 255, 0.4);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
	position: relative;
	padding: 0;
	font-size: 0;
}

.frozen-search-button svg {
	display: none !important;
}

.frozen-search-button:hover {
	background: rgba(255, 255, 255, 0.05);
}

.frozen-search-button:hover svg {
	fill: rgba(255, 255, 255, 0.7) !important;
	transform: scale(1.1);
}

.frozen-search-button:active {
	transform: scale(0.95);
}

.frozen-search-button:not(:has(svg))::after {
	opacity: 0.4;
}

/* ========== TAGS SECTION ========== */

/* Tags Header */
#text04,
#text70 {
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 600;
	padding: 0 1rem;
}

/* Tags Container */
#buttons16 {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin: 0 auto 3.5rem;
	list-style: none;
	padding: 0 1rem;
	max-width: 1000px;
}

#buttons16 li {
	margin: 0;
}

/* Individual Tag Buttons - Modern Chip Style */
#buttons16 a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(30, 30, 30, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.65);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.01em;
}

/* Tag icon */
#buttons16 a::before {
	content: '#';
	font-size: 0.85rem;
	font-weight: 700;
	opacity: 0.5;
	transition: all 0.25s ease;
}

/* Gradient overlay on hover */
#buttons16 a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, 
		rgba(34, 197, 94, 0.15) 0%, 
		rgba(22, 163, 74, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 0;
}

#buttons16 a span {
	position: relative;
	z-index: 1;
}

#buttons16 a:hover {
	background: rgba(40, 40, 40, 0.8);
	color: var(--accent-green);
	border-color: rgba(34, 197, 94, 0.25);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

#buttons16 a:hover::before {
	opacity: 0.9;
	color: var(--accent-green);
}

#buttons16 a:hover::after {
	opacity: 1;
}

#buttons16 a:active {
	transform: translateY(0) scale(0.98);
}

/* ========== SECTION SEPARATORS ========== */
.searchSeparator {
	margin-bottom: 3rem;
}

/* ========== PRODUCT GRID ========== */

/* Product Grid Container */
.frozen-products-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.frozen-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/* ========== PRODUCT CARDS ========== */

/* Product Card Base */
.frozen-product-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	cursor: pointer;
}

.frozen-product-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-green), #3b82f6, #ec4899);
	opacity: 0;
	transition: opacity 0.3s;
}

.frozen-product-card:hover {
	transform: scale(1.05);
	border-color: var(--accent-green);
	box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
	z-index: 10;
}

.frozen-product-card:hover::before {
	opacity: 1;
}

/* Product Card Link Overlay */
.frozen-product-card > a {
	display: block;
	text-decoration: none;
	position: relative;
}

.frozen-product-card > a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
	opacity: 0;
	transition: opacity 0.3s;
}

.frozen-product-card:hover > a::after {
	opacity: 1;
}

/* ========== PRODUCT IMAGE ========== */

.frozen-product-image {
	position: relative;
	width: 100%;
	padding-top: 60%;
	background: var(--bg-secondary);
	overflow: hidden;
}

.frozen-product-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.6s ease, filter 0.3s ease;
}

.frozen-product-card:hover .frozen-product-image img {
	transform: scale(1.1) rotate(1deg);
	filter: brightness(1.1);
}

/* ========== BADGES ========== */

/* Badge Container */
.frozen-product-badges {
	position: absolute;
	top: 0rem;
	left: 0rem;
	right: 0rem;
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	z-index: 10;
	flex-wrap: wrap;
	pointer-events: none;
}

.frozen-product-badges > div {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.frozen-badges-left {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Badge Base Styles */
.frozen-badge {
	padding: 0.375rem 0.75rem;
	border-radius: 0.25rem;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: white;
	display: inline-block;
}

/* Badge Types */
.frozen-badge-new {
	background: linear-gradient(135deg, #ec4899 0%, #dc2626 100%);
	box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
	padding: 0.2rem 0.4rem;
	font-size: 0.7rem;
}

.frozen-badge-debadged {
	background: var(--badge-debadged);
}

.frozen-badge-lore {
	background: var(--badge-lore);
}

.frozen-badge-sale {
	background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
	color: #fff;
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
	vertical-align: middle;
	position: relative;
	overflow: hidden;
}

/* Rating Badge */
.frozen-rating-badge {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	font-size: 3rem;
	font-weight: 700;
	width: 4rem;
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	z-index: 10;
}

/* ========== IMAGE TAGS (ON PRODUCT IMAGE) ========== */

.frozen-image-tags {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	right: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	z-index: 5;
	pointer-events: none;
}

.frozen-image-tag {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%);
	backdrop-filter: blur(8px);
	color: white;
	border-radius: 0.25rem;
	font-size: 0.55rem;
	font-weight: 600;
	text-transform: capitalize;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== PRODUCT INFO SECTION ========== */

.frozen-product-info {
	padding: 1rem 0.6rem;
	text-align: left;
}

.frozen-product-title {
	background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0 0 0 0;
	line-height: 1.3;
	text-align: left;
	display: block;
}

.frozen-product-price {
	color: var(--accent-green);
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0.4rem 0rem 0rem;
	text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* ========== PRODUCT TAGS (UNDER INFO) ========== */

.frozen-product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0rem 0.6rem 1rem;
	justify-content: left;
}

.frozen-product-tag {
	display: inline-flex;
	align-items: center;
	padding: 7px 8px;
	font-size: 11px;
	line-height: 1;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.16);
	background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
	color: #e9eef7;
	white-space: nowrap;
}

/* ========== PRODUCT BUTTONS ========== */

.frozen-product-buttons {
	display: flex;
	gap: 0.375rem;
	list-style: none;
	padding: 0 0rem 0.6rem;
	margin: 0;
	position: relative;
	z-index: 20;
}

.frozen-product-buttons li {
	flex: 1;
	margin: 0;
}

/* Button Base */
.frozen-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	border: none;
	cursor: pointer;
	font-size: 0.8rem;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 30;
}

.frozen-btn svg {
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
	fill: currentColor;
}

.frozen-btn span {
	display: inline-block;
}

/* Button Primary */
.frozen-btn-primary {
	background: linear-gradient(135deg, var(--accent-green) 0%, #16a34a 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.frozen-btn-primary:hover {
	background: linear-gradient(135deg, #16a34a 0%, var(--accent-green) 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Button Secondary */
.frozen-btn-secondary {
	background: var(--bg-secondary);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.frozen-btn-secondary:hover {
	background: var(--bg-primary);
	border-color: var(--accent-green);
}

/* ========== BLOG CARDS ========== */

.frozen-blog-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: transform 0.2s, border-color 0.2s;
	display: flex;
	flex-direction: column;
}

.frozen-blog-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-green);
}

.frozen-blog-image {
	position: relative;
	width: 100%;
	padding-top: 60%;
	background: var(--bg-secondary);
	overflow: hidden;
}

.frozen-blog-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.frozen-blog-content {
	padding: 1.25rem;
	flex: 1;
}

.frozen-blog-title {
	color: var(--text-primary);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
}

.frozen-blog-meta {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
}

.frozen-blog-meta a {
	color: #00AAFF;
	text-decoration: none;
}

.frozen-blog-desc {
	color: var(--text-secondary);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

/* ========== USER CARDS ========== */

.frozen-user-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: transform 0.2s, border-color 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.25rem;
	text-align: center;
}

.frozen-user-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-green);
}

.frozen-user-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1rem;
	border: 3px solid var(--border-color);
}

.frozen-user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.frozen-user-name {
	color: var(--text-primary);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
	.frozen-products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Medium-Large Screens (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
	.frozen-products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
	.frozen-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
	.frozen-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	
	#text50,
	#text05 {
		font-size: 2rem;
	}
	
	.frozen-rating-badge {
		font-size: 2rem;
		width: 3rem;
		height: 3rem;
	}
	
	/* Search responsive */
	.frozen-search-wrapper {
		padding: 0.45rem 0.9rem;
		gap: 0.65rem;
		height: 44px;
	}
	
	.frozen-search-input {
		font-size: 0.9rem;
	}
	
	.frozen-search-button {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
	}
	
	.frozen-search-button svg {
		width: 16px !important;
		height: 16px !important;
	}
	
	#buttons16 {
		gap: 0.5rem;
	}
	
	#buttons16 a {
		padding: 0.45rem 0.9rem;
		font-size: 0.75rem;
		border-radius: 1.75rem;
	}
}

/* Small Mobile (max 480px) - Ultra Compact */
@media (max-width: 480px) {
	/* Minimal container padding for full-width look */
	.frozen-products-container {
		padding: 0 0.25rem !important;
	}
	
	/* Minimal gap between cards */
	.frozen-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.25rem !important;
	}
	
	/* Adjust card styling for compact view */
	.frozen-product-card {
		border-radius: 0.5rem;
	}
	
	/* Reduce padding inside cards */
	.frozen-product-info {
		padding: 0.75rem 0.5rem;
	}
	
	/* Adjust button padding */
	.frozen-product-buttons {
		padding: 0 0.5rem 0.5rem;
		gap: 0.25rem;
	}
	
	/* Adjust button sizing */
	.frozen-btn {
		padding: 0.5rem 0.5rem;
		font-size: 0.75rem;
	}
	
	.frozen-btn svg {
		width: 0.85rem;
		height: 0.85rem;
	}
	
	/* Compact product tags */
	.frozen-product-tags {
		margin: 0rem 0.5rem 0.75rem;
		gap: 0.2rem;
	}
	
	.frozen-product-tag {
		padding: 5px 6px;
		font-size: 10px;
	}
	
	/* Smaller title */
	.frozen-product-title {
		font-size: 0.75rem;
	}
	
	/* Adjust price */
	.frozen-product-price {
		font-size: 0.85rem;
		margin: 0.3rem 0rem 0rem;
	}
	
	/* Adjust badges */
	.frozen-badge {
		padding: 0.25rem 0.5rem;
		font-size: 0.55rem;
	}
	
	.frozen-badge-new,
	.frozen-badge-sale {
		padding: 0.15rem 0.35rem;
		font-size: 0.6rem;
	}
	
	/* Image tags */
	.frozen-image-tag {
		padding: 0.15rem 0.4rem;
		font-size: 0.5rem;
	}
	
	/* Rating badge */
	.frozen-rating-badge {
		font-size: 1.75rem;
		width: 2.5rem;
		height: 2.5rem;
		bottom: 0.5rem;
		right: 0.5rem;
	}
	
	/* Search section */
	#store-section,
	#search-section {
		padding: 1.5rem 0;
	}
	
	#text50,
	#text05 {
		font-size: 1.75rem;
		margin-bottom: 1.5rem;
	}
	
	.frozen-search-form {
		padding: 0 0.75rem;
		margin-bottom: 2rem;
	}
	
	.frozen-search-wrapper {
		border-radius: 2.5rem;
		padding: 0.4rem 0.8rem;
		gap: 0.6rem;
		height: 40px;
	}
	
	.frozen-search-input {
		font-size: 0.875rem;
	}
	
	.frozen-search-button {
		width: 26px;
		height: 26px;
		min-width: 26px;
		min-height: 26px;
	}
	
	.frozen-search-button svg {
		width: 15px !important;
		height: 15px !important;
	}
	
	#buttons16 {
		gap: 0.45rem;
		margin-bottom: 2rem;
	}
	
	#buttons16 a {
		padding: 0.4rem 0.8rem;
		font-size: 0.7rem;
		border-radius: 1.5rem;
	}
	
	#buttons16 a::before {
		font-size: 0.75rem;
	}
	
	#text04,
	#text70 {
		font-size: 0.65rem;
		margin-bottom: 1.25rem;
		letter-spacing: 0.15em;
	}
}