/*
 * AIZ Store mobile commerce layer
 * Fokus: navigasi satu tangan, katalog dua kolom, touch target 44px,
 * checkout ringkas, dan safe-area untuk perangkat ber-notch.
 */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 320px;
    overflow-x: clip;
}

.mobile-header-actions,
.mobile-store-search,
.mobile-bottom-nav,
.mobile-purchase-bar,
.mobile-cart-checkout-bar {
    display: none;
}

@media (hover: none) {
    .btn:hover,
    .product-card:hover,
    .blog-card:hover,
    .help-category-card:hover,
    .cat-card:hover,
    .stat-card:hover,
    .benefit-tile:hover {
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    :root {
        --mobile-nav-height: 66px;
        --mobile-side-pad: 14px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        -webkit-tap-highlight-color: transparent;
    }

    main,
    .main-content,
    .section,
    .page-hero {
        min-width: 0;
        max-width: 100%;
    }

    .container,
    .container-fluid {
        --bs-gutter-x: 28px;
    }

    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px;
    }

    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .header {
        padding: 8px 0 10px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    }

    .header .navbar {
        min-height: 42px;
        padding: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header .site-brand {
        min-width: 0;
        max-width: calc(100% - 104px);
        margin-right: auto;
    }

    .header .site-brand .site-logo {
        height: 34px;
        max-width: 148px;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .mobile-header-icon,
    .header .navbar-toggler {
        position: relative;
        width: 42px;
        height: 42px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        color: #334155;
        box-shadow: none;
    }

    .mobile-header-icon {
        font-size: 1.2rem;
    }

    .header .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    }

    .header .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        background-size: 20px;
    }

    .mobile-cart-badge {
        position: absolute;
        top: -5px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.64rem;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-store-search {
        height: 44px;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        padding: 0 5px 0 13px;
        border: 1px solid #dbe3ef;
        border-radius: 12px;
        background: #f8fafc;
    }

    .mobile-store-search > i {
        color: #64748b;
        font-size: 0.95rem;
    }

    .mobile-store-search input {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #0f172a;
        font-size: 0.9rem;
    }

    .mobile-store-search input::placeholder {
        color: #94a3b8;
    }

    .mobile-store-search button {
        height: 34px;
        padding: 0 13px;
        border: 0;
        border-radius: 9px;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .header .navbar-collapse {
        width: 100%;
        max-height: min(64vh, 520px);
        overflow-y: auto;
        margin-top: 6px;
        padding: 10px;
        border-radius: 14px;
    }

    .header .navbar-nav {
        gap: 2px;
        padding: 0 0 10px;
    }

    .header .nav-link {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 10px 12px !important;
    }

    .header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding-top: 10px;
        border-top: 1px solid #edf2f7;
    }

    .desktop-header-cart,
    .desktop-check-order {
        display: none !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1035;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        padding: 6px 5px calc(5px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(203, 213, 225, 0.9);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 26px rgba(15, 23, 42, 0.1);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav > a,
    .mobile-bottom-nav > button {
        position: relative;
        min-width: 0;
        height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 2px;
        border: 0;
        background: transparent;
        color: #64748b;
        font-family: inherit;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 1.1;
    }

    .mobile-bottom-nav i {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-bottom-nav > .active {
        color: #4f46e5;
    }

    .mobile-bottom-nav > .active::before {
        content: "";
        position: absolute;
        top: -6px;
        width: 30px;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background: #4f46e5;
    }

    .mobile-nav-cart-icon {
        position: relative;
        display: inline-flex;
    }

    .cart-drawer {
        max-width: min(100%, 430px);
    }

    .cart-drawer .offcanvas-header {
        padding: 15px 16px;
    }

    .cart-drawer-item {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 13px 14px;
    }

    .cart-drawer-thumb,
    .cart-drawer-thumb img,
    .cart-drawer-thumb-placeholder,
    .cart-drawer-thumb .auto-cover {
        width: 58px;
        height: 58px;
    }

    .cart-drawer-summary {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    }

    .page-hero {
        padding: 34px 0 42px;
    }

    .page-hero h1 {
        margin-bottom: 9px;
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .page-hero p {
        max-width: 34rem;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .page-kicker {
        margin-bottom: 10px;
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .section {
        padding: 38px 0;
    }

    .section-header {
        margin-bottom: 22px;
    }

    .section-title {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .footer-top {
        padding: 34px 0 12px;
    }

    .footer-top .row > div {
        margin-bottom: 22px !important;
    }

    .footer-title,
    .footer-subtitle {
        margin-bottom: 12px;
    }

    .footer-logo {
        height: 40px;
        max-width: 180px;
    }

    .footer-brand-description {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .breadcrumb-nav {
        padding: 14px 0 10px;
        overflow: hidden;
    }

    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .breadcrumb::-webkit-scrollbar,
    .chip-list::-webkit-scrollbar,
    .product-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
    }

    /* Katalog: filter ringkas dan kartu dua kolom seperti marketplace. */
    .filter-card {
        margin: 12px 0 24px !important;
        padding: 14px;
        border-radius: 15px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .catalog-page-hero {
        padding: 24px 0 28px;
    }

    .catalog-page-hero p {
        display: none;
    }

    .catalog-filter-search {
        display: none;
    }

    .catalog-filter-form {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }

    .catalog-filter-form .form-label {
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    .catalog-filter-form .form-control,
    .catalog-filter-form .form-select {
        min-height: 44px;
        padding: 10px 11px;
        border-radius: 10px;
        font-size: 0.86rem;
    }

    .catalog-filter-form .btn {
        width: 100%;
        border-radius: 10px;
    }

    .catalog-category-chips {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        margin: 12px -14px -3px;
        padding: 3px 14px 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .catalog-category-chips .filter-chip {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
        scroll-snap-align: start;
        font-size: 0.78rem;
    }

    .catalog-result-head {
        margin-bottom: 12px !important;
    }

    .catalog-result-head .section-title {
        font-size: 1.25rem;
    }

    .catalog-result-head .section-subtitle {
        font-size: 0.78rem;
    }

    .catalog-products-grid,
    .home-product-grid {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }

    .catalog-product-col,
    .home-product-col {
        margin-bottom: 0 !important;
    }

    .catalog-products-grid .product-card,
    .home-product-grid .product-card,
    .related-products .product-card {
        border-radius: 13px;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    }

    .catalog-products-grid .product-image,
    .home-product-grid .product-image,
    .related-products .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .catalog-products-grid .product-content,
    .home-product-grid .product-content,
    .related-products .product-content {
        padding: 10px;
    }

    .catalog-products-grid .product-category,
    .home-product-grid .product-category,
    .related-products .product-category {
        font-size: 0.61rem;
        letter-spacing: 0.045em;
    }

    .catalog-products-grid .product-title,
    .home-product-grid .product-title,
    .related-products .product-title {
        min-height: 2.5em;
        display: -webkit-box;
        overflow: hidden;
        margin: 6px 0 8px;
        color: #0f172a;
        font-size: 0.82rem;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-title-link {
        color: inherit;
    }

    .catalog-products-grid .product-price,
    .home-product-grid .product-price,
    .related-products .product-price {
        margin: auto 0 9px;
    }

    .catalog-products-grid .price-regular,
    .home-product-grid .price-regular,
    .related-products .price-regular {
        color: #4f46e5;
        font-size: 0.9rem;
    }

    .catalog-products-grid .btn,
    .home-product-grid .product-cta,
    .related-products .btn {
        min-height: 38px;
        padding: 7px 8px !important;
        border-radius: 9px !important;
        font-size: 0.74rem;
        gap: 5px;
    }

    .catalog-products-grid .product-badge,
    .home-product-grid .product-badge,
    .home-product-grid .product-flag {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 4px 7px;
        font-size: 0.57rem;
    }

    .home-product-grid .product-badge {
        right: 8px;
        left: auto;
    }

    .home-product-grid .product-trust-row {
        gap: 6px;
        margin-bottom: 8px;
        font-size: 0.62rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pagination-wrap {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    /* Beranda: konten pertama lebih cepat terlihat dan mudah dipindai. */
    .home-banners-top {
        padding-top: 12px;
    }

    .banner-slider {
        min-height: 168px !important;
        border-radius: 14px !important;
    }

    .banner-slide-content {
        max-width: 86% !important;
        padding: 18px !important;
    }

    .banner-slide h2 {
        font-size: 1.1rem !important;
    }

    .banner-slide p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.76rem !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .banner-nav {
        display: none !important;
    }

    .hero-section {
        padding: 38px 0 54px !important;
        text-align: left !important;
    }

    .hero-section .min-vh-75 {
        min-height: 0;
    }

    .hero-section .badge {
        margin-bottom: 11px !important;
        font-size: 0.68rem;
    }

    .hero-title {
        max-width: 18ch;
        margin-bottom: 12px !important;
        font-size: clamp(1.8rem, 8.4vw, 2.35rem) !important;
        line-height: 1.12 !important;
    }

    .hero-subtitle {
        max-width: 38rem !important;
        margin-bottom: 20px !important;
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

    .hero-buttons {
        display: grid !important;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 9px !important;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
        padding: 10px 9px;
        font-size: 0.79rem;
    }

    .stats-section {
        margin-top: -24px !important;
    }

    .stats-section .row {
        --bs-gutter-x: 10px;
    }

    .stats-section .row > div {
        margin-bottom: 10px !important;
    }

    .stat-card {
        min-height: 88px;
        padding: 15px 8px !important;
        border-radius: 14px !important;
    }

    .stat-number {
        font-size: 1.35rem !important;
    }

    .stat-label {
        font-size: 0.62rem !important;
        letter-spacing: 0.04em !important;
    }

    .categories-section .section-header {
        text-align: left !important;
    }

    .cat-grid {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto;
        margin: 18px calc(var(--mobile-side-pad) * -1) 0 !important;
        padding: 3px var(--mobile-side-pad) 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cat-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-card {
        min-width: 132px;
        min-height: 110px !important;
        flex: 0 0 38vw;
        padding: 14px 12px !important;
        scroll-snap-align: start;
        border-radius: 14px !important;
    }

    .cat-card-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
    }

    .cat-card-info h5 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.84rem !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .cat-arrow {
        font-size: 0.7rem !important;
    }

    .products-section .section-header {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .products-section .section-header > div {
        min-width: 0;
    }

    .products-section .section-subtitle {
        display: none;
    }

    .products-section .section-pill {
        margin-bottom: 6px;
        padding: 5px 9px;
        font-size: 0.62rem;
    }

    .btn-light-soft {
        flex: 0 0 auto;
        padding: 8px 10px !important;
        white-space: nowrap;
        font-size: 0.72rem !important;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .benefit-tile {
        padding: 15px 13px !important;
    }

    .benefit-tile-icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 10px !important;
        font-size: 1.1rem !important;
    }

    .benefit-tile h4 {
        font-size: 0.82rem !important;
    }

    .benefit-tile p {
        font-size: 0.72rem !important;
    }

    /* Detail produk: galeri -> harga/form -> deskripsi. */
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .product-detail-main {
        display: contents !important;
    }

    .product-gallery {
        order: 1;
    }

    .product-info {
        min-width: 0;
        order: 2;
    }

    .product-extra {
        order: 3;
    }

    .main-image {
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    }

    .product-gallery-thumbs {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px !important;
        overflow-x: auto;
        padding: 2px 1px 5px;
        scrollbar-width: none;
    }

    .product-gallery-thumb {
        width: 64px;
        min-width: 64px;
    }

    .product-gallery-arrow {
        width: 36px;
        height: 36px;
    }

    .product-info > .product-category {
        font-size: 0.72rem;
    }

    .product-info .product-title {
        margin: 7px 0 12px;
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .product-pricing,
    .purchase-form,
    .product-description,
    .product-benefits,
    .product-instructions,
    .product-faqs {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .product-pricing {
        margin-bottom: 13px !important;
    }

    .price-member-large {
        font-size: 1.55rem !important;
    }

    .product-meta {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        margin-bottom: 13px !important;
    }

    .meta-item {
        align-items: flex-start !important;
        padding: 9px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
        font-size: 0.72rem !important;
        line-height: 1.4;
    }

    .purchase-form .form-group {
        margin-bottom: 13px !important;
    }

    .variant-options {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    .variant-option {
        width: 100%;
        min-width: 0 !important;
        min-height: 46px;
        padding: 9px 10px !important;
        font-size: 0.8rem !important;
    }

    .variant-selected-info {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .variant-selected-info .vi-price-block {
        margin-left: auto;
    }

    .pm-option {
        min-width: 0;
        padding: 11px !important;
    }

    .pm-va-summary {
        grid-template-columns: 42px minmax(0, 1fr) auto 16px !important;
        gap: 8px !important;
    }

    .qty-stepper .qty-btn {
        width: 44px !important;
        height: 42px !important;
    }

    .qty-stepper .qty-input {
        height: 42px !important;
    }

    .trust-grid {
        gap: 7px !important;
    }

    .trust-item {
        padding: 10px 5px !important;
        font-size: 0.68rem !important;
    }

    .product-description p,
    .instructions-content,
    .accordion-body {
        overflow-wrap: anywhere;
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .related-products {
        margin-top: 28px !important;
    }

    .related-products h3 {
        font-size: 1.2rem;
    }

    body.product-detail-page {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    body.product-detail-page .mobile-bottom-nav {
        display: none;
    }

    .mobile-purchase-bar {
        position: fixed;
        z-index: 1040;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(68px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 9px;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid #dbe3ef;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.13);
        backdrop-filter: blur(18px);
    }

    .mobile-purchase-bar button {
        min-height: 48px;
        border-radius: 12px;
        font-family: inherit;
        font-weight: 800;
    }

    .mobile-purchase-cart {
        border: 1.5px solid #4f46e5;
        background: #fff;
        color: #4f46e5;
        font-size: 1.2rem;
    }

    .mobile-purchase-order {
        border: 0;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: #fff;
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
    }

    .mobile-purchase-bar button:disabled {
        opacity: 0.55;
        box-shadow: none;
    }

    /* Keranjang dan checkout: ringkasan menjadi CTA tetap di bawah. */
    body.cart-page,
    body.cart-checkout-page {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    body.cart-page .mobile-bottom-nav,
    body.cart-checkout-page .mobile-bottom-nav {
        display: none;
    }

    .cart-page .container.py-5,
    .cart-checkout-page .container.py-5 {
        padding-top: 22px !important;
        padding-bottom: 28px !important;
    }

    .cart-card-header {
        padding: 13px 14px !important;
    }

    .cart-card-header h5 {
        font-size: 0.94rem;
    }

    .cart-card-header .btn {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    .cart-item-image,
    .cart-item-image img,
    .cart-image-placeholder,
    .cart-item-image .auto-cover {
        width: 68px !important;
        height: 68px !important;
    }

    .cart-item-name {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.86rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .cart-item-meta {
        font-size: 0.72rem !important;
    }

    .cart-item-actions {
        grid-column: 1 / -1 !important;
        justify-content: space-between;
        text-align: left !important;
    }

    .cart-summary {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .checkout-payment-option {
        grid-template-columns: 18px 44px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .payment-option-icon {
        width: 44px !important;
        height: 38px !important;
    }

    .checkout-va-summary {
        grid-template-columns: 44px minmax(0, 1fr) auto 16px !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .mobile-cart-checkout-bar {
        position: fixed;
        z-index: 1040;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(72px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 12px;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid #dbe3ef;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.13);
        backdrop-filter: blur(18px);
    }

    .mobile-cart-checkout-total {
        min-width: 0;
        display: flex;
        flex-direction: column;
        color: #64748b;
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .mobile-cart-checkout-total strong {
        overflow: hidden;
        color: #4f46e5;
        font-size: 0.98rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-cart-checkout-bar .btn {
        min-height: 48px;
        margin: 0 !important;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    /* Halaman invoice/pembayaran. */
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 22px 0 !important;
    }

    .checkout-header {
        align-items: flex-start !important;
        margin-bottom: 16px !important;
    }

    .checkout-header h1 {
        font-size: 1.15rem !important;
        overflow-wrap: anywhere;
    }

    .checkout-section,
    .payment-card,
    .help-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .order-product {
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .order-product .product-image {
        width: 82px !important;
        height: 82px !important;
    }

    .amount-value {
        font-size: 1.55rem !important;
        overflow-wrap: anywhere;
    }

    .qris-display {
        padding: 13px !important;
    }

    .checkout-section .table {
        table-layout: fixed;
    }

    .checkout-section .table td {
        padding: 10px 6px;
        overflow-wrap: anywhere;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-buttons {
        grid-template-columns: 1fr 1fr !important;
        align-items: stretch !important;
    }

    .home-product-grid > .home-product-col,
    .catalog-products-grid > .catalog-product-col {
        width: 50%;
    }

    .home-product-grid .product-trust-row {
        display: none;
    }

    .product-card.is-out-of-stock {
        opacity: 0.78;
    }

    .product-card.is-out-of-stock .product-badge,
    .product-card.is-out-of-stock .product-flag {
        max-width: calc(100% - 16px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-top .col-lg-2,
    .footer-top .col-lg-4 {
        width: 100%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .footer-links li {
        margin: 0;
    }
}

@media (max-width: 359.98px) {
    .hero-buttons {
        grid-template-columns: 1fr !important;
    }

    .catalog-products-grid,
    .home-product-grid {
        --bs-gutter-x: 8px;
    }

    .catalog-products-grid .product-content,
    .home-product-grid .product-content {
        padding: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
