/* ==========================================================================
   Jooy Custom SEO Theme - Stylesheet
   ========================================================================== */

:root {
	--font-jost: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--color-bg: #ffffff;
	--color-text: #212529;
	--color-nav-text: #404040;
	--color-highlight: #F27A1A;
	--color-topbar-bg: #F27A1A;
	--color-topbar-text: #FFFFFF;
	--color-badge-orange: #FF6100;
	--container-max: 1920px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-jost);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.container {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* ==========================================================================
   Header (#4:685 - 1920x104)
   ========================================================================== */

.jooy-header {
	width: 100%;
	background-color: #FFFFFF;
	position: relative;
	z-index: 100;
}

/* Top Bar: Section - Alışveriş avantajları (#4:686) */
.jooy-topbar {
	width: 100%;
	height: 32px;
	background-color: #F27A1A;
	overflow: hidden;
}

.jooy-topbar__container {
	width: 100%;
	height: 32px;
	overflow: hidden;
}

.jooy-topbar__track {
	display: flex;
	align-items: center;
	width: max-content;
	height: 32px;
	animation: jooyTopbarMarquee 36s linear infinite;
}

.jooy-topbar:hover .jooy-topbar__track {
	animation-play-state: paused;
}

@keyframes jooyTopbarMarquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.jooy-topbar__list {
	display: flex;
	align-items: center;
	height: 32px;
	padding-right: 48px;
	gap: 48px;
	width: max-content;
	flex-shrink: 0;
}

.jooy-topbar__item {
	display: inline-flex;
	align-items: center;
	height: 32px;
	gap: 10px;
	white-space: nowrap;
	flex-shrink: 0;
}

.jooy-topbar__icon {
	width: 12px;
	height: 11px;
	flex-shrink: 0;
}

.jooy-topbar__text {
	font-family: var(--font-jost);
	font-weight: 400;
	font-size: 12px;
	line-height: 32px;
	letter-spacing: 0.01em;
	color: #FFFFFF;
}

/* Main Header Bar (#4:797 - height 72px) */
.jooy-navbar {
	width: 100%;
	height: 72px;
	background-color: #FFFFFF;
}

.jooy-navbar__inner {
	width: 100%;
	max-width: 1920px;
	height: 72px;
	margin-inline: auto;
	padding-left: 31px;
	padding-right: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.jooy-navbar__left {
	display: flex;
	align-items: center;
	height: 72px;
	min-width: 0;
}

/* Logo (#4:830 - 161x52 at x:31, y:9) */
.jooy-logo {
	display: flex;
	align-items: center;
	width: 161px;
	height: 52px;
	flex-shrink: 0;
	margin-right: 38px;
}

.jooy-logo svg {
	width: 161px;
	height: 52px;
}

/* Navigation Menu (#4:818 - starts at x:230, height 72px) */
.jooy-nav {
	height: 72px;
	display: flex;
	align-items: center;
}

.jooy-nav__list {
	display: flex;
	align-items: center;
	height: 72px;
	padding-left: 8px;
	gap: 21.4px;
}

.jooy-nav__item {
	display: flex;
	align-items: center;
	height: 72px;
	white-space: nowrap;
}

.jooy-nav__link,
.jooy-nav__list > li > a {
	font-family: var(--font-jost);
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
	transition: color 0.15s ease;
}

.jooy-nav__link:hover,
.jooy-nav__list > li > a:hover {
	color: #212529;
}

.jooy-nav__link--highlight {
	color: #F27A1A !important;
}

/* Right Side: Search (#4:803) + Icons (#4:809) */
.jooy-navbar__right {
	display: flex;
	align-items: center;
	height: 72px;
	gap: 16px;
	flex-shrink: 0;
}

/* Search Bar (#4:803 - 420x44, border-bottom: 1px solid #999999) */
.jooy-search {
	position: relative;
	width: 420px;
	height: 44px;
	border-bottom: 1px solid #999999;
	display: flex;
	align-items: center;
	transition: border-color 0.15s ease;
}

.jooy-search.is-open,
.jooy-search:focus-within {
	border-bottom-color: #212529;
}

.jooy-search__input {
	width: 378px;
	height: 38px;
	padding-left: 10px;
	padding-right: 8px;
	border: 1px solid transparent;
	border-radius: 2px;
	outline: none;
	background: transparent;
	font-family: var(--font-jost);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #212529;
	transition: border-color 0.15s ease;
}

.jooy-search__input::-webkit-search-decoration,
.jooy-search__input::-webkit-search-cancel-button,
.jooy-search__input::-webkit-search-results-button,
.jooy-search__input::-webkit-search-results-decoration {
	display: none;
}

.jooy-search.is-open .jooy-search__input,
.jooy-search__input:focus {
	border-color: #333333;
}

.jooy-search__input::placeholder {
	color: #555555;
	opacity: 1;
}

.jooy-search__btn {
	position: absolute;
	left: 389px;
	top: 10px;
	width: 20px;
	height: 21px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Live Search Dropdown Popover */
.jooy-search-dropdown {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	width: 860px;
	max-width: calc(100vw - 32px);
	max-height: 760px;
	background-color: #FFFFFF;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.jooy-search-dropdown.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jooy-search-dropdown::-webkit-scrollbar {
	width: 6px;
}

.jooy-search-dropdown::-webkit-scrollbar-track {
	background: #F5F5F5;
}

.jooy-search-dropdown::-webkit-scrollbar-thumb {
	background: #999999;
	border-radius: 3px;
}

.jooy-search-dropdown__inner {
	display: flex;
	align-items: stretch;
	min-height: 440px;
	width: 100%;
}

.jooy-search-dropdown__sidebar {
	width: 250px;
	flex: 0 0 250px;
	background-color: #F2F2F2;
	padding: 22px 22px;
	text-align: left;
}

.jooy-search-dropdown__main {
	flex: 1;
	min-width: 0;
	background-color: #FFFFFF;
	padding: 22px 24px;
	text-align: left;
}

.jooy-search-dropdown__heading {
	font-family: var(--font-jost);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #333333;
	margin-bottom: 14px;
}

.jooy-search-dropdown__cats {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jooy-search-dropdown__cats li a {
	display: block;
	padding: 5px 4px;
	font-family: var(--font-jost);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: #333333;
	transition: color 0.15s ease;
}

.jooy-search-dropdown__cats li a:hover {
	color: #F27A1A;
}

.jooy-search-dropdown__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.jooy-search-card {
	display: flex;
	flex-direction: column;
	background-color: #FFFFFF;
	border: 1px solid #E5E5E5;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.jooy-search-card:hover {
	border-color: #CCCCCC;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.jooy-search-card__img-wrap {
	width: 100%;
	aspect-ratio: 2 / 3;
	background-color: #F7F7F7;
	overflow: hidden;
	position: relative;
}

.jooy-search-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.3s ease;
}

.jooy-search-card:hover .jooy-search-card__img {
	transform: scale(1.03);
}

.jooy-search-card__body {
	padding: 10px 10px 12px;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.jooy-search-card__title {
	font-family: var(--font-jost);
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
	color: #212529;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}

.jooy-search-card__old-price {
	font-family: var(--font-jost);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: #999999;
	text-decoration: line-through;
	margin-bottom: 2px;
	min-height: 16px;
}

.jooy-search-card__price {
	font-family: var(--font-jost);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: #212529;
}

.jooy-search-dropdown__empty {
	grid-column: 1 / -1;
	padding: 32px 12px;
	text-align: center;
	font-size: 14px;
	color: #666666;
}

/* Right Elements (#4:809 - 132x72) */
.jooy-actions {
	position: relative;
	width: 132px;
	height: 72px;
	flex-shrink: 0;
}

.jooy-actions__btn--user {
	position: absolute;
	left: 12px;
	top: 26px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jooy-actions__btn--wishlist {
	position: absolute;
	left: 55.31px;
	top: 26px;
	width: 21.39px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jooy-actions__cart {
	position: absolute;
	left: 88px;
	top: 14px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jooy-actions__cart-icon {
	width: 20px;
	height: 20px;
}

.jooy-cart-count {
	position: absolute;
	left: 28px;
	top: 0;
	width: 16px;
	height: 16px;
	border-radius: 8px;
	background-color: #FF6100;
	color: #FFFFFF;
	font-family: var(--font-jost);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Responsive Adjustments for Smaller Viewports */
@media (max-width: 1540px) {
	.jooy-search {
		width: 280px;
	}
	.jooy-search__input {
		width: 240px;
	}
	.jooy-search__btn {
		left: auto;
		right: 8px;
	}
	.jooy-nav__list {
		gap: 14px;
	}
}

@media (max-width: 1200px) {
	.jooy-nav {
		overflow-x: auto;
		scrollbar-width: none;
	}
	.jooy-nav::-webkit-scrollbar {
		display: none;
	}
	.jooy-search {
		width: 220px;
	}
	.jooy-search__input {
		width: 185px;
	}
}

@media (max-width: 768px) {
	.jooy-navbar {
		height: auto;
	}
	.jooy-navbar__inner {
		flex-wrap: wrap;
		height: auto;
		padding: 12px 16px;
		gap: 12px;
	}
	.jooy-navbar__left {
		width: 100%;
		justify-content: space-between;
		height: auto;
		flex-wrap: wrap;
	}
	.jooy-logo {
		width: 125px;
		height: 40px;
		margin-right: 0;
	}
	.jooy-nav {
		order: 3;
		width: 100%;
		height: 40px;
		border-top: 1px solid #f0f0f0;
		margin-top: 8px;
	}
	.jooy-nav__list,
	.jooy-nav__item {
		height: 40px;
	}
	.jooy-navbar__right {
		width: 100%;
		height: 44px;
		justify-content: space-between;
	}
	.jooy-search {
		flex: 1;
		width: auto;
	}
	.jooy-search__input {
		width: calc(100% - 32px);
	}
	.jooy-search-dropdown {
		width: calc(100vw - 24px);
		right: -40px;
	}
	.jooy-search-dropdown__inner {
		flex-direction: column;
	}
	.jooy-search-dropdown__sidebar {
		width: 100%;
		flex: none;
		padding: 16px;
	}
	.jooy-search-dropdown__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Hero & Footer Temporary Styles */
.hero-section {
	padding-block: 6rem;
	text-align: center;
	background: #fafafa;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.hero-badge {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	background: #FFDEDE;
	color: #5C3737;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 1.25rem;
}

.hero-title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: #212529;
	max-width: 760px;
	margin-inline: auto;
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1rem;
	color: #555555;
	max-width: 600px;
	margin-inline: auto;
}

.site-footer {
	padding-block: 2rem;
	text-align: center;
	color: #555555;
	font-size: 0.875rem;
}
