/**
 * Product Category Archive Styles
 *
 * Styles for the custom product category/archive page template.
 * Handles the 3-column product grid with 1024x1024 product images.
 */

/* Product Category Header */
.axtron-product-category__header {
	position: relative;
	padding: 4rem 0;
	background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 45%, #f8fbff 100%);
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 3rem;
	font-family: "Montserrat", system-ui, sans-serif;
	overflow: hidden;
}

.axtron-product-category__header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 45% at 0% 5%, rgba(56, 189, 248, 0.15), transparent 72%),
		radial-gradient(ellipse 55% 42% at 100% 4%, rgba(59, 130, 246, 0.12), transparent 70%);
}

.axtron-product-category__header > .axtron-container {
	position: relative;
	z-index: 1;
	text-align: center;
}

.axtron-product-category__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: #1a73e8;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.axtron-product-category__title {
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 0.75rem 0;
	line-height: 1.25;
}

.axtron-product-category__title-accent {
	color: #1a73e8;
	display: block;
}

.axtron-product-category__description {
	font-size: 0.9375rem;
	color: #4a5568;
	line-height: 1.65;
	max-width: 44rem;
	margin: 0 auto;
}

/* Product Category Search Bar */
.axtron-product-category__search {
	margin-top: 2rem;
}

.axtron-product-category__search-form {
	display: flex;
	gap: 0.75rem;
	max-width: 44rem;
	margin: 0 auto;
	align-items: center;
}

.axtron-product-category__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-family: "Montserrat", system-ui, sans-serif;
	outline: none;
	transition: all 0.3s ease;
}

.axtron-product-category__search-input:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
	background: #ffffff;
}

.axtron-product-category__search-input::placeholder {
	color: #9ca3af;
}

.axtron-product-category__search-button {
	height: 2.5rem;
	padding: 0 1.5rem;
	background: linear-gradient(135deg, #1a73e8 0%, #1557b8 100%);
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Montserrat", system-ui, sans-serif;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}

.axtron-product-category__search-button:hover {
	background: linear-gradient(135deg, #155fcc 0%, #1246a1 100%);
	box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
	transform: translateY(-2px);
}

.axtron-product-category__search-button:active {
	transform: translateY(0);
}

/* Products Section */
.axtron-product-category {
	font-family: "Montserrat", system-ui, sans-serif;
}

/* Products Grid */
.axtron-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 4rem;
}

/* Product Item */
.axtron-product-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.axtron-product-item:hover {
	border-color: #1a73e8;
	box-shadow: 0 8px 20px rgba(26, 115, 232, 0.12);
	transform: translateY(-4px);
}

/* Product Image Wrapper */
.axtron-product-item__image-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 40%; /* 1:1 aspect ratio */
	overflow: hidden;
	background: #f5f5f5;
}

.axtron-product-item__image-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.axtron-product-item__image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.axtron-product-item:hover .axtron-product-item__image-link img {
	transform: scale(1.05);
}

/* Sale Badge */
.axtron-product-item .onsale {
	position: absolute;
	top: -8px;
	right: -8px;
	background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
	color: #fff;
	padding: 8px 16px;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.75rem;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
	transform: rotate(15deg);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
	line-height: 1.2;
	transition: all 0.3s ease;
}

.axtron-product-item:hover .onsale {
	transform: rotate(15deg) scale(1.1);
	box-shadow: 0 6px 16px rgba(230, 57, 70, 0.6);
}

/* Product Content */
.axtron-product-item__content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Product Title */
.axtron-product-item__title {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: #1a202c;
}

.axtron-product-item__title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.axtron-product-item__title a:hover {
	color: #1a73e8;
}

/* Rating & Price */
.axtron-product-item .star-rating {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
}

.axtron-product-item .price {
	font-weight: 700;
	color: #1a73e8;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.axtron-product-item .price del {
	color: #9ca3af;
	font-weight: 400;
	margin-right: 0.5rem;
	opacity: 0.75;
}

.axtron-product-item .price ins {
	text-decoration: none;
}

/* Add to Cart Button */
.axtron-product-item .button {
	margin-top: auto;
	padding: 0.6rem 1rem;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	width: 100%;
	text-align: center;
	font-size: 0.875rem;
}

.axtron-product-item .button:hover {
	background: #155fcc;
	box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
	transform: translateY(-2px);
}

.axtron-product-item .button:active {
	transform: translateY(0);
}

/* No Products Message */
.woocommerce-info,
.woocommerce-noresults {
	background: #eef5ff;
	border-left: 4px solid #1a73e8;
	padding: 20px;
	margin: 30px 0;
	border-radius: 0.5rem;
	color: #1a202c;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.axtron-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem;
	}
}

@media (max-width: 768px) {
	.axtron-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.axtron-product-category__header {
		padding: 2.5rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.axtron-product-category__badge {
		margin-bottom: 0.75rem;
	}

	.axtron-product-category__search-form {
		gap: 0.5rem;
	}

	.axtron-product-category__search-input {
		height: 2.25rem;
		font-size: 0.875rem;
		padding: 0 0.75rem;
	}

	.axtron-product-category__search-button {
		height: 2.25rem;
		padding: 0 1rem;
		font-size: 0.875rem;
	}

	.axtron-product-item__content {
		padding: 1.25rem;
	}

	.axtron-product-item__title {
		font-size: 0.85rem;
	}

	.axtron-product-item .price {
		font-size: 0.95rem;
	}

	.axtron-product-item .button {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	.axtron-products-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.axtron-product-category__header {
		padding: 2rem 0 1.5rem;
	}

	.axtron-product-category__search-form {
		flex-direction: column;
		gap: 0.75rem;
	}

	.axtron-product-category__search-input {
		height: 2.25rem;
		width: 100%;
	}

	.axtron-product-category__search-button {
		height: 2.25rem;
		width: 100%;
		padding: 0 1rem;
	}

	.axtron-product-item__content {
		padding: 1rem;
	}

	.axtron-product-item__title {
		font-size: 0.8rem;
	}

	.axtron-product-item .price {
		font-size: 0.9rem;
	}

	.axtron-product-item .button {
		padding: 0.5rem 0.75rem;
		font-size: 0.75rem;
	}
}
