/*
#5c3f36
#3e4f5c
#bd9d6e
#b5817d
#dbccb5
*/

.btn-primary-sf {
    background-color: #5c3f36;
    color: #ffffff;
    border: 1px solid #5c3f36
}

.bg-dark-sf {
    background-color: #5c3f36;
}

.aktif {
    background-color: #dbccb5 !important;
}

.nav-link-sf:hover {
    background-color: beige !important;
    color: #5c3f36 !important;
}

#storelist {
    min-width: 250px;
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.storelist {
    margin-bottom: 20px !important;
    border: 1px solid #5c3f36;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.storelist:hover {
    background-color: beige;
}

.storelist h5 {
    font-size: 1rem;
}

.storelist p {
    margin: 0;
}

.storelist a {
    color: #5c3f36;
}

.storelist a:hover {
    color: red;
    text-decoration: none;
}

#map {
    background: lightgrey;
    height: 300px;
}

/* Floating WhatsApp Button */
.floating-wa-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Allow clicks through the container area */
}

.float-wa {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Enable clicks on button */
    transition: all 0.3s ease;
}

.float-wa:hover {
    text-decoration: none;
    color: #FFF;
    transform: scale(1.1);
}

.circle-text {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: rotateText 10s linear infinite;
    pointer-events: none;
    z-index: 998;
}

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#searchingholdon {
    color: #ececec !important;
}

/* Product Cards */
.product-card {
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.product-card:hover {
    border-color: #bbb;
}

.product-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    /*background-color: #f8f9fa;*/
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card-image img.img-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.product-card:hover .product-card-image img.img-default {
    opacity: 0;
}

.product-card:hover .product-card-image img.img-hover {
    opacity: 1;
    box-sizing: border-box;
    width: 90% !important;
    height: 90% !important;
    object-fit: contain !important;
    transform: translate(-50%, -50%);
}

.product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-style {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5c3f36;
    margin-bottom: 8px;
    margin-top: 0;
}

.product-design {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Product Modal */
.modal-product-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.product-detail-label {
    font-weight: 600;
    color: #5c3f36;
    margin-bottom: 5px;
}

.product-detail-value {
    color: #333;
    margin-bottom: 15px;
}

/* Store List Styles */
#modalSelectStore {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 15px;
}

.store-item {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #dbccb5;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.store-item:hover {
    background-color: #f8f9fa;
    border-color: #5c3f36;
    transform: translateX(5px);
}

.store-name {
    font-weight: 600;
    color: #5c3f36;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.store-address {
    color: #666;
    font-size: 0.9rem;
}

/* Direction Button */
.btn-direction {
    background-color: #5c3f36;
    color: #ffffff;
    border: 1px solid #5c3f36;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-direction:hover {
    background-color: #bd9d6e;
    border-color: #bd9d6e;
    color: #fff;
}

/* Direction map marker icon */
.direction-marker-icon {
    background: transparent;
    border: none;
}

/* Direction step hover effect */
.direction-step:hover {
    background: #f8f4f0 !important;
}

/* Responsive: directions panel on mobile */
@media (max-width: 768px) {
    #directionsPanel {
        width: 100% !important;
        max-height: 40% !important;
        border-right: none !important;
        border-top: 2px solid #e0d5cc !important;
        order: 2;
    }

    #directionMapContainer {
        order: 1;
    }

    #directionsPanel+#directionMapContainer {
        min-height: 60%;
    }
}

/* Product card image hover - no extra spacing */
.product-card-image {
    transition: all 0.3s ease;
}

.product-card-image:hover {
    background-color: #ffffff;
}

.product-card-image img {
    width: 125% !important;
    height: 125% !important;
    object-fit: cover !important;
}

/* Search Product Filter Styling */
.form-control,
.form-select,
.choices__inner,
.choices.is-focused .choices__inner,
.choices.is-active .choices__inner,
.choices.is-open .choices__inner,
.choices__list--dropdown,
.choices__input:focus {
    border: 1px solid #000 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    outline: none !important;
    color: #000 !important;
}

.choices__inner {
    overflow: hidden !important;
}

.choices__list--single .choices__item,
.choices__inner .choices__item--selectable,
.choices__placeholder {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
}

.form-label {
    color: #000 !important;
    font-weight: 600;
}

#searchproductbutton,
#searchbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    padding: 0;
    height: 59px;
    width: 100%;
}

#searchbutton {
    height: 54px !important;
    margin-top: 13px !important;
}

#searchproductbutton i,
#searchbutton i {
    font-size: 1.1rem;
}

#searchproductbutton:hover,
#searchbutton:hover {
    background-color: beige !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* Modal Store Table Styling */
.modal-store-table {
    background-color: #fff !important;
}

.modal-store-table .store-row:hover {
    background-color: beige !important;
}

/* Transparency and Centering Overrides */
.header-container {
    margin-top: 20px;
    transition: margin-top 0.3s ease;
}

.header-sticky:not(.header-sticky-on),
.header-sticky:not(.header-sticky-on) .navbar {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
}

.header-sticky.header-sticky-on {
    background-color: #fff !important;
    background: #fff !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.header-sticky.header-sticky-on .header-container {
    margin-top: 0 !important;
}

section form.rounded-3 {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
}