:root {
    --primary: #005648;
    --primary-container: #1f6f5f;
    --on-primary: #ffffff;
    --secondary: #006b56;
    --secondary-container: #8cf6d6;
    --on-secondary-container: #00725b;
    --tertiary: #005733;
    --tertiary-fixed: #95f7bb;
    --tertiary-fixed-dim: #7adaa1;
    --on-tertiary-fixed: #002110;
    --surface: #f9f9f9;
    --surface-container-lowest: #ffffff;
    --surface-container: #eeeeee;
    --surface-container-high: #e8e8e8;
    --surface-container-highest: #e2e2e2;
    --on-surface: #1a1c1c;
    --on-surface-variant: #3f4945;
    --outline: #6f7975;
    --background: #f9f9f9;
    --error: #ba1a1a;
    --error-container: #ffdad6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--on-surface);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
.headline-font {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-primary-container {
    background-color: var(--primary-container) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.bg-secondary-container {
    background-color: var(--secondary-container) !important;
}

.bg-tertiary-fixed {
    background-color: var(--tertiary-fixed) !important;
}

.bg-surface-lowest {
    background-color: var(--surface-container-lowest) !important;
}

.bg-surface-container {
    background-color: var(--surface-container) !important;
}

.bg-surface-container-high {
    background-color: var(--surface-container-high) !important;
}

.bg-surface-container-highest {
    background-color: var(--surface-container-highest) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.text-on-primary {
    color: var(--on-primary) !important;
}

.text-on-surface-variant {
    color: var(--on-surface-variant) !important;
}

.text-tertiary-fixed {
    color: var(--tertiary-fixed) !important;
}

.text-on-tertiary-fixed {
    color: var(--on-tertiary-fixed) !important;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.frosted-glass {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
}

.custom-shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(31, 111, 95, 0.1);
}

.transition-custom {
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background-color: var(--primary-container);
    color: var(--on-primary);
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    border: none;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--primary);
    transform: scale(0.98);
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: white;
    transform: scale(0.98);
}

/* ========== NAVBAR MANUAL (seperti asli) ========== */
.navbar-manual {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition:
        background-color 0.3s,
        backdrop-filter 0.3s;
}

.navbar-scrolled {
    background-color: rgba(0, 86, 72, 0.95);
    backdrop-filter: blur(8px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .navbar-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-area img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: none;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--on-primary);
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 32px;
}

.desktop-menu a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: var(--tertiary-fixed);
}

.desktop-menu a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--tertiary-fixed);
    padding-bottom: 4px;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--on-primary);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--on-primary);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: var(--tertiary-fixed);
    color: var(--on-tertiary-fixed);
    font-size: 10px;
    font-weight: bold;
    border-radius: 999px;
    padding: 2px 6px;
}

/* Notification Styles */
.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 86, 72, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 9999;
    border: 1px solid rgba(0, 86, 72, 0.08);
}

.notification-dropdown.show {
    display: block !important;
}

.notification-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 86, 72, 0.1);
}

.notification-header h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

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

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

.notification-list::-webkit-scrollbar-thumb {
    background: var(--primary-container);
    border-radius: 3px;
}

.notification-item {
    display: block;
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: linear-gradient(135deg, rgba(0, 86, 72, 0.04) 0%, rgba(31, 111, 95, 0.06) 100%);
}

.notification-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--secondary-container) 0%, rgba(140, 246, 214, 0.3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.notification-item:hover .notification-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    transform: scale(1.05);
}

.notification-icon .material-symbols-outlined {
    font-size: 20px;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-surface);
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--outline);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-time::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--outline);
}

.notification-empty .material-symbols-outlined {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
    display: block;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--on-surface-variant);
}

/* Unread notification indicator */
.notification-item.unread {
    background: rgba(0, 86, 72, 0.02);
}

.notification-item.unread .notification-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 86, 72, 0.2);
}

.notification-item.unread .notification-title {
    font-weight: 600;
    color: var(--primary);
}

.menu-btn {
    background: transparent;
    border: none;
    color: var(--on-primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }

    .menu-btn {
        display: none;
    }
}

/* Mobile menu dropdown */
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background-color: rgba(0, 86, 72, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    display: block;
}

.mobile-menu a.active {
    color: var(--tertiary-fixed);
    font-weight: bold;
}

.mobile-menu.show {
    display: flex;
}

/* Product card */
.product-card {
    background-color: var(--surface-container-lowest);
    border-radius: 1rem;
    padding: 1rem;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: none;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(31, 111, 95, 0.15);
}

.product-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    width: 100%;
}

.badge-hot {
    background-color: var(--tertiary-fixed);
    color: var(--on-tertiary-fixed);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    position: absolute;
    top: 8px;
    left: 8px;
}

.badge-new {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    position: absolute;
    top: 8px;
    left: 8px;
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--secondary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background-color: var(--primary);
    transform: scale(0.95);
}

.category-card {
    background-color: var(--surface-container-lowest);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.category-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 86, 72, 0.1);
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.category-card:hover .category-icon {
    background-color: var(--primary);
    color: white;
}

/* Category Card Homepage - Improved */
.category-card-home {
    background: linear-gradient(135deg, var(--surface-container-lowest) 0%, #f0f8f0 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 86, 72, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card-home:hover {
    box-shadow: 0 12px 32px rgba(0, 86, 72, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 86, 72, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.category-icon-home {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 86, 72, 0.08) 0%, rgba(0, 86, 72, 0.15) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    color: var(--primary);
}

.category-icon-home .material-symbols-outlined {
    font-size: 2rem;
}

.category-card-home:hover .category-icon-home {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 86, 72, 0.3);
}

.category-product-count {
    display: inline-block;
    background-color: rgba(0, 86, 72, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.category-card-home:hover .category-product-count {
    background-color: var(--primary);
    color: white;
}

/* Hero section - menggunakan dvh */
.hero-section {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.testimonial-card {
    background-color: var(--surface-container-lowest);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(31, 111, 95, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.rating-star {
    color: #ffb300;
    font-size: 0.9rem;
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
    vertical-align: middle;
}

.btn-outline-secondary-border {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 999px;
    font-weight: bold;
    padding: 0.5rem 1.8rem;
    transition: all 0.2s;
    background: transparent;
}

.btn-outline-secondary-border:hover {
    background-color: var(--secondary);
    color: white;
}

/* Footer tanpa border radius */
footer {
    background-color: var(--surface-container-highest);
    padding-top: 2rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
}

.container-custom {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* product */
.filter-toggle-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .filter-sidebar {
        display: none !important;
    }

    .filter-sidebar.show {
        display: block !important;
        margin-bottom: 1.5rem;
    }

    .filter-toggle-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* Search Input */
.search-input {
    background-color: var(--surface-container);
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-size: 0.9rem;
}

.search-input:focus {
    box-shadow: 0 0 0 2px var(--primary);
    background-color: var(--surface-container);
    outline: none;
}

/* Tombol Detail (hijau) */
.btn-product-detail {
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    transition: all 0.2s;
}

.btn-product-detail:hover {
    background-color: var(--primary-container);
}

.btn-product-detail:focus {
    box-shadow: 0 0 0 2px var(--primary);
    outline: none;
}

/* Tombol Pagination */
.btn-pagination {
    border: 1px solid var(--outline);
    color: var(--outline);
    background: transparent;
}

.btn-pagination:hover {
    background-color: var(--surface-container);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-pagination:focus {
    box-shadow: 0 0 0 2px var(--primary);
    outline: none;
}

/* Filter Category Button */
.filter-category-btn {
    transition: all 0.2s;
}

.filter-category-btn span:last-child {
    color: var(--outline);
}

.filter-category-btn.active {
    background-color: var(--tertiary-fixed) !important;
    color: var(--on-tertiary-fixed) !important;
}

.filter-category-btn.active span:last-child {
    color: var(--on-tertiary-fixed);
}

/* Product Card */
.product-card {
    background-color: var(--surface-container-lowest);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(31, 111, 95, 0.08);
}

.product-image-wrapper {
    background-color: var(--surface-container);
    padding: 1rem;
    text-align: center;
    aspect-ratio: 1 / 1;
}

.product-image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    mix-blend-mode: multiply;
    width: 100%;
    height: 100%;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--on-surface);
}

.product-description {
    font-size: 0.875rem;
    color: var(--outline);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Hilangkan efek biru default */
button,
button:focus,
button:active,
select,
select:focus,
a,
a:focus {
    outline: none;
}

/* product-detail */
.product-detail-ambient-shadow {
    box-shadow:
        0 10px 15px -3px rgba(31, 111, 95, 0.05),
        0 4px 6px -2px rgba(31, 111, 95, 0.03);
}

.product-detail-thumbnail-btn {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 0;
    background: none;
}

.product-detail-thumbnail-btn.active {
    border-color: var(--primary-container) !important;
    box-shadow: 0 0 0 2px var(--primary-container);
}

.product-detail-main-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
}

.product-detail-main-img-wrapper img {
    transition: transform 0.5s ease;
}

.product-detail-main-img-wrapper:hover img {
    transform: scale(1.1);
}

.product-detail-qty-input::-webkit-outer-spin-button,
.product-detail-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-qty-input {
    -moz-appearance: textfield;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

/* Opsi Pilihan Unit Custom */
.product-detail-unit-btn {
    border: 1px solid var(--outline);
    color: var(--on-surface-variant);
    transition: all 0.2s ease;
}

.product-detail-unit-check:checked + .product-detail-unit-btn {
    background-color: var(--secondary-container) !important;
    color: var(--on-secondary-container) !important;
    border-color: var(--primary-container) !important;
    font-weight: 600;
}

/* ==========================================================================
         OPTIMISASI KHUSUS VERSI HP (Tanpa merusak / mengubah versi laptop Anda)
         ========================================================================== */
@media (max-width: 576px) {
    .product-detail-main {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Mengurangi padding card agar ruang konten di layar HP lebih luas */
    .product-detail-card,
    .product-detail-reviews {
        padding: 1rem !important;
    }

    /* Penyesuaian ukuran teks judul di HP */
    .product-detail-header h1 {
        font-size: 1.35rem !important;
    }

    .product-detail-price {
        font-size: 1.6rem !important;
    }

    /* Tombol variasi & kuantitas bertumpuk rapi secara vertikal di HP */
    .product-detail-unit-selection,
    .product-detail-actions .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .product-detail-unit-selection .d-flex,
    .product-detail-unit-selection .d-flex > div {
        width: 100%;
    }

    .product-detail-unit-btn {
        width: 100%;
        text-align: center;
    }

    /* Tombol Masukkan Keranjang & Beli Sekarang menjadi full-width di HP */
    .product-detail-actions .row .col-12 {
        width: 100% !important;
    }

    /* Mencegah teks breadcrumb meluber keluar layar HP */
    .breadcrumb {
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb-item.active {
        display: inline-block;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-truncate: ellipsis;
        vertical-align: bottom;
    }
}

/* contact */
.contact-hero {
    position: relative;
    height: 350px;
    min-height: 280px;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .contact-hero {
        height: 409px;
    }
}

.contact-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 86, 72, 0.4);
    backdrop-filter: blur(2px);
}

.contact-glow-card {
    box-shadow: 0 4px 10px rgba(31, 111, 95, 0.05);
    transition: all 0.3s ease;
}

.contact-glow-card:hover {
    box-shadow: 0 8px 20px rgba(31, 111, 95, 0.08);
    transform: translateY(-2px);
}

.contact-form-control {
    background-color: #ffffff;
    border: 1px solid var(--surface-container);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--on-surface);
}

.contact-form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(0, 107, 86, 0.2);
    outline: 0;
}

.contact-btn-submit {
    background-color: var(--primary-container) !important;
    color: #ffffff !important;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn-submit:hover {
    background-color: var(--primary) !important;
    transform: scale(1.02);
}

.contact-btn-submit:active {
    transform: scale(0.95);
}

.contact-icon-box {
    background-color: rgba(0, 107, 86, 0.1);
    color: var(--secondary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-map-wrapper {
    height: 300px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.contact-map-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(1.5rem);
    opacity: 0;
    transition: all 0.5s ease;
}

.contact-map-wrapper:hover .contact-map-info {
    transform: translateY(0);
    opacity: 1;
}

.btn-filter-review {
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-filter-review.active {
    background-color: var(--md-sys-color-primary-container, #98f0a1) !important;
    color: var(--md-sys-color-on-primary-container, #001d3d) !important;
    font-weight: 600 !important;
}

.btn-filter-review.unactive {
    background-color: var(--md-sys-color-surface-container, #f0f4f9) !important;
    color: var(--md-sys-color-on-surface-variant, #43474e) !important;
    cursor: pointer;
}

.btn-filter-review:hover {
    opacity: 0.9;
}

.custom-pagination-catalog .pagination {
    display: flex !important;
    gap: 12px !important;
    /* Jarak antar bulatan sedikit diperlebar agar rapi */
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-pagination-catalog .page-item {
    margin: 0 !important;
    list-style: none !important;
}

/* --- STYLE SEMUA TOMBOL (ANGKA & PANAH) --- */
.custom-pagination-catalog .page-item .page-link {
    color: #4a4a4a !important;
    background-color: transparent !important;
    border: 1px solid #e0e0e0 !important;
    /* Menambahkan border lingkaran tipis standar */
    border-radius: 50% !important;
    /* Membuat bulatan sempurna */
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* --- KHUSUS TOMBOL ANGKA (Yang Tidak Aktif) --- */
/* Menghilangkan border pada tombol angka biasa agar mirip prototipe (hanya panah & aktif yang ber-border/ber-isi) */
.custom-pagination-catalog
    .page-item:not(.disabled)
    .page-link:not([href="#"]) {
    /* Jika Anda ingin angka biasa TIDAK memiliki border seperti di gambar, aktifkan baris di bawah ini: */
    /* border-color: transparent !important; */
}

/* --- TOMBOL HOVER (Saat Kursor Diatas Tombol) --- */
.custom-pagination-catalog .page-item .page-link:hover {
    background-color: #f5f5f5 !important;
    border-color: #0b5345 !important;
    color: #0b5345 !important;
}

/* --- TOMBOL HALAMAN AKTIF (Bulatan Hijau Pekat Tanpa Border Luar) --- */
.custom-pagination-catalog .page-item.active .page-link {
    background-color: #0b5345 !important;
    /* Hijau tua Tanjoeng Farm */
    border-color: #0b5345 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

/* --- TOMBOL PANAH MATI / DISABLED (Misal: Panah kiri di halaman 1) --- */
.custom-pagination-catalog .page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: #e8e8e8 !important;
    /* Border lingkaran panah tetap ada tapi samar */
    color: #cccccc !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* RESPONSIVITAS DI MOBILE (HP) */
@media (max-width: 576px) {
    .custom-pagination-catalog .pagination {
        gap: 8px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }

    .custom-pagination-catalog .page-item .page-link {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
}

/* carts */
.btn-primary-custom:hover {
    background-color: var(--primary-container);
}

.btn-outline-secondary-custom {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline-secondary-custom:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* PERBAIKAN: Tombol hapus dipojokkan dan kursor menggunakan pointer */
.cart-delete-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.cart-delete-btn:hover {
    color: var(--error);
    background-color: #f8f9fa;
}

@media (max-width: 576px) {
    .cart-delete-btn {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
}

/* Hover kartu produk */
.cart-product-card {
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.cart-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.cart-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Quantity button (statis) */
.cart-qty-btn-static {
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.6;
}

/* Font */
.cart-headline-font {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

.cart-price-font {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Desktop: summary sticky top */
.cart-sticky-top {
    position: sticky;
    top: 20px;
}

/* Mobile: summary fixed bottom */
@media (max-width: 768px) {
    .cart-summary-fixed-mobile {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        z-index: 1030;
        background: white;
        border-radius: 1rem 1rem 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-top: 1px solid var(--secondary-container);
    }

    .cart-products-container {
        padding-bottom: 240px;
    }

    .cart-summary-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .cart-summary-mobile {
        display: none;
    }
}

.profile-page-header {
    background-color: transparent !important;
    color: var(--on-surface);
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--surface-container-highest);
}

.profile-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.profile-header-content p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-sidebar-card {
    background: var(--surface-container-lowest);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 2rem;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-container), #d0f5e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.profile-avatar i {
    font-size: 2.8rem;
    color: var(--primary);
}

.profile-mobile-header {
    display: none;
    background: var(--surface-container-lowest);
    padding: 1.25rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    align-items: center;
    gap: 1rem;
}
.profile-mobile-avatar {
    width: 55px;
    height: 55px;
    background: var(--secondary-container);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-mobile-avatar i {
    font-size: 1.8rem;
    color: var(--primary);
}

.profile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    font-weight: 500;
    color: var(--on-surface-variant);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition-smooth);
}

.profile-nav-item i {
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.profile-nav-item:hover {
    background: var(--surface-container);
    color: var(--primary);
    padding-left: 1.5rem;
}

.profile-nav-item.active {
    background: rgba(0, 86, 72, 0.08);
    color: var(--primary);
    font-weight: 600;
}
.profile-nav-item.active:hover {
    background: rgba(0, 86, 72, 0.12);
    padding-left: 1.25rem;
}

.profile-logout-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-container-high);
}

.profile-btn-logout {
    width: 100%;
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: 16px;
    padding: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.profile-btn-logout:hover {
    background: var(--error-container);
    color: var(--error);
    box-shadow: 0 4px 12px rgba(186, 26, 26, 0.1);
}

.profile-content-card {
    background: var(--surface-container-lowest);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 550px;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--background);
    padding-bottom: 1rem;
}

.profile-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--on-surface);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.profile-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--outline);
}

.profile-info-value {
    font-weight: 600;
    margin-top: 0.25rem;
    color: var(--on-surface);
}

.profile-address-item {
    background: var(--surface-container-lowest);
    border: 1px solid var(--surface-container-highest);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.profile-address-item.default {
    border-left: 5px solid var(--primary);
    background: linear-gradient(
        90deg,
        rgba(0, 86, 72, 0.01) 0%,
        var(--surface-container-lowest) 100%
    );
    border-color: var(--surface-container-highest)
        var(--surface-container-highest) var(--surface-container-highest)
        var(--primary);
}

.profile-address-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-container);
    border: none;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.profile-icon-btn:hover {
    background: var(--surface-container-highest);
    color: var(--primary);
}
.profile-icon-btn.text-danger:hover {
    background: var(--error-container);
    color: var(--error) !important;
}

.profile-order-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.65rem;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 0.25rem 0.25rem 0.85rem 0.25rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}
.profile-order-filters::-webkit-scrollbar {
    display: none;
}

.profile-filter-chip {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0 !important;
    width: auto !important;
    background: var(--surface);
    border: 1px solid var(--surface-container-highest);
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--on-surface-variant);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.profile-filter-chip:hover {
    background: var(--surface-container);
    color: var(--primary);
    border-color: var(--outline);
}

.profile-filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.profile-filter-chip .count {
    display: inline-block;
    background: var(--surface-container-highest);
    color: var(--on-surface-variant);
    border-radius: 30px;
    padding: 0.1rem 0.5rem;
    margin-left: 0.4rem;
    font-size: 0.75rem;
}
.profile-filter-chip.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.profile-order-item {
    background: var(--surface);
    border: 1px solid var(--surface-container-high);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    width: 100%;
}
.profile-order-item:hover {
    background: var(--surface-container-lowest);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.profile-order-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-order-status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-btn-outline-sm {
    background: transparent;
    border: 1px solid var(--outline);
    border-radius: 12px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    transition: var(--transition-smooth);
    cursor: pointer;
}
.profile-btn-outline-sm:hover {
    background: var(--surface-container);
    border-color: var(--primary);
    color: var(--primary);
}

.profile-btn-pill-custom {
    border-radius: 14px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    color: white;
}
.profile-btn-pill-custom.bg-primary-custom:hover {
    background-color: var(--primary-container) !important;
    color: white;
}

/* Modal style dipertahankan tapi tidak digunakan (modal alamat dihapus) */
.modal-modern .modal-content {
    border-radius: 24px;
    border: none;
}
.modal-modern .modal-header {
    background: var(--primary);
    color: white;
    border: none;
}
.form-control-custom {
    border-radius: 12px;
    border: 1.5px solid var(--surface-container-highest);
    padding: 0.75rem 1rem;
    width: 100%;
    background-color: var(--surface);
    transition: var(--transition-smooth);
}

/* RESPONSIF SAMA PERSIS */
@media (max-width: 992px) {
    .profile-page-header {
        padding: 1.5rem 1rem 0.75rem;
        border-bottom: 1px solid var(--surface-container-high);
    }
    .profile-header-content h1 {
        font-size: 1.3rem;
    }
    .profile-header-content p {
        font-size: 0.8rem;
    }

    .profile-container {
        padding: 1rem 0.75rem 3rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
    }

    .profile-mobile-header {
        display: flex;
    }

    .profile-sidebar-card {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--background);
        padding: 0.5rem 0.25rem;
        margin-bottom: 1rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--surface-container-high);
        overflow-x: auto !important;
        scrollbar-width: none;
        width: 100%;
    }
    .profile-sidebar-card::-webkit-scrollbar {
        display: none;
    }
    .profile-sidebar-card .text-center,
    .profile-sidebar-card .profile-logout-wrapper {
        display: none;
    }

    .profile-nav-menu {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }

    .profile-nav-item {
        width: auto !important;
        white-space: nowrap;
        padding: 0.6rem 1.1rem;
        border-radius: 30px;
        font-size: 0.85rem;
        background: var(--surface-container-lowest);
        border: 1px solid var(--surface-container-high);
        flex-shrink: 0 !important;
    }
    .profile-nav-item:hover {
        padding-left: 1.1rem;
        background: var(--surface-container);
    }
    .profile-nav-item i {
        font-size: 1rem;
        margin-right: -0.25rem;
    }
    .profile-nav-item.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .profile-content-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        min-height: auto;
        width: 100%;
        overflow: hidden;
    }

    .profile-section-header {
        margin-bottom: 1rem;
        background: var(--surface-container-lowest);
        padding: 1rem;
        border-radius: 16px;
        border-bottom: none;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .profile-address-item {
        padding: 1rem;
        background: var(--surface-container-lowest);
        border-radius: 16px;
    }

    .profile-order-item {
        padding: 1.25rem 1rem;
        background: var(--surface-container-lowest);
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        box-sizing: border-box;
    }

    .profile-order-row-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
        width: 100%;
    }

    .profile-order-row-top > div:first-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .profile-order-item .profile-order-status-badge {
        align-self: flex-start;
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }

    .profile-order-row-top > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: none !important;
        padding-top: 0;
        margin-top: 0;
        text-align: left !important;
    }
    .profile-order-item .text-primary-custom.fs-6 {
        font-size: 1.05rem !important;
        display: block;
        margin-bottom: 0 !important;
    }

    .profile-order-item .profile-btn-outline-sm {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Data diri tanpa card - tampilan daftar bersih */
.profile-data-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}

.profile-data-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9edf0;
    padding: 1rem 0;
}

.profile-data-row:last-child {
    border-bottom: none;
}

.profile-data-label {
    width: 180px;
    flex-shrink: 0;
    font-weight: 600;
    color: #2c3e2f;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.profile-data-label i {
    color: var(--primary, #2b6e3c);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.profile-data-value {
    flex: 1;
    color: #1f2a1b;
    font-weight: 500;
    word-break: break-word;
}

/* Responsif: label di atas pada layar kecil */
@media (max-width: 640px) {
    .profile-data-row {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.9rem 0;
    }
    .profile-data-label {
        width: 100%;
        margin-bottom: 0.2rem;
    }
}


/* ============================================================
   MOBILE IMPROVEMENTS — Buyer Side
   Target: layar 320px–576px
   ============================================================ */

/* ── Touch target minimum 44px — hanya tombol CTA utama ── */
@media (max-width: 767px) {
    /* Hanya tombol CTA penting yang perlu 44px */
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-add-cart,
    .contact-btn-submit,
    input[type="submit"] {
        min-height: 44px;
    }
    /* Icon button di navbar tetap 44px untuk mudah diklik */
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    /* Tombol biasa Bootstrap — reset, jangan kebesaran */
    .btn {
        min-height: unset;
    }
}

/* ── Navbar mobile ── */
@media (max-width: 767px) {
    .navbar-container {
        padding-left: 12px;
        padding-right: 12px;
        height: 56px;
    }
    .mobile-menu {
        top: 56px;
        padding: 12px 16px;
        gap: 4px;
    }
    .mobile-menu a {
        padding: 12px 8px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-menu a:last-child {
        border-bottom: none;
    }
    .logo-area img {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }
}

/* ── Hero section mobile ── */
@media (max-width: 576px) {
    .hero-section {
        min-height: 100svh;
        align-items: center;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-content .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    .hero-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Homepage section spacing ── */
@media (max-width: 576px) {
    section, .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .container-custom {
        padding-left: 12px;
        padding-right: 12px;
    }
    h2.fw-bold, h2.headline-font {
        font-size: 1.4rem;
    }

    /* ── Stats section (100% Organik, dll) ── */
    .stat-icon {
        font-size: 2rem;
    }
    .row.g-4 > .col-6 h5 {
        font-size: 0.9rem;
    }
    .row.g-4 > .col-6 p.small {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* ── Kategori Produk mobile ── */
    .category-card-home {
        padding: 1.25rem 0.75rem;
        border-radius: 0.75rem;
    }
    .category-icon-home {
        width: 56px;
        height: 56px;
        margin-bottom: 0.6rem;
    }
    .category-icon-home .material-symbols-outlined {
        font-size: 1.6rem;
    }
    .category-card-home h5 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem !important;
    }
    .category-card-home p.small {
        font-size: 0.72rem;
        line-height: 1.3;
    }
    .category-product-count {
        font-size: 0.68rem;
        padding: 0.2rem 0.55rem;
    }
}

/* ── Product catalog — grid 2 kolom di HP ── */
@media (max-width: 575px) {
    .product-card {
        border-radius: 0.75rem;
    }
    .product-image-wrapper {
        padding: 0.5rem;
    }
    .product-title {
        font-size: 0.85rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .product-description {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ── Checkout mobile ── */
@media (max-width: 767px) {
    .checkout-summary-card {
        border-radius: 1rem 1rem 0 0;
    }
}

/* ── Auth pages mobile ── */
@media (max-width: 576px) {
    .auth-card {
        border-radius: 1.25rem;
        padding: 1.5rem 1rem !important;
        margin: 0.5rem;
    }
    .auth-card h2 {
        font-size: 1.3rem;
    }
}

/* ── Order history detail mobile ── */
@media (max-width: 576px) {
    .order-detail-section {
        padding: 1rem !important;
        border-radius: 1rem;
    }
    .order-timeline-step {
        font-size: 0.8rem;
    }
}

/* ── Notification dropdown mobile ── */
@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 16px);
        right: -8px !important;
        left: auto !important;
        border-radius: 12px;
    }
}

/* ── Safe area inset (notch/home bar) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cart-summary-fixed-mobile {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .mobile-menu {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ── Footer mobile ── */
@media (max-width: 576px) {
    footer {
        padding-top: 2rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* ── Overflow table prevention ── */
@media (max-width: 576px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    .table {
        font-size: 0.82rem;
    }
    .table td, .table th {
        padding: 0.6rem 0.75rem;
        white-space: nowrap;
    }
}

/* ── Review page mobile ── */
@media (max-width: 576px) {
    .review-card {
        padding: 1rem !important;
        border-radius: 1rem;
    }
    .review-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Address form mobile ── */
@media (max-width: 576px) {
    .address-form-card {
        padding: 1rem !important;
        border-radius: 1rem;
    }
    .address-form-card .row > .col-md-6,
    .address-form-card .row > .col-sm-6 {
        margin-bottom: 0.5rem;
    }
}

/* ── Scrollbar thin untuk mobile ── */
@media (max-width: 767px) {
    * {
        scrollbar-width: thin;
    }
}

/* ── Prevent zoom on input iOS ── */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   Password Checker Checklist
   ═══════════════════════════════════════════════════════ */
.pw-checklist-wrap {
    background: #f4f9f6;
    border: 1px solid #d4e9df;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.pw-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
}

@media (max-width: 480px) {
    .pw-checklist {
        grid-template-columns: 1fr;
    }
}

.pw-rule {
    color: #888;
    transition: color 0.2s;
}

.pw-rule--pass {
    color: #16a34a;
}

.pw-rule--fail {
    color: #dc2626;
}

.pw-rule-icon {
    font-size: 1rem !important;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1, 'wght' 400;
    transition: color 0.2s;
}

.pw-rule--pass .pw-rule-icon { color: #16a34a; }
.pw-rule--fail .pw-rule-icon { color: #dc2626; }

/* Tombol submit saat disabled */
.btn-disabled-custom,
button:disabled.btn-primary-auth,
button:disabled.btn-modern-primary,
button:disabled.btn-success {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

/* ═══════════════════════════════════════════════════════
   Mobile Bottom Navigation Bar
   ═══════════════════════════════════════════════════════ */
.bottom-nav-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.bottom-nav-mobile .nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.bottom-nav-mobile .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    width: 20%;
    height: 100%;
    transition: color 0.2s;
    position: relative;
}

.bottom-nav-mobile .nav-item:hover,
.bottom-nav-mobile .nav-item:active {
    color: var(--primary);
}

.bottom-nav-mobile .nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-mobile .nav-item .material-symbols-outlined {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.bottom-nav-mobile .nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.bottom-nav-mobile .cart-badge-nav {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    background-color: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 999px;
    padding: 2px 6px;
    border: 2px solid white;
}

/* Hide desktop elements on mobile & show mobile nav */
@media (max-width: 768px) {
    .bottom-nav-mobile {
        display: block;
    }
    
    /* Make touch targets bigger for mobile */
    .btn-add-cart {
        width: 44px;
        height: 44px;
    }

    /* Hide redundant elements on mobile if we use bottom nav */
    #mainNavbar .menu-btn {
        display: none !important;
    }
    
    #mainNavbar .icon-btn[onclick*="cart"] {
        display: none !important;
    }
    
    #mainNavbar .cart-badge {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important; /* disabled entirely since we use bottom nav */
    }
}


/* Style override for Tom Select Dropdown Options */
.ts-dropdown .option {
    padding: 8px 12px !important;
    margin: 2px 4px !important;
    border-radius: 6px !important;
    transition: background-color 0.15s, color 0.15s !important;
}

/* Hover / Active Focus Option Style */
.ts-dropdown .option.active, 
.ts-dropdown .option:hover,
.ts-dropdown .active {
    background-color: #dcfce7 !important;
    color: var(--primary) !important;
}

/* Selected Option Style */
.ts-dropdown .option.selected,
.ts-dropdown .selected {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
.ts-dropdown {
    z-index: 2000 !important;
}

/* Override Tom Select Focus Border */
.ts-wrapper.form-select.focus .ts-control, .ts-wrapper.focus .ts-control, .form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 72, 0.25) !important;
}
