/**
 * KOSMO OIL — Single Product Page Styles (Gallery Zoom, Pack Selector, Tabs, Reviews & Sticky ATC)
 */

.kosmo-single-product {
	padding: 48px 0 88px;
}

.kosmo-single-product__grid {
	display: grid;
	grid-template-columns: 0.96fr 1.04fr;
	gap: 56px;
	align-items: start;
}

/* LEFT: Product Gallery & Interactive Zoom */
.kosmo-product-gallery {
	position: sticky;
	top: 102px;
}

.kosmo-product-gallery__stage {
	position: relative;
	background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f3efe2 100%);
	border-radius: var(--kosmo-radius-lg);
	border: 1px solid var(--kosmo-border);
	padding: 40px 28px;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: zoom-in;
	box-shadow: var(--kosmo-shadow-sm);
}

.kosmo-product-gallery__badges {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.kosmo-product-gallery__main-img {
	max-height: 440px;
	width: auto;
	object-fit: contain;
	transition: transform 0.25s ease-out;
	filter: drop-shadow(0 18px 30px rgba(53, 37, 30, 0.18));
}

.kosmo-product-gallery__stage.is-zoomed .kosmo-product-gallery__main-img {
	transform: scale(1.65);
}

.kosmo-product-gallery__zoom-hint {
	position: absolute;
	bottom: 14px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.76rem;
	color: var(--kosmo-muted);
	background: rgba(255, 253, 247, 0.88);
	padding: 5px 12px;
	border-radius: var(--kosmo-radius-pill);
	pointer-events: none;
}

.kosmo-product-gallery__thumbs {
	margin-top: 16px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.kosmo-gallery-thumb {
	width: 82px;
	height: 92px;
	padding: 8px;
	border-radius: var(--kosmo-radius-sm);
	border: 2px solid var(--kosmo-border);
	background: var(--kosmo-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.25s;
}

.kosmo-gallery-thumb.is-active,
.kosmo-gallery-thumb:hover {
	border-color: var(--kosmo-green-primary);
}

.kosmo-gallery-thumb img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

/* RIGHT: Product Summary & Conversion Controls */
.kosmo-product-summary__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.kosmo-product-summary__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.86rem;
	color: var(--kosmo-dark);
}

.kosmo-stars {
	color: var(--kosmo-golden);
	letter-spacing: 1px;
}

.kosmo-product-summary__title {
	font-size: clamp(1.9rem, 3vw, 2.55rem);
	margin-bottom: 16px;
}

.kosmo-product-summary__price-box {
	background: var(--kosmo-white);
	padding: 18px 22px;
	border-radius: var(--kosmo-radius-md);
	border: 1px solid var(--kosmo-border);
	margin-bottom: 20px;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
}

.kosmo-summary-price-sale {
	font-family: var(--kosmo-font-heading);
	font-size: 2.15rem;
	font-weight: 700;
	color: var(--kosmo-green-primary);
	line-height: 1;
}

.kosmo-summary-price-regular {
	font-size: 1.15rem;
	color: var(--kosmo-muted);
}

.kosmo-summary-save-badge {
	background: rgba(168, 91, 62, 0.15);
	color: var(--kosmo-green-primary);
	padding: 5px 12px;
	border-radius: var(--kosmo-radius-pill);
	font-size: 0.82rem;
	font-weight: 700;
}

.kosmo-summary-tax-note {
	width: 100%;
	font-size: 0.8rem;
	color: var(--kosmo-muted);
}

.kosmo-product-summary__short-desc {
	font-size: 1rem;
	color: var(--kosmo-dark);
	margin-bottom: 18px;
}

.kosmo-product-summary__highlights {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.kosmo-product-summary__highlights li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.92rem;
	font-weight: 500;
}

.kosmo-hl-check {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(53, 37, 30, 0.1);
	color: var(--kosmo-green-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Pack Size Selector Pills */
.kosmo-pack-selector {
	margin-bottom: 24px;
}

.kosmo-pack-selector__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 0.9rem;
}

.kosmo-pack-selector__pills {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
	gap: 10px;
}

.kosmo-pack-pill {
	padding: 12px 14px;
	border-radius: var(--kosmo-radius-md);
	border: 1.5px solid var(--kosmo-border-strong);
	background: var(--kosmo-white);
	display: flex;
	flex-direction: column;
	gap: 2px;
	transition: all 0.25s var(--kosmo-ease);
}

.kosmo-pack-pill:hover,
.kosmo-pack-pill.is-active {
	border-color: var(--kosmo-green-primary);
	background: rgba(53, 37, 30, 0.05);
	box-shadow: 0 0 0 1px var(--kosmo-green-primary);
}

.kosmo-pack-pill__size {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--kosmo-dark);
}

.kosmo-pack-pill__price {
	font-size: 1.05rem;
	color: var(--kosmo-green-primary);
}

/* Quantity Stepper & Purchase Buttons */
.kosmo-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--kosmo-border-strong);
	border-radius: var(--kosmo-radius-pill);
	background: var(--kosmo-white);
	overflow: hidden;
}

.kosmo-qty-btn {
	width: 38px;
	height: 44px;
	border: none;
	background: transparent;
	color: var(--kosmo-green-primary);
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
}

.kosmo-qty-input {
	width: 44px;
	border: none;
	background: transparent;
	text-align: center;
	font-family: var(--kosmo-font-body);
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--kosmo-dark);
	-moz-appearance: textfield;
}

.kosmo-qty-stepper--sm .kosmo-qty-btn {
	width: 28px;
	height: 30px;
	font-size: 0.95rem;
}

.kosmo-qty-stepper--sm .kosmo-qty-input {
	width: 32px;
	font-size: 0.85rem;
}

.kosmo-purchase-form__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.kosmo-btn-wishlist-box {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1.5px solid var(--kosmo-border-strong);
	background: var(--kosmo-white);
	color: var(--kosmo-green-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s;
}

.kosmo-btn-wishlist-box:hover,
.kosmo-btn-wishlist-box.is-active {
	background: var(--kosmo-green-primary);
	color: var(--kosmo-golden);
	border-color: var(--kosmo-green-primary);
}

/* Delivery Box */
.kosmo-delivery-box {
	background: var(--kosmo-white);
	border-radius: var(--kosmo-radius-md);
	border: 1px solid var(--kosmo-border);
	padding: 18px 20px;
	display: grid;
	gap: 14px;
	margin-bottom: 20px;
}

.kosmo-delivery-box__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.kosmo-delivery-box__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--kosmo-cream);
	color: var(--kosmo-green-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.kosmo-delivery-box__item strong {
	display: block;
	font-size: 0.92rem;
	color: var(--kosmo-green-primary);
}

.kosmo-delivery-box__item p {
	font-size: 0.82rem;
	color: var(--kosmo-muted);
	margin: 2px 0 0;
}

.kosmo-product-summary__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 0.82rem;
	color: var(--kosmo-muted);
	padding-top: 14px;
	border-top: 1px solid var(--kosmo-border);
}

/* Product Information Tabs */
.kosmo-product-tabs-wrap {
	margin-top: 68px;
	padding-top: 56px;
	border-top: 1px solid var(--kosmo-border);
}

.kosmo-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--kosmo-border);
	padding-bottom: 14px;
}

.kosmo-tab-btn {
	padding: 11px 20px;
	border-radius: var(--kosmo-radius-pill);
	border: 1px solid var(--kosmo-border);
	background: var(--kosmo-white);
	color: var(--kosmo-dark);
	font-family: var(--kosmo-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s;
}

.kosmo-tab-btn.is-active,
.kosmo-tab-btn:hover {
	background: var(--kosmo-green-primary);
	color: var(--kosmo-white);
	border-color: var(--kosmo-green-primary);
}

.kosmo-tab-panel {
	display: none;
	background: var(--kosmo-white);
	padding: 36px;
	border-radius: var(--kosmo-radius-lg);
	border: 1px solid var(--kosmo-border);
}

.kosmo-tab-panel.is-active {
	display: block;
}

.kosmo-tab-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
}

.kosmo-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.kosmo-specs-table th,
.kosmo-specs-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--kosmo-border);
	text-align: left;
	font-size: 0.92rem;
}

.kosmo-specs-table th {
	width: 40%;
	color: var(--kosmo-green-primary);
	background: var(--kosmo-cream);
	font-weight: 600;
}

.kosmo-ingredient-box {
	padding: 18px 22px;
	background: var(--kosmo-cream);
	border-left: 4px solid var(--kosmo-golden);
	border-radius: var(--kosmo-radius-sm);
	font-weight: 500;
}

/* Customer Reviews inside Tab */
.kosmo-reviews-layout {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
}

.kosmo-review-item {
	padding: 18px 20px;
	background: var(--kosmo-cream);
	border-radius: var(--kosmo-radius-md);
	margin-bottom: 14px;
}

.kosmo-review-item__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.kosmo-verified-pill {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--kosmo-green-secondary);
	background: var(--kosmo-white);
	padding: 2px 8px;
	border-radius: var(--kosmo-radius-pill);
}

.kosmo-review-stars {
	color: var(--kosmo-golden);
	margin-left: auto;
}

.kosmo-related-products {
	margin-top: 68px;
}

/* Sticky Mobile Add to Cart Bar */
.kosmo-sticky-atc-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--kosmo-white);
	border-top: 1px solid var(--kosmo-border-strong);
	padding: 10px 16px;
	z-index: 990;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-shadow: 0 -8px 24px rgba(53, 37, 30, 0.12);
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kosmo-sticky-atc-bar.is-visible {
	transform: translateY(0);
}

.kosmo-sticky-atc-bar__info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.kosmo-sticky-atc-bar__info img {
	width: 38px;
	height: 46px;
	object-fit: contain;
	flex-shrink: 0;
}

.kosmo-sticky-atc-bar__info strong {
	display: block;
	font-size: 0.86rem;
	color: var(--kosmo-green-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 190px;
}

.kosmo-sticky-atc-bar__info span {
	font-size: 0.78rem;
	color: var(--kosmo-muted);
}


/* 1:1 Square Single Product Gallery Stage */
.kosmo-product-gallery__stage {
	background: #E9D3BA;
	padding: 24px;
	min-height: 0;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kosmo-product-gallery__main-img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 14px 24px rgba(53, 37, 30, 0.16));
}

.kosmo-gallery-thumb {
	width: 82px;
	height: 82px;
	padding: 4px;
	background: #E9D3BA;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kosmo-gallery-thumb img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}