@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* --- Desktop Styles (Default) --- */

.eskaro-main-container {
	padding: 90px;
	box-sizing: border-box;
	max-width: 100%;
}

.eskaro-header-container {
	margin-bottom: 40px;
}

.eskaro-breadcrumb {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 15px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	margin-bottom: 20px;
	color: #000;
}

.eskaro-breadcrumb a {
	text-decoration: none;
	color: inherit;
}

.eskaro-title-row {
	display: flex;
    align-items: center;
    gap: 90px;
}

.eskaro-page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    margin: 0;
	color: #767676;
	width: 25%;
	flex-shrink: 0;
}

.eskaro-disclaimer {
    border-radius: 6px;
    background: #F8F8F8;
    padding: 19px 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #767676;
	box-sizing: border-box;
}

.desktop-only {
    display: block;
	width: 75%;
}

.mobile-only {
	display: none;
}

.eskaro-catalogue-wrapper {
	display: flex;
	gap: 90px;
}

.eskaro-catalogue-sidebar {
	width: 25%;
	flex-shrink: 0;
}

.eskaro-sidebar-inner {
	background-color: #F8F8F8;
	border-radius: 30px;
	padding-top: 30px;
	padding-bottom: 30px;
	box-sizing: border-box;
	position: sticky;
	top: 116px;
}

.eskaro-accordion-item {
	margin-bottom: 20px;
	padding-bottom: 20px;
	padding-left: 30px;
	padding-right: 30px;
}

.eskaro-accordion-item:first-child {
	border-bottom: 2px solid #fff;
}

.eskaro-accordion-header {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 24px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
}

.eskaro-accordion-icon::after {
	content: '+';
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 300;
}

.eskaro-accordion-item.open .eskaro-accordion-icon::after {
	content: '-';
}

.eskaro-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.eskaro-catalogue-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.eskaro-catalogue-sidebar li {
	margin-bottom: 16px;
}

.eskaro-catalogue-sidebar a {
	text-decoration: none;
	color: #333;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 20px;
	line-height: 100%;
	letter-spacing: 0%;
	display: block;
}

.eskaro-catalogue-sidebar a.active {
	font-weight: bold;
	color: #0073aa;
}

.eskaro-catalogue-content {
	width: 75%;
}

.eskaro-color-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 13px;
}

.eskaro-color-item {
	border-radius: 14px;
	padding: 20px;
	position: relative;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	transition: transform 0.2s;
	color: #fff;
}

.eskaro-color-item.is-light-tone {
	color: #767676;
}

.eskaro-color-item:hover {
	transform: scale(1.02);
}

.eskaro-color-actions {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
}

.eskaro-add-favorite {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: inherit;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.eskaro-add-favorite:hover {
	opacity: 1;
	background: none;
}

.is-light-tone .eskaro-add-favorite {
	color: #767676;
}

.eskaro-download-color {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: inherit;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.is-light-tone .eskaro-download-color {
	color: #767676;
}

.eskaro-download-color:hover {
	opacity: 1;
	background: none;
}

.eskaro-add-favorite.active {
	opacity: 1;
	background: none;
}

.eskaro-color-title {
	position: absolute;
	bottom: 20px;
	right: 20px;
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-align: right;
}

/* Favorites Panel */
.eskaro-favorites-panel {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1660px;
	background-color: rgba(248, 248, 248, 0.95);
	padding: 50px 20px 20px 20px;
	box-sizing: border-box;
	z-index: 100;
	display: none;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out;
}

.eskaro-favorites-panel.visible {
	display: block;
	transform: translateX(-50%) translateY(0);
}

.eskaro-favorites-panel.minimized {
	transform: translateX(-50%) translateY(calc(100% - 30px));
	cursor: pointer;
}

.eskaro-favorites-panel-toggle {
	position: absolute;
	top: 0;
	right: 20px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 300;
	color: #333;
	z-index: 101;
}

.eskaro-favorites-panel.minimized .eskaro-favorites-panel-toggle .toggle-icon {
	content: '+';
}

.eskaro-favorite-remove {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 30px;
	height: 30px;
	background-color: #D9D9D9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.eskaro-favorite-remove span {
	display: block;
	width: 14px;
	height: 14px;
	position: relative;
}

.eskaro-favorite-remove span::before,
.eskaro-favorite-remove span::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 2px;
	background-color: #000;
	transform: translate(-50%, -50%) rotate(45deg);
}

.eskaro-favorite-remove span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.eskaro-favorites-grid {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 13px;
}

.eskaro-favorites-grid .eskaro-color-title {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 15.83px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
}

/* Popup */
.eskaro-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(22, 21, 26, 0.4);
	z-index: 999999;
	display: none;
}

.eskaro-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(700px, calc(100vw - 100px), calc(100vh - 100px));
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	padding: 70px;
	box-sizing: border-box;
	z-index: 1000000;
	display: none;
	color: #fff;
}

.eskaro-popup.is-light-tone {
	color: #767676;
}

.eskaro-popup.visible,
.eskaro-popup-overlay.visible {
	display: block;
}

.eskaro-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

#eskaro-popup-title {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 64px;
	line-height: 100%;
	margin: 0;
	color: #fff;
}

.is-light-tone #eskaro-popup-title {
	color: #767676;
}

#eskaro-popup-title-2 {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 64px;
	line-height: 100%;
	letter-spacing: 0%;
	margin: 0;
	color: #fff;
}

.is-light-tone #eskaro-popup-title-2 {
	color: #767676;
}

.eskaro-popup-actions {
	display: flex;
	gap: 20px;
	flex-wrap: nowrap;
	margin-top: 8px;
}

.eskaro-popup-footer {
	position: absolute;
	bottom: 70px;
	left: 70px;
}

.eskaro-popup-info {
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
}

/* --- Tablet Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
	.eskaro-main-container {
		padding: 65px 30px 65px 30px;
	}

	.eskaro-catalogue-wrapper {
		gap: 42px;
	}

	.eskaro-title-row {
		gap: 42px;
	}

	.eskaro-color-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.eskaro-favorites-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.eskaro-popup {
		padding: 42px;
	}

	.eskaro-popup-actions {
		margin-top: 6px;
	}

	#eskaro-popup-title, #eskaro-popup-title-2 {
		font-size: 48px;
	}

	.eskaro-popup-actions button svg {
		width: 20px;
		height: 20px;
	}

	.eskaro-popup-footer {
		bottom: 42px;
		left: 42px;
	}
}

/* --- Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
	.eskaro-main-container {
		padding: 60px 20px 60px 20px;
	}

	.eskaro-page-title {
		font-size: 32px;
		width: 100%;
	}

	.desktop-only {
		display: none;
	}

	.mobile-only {
		display: block;
		margin-top: 20px;
	}

	.eskaro-sidebar-inner {
		position: static;
		top: auto;
	}

	.eskaro-catalogue-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.eskaro-catalogue-sidebar {
		width: 100%;
	}

	.eskaro-catalogue-content {
		width: 100%;
	}

	.eskaro-color-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.eskaro-favorites-panel {
		padding: 30px 15px 15px 15px;
	}

	.eskaro-favorites-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px
	}

	.eskaro-popup {
		width: 300px;
		height: 300px;
		padding: 30px;
	}

	#eskaro-popup-title, #eskaro-popup-title-2 {
		font-size: 32px;
	}

	.eskaro-popup-actions {
		margin-top: 4px;
	}

	.eskaro-popup-footer {
		bottom: 30px;
		left: 30px;
	}
}

/* --- Small Mobile Styles (max-width: 480px) --- */
@media (max-width: 480px) {
	.eskaro-favorites-grid .eskaro-color-title {
		font-size: 13px;
		right: 8px;
		bottom: 8px;
	}
}

/* Wood Background Styles */
.eskaro-color-item.has-wood-bg,
#eskaro-popup.has-wood-bg {
    background-image: url('../img/ecw-wood-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}