/**
 * Pre-created Header & Product Slider – Main Styles
 * Luxury · Minimal · Premium · Apple-inspired
 */

/* --------------------------------------------------------------------------
   CSS Variables (overridden by inline from settings)
   -------------------------------------------------------------------------- */
:root {
	--chps-primary: #000000;
	--chps-secondary: #ffffff;
	--chps-button: #000000;
	--chps-button-radius: 40px;
	--chps-header-height: 80px;
	--chps-logo-width: 150px;
	--chps-container: 1200px;
	--chps-anim-speed: 300ms;
	--chps-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--chps-font-display: 'Poppins', var(--chps-font);
	--chps-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--chps-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
	--chps-radius: 16px;
	--chps-transition: all var(--chps-anim-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */
.chps-product-slider-wrap,
.chps-header,
.chps-header *,
.chps-product-slider-wrap * {
	box-sizing: border-box;
}

.chps-product-slider-wrap {
	font-family: var(--chps-font);
	color: var(--chps-primary);
	width: 100%;
	position: relative;
}

/* --------------------------------------------------------------------------
   Product Slider
   -------------------------------------------------------------------------- */
.chps-product-slider-wrap {
	position: relative;
	padding-top: 0;
}

/* Toolbar: arrows left, View more right */
.chps-slider-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.chps-slider-nav {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
}
.chps-view-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--chps-primary, #000);
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.15s;
	white-space: nowrap;
}
.chps-view-more:hover {
	opacity: 0.88;
	color: #fff;
	transform: translateY(-1px);
}
.chps-view-more svg {
	flex-shrink: 0;
}

.chps-nav-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid #e5e5e5;
	background: #fff;
	color: var(--chps-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: var(--chps-transition);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	line-height: 1;
}

.chps-nav-btn:hover {
	background: var(--chps-primary);
	border-color: var(--chps-primary);
	color: #fff;
}

.chps-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.chps-nav-btn svg {
	display: block;
	flex-shrink: 0;
}

.chps-swiper {
	overflow: hidden;
	padding: 4px 2px 36px;
}

.chps-swiper .swiper-wrapper {
	align-items: stretch;
}

.chps-slide {
	height: auto;
	display: flex;
}

.chps-product-card {
	background: #fff;
	border-radius: var(--chps-radius);
	overflow: hidden;
	box-shadow: var(--chps-shadow);
	transition: box-shadow var(--chps-anim-speed) ease, transform var(--chps-anim-speed) ease;
	width: 100%;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.chps-product-card:hover {
	box-shadow: var(--chps-shadow-hover);
	transform: translateY(-3px);
}

/* Image – fixed square ratio so all cards align */
.chps-product-image-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	flex-shrink: 0;
}

.chps-product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: opacity var(--chps-anim-speed) ease, transform 0.6s ease;
}

.chps-img-secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}

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

.chps-product-card:hover .chps-img-secondary {
	opacity: 1;
	transform: scale(1.03);
}

.chps-product-card:hover .chps-img-primary:not(.has-secondary) {
	transform: scale(1.05);
}

/* Badges */
.chps-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.chps-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 20px;
	line-height: 1.2;
}

.chps-badge-sale {
	background: #e53935;
	color: #fff;
}

.chps-badge-new {
	background: #1a1a1a;
	color: #fff;
}

.chps-badge-discount {
	background: #fff;
	color: #e53935;
	border: 1px solid #e53935;
}

/* Actions (wishlist / quick view) */
.chps-product-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(8px);
	transition: var(--chps-transition);
	z-index: 2;
}

.chps-product-card:hover .chps-product-actions {
	opacity: 1;
	transform: translateX(0);
}

.chps-action-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: var(--chps-transition);
	color: var(--chps-primary);
	padding: 0;
}

.chps-action-btn:hover {
	background: var(--chps-primary);
	color: #fff;
}

/* Product Info */
.chps-product-info {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-height: 0;
}

.chps-rating {
	line-height: 1;
	min-height: 16px;
}

.chps-rating .star-rating {
	font-size: 12px;
	color: #f5a623;
}

.chps-product-title {
	margin: 0;
	font-family: var(--chps-font-display);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.chps-product-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.chps-product-title a:hover {
	color: #555;
}

.chps-price {
	font-size: 14px;
	font-weight: 600;
	color: var(--chps-primary);
	min-height: 1.4em;
}

.chps-price del {
	opacity: 0.5;
	font-weight: 400;
	margin-right: 6px;
}

.chps-price ins {
	text-decoration: none;
	color: #e53935;
}

/* Add to Cart Button */
.chps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--chps-button);
	color: #fff;
	border: 1.5px solid var(--chps-button);
	border-radius: var(--chps-button-radius);
	font-family: var(--chps-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--chps-transition);
	text-decoration: none;
	line-height: 1;
	position: relative;
	overflow: hidden;
}

.chps-btn:hover {
	background: #fff;
	color: var(--chps-button);
}

.chps-btn:focus {
	outline: 2px solid var(--chps-primary);
	outline-offset: 2px;
}

.chps-btn-outline {
	background: transparent;
	color: var(--chps-primary);
	border-color: var(--chps-primary);
}

.chps-btn-outline:hover {
	background: var(--chps-primary);
	color: #fff;
}

.chps-btn-sm {
	padding: 8px 18px;
	font-size: 12px;
}

.chps-add-to-cart {
	margin-top: auto;
	width: 100%;
	flex-shrink: 0;
}

.chps-out-of-stock {
	margin-top: auto;
}

.chps-add-to-cart.loading .chps-btn-text {
	opacity: 0;
}

.chps-add-to-cart.loading .chps-btn-loading {
	display: block;
}

.chps-btn-loading {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: chps-spin 0.6s linear infinite;
	position: absolute;
}

@keyframes chps-spin {
	to { transform: rotate(360deg); }
}

.chps-out-of-stock {
	font-size: 12px;
	color: #999;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Pagination dots */
.chps-pagination {
	bottom: 0 !important;
}

.chps-pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	background: #ccc;
	opacity: 1;
	transition: var(--chps-transition);
}

.chps-pagination .swiper-pagination-bullet-active {
	background: var(--chps-primary);
	width: 20px;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Premium Header
   -------------------------------------------------------------------------- */
.chps-header {
	background: #ffffff;
	position: relative;
	z-index: 1000;
	font-family: var(--chps-font);
	width: 100%;
	transition: background var(--chps-anim-speed) ease, box-shadow var(--chps-anim-speed) ease, backdrop-filter var(--chps-anim-speed) ease;
}

.chps-header.chps-sticky {
	position: sticky;
	top: 0;
}

.chps-header.chps-scrolled {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.chps-header-inner {
	height: var(--chps-header-height);
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}

.chps-header-container {
	max-width: var(--chps-container);
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}

/* Logo */
.chps-logo {
	flex-shrink: 0;
}

.chps-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--chps-primary);
}

.chps-logo-img {
	max-width: var(--chps-logo-width);
	height: auto;
	display: block;
}

.chps-logo-text {
	font-family: var(--chps-font-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Navigation */
.chps-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
	overflow: visible;
}

.chps-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chps-menu > li {
	position: relative;
}

.chps-menu > li > a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--chps-primary);
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: opacity 0.2s;
	border-radius: 8px;
}

.chps-menu > li > a:hover,
.chps-menu > li.current-menu-item > a {
	opacity: 0.6;
}

/* ===== MEGA MENU (clean) ===== */
.chps-header {
	overflow: visible !important;
}
.chps-header-inner,
.chps-header-container,
.chps-nav {
	overflow: visible !important;
}

.chps-menu {
	position: static;
}

.chps-menu > li {
	position: relative;
	list-style: none;
}

.chps-menu > li.chps-has-mega {
	position: static;
}

/* Default simple dropdown */
.chps-menu > li:not(.chps-has-mega) > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	list-style: none;
	margin: 0;
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 200;
	display: block;
}
.chps-menu > li:not(.chps-has-mega):hover > .sub-menu,
.chps-menu > li:not(.chps-has-mega):focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.chps-menu > li:not(.chps-has-mega) > .sub-menu a {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	color: #111;
	text-decoration: none;
	border-radius: 8px;
}
.chps-menu > li:not(.chps-has-mega) > .sub-menu a:hover {
	background: #f5f5f5;
}

/* Mega panel – matches header container width, sits under header bar */
.chps-menu .sub-menu.chps-mega-panel,
.chps-mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	max-width: var(--chps-container, 1200px);
	margin: 0 auto;
	box-sizing: border-box;
	background: #fff;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	list-style: none;
	padding: 28px 28px 32px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 300;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 32px;
	align-items: start;
	border: 1px solid rgba(0,0,0,0.05);
	border-top: none;
}

/* Position relative to header-container */
.chps-header-container {
	position: relative;
}

.chps-menu > li.chps-has-mega:hover > .chps-mega-panel,
.chps-menu > li.chps-has-mega:focus-within > .chps-mega-panel,
.chps-menu > li.chps-has-mega.chps-mega-open > .chps-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Hover bridge */
.chps-menu > li.chps-has-mega > .chps-mega-panel::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}

.chps-mega-col {
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.chps-mega-col-title,
.chps-mega-col > a.chps-mega-link {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid #ececec;
	text-decoration: none;
	pointer-events: none;
}

.chps-mega-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chps-mega-links li {
	margin: 0;
	list-style: none;
}

.chps-mega-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #555;
	text-decoration: none;
	transition: color 0.15s, transform 0.15s;
}

.chps-mega-links a:hover {
	color: #000;
	transform: translateX(2px);
}

.chps-mega-arrow {
	opacity: 0.45;
	font-size: 11px;
}

/* Cards */
.chps-mega-panel.chps-mega-cards {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.chps-mega-card {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chps-mega-card > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #111;
	gap: 10px;
}

.chps-mega-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 14px;
	overflow: hidden;
	background: #f3f3f3;
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.chps-mega-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.chps-mega-card-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100px;
	background: #eee;
}

.chps-mega-card-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chps-caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	opacity: 0.45;
	vertical-align: middle;
}

.chps-menu .ast-header-navigation-arrow,
.chps-menu .dropdown-menu-toggle {
	display: none !important;
}

@media (max-width: 900px) {
	.chps-mega-panel,
	.chps-mega-panel.chps-mega-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Icons */
.chps-header-icons {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.chps-icon-btn {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--chps-primary);
	border-radius: 50%;
	transition: background 0.2s;
	padding: 0;
	text-decoration: none;
}

.chps-icon-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.chps-icon-count {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	background: var(--chps-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0 4px;
}

/* Mini Cart Dropdown */
.chps-cart-wrap {
	position: relative;
}

.chps-mini-cart-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 360px;
	max-height: 480px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: var(--chps-transition);
	z-index: 200;
	overflow: hidden;
}

.chps-mini-cart-dropdown.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.chps-mini-cart-inner {
	max-height: 480px;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
}

.chps-mini-cart-empty {
	text-align: center;
	padding: 32px 16px;
	color: #999;
}

.chps-mini-cart-empty svg {
	margin-bottom: 12px;
	opacity: 0.4;
}

.chps-mini-cart-empty p {
	margin: 0 0 16px;
	font-size: 14px;
}

.chps-mini-cart-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
}

.chps-mini-cart-item:last-child {
	border-bottom: none;
}

.chps-mini-cart-thumb {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8f8f8;
}

.chps-mini-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chps-mini-cart-details {
	flex: 1;
	min-width: 0;
}

.chps-mini-cart-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--chps-primary);
	text-decoration: none;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chps-mini-cart-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.chps-mini-cart-price {
	font-size: 13px;
	color: #666;
}

.chps-qty-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.chps-qty-btn {
	width: 28px;
	height: 28px;
	border: 1.5px solid #ccc;
	background: #f5f5f5;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	color: #111111 !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.chps-qty-btn:hover {
	border-color: var(--chps-primary, #000);
	background: var(--chps-primary, #000);
	color: #ffffff !important;
}

.chps-qty-value {
	font-size: 13px;
	font-weight: 500;
	min-width: 16px;
	text-align: center;
}

.chps-mini-cart-subtotal {
	font-size: 13px;
	font-weight: 600;
}

.chps-mini-cart-remove {
	position: absolute;
	top: 12px;
	right: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	padding: 4px;
	transition: color 0.2s;
}

.chps-mini-cart-remove:hover {
	color: #e53935;
}

.chps-mini-cart-footer {
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

.chps-mini-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-size: 15px;
}

.chps-mini-cart-actions {
	display: flex;
	gap: 10px;
}

.chps-mini-cart-actions .chps-btn {
	flex: 1;
	padding: 12px 16px;
	font-size: 12px;
	text-align: center;
}

/* Search Panel */
.chps-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
	opacity: 0;
	z-index: 150;
}

.chps-search-panel.open {
	max-height: 600px;
	opacity: 1;
}

.chps-search-panel-inner {
	max-width: var(--chps-container);
	margin: 0 auto;
	padding: 24px;
}

.chps-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.chps-search-input {
	flex: 1;
	height: 52px;
	padding: 0 20px;
	border: 1.5px solid #e5e5e5;
	border-radius: 28px;
	font-size: 16px;
	font-family: var(--chps-font);
	background: #fafafa;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}

.chps-search-input:focus {
	border-color: var(--chps-primary);
	background: #fff;
}

.chps-search-submit,
.chps-search-close {
	width: 44px;
	height: 44px;
	border: 1.5px solid #e0e0e0;
	background: #ffffff;
	cursor: pointer;
	color: #111111 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	flex-shrink: 0;
	padding: 0;
}

.chps-search-submit svg,
.chps-search-close svg {
	stroke: #111111 !important;
	color: #111111 !important;
	flex-shrink: 0;
}

.chps-search-submit:hover,
.chps-search-close:hover {
	background: #111111;
	border-color: #111111;
	color: #ffffff !important;
}

.chps-search-submit:hover svg,
.chps-search-close:hover svg {
	stroke: #ffffff !important;
	color: #ffffff !important;
}

/* Search Results */
.chps-search-results {
	margin-top: 16px;
}

.chps-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chps-search-item {
	border-bottom: 1px solid #f0f0f0;
}

.chps-search-item:last-child {
	border-bottom: none;
}

.chps-search-item-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 8px;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	transition: background 0.2s;
}

.chps-search-item-link:hover {
	background: #f8f8f8;
}

.chps-search-item-img {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	background: #f0f0f0;
}

.chps-search-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chps-search-sale {
	position: absolute;
	top: 2px;
	left: 2px;
	background: #e53935;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	padding: 2px 5px;
	border-radius: 4px;
	text-transform: uppercase;
}

.chps-search-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.chps-search-item-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--chps-primary);
}

.chps-search-item-excerpt {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chps-search-item-meta {
	display: flex;
	gap: 10px;
	font-size: 11px;
	color: #999;
}

.chps-search-stock.in-stock {
	color: #2e7d32;
}

.chps-search-stock.out-of-stock {
	color: #c62828;
}

.chps-search-item-price {
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
	text-align: right;
}

.chps-search-view-all {
	padding: 16px 8px 8px;
	text-align: center;
}

.chps-search-view-all a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--chps-primary);
	text-decoration: none;
}

.chps-search-view-all a:hover {
	opacity: 0.7;
}

.chps-search-loading,
.chps-search-empty {
	padding: 24px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* Hamburger */
.chps-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-shrink: 0;
}

.chps-hamburger-line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--chps-primary);
	border-radius: 1px;
	transition: var(--chps-transition);
}

.chps-hamburger.active .chps-hamburger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.chps-hamburger.active .chps-hamburger-line:nth-child(2) {
	opacity: 0;
}

.chps-hamburger.active .chps-hamburger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer – full panel, high z-index */
.chps-mobile-drawer {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
}

.chps-mobile-drawer.open {
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}

.chps-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s;
	cursor: pointer;
}

.chps-mobile-drawer.open .chps-drawer-overlay {
	opacity: 1;
}

.chps-drawer-content {
	position: absolute;
	top: 0;
	left: 0;
	width: min(340px, 90vw);
	height: 100%;
	height: 100dvh;
	background: #ffffff !important;
	transform: translateX(-105%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
	z-index: 2;
}

.chps-mobile-drawer.open .chps-drawer-content {
	transform: translateX(0);
}

.chps-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 16px 16px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
	background: #fff;
}

.chps-drawer-title {
	font-family: var(--chps-font-display);
	font-size: 18px;
	font-weight: 600;
}

.chps-drawer-close {
	width: 44px;
	height: 44px;
	border: none;
	background: #f0f0f0;
	cursor: pointer;
	color: #000000 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
	padding: 0;
}
.chps-drawer-close svg {
	stroke: #000000 !important;
	color: #000000 !important;
	width: 22px;
	height: 22px;
}
.chps-drawer-close:hover {
	background: #e5e5e5;
}

.chps-drawer-nav {
	padding: 12px 0 32px;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
}

.chps-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chps-mobile-menu a {
	display: block;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 500;
	color: var(--chps-primary);
	text-decoration: none;
	transition: background 0.2s;
}

.chps-mobile-menu a:hover {
	background: #f8f8f8;
}

.chps-mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
	background: #fafafa;
}

.chps-mobile-menu .sub-menu a {
	font-size: 14px;
	font-weight: 400;
	padding: 10px 24px;
}

/* Utility */
.chps-no-products {
	text-align: center;
	padding: 40px;
	color: #999;
	font-size: 15px;
}

/* RTL Support */
[dir="rtl"] .chps-nav-prev {
	right: 10px;
	left: auto;
}

[dir="rtl"] .chps-nav-next {
	left: 10px;
	right: auto;
}

[dir="rtl"] .chps-mini-cart-dropdown {
	right: auto;
	left: 0;
}

[dir="rtl"] .chps-drawer-content {
	left: auto;
	right: 0;
	transform: translateX(100%);
}

[dir="rtl"] .chps-mobile-drawer.open .chps-drawer-content {
	transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Product Card Split Layout
   -------------------------------------------------------------------------- */
.chps-product-card-split {
	font-family: var(--chps-font);
	width: 100%;
	max-width: var(--chps-container, 1200px);
	margin: 0 auto;
}

.chps-pcs-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

/* Gallery */
.chps-pcs-gallery {
	position: relative;
	border-radius: var(--chps-radius, 16px);
	overflow: hidden;
	background: #f5f5f5;
}

.chps-pcs-swiper {
	width: 100%;
	overflow: hidden;
	border-radius: var(--chps-radius, 16px);
}

.chps-pcs-slide {
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
}

.chps-pcs-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.chps-pcs-nav {
	position: absolute;
	top: 50%;
	left: 12px;
	right: 12px;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	z-index: 5;
}

.chps-pcs-nav-btn {
	pointer-events: auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, color 0.2s;
}

.chps-pcs-nav-btn:hover {
	background: #111;
	color: #fff;
}

.chps-pcs-thumbs {
	display: flex;
	gap: 8px;
	padding: 12px;
	justify-content: center;
	flex-wrap: wrap;
	background: #fff;
}

.chps-pcs-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: #f0f0f0;
	transition: border-color 0.2s, opacity 0.2s;
	opacity: 0.7;
}

.chps-pcs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.chps-pcs-thumb.is-active,
.chps-pcs-thumb:hover {
	border-color: var(--chps-primary, #000);
	opacity: 1;
}

/* Details */
.chps-pcs-details {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 8px 0;
}

.chps-pcs-title {
	margin: 0;
	font-family: var(--chps-font-display, var(--chps-font));
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--chps-primary, #000);
}

.chps-pcs-title a {
	color: inherit;
	text-decoration: none;
}

.chps-pcs-title a:hover {
	opacity: 0.7;
}

.chps-pcs-rating .star-rating {
	font-size: 14px;
	color: #f5a623;
}

.chps-pcs-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.chps-pcs-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.chps-pcs-regular {
	font-size: 16px;
	font-weight: 500;
	color: #e53935 !important;
	text-decoration: line-through;
}

.chps-pcs-regular .woocommerce-Price-amount,
.chps-pcs-regular .amount {
	color: #e53935 !important;
	text-decoration: line-through;
}

.chps-pcs-sale {
	font-size: 22px;
	font-weight: 700;
	color: #111111 !important;
}

.chps-pcs-sale .woocommerce-Price-amount,
.chps-pcs-sale .amount {
	color: #111111 !important;
}

/* Tax info icon + tooltip */
.chps-pcs-tax-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: help;
}

.chps-pcs-tax-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #888;
	color: #555;
	font-size: 11px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background: #fff;
	transition: border-color 0.2s, color 0.2s;
}

.chps-pcs-tax-info:hover .chps-pcs-tax-icon,
.chps-pcs-tax-info:focus .chps-pcs-tax-icon {
	border-color: var(--chps-primary, #000);
	color: var(--chps-primary, #000);
}

.chps-pcs-tax-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	padding: 8px 12px;
	border-radius: 8px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 20;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.chps-pcs-tax-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #111;
}

.chps-pcs-tax-info:hover .chps-pcs-tax-tooltip,
.chps-pcs-tax-info:focus .chps-pcs-tax-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.chps-pcs-desc {
	font-size: 15px;
	line-height: 1.65;
	color: #555;
}

.chps-pcs-desc p {
	margin: 0 0 0.6em;
}

.chps-pcs-desc p:last-child {
	margin-bottom: 0;
}

.chps-pcs-actions {
	margin-top: 8px;
}

.chps-pcs-atc {
	min-width: 180px;
}

@media (max-width: 900px) {
	.chps-pcs-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.chps-pcs-title {
		font-size: 22px;
	}

	.chps-pcs-sale {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.chps-pcs-thumb {
		width: 44px;
		height: 44px;
	}

	.chps-pcs-title {
		font-size: 20px;
	}
}

/* Rating row – stars left, review count next to them */
.chps-pcs-rating-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

.chps-pcs-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
}

.chps-star {
	font-size: 16px;
	line-height: 1;
}

.chps-star-full {
	color: #f5a623;
}

.chps-star-half {
	color: #f5a623;
	opacity: 0.55;
}

.chps-star-empty {
	color: #ddd;
}

.chps-pcs-review-count {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	font-family: inherit;
}

.chps-pcs-review-count:hover {
	color: var(--chps-primary, #000);
}

.chps-pcs-no-reviews {
	text-decoration: none;
	cursor: default;
	color: #999;
}

/* Benefit features grid */
.chps-pcs-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 4px;
	padding: 16px 0 4px;
}

.chps-pcs-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.chps-pcs-feature-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid #e5e5e5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fafafa;
}

.chps-pcs-feature-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.chps-pcs-feature-placeholder {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ddd;
}

.chps-pcs-feature-label {
	font-size: 12px;
	font-weight: 500;
	color: #333;
	line-height: 1.3;
}

/* Reviews modal – compact, not full page */
.chps-reviews-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s, visibility 0.25s;
}

.chps-reviews-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.chps-reviews-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.chps-reviews-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: min(480px, 70vh);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.chps-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.chps-reviews-header strong {
	font-size: 16px;
	font-weight: 600;
}

.chps-reviews-close {
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111;
	padding: 0;
}

.chps-reviews-close:hover {
	background: #111;
	color: #fff;
}

.chps-reviews-list {
	overflow-y: auto;
	padding: 8px 0;
	/* ~4 review items visible; rest scroll */
	max-height: calc(min(480px, 70vh) - 60px);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.chps-review-item {
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f0;
}

.chps-review-item:last-child {
	border-bottom: none;
}

.chps-review-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 13px;
}

.chps-review-author {
	font-weight: 600;
	color: #111;
}

.chps-review-date {
	color: #999;
	font-size: 12px;
}

.chps-review-stars {
	margin-bottom: 6px;
}

.chps-review-stars .chps-star {
	font-size: 13px;
}

.chps-review-text {
	font-size: 13px;
	line-height: 1.55;
	color: #444;
}

.chps-review-text p {
	margin: 0 0 0.4em;
}

.chps-review-text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.chps-pcs-features {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.chps-pcs-features {
		grid-template-columns: repeat(2, 1fr);
	}

	.chps-reviews-panel {
		max-height: 75vh;
	}
}




/* Safety: icons always visible */
.chps-header-icons {
	display: flex !important;
	align-items: center;
	gap: 4px;
	flex-shrink: 0 !important;
	position: relative;
	z-index: 20;
}
.chps-cart-wrap {
	display: inline-flex !important;
	position: relative;
	z-index: 30;
}
.chps-icon-btn {
	visibility: visible !important;
	opacity: 1 !important;
}
.chps-mini-cart-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: #f0f0f0;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	z-index: 5;
	padding: 0;
}
.chps-mini-cart-close svg { stroke: #000; }
