:root {
    --ga-black: #0F0F0F;
    --ga-dark: #0F0F0F;
    --ga-red: #ff6b35;
    --ga-red-dark: #e55a2b;
    --ga-white: #FFFFFF;
    --ga-light: #fdf5e6;
    --ga-surface: #ffffff;
    --ga-surface-soft: #fafafb;
    --ga-border: rgba(255, 255, 255, 0.08);
    --ga-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

html {
    scrollbar-gutter: stable;
}

.min-w-0 {
    min-width: 0 !important;
}

.site-body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: #17181c;
    background: var(--ga-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    overflow: hidden;
    flex: 1;
    padding-bottom: 80px; /* Space for mobile nav */
}
@media (min-width: 768px) {
    .site-main {
        padding-bottom: 0; /* Remove padding on desktop */
    }
}

.admin-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-shell {
    flex: 1;
    display: flex;
}

.admin-body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: #F5F5F5;
    overflow-x: hidden;
}

.mobile-cart-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ga-red), #ff5f6d);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(193, 18, 31, 0.35);
    z-index: 1080;
}

.mobile-cart-fab i {
    font-size: 1.25rem;
}

.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ga-red);
    font-size: 0.78rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.app-container {
    max-width: 1180px;
}

.nav-modern {
    background: #fff;
}

.footer-dark {
    background: #1a1a1a;
}

.page-banner,
.login-body {
    background: linear-gradient(135deg, var(--ga-black), #25141a 60%, var(--ga-red));
}

/* New styles */
.hero-section.hero-home {
    padding: 60px 0;
}

.hero-main-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    border-radius: 50%;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-card-image {
    width: 80px;
    height: 80px;
    background: #fff5f5;
    border-radius: 50%;
}

.promo-banner {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.promo-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.how-to-icon {
    width: 80px;
    height: 80px;
    background: #fff5f5;
    border-radius: 50%;
}

.download-badge {
    height: 45px;
    border-radius: 8px;
}

.payment-badge {
    color: #1a1a1a;
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--ga-black), var(--ga-red-dark));
}

.nav-modern {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.nav-modern .navbar-brand {
    font-size: 1.08rem;
}

.nav-modern .nav-link {
    position: relative;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-modern .nav-link:hover,
.nav-modern .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-modern .nav-link:active {
    transform: translateY(1px) scale(0.98);
}

.nav-modern .btn {
    transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-modern .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.nav-modern .btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: none;
}

.desktop-cart-item {
    display: list-item;
}

.nav-dropdown {
    border-radius: 18px;
    padding: 0.5rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ga-red), #ff6b6b);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(193, 18, 31, 0.35);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 71, 87, 0.35), transparent 35%),
        linear-gradient(135deg, #07080b 0%, #1b1117 45%, #b51221 100%);
}

.hero-home {
    padding: 3.5rem 0 4rem;
    margin-bottom: 0;
    border-radius: 0 0 42px 42px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.08;
    max-width: 640px;
}

.hero-subtitle {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions .btn {
    min-width: 190px;
}

.hero-meta-label {
    color: rgba(255, 255, 255, 0.58) !important;
}

.hero-panel,
.panel-card,
.product-card,
.empty-state,
.admin-stat-card,
.info-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--ga-shadow);
}

.info-card {
    padding: 1rem 1.25rem;
}

/* Ensure info-card in modal looks good */
.modal .info-card {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #fdf2f3 0%, #fff 100%);
    border: 1px solid #f9d1d5;
}

.modal .info-card .small.text-secondary {
    color: #dc2626 !important;
    font-weight: 600;
}

.modal .info-card .fw-semibold {
    color: #1a1a1a !important;
}

.modal .info-card div:not(.small):not(.fw-semibold) {
    color: #4b5563 !important;
}

.hero-panel {
    background: rgba(20, 20, 24, 0.88);
    border: 1px solid var(--ga-border);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.hero-panel-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.hero-panel-copy {
    flex: 1;
    min-width: 0;
}

.hero-panel-copy h3 {
    font-size: 1.9rem;
    line-height: 1.2;
}

.hero-panel-text {
    max-width: 480px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
}

.glass-card,
.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
}

.metric-card {
    padding: 1rem 1.1rem;
}

.metric-card-hero {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card-hero h4 {
    font-size: 2rem;
    line-height: 1;
}

.metric-card-flow {
    min-height: 0;
}

.metric-card-flow p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88) !important;
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ga-red), #ff758f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.category-strip-section {
    padding: 0 0 2rem;
}

.category-strip {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 22px 50px rgba(17, 17, 17, 0.08);
    border: 1px solid rgba(15, 15, 17, 0.05);
}

.section-block {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.section-label,
.badge-soft-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-label {
    color: var(--ga-red);
    font-weight: 700;
}

.badge-soft-danger {
    color: #fff;
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 15, 17, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.chip-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
    color: var(--ga-red);
}

.chip-link span {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.8rem;
}

.product-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 16px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.btn-danger {
    background: linear-gradient(135deg, var(--ga-red), var(--ga-red-dark));
    border: none;
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, var(--ga-red-dark), var(--ga-red));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ga-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
}

.rounded-20 {
    border-radius: 20px;
}

.product-thumb-wrap {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #0f0f11, #3d1118);
}

.product-thumb-wrap.compact {
    height: 210px;
}

.product-thumb,
.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.product-desc {
    min-height: 40px;
}

.product-card h3 {
    line-height: 1.5;
    min-height: 3rem;
}

.detail-image-wrap {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--ga-shadow);
    height: 100%;
    min-height: 420px;
}

.price-xl {
    font-size: 2rem;
    font-weight: 700;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #ececec;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-thumb,
.admin-table-thumb {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
}

.sticky-summary {
    position: sticky;
    top: 100px;
}

.info-card {
    padding: 1rem 1.1rem;
    border: 1px solid #f0f0f0;
}

.footer-link {
    color: #b7bcc6;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

.footer-dark {
    margin-top: 2rem;
}

.admin-body {
    background: #f4f5f8;
    overflow-x: hidden;
}

.admin-shell {
    display: block;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 1035;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.16);
}

.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 2rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--ga-black), var(--ga-red));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 0.4rem 1.2rem;
    margin-bottom: 0.6rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding: 0 0.4rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-nav-link:hover {
    background: var(--ga-red);
    color: #fff;
    transform: translateX(4px);
}

.admin-nav-link.active {
    background: var(--ga-red);
    color: #fff;
    border-left-color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.admin-nav-badge {
    min-width: 26px;
    height: 26px;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ga-red);
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-footer-note {
    margin-top: 1rem;
    padding: 1.2rem 1rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-version {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.admin-stat-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--ga-black), var(--ga-red-dark));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.admin-stat-card .small.text-secondary {
    color: rgba(255,255,255,0.7) !important;
}

.admin-stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.admin-hero-card {
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 30%),
        linear-gradient(135deg, #ffffff, #fafafa);
}

.admin-highlight-card {
    background: rgba(15, 15, 17, 0.04);
    border: 1px solid rgba(15, 15, 17, 0.06);
    border-radius: 20px;
    padding: 1rem;
}

.admin-summary-panel {
    border-radius: 24px;
    padding: 1.25rem;
    background: linear-gradient(135deg, #121319, #26171c);
    color: #fff;
}

.admin-mini-stats {
    display: grid;
    gap: 0.8rem;
}

.admin-mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f6f7fb;
    border: 1px solid rgba(15, 15, 17, 0.05);
}

.topbar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ga-red), var(--ga-red-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 0.6rem;
}

.topbar-logout-btn {
    background: linear-gradient(135deg, var(--ga-red), var(--ga-red-dark));
    color: #fff;
    border: none;
}

.topbar-logout-btn:hover {
    background: linear-gradient(135deg, var(--ga-red-dark), var(--ga-red));
    transform: translateY(-2px);
}

.payment-method-admin-card,
.payment-method-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(15, 15, 17, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.payment-method-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(15, 15, 17, 0.08);
}

.payment-method-card {
    padding: 1rem;
}

.payment-method-preview {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(15, 15, 17, 0.08);
    background: #fff;
}

.chart-box {
    position: relative;
    min-height: 320px;
}

.chart-box-sm {
    min-height: 320px;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-icon-btn,
.topbar-logout-btn,
.topbar-user-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 46px;
    padding: 0 1rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.topbar-icon-btn {
    width: 46px;
    padding: 0;
}

.topbar-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-user-chip {
    justify-content: flex-start;
    max-width: 240px;
}

.topbar-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-logout-btn {
    border: 1px solid rgba(15, 15, 17, 0.08);
}

.admin-sidebar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-sidebar-backdrop {
    display: none;
}

.login-body {
    min-height: 100vh;
}

.min-vh-100 {
    min-height: 100vh;
}

.table > :not(caption) > * > * {
    padding: 0.95rem 0.85rem;
}

.modal-content {
    border: 0;
    border-radius: 24px;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-scrollable .modal-content {
    max-height: 80vh;
}

.modal-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-footer .btn {
    white-space: nowrap;
}

/* Fix index.php cut-off on mobile & overlapping */
.hero-section.hero-home {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-panel {
    position: relative;
    z-index: 1;
}

.category-strip-section {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
    padding-top: 2rem;
}

.category-strip {
    padding: 1.5rem;
    border-radius: 24px;
}

.category-strip .d-flex {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.btn-danger {
    background: var(--ga-red);
    border-color: var(--ga-red);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #a80f1a;
    border-color: #a80f1a;
}

.page-banner {
    color: #fff;
    padding: 3rem 0;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-radius: 0 26px 26px 0;
    }

    .admin-content {
        margin-left: 0;
        padding: 1.25rem;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1030;
    }

    .admin-body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-body.admin-sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .sticky-summary {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .mobile-cart-fab {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .nav-modern {
        padding: 0.6rem 0;
    }

    .nav-modern .container {
        position: relative;
        align-items: center;
    }

    .nav-modern .navbar-brand {
        max-width: calc(100% - 56px);
        font-size: 0.98rem;
    }

    .nav-modern .navbar-brand span:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-header {
        flex-direction: column;
        align-items: start;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-topbar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .admin-topbar-actions {
        display: flex;
        gap: 0.6rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .topbar-user-chip {
        flex: 1;
        min-width: 140px;
    }

    .chart-box,
    .chart-box-sm {
        min-height: 280px;
    }

    .admin-body.page-dashboard .chart-box {
        min-height: 240px;
    }

    .admin-body.page-dashboard .chart-box-sm {
        min-height: 240px;
    }

    .admin-body.page-dashboard .admin-stat-card {
        padding: 1.05rem;
        border-radius: 18px;
    }

    .admin-body.page-dashboard .admin-stat-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.25rem;
    }

    .admin-body.page-dashboard .admin-highlight-card {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .admin-body.page-dashboard .admin-highlight-card .small {
        font-size: 0.72rem;
    }

    .payment-method-preview {
        width: 92px;
        height: 92px;
    }

    .product-thumb-wrap,
    .product-thumb-wrap.compact {
        height: 160px;
    }
    
    .product-card h3 {
        font-size: 0.95rem;
    }
    
    .product-card .small {
        font-size: 0.8rem;
    }

    .detail-image-wrap {
        min-height: 280px;
    }

    .cart-thumb,
    .admin-table-thumb {
        width: 72px;
        height: 72px;
    }
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

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

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.catalog-sticky-bar {
    position: sticky;
    top: 66px;
    z-index: 1030;
    margin: -0.5rem 0 1rem;
    padding: 0.75rem;
    background: rgba(245, 245, 245, 0.92);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 15, 15, 0.06);
}

.catalog-sticky-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.65rem;
}

.catalog-sticky-form .input-group-text {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.1);
    border-right: 0;
}

.catalog-sticky-form .form-control,
.catalog-sticky-form .form-select {
    border-radius: 16px;
    border: 1px solid rgba(15, 15, 15, 0.1);
}

.catalog-sticky-form .input-group .form-control {
    border-left: 0;
}

.catalog-sticky-form .input-group .btn {
    border-radius: 16px;
}

.cart-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 15, 15, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1045;
}

.cart-bottom-total {
    min-width: 0;
}

.cart-qty-input {
    width: 108px;
    min-height: 48px;
    border-radius: 16px;
}

.order-card-grid {
    display: grid;
    gap: 0.9rem;
}

.order-card {
    background: #fff;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 15, 15, 0.06);
}

@media (max-width: 991.98px) {
    .mobile-cart-fab {
        display: none !important;
    }

    .site-main {
        padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    .page-product .site-main {
        padding-bottom: calc(10.8rem + env(safe-area-inset-bottom));
    }

    .nav-modern {
        padding: 0.55rem 0;
    }

    .nav-modern .navbar-toggler,
    .nav-modern .navbar-collapse {
        display: none !important;
    }

    .product-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(72px + env(safe-area-inset-bottom));
        padding: 0.8rem 0.9rem;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(15, 15, 15, 0.08);
        z-index: 1046;
        margin: 0 !important;
    }

    .product-mobile-cta .btn {
        min-height: 48px;
        border-radius: 16px;
    }

    .page-banner {
        padding: 1.75rem 0;
    }

    .page-banner h1 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .page-banner p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.admin-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 15, 15, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    z-index: 1040;
}

.admin-bottom-item {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.25rem;
    border-radius: 18px;
    text-decoration: none;
    color: rgba(17, 24, 39, 0.62);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-bottom-item i {
    font-size: 1.22rem;
    line-height: 1;
}

.admin-bottom-item span {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.admin-bottom-item.active {
    color: var(--ga-red);
    background: rgba(220, 38, 38, 0.08);
}

@media (max-width: 991.98px) {
    .admin-content {
        padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    .admin-body .form-control,
    .admin-body .form-select,
    .site-body .form-control,
    .site-body .form-select {
        min-height: 48px;
        border-radius: 16px;
    }

    .admin-body .btn,
    .site-body .btn {
        min-height: 48px;
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
    .table-responsive {
        overflow: visible;
    }

    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tr {
        background: #fff;
        border-radius: 20px;
        padding: 0.8rem 0.95rem;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(15, 15, 15, 0.06);
        margin-bottom: 0.9rem;
    }

    .table-mobile-cards td {
        padding: 0.45rem 0;
        border: 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.85rem;
    }

    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(17, 24, 39, 0.62);
        flex: 0 0 auto;
    }

    .table-mobile-cards td.text-end {
        text-align: left !important;
    }

    .table-mobile-cards td[data-label="Aksi"] {
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .table-mobile-cards td[data-label="Aksi"]::before {
        margin-bottom: 0.35rem;
    }

    .table-mobile-cards td[data-label="Aksi"] .btn,
    .table-mobile-cards td[data-label="Aksi"] form,
    .table-mobile-cards td[data-label="Aksi"] button {
        width: 100%;
    }

    .table-mobile-cards td[colspan] {
        display: block;
        text-align: center;
    }

    .table-mobile-cards td[colspan]::before {
        display: none;
    }
}

.admin-order-card {
    background: #fff;
    border-radius: 20px;
    padding: 0.9rem 0.95rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 15, 15, 0.06);
    margin-bottom: 0.9rem;
}

.admin-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.admin-order-code {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.admin-order-meta {
    color: rgba(17, 24, 39, 0.62);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-order-total {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.admin-order-card-actions {
    margin-top: 0.75rem;
}

.modal-backdrop {
    background: #0b0b0c;
    backdrop-filter: blur(6px);
}

.modal-backdrop.show {
    opacity: 0.65;
}

.modal.fade .modal-dialog {
    transform: translateY(18px);
    transition: transform 0.22s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.admin-body .modal-dialog {
    width: 94vw;
    max-width: 94vw;
    margin: 0.9rem auto;
}

.admin-body .modal-dialog.modal-ga-sm {
    max-width: min(94vw, 520px);
}

.admin-body .modal-dialog.modal-ga-md {
    max-width: min(94vw, 640px);
}

.admin-body .modal-dialog.modal-ga-lg {
    max-width: min(94vw, 700px);
}

@media (min-width: 768px) {
    .admin-body .modal-dialog.modal-ga-sm {
        max-width: min(80vw, 520px);
    }

    .admin-body .modal-dialog.modal-ga-md {
        max-width: min(80vw, 640px);
    }

    .admin-body .modal-dialog.modal-ga-lg {
        max-width: min(80vw, 700px);
    }
}

.admin-body .modal-content {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-body .modal-dialog-scrollable .modal-content {
    max-height: 80vh;
}

.admin-body .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.admin-body .modal-content > form > .modal-header,
.admin-body .modal-content > form > .modal-footer {
    flex: 0 0 auto;
}

.admin-body .modal-content > form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.admin-body .modal-header,
.admin-body .modal-footer {
    flex: 0 0 auto;
}

.admin-body .modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.admin-body .modal-header {
    background: #fff;
    padding: 0.95rem 1.05rem;
    border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

.admin-body .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    padding: 1rem 1.05rem;
}

.admin-body .modal-body .row.g-3 {
    --bs-gutter-y: 1rem;
}

.admin-body .modal-footer {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 0.9rem 1.05rem;
    border-top: 1px solid rgba(15, 15, 15, 0.08);
}

@media (max-width: 430px) {
    .site-body {
        font-size: 0.86rem;
    }

    .section-label,
    .badge-soft-danger {
        font-size: 0.68rem;
    }

    .product-card h3 {
        font-size: 0.82rem;
        min-height: 2.3rem;
    }

    .product-desc {
        font-size: 0.73rem;
    }

    .price-xl {
        font-size: 1.32rem;
    }

    .admin-body {
        font-size: 0.86rem;
    }

    .admin-body .modal-title {
        font-size: 0.98rem;
    }

    .admin-body .form-label {
        font-size: 0.76rem;
    }

    .admin-body .form-text {
        font-size: 0.72rem;
    }

    .site-body .btn {
        font-size: 0.86rem;
    }

    .product-mobile-cta .btn {
        font-size: 0.86rem;
        padding: 0.62rem 0.85rem;
    }
}

@media (max-width: 390px) {
    .site-body {
        font-size: 0.84rem;
    }

    .bottom-nav-item span,
    .admin-bottom-item span {
        font-size: 0.64rem;
    }

    .bottom-nav-item i,
    .admin-bottom-item i {
        font-size: 1.06rem;
    }

    .product-thumb-wrap,
    .product-thumb-wrap.compact {
        height: 140px;
    }
}

@media (max-width: 360px) {
    .site-body {
        font-size: 0.82rem;
    }

    .product-thumb-wrap,
    .product-thumb-wrap.compact {
        height: 132px;
    }

    .bottom-nav {
        height: 64px;
        padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    }

    .product-mobile-cta {
        bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .cart-bottom-bar {
        bottom: calc(64px + env(safe-area-inset-bottom));
    }
}
