/* ==========================================================================
   COLLECTIONS – jewellery-shop-australia (sidebar + category grid)
   Giữ nguyên layout 2 cột cho trang /collections/jewellery-shop-australia/
   ========================================================================== */

.collections-archive {
	border-top: 1px solid rgb(191 191 191);
	border-bottom: 1px solid rgb(191 191 191);
	background-color: #ffffff;
}

.collections-archive .container {
	padding-top: 40px;
	padding-bottom: 56px;
}

.collections-archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	column-gap: 56px;
	align-items: flex-start;
}

.collections-archive-sidebar {
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	color: #2f241d;
	width: 320px;
	max-width: 100%;
}
.wp-block-accordion-heading{
	margin: 0;
}

.collections-sidebar-heading {
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #222;
	margin: 0;
	font-weight: 500;
}

.collections-sidebar-nav {
	border-top: 1px solid #e0d2c7;
}

.collections-sidebar-menu,
.collections-sidebar-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.collections-sidebar-menu > li {
	border-bottom: 1px solid #e0d2c7;
}

.collections-sidebar-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 11px;
	color: #2f241d;
}

.collections-sidebar-menu > li > a::after {
	content: "▾";
	font-size: 9px;
	color: #b5a59a;
}

.collections-sidebar-menu > li > a:hover {
	color: #000;
}

.mega-menu-description {
	display: none !important;
}

.collections-archive-main {
	min-width: 0;
}

/* Category grid (jewellery-shop-australia) */
.collections-list-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.collections-card {
	position: relative;
	overflow: hidden;
	background: #F0F0F0;
}

.collections-card-inner {
	overflow: hidden;
}

.collections-card-media img {
	width: 100%;
	object-fit: cover;
	transition: transform 5s ease;
}

.collections-card:hover .collections-card-media img {
	transform: scale(1.3);
	transition: transform 5s ease;
}

.collections-card-body {
	padding: 18px;
}

.collections-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}

.collections-card-button-container {
	text-align: center;
}

.collections-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 28px;
	margin-top: 4px;
	border-radius: 0;
	border: 1px solid #c7c0d0;
	background-color: transparent;
	color: #111111;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 11px;
	font-family: "Open Sans", sans-serif;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	z-index: 0;
}

.collections-card-button::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #ffffff;
	transform: translateX(0);
	transition: transform 0.3s ease;
	z-index: -1;
}

.collections-card-button:hover::before {
	transform: translateX(100%);
}

.collections-card-button:hover {
	background-color: transparent;
	color: #111111;
	border-color: #c7c0d0;
}

/* Sidebar filter widgets (jewellery-shop-australia) */
.collections-sidebar-block {
	margin-bottom: 40px;
}

.collections-filter-widgets .widget,
.collections-sidebar-block--shopby .widget,
.collections-sidebar-menu > li {
	border-top: 1px solid #d9d9d9;
	padding: 0;
	margin: 0;
	list-style: none;
}


.collections-filter-widgets .widget-title,
.collections-sidebar-block--shopby .widget-title,
.collections-sidebar-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 22px 0;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #222;
	text-decoration: none;
	margin: 0;
	background: transparent;
	border: 0;
}

.collections-filter-widgets .widget-title::after,
.collections-sidebar-block--shopby .widget-title::after,
.collections-sidebar-menu > li.menu-item-has-children > a::after {
	content: "⌄";
	font-size: 16px;
	line-height: 1;
}

.collections-filter-widgets .widget > *:not(.widget-title) {
	padding: 0 0 20px;
}

.collections-sidebar-block--shopby .widget > *:not(.widget-title) {
	padding: 0 0 20px;
}

.collections-sidebar-menu ul {
	padding: 0 0 20px 0;
}

.collections-sidebar-menu ul li a {
	display: block;
	padding: 8px 0;
	text-decoration: none;
	color: #444;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.collections-sidebar-block--shopby .widget nav ul li a {
	display: block;
	padding: 8px 0;
	text-decoration: none;
	color: #444;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.collections-filter-content {
	display: block;
}

.collections-filter-widgets .widget.is-collapsed .collections-filter-content {
	display: none;
}

.collections-sidebar-block--shopby .widget.is-collapsed .collections-filter-content {
	display: none;
}

/* ==========================================================================
   COLLECTIONS – Product Category Page (with sidebar + main)
   ========================================================================== */

.collections-category-header {
	max-width: 780px;
	margin: 0 0 24px;
	text-align: left;
}

.collections-eyebrow {
	margin: 0 0 10px;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6f655f;
}

.collections-category-title {
	margin: 0 0 16px;
	font-family: "Jost", sans-serif;
	font-size: 32px;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.3;
	color: #1f1a17;
}

.collections-category-desc {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.8;
	color: #2f241d;
}

/* Sort bar */
.collections-sort-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e7ddd3;
}

.collections-sort {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 220px;
	font-family: "Open Sans", sans-serif;
}

.collections-sort-label {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #6f655f;
	margin-bottom: 8px;
}

.collections-sort-form {
	position: relative;
	min-width: 220px;
}

.collections-sort-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 40px;
	padding: 8px 32px 8px 12px;
	border: 1px solid #d9d9d9;
	background-color: #ffffff;
	color: #2f241d;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: none;
	cursor: pointer;
}

.collections-sort-current {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.collections-sort-icon {
	position: relative;
	width: 12px;
	height: 6px;
}

.collections-sort-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #6f655f;
}

.collections-sort-form.is-open .collections-sort-icon::before {
	transform: rotate(180deg);
}

.collections-sort-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	width: 100%;
	margin-top: 4px;
	background-color: #ffffff;
	border: 1px solid #d9d9d9;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.collections-sort-form.is-open .collections-sort-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.collections-sort-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

.collections-sort-item {
	padding: 8px 14px;
	font-size: 13px;
	color: #2f241d;
	cursor: pointer;
	white-space: nowrap;
}

.collections-sort-item:hover {
	background-color: #f5f2ee;
}

.collections-sort-item.is-active {
	font-weight: 600;
}

.collections-sort-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.collections-sort-bar .woocommerce-result-count {
	display: none;
}

.collections-sort-bar .woocommerce-notices-wrapper:empty {
	display: none;
}

/* ==========================================================================
   Mobile filter/sort toolbar + panels (<=768px)
   ========================================================================== */

.sj-mobile-toolbar,
.sj-mobile-overlay,
.sj-mobile-panel {
	display: none;
}

/* Hiển thị đúng theo thiết bị */
@media (max-width: 768px) {
	/* Mobile: ẩn UI desktop (sort bar + sidebar) */
	.collections-sort-bar,
	.collections-archive-sidebar {
		display: none !important;
	}

	/* Mobile: layout 1 cột */
	.collections-archive-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.sj-mobile-toolbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		border: 1px solid #e7ddd3;
		margin-bottom: 16px;
	}

	.sj-mobile-toolbar-btn {
		background: #fff;
		border: 0;
		padding: 14px 12px;
		font-family: "Open Sans", sans-serif;
		font-size: 11px;
		letter-spacing: 0.22em;
		text-transform: uppercase;
		color: #6f655f;
		cursor: pointer;
	}

	.sj-mobile-toolbar-btn + .sj-mobile-toolbar-btn {
		border-left: 1px solid #e7ddd3;
	}

	.sj-mobile-toolbar-btn[data-sj-open-sort]::after {
		content: "⌄";
		display: inline-block;
		margin-left: 8px;
		font-size: 14px;
		line-height: 1;
		transform: translateY(-5px);
	}

	/* overlay */
	.sj-mobile-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.35);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
		z-index: 9998;
	}

	.sj-mobile-overlay.is-open {
		opacity: 1;
		visibility: visible;
	}

	/* Panels base */
	.sj-mobile-panel {
		display: block;
		position: fixed;
		background: #ffffff;
		z-index: 9999;
		overflow: hidden;
	}

	.sj-mobile-panel__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
		border-bottom: 1px solid #e7ddd3;
	}

	.sj-mobile-panel__title {
		font-family: "Open Sans", sans-serif;
		font-size: 11px;
		letter-spacing: 0.22em;
		text-transform: uppercase;
		color: #6f655f;
	}

	.sj-mobile-panel__close {
		border: 0;
		background: transparent;
		font-size: 22px;
		line-height: 1;
		padding: 6px 8px;
		cursor: pointer;
		color: #2f241d;
	}

	.sj-mobile-panel__body {
		padding: 12px 16px 18px;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Sort bottom sheet */
	.sj-mobile-panel--sort {
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 72vh;
		border-top: 1px solid #e7ddd3;
		transform: translateY(100%);
		transition: transform 0.25s ease;
	}

	.sj-mobile-panel--sort.is-open {
		transform: translateY(0);
	}

	/* Make Woo ordering look like a simple list in sheet */
	.sj-mobile-panel--sort .collections-sort {
		align-items: stretch;
		min-width: 0;
	}

	.sj-mobile-panel--sort .collections-sort-label,
	.sj-mobile-panel--sort .collections-sort-trigger,
	.sj-mobile-panel--sort .collections-sort-select {
		display: none !important;
	}

	.sj-mobile-panel--sort .collections-sort-form {
		min-width: 0;
	}

	.sj-mobile-panel--sort .collections-sort-dropdown {
		position: static;
		width: 100%;
		margin-top: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.sj-mobile-panel--sort .collections-sort-list {
		padding: 0;
	}

	.sj-mobile-panel--sort .collections-sort-item {
		padding: 10px 0;
		border-bottom: 1px solid #f0e7df;
	}

	.sj-mobile-panel--sort .collections-sort-item:last-child {
		border-bottom: 0;
	}

	/* Filter drawer (left) */
	.sj-mobile-panel--filter {
		top: 0;
		bottom: 0;
		left: 0;
		width: min(360px, 92vw);
		border-right: 1px solid #e7ddd3;
		transform: translateX(-102%);
		transition: transform 0.25s ease;
		display: grid;
		grid-template-rows: auto 1fr auto;
	}

	.sj-mobile-panel--filter.is-open {
		transform: translateX(0);
	}

	.sj-mobile-panel--filter .sj-mobile-panel__body {
		padding-bottom: 20px;
	}

	.sj-mobile-panel__footer {
		border-top: 1px solid #e7ddd3;
		padding: 14px 16px;
		background: #fff;
	}

	.sj-mobile-panel__action {
		width: 100%;
		min-height: 48px;
		border: 0;
		background: #1f1a17;
		color: #fff;
		font-family: "Open Sans", sans-serif;
		font-size: 12px;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		cursor: pointer;
	}

	/* lock body scroll when panel open */
	body.sj-mobile-panel-open {
		overflow: hidden;
	}
}

/* Product grid – 3 columns внутри правой колонки */
.collections-archive-main ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.collections-archive-main ul.products::before,
.collections-archive-main ul.products::after {
	display: none;
	content: none;
}

/* ==========================================================================
   Product Card (content-product.php)
   ========================================================================== */

.product-card {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.product-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	text-align: center;
}

.product-card-media {
	position: relative;
	overflow: hidden;
	background: #fbf8f4;
	aspect-ratio: 1 / 1;
}

.product-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.35s ease;
}

.product-card-img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.product-card:hover .product-card-img--primary {
	opacity: 0;
}

.product-card:hover .product-card-img--hover {
	opacity: 1;
}

/* Badges */
.product-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: capitalize;
}

.product-badge--sale {
	background: #fff;
	color: #1f1a17;
	border: 1px solid #d9d9d9;
}

.product-badge--soldout {
	background: #1f1a17;
	color: #fff;
}

/* Product info */
.product-card-info {
	padding: 14px 4px 0;
}

.product-card-title {
	margin: 0 0 6px;
	font-family: "Jost", sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	line-height: 1.4;
	color: #1f1a17;
}

.product-card-price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #6f655f;
}

.product-card-price--current {
	color: #1f1a17;
}

.product-card-price--regular {
	text-decoration: line-through;
	color: #b5a59a;
	font-size: 13px;
}

/* WooCommerce default button override */
.product-card .button,
.product-card .add_to_cart_button,
.product-card .ajax_add_to_cart {
	display: none !important;
}

/* Pagination */
.collections-archive-main .woocommerce-pagination {
	margin-top: 48px;
	text-align: center;
}

.collections-archive-main .woocommerce-pagination ul {
	display: inline-flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}

.collections-archive-main .woocommerce-pagination ul li {
	border: none;
}

.collections-archive-main .woocommerce-pagination ul li a,
.collections-archive-main .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid transparent;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #2f241d;
	text-decoration: none;
	background: transparent;
}

.collections-archive-main .woocommerce-pagination ul li a:hover {
	border-color: #d9d9d9;
}

.collections-archive-main .woocommerce-pagination ul li span.current {
	border-color: #2f241d;
	font-weight: 600;
}

/* ==========================================================================
   SEO Content + FAQ Section
   ========================================================================== */

.collections-seo-section {
	background: #fff;
	border-top: 1px solid #e7ddd3;
}

.collections-seo-section .container {
	padding-top: 56px;
	padding-bottom: 64px;
	max-width: 860px;
}

.collections-seo-text {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.9;
	color: #2f241d;
}

.collections-seo-text h2 {
	font-family: "Jost", sans-serif;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0.06em;
	margin: 0 0 16px;
	color: #1f1a17;
}

.collections-seo-text h3 {
	font-family: "Jost", sans-serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.04em;
	margin: 32px 0 12px;
	color: #1f1a17;
}

.collections-seo-text p {
	margin: 0 0 16px;
}

.collections-seo-text a {
	color: #2f241d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.collections-seo-text a:hover {
	color: #000;
}

/* FAQ */
.collections-faq {
	margin-top: 48px;
}

.collections-faq-heading {
	font-family: "Jost", sans-serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.06em;
	margin: 0 0 20px;
	color: #1f1a17;
}

.collections-faq-list h4 {
	margin: 0;
	padding: 18px 0;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1f1a17;
	cursor: pointer;
	border-top: 1px solid #e7ddd3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}

.collections-faq-list h4::after {
	content: "+";
	font-size: 20px;
	font-weight: 300;
	color: #6f655f;
	transition: transform 0.25s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.collections-faq-list h4.is-open::after {
	content: "−";
}

.collections-faq-list h4 + * {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease, padding 0.35s ease;
	padding: 0;
}

.collections-faq-list h4.is-open + * {
	max-height: 600px;
	padding-bottom: 18px;
}

.collections-faq-list p {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.8;
	color: #444;
}

.collections-faq-list > *:last-child {
	border-bottom: 1px solid #e7ddd3;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.collections-list-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.collections-category-title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.collections-archive-layout {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}
	.collections-sort {
		align-items: stretch;
	}

	.collections-sort-form {
		min-width: 100%;
	}

	.collections-archive-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.collections-category-header {
		margin-bottom: 24px;
	}

	.collections-category-title {
		font-size: 22px;
	}

	.collections-category-desc {
		font-size: 13px;
	}

	.collections-seo-section .container {
		padding-top: 40px;
		padding-bottom: 48px;
	}
}

@media (max-width: 700px) {
	.collections-archive .container {
		padding-top: 48px;
		padding-bottom: 40px;
	}

	.collections-list-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.collections-category-title {
		font-size: 20px;
	}

	.product-card-title {
		font-size: 11px;
	}

	.product-card-price {
		font-size: 13px;
	}
}
