/* ============================================================
   Header: sticky announcement (free shipping bar), nav + mega
   menu, centered logo, icon actions, search modal, mobile drawer
   ============================================================ */

.gs-sticky-top {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Announcement: free shipping + free returns strip (cream bar, teal text) */
.gs-freeship {
	background: var(--gs-cream);
	color: var(--gs-teal);
	padding: 12px var(--gs-page-pad);
}

.gs-freeship__widget {
	max-width: 400px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.gs-freeship__widget {
		max-width: 320px;
	}
}

.gs-freeship__icons-text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
}

@media (min-width: 1024px) {
	.gs-freeship__icons-text {
		justify-content: space-between;
		gap: 0;
	}
}

.gs-freeship__truck {
	width: 22px;
	height: 18px;
	flex: none;
}

.gs-freeship__text {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: capitalize;
	white-space: nowrap;
}

.gs-announcement-note {
	background: var(--gs-teal);
	color: #fff;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	padding: 7px var(--gs-page-pad);
}

/* Header bar — teal with cream text like the reference */
.gs-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--gs-header-h);
	max-width: var(--gs-page-width);
	margin: 0 auto;
	padding: 0 var(--gs-page-pad);
	gap: 16px;
	background: var(--gs-teal);
	color: var(--gs-cream);
	transition: height 0.25s ease;
}

.gs-sticky-top {
	background: var(--gs-teal);
}

.gs-sticky-top.is-stuck {
	box-shadow: 0 2px 14px rgba(0, 60, 60, 0.25);
}

.gs-sticky-top.is-stuck .gs-header {
	height: calc(var(--gs-header-h) - 18px);
}

.gs-header__logo {
	grid-column: 2;
	text-align: center;
}

.gs-logo-heading {
	margin: 0;
	line-height: 0;
}

.gs-header__logo img {
	width: 190px;
	height: auto;
	transition: width 0.25s ease;
}

.gs-sticky-top.is-stuck .gs-header__logo img {
	width: 150px;
}

/* Nav */
.gs-nav {
	grid-column: 1;
	justify-self: start;
}

.gs-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
}

.gs-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	font-weight: 500;
	color: var(--gs-cream);
	padding: 10px 0;
	position: relative;
}

.gs-nav__link:hover {
	color: var(--gs-cream);
	opacity: 0.85;
}

.gs-nav__caret {
	width: 12px;
	height: 9px;
	transition: transform 0.2s ease;
}

.gs-nav__item--dropdown {
	position: relative;
}

.gs-nav__submenu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 220px;
	background: #fff;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 18px 40px rgba(18, 18, 18, 0.12);
	padding: 12px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.2s ease;
	z-index: 60;
}

.gs-nav__item--dropdown:hover .gs-nav__submenu,
.gs-nav__item--dropdown.is-open .gs-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gs-nav__submenu a {
	display: block;
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gs-ink); /* header sets cream for the teal bar; dropdown links sit on white */
}

.gs-nav__submenu a:hover {
	background: var(--gs-cream);
	color: var(--gs-teal);
}

/* Mega menu — teal panel like the reference */
.gs-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--gs-teal);
	color: var(--gs-cream);
	box-shadow: 0 24px 50px rgba(0, 40, 40, 0.25);
	border-radius: 0 0 24px 24px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s ease;
	z-index: 70;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

.gs-mega.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gs-mega__inner {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	padding-top: 30px;
	padding-bottom: 34px;
}

.gs-mega__links li + li {
	margin-top: 2px;
}

.gs-mega__links a {
	display: block;
	padding: 9px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--gs-cream);
}

.gs-mega__links a:hover {
	color: var(--gs-cream);
	opacity: 0.85;
}

.gs-mega__products {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 26px;
}

.gs-mega__item-media {
	display: block;
	border-radius: var(--gs-radius-card);
	overflow: hidden;
	background: rgba(251, 246, 240, 0.12);
	aspect-ratio: 1;
}

.gs-mega__item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gs-mega__item:hover .gs-mega__item-media img {
	transform: scale(1.04);
}

.gs-mega__item-title {
	font-size: 14px;
	font-weight: 600;
	margin: 10px 0 2px;
}

.gs-mega__item-title a:hover {
	color: var(--gs-cream);
	opacity: 0.85;
}

.gs-mega__item-price {
	font-size: 13.5px;
	color: rgba(251, 246, 240, 0.85);
}

.gs-mega__item-price del {
	opacity: 0.5;
}

.gs-mega__item-price ins {
	text-decoration: none;
}

/* Header icons */
.gs-header__icons {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 18px;
}

.gs-header__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--gs-cream);
}

.gs-header__icon svg {
	width: 23px;
	height: 23px;
}

.gs-header__icon:hover {
	color: var(--gs-cream);
	opacity: 0.85;
}

.gs-cart-count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--gs-cream);
	color: var(--gs-teal);
	font-size: 10.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gs-cart-count:empty,
span.gs-cart-count:empty {
	display: none;
}

/* Burger */
.gs-header__burger {
	color: var(--gs-cream);
	grid-column: 1;
	justify-self: start;
}

.gs-header__burger svg {
	width: 26px;
	height: 26px;
}

/* Search modal */
.gs-search-modal {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	box-shadow: 0 24px 50px rgba(18, 18, 18, 0.14);
	border-radius: 0 0 24px 24px;
	z-index: 70;
}

.gs-search-modal__inner {
	padding-top: 26px;
	padding-bottom: 30px;
}

.gs-search-form {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.gs-search-form__icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(18, 18, 18, 0.55);
}

.gs-search-form__icon svg {
	width: 20px;
	height: 20px;
}

.gs-search-form__input {
	width: 100%;
	border: 1px solid rgba(18, 18, 18, 0.2);
	border-radius: var(--gs-radius-input);
	padding: 15px 20px 15px 52px;
	font-size: 16px;
	font-family: var(--gs-body-font);
	outline: none;
	background: var(--gs-cream);
}

.gs-search-form__input:focus {
	border-color: var(--gs-teal);
}

.gs-search-types {
	max-width: 720px;
	margin: 22px auto 0;
}

.gs-search-types__heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(18, 18, 18, 0.6);
	margin-bottom: 12px;
}

.gs-search-types__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.gs-search-types__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 18px;
	padding: 10px 14px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-search-types__list a:hover {
	border-color: var(--gs-teal);
	background: var(--gs-cream);
}

.gs-search-types__img img {
	width: 44px;
	height: 42px;
	object-fit: contain;
}

.gs-search-types__label {
	font-weight: 600;
	font-size: 14px;
}

.gs-search-types__arrow {
	margin-left: auto;
}

.gs-search-types__arrow svg {
	width: 18px;
	height: 18px;
}

/* Mobile drawer */
.gs-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.gs-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gs-drawer.is-open .gs-drawer__overlay {
	opacity: 1;
}

.gs-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(400px, 88vw);
	background: var(--gs-teal);
	color: var(--gs-cream);
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.gs-drawer.is-open .gs-drawer__panel {
	transform: translateX(0);
}

.gs-drawer__head {
	display: flex;
	justify-content: flex-end;
	padding: 16px;
}

.gs-drawer__close svg {
	width: 24px;
	height: 24px;
}

.gs-drawer__body {
	padding: 0 24px 34px;
}

.gs-drawer__featured-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}

.gs-drawer__featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.gs-drawer__featured-image {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(251, 246, 240, 0.12);
	aspect-ratio: 1;
}

.gs-drawer__featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-drawer__featured-name {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.gs-drawer__categories {
	border-top: 1px solid rgba(251, 246, 240, 0.35);
	border-bottom: 1px solid rgba(251, 246, 240, 0.35);
	margin-bottom: 22px;
}

.gs-drawer__categories summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 2px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.gs-drawer__categories summary::-webkit-details-marker {
	display: none;
}

.gs-drawer__toggle {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.gs-drawer__categories[open] .gs-drawer__toggle {
	transform: rotate(180deg);
}

.gs-drawer__categories ul {
	padding: 2px 0 14px;
}

.gs-drawer__categories ul a {
	display: block;
	padding: 8px 2px;
	font-size: 15px;
}

.gs-drawer__primary-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.gs-drawer__shipping {
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gs-cream);
	opacity: 0.9;
	margin-bottom: 18px;
}

.gs-drawer__secondary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 22px;
}

.gs-drawer__secondary a {
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
}

.gs-drawer__social {
	display: flex;
	gap: 16px;
}

.gs-drawer__social svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 989px) {
	.gs-freeship__text {
		font-size: 11.5px;
	}

	.gs-freeship__icons-text {
		gap: 14px;
	}

	.gs-header__logo img {
		width: 150px;
	}

	.gs-search-types__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Drawer accent overrides (teal surface) */
.gs-drawer .gs-btn--primary {
	background: var(--gs-cream);
	color: var(--gs-teal);
}

.gs-drawer .gs-btn--primary:hover {
	opacity: 0.9;
}

.gs-drawer__secondary a:hover {
	opacity: 0.85;
}

.gs-drawer__close {
	color: var(--gs-cream);
}
