/**
 * ICCHE Frontend Interactive Product Options Styles
 */

/* Completely hide duplicate customization dropdown box and standard variation tables */
.iche-customization-box,
.iche-product-interactive-options ~ table.variations,
.iche-product-interactive-options ~ .variations,
form.variations_form:has(.iche-product-interactive-options) table.variations,
form.cart:has(.iche-product-interactive-options) table.variations {
	display: none !important;
}

.iche-product-interactive-options {
	width: 100% !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
	display: block !important;
	clear: both !important;
	order: 0 !important;
	margin: 16px 0 20px 0;
	padding: 16px 0;
	border-top: 1px dashed var(--iche-color-border, #E8E2D9);
	border-bottom: 1px dashed var(--iche-color-border, #E8E2D9);
	font-family: var(--iche-font-body, 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif);
	box-sizing: border-box !important;
}

.iche-options-group {
	margin-bottom: 20px;
}

.iche-options-group:last-child {
	margin-bottom: 0;
}

.iche-opt-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	color: var(--iche-color-charcoal, #2D2926);
	margin-bottom: 10px;
}

.iche-selected-val {
	color: var(--iche-color-rose, #C87D77);
	font-weight: 700;
	font-size: 14px;
}

.iche-badge-fee {
	color: var(--iche-color-rose-dark, #A85B55);
	font-weight: 600;
	font-size: 13px;
	margin-left: 6px;
}

/* PILLS (AGE, SIZE, ART SIZE) */
.iche-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iche-pill-btn {
	background: #fff;
	border: 1.5px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-sm, 6px);
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--iche-color-charcoal, #2D2926);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.iche-pill-btn:hover {
	border-color: var(--iche-color-rose, #C87D77);
	background: var(--iche-color-rose-light, #FDF2F0);
}

.iche-pill-btn.active {
	border-color: var(--iche-color-rose, #C87D77);
	background: var(--iche-color-rose-light, #FDF2F0);
	color: var(--iche-color-rose-dark, #A85B55);
	box-shadow: 0 0 0 1px var(--iche-color-rose, #C87D77);
}

.iche-pill-btn.is-out-of-stock {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
	background: #f5f5f5;
}

.iche-pill-price {
	font-size: 11px;
	color: var(--iche-color-muted, #7A746E);
	font-weight: 500;
}

.iche-pill-btn.active .iche-pill-price {
	color: var(--iche-color-rose, #C87D77);
}

/* COLOR SWATCHES */
.iche-swatches-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.iche-swatch-btn {
	background: #fff;
	border: 1.5px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-full, 9999px);
	padding: 5px 12px 5px 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.iche-swatch-btn:hover {
	border-color: var(--iche-color-rose, #C87D77);
}

.iche-swatch-btn.active {
	border-color: var(--iche-color-rose, #C87D77);
	box-shadow: 0 0 0 2px rgba(200, 125, 119, 0.25);
	background: var(--iche-color-rose-light, #FDF2F0);
}

.iche-swatch-circle {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.iche-swatch-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--iche-color-charcoal, #2D2926);
}

/* PRESS-ON NAILS DESIGN GRID */
.iche-design-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

.iche-design-card {
	background: #fff;
	border: 1.5px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-md, 12px);
	padding: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.iche-design-card:hover {
	border-color: var(--iche-color-rose, #C87D77);
	transform: translateY(-2px);
	box-shadow: var(--iche-shadow-card, 0 4px 20px rgba(45, 41, 38, 0.06));
}

.iche-design-card.active {
	border-color: var(--iche-color-rose, #C87D77);
	box-shadow: 0 0 0 2px var(--iche-color-rose, #C87D77);
	background: var(--iche-color-rose-light, #FDF2F0);
}

.iche-design-thumb {
	width: 100%;
	height: 90px;
	border-radius: var(--iche-radius-sm, 6px);
	background: var(--iche-color-sand, #F7F3EE);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.iche-design-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.iche-design-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--iche-color-charcoal, #2D2926);
	display: block;
	line-height: 1.3;
}

.iche-design-price {
	font-size: 12px;
	color: var(--iche-color-rose, #C87D77);
	font-weight: 700;
	margin-top: 3px;
	display: block;
}

/* SIZE HEADER & MODAL TRIGGER */
.iche-size-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.iche-btn-open-sizechart {
	background: none;
	border: none;
	color: var(--iche-color-rose, #C87D77);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.iche-btn-open-sizechart:hover {
	color: var(--iche-color-rose-dark, #A85B55);
}

/* SAREE SPEC BADGES */
.iche-saree-spec-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.iche-spec-pill {
	display: inline-block;
	background: var(--iche-color-sand, #F7F3EE);
	border: 1px solid var(--iche-color-border, #E8E2D9);
	padding: 4px 12px;
	border-radius: var(--iche-radius-full, 9999px);
	font-size: 12px;
	color: var(--iche-color-charcoal-light, #4A4541);
}

/* ART & PAINTING SPECS */
.iche-art-specs-card {
	width: 100% !important;
	box-sizing: border-box !important;
	background: var(--iche-color-sand, #F7F3EE);
	border: 1px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-md, 12px);
	padding: 14px 18px;
	margin-bottom: 16px;
}

.iche-art-spec-title {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-art-specs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px;
	font-size: 13px;
}

.iche-art-unique-badge {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--iche-color-border, #E8E2D9);
	color: var(--iche-color-gold, #C59B27);
	font-weight: 700;
	font-size: 13px;
}

/* Hide redundant quantity input for unique 1-of-1 art pieces */
form.cart:has(.iche-art-unique-badge) .quantity,
.woocommerce div.product.archetype-art_painting form.cart:has(.iche-art-unique-badge) .quantity,
.iche-art-unique-badge ~ .quantity {
	display: none !important;
}

/* COMBO BUILDER FRONTEND */
.iche-combo-builder-wrapper {
	background: #fff;
	border: 1px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-md, 12px);
	padding: 20px;
	margin: 15px 0 25px 0;
	box-shadow: var(--iche-shadow-card, 0 4px 20px rgba(45, 41, 38, 0.06));
}

.iche-combo-header-pill {
	display: inline-block;
	background: var(--iche-color-blush, #F9ECE8);
	color: var(--iche-color-rose-dark, #A85B55);
	font-weight: 700;
	font-size: 14px;
	padding: 6px 16px;
	border-radius: var(--iche-radius-full, 9999px);
	margin-bottom: 10px;
}

.iche-combo-instruction {
	font-size: 13px;
	color: var(--iche-color-muted, #7A746E);
	margin-bottom: 20px;
}

.iche-combo-slot-card-frontend {
	border: 1px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-md, 12px);
	padding: 16px;
	margin-bottom: 16px;
	background: var(--iche-color-ivory, #FDFBF7);
}

.iche-combo-slot-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--iche-color-border, #E8E2D9);
}

.iche-slot-number {
	width: 24px;
	height: 24px;
	background: var(--iche-color-rose, #C87D77);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}

.iche-slot-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-combo-single-product-row {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	padding: 10px 14px;
	border-radius: var(--iche-radius-sm, 6px);
	border: 1px solid var(--iche-color-border, #E8E2D9);
	margin-bottom: 14px;
}

.iche-combo-prod-thumb img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.iche-combo-prod-meta strong {
	display: block;
	font-size: 14px;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-combo-item-price {
	font-size: 13px;
	color: var(--iche-color-rose, #C87D77);
	font-weight: bold;
}

.iche-combo-prod-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.iche-combo-prod-btn {
	background: #fff;
	border: 1.5px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-sm, 6px);
	padding: 8px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
}

.iche-combo-prod-btn.active {
	border-color: var(--iche-color-rose, #C87D77);
	background: var(--iche-color-rose-light, #FDF2F0);
	box-shadow: 0 0 0 1px var(--iche-color-rose, #C87D77);
}

.iche-combo-prod-btn .thumb img {
	width: 100%;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 6px;
}

.iche-combo-prod-btn .title {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--iche-color-charcoal, #2D2926);
	line-height: 1.2;
	margin-bottom: 4px;
}

.iche-combo-prod-btn .price {
	font-size: 11px;
	color: var(--iche-color-rose, #C87D77);
	font-weight: bold;
}

.iche-combo-attr-row {
	margin-bottom: 10px;
}

.iche-combo-attr-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--iche-color-charcoal-light, #4A4541);
	margin-bottom: 6px;
}

.iche-combo-opt-pill {
	background: #fff;
	border: 1px solid var(--iche-color-border, #E8E2D9);
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.iche-combo-opt-pill.active {
	background: var(--iche-color-rose, #C87D77);
	border-color: var(--iche-color-rose, #C87D77);
	color: #fff;
}

.iche-combo-opt-swatch {
	background: #fff;
	border: 1px solid var(--iche-color-border, #E8E2D9);
	border-radius: 9999px;
	padding: 3px 10px 3px 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 12px;
}

.iche-combo-opt-swatch.active {
	border-color: var(--iche-color-rose, #C87D77);
	background: var(--iche-color-rose-light, #FDF2F0);
}

.iche-combo-opt-swatch .circle {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
}

/* COMBO PRICING SUMMARY */
.iche-combo-summary-box {
	background: linear-gradient(135deg, #FDFBF7, #F7F3EE);
	border: 1.5px solid var(--iche-color-border, #E8E2D9);
	border-radius: var(--iche-radius-md, 12px);
	padding: 16px 20px;
	margin-top: 20px;
}

.iche-combo-summary-header h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--iche-color-charcoal-light, #4A4541);
}

.iche-final-total-row {
	border-top: 1px dashed var(--iche-color-border, #E8E2D9);
	padding-top: 10px;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-final-price-text {
	color: var(--iche-color-rose, #C87D77);
	font-size: 18px;
}

/* SIZE CHART MODAL */
.iche-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(45, 41, 38, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.iche-modal-container {
	background: #fff;
	border-radius: var(--iche-radius-md, 12px);
	max-width: 600px;
	width: 100%;
	box-shadow: var(--iche-shadow-hover, 0 8px 30px rgba(45, 41, 38, 0.10));
	overflow: hidden;
	animation: icheModalPop 0.25s ease-out;
}

@keyframes icheModalPop {
	from { transform: scale(0.95); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.iche-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--iche-color-border, #E8E2D9);
	background: var(--iche-color-sand, #F7F3EE);
}

.iche-modal-header h3 {
	margin: 0;
	font-size: 16px;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: var(--iche-color-muted, #7A746E);
	cursor: pointer;
}

.iche-modal-body {
	padding: 20px;
}

.iche-sizechart-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 13px;
}

.iche-sizechart-table th, 
.iche-sizechart-table td {
	border: 1px solid var(--iche-color-border, #E8E2D9);
	padding: 10px 12px;
	text-align: center;
}

.iche-sizechart-table th {
	background: var(--iche-color-sand, #F7F3EE);
	font-weight: 700;
	color: var(--iche-color-charcoal, #2D2926);
}

.iche-sizechart-table tbody tr:hover {
	background: var(--iche-color-rose-light, #FDF2F0);
}

.iche-modal-footer-hint {
	margin-top: 15px;
	font-size: 12px;
	color: var(--iche-color-muted, #7A746E);
}

