/* =============================================================
   WC Cart Special Offers – frontend.css
   Brand: Triani (triani.co.in)
   Palette: Cream #F7F4EF | Charcoal #2C2C2C | Gold #B8975A
             Warm ivory #FAF8F4 | Sage accent #7A8C72
   Font: Cormorant Garamond (display) + DM Sans (body) – matching site
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ---------- ROOT TOKENS ---------- */
:root {
	--wcso-cream:     #F7F4EF;
	--wcso-ivory:     #FAF8F4;
	--wcso-charcoal:  #2C2C2C;
	--wcso-mid:       #6B6B6B;
	--wcso-gold:      #B8975A;
	--wcso-gold-light:#D4B97A;
	--wcso-sage:      #7A8C72;
	--wcso-border:    #E2DDD5;
	--wcso-radius:    12px;
	--wcso-shadow:    0 4px 24px rgba(44,44,44,.08);
}

/* ---------- WRAPPER ---------- */
.wcso-wrapper {
	background: var(--wcso-ivory);
	border: 1px solid var(--wcso-border);
	border-radius: var(--wcso-radius);
	padding: 22px 20px 20px;
	margin: 0 0 28px;
	box-shadow: var(--wcso-shadow);
	animation: wcsoFadeUp .45s cubic-bezier(.22,1,.36,1) both;
	font-family: 'DM Sans', sans-serif;
}

@keyframes wcsoFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HEADER ---------- */
.wcso-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wcso-border);
}

.wcso-icon {
	width: 20px;
	height: 20px;
	color: var(--wcso-gold);
	flex-shrink: 0;
}

.wcso-header-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--wcso-charcoal);
	letter-spacing: .3px;
	line-height: 1;
}

/* ---------- CARD ---------- */
.wcso-card {
	background: var(--wcso-cream);
	border: 1px solid var(--wcso-border);
	border-radius: 10px;
	padding: 16px 16px 14px;
	position: relative;
	overflow: hidden;
}

/* Subtle corner accent */
.wcso-card::before {
	content: '';
	position: absolute;
	top: 0; right: 0;
	width: 80px; height: 80px;
	background: radial-gradient(circle at top right, rgba(184,151,90,.14) 0%, transparent 70%);
	pointer-events: none;
}

/* ---------- CARD TOP ROW ---------- */
.wcso-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.wcso-card-label {
	font-family: 'Cormorant Garamond', serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--wcso-charcoal);
	letter-spacing: -.2px;
	line-height: 1.1;
}

.wcso-badge {
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.2px;
	color: var(--wcso-gold);
	background: transparent;
	border: 1px solid var(--wcso-gold-light);
	border-radius: 20px;
	padding: 3px 10px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- PROGRESS BAR ---------- */
.wcso-progress-bar {
	height: 3px;
	background: var(--wcso-border);
	border-radius: 100px;
	margin-bottom: 16px;
	overflow: visible;
	position: relative;
}

.wcso-progress-fill {
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--wcso-gold) 0%, var(--wcso-gold-light) 100%);
	border-radius: 100px;
	position: relative;
}

.wcso-progress-fill::after {
	content: '✦';
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wcso-gold);
	font-size: 9px;
	line-height: 1;
}

/* ---------- PRODUCTS TRACK ---------- */
.wcso-products-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	margin-bottom: 16px;
}

.wcso-products-track::-webkit-scrollbar {
	display: none;
}

/* ---------- PRODUCT ITEM ---------- */
.wcso-product-item {
	flex-shrink: 0;
	width: 92px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	scroll-snap-align: start;
	transition: transform .2s ease;
}

.wcso-product-item:hover {
	transform: translateY(-3px);
	text-decoration: none;
}

.wcso-product-img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wcso-border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 7px;
	transition: box-shadow .2s ease;
}

.wcso-product-item:hover .wcso-product-img {
	box-shadow: 0 4px 16px rgba(184,151,90,.2);
}

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

.wcso-product-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: var(--wcso-mid);
	text-align: center;
	line-height: 1.3;
	margin-bottom: 5px;
	max-width: 88px;
}

.wcso-product-price {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--wcso-charcoal);
	border-radius: 5px;
	padding: 3px 8px;
	letter-spacing: .2px;
}

/* ---------- CTA BUTTON ---------- */
.wcso-cta-btn {
	display: block;
	width: 100%;
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--wcso-charcoal);
	background: transparent;
	border: 1.5px solid var(--wcso-charcoal);
	border-radius: 6px;
	padding: 10px 0;
	text-decoration: none;
	transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.wcso-cta-btn:hover,
.wcso-cta-btn:focus {
	background: var(--wcso-charcoal);
	color: var(--wcso-ivory);
	text-decoration: none;
	outline: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
	.wcso-wrapper {
		padding: 16px 14px 14px;
		border-radius: 10px;
	}

	.wcso-header-title {
		font-size: 16px;
	}

	.wcso-card-label {
		font-size: 17px;
	}

	.wcso-product-img {
		width: 72px;
		height: 72px;
	}

	.wcso-product-item {
		width: 80px;
	}
}
