/* Shop Discover — 2026 polish: brand orange/ghee · soft glass-light panels */

.shop-layout,
.shop-discover.shop-layout {
	align-items: start;
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	grid-template-columns: minmax(240px, var(--shop-sidebar-width, 280px)) 1fr;
	padding-block: clamp(1.25rem, 3vw, 2rem);
	font-family: var(--font-family-base, "Poppins", "Noto Sans Myanmar", system-ui, sans-serif);
}

.shop-discover--no-aside.shop-layout {
	grid-template-columns: 1fr;
}

.shop-main {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	min-width: 0;
}

.shop-listing {
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 1rem);
}

.shop-sidebar,
.shop-discover__aside {
	min-width: 0;
}

.shop-sidebar--polished .shop-sidebar__inner,
.shop-discover .shop-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Editor mirrors frontend grid */
.shop-discover--editor {
	border: 1px dashed rgba(196, 90, 18, 0.28);
	border-radius: 16px;
	padding: 1rem 1.25rem;
	background: linear-gradient(165deg, rgba(255, 243, 230, 0.55) 0%, #fff 55%);
}

.shop-discover--editor.shop-layout {
	align-items: start;
	display: grid;
	gap: var(--space-6, 2rem);
	grid-template-columns: minmax(240px, var(--shop-sidebar-width, 280px)) 1fr;
}

.shop-discover--editor.shop-discover--no-aside {
	grid-template-columns: 1fr;
}

.shop-discover--editor > .shop-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-6, 2rem);
	min-width: 0;
}

.shop-discover__ssr--aside,
.shop-discover__ssr--main {
	min-height: 2rem;
}

.shop-discover__ssr--aside .shop-sidebar,
.shop-discover__ssr--aside > aside {
	width: 100%;
}

.shop-discover__editor-listing {
	border: 1px dashed rgba(196, 90, 18, 0.28);
	border-radius: 12px;
	padding: 0.75rem;
	background: #fff;
	min-height: 80px;
}

.shop-discover__editor-note {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	color: #666;
}

.shop-discover__order-row {
	margin-bottom: 0.35rem;
}

.shop-discover__editor-moves {
	display: flex;
	gap: 0.35rem;
}

@media (max-width: 1024px) {
	.shop-discover--editor.shop-layout {
		grid-template-columns: 1fr;
	}
}

/* —— Tokens —— */
.shop-discover {
	--sd-radius: 16px;
	--sd-radius-sm: 12px;
	--sd-border: rgba(196, 90, 18, 0.12);
	--sd-shadow: 0 8px 28px rgba(143, 63, 10, 0.07);
	--sd-shadow-hover: 0 14px 36px rgba(143, 63, 10, 0.12);
	--sd-surface: rgba(255, 255, 255, 0.92);
	--sd-head: linear-gradient(105deg, rgba(255, 243, 230, 0.95) 0%, rgba(255, 255, 255, 0.98) 62%);
	--shop-color-link: #c45a12;
	--shop-color-price: #ff7f00;
	--shop-color-sale: #e63900;
	--shop-color-badge-sale: #ff7f00;
	--shop-color-badge-stock: #1a1a1a;
	--shop-color-star: #ffb84c;
	--shop-color-muted: #666;
	--shop-color-border: #ebe4dc;
}

/* —— Aside —— */
.shop-sidebar--polished .shop-sidebar__widget.shop-panel,
.shop-discover .shop-sidebar__widget.shop-panel {
	background: var(--sd-surface);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	padding: 1.15rem 1.2rem 1.05rem;
	overflow: hidden;
}

.shop-sidebar--polished .shop-sidebar__widget-title,
.shop-discover .shop-sidebar__widget-title {
	position: relative;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1a1a1a;
	margin: 0 0 1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid rgba(196, 90, 18, 0.1);
}

.shop-sidebar--polished .shop-sidebar__widget-title::after,
.shop-discover .shop-sidebar__widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 2.75rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #ff7f00, #c45a12);
}

.shop-sidebar--polished .shop-sidebar__cats,
.shop-discover .shop-sidebar__cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-sidebar--polished .shop-sidebar__cat-item,
.shop-discover .shop-sidebar__cat-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-sidebar--polished .shop-sidebar__cat-item:last-child,
.shop-discover .shop-sidebar__cat-item:last-child {
	border-bottom: 0;
}

.shop-sidebar--polished .shop-sidebar__cat-trigger,
.shop-discover .shop-sidebar__cat-trigger {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	font-size: 0.875rem;
	font-weight: 500;
	justify-content: space-between;
	min-height: 44px;
	padding: 0.55rem 0.35rem;
	margin-inline: -0.35rem;
	text-align: left;
	width: calc(100% + 0.7rem);
	color: #1a1a1a;
	transition: color 0.2s ease, background 0.2s ease;
}

.shop-sidebar--polished .shop-sidebar__cat-trigger:hover,
.shop-discover .shop-sidebar__cat-trigger:hover,
.shop-sidebar--polished .shop-sidebar__cat-trigger:focus-visible,
.shop-discover .shop-sidebar__cat-trigger:focus-visible {
	color: #c45a12;
	background: rgba(255, 243, 230, 0.65);
	outline: none;
}

.shop-sidebar--polished .shop-sidebar__cat-chevron,
.shop-discover .shop-sidebar__cat-chevron {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg);
	transition: transform 0.25s ease, border-color 0.2s ease;
	margin-right: 0.2rem;
	flex-shrink: 0;
}

.shop-sidebar--polished .shop-sidebar__cat-item.is-open .shop-sidebar__cat-chevron,
.shop-discover .shop-sidebar__cat-item.is-open .shop-sidebar__cat-chevron {
	transform: rotate(-135deg);
	border-color: #ff7f00;
}

.shop-sidebar--polished .shop-sidebar__panel,
.shop-discover .shop-sidebar__panel {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0 0 0.65rem 0.35rem;
}

.shop-sidebar--polished .shop-sidebar__child-link,
.shop-discover .shop-sidebar__child-link {
	color: #666;
	font-size: 0.8rem;
	text-decoration: none;
	padding: 0.35rem 0.4rem;
	border-radius: 6px;
	transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.shop-sidebar--polished .shop-sidebar__child-link:hover,
.shop-discover .shop-sidebar__child-link:hover {
	color: #ff7f00;
	background: rgba(255, 243, 230, 0.7);
	padding-left: 0.55rem;
}

.shop-sidebar--polished .product-card--compact,
.shop-discover .product-card--compact {
	border-radius: 10px;
	padding: 0.55rem 0.35rem;
	transition: background 0.2s ease;
}

.shop-sidebar--polished .product-card--compact:hover,
.shop-discover .product-card--compact:hover {
	background: rgba(255, 243, 230, 0.55);
}

/* —— Product cards —— */
.shop-discover .product-card__media {
	padding: 1rem 1rem 0.5rem;
	position: relative;
	text-align: center;
}

.shop-discover .product-card__image-link {
	display: block;
}

.shop-discover .product-card__image {
	height: auto;
	margin-inline: auto;
	max-width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.shop-discover .product-card__badge {
	border-radius: 999px;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	left: 0.65rem;
	line-height: 1.3;
	padding: 0.28rem 0.55rem;
	position: absolute;
	top: 0.65rem;
	z-index: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.shop-discover .product-card__badge--sale {
	background: var(--shop-color-badge-sale);
}

.shop-discover .product-card__badge--stock {
	background: var(--shop-color-badge-stock);
}

.shop-discover .product-card__body {
	padding: 0 0.85rem 1rem;
}

.shop-discover .product-card__title {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	margin: 0 0 0.4rem;
}

.shop-discover .product-card__title a {
	color: var(--shop-color-link);
	text-decoration: none;
	transition: color 0.2s ease;
}

.shop-discover .product-card__title a:hover {
	color: #ff7f00;
}

.shop-discover .product-card__rating {
	align-items: center;
	display: flex;
	font-size: 0.8rem;
	gap: 0.12rem;
	margin-bottom: 0.4rem;
}

.shop-discover .product-card__star--filled {
	color: var(--shop-color-star);
}

.shop-discover .product-card__star--empty {
	color: #e0e0e0;
}

.shop-discover .product-card__reviews {
	color: var(--shop-color-muted);
	font-size: 0.72rem;
	margin-left: 0.2rem;
}

.shop-discover .product-card__price {
	color: var(--shop-color-price);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.shop-discover .product-card__price--sale {
	color: var(--shop-color-sale);
	margin-right: 0.45rem;
}

.shop-discover .product-card__price--was {
	color: var(--shop-color-muted);
	font-size: 0.75rem;
	font-weight: 400;
	text-decoration: line-through;
}

.shop-discover .product-card--compact {
	border-bottom: 1px solid var(--shop-color-border);
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 72px 1fr;
	padding-block: 0.65rem;
	align-items: center;
}

.shop-discover .product-card--compact:last-child {
	border-bottom: 0;
}

.shop-discover .product-card--compact .product-card__thumb {
	height: 72px;
	width: 72px;
	object-fit: contain;
	border-radius: 10px;
	background: rgba(255, 243, 230, 0.45);
	padding: 0.25rem;
}

.shop-discover .product-card--grid {
	text-align: left;
}

.shop-discover .carousel-dots {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.shop-discover .carousel-dots__dot {
	background: rgba(0, 0, 0, 0.14);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 8px;
	padding: 0;
	width: 8px;
	transition: width 0.25s ease, background 0.25s ease;
}

.shop-discover .carousel-dots__dot.is-active {
	background: #ff7f00;
	width: 1.35rem;
}

/* —— Main panels —— */
.shop-discover .featured-categories > .l-section,
.shop-discover .daily-offers > .l-section,
.shop-discover .best-sellers > .l-section {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
	width: 100%;
}

.shop-discover .shop-panel {
	background: var(--sd-surface);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	overflow: hidden;
	padding: 0;
}

.shop-discover .shop-main > .featured-categories .shop-panel,
.shop-discover .shop-main > .daily-offers .shop-panel,
.shop-discover .shop-main > .best-sellers .shop-panel {
	margin: 0;
}

.shop-discover .shop-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1rem 1.35rem;
	background: var(--sd-head);
	border-bottom: 1px solid rgba(196, 90, 18, 0.1);
}

.shop-discover .shop-panel__title-wrap {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.shop-discover .shop-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(145deg, #fff 0%, #fff3e6 100%);
	color: #ff7f00;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 127, 0, 0.18);
}

.shop-discover .shop-panel__title {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.3;
}

.shop-discover .shop-panel__view-all {
	font-size: 0.8rem;
	font-weight: 600;
	color: #c45a12;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(196, 90, 18, 0.22);
	background: rgba(255, 255, 255, 0.75);
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shop-discover .shop-panel__view-all:hover,
.shop-discover .shop-panel__view-all:focus-visible {
	color: #fff;
	background: #ff7f00;
	border-color: #ff7f00;
	transform: translateY(-1px);
	outline: none;
}

.shop-discover .featured-categories__stage,
.shop-discover .daily-offers__stage,
.shop-discover .best-sellers__stage {
	position: relative;
	padding: 1.35rem;
}

.shop-discover .featured-categories__dots,
.shop-discover .daily-offers__dots,
.shop-discover .best-sellers__dots {
	justify-content: center;
	padding: 0 1.25rem 1.2rem;
	margin-top: 0;
}

.shop-discover .featured-categories__slide,
.shop-discover .daily-offers__track > .product-carousel__slide,
.shop-discover .best-sellers__track > .product-carousel__slide {
	display: none;
}

.shop-discover .featured-categories__slide.is-active,
.shop-discover .featured-categories__stage:not([data-brand-carousel-init]) .featured-categories__slide:first-child,
.shop-discover .daily-offers__track > .product-carousel__slide.is-active,
.shop-discover .daily-offers__stage:not([data-brand-carousel-init]) .daily-offers__track > .product-carousel__slide:first-child,
.shop-discover .best-sellers__track > .product-carousel__slide.is-active,
.shop-discover .best-sellers__stage:not([data-brand-carousel-init]) .best-sellers__track > .product-carousel__slide:first-child {
	display: block;
}

.shop-discover .featured-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.shop-discover .featured-categories__card {
	text-align: center;
	padding: 1.1rem 0.85rem 1.15rem;
	border-radius: var(--sd-radius-sm);
	background: linear-gradient(180deg, #fff 0%, #faf7f3 100%);
	border: 1px solid rgba(196, 90, 18, 0.08);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.shop-discover .featured-categories__card:hover,
.shop-discover .featured-categories__card:focus-within {
	transform: translateY(-4px);
	border-color: rgba(255, 127, 0, 0.35);
	box-shadow: var(--sd-shadow-hover);
}

.shop-discover .featured-categories__media {
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 243, 230, 0.4);
	aspect-ratio: 5 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
}

.shop-discover .featured-categories__media img {
	display: block;
	margin-inline: auto;
	max-height: 120px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.shop-discover .featured-categories__card:hover .featured-categories__media img {
	transform: scale(1.05);
}

.shop-discover .featured-categories__name {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0.9rem 0 0.45rem;
	color: #1a1a1a;
}

.shop-discover .featured-categories__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.shop-discover .featured-categories__link {
	font-size: 0.75rem;
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shop-discover .featured-categories__link:hover {
	color: #c45a12;
}

.shop-discover .featured-categories__link--cta {
	color: #ff7f00;
	font-weight: 600;
}

.shop-discover .featured-categories__arrow {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #666;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: 2;
	font-size: 1.25rem;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.shop-discover .featured-categories__arrow:hover,
.shop-discover .featured-categories__arrow:focus-visible {
	color: #fff;
	background: #ff7f00;
	outline: none;
}

.shop-discover .featured-categories__arrow--prev {
	left: 0.5rem;
}

.shop-discover .featured-categories__arrow--next {
	right: 0.5rem;
}

.shop-discover .product-carousel__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, 1fr);
}

.shop-discover .product-card--grid {
	border-radius: var(--sd-radius-sm);
	border: 1px solid rgba(196, 90, 18, 0.08);
	padding: 0.35rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	background: #fff;
	overflow: hidden;
}

.shop-discover .product-card--grid:hover,
.shop-discover .product-card--grid:focus-within {
	transform: translateY(-3px);
	border-color: rgba(255, 127, 0, 0.28);
	box-shadow: var(--sd-shadow-hover);
}

/* —— Motion —— */
.shop-discover__reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
}

.shop-discover__reveal.is-in {
	opacity: 1;
	transform: none;
}

.shop-discover__reveal-item {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	transition-delay: var(--i-delay, 0ms);
}

.shop-discover__reveal.is-in .shop-discover__reveal-item {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.shop-discover__reveal,
	.shop-discover__reveal-item,
	.shop-discover .featured-categories__card,
	.shop-discover .featured-categories__media img,
	.shop-discover .product-card--grid,
	.shop-discover .shop-panel__view-all,
	.shop-sidebar--polished .shop-sidebar__cat-chevron,
	.shop-sidebar--polished .shop-sidebar__child-link,
	.shop-sidebar--polished .shop-sidebar__cat-trigger,
	.shop-discover .carousel-dots__dot {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		width: auto;
	}

	.shop-discover .carousel-dots__dot.is-active {
		width: 8px;
	}
}

@media (max-width: 1024px) {
	.shop-layout,
	.shop-discover.shop-layout {
		grid-template-columns: 1fr;
	}

	.shop-discover .featured-categories__grid,
	.shop-discover .product-carousel__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.shop-discover .featured-categories__grid,
	.shop-discover .product-carousel__grid {
		grid-template-columns: 1fr;
	}

	.shop-discover .featured-categories__arrow {
		display: none;
	}

	.shop-discover .shop-panel__head {
		flex-wrap: wrap;
	}

	.shop-discover .shop-panel__view-all {
		width: 100%;
		text-align: center;
	}
}
