/* Text Color Utility */
.text-pink {
    --bs-text-opacity: 1;
    color: #d63384 !important;
}

/* Action Sheet Styles */
.action-sheet {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.action-sheet.inset {
    margin: 0 16px 16px;
    border-radius: 12px;
    overflow: hidden;
}

.action-button-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.action-button-list li {
    border-top: 1px solid #e1e1e1;
}

.action-button-list li:first-child {
    border-top: none;
}

.btn-list {
    width: 100%;
    text-align: left;
    padding: 16px;
    font-size: 15px;
    background: none;
    border: none;
    color: #141515;
    display: block;
    border-radius: 0;
}

.btn-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-divider {
    height: 8px;
    background: #f1f1f1;
    border: none;
    margin: 0;
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0.3rem 0 0.75rem;
    background-color: rgba(var(--bs-body-bg-rgb), 0.9);
    border-top: 1px solid var(--bs-border-color);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 5.5rem;
    }
}

@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 5.5rem;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bs-emphasis-color);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 0.5rem;
    flex: 1;
    max-width: 25%;
    overflow: hidden;
}

.bottom-nav-item.active {
    color: var(--bs-primary);
}

.bottom-nav-item:not(.active):hover {
    color: var(--bs-primary);
    transform: translateY(-0.25rem);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: white !important;
    transform: scale(1.15);
}

.bottom-nav-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.6rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 0.20rem;
    font-size: 3rem;
    color: #fff;
    font-weight: 900;
}

.bottom-nav-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
}

.bottom-nav-item:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Dark/Light Theme Adjustments */
[data-bs-theme="dark"] {
    --nav-icon-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --nav-bg-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    --nav-bg-color: rgba(var(--bs-body-bg-rgb), 0.95);
}

[data-bs-theme="dark"] .bottom-nav {
    box-shadow: var(--nav-bg-shadow);
    background-color: var(--nav-bg-color);
}

[data-bs-theme="light"] {
    --nav-icon-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --nav-bg-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    --nav-bg-color: rgba(var(--bs-body-bg-rgb), 0.98);
}

[data-bs-theme="light"] .bottom-nav {
    box-shadow: var(--nav-bg-shadow);
    background-color: var(--nav-bg-color);
}

@media (hover: none) and (pointer: coarse) {
    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .bottom-nav-item.active:active {
        transform: scale(0.95) translateY(-0.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    .bottom-nav-item,
    .bottom-nav-icon {
        transition: none !important;
    }
}

/* Progress Stepbar */
.progress-stepbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style: none;
    margin: 1rem 0;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    counter-reset: step;
}

.progress-stepbar:after {
    background: rgba(var(--bs-secondary-rgb), 0.2);
    border-radius: 10px;
    content: "";
    height: 6px;
    left: 10%;
    position: absolute;
    top: 28px;
    width: 80%;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-stepbar li {
    position: relative;
    text-align: center;
    flex: 1;
    max-width: 20%;
}

.progress-stepbar li>span {
    background: rgba(var(--bs-secondary-rgb), 0.1);
    border-radius: 20px;
    color: var(--bs-secondary);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.progress-stepbar li:before {
    content: counter(step);
    counter-increment: step;
    background: var(--bs-body-bg);
    border: 3px solid rgba(var(--bs-secondary-rgb), 0.3);
    border-radius: 50%;
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    height: 2.5rem;
    width: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-stepbar li:after {
    content: "";
    height: 6px;
    left: -50%;
    position: absolute;
    top: 1.25rem;
    width: 50%;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.progress-stepbar li:first-child:after {
    display: none;
}

/* Status Classes */
.progress-stepbar li.pending:before,
.progress-stepbar li.pending>span {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.progress-stepbar li.completed.pending:before {
    background: var(--bs-primary);
    color: white;
}

.progress-stepbar li.danger:before,
.progress-stepbar li.danger>span,
.progress-stepbar li.stop:before,
.progress-stepbar li.stop>span {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
}

.progress-stepbar li.completed.danger:before,
.progress-stepbar li.completed.stop:before {
    background: var(--bs-danger);
    color: white;
}

.progress-stepbar li.success:before,
.progress-stepbar li.success>span {
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.progress-stepbar li.completed.success:before {
    background: var(--bs-success);
    color: white;
}

.progress-stepbar li.warning:before,
.progress-stepbar li.warning>span {
    border-color: var(--bs-warning);
    color: var(--bs-warning);
}

.progress-stepbar li.completed.warning:before {
    background: var(--bs-warning);
    color: white;
}

.progress-stepbar li.dark:before,
.progress-stepbar li.dark>span {
    border-color: var(--bs-dark);
    color: var(--bs-dark);
}

.progress-stepbar li.completed.dark:before {
    background: var(--bs-dark);
    color: white;
}

.progress-stepbar li.active:before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 5px rgba(var(--bs-primary-rgb), 0.2);
}

.progress-stepbar li.active>span {
    font-weight: 600;
}

.progress-stepbar li.pulse:before {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-warning-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb), 0);
    }
}

.progress-stepbar li.completed:after {
    opacity: 1;
}

.progress-stepbar li.completed.pending:after {
    background: var(--bs-primary);
}

.progress-stepbar li.completed.danger:after,
.progress-stepbar li.completed.stop:after {
    background: var(--bs-danger);
}

.progress-stepbar li.completed.success:after {
    background: var(--bs-success);
}

.progress-stepbar li.completed.warning:after {
    background: var(--bs-warning);
}

.progress-stepbar li.completed.dark:after {
    background: var(--bs-dark);
}

[data-bs-theme="dark"] .progress-stepbar li>span,
[data-bs-theme="dark"] .progress-icon-stepbar li>div>span {
    background: rgba(var(--bs-secondary-rgb), 0.2);
}

[data-bs-theme="dark"] .progress-stepbar:after,
[data-bs-theme="dark"] .progress-icon-stepbar:after {
    background: rgba(var(--bs-secondary-rgb), 0.3);
}

/* Card Styles */
.branch-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.branch-card .card-header {
    background: linear-gradient(135deg, #f5f8ff 0%, #f0f4ff 100%);
    border-bottom: none;
}

.branch-card .card-body {
    padding: 1.5rem;
}

.hover-elevate-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Address List */
.address-list-container {
    max-height: 70vh;
    overflow-y: auto;
}

.address-list-container::-webkit-scrollbar {
    width: 6px;
}

.address-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.address-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.map-preview {
    transition: opacity 0.3s ease;
}

.map-preview.leaflet-container {
    background: #f5f8fa;
}

.map-preview-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fa;
    color: #a1a5b7;
    font-size: 0.9rem;
}

/* Product Cards */
.card-category,
.card-product,
.card-brand {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card-category:hover,
.card-brand:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em;
}

/* Product Gallery */
.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
}

.product-gallery img {
    transition: transform 0.3s ease;
}

.product-gallery:hover img {
    transform: scale(1.05);
}

/* Variant Options */
.color-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--kt-primary);
}

.color-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-option.disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f00;
    transform: rotate(-45deg);
}

.storage-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--kt-border-color);
}

.storage-option.active {
    background-color: var(--kt-primary) !important;
    color: white !important;
    border-color: var(--kt-primary);
}

.storage-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.storage-option.disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f00;
    transform: rotate(-45deg);
}

/* Product Display */
.product-image-container {
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
}

.price-tabs {
    border-bottom: 2px solid var(--kt-border-color);
}

.price-tabs .nav-link {
    border: none;
    color: var(--kt-gray-600);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-bottom: -2px;
}

.price-tabs .nav-link.active {
    color: var(--kt-primary);
    border-bottom: 2px solid var(--kt-primary);
    background: transparent;
}

.price-display {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-action-bar.show {
    transform: translateY(0);
}

/* Ratings */
.rating-stars {
    display: inline-flex;
    align-items: center;
}

.rating-stars .star {
    color: #ffc107;
    margin-right: 2px;
}

.review-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-media {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.review-media img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-media img:hover {
    transform: scale(1.1);
}

/* Coordinate Display */
.coordinate-display {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    padding: 2px;
}

.coordinate-display div {
    padding: 5px 10px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .address-card {
        margin-bottom: 1.5rem;
    }

    .product-image-container {
        height: 180px;
    }

    .card-product .btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 992px) {
    .sticky-action-bar {
        display: none;
    }
}

.separator-header {
    width: 1.2px;
    min-width: 1.2px;
    height: 24px;
    background: var(--NN100, #e6e9f0);
    margin: 25px 25px 0px 0px;
}

@media (max-width: 768px) {
    .separator-header {
        display: none;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}



.bg-gradient-promo {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.promo-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.countdown-box {
    min-width: 60px;
}

.home-brand img {
    width: 200px;
    height: 300px;
    object-fit: contain;
}

.home-category {
    overflow: auto hidden;
    white-space: nowrap;
    transition: 0.5s;
    height: 40px;
    display: flex;
    scrollbar-width: none;
}

.home-item-category {
    display: flex;
    align-items: center;
    margin-right: 8px;
    border-radius: 16px;
    border: solid 1px var(--category-border, #cfd5e1);
    background-color: var(--category-bg, #ffffff);
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-item-category img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

.home-item-category span {
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 26px;
    letter-spacing: normal;
    color: var(--category-text, #080808);
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --category-border: #495057;
    --category-bg: #212529;
    --category-text: #f8f9fa;
}

/* Light theme variables */
[data-bs-theme="light"] {
    --category-border: #cfd5e1;
    --category-bg: #ffffff;
    --category-text: #080808;
}

/* Tampilan mobile - sembunyikan teks */
@media (max-width: 768px) {
    .home-item-category {
        padding: 8px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .home-item-category span {
        display: none;
    }

    .home-item-category img {
        margin-right: 0;
    }

    .home-category {
        height: 60px;
        justify-content: center;
    }
}

/* Tampilan desktop - tampilkan teks */
@media (min-width: 769px) {
    .home-item-category span {
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-ms-0 {
        margin-left: 0 !important;
    }

    .mobile-ms-1 {
        margin-left: 0.25rem !important;
    }

    .mobile-ms-2 {
        margin-left: 0.5rem !important;
    }

    .mobile-ms-3 {
        margin-left: 1rem !important;
    }

    .mobile-ms-4 {
        margin-left: 1.5rem !important;
    }

    .mobile-ms-5 {
        margin-left: 3rem !important;
    }

    .mobile-ms-6 {
        margin-left: 4rem !important;
    }

    .mobile-ms-7 {
        margin-left: 5rem !important;
    }

    .mobile-ms-8 {
        margin-left: 6rem !important;
    }

    .mobile-ms-9 {
        margin-left: 7rem !important;
    }

    .mobile-ms-10 {
        margin-left: 8rem !important;
    }
}

.carousel-custom img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.promo-header {
    /* background-color: #009640; hijau Tokopedia-like */
    background-color: #238BB2;
    /* hijau Tokopedia-like */
    color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.promo-header h2 {
    font-weight: 700;
}

.promo-header img {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 90%;
    height: auto;
}

.coupon-card {
    border: 2px dashed var(--bs-border-color, #ddd);
    border-radius: 12px;
    background: var(--bs-body-bg);
    max-width: 320px;
    margin: auto;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.coupon-card::before,
.coupon-card::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.coupon-card::before {
    left: -10px;
}

.coupon-card::after {
    right: -10px;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-header img {
    width: 40px;
    height: 40px;
}

.coupon-discount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6600;
}

.coupon-footer {
    border-top: 1px dashed var(--bs-border-color, #ddd);
    margin-top: 15px;
    padding-top: 10px;
    text-align: center;
}

.coupon-code {
    font-weight: bold;
    background: var(--bs-primary-bg-subtle, #e9f7ef);
    color: var(--bs-primary-text-emphasis, #238BB2);
    border: 1px solid var(--bs-primary-border-subtle, #238BB2);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 10px;
}

/* Filter Section */
.filter-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    position: sticky;
    top: 20px;
}

.filter-card .card-header {
    background: transparent;
    border-bottom: 1px solid #EAECF0;
    padding: 1rem 1.25rem;
}

.filter-card .card-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1D2939;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #D0D5DD;
    transition: var(--smooth-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 85, 250, 0.1);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #344054;
    font-size: 0.875rem;
}

.filter-reset {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    transition: var(--smooth-transition);
}

.filter-reset:hover {
    color: #2c40d8;
}

/* Mobile Filter Styles */
.mobile-filter-header {
    display: none;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: -1rem -1rem 1rem -1rem;
}

.mobile-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: var(--smooth-transition);
}

.mobile-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

.mobile-filter-modal.show {
    display: block;
}

.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-filter-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #EAECF0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.mobile-filter-header-bar h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #667085;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--smooth-transition);
}

.mobile-filter-close:hover {
    background: #F9FAFB;
}

.mobile-filter-body {
    padding: 1.25rem;
}

.mobile-filter-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem 1.25rem;
    border-top: 1px solid #EAECF0;
    display: flex;
    gap: 0.75rem;
}

.mobile-filter-footer button {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    transition: var(--smooth-transition);
}

.btn-reset-mobile {
    background: #F9FAFB;
    color: #344054;
}

.btn-reset-mobile:hover {
    background: #F2F4F7;
}

/* Active filter indicator */
.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Product Card */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: var(--card-shadow);
    transition: var(--smooth-transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-image-container {
    height: 200px;
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--smooth-transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.stock-badge,
.promo-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.stock-badge {
    left: 12px;
    background: rgba(25, 135, 84, 0.9);
    color: white;
}

.promo-badge {
    right: 12px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-body {
    padding: 1.25rem;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #1D2939;
    margin-bottom: 0.75rem;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-container {
    margin-bottom: 1rem;
}

.rental-price,
.purchase-option {
    margin-bottom: 1rem;
}

.current-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.original-price {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.purchase-option {
    background-color: rgba(25, 135, 84, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid var(--success-color);
}

.purchase-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.purchase-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success-color);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin: 1rem 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #EAECF0;
}

.separator:not(:empty)::before {
    margin-right: 0.5rem;
}

.separator:not(:empty)::after {
    margin-left: 0.5rem;
}

.rating-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.rating,
.location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    color: #FFC107;
}

.location i {
    color: var(--danger-color);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: var(--smooth-transition);
    border: 1px solid #EAECF0;
}

.btn-rent {
    background: rgba(67, 85, 250, 0.1);
    color: var(--primary-color);
}

.btn-rent:hover {
    background: var(--primary-color);
    color: white;
}

.btn-buy {
    background: rgba(255, 193, 7, 0.1);
    color: #E4A00B;
}

.btn-buy:hover {
    background: #E4A00B;
    color: white;
}

.btn-cart {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.btn-cart:hover {
    background: var(--success-color);
    color: white;
}

/* No Products State */
.no-products {
    padding: 3rem 1rem;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.no-products img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-products h3 {
    color: #344054;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-products p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .filter-column {
        display: none;
    }

    .mobile-filter-header {
        display: block;
    }

    .products-column {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .product-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Animation for filter changes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-item {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   MOBILE CHAT FULLSCREEN FIX
   Tambahkan ke bagian paling bawah custom.css
   ============================================ */

@media (max-width: 767px) {

    /* Drawer fullscreen */
    #kt_drawer_chat {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        top: 0 !important;
        right: 0 !important;
        transform: translateX(100%) !important;
        z-index: 1050 !important;
    }

    #kt_drawer_chat.drawer-on {
        transform: translateX(0) !important;
    }

    /* Card fullscreen */
    #kt_drawer_chat .card {
        border-radius: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border: none !important;
    }

    /* Header fixed top */
    #kt_drawer_chat .card-header,
    #kt_drawer_chat_messenger_header,
    #kt_chat_contacts_header {
        flex-shrink: 0 !important;
        border-radius: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 12 !important;
        background: var(--bs-body-bg) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    /* Body scrollable dengan padding untuk footer */
    #kt_drawer_chat .card-body,
    #kt_drawer_chat_messenger_body,
    #kt_chat_contacts_body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1rem !important;
        padding-bottom: 90px !important;
        /* Ruang untuk footer */
    }

    /* Footer FIXED di bawah - TANPA BOTTOM NAV */
    #kt_drawer_chat .card-footer,
    #kt_drawer_chat_messenger_footer {
        flex-shrink: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        /* Di atas bottom nav */
        background: var(--bs-body-bg) !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08) !important;
        padding: 0.75rem 1rem !important;
        border-top: 1px solid var(--bs-border-color) !important;
        margin: 0 !important;
    }

    /* SEMBUNYIKAN bottom nav saat chat drawer terbuka */
    body.drawer-on .bottom-nav {
        display: none !important;
    }

    /* Textarea styling */
    #kt_drawer_chat_messenger_footer textarea {
        max-height: 80px !important;
        min-height: 40px !important;
        resize: none !important;
        font-size: 16px !important;
        /* Prevent iOS zoom */
        border: 1px solid var(--bs-border-color) !important;
        border-radius: 8px !important;
        padding: 0.5rem 0.75rem !important;
        background: var(--bs-body-bg) !important;
    }

    /* Form layout */
    #kt_drawer_chat_messenger_footer form {
        display: flex !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    #kt_drawer_chat_messenger_footer .form-control-flush {
        flex: 1 !important;
    }

    /* Button kirim */
    #kt_drawer_chat_messenger_footer .btn-primary {
        flex-shrink: 0 !important;
        height: 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }

    /* Button icon di footer */
    #kt_drawer_chat_messenger_footer .btn-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
    }

    /* Button back */
    #btnCloseDrawer,
    #kt_drawer_chat .btn-icon[wire\:click*="selectThread"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    /* Prevent body scroll */
    body.drawer-on {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
    }

    /* Overlay */
    #kt_drawer_chat_overlay {
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1040 !important;
    }

    /* Message bubbles */
    #kt_drawer_chat .mw-lg-400px {
        max-width: calc(100vw - 100px) !important;
    }

    /* Avatar size */
    #kt_drawer_chat_messenger_body .rounded-circle {
        width: 32px !important;
        height: 32px !important;
    }

    /* List contacts */
    #kt_chat_contacts_body .symbol {
        width: 40px !important;
        height: 40px !important;
    }

    #kt_chat_contacts_body .d-flex.flex-stack {
        padding: 0.75rem 0 !important;
    }

    /* Button back layout di list header */
    #kt_chat_contacts_header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    #btnCloseDrawer {
        order: -1 !important;
        margin-right: 0.5rem !important;
    }

    #kt_chat_contacts_header h1 {
        flex: 1 !important;
        margin-bottom: 0.5rem !important;
    }

    #kt_chat_contacts_header form {
        width: 100% !important;
        order: 3 !important;
    }

    /* Textarea focus */
    #kt_drawer_chat_messenger_footer textarea:focus {
        border-color: var(--bs-primary) !important;
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
        outline: none !important;
    }

    /* Safe area iOS */
    #kt_drawer_chat {
        padding-top: env(safe-area-inset-top, 0) !important;
    }

    #kt_drawer_chat_messenger_footer {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
    }
}

/* iOS keyboard fix */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {

        #kt_drawer_chat,
        #kt_drawer_chat .card {
            height: -webkit-fill-available !important;
        }
    }
}

/* Dark mode */
[data-bs-theme="dark"] {
    @media (max-width: 767px) {

        #kt_drawer_chat .card-header,
        #kt_drawer_chat .card-footer {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }
    }
}

/* Smooth animation */
#kt_drawer_chat {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Scroll behavior */
#kt_drawer_chat [data-kt-element="messages"] {
    scroll-behavior: smooth !important;
}

/* Verification offcanvas */
.verification-offcanvas {
    --bs-offcanvas-border-radius: 1.5rem 1.5rem 0 0;
    --bs-offcanvas-height: min(88vh, 640px);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.verification-step-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

/* Remove any row class that might cause 3 columns */
.verification-step-list.row {
    display: grid !important;
}

.verification-step-list .col {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
}

/* Desktop specific - STILL 1 column */
@media (min-width: 992px) {
    .verification-offcanvas {
        inset: auto 0 0;
        width: min(650px, 50vw);
        margin-left: auto;
        margin-right: auto;
        bottom: 0;
        --bs-offcanvas-height: auto;
        max-height: 85vh;
        padding: 1.75rem 2rem 2rem;
        box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    }

    .verification-offcanvas .offcanvas-body {
        padding-top: 0.5rem;
    }

    .verification-content {
        max-width: 100%;
        width: 100%;
    }

    /* FORCE 1 column even on desktop */
    .verification-step-list {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .verification-actions {
        padding: 1.5rem 1.75rem;
    }

    .verification-actions .btn {
        width: auto;
        min-width: 150px;
    }
}

/* Home mobile finance card */
.mobile-finance-card .nav-pills {
    border-radius: 1rem;
    padding: 0.4rem;
    background: rgba(93, 113, 221, 0.06);
}

.mobile-finance-card .nav-link {
    border-radius: 0.85rem;
    color: #5e6278;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-finance-card .nav-link:hover {
    background: rgba(27, 197, 189, 0.08);
    color: #1bc5bd;
}

.mobile-finance-card .nav-link.active {
    background: #1bc5bd;
    color: #fff;
    box-shadow: 0 8px 18px rgba(27, 197, 189, 0.25);
}

.mobile-finance-card .badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
}

.mobile-home-wrapper {
    padding: 1rem 1.25rem 5rem;
    background: #f6f7fb;
}

.mobile-home-hero {
    background: linear-gradient(145deg, #ff5f6d 0%, #ffc371 100%);
    color: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(255, 95, 109, 0.25);
    margin-bottom: 1.5rem;
}

.mobile-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-time-weather {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-time {
    font-size: 1.4rem;
}

.mobile-weather {
    font-size: 0.85rem;
    opacity: 0.9;
}

.mobile-hero-icons .hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-search-bar {
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    gap: 0.75rem;
    color: #5e6278;
}

.mobile-search-bar input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    color: #373a41;
}

.mobile-search-bar input:focus {
    background: transparent;
    box-shadow: none;
}

.mobile-quick-snapshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.snapshot-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.snapshot-title {
    font-size: 0.75rem;
    opacity: 0.85;
}

.snapshot-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.snapshot-link {
    font-size: 0.75rem;
    color: #fff;
    text-decoration: underline;
    opacity: 0.9;
}

.mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-item {
    border: none;
    background: #fff;
    border-radius: 1.2rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #373a41;
}

.action-item:focus {
    outline: none;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.bg-soft-success {
    background: rgba(27, 197, 189, 0.18);
    color: #109086;
}

.bg-soft-primary {
    background: rgba(58, 87, 232, 0.18);
    color: #3a57e8;
}

.bg-soft-warning {
    background: rgba(255, 171, 0, 0.18);
    color: #d09300;
}

.bg-soft-danger {
    background: rgba(255, 99, 132, 0.18);
    color: #ff4560;
}

.bg-soft-info {
    background: rgba(0, 157, 255, 0.18);
    color: #0088cc;
}

.bg-soft-purple {
    background: rgba(155, 81, 224, 0.18);
    color: #8a36d9;
}

.action-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-feature-card {
    background: linear-gradient(125deg, #fdf2ff 0%, #fff4eb 100%);
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 18px 35px rgba(249, 128, 255, 0.15);
    margin-bottom: 1.5rem;
}

.feature-media img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.feature-content {
    flex: 1;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 77, 106, 0.15);
    color: #ff4d6a;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #2d264b;
}

.feature-desc {
    font-size: 0.8rem;
    color: #5e6278;
    margin-bottom: 0.6rem;
}

.feature-actions .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
}

.mobile-section-card {
    background: #fff;
    border-radius: 1.4rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2f2a45;
}

.section-link {
    font-size: 0.8rem;
    color: #1bc5bd;
    text-decoration: none;
    font-weight: 600;
}

.mobile-section-card .card,
.mobile-section-card .card-body {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.mobile-section-card .card {
    margin: 0;
}

@media (max-width: 767.98px) {
    .verification-offcanvas {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        --bs-offcanvas-height: min(92vh, 680px);
    }

    .verification-actions {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .notification-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 8px;
    }

    .notification-item {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        padding: .75rem 1rem;
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
        margin-bottom: .5rem;
    }

    .notification-item .icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        font-size: 1.1rem;
    }

    .notification-item .content {
        flex: 1;
    }

    .notification-item .content h6 {
        font-size: .9rem;
        font-weight: 600;
        margin: 0 0 .25rem;
    }

    .notification-item .content p {
        font-size: .8rem;
        margin: 0;
        color: #6c757d;
    }

    .notification-item .time {
        font-size: .7rem;
        color: #aaa;
        margin-left: auto;
    }
}

.offcanvas-bottom-half {
    height: 60% !important;
    /* tampil setengah layar */
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-top: 1px solid #dee2e6;
}