@charset "UTF-8";

:root {
	--body-bg: #f2f2f2;
	--body-color: #ffffff;
	--border-color: #dee2e6;
	--primary: #2f80ed;
	--secondary: #6fcf97;
}
.bg-primary {
	background-color: var(--primary) !important;
}

.divider {
	border: 1px solid var(--primary);
	height: 35px;
	margin-left: 20px;
}
@media (max-width: 968px) {
	.divider {
		display: none;
	}
}
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: var(--body-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	/* font-size: ; */
}
body {
	padding-top: 3.5rem;
	background-color: var(--body-bg);
}

.card {
	box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
}

.truncate-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	/* Batasi jumlah baris */
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.5em;
	/* Sesuaikan dengan kebutuhan */
	min-height: 3rem;
	/* 2 baris x 1.5em = 3em */
}

.image-container {
	position: relative;
	width: 100%;
	padding-top: 100%;
	/* Menjaga rasio 1:1 */
	overflow: hidden;
	/* Mencegah gambar meluap keluar */
}

.image-container img {
	border-top-left-radius: 5px;
	/* Radius pada sudut kiri atas */
	border-top-right-radius: 5px;
	/* Radius pada sudut kanan atas */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* Menjaga gambar utuh dalam wadah 1:1 */
}

btn-pill {
	border-radius: 50px;
}
/* search style */
.search-wrapper {
	/* max-width: 600px; */
	/* margin: 20px auto; */
	width: 100%;
}

.search-box {
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	border-radius: 50px;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.search-input {
	border-radius: 50px;
	padding-left: 45px;
	padding-right: 20px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	height: 50px;
}

.search-input:focus {
	border-color: #0d6efd;
	box-shadow: none;
}

.search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #6c757d;
	z-index: 10;
}

.search-button {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50px;
	padding: 8px 20px;
	transition: all 0.3s ease;
}

.search-button:hover {
	background-color: #0b5ed7;
	transform: translateY(-50%) scale(1.05);
}
/* cart button */
.cart-btn:hover {
	background-color: #0b5ed7 !important; /* Warna biru lebih gelap saat hover */
	transform: scale(1.1); /* Sedikit membesar */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Bayangan lebih tajam */
	transition: all 0.2s ease;
}

.cart-btn {
	transition: all 0.2s ease;
}
/* multi items carousel */
.mic-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding: 0.5rem 1rem;
	background-color: #e7f1ff;
	border-left: 5px solid #0d6efd;
	border-radius: 0.5rem;
}
.mic-section-title {
	color: #0d6efd;
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0;
}
.mic-see-all {
	font-size: 0.9rem;
	color: #0d6efd;
	text-decoration: none;
	font-weight: 500;
}
.mic-see-all:hover {
	text-decoration: underline;
}
.mic-carousel-container {
	position: relative;
	overflow: hidden;
}

.mic-carousel-inner {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	scroll-behavior: smooth;
}

.mic-carousel-inner::-webkit-scrollbar {
	display: none;
}

.mic-product-card {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - 4rem) / 6);
}

@media (max-width: 1200px) {
	.mic-product-card {
		flex: 0 0 calc((100% - 3rem) / 5);
	}
}

@media (max-width: 992px) {
	.mic-product-card {
		flex: 0 0 calc((100% - 2rem) / 3);
	}
}

@media (max-width: 768px) {
	.mic-product-card {
		flex: 0 0 calc((100% - 1rem) / 2);
	}
}

.mic-carousel-control-prev,
.mic-carousel-control-next {
	position: absolute;
	width: 6vh;
	height: 6vh;
	background-color: #e1e1e1;
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.5;
}

.mic-carousel-control-prev {
	left: 0rem;
}

.mic-carousel-control-prev:hover,
.mic-carousel-control-next:hover {
	opacity: 1;
}

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

/* sidebar  */

.offcanvas {
	width: 280px;
	background-color: var(--body-color);
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
	font-weight: 700;
}

.btn-close {
	filter: none;
}

.list-group-flush .list-group-item {
	background-color: transparent;
	border: none;
	border-radius: 8px;
	margin-bottom: 4px;
	transition: all 0.2s ease-in-out;
	font-weight: 500;
}

.list-group-flush .list-group-item:hover,
.btn-toggle-list.list-group-item-action:hover {
	background-color: rgba(99, 102, 241, 0.1);
}

.btn-toggle-list {
	text-decoration: none;
	width: 100%;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.list-group-flush > div {
	border-bottom: none;
}

.collapse .list-group-item {
	padding-left: 3rem !important;
}

/* footer style */
/* Wishlist controls */
.image-container {
	position: relative;
}

.wishlist-detail-btn:disabled {
	cursor: wait;
	opacity: 0.65;
}

.wishlist-detail-btn.is-active {
	border-color: #dc3545;
	background: #dc3545;
	color: #fff;
}
.product-rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #ffc107;
	white-space: nowrap;
	vertical-align: middle;
}

.product-rating-stars .bi {
	font-size: 0.8rem;
	line-height: 1;
}

.product-rating-value {
	margin-left: 0.25rem;
	vertical-align: middle;
}
/* Shared product cards */
.doki-product-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doki-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.doki-product-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f8f9fa;
}

.doki-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.doki-product-card:hover .doki-product-image img {
	transform: scale(1.02);
}

.doki-product-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	max-width: calc(100% - 56px);
	overflow: hidden;
	font-size: 0.72rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.doki-wishlist-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(220, 53, 69, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: #dc3545;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.doki-wishlist-remove:hover,
.doki-wishlist-remove:focus-visible {
	background: #dc3545;
	color: #fff;
	transform: scale(1.05);
}

.doki-wishlist-remove:disabled {
	cursor: wait;
	opacity: 0.65;
}

.doki-product-card .card-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.doki-product-name {
	display: -webkit-box;
	min-height: 2.8em;
	overflow: hidden;
	color: #212529;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.doki-product-store {
	overflow: hidden;
	color: #6c757d;
	font-size: 0.75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.doki-product-meta {
	display: flex;
	min-height: 1.25rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	font-size: 0.75rem;
}

.doki-product-meta .product-rating-stars .bi {
	font-size: 0.7rem;
}

.doki-product-price-old {
	color: #6c757d;
	font-size: 0.75rem;
	text-decoration: line-through;
}

.doki-product-price-current {
	color: #dc3545;
	font-size: 1rem;
	font-weight: 700;
}

.doki-product-stock {
	width: fit-content;
	font-size: 0.72rem;
	font-weight: 500;
}

.doki-product-cart {
	min-height: 34px;
	margin-top: auto;
	white-space: normal;
}

@media (max-width: 575.98px) {
	.doki-product-card .card-body {
		padding: 0.75rem !important;
	}

	.doki-product-name {
		font-size: 0.86rem;
	}

	.doki-product-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.doki-product-cart {
		padding-right: 0.4rem;
		padding-left: 0.4rem;
		font-size: 0.78rem;
	}
}
