/* ========================================
   WOOCOMMERCE ARCHIVE / CATEGORY PAGE STYLING
   Only the specified sections styled as per requirements
   ======================================== */

/* Common font family - reused across multiple elements */
:root {
	--archive-font-family: "Nunito Sans", sans-serif;
}

/* 1. Main shop page wrapper */
.sangeetly-shop-page {
	width: 100%;
	background-color: #ffffff;
	padding: 20px var(--layout-padding-horizontal, 20px) 40px;
	margin: 0;
}

/* 2. Breadcrumbs styling */
.sangeetly-shop-page .woocommerce-breadcrumb {
	font-family: var(--archive-font-family);
	font-weight: 400;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 0%;
	color: #999999; /* Light grey for breadcrumb text */
}

/* 3. Breadcrumb links - "Home" in light grey */
.sangeetly-shop-page .woocommerce-breadcrumb a {
	color: #999999;
	text-decoration: none;
}

/* Current breadcrumb item (not a link) - "Casual" in black */
.sangeetly-shop-page .woocommerce-breadcrumb span {
	color: #000000;
}

/* Hide term description */
.term-description {
	display: none;
}

/* 4. Category/Archive title */
.woocommerce-products-header__title.page-title {
	font-family: var(--archive-font-family);
	font-weight: 700;
	font-style: bold;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0%;
	vertical-align: middle;
	margin: 0;
	padding: 0;
	display: inline-block;
}

/* Container for header row - wraps all three elements */
.sangeetly-shop-wrapper {
	position: relative;
}

/* Shop content wrapper for desktop layout with filters */
.sangeetly-shop-content-wrapper {
	width: 100%;
}

/* Flexbox container for header row - wraps products header, result count, and ordering */
.sangeetly-shop-header-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0 0 20px 0;
	padding: 0;
	flex-wrap: wrap;
}

/* Products header - left side */
.sangeetly-shop-page .woocommerce-products-header {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	line-height: 1;
	height: auto;
	flex-shrink: 0;
}

/* Before shop loop - contains result count and ordering */
.sangeetly-shop-page .woocommerce-before-shop-loop {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	line-height: 1;
	height: auto;
	gap: 16px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* 5. Product count */
.sangeetly-shop-page .woocommerce-result-count {
	font-family: var(--archive-font-family);
	font-weight: 400;
	font-style: regular;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 0%;
	color: #00000099; /* Black with 60% opacity (99 in hex = 153/255 ≈ 0.6) */
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

/* Ensure result count and ordering are properly aligned */
.sangeetly-shop-page .woocommerce-before-shop-loop .woocommerce-result-count,
.sangeetly-shop-page .woocommerce-before-shop-loop .woocommerce-ordering {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

/* 6. Catalog ordering - replace select with filter icon */
/* Note: .woocommerce-ordering IS the form element itself */
.woocommerce-ordering {
	position: relative;
	margin: 0 !important;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	background-image: url('../../anima/img/filter-icon.svg');
	background-size: 32px 32px;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	overflow: visible;
}

/* Mobile: Make woocommerce-ordering clickable for filter modal */
/* Note: Mobile styles are handled in archive-product-filters.css */

/* Hide the default select dropdown visually but keep it functional */
.woocommerce-ordering select,
.woocommerce-ordering .orderby {
	position: absolute;
	opacity: 0 !important;
	width: 32px !important;
	height: 32px !important;
	z-index: 2;
	cursor: pointer;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	appearance: none !important;
	-moz-appearance: none !important;
	-webkit-appearance: none !important;
	top: 0;
	left: 0;
	background: transparent !important;
}

/* Hide any labels */
.woocommerce-ordering label {
	display: none !important;
}

/* Hide hidden inputs */
.woocommerce-ordering input[type="hidden"] {
	display: none;
}

/* ========================================
   PRODUCT CARD STYLING
   Styled exactly like the attached image
   ======================================== */

/* Product card container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	margin-bottom: 29px !important;
}

/* 1. Product Image - border-radius: 13.42px */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
	border-radius: 13.42px;
	width: 100%;
	height: auto;
	display: block;
}

/* 2. Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
	font-weight: 700;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
	margin: 0;
	margin-bottom: 4px !important;
	padding: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title a,
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title a {
	font-weight: 700;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
	text-decoration: none;
}

/* 3. Star Rating - Using same structure as homepage (.main-pageu35trial .rating-container) */
/* Rating container - matches homepage structure */
.woocommerce ul.products li.product .rating-container,
.woocommerce-page ul.products li.product .rating-container {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	position: relative;
	width: 100%;
	margin: 0 !important;
	margin-bottom: 4px !important;
	padding: 0;
}

/* Star wrapper - matches homepage structure */
.woocommerce ul.products li.product .rating-container .star,
.woocommerce-page ul.products li.product .rating-container .star {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 2px;
	justify-content: flex-start;
	position: relative;
	margin: 0;
}

/* Star images - using same method as reviews section (img/star-1-4.svg) */
.woocommerce ul.products li.product .rating-container .star .review-star,
.woocommerce-page ul.products li.product .rating-container .star .review-star {
	width: 14px;
	height: 14px;
	display: inline-block;
	flex-shrink: 0;
	object-fit: contain;
	margin: 0;
}

/* Filled star (full rating) - same styling as reviews */
.woocommerce ul.products li.product .rating-container .star .review-star--filled,
.woocommerce-page ul.products li.product .rating-container .star .review-star--filled {
	opacity: 1;
	filter: brightness(1);
}

/* Half star - same styling as reviews */
.woocommerce ul.products li.product .rating-container .star .review-star--half,
.woocommerce-page ul.products li.product .rating-container .star .review-star--half {
	opacity: 0.6;
	filter: brightness(0.8);
}

/* Empty star - same styling as reviews */
.woocommerce ul.products li.product .rating-container .star .review-star--empty,
.woocommerce-page ul.products li.product .rating-container .star .review-star--empty {
	opacity: 0.3;
	filter: brightness(0.5) grayscale(0.3);
}

/* Rating text - matches homepage structure */
.woocommerce ul.products li.product .rating-container .rating-text,
.woocommerce-page ul.products li.product .rating-container .rating-text {
	color: #666;
	font-family: var(--archive-font-family, "Nunito Sans", Arial, sans-serif);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 16px;
	margin: 0 !important;
	position: relative;
}

/* 4. Hide Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button {
	display: none !important;
}

/* 5. Price Style */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
	font-weight: 700;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price .amount,
.woocommerce-page ul.products li.product .price .amount,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price ins .amount,
.woocommerce-page ul.products li.product .price ins .amount,
.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
	font-weight: 700;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
}

/* Old/strikethrough price styling */
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price del .woocommerce-Price-amount,
.woocommerce ul.products li.product .price del .amount,
.woocommerce-page ul.products li.product .price del .amount {
	font-weight: 400;
	font-size: 14px;
	color: #999999;
	text-decoration: line-through;
}

/* Hide sidebar on category/archive pages */
.sangeetly-shop-page #sidebar,
.sangeetly-shop-page .woocommerce-sidebar,
.sangeetly-shop-page aside#secondary,
.sangeetly-shop-page .sidebar {
	display: none !important;
}

/* ========================================
   DIVIDER BETWEEN PRODUCT GRID AND PAGINATION
   ======================================== */

.divider {
	width: 100%;
	border: 1px solid #0000001A;
	padding: 0;
}

/* ========================================
   PAGINATION STYLING
   Matches the exact design: Previous — page numbers — Next
   ======================================== */

/* Pagination container */
.sangeetly-pagination {
	width: 100%;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Pagination list */
.sangeetly-pagination__list {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

/* Pagination item base styles */
.sangeetly-pagination__item {
	margin: 0;
	padding: 0;
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Previous and Next buttons */
.sangeetly-pagination__prev,
.sangeetly-pagination__next {
	border-radius: 8px;
	border: 1px solid #0000001A; /* Black with 10% opacity */
	padding: 8px 14px !important;
	gap: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	cursor: pointer;
	background-color: #ffffff;
	max-width: 90px;
	max-height: 36px;
}

.sangeetly-pagination__prev:hover,
.sangeetly-pagination__next:hover {
	background-color: #f5f5f5;
}

.sangeetly-pagination__prev:active,
.sangeetly-pagination__next:active {
	background-color: #eeeeee;
}

/* Previous and Next button links */
.sangeetly-pagination__prev a,
.sangeetly-pagination__next a,
.sangeetly-pagination__prev .sangeetly-pagination__link,
.sangeetly-pagination__next .sangeetly-pagination__link {
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0%;
	color: #000000;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

/* Pagination arrow icons */
.sangeetly-pagination__icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	vertical-align: middle;
}

.sangeetly-pagination__icon--left {
	margin-right: 0;
}

.sangeetly-pagination__icon--right {
	margin-left: 0;
}

/* Disabled state for Previous/Next */
.sangeetly-pagination__prev.disabled,
.sangeetly-pagination__next.disabled,
.sangeetly-pagination__prev[aria-disabled="true"],
.sangeetly-pagination__next[aria-disabled="true"],
.sangeetly-pagination__prev span.sangeetly-pagination__link,
.sangeetly-pagination__next span.sangeetly-pagination__link {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Page number links */
.sangeetly-pagination__page a {
	font-family: var(--archive-font-family);
	font-weight: 400;
	font-size: 14px;
	line-height: 1;
	color: #999999; /* Light gray text for inactive pages */
	background-color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 8px 12px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
}

.sangeetly-pagination__page a:hover {
	color: #666666;
	background-color: #f5f5f5;
}

/* Current/Active page */
.sangeetly-pagination__current a,
.sangeetly-pagination__current span {
	font-family: var(--archive-font-family);
	font-weight: 400;
	font-size: 14px;
	line-height: 1;
	color: #000000; /* Dark text for active page */
	background-color: #e8e8e8; /* Light gray background for active page */
	border: none;
	border-radius: 4px;
	padding: 8px 12px;
	text-decoration: none;
	cursor: default;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
}

/* Ellipsis/Dots */
.sangeetly-pagination__dots span,
.sangeetly-pagination__dots a {
	font-family: var(--archive-font-family);
	font-weight: 400;
	font-size: 14px;
	line-height: 1;
	color: #999999; /* Light gray text */
	background-color: #ffffff;
	border: none;
	padding: 8px 4px;
	text-decoration: none;
	cursor: default;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 32px;
}

/* Override default WooCommerce pagination styles */
.sangeetly-shop-page .woocommerce-pagination,
.sangeetly-shop-page nav.woocommerce-pagination {
	display: none !important;
}

/* Ensure our custom pagination is visible */
.sangeetly-pagination {
	display: flex !important;
}

/* Responsive adjustments - Mobile first approach */
/* Base styles apply to mobile, then min-width adds desktop styles */

/* Mobile styles (default) */
.sangeetly-pagination__list {
	gap: 6px;
}

.sangeetly-pagination__page a,
.sangeetly-pagination__current a,
.sangeetly-pagination__current span {
	padding: 12px;
	font-size: 12px;
	border-radius: 8px;
}

/* Desktop styles (768px and above) */
@media (min-width: 768px) {
	.sangeetly-pagination__list {
		gap: 8px;
	}
	
	.sangeetly-pagination__page a,
	.sangeetly-pagination__current a,
	.sangeetly-pagination__current span {
		padding: 8px 12px;
		font-size: 14px;
		border-radius: 4px;
	}
}
