:root {
    --primary-color: #0D6EFD;
    --primary-dark: #0A58CA;
    --primary-light: #F0F6FF;
    --secondary-color: #6c757d;
    --background-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-color: #212529;
    --text-muted-color: #6C757D;
    --border-color: #E9ECEF;
    --success-color: #198754;
    --danger-color: #DC3545;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 0.75rem;
    /* 12px */
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mengatur tampilan halaman (page) yang aktif dan memberikan animasi fade-in */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling untuk Header dan Navigasi Desktop */
.header-main {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.header-main .navbar-brand {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.header-main .nav-link {
    color: var(--text-muted-color);
    font-weight: 500;
    transition: color 0.3s;
}

.header-main .nav-link:hover,
.header-main .nav-link.active {
    color: var(--primary-color);
}

/* Styling untuk Header Mobile */
#mobile-header {
    font-family: var(--font-primary);
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--surface-color);
}

#mobile-header .navbar-brand-mobile {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

#mobile-header .navbar-brand-mobile i {
    color: var(--primary-color);
}

#mobile-account-trigger {
    padding: 0.5rem;
    margin: -0.5rem;
}

#mobile-user-icon {
    font-size: 1.75rem;
    color: var(--text-muted-color);
    transition: color 0.3s ease;
}

#mobile-user-icon.logged-in {
    color: var(--primary-color);
}

/* Promo Popup Overlay */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 320px;
    /* DIUBAH: Menyesuaikan lebar maksimal */
    width: 90%;
    aspect-ratio: 320 / 480;
    /* DITAMBAHKAN: Menjaga rasio aspek */
    background-color: transparent;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-popup-overlay.show,
.promo-popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.promo-popup-modal img {
    width: 100%;
    height: 100%;
    /* DITAMBAHKAN: Memastikan gambar mengisi tinggi modal */
    object-fit: cover;
    /* DITAMBAHKAN: Menjaga rasio gambar tanpa distorsi */
    border-radius: var(--border-radius);

}

.promo-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Sisipkan ini di dalam tag <style> Anda */
.variant-group-container {
    margin-bottom: 1.5rem;
}

.variant-group-container label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.variant-select-wrapper {
    position: relative;
}

.variant-select-wrapper .form-select {
    /* BARIS KODE DI BAWAH INI PENTING UNTUK MENGHILANGKAN PANAH BAWAAN */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 2.5rem;
    /* Ruang untuk ikon panah kustom */
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.variant-select-wrapper .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

/* Kode ini menambahkan ikon panah kustom */
.variant-select-wrapper::after {
    content: '\f078';
    /* Font Awesome chevron-down icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted-color);
}

/* Styling untuk Kartu Produk */
.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card-img-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: #FFFFFF;
    position: relative;
}

.product-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-card-body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-price-label {
    font-size: 0.75rem;
    color: var(--text-muted-color);
    margin-bottom: 0.1rem;
}

.product-price {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.product-original-price {
    text-decoration: line-through;
    color: var(--text-muted-color);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.product-meta {
    font-size: 0.75rem;
    color: var(--text-muted-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.product-badge-container .badge {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    pointer-events: all;
}

/* Styling untuk Carousel */
.category-carousel,
.main-carousel {
    overflow: hidden;
}

.category-carousel .flickity-viewport,
.main-carousel .flickity-viewport {
    overflow: visible;
}

.carousel-cell {
    width: calc(48% - 8px);
    margin-right: 12px;
    height: auto;
}

/* Dihapus: aspect-ratio tidak lagi diperlukan di kontainer utama */
#hero-banner-container {
    max-width: 95%;
    /* Membuat kontainer tidak memenuhi layar penuh */
    margin: 0 auto 1.5rem auto;
    /* Atas/Bawah: 0, Kanan/Kiri: auto (untuk tengah), Bawah: 1.5rem (jarak baru) */
}

.main-carousel .carousel-cell {
    width: 85%;
    /* Sedikit lebih lebar untuk tampilan mobile */
    margin-right: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 544 / 272;
}

.main-carousel .carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .main-carousel .carousel-cell {
        width: 60%;
        /* Ukuran untuk layar lebih besar */
    }
}

.main-carousel .flickity-viewport {
    transition: height 0.2s;
    /* Transisi halus saat tinggi berubah */
}

.main-carousel .flickity-slider {
    display: flex;
    align-items: center;
    /* Memusatkan slide secara vertikal */
}

@media (min-width: 576px) {
    .carousel-cell {
        width: calc(33.33% - 10px);
    }
}

@media (min-width: 768px) {
    .carousel-cell {
        width: calc(25% - 12px);
    }
}

@media (min-width: 992px) {
    .carousel-cell {
        width: calc(20% - 12px);
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.category-header .view-all-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.flickity-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.flickity-button:hover {
    background: var(--primary-color);
    color: white;
}

.flickity-prev-next-button.previous {
    left: -20px;
}

.flickity-prev-next-button.next {
    right: -20px;
}

.flickity-button-icon {
    width: 22px;
    height: 22px;
}

/* Styling untuk Bar Info Filter */
#filter-info-bar {
    background-color: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
}

#filter-info-bar .breadcrumb {
    margin-bottom: 0;
}

#filter-info-bar .breadcrumb-item a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-dark);
}

#filter-info-bar .breadcrumb-item.active {
    font-weight: 600;
}

/* Styling untuk Skeleton Loader */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.skeleton-image {
    aspect-ratio: 1 / 1;
    background-color: #e0e0e0;
    background-image: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite linear;
}

.skeleton-body {
    padding: 0.75rem;
}

.skeleton-text {
    height: 1em;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-image: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Styling untuk Sidebar Keranjang Belanja */
.floating-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 1045;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

body.cart-open .floating-cart-sidebar {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

body.cart-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h5 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.cart-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    margin-right: 1rem;
    background-size: cover;
    background-position: center;
}

.cart-item-details {
    flex-grow: 1;
    cursor: pointer;
}

/* Styling untuk Navigasi Bawah (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid var(--border-color);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted-color);
    font-size: 0.7rem;
    flex-grow: 1;
    position: relative;
    transition: color 0.3s, transform 0.2s;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item span {
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Styling untuk Halaman Detail Produk */
#pdp-image-gallery {
    position: sticky;
    top: 100px;
}

#pdp-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.pdp-thumbnail-list {
    display: flex;
    gap: 1rem;
}

.pdp-thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.3s;
}

.pdp-thumbnail:hover,
.pdp-thumbnail.active {
    border-color: var(--primary-color);
}

#pdp-title {
    font-family: var(--font-primary);
    font-weight: 700;
}

#pdp-price-container .final-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

#pdp-price-container .original-price {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted-color);
    text-decoration: line-through;
    margin-left: 0.75rem;
}

/* Styling untuk Footer */
.footer-main {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    color: var(--text-muted-color);
}

.footer-main .footer-brand {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-main h5 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-main .nav-link {
    padding: 0.25rem 0;
    color: var(--text-muted-color);
}

.footer-main .nav-link:hover {
    color: var(--primary-color);
}

/* Styling Umum dan Responsif */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.main-container {
    padding-bottom: 120px;
    flex-grow: 1;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploaded-file-list {
    list-style-type: none;
    padding: 0;
}

.uploaded-file-item {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.uploaded-file-item .btn-close {
    font-size: 0.8rem;
}

.variant-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.variant-option:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.variant-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
}

.status-timeline {
    list-style-type: none;
    padding-left: 1rem;
}

.status-timeline li {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}

.status-timeline li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.status-timeline li:last-child::before {
    display: none;
}

.status-timeline .icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
}

.status-timeline li.completed .icon {
    background-color: var(--primary-color);
}

.status-timeline li.completed::before {
    background-color: var(--primary-color);
}

/* Styling untuk status Dibatalkan */
.status-timeline li.cancelled .icon {
    background-color: var(--danger-color, #dc3545);
    width: 1.5rem;
    height: 1.5rem;
}

.status-timeline li.cancelled .icon i {
    font-size: 0.7rem;
}

.status-timeline li.cancelled::before {
    background-color: var(--danger-color, #dc3545);
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.floating-action-buttons {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
    position: relative;
}

.floating-cart-btn:hover {
    transform: scale(1.05);
}

.floating-cart-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
}

#back-to-top-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 10px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

#back-to-top-btn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .main-container {
        padding-top: 15px;
    }

    /* <-- Diubah menjadi 15px */
    .flickity-prev-next-button {
        display: none;
    }

    .main-carousel .carousel-cell img {
        max-height: 200px;
    }
}

@media (min-width: 992px) {

    .bottom-nav,
    .floating-action-buttons {
        display: none;
    }
}

/* ===== ACCOUNT PAGE REDESIGN (MODERN & CLEAN) ===== */

/* Account Header */
.account-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.account-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.account-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ===== Account Stats Cards - Modern Style ===== */
.account-stat-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    position: relative;
}

.account-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#account-stats-container>.col-6:nth-child(1) .account-stat-card::before {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

#account-stats-container>.col-6:nth-child(2) .account-stat-card::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

#account-stats-container>.col-6:nth-child(3) .account-stat-card::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

#account-stats-container>.col-6:nth-child(4) .account-stat-card::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.account-stat-card:hover {
    transform: translateY(-5px);
    border-color: transparent !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.account-stat-card:hover::before {
    opacity: 1;
}

/* Stat Icon Wrapper */
.stat-icon-wrapper {
    display: flex;
    justify-content: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-stat-card:hover .stat-icon {
    transform: scale(1.1);
}

/* Stat Icon Color Variants */
.stat-icon-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.stat-icon-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.stat-icon-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.stat-icon-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Stat Number */
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

/* Stat Label */
.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Account Tabs - Modern Pills ===== */
.account-tabs {
    border-bottom: none !important;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.account-tabs .nav-item {
    margin: 0;
}

.account-tabs .nav-link {
    border: none !important;
    border-radius: 10px !important;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
    background: transparent;
}

.account-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: #f1f5f9;
}

.account-tabs .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

/* ===== Order Status Filter - Modern Pill Buttons ===== */
.order-status-filter {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.order-status-filter .d-flex {
    gap: 0.5rem;
}

/* Base Filter Button Style */
.btn-filter {
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-filter i {
    font-size: 0.8rem;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Filter Button Variants */
.btn-filter-all {
    border-color: #e2e8f0;
}

.btn-filter-all:hover,
.btn-filter-all.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-filter-pending {
    border-color: #e2e8f0;
}

.btn-filter-pending:hover,
.btn-filter-pending.active {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border-color: #475569;
    color: white;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.btn-filter-progress {
    border-color: #e2e8f0;
}

.btn-filter-progress:hover,
.btn-filter-progress.active {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-filter-ready {
    border-color: #e2e8f0;
}

.btn-filter-ready:hover,
.btn-filter-ready.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    border-color: #0ea5e9;
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-filter-success {
    border-color: #e2e8f0;
}

.btn-filter-success:hover,
.btn-filter-success.active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-filter-danger {
    border-color: #e2e8f0;
}

.btn-filter-danger:hover,
.btn-filter-danger.active {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ===== Order Cards - Modern Style ===== */
.order-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}

.order-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1) !important;
}

.order-card .card-body {
    padding: 1.25rem 1.5rem;
}

.order-card h6 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.order-card .badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.5em 0.85em;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status badge colors - Modern pastel */
.order-card .bg-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.order-card .bg-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd;
}

.order-card .bg-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border: 1px solid #fcd34d;
}

.order-card .bg-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd;
}

.order-card .bg-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7;
}

.order-card .bg-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5;
}

/* ===== Tab Content Cards ===== */
#profile-tab-pane .card,
#security-tab-pane .card {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#profile-tab-pane h5,
#security-tab-pane h5 {
    color: #0f172a;
    font-weight: 700;
}

/* ===== Form Controls - Modern Style ===== */
#account-page .form-control,
#account-page .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

#account-page .form-control:focus,
#account-page .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#account-page .form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== Buttons - Modern Style ===== */
#account-page .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
}

#account-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5);
}

#account-page .btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
}

#account-page .btn-outline-danger {
    border-radius: 12px;
    font-weight: 600;
    border-width: 2px;
    padding: 0.5rem 1rem;
}

#account-page .btn-outline-primary {
    border-radius: 10px;
    font-weight: 600;
    border-width: 2px;
}

#account-page .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

/* ===== Search Input - Modern Style ===== */
#account-page .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    padding-left: 1rem;
}

#account-page .input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

#account-page .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767.98px) {
    .account-header {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .account-header h2 {
        font-size: 1.35rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border-radius: 14px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .account-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 0.4rem;
        border-radius: 12px;
    }

    .account-tabs .nav-link {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .order-status-filter {
        overflow-x: auto;
        padding: 0.75rem 1rem;
        border-radius: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .order-status-filter .d-flex {
        flex-wrap: nowrap !important;
    }

    .btn-filter {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.45rem 0.85rem;
    }

    .btn-filter i {
        font-size: 0.7rem;
    }

    .order-card .card-body {
        padding: 1rem;
    }

    .account-stat-card {
        border-radius: 16px !important;
    }
}

/* ===== TAGIHAN SAYA PAGE (UNPAID ORDERS) ===== */

.unpaid-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.unpaid-header h2 {
    font-size: 1.5rem;
    color: #0f172a;
}

/* Unpaid Stat Cards */
.unpaid-stat-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
}

.unpaid-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon-small {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto;
}

.stat-icon-small.stat-icon-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.stat-icon-small.stat-icon-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.stat-icon-small.stat-icon-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

/* Unpaid Filter Section */
.unpaid-filter-section {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* Unpaid Order Card - Enhanced */
.unpaid-order-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.unpaid-order-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1) !important;
}

.unpaid-order-card .card-body {
    padding: 1.25rem 1.5rem;
}

.unpaid-order-card .order-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.unpaid-order-card .order-date {
    font-size: 0.85rem;
    color: #64748b;
}

.unpaid-order-card .order-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.unpaid-order-card .order-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4em 0.75em;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.unpaid-order-card .badge-dp {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border: 1px solid #fcd34d;
}

.unpaid-order-card .badge-unpaid {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5;
}

.unpaid-order-card .order-details {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.unpaid-order-card .order-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.unpaid-order-card .order-details-row .label {
    color: #64748b;
}

.unpaid-order-card .order-details-row .value {
    font-weight: 600;
    color: #0f172a;
}

/* Empty State for Unpaid */
.unpaid-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 20px;
    border: 1px solid #6ee7b7;
}

.unpaid-empty-state i {
    font-size: 4rem;
    color: #059669;
    margin-bottom: 1rem;
}

.unpaid-empty-state h4 {
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.unpaid-empty-state p {
    color: #047857;
}

/* Responsive for Unpaid Page */
@media (max-width: 767.98px) {
    .unpaid-header {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .unpaid-header h2 {
        font-size: 1.25rem;
    }

    .unpaid-filter-section {
        padding: 0.75rem 1rem;
        border-radius: 14px;
    }

    .unpaid-order-card .card-body {
        padding: 1rem;
    }

    .unpaid-order-card .order-code {
        font-size: 1rem;
    }

    .unpaid-order-card .order-amount {
        font-size: 1.1rem;
    }

    .stat-icon-small {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ===== CHECKOUT PAGE REDESIGN ===== */

.checkout-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.checkout-header h2 {
    font-size: 1.5rem;
    color: #0f172a;
}

/* Checkout Step Cards */
.checkout-step-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-step-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.checkout-step-header .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.checkout-step-header h5 {
    font-weight: 700;
    color: #0f172a;
}

.checkout-step-body {
    padding: 1.25rem;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    gap: 1rem;
}

.delivery-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option input[type="radio"]:checked+.delivery-option-label {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.delivery-option-label:hover {
    border-color: #94a3b8;
}

.delivery-option .option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.delivery-option input[type="radio"]:checked+.delivery-option-label .option-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
}

.delivery-option .option-content strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.1rem;
}

/* Checkout Products */
.checkout-product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.checkout-product-item:last-child {
    margin-bottom: 0;
}

.checkout-product-img {
    width: 70px;
    height: 70px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    border-radius: 10px;
    flex-shrink: 0;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
}

.checkout-product-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-product-info .product-variant {
    font-size: 0.8rem;
    color: #64748b;
}

.checkout-product-info .product-qty {
    font-size: 0.85rem;
    color: #475569;
}

.checkout-product-info .product-notes {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.checkout-product-price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Payment Methods */
.payment-method-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-option:hover {
    border-color: #94a3b8;
}

.payment-method-option.selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
}

.payment-method-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.payment-method-option .method-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.payment-method-option .method-icon.bank {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.payment-method-option .method-icon.qris {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.payment-method-option .method-icon.cash {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.payment-method-option .method-info {
    flex: 1;
}

.payment-method-option .method-info strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.payment-method-option .method-info small {
    color: #64748b;
}

/* Checkout Summary Card */
.checkout-summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.checkout-summary-card h5 {
    color: #0f172a;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.checkout-summary-row .label {
    color: #64748b;
}

.checkout-summary-row .value {
    font-weight: 600;
    color: #0f172a;
}

.checkout-summary-row.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.checkout-summary-row.total .label {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.checkout-summary-row.total .value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.15rem;
}

/* Responsive for Checkout Page */
@media (max-width: 991.98px) {
    .checkout-summary-card {
        position: static !important;
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .checkout-header {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .checkout-header h2 {
        font-size: 1.25rem;
    }

    .delivery-options {
        flex-direction: column;
    }

    .checkout-step-body {
        padding: 1rem;
    }

    .checkout-product-item {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.65rem !important;
        gap: 0.65rem !important;
    }

    .checkout-product-img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        border-radius: 8px !important;
        background-size: cover !important;
    }

    .checkout-product-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .checkout-product-info h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
    }

    .checkout-product-info .product-variant,
    .checkout-product-info .product-qty,
    .checkout-product-info .product-notes {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }

    .checkout-product-price {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .payment-method-option {
        padding: 0.85rem;
    }

    .payment-method-option .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ===== CHECKOUT ADDRESS CARD (For Logged-in Users) ===== */
.checkout-address-card,
.checkout-pickup-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-card-header,
.pickup-card-header {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.label-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.label-tag.pickup {
    color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.address-card-body,
.pickup-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.address-icon,
.pickup-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.address-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.pickup-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.address-content,
.pickup-content {
    flex: 1;
    min-width: 0;
}

.address-name,
.pickup-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.address-detail,
.pickup-detail {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.pickup-hours {
    font-size: 0.8rem;
    color: #059669;
    margin-top: 0.35rem;
    font-weight: 500;
}

.pickup-hours i {
    margin-right: 0.35rem;
}

.btn-change {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #059669;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-change:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* Pickup Location Selector */
.pickup-location-selector {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
}

.pickup-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pickup-option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pickup-option-item:hover {
    border-color: #94a3b8;
}

.pickup-option-item.selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #2563eb;
}

.pickup-option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.pickup-option-info {
    flex: 1;
}

.pickup-option-info .name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.pickup-option-info .address {
    font-size: 0.85rem;
    color: #64748b;
}

.pickup-option-info .hours {
    font-size: 0.8rem;
    color: #059669;
    margin-top: 0.25rem;
}

/* ===== CHECKOUT MOBILE BOTTOM BAR ===== */
.checkout-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
}

.bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.total-section {
    flex: 1;
}

.total-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-pay {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-pay:active {
    transform: translateY(0);
}

/* See All Link in Payment Methods */
.see-all-link {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    text-decoration: none;
}

.see-all-link:hover {
    color: #047857;
    text-decoration: underline;
}

/* ===== CHECKOUT PAGE MOBILE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {

    #checkout-page .main-container,
    #checkout-page.page {
        padding-bottom: 100px;
    }
}

@media (max-width: 767.98px) {

    .checkout-address-card,
    .checkout-pickup-card {
        border-radius: 14px;
    }

    .address-card-body,
    .pickup-card-body {
        padding: 1rem;
    }

    .address-icon,
    .pickup-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .address-name,
    .pickup-name {
        font-size: 0.95rem;
    }

    .address-detail,
    .pickup-detail {
        font-size: 0.85rem;
    }

    .btn-change {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .pickup-option-item {
        padding: 0.85rem;
    }

    .checkout-bottom-bar {
        padding: 0.65rem 0.85rem;
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
    }

    .total-amount {
        font-size: 1.1rem;
    }

    .btn-pay {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Hide checkout form padding adjustments when bottom bar is present */
@media (max-width: 991.98px) {
    #checkout-page .col-lg-8:last-child .checkout-step-card:last-child {
        margin-bottom: 1rem;
    }
}