body {
    font-family: 'Tenor Sans', sans-serif !important;
    font-style: normal;
    margin: auto !important;
}

.navbar{
	width: 100%;
	height: 50px;
}

.navul{
	margin: 0;
	padding: 0;
	display: flex;
	flex-flow: row-reverse;

	li{
		list-style: none;
	}
}

.nav-links{
	text-decoration: none;
	text-align: center;
	padding: 0 30px;
	line-height: 30px;
	height: 40px;
	display: block;
	position: relative;
	font-weight: 700;
	z-index: 1;

	&:before{
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 0;
		background: rgb(190, 19, 190);
		transition: .5s;
		z-index: -1;
	}

	&:hover:before{
		height: 100%;
	}
}

.profileDD{
    width: 100%; 
}

.example p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 18pt;
    font-family :Quicksand, sans-serif;
}

.one-time {
    display: flex;
    justify-content: center;
    width: 75%;
}

#mybutton {
    position: fixed;
    left: 26%;
    bottom: 10px;
}

.submit {
    background-color: #875911;
    border: 1px solid white
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1055;
    transition: opacity 0.3s ease-in-out;
}

.search-overlay.show {
    display: flex;
    opacity: 1;
}

/* Close button */
.close-search {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-search:hover {
    transform: rotate(90deg);
}

/* Title */
.search-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input Container */
.input-container {
    display: flex;
    max-width: 600px; /* Maksimal lebar */
    position: relative;
    background: white;
    border-radius: 3rem;
    overflow: hidden;
}

/* Search Input */
.search-input {
    width: 70vw;
    font-size: 24pt;
    margin: 10px;
    border: none;
    outline: none;
    border-radius: 1rem;

    /* Hapus box-shadow default tanpa membuatnya terlihat */
    box-shadow: none;
    background: white;
}

/* Box-shadow hanya muncul saat input dalam keadaan fokus */
.search-input:focus {
    outline: none;
    box-shadow: none;
}

/* Search Button */
.search-button {
    background: #CFAB8D;
    color: white;
    border: none;
    padding: 20px 26px; /* Sesuaikan padding */
    font-size: 1.8rem; /* Perbesar ikon */
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: background 0.3s;
}

.search-button:hover {
    background: #CFAB8D;
}

.search-hint {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
}

.nav-item:hover{
    border-radius:10px;
}

.menu {
    width: 7.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
}

.menu-text {
    height: inherit;
    width: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-text::after {
    content: "▾";
    padding-left: 0.5rem;
}

.menu-text.menu-text-open::after {
    content: "▴";
}

.menu-content {
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
}
.menu-content a{

    color: black;
    text-decoration: none;
}

.menu-content-hidden {
    transform: scaleY(0);
}

.menu-content > *:hover {
    background-color: gray;
}.dropbtn {

    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 250px;
    background-color: #cac7c7;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: left;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

td{
    font-size:12px!important;
}
table{
    min-width:100%;
    white-space: nowrap;
}

/* Offcanvas full height */
.cart-offcanvas {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* Area list yang bisa scroll */
.cart-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* Footer nempel bawah */
.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 20px;
}

/* Item styling (biar rapi) */
.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info {
    flex: 1;
}

.cart-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-price {
    font-size: 12px;
    color: #555;
}

/* Qty button circle */
.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: small;
    line-height: 1rem !important;
}

.qty-input {
    width: 60px;
    text-align: center;
    font-size: small;
}

.checkout-btn{
    margin-bottom: 2rem;
    background-color: #875911;
    color: white;
}

.text-decoration-none{
    color: #875911;
}

.plus {
    background-color: #875911;
    color: white;
}

.alamat-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: block;
    position: relative;
}

.alamat-card input[type="radio"] {
    display: none !important; /* radio disembunyikan */
}

.alamat-card .card-content {
    font-size: 14px;
    color: #333;
}

/* Saat card dipilih */
.alamat-card input[type="radio"]:checked + .card-content {
    border: 2px solid #007bff;
    border-radius: 6px;
    background: #f0f8ff;
    padding: 10px;
}

.checkout-warning{
    display: inline-block;
    width: 70%;
    font-size: 8pt;
    color: #dc3545;
    font-weight: 600;
    animation: blinkWarning 1.2s infinite;
    background-color: #e6ab9e;
    padding: 2px;
}

.d-grid-card-all {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
}

.image-zoom-container{
    overflow:hidden;
    border-radius:10px;
    cursor:zoom-in;
}

.zoom-image{
    width:100%;
    transition:transform .15s ease;
    transform-origin:center;
}

@keyframes blinkWarning{
    0%,100%{
        opacity:1;
    }
    50%{
        opacity:.25;
    }
}

 @media only screen and (max-width: 500px) {
    .checkout-btn{
        margin-bottom: 0;
    }

    .d-grid-card-all {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-left: 0;
    }

    .profileDD{
        max-width: 150px; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
    }   

    .cart-footer {
        padding: 1rem;
        border-top: 1px solid #eee;
        background: #fff;
        position: sticky;
        bottom: 64px;
    }
}

@keyframes blinkWarning{
    0%,100%{
        opacity:1;
    }
    50%{
        opacity:.25;
    }
}
