/* Cart Drawer Variables */
:root {
	--gsc-bg-color: #f7f5f0;
	--gsc-text-main: #333333;
	--gsc-text-light: #888888;
	--gsc-text-accent: #8b7a66;
	--gsc-border-color: #e5e0d8;
	--gsc-btn-green: #1d7969;
	--gsc-btn-green-hover: #155c4f;
}

/* Overlay */
.gsc-cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Drawer Panel */
.gsc-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 80%;
	max-width: 430px;
	height: 100%;
	/* Changed from 100vh for better mobile compat */
	background-color: var(--gsc-bg-color);
	z-index: 999999;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	display: flex;
	flex-direction: column;
	font-family: 'Inter', sans-serif;
	color: var(--gsc-text-main);
	box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	/* Ensure panel itself doesn't scroll */
}

/* Open State */
.gsc-cart-container.gsc-open .gsc-cart-overlay {
	opacity: 1;
	visibility: visible;
}

.gsc-cart-container.gsc-open .gsc-cart-panel {
	transform: translateX(0);
}

/* Header */
.gsc-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 20px;
	border-bottom: 1px solid var(--gsc-border-color);
	flex-shrink: 0;
}

.gsc-cart-title {
	font-family: 'Inter' !important;
	font-weight: 300;
	font-size: 15.9px !important;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: var(--gsc-text-accent);
	margin: 0;
}

.gsc-cart-close {
	background: none;
	border: none;
	font-size: 24px;
	color: var(--gsc-text-accent);
	cursor: pointer;
	line-height: 1;
	font-weight: 300;
	padding: 0;
}

/* Items */
.gsc-cart-items {
	flex-grow: 1;
	overflow-y: auto;
}

.gsc-cart-item {
	display: flex;
	padding: 20px;
	border-bottom: 1px solid #DDD8CE;
}

.gsc-item-image-wrapper {
	width: 80px;
	height: 100px;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.gsc-item-image-wrapper img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gsc-item-details {
	margin-left: 16px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	overflow: hidden;
}

.gsc-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.gsc-item-header > div {
	min-width: 0;
	width: 100%;
}

.gsc-item-title {

	margin-bottom: 4px;
	font-family: 'Work Sans';
	font-weight: 500;
	font-size: 14px;
	line-height: 100%;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gsc-item-title br {
	display: none;
}

.gsc-item-variant {
	font-family: 'Work Sans';
	font-weight: 300;
	font-size: 11px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: left;
	vertical-align: middle;
}

.gsc-item-price {
	font-size: 14px;
	color: #957B5E;
	font-family: 'Inter';
	font-weight: 300;
	font-size: 11.1px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;

}

.gsc-item-actions {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 16px;
}

/* Qty Selector */
.gsc-qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid #DDD8CE;
	background-color: var(--gsc-bg-color);
	width: 90px;
	height: 32px;
}

.gsc-qty-btn {
	background: none;
	border: none;
	width: 30px;
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;

	font-family: 'Work Sans';
	font-weight: 300;
	font-size: 13px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: #9C978D;

}

.gsc-qty-btn:hover {
	color: var(--gsc-text-main);
}

.gsc-qty-input {
	width: 30px;
	height: 100%;
	border: none !important;
	background: none !important;
	text-align: center;

	color: #000000;
	padding: 0 !important;
	pointer-events: none;
	font-family: 'Work Sans';
	font-weight: 300;
	font-style: Light;
	font-size: 13px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
}

/* Remove Btn */
.gsc-remove-btn {
	background: none;
	border: none;
	text-decoration: underline;
	cursor: pointer;

	padding: 0;
	color: #9C978D;

	font-family: 'Work Sans';
	font-weight: 300;
	font-size: 11px;
	line-height: 100%;
	letter-spacing: 0%;

}

.gsc-remove-btn:hover {
	color: var(--gsc-text-main);
}

/* Footer */
.gsc-cart-footer {
	padding: 24px 20px;
	background-color: var(--gsc-bg-color);
	border-top: 1px solid var(--gsc-border-color);
	flex-shrink: 0;
}

.gsc-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.gsc-subtotal-label {
	font-size: 16px;
	font-weight: 400;
}

.gsc-subtotal-value {
	font-size: 16px;
	color: var(--gsc-text-accent);
}

.gsc-subtotal-label {
	font-family: 'Work Sans';
	font-weight: 300;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: #000000;
}

span#gsc-cart-subtotal {
	font-family: 'Inter';
	font-weight: 300;
	font-size: 12.5px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: #957B5E;
}

.gsc-shipping-note {
	font-family: 'Work Sans';
	font-weight: 300;
	font-size: 11px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: #9C978D;
}

/* Buttons */
.gsc-btn {
	display: block;
	width: 100%;
	padding: 8px;
	text-align: center;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.gsc-btn-primary {
	background-color: #1D7969 !important;
	color: white !important;

	font-family: 'Work Sans';
	font-weight: 500;
	font-size: 11px;
	line-height: 100%;
	letter-spacing: 0.88px;
	text-align: center;
	vertical-align: middle;
	text-transform: uppercase;


}

.gsc-btn-primary:hover {
	background-color: var(--gsc-btn-green-hover) !important;
}

.gsc-btn-secondary {
	background-color: transparent !important;
	color: var(--gsc-text-main) !important;
	border-color: #323232 !important;
	font-family: 'Work Sans';
	font-weight: 300;

	font-size: 11px;

	line-height: 100%;
	letter-spacing: 0.88px;
	text-align: center;
	vertical-align: middle;
	text-transform: uppercase;

}

.gsc-btn-secondary:hover {
	background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Empty Cart State */
.gsc-empty-cart {
	text-align: center;
	padding: 40px 20px;
	color: var(--gsc-text-light);
	font-weight: 300;
}

.gsc-cart-trigger.cart-content:after {
    content: attr(data-count);
    position: absolute;
    width: 18px;
    height: 18px;
    background: #957a5d;
    top: -1px;
    right: -10px;
    border-radius: 1rem;
    color: #fff;
    font-size: 10px;
    margin: 0px auto;
    text-align: center;
}