/* =============================================================
   Bag Preview – Cart Dropdown Styles
   ============================================================= */

.gs-bag-preview {
	position: fixed;
	z-index: 999999;
	top: 10vh;
	right: 0;
	width: min(520px, 90vw);
	max-width: 100vw;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	font-weight: 300;
    font-family: 'Gotham', sans-serif !important;
	color: #1a1a1a;
	border-radius: 3px 0 0 3px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;

	visibility: hidden;
	opacity: 0;
	transform: translateX(10px);
	transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s linear 0.22s;
	pointer-events: none;
}

.gs-bag-preview--visible {
	visibility: visible;
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s linear 0s;
	pointer-events: auto;
}

.gs-bag-preview__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #efefef;
}

.gs-bag-preview__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gs-bag-preview__header-count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #4a8b74;
}

.gs-bag-preview__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #888;
	padding: 0 2px;
}

.gs-bag-preview__close:hover { color: #111; }

.gs-bag-preview__body {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.gs-bag-preview__items {
	/* Scroll only when items exceed viewport */
	max-height: none;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	background: #f6f6f6;
	border-bottom: 1px solid #ececec;
}

.gs-bag-preview__item {
	display: grid;
	grid-template-columns: 56px 1fr 110px;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #e9e9e9;
	background: transparent;
}

.gs-bag-preview__item:last-child { border-bottom: none; }

.gs-bag-preview__item-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 3px;
	background: #f5f5f5;
}

.gs-bag-preview__item-mid { min-width: 0; }

.gs-bag-preview__item-right {
	text-align: right;
	white-space: nowrap;
}

.gs-bag-preview__item-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #111 !important;
	text-decoration: none !important;
	margin-bottom: 3px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gs-bag-preview__item-desc {
	font-size: 12px;
	color: #666;
	line-height: 1.35;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gs-bag-preview__item-meta {
	font-size: 12px;
	color: #777;
	margin-bottom: 4px;
}

.gs-bag-preview__item-price {
	font-size: 13px;
	font-weight: 700;
}

.gs-bag-preview__item-qty {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	margin-top: 6px;
	text-transform: uppercase;
}

.gs-bag-preview__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-top: 1px solid #efefef;
	background: #fff;
}

.gs-bag-preview__summary-left {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #333;
}

.gs-bag-preview__summary-right {
	font-size: 13px;
	font-weight: 800;
}

.gs-bag-preview__footer {
	padding: 12px 14px;
	background: #fff;
}

.gs-bag-preview__view-bag {
	display: block;
	width: 100%;
	padding: 11px 0;
	background: #1a1a1a;
	color: #fff !important;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 2px;
	transition: background 0.2s ease;
	box-sizing: border-box;
}

.gs-bag-preview__view-bag:hover { background: #333; }

.gs-bag-preview__notice {
	padding: 10px 14px;
	font-size: 12px;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 34px;
	background: #e9f3f4;
}

.gs-bag-preview__notice:empty { display: none; }

.gs-bag-preview__empty {
	padding: 14px;
	color: #666;
	font-size: 13px;
}

@media (max-width: 480px) {
	.gs-bag-preview {
		top: 0;
		width: 100vw;
		border-radius: 0;
		max-height: 100vh;
	}
}