/* =========================
   ADMIN UI IMPROVEMENT
   ========================= */

:root {
    --admin-sidebar-width: 250px;
    --admin-gap: 18px;
    --admin-radius: 18px;
    --admin-radius-sm: 12px;
    --admin-border: #e8d8ae;
    --admin-bg-soft: #fffdf8;
    --admin-bg-card: #ffffff;
    --admin-text: #1f2430;
    --admin-muted: #6b7280;
    --admin-gold: #d8aa2c;
    --admin-gold-dark: #b78500;
    --admin-shadow: 0 8px 24px rgba(27, 31, 35, 0.06);
}

/* base admin typography */
.admin-main,
.admin-content,
.admin-card,
.admin-table,
.admin-sidebar,
.admin-topbar {
    color: var(--admin-text);
    font-size: 14px;
    line-height: 1.55;
}

.admin-main h1 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    margin-bottom: 6px;
}

.admin-main h2 {
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.25;
    margin-bottom: 6px;
}

.admin-main h3 {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.3;
}

.admin-main p,
.admin-main small,
.admin-main label,
.admin-main span {
    line-height: 1.5;
}

/* admin layout */
.admin-layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    background: #faf8f1;
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    min-width: var(--admin-sidebar-width);
    max-width: var(--admin-sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
    scrollbar-width: thin;
    flex-shrink: 0;
    border-right: 1px solid #eee3bf;
    background: #fffdf8;
}

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

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #ddc57d;
    border-radius: 99px;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-content {
    padding: 24px;
}

.admin-card {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--admin-shadow);
    margin-bottom: 22px;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-card-head h2 {
    margin: 0;
}

.admin-card-head p {
    margin: 4px 0 0;
    color: var(--admin-muted);
}

/* sidebar brand/profile/menu */
.admin-sidebar-brand {
    padding: 20px 18px 14px;
    border-bottom: 1px solid #f0e7cb;
}

.admin-sidebar-brand a {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: #1d2433;
}

.admin-sidebar-brand a span {
    color: var(--admin-gold-dark);
}

.admin-profile {
    margin: 18px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    background: #fffefb;
}

.admin-profile strong {
    display: block;
    font-size: 15px;
}

.admin-profile span {
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-menu {
    padding: 0 14px 14px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #253045;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-menu a:hover {
    background: #f8f1d7;
}

.admin-menu a.active {
    background: #f3e3ab;
    color: #5c4500;
}

.admin-menu a.danger {
    color: #c62828;
}

/* topbar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(250, 248, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee3bf;
}

.admin-topbar-title h1 {
    margin: 0;
}

.admin-topbar-title p {
    margin: 4px 0 0;
    color: var(--admin-muted);
}

.admin-topbar-user {
    font-weight: 700;
}

/* button */
.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 999px;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 18px;
    transition: all 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(180deg, #e8bf4a, #d2a11f);
    color: #222 !important;
    border: 1px solid #d5aa34;
    box-shadow: 0 8px 18px rgba(210, 161, 31, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(180deg, #edc857, #cf9d18);
}

.btn-light {
    background: #fff;
    border: 1px solid var(--admin-border);
    color: #1f2430;
}

.btn-danger {
    background: #fff5f5;
    border: 1px solid #f0b6b6;
    color: #c62828;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}

/* form */
.admin-form-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
    width: 100%;
    border: 1px solid var(--admin-border);
    background: #fffefb;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--admin-text);
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: #d8aa2c;
    box-shadow: 0 0 0 3px rgba(216, 170, 44, 0.12);
}

/* metric cards / dashboard cards */
.stats-grid,
.dashboard-stats,
.summary-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card,
.summary-card,
.metric-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--admin-shadow);
}

.stat-card h3,
.summary-card h3,
.metric-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-muted);
    margin: 0 0 10px;
}

.stat-card .value,
.summary-card .value,
.metric-card .value,
.stat-card strong,
.summary-card strong,
.metric-card strong {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    color: #141b2a;
}

/* table */
.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1e8cc;
    vertical-align: top;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: #fcf8eb;
    font-size: 12px;
    text-transform: none;
    white-space: nowrap;
    color: #5a6475;
    font-weight: 700;
}

.admin-table td strong {
    color: #1d2433;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* status badge */
.admin-status,
.badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.status-active,
.badge-success,
.pill-success {
    background: #e9faf1;
    color: #1b8f52;
    border: 1px solid #bee8d0;
}

.status-pending,
.badge-warning,
.pill-warning {
    background: #fff7df;
    color: #9a6a00;
    border: 1px solid #eedda2;
}

/* filter section helper */
.filter-grid,
.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* mobile / tablet */
@media (max-width: 1200px) {
    .filter-grid,
    .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1100;
        height: 100vh;
        transition: left 0.25s ease;
        box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 1090;
    }

    .admin-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        width: 100%;
    }

    .admin-content {
        padding: 18px;
    }

    .admin-form-grid,
    .form-grid,
    .filter-grid,
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 14px 16px;
    }

    .admin-content {
        padding: 14px;
    }

    .admin-card {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-table {
        min-width: 760px;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        width: auto;
    }
}

@media (max-width: 576px) {
    .admin-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-row-actions {
        flex-direction: column;
    }

    .admin-row-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-topbar-user {
        display: none;
    }
}
:root {
    --gold: #c8961e;
    --gold-soft: #f7d774;
    --gold-light: #fff7df;
    --cream: #fffaf0;
    --white: #ffffff;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --border: #f0dfb8;
    --danger: #be123c;
    --success: #047857;
    --shadow: 0 22px 60px rgba(154, 107, 0, .12);
}

* {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--cream);
    color: var(--dark);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.mt-12 {
    margin-top: 12px;
}

.mt-24 {
    margin-top: 24px;
}

/* BUTTON */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #281a00;
    box-shadow: 0 14px 28px rgba(200, 150, 30, .25);
}

.btn-light {
    background: #ffffff;
    border: 1px solid var(--border);
    color: #7a5500;
}

.btn-danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.btn-sm {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* GLOBAL LOADER */
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 250, 240, .92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease, visibility .35s ease;
    pointer-events: auto;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-card {
    width: 220px;
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.loader-ring {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 5px solid #f4e3b7;
    border-top-color: var(--gold);
    animation: spin .8s linear infinite;
}

.loader-card strong {
    display: block;
    font-size: 16px;
    color: var(--dark);
}

.loader-card span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* NAVBAR USER */
.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 24px;
    font-weight: 950;
    color: #9a6b00;
    letter-spacing: -.6px;
}

.brand span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a {
    color: var(--text);
}

/* MOBILE SIDEBAR USER */
.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #7a5500;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    z-index: 120;
    touch-action: manipulation;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .38);
    backdrop-filter: blur(6px);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    touch-action: manipulation;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: min(320px, 88vw);
    height: 100vh;
    background: #fffdf7;
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 22px;
    transition: .3s ease;
    box-shadow: -30px 0 70px rgba(17, 24, 39, .18);
}

.mobile-sidebar.active {
    right: 0;
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.sidebar-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #7a5500;
    font-size: 28px;
    cursor: pointer;
    touch-action: manipulation;
}

.sidebar-menu {
    display: grid;
    gap: 12px;
    padding-top: 22px;
}

.sidebar-menu a {
    padding: 15px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    font-weight: 900;
    color: var(--text);
    touch-action: manipulation;
}

/* FORM */
.form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.form label {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.form input,
.form select,
.form textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fffdf8;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(200, 150, 30, .13);
}

/* CHECKBOX FIX */
.checkbox-label,
.admin-form label:has(input[type="checkbox"]) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    margin: 4px 0 !important;
}

.checkbox-label input[type="checkbox"],
.admin-form input[type="checkbox"],
.form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    accent-color: var(--gold);
    flex: 0 0 18px !important;
    box-shadow: none !important;
}
/* HOME HERO */
.hero {
    padding: 72px 0 50px;
    background:
        radial-gradient(circle at 15% 15%, rgba(247, 215, 116, .42), transparent 34%),
        linear-gradient(135deg, #fff8e6, #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 15px;
    border-radius: 999px;
    background: #ffffff;
    color: #9a6b00;
    border: 1px solid #efd48a;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.hero h1 span {
    color: #b8860b;
}

.hero p {
    color: #5b6472;
    font-size: 17px;
    line-height: 1.8;
}

.hero-card,
.card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 34px;
    padding: 28px;
}

.stat-item {
    background: var(--cream);
    border: 1px solid #f1e4c5;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: #9a6b00;
}

/* SECTIONS */
.section {
    padding: 54px 0;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1px;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    background: #ffffff;
    border: 1px solid var(--border);
    color: #7a5500;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
}

/* PRODUCT GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .07);
    transition: .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(154, 107, 0, .15);
}

.product-image {
    aspect-ratio: 16 / 9;
    height: auto;
    background: linear-gradient(135deg, rgba(247, 215, 116, .8), rgba(255, 255, 255, .8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    color: #9a6b00;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fffaf0;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 22px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    color: #9a6b00;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.product-card p {
    color: var(--muted);
    line-height: 1.6;
    min-height: 50px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.price {
    font-size: 22px;
    font-weight: 950;
}

.old-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
    font-weight: 800;
}

/* PRODUCT DETAIL */
.page {
    padding: 54px 0;
}

.breadcrumb {
    color: #7a5500;
    font-weight: 900;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 34px;
    align-items: start;
}

.image-box {
    background: linear-gradient(135deg, rgba(247, 215, 116, .75), rgba(255, 255, 255, .9));
    border: 1px solid var(--border);
    border-radius: 34px;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a6b00;
    font-size: 90px;
    font-weight: 900;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 30px;
    box-shadow: 0 22px 55px rgba(17, 24, 39, .07);
}

.product-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.short {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.price-box {
    padding: 20px;
    background: var(--cream);
    border: 1px solid #f1e4c5;
    border-radius: 24px;
    margin: 22px 0;
}

.price-big {
    font-size: 34px;
    font-weight: 950;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.info {
    padding: 16px;
    background: var(--cream);
    border: 1px solid #f1e4c5;
    border-radius: 20px;
}

.info span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.description {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 28px;
    line-height: 1.8;
    color: var(--text);
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.disabled {
    opacity: .55;
    pointer-events: none;
}

/* CHECKOUT */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 24px;
    align-items: start;
}

.checkout-grid .card,
.checkout-grid .detail-card {
    width: 100%;
    overflow: hidden;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

.alert-danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* INVOICE V2 */
.inv-v2 {
    max-width: 1120px;
    margin: 0 auto;
}

.inv-hero {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.inv-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.inv-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(25px, 5vw, 42px);
    line-height: 1.15;
    word-break: break-word;
}

.inv-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.inv-status {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

.inv-status.status-paid,
.status-paid {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.inv-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 20px;
    align-items: start;
}

.inv-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .06);
}

.inv-card h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -1px;
}

.inv-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 700;
}

.inv-list {
    display: grid;
    gap: 10px;
}

.inv-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3e7c8;
}

.inv-row:last-child {
    border-bottom: 0;
}

.inv-row span {
    color: var(--muted);
    font-weight: 800;
}

.inv-row strong {
    text-align: right;
    font-weight: 950;
    word-break: break-word;
}

.inv-pay-card {
    background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.payment-panel {
    display: grid;
    gap: 18px;
}

.payment-method-label {
    width: fit-content;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--gold-light);
    border: 1px solid var(--border);
    color: #7a5500;
    font-weight: 950;
}

.qris-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 18px;
    text-align: center;
    box-shadow: inset 0 0 0 8px #fffaf0;
}

.qris-box img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 18px;
}

.payment-number {
    padding: 18px;
    border-radius: 22px;
    border: 1px dashed var(--gold);
    background: #fffdf7;
    font-size: 22px;
    font-weight: 950;
    color: var(--dark);
    text-align: center;
    word-break: break-all;
    letter-spacing: .5px;
}

.premium-total-box,
.payment-total {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid var(--border);
}

.premium-total-box span,
.payment-total span {
    color: var(--muted);
    font-weight: 900;
}

.premium-total-box strong,
.payment-total strong {
    font-size: 32px;
    color: var(--dark);
}

.inv-success,
.payment-success-box {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 24px;
    padding: 22px;
}

.inv-success h3,
.payment-success-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.inv-success p,
.payment-success-box p {
    margin: 0;
    font-weight: 800;
}

.delivery-box {
    margin-top: 14px;
    padding: 20px;
    border-radius: 24px;
    background: #fffdf7;
    border: 1px dashed var(--gold);
    color: var(--text);
    font-weight: 800;
    line-height: 1.8;
    word-break: break-word;
}

.inv-product-box {
    margin-top: 20px;
}/* ADMIN LOGIN */
.admin-login-page {
    min-height: 100vh;
    padding: 50px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(247,215,116,.34), transparent 30%),
        linear-gradient(135deg, #fffaf0, #ffffff);
}

.admin-login-card {
    width: min(460px, 100%);
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.login-brand {
    font-size: 30px;
    font-weight: 950;
    color: #9a6b00;
    margin-bottom: 20px;
}

.login-brand span {
    color: var(--dark);
}

.admin-login-card h1 {
    margin: 16px 0 8px;
    font-size: 34px;
    letter-spacing: -1px;
}

.admin-login-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.login-back {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #7a5500;
    font-weight: 900;
}

/* ADMIN LAYOUT */
.admin-body {
    background: #fffaf0;
    overflow-x: hidden;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 280px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 22px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 220;
    box-shadow: 18px 0 45px rgba(17,24,39,.05);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-sidebar-brand a {
    font-size: 26px;
    font-weight: 950;
    color: #9a6b00;
}

.admin-sidebar-brand span {
    color: var(--dark);
}

.admin-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: #7a5500;
    font-size: 26px;
}

.admin-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #281a00;
    font-weight: 950;
    flex: 0 0 44px;
}

.admin-profile strong,
.admin-profile span {
    display: block;
}

.admin-profile span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-menu {
    display: grid;
    gap: 10px;
}

.admin-menu a {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 900;
    color: var(--text);
    border: 1px solid transparent;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--gold-light);
    border-color: var(--border);
    color: #7a5500;
}

.admin-menu a.danger {
    color: #be123c;
}

.admin-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.admin-topbar {
    min-height: 88px;
    padding: 18px 28px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 80;
}

.admin-topbar-title {
    min-width: 0;
    flex: 1;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -1px;
}

.admin-topbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.admin-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: #7a5500;
    font-size: 23px;
    flex: 0 0 44px;
}

.admin-topbar-user {
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 900;
    color: #7a5500;
    white-space: nowrap;
}

/* ADMIN CONTENT */
.admin-content {
    padding: 28px;
    width: 100%;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-stat-card,
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(17,24,39,.05);
}

.admin-stat-card span {
    color: var(--muted);
    font-weight: 900;
}

.admin-stat-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.admin-stat-card p,
.admin-muted,
.admin-card p {
    color: var(--muted);
    line-height: 1.6;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 22px;
    align-items: start;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -1px;
}

.admin-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.admin-mini-info {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: var(--gold-light);
    border: 1px solid var(--border);
}

.admin-mini-info span {
    color: #7a5500;
    font-weight: 900;
}

.admin-mini-info strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
}

/* ADMIN TABLE */
.admin-table-wrap {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow-x: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.admin-table th {
    padding: 18px 20px;
    background: #fffaf0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #f3e7c8;
}

.admin-table td {
    padding: 18px 20px;
    vertical-align: middle;
    line-height: 1.6;
    border-bottom: 1px solid #f3e7c8;
    font-size: 14px;
    font-weight: 700;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table td strong {
    line-height: 1.5;
}

.admin-table small {
    color: var(--muted);
    font-weight: 700;
}

.admin-table a {
    color: #9a6b00;
    font-weight: 950;
}

.admin-row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

.admin-status.status-paid,
.admin-status.status-active,
.admin-status.status-available,
.admin-status.status-delivered {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.admin-status.status-sold {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.admin-status.status-failed,
.admin-status.status-expired,
.admin-status.status-cancelled,
.admin-status.status-inactive,
.admin-status.status-reserved,
.admin-status.status-blocked {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

/* ADMIN FORMS */
.admin-form {
    max-width: 820px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-image-preview {
    width: 160px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fffaf0;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1fr 220px auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

/* ADMIN DETAIL */
.admin-detail-list {
    display: grid;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3e7c8;
}

.admin-detail-list div:last-child {
    border-bottom: 0;
}

.admin-detail-list span {
    color: var(--muted);
    font-weight: 900;
}

.admin-detail-list strong {
    text-align: right;
    word-break: break-word;
}

/* STOCK */
.stock-content-preview {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
    font-size: 13px;
    background: #fffaf0;
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 14px;
}

/* ADMIN OVERLAY */
.admin-overlay {
    display: none;
}

/* ADMIN MOBILE */
@media (max-width: 1000px) {
    .admin-sidebar {
        transform: translateX(-105%);
        transition: .3s ease;
    }

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

    .admin-sidebar-close,
    .admin-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17,24,39,.35);
        backdrop-filter: blur(6px);
        z-index: 210;
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
    }

    .admin-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .admin-topbar {
        width: 100%;
        padding: 16px 18px;
        justify-content: flex-start;
        gap: 14px;
    }

    .admin-topbar h1 {
        font-size: 24px;
        line-height: 1.15;
    }

    .admin-topbar p {
        font-size: 14px;
        line-height: 1.5;
    }

    .admin-topbar-user {
        display: none;
    }

    .admin-content {
        padding: 18px;
    }

    .admin-stats-grid,
    .admin-panel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-card-head {
        display: grid;
        gap: 12px;
    }

    .admin-card-head .btn {
        width: 100%;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }
}
/* FOOTER */
.footer,
.premium-footer {
    margin-top: 60px;
    padding: 56px 0 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(247,215,116,.18), transparent 34%),
        linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

.footer-premium-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-brand {
    display: inline-block;
    font-size: 30px;
    font-weight: 950;
    color: var(--gold-soft);
    margin-bottom: 14px;
}

.footer-brand span {
    color: #ffffff;
}

.footer-brand-box p,
.footer-contact p,
.footer p {
    color: #d1d5db;
    line-height: 1.8;
}

.footer-menu h4,
.footer-contact h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.footer-menu a {
    color: #d1d5db;
    font-weight: 700;
}

.footer-menu a:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
}

/* MOBILE USER */
@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-inner {
        height: 68px;
    }

    .brand {
        font-size: 21px;
    }

    .hero {
        padding: 44px 0 34px;
    }

    .hero-grid,
    .grid,
    .product-grid,
    .info-grid,
    .checkout-grid,
    .inv-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-card,
    .card,
    .detail-card,
    .description,
    .inv-card,
    .inv-hero {
        border-radius: 24px;
        padding: 22px;
    }

    .section {
        padding: 34px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .product-image {
        height: 155px;
    }

    .price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .price-row .btn,
    .action-row .btn {
        width: 100%;
    }

    .image-box {
        height: 260px;
        border-radius: 24px;
        font-size: 64px;
    }

    .product-title {
        font-size: 32px;
    }

    .inv-hero-top {
        display: grid;
    }

    .inv-row {
        display: grid;
        gap: 4px;
    }

    .inv-row strong {
        text-align: left;
    }

    .premium-total-box strong,
    .payment-total strong {
        font-size: 27px;
    }

    .footer-premium-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .premium-footer,
    .footer {
        padding: 42px 0 22px;
    }

    .footer-contact .btn {
        width: 100%;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 31px;
    }

    .category-pill {
        width: 100%;
        text-align: center;
    }

    .product-title {
        font-size: 28px;
    }

    .form input,
    .form select,
    .form textarea {
        min-height: 52px;
        border-radius: 16px;
    }

    .inv-hero h1 {
        font-size: 24px;
    }

    .inv-card {
        padding: 18px;
    }

    .qris-box {
        padding: 12px;
    }

    .qris-box img {
        max-width: 260px;
    }

    .premium-total-box strong,
    .payment-total strong {
        font-size: 24px;
    }

    .payment-number {
        font-size: 19px;
    }
}

/* ADMIN MOBILE TABLE CARD */
@media (max-width: 700px) {
    .admin-content {
        padding: 14px;
    }

    .admin-topbar {
        padding: 14px;
    }

    .admin-menu-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .admin-stat-card,
    .admin-card {
        width: 100%;
        border-radius: 24px;
        padding: 20px;
    }

    .admin-stat-card strong {
        font-size: 28px;
    }

    .admin-card h2 {
        font-size: 24px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-detail-list strong {
        text-align: left;
    }

    .admin-table-wrap {
        border: none;
        background: transparent;
        margin-top: 16px;
        overflow: visible;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        background: #fffdf7;
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: 0 10px 24px rgba(17,24,39,.04);
    }

    .admin-table td {
        border-bottom: 1px solid #f3e7c8;
        padding: 10px 0;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 12px;
        align-items: start;
        font-size: 14px;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 950;
        line-height: 1.5;
    }

    .admin-table td a,
    .admin-table td span,
    .admin-table td strong,
    .admin-table td small {
        text-align: left;
        word-break: break-word;
    }

    .admin-row-actions {
        width: 100%;
        display: grid;
        gap: 8px;
        justify-content: stretch;
    }

    .admin-row-actions .btn {
        width: 100%;
    }

    .stock-content-preview {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
}

/* EXTRA SMALL ADMIN */
@media (max-width: 380px) {
    .admin-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-topbar h1 {
        font-size: 22px;
    }

    .admin-topbar p {
        font-size: 13px;
    }
}

/* SAFETY FIX */
.admin-card,
.card,
.detail-card,
.inv-card,
.hero-card {
    max-width: 100%;
}

table {
    max-width: 100%;
}

pre,
code {
    white-space: pre-wrap;
    word-break: break-word;
}
.setting-file-input {
    min-height: auto !important;
    height: auto !important;
    padding: 14px !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    background: #fffdf8 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.settings-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(17,24,39,.05);
}

.settings-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -1px;
}

.settings-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.settings-section {
    display: grid;
    gap: 14px;
}

.settings-full {
    grid-column: 1 / -1;
}

.settings-submit-card {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-top: 22px;
}

.settings-file-note {
    display: block;
    margin-top: -6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}

.setting-file-input {
    min-height: auto !important;
    height: auto !important;
    padding: 14px !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    background: #fffdf8 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .settings-card {
        border-radius: 24px;
        padding: 20px;
    }

    .settings-card h2 {
        font-size: 24px;
    }

    .settings-submit-card .action-row {
        display: grid;
    }

    .settings-submit-card .btn {
        width: 100%;
    }
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(17,24,39,.07);
}

.blog-image {
    height: 190px;
    background: linear-gradient(135deg, rgba(247,215,116,.75), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a6b00;
    font-size: 48px;
    font-weight: 950;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 22px;
}

.blog-body h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
}

.blog-body p {
    color: var(--muted);
    line-height: 1.7;
}

.article-shell {
    max-width: 880px;
    margin: 0 auto;
}

.article-hero {
    background: linear-gradient(135deg, #ffffff, #fff7df);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.article-hero h1 {
    margin: 10px 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.article-hero p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #7a5500;
    font-weight: 900;
    font-size: 14px;
}

.article-thumbnail {
    margin: 24px 0;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(17,24,39,.07);
}

.article-thumbnail img {
    width: 100%;
    display: block;
}

.article-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 32px;
    line-height: 1.9;
    color: var(--text);
    font-size: 17px;
}

.article-content img {
    max-width: 100%;
    border-radius: 20px;
}

.article-content h2,
.article-content h3 {
    color: var(--dark);
    letter-spacing: -.5px;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-hero,
    .article-content {
        border-radius: 24px;
        padding: 22px;
    }

    .article-thumbnail {
        border-radius: 24px;
    }
}

/* CATEGORY GRID MENU */
.categories.category-grid-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.category-grid-card.category-pill {
    width: auto !important;
    min-height: 112px;
    padding: 18px 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: #7a5500;
    box-shadow: 0 14px 34px rgba(154, 107, 0, .08);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-align: center;
    font-weight: 950;
    line-height: 1.25;
    transition: .25s ease;
}

.category-grid-card.category-pill:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 20px 44px rgba(154, 107, 0, .14);
}

.category-grid-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--gold-light);
    border: 1px solid var(--border);
    color: #9a6b00;

    display: grid;
    place-items: center;

    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.category-grid-title {
    display: block;
    font-size: 14px;
    font-weight: 950;
    color: #7a5500;
    word-break: break-word;
}

/* TABLET */
@media (max-width: 900px) {
    .categories.category-grid-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .categories.category-grid-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-grid-card.category-pill {
        min-height: 104px;
        padding: 16px 10px;
        border-radius: 20px;
    }

    .category-grid-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        font-size: 22px;
    }

    .category-grid-title {
        font-size: 13px;
    }
}

/* EXTRA SMALL */
@media (max-width: 360px) {
    .categories.category-grid-menu {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FINAL FIXES — ALZAEN STORE
   Perbaikan: navbar, kategori, gambar produk, slider, admin gallery
   ========================================================= */

/* NAVBAR FIXED / STICKY SAFE */
.navbar.fixed-navbar,
.fixed-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(17, 24, 39, .05);
}

html {
    scroll-padding-top: var(--navbar-height, 76px);
}

body:has(.fixed-navbar) {
    padding-top: var(--navbar-height, 76px);
}

/* NAVBAR DROPDOWN */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 4px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(17, 24, 39, .12);
    padding: 10px;
    display: none;
    z-index: 1000000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a,
.nav-dropdown-empty {
    display: block;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 800;
}

.nav-dropdown-menu a:hover {
    background: var(--gold-light);
    color: #7a5500;
}

.nav-dropdown-empty {
    color: var(--muted);
}

/* MOBILE CATEGORY DROPDOWN */
.mobile-category-dropdown {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

.mobile-category-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-dropdown-icon {
    font-size: 13px;
    transition: .25s ease;
}

.mobile-category-dropdown[open] .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-category-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.mobile-category-list a {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--gold-light);
    border: 1px solid var(--border);
    color: #7a5500;
    font-size: 14px;
    font-weight: 900;
}

/* PRODUCT IMAGE — anti crop, pesan poster tidak kepotong */
.product-image {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(247, 215, 116, .55), rgba(255, 255, 255, .95));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #fffaf0;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

/* PRODUCT IMAGE AUTO SLIDER */
.product-image-slider {
    position: relative;
    overflow: hidden;
}

.product-image-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    background: #fffaf0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .7s ease, transform .7s ease;
}

.product-image-slider img.active {
    opacity: 1;
    transform: scale(1);
}

.product-image-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
}

.product-image-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(154, 107, 0, .35);
    border: 1px solid rgba(255, 255, 255, .65);
    transition: .25s ease;
}

.product-image-dots span.active {
    width: 18px;
    background: var(--gold);
    border-color: var(--gold);
}

/* PRODUCT CARD DETAIL RESPONSIVE */
.product-card h3 {
    line-height: 1.35;
}

.product-card p {
    min-height: auto;
}

/* ADMIN GALLERY PREVIEW */
.admin-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 14px;
}

.admin-gallery-item {
    display: grid !important;
    gap: 8px;
    width: 100% !important;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fffdf8;
    cursor: pointer;
}

.admin-gallery-item img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background: #fffaf0;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.admin-gallery-item span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    color: #7a5500;
}

.admin-gallery-item input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
}

/* MOBILE REFINEMENT */
@media (max-width: 900px) {
    .nav-dropdown {
        display: none;
    }

    .product-image {
        aspect-ratio: 16 / 9;
        height: auto !important;
    }
}

@media (max-width: 700px) {
    .admin-gallery-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .product-card {
        border-radius: 24px;
    }

    .product-body {
        padding: 18px;
    }

    .product-card h3 {
        font-size: 19px;
    }

    .product-image-dots {
        bottom: 9px;
    }
}


/* DETAIL PRODUCT IMAGE FIX */
.image-box.product-image-slider {
    position: relative;
    overflow: hidden;
    background: #fffaf0;
}

.image-box.product-image-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #fffaf0;
}

/* SHOPEE-LIKE PRODUCT CATEGORY BAR */
.product-market-section {
    padding-top: 110px;
}

.product-category-sticky {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
    background: rgba(255, 250, 240, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(240, 223, 184, .7);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.product-category-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-category-scroll::-webkit-scrollbar {
    display: none;
}

.product-category-scroll {
    scrollbar-width: none;
}

.product-category-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: #7a5500;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(154, 107, 0, .05);
}

.product-category-tab.active {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #281a00;
    border-color: var(--gold);
    box-shadow: 0 12px 24px rgba(200, 150, 30, .22);
}

/* MOBILE PRODUCT GRID LIKE MARKETPLACE */
@media (max-width: 900px) {
    .product-market-section {
        padding-top: 110px;
    }

    .product-category-sticky {
        top: var(--navbar-height, 68px);
        margin-left: -14px;
        margin-right: -14px;
        padding: 10px 14px 6px;
    }

    .product-category-tab {
        min-height: 38px;
        padding: 9px 14px;
        font-size: 13px;
    }

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

    .product-list-grid .product-card {
        border-radius: 20px;
        box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
    }

    .product-list-grid .product-image {
        aspect-ratio: 1 / 1;
        height: auto !important;
        font-size: 34px;
    }

    .product-list-grid .product-body {
        padding: 12px;
    }

    .product-list-grid .product-meta {
        font-size: 10px;
        gap: 6px;
        margin-bottom: 7px;
    }

    .product-list-grid .product-card h3 {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 6px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 38px;
    }

    .product-list-grid .product-card p {
        font-size: 12px;
        line-height: 1.45;
        min-height: 34px;
        margin: 0 0 10px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-list-grid .price-row {
        margin-top: 10px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .product-list-grid .price {
        font-size: 17px;
        line-height: 1.2;
    }

    .product-list-grid .old-price {
        font-size: 11px;
    }

    .product-list-grid .price-row .btn {
        width: 100%;
        min-height: 38px;
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .grid.product-list-grid {
        gap: 10px !important;
    }

    .product-list-grid .product-body {
        padding: 10px;
    }

    .product-list-grid .product-card h3 {
        font-size: 13px;
        min-height: 36px;
    }

    .product-list-grid .price {
        font-size: 16px;
    }

    .product-list-grid .price-row .btn {
        font-size: 12px;
    }
}

.stock-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.stock-filter-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: #7a5500;
    font-size: 14px;
    font-weight: 900;
}

.stock-filter-tabs a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--gold-light);
    border: 1px solid var(--border);
    color: #7a5500;
    font-size: 12px;
    font-weight: 950;
}

.stock-filter-tabs a.active {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #281a00;
    border-color: var(--gold);
    box-shadow: 0 10px 22px rgba(200, 150, 30, .22);
}

.stock-filter-tabs a.active span {
    background: #ffffff;
    color: #7a5500;
}

@media (max-width: 600px) {
    .stock-filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stock-filter-tabs a {
        width: 100%;
    }
}

/* FREE LEAD MAGNET POPUP */
.free-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.free-lead-modal.active {
    display: flex;
}

.free-lead-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.free-lead-box {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, .24);
    animation: freeLeadPop .25s ease;
}

@keyframes freeLeadPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.free-lead-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fffaf0;
    color: #7a5500;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}

.free-lead-header {
    padding-right: 46px;
    margin-bottom: 20px;
}

.free-lead-header .badge {
    margin-bottom: 12px;
}

.free-lead-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.free-lead-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 700;
}

.free-lead-product-box {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 22px;
    background: var(--gold-light);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.free-lead-product-box span {
    color: #7a5500;
    font-size: 13px;
    font-weight: 900;
}

.free-lead-product-box strong {
    color: var(--dark);
    font-size: 17px;
    line-height: 1.4;
}

.free-lead-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--muted) !important;
    font-weight: 800 !important;
}

.free-lead-consent input {
    margin-top: 3px !important;
}

.free-lead-alert {
    display: none;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
}

.free-lead-alert.active {
    display: block;
}

.free-lead-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.free-lead-alert.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

body.free-lead-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .free-lead-modal {
        align-items: flex-end;
        padding: 0;
    }

    .free-lead-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 28px 28px 0 0;
        padding: 24px 18px;
    }

    .free-lead-header h2 {
        font-size: 25px;
    }

    .free-lead-close {
        top: 14px;
        right: 14px;
    }
}



/* =========================================================
   STOREFRONT PREMIUM POLISH — HOME PAGE
   Fokus: desktop + mobile tampilan toko depan
   ========================================================= */

body:not(.admin-body) {
    background:
        radial-gradient(circle at 6% 0%, rgba(247, 215, 116, .22), transparent 26%),
        linear-gradient(180deg, #fffaf0 0%, #fffdf8 42%, #fffaf0 100%);
    color: #111827;
    text-rendering: optimizeLegibility;
}

body:not(.admin-body) .container {
    width: min(1160px, calc(100% - 44px));
}

body:not(.admin-body) .navbar {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(240, 223, 184, .78);
    box-shadow: 0 12px 34px rgba(17, 24, 39, .04);
}

body:not(.admin-body) .nav-inner {
    height: 74px;
}

body:not(.admin-body) .brand {
    font-size: 25px;
    letter-spacing: -.8px;
    color: #111827;
}

body:not(.admin-body) .brand::first-letter {
    color: #b8860b;
}

body:not(.admin-body) .nav-links {
    gap: 20px;
}

body:not(.admin-body) .nav-links a {
    font-size: 14px;
    color: #222b3a;
    opacity: .95;
}

body:not(.admin-body) .nav-links .btn,
body:not(.admin-body) .nav-links a.btn-gold {
    padding-inline: 22px;
    min-height: 44px;
}

body:not(.admin-body) .btn {
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 950;
    letter-spacing: -.1px;
}

body:not(.admin-body) .btn-gold {
    background: linear-gradient(135deg, #f3cf62 0%, #d8a528 54%, #b47d07 100%);
    color: #211700 !important;
    border: 1px solid rgba(184, 134, 11, .35);
    box-shadow: 0 14px 26px rgba(200, 150, 30, .24);
}

body:not(.admin-body) .btn-light {
    background: rgba(255, 255, 255, .92);
    border: 1px solid #ead7a5;
    color: #6b4b00;
    box-shadow: 0 10px 20px rgba(17, 24, 39, .04);
}

body:not(.admin-body) .btn:hover {
    transform: translateY(-2px);
}

/* HERO V2 */
.home-hero-v2 {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 94px) 0 clamp(50px, 6vw, 76px);
    background:
        radial-gradient(circle at 18% 18%, rgba(247, 215, 116, .45), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, .92), transparent 30%),
        linear-gradient(135deg, #fff6da 0%, #fffdf7 48%, #ffffff 100%);
    border-bottom: 1px solid rgba(240, 223, 184, .68);
}

.home-hero-v2::before,
.home-hero-v2::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.home-hero-v2::before {
    width: 260px;
    height: 260px;
    right: -70px;
    top: 80px;
    background: rgba(247, 215, 116, .22);
    filter: blur(2px);
}

.home-hero-v2::after {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -180px;
    background: rgba(200, 150, 30, .12);
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .76fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
}

.home-hero-copy {
    max-width: 720px;
}

.home-eyebrow,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #efd48a;
    color: #8a6100;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(154, 107, 0, .07);
}

.home-hero-copy h1 {
    margin: 18px 0 14px;
    max-width: 700px;
    font-size: clamp(42px, 5.7vw, 72px);
    line-height: .98;
    letter-spacing: -3px;
    color: #121826;
}

.home-hero-copy p {
    max-width: 660px;
    margin: 0;
    color: #5b6472;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.85;
    font-weight: 700;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(234, 215, 165, .9);
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.home-trust-row span::before {
    content: "✓";
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
}

.home-hero-panel {
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(240, 223, 184, .9);
    box-shadow: 0 30px 80px rgba(17, 24, 39, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.home-panel-header span {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -1px;
}

.home-panel-header strong {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7df;
    border: 1px solid #efd48a;
    color: #805800;
    font-size: 12px;
    white-space: nowrap;
}

.home-benefit-list {
    display: grid;
    gap: 13px;
}

.home-benefit-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    padding: 17px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf0, #ffffff);
    border: 1px solid #f1e4c5;
}

.home-benefit-card > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7d774, #c8961e);
    color: #211700;
    font-weight: 950;
}

.home-benefit-card strong {
    display: block;
    margin-bottom: 4px;
    color: #9a6b00;
    font-size: 20px;
}

.home-benefit-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 700;
}

/* HOME PRODUCTS */
.home-products {
    padding: clamp(48px, 6vw, 76px) 0;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.home-section-head h2 {
    margin: 10px 0 6px;
    color: #111827;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -1.7px;
    line-height: 1.08;
}

.home-section-head p {
    margin: 0;
    max-width: 650px;
    color: #6b7280;
    font-weight: 700;
    line-height: 1.7;
}

.home-product-summary {
    min-width: 140px;
    padding: 16px 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f0dfb8;
    box-shadow: 0 16px 38px rgba(17, 24, 39, .05);
    text-align: center;
}

.home-product-summary strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: #111827;
}

.home-product-summary span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
}

.home-category-bar {
    position: sticky;
    top: 76px;
    z-index: 60;
    margin: 18px 0 28px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 250, 240, .82);
    border: 1px solid rgba(240, 223, 184, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, .05);
}

.home-category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-category-scroll::-webkit-scrollbar {
    display: none;
}

.home-category-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #ead7a5;
    color: #6b4b00;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.home-category-tab.active {
    background: linear-gradient(135deg, #f7d774, #c8961e);
    border-color: #c8961e;
    color: #241700;
    box-shadow: 0 10px 20px rgba(200, 150, 30, .2);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #ead7a5;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 150, 30, .55);
    box-shadow: 0 30px 70px rgba(154, 107, 0, .15);
}

.home-product-card.is-free::after {
    content: "FREE";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(236, 253, 245, .95);
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .4px;
}

.home-product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(247, 215, 116, .38), transparent 30%),
        linear-gradient(135deg, #fff4cc, #fffdf7);
}

.home-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    background: #fffaf0;
}

.home-product-image.product-image-slider img {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .7s ease, transform .7s ease;
}

.home-product-image.product-image-slider img.active {
    opacity: 1;
    transform: scale(1);
}

.home-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #9a6b00;
}

.home-product-placeholder span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid #efd48a;
    font-size: 34px;
    font-weight: 950;
}

.home-product-placeholder small {
    color: #7a5500;
    font-weight: 900;
}

.home-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.home-product-meta span {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9a6b00;
    font-size: 11px;
    font-weight: 950;
}

.home-product-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 19px;
    line-height: 1.32;
    letter-spacing: -.45px;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.62;
    font-weight: 700;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.home-price-box {
    min-width: 0;
}

.home-free-label,
.home-price-row .price {
    display: block;
    color: #111827;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.5px;
}

.home-free-label {
    color: #047857;
}

.home-product-cta {
    flex: 0 0 auto;
    min-height: 40px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    box-shadow: 0 10px 20px rgba(200, 150, 30, .18) !important;
}

.home-empty-card {
    grid-column: 1 / -1;
}

/* BLOG HOME */
.home-blog-section {
    padding-top: 28px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-blog-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #ead7a5;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .07);
}

.home-blog-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #fff4cc, #ffffff);
    overflow: hidden;
}

.home-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-blog-image span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #9a6b00;
    font-size: 42px;
    font-weight: 950;
}

.home-blog-body {
    padding: 20px;
}

.home-blog-body h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -.45px;
}

.home-blog-body p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

/* FOOTER POLISH */
body:not(.admin-body) .footer,
body:not(.admin-body) .premium-footer {
    margin-top: 64px;
    padding-top: 58px;
    background:
        radial-gradient(circle at 12% 20%, rgba(247, 215, 116, .16), transparent 28%),
        linear-gradient(135deg, #101827 0%, #172033 55%, #111827 100%);
}

body:not(.admin-body) .footer-contact .btn,
body:not(.admin-body) .footer .btn {
    box-shadow: none;
}

/* RESPONSIVE STOREFRONT */
@media (max-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: 820px;
    }

    .home-hero-panel {
        max-width: 680px;
    }

    .home-product-grid,
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body:not(.admin-body) .container {
        width: min(100% - 28px, 1160px);
    }

    body:not(.admin-body) .nav-inner {
        height: 66px;
    }

    body:not(.admin-body) .brand {
        font-size: 20px;
    }

    .home-hero-v2 {
        padding: 34px 0 38px;
    }

    .home-hero-copy h1 {
        margin-top: 14px;
        font-size: clamp(31px, 9vw, 44px);
        line-height: 1.04;
        letter-spacing: -1.7px;
    }

    .home-hero-copy p {
        font-size: 14px;
        line-height: 1.75;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-trust-row {
        gap: 8px;
    }

    .home-trust-row span {
        font-size: 12px;
        min-height: 32px;
    }

    .home-hero-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .home-panel-header {
        display: grid;
    }

    .home-panel-header span {
        font-size: 22px;
    }

    .home-benefit-card {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .home-benefit-card > span {
        width: 36px;
        height: 36px;
        border-radius: 13px;
        font-size: 12px;
    }

    .home-benefit-card strong {
        font-size: 18px;
    }

    .home-benefit-card p {
        font-size: 13px;
    }

    .home-products {
        padding: 38px 0;
    }

    .home-section-head {
        display: grid;
        gap: 14px;
        align-items: start;
    }

    .home-section-head h2 {
        font-size: 30px;
    }

    .home-product-summary {
        display: none;
    }

    .home-category-bar {
        top: 66px;
        margin: 14px -14px 20px;
        padding: 8px 14px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: 0 12px 24px rgba(17, 24, 39, .04);
    }

    .home-category-tab {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

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

    .home-product-card {
        border-radius: 18px;
    }

    .home-product-image {
        aspect-ratio: 1 / 1;
    }

    .home-product-body {
        padding: 12px;
    }

    .home-product-meta {
        margin-bottom: 7px;
    }

    .home-product-meta span {
        font-size: 9.5px;
    }

    .home-product-card h3 {
        min-height: 38px;
        margin-bottom: 6px;
        font-size: 13.5px;
        line-height: 1.35;
        letter-spacing: -.15px;
    }

    .home-product-card p {
        min-height: 34px;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .home-price-row {
        display: grid;
        gap: 9px;
        align-items: stretch;
        padding-top: 12px;
    }

    .home-free-label,
    .home-price-row .price {
        font-size: 17px;
    }

    .home-price-row .old-price {
        font-size: 10px;
    }

    .home-product-cta {
        width: 100%;
        min-height: 34px !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }

    .home-product-card.is-free::after {
        top: 9px;
        right: 9px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .home-product-placeholder span {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 28px;
    }

    .home-product-placeholder small {
        font-size: 11px;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    body:not(.admin-body) .container {
        width: min(100% - 22px, 1160px);
    }

    .home-hero-copy h1 {
        font-size: 29px;
    }

    .home-hero-panel,
    .home-product-card,
    .home-blog-card {
        border-radius: 17px;
    }

    .home-product-grid {
        gap: 10px;
    }

    .home-product-body {
        padding: 10px;
    }

    .home-product-card h3 {
        font-size: 12.8px;
        min-height: 35px;
    }

    .home-product-card p {
        font-size: 11px;
        min-height: 32px;
    }

    .home-free-label,
    .home-price-row .price {
        font-size: 16px;
    }
}


/* =========================================================
   ROBUST STICKY CATEGORY BAR — STOREFRONT
   Pakai JS class .is-fixed supaya lebih stabil di mobile/desktop
   ========================================================= */

.home-category-spacer {
    display: block;
    height: 0;
    pointer-events: none;
}

.home-category-spacer.is-active {
    height: var(--store-category-height, 64px);
}

.home-category-bar,
.product-category-sticky {
    position: relative !important;
    top: auto !important;
}

.home-category-bar.is-fixed,
.product-category-sticky.is-fixed {
    position: fixed !important;
    top: var(--store-nav-height, 74px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(1160px, calc(100% - 44px)) !important;
    margin: 0 !important;
    z-index: 98 !important;
    border-radius: 0 0 24px 24px !important;
    background: rgba(255, 250, 240, .97) !important;
    border: 1px solid rgba(240, 223, 184, .88) !important;
    border-top: 0 !important;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .10) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.home-category-bar.is-fixed .home-category-scroll,
.product-category-sticky.is-fixed .product-category-scroll {
    padding-bottom: 4px;
}

@media (max-width: 900px) {
    .home-category-bar.is-fixed,
    .product-category-sticky.is-fixed {
        top: var(--store-nav-height, 66px) !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        padding: 9px 14px 7px !important;
        border-radius: 0 0 18px 18px !important;
    }

    .home-category-spacer.is-active {
        height: var(--store-category-height, 54px);
    }
}

/* =========================================================
   ALZAEN DIGITAL — ANIMATED HERO MARKETPLACE
   ========================================================= */
.home-hero-animated {
    min-height: min(680px, calc(100vh - 76px));
    display: flex;
    align-items: center;
    padding: clamp(46px, 6vw, 82px) 0 clamp(42px, 5vw, 68px);
}

.home-hero-animated .home-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .88fr);
    align-items: center;
}

.home-hero-animated .home-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(44px, 5.2vw, 74px);
    line-height: .98;
}

.home-dynamic-word {
    display: inline-block;
    position: relative;
    color: #a56f00;
    background: linear-gradient(135deg, #7a4d00 0%, #c8961e 45%, #f4c84f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}

.home-dynamic-word::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .04em;
    height: .12em;
    border-radius: 999px;
    background: rgba(216, 165, 40, .18);
    z-index: -1;
}

.home-dynamic-word.is-changing {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
}

.home-hero-visual {
    position: relative;
    min-height: 430px;
    isolation: isolate;
    display: grid;
    place-items: center;
    animation: heroVisualIn .75s ease both;
}

.home-orbit-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -2;
    filter: blur(2px);
}

.home-orbit-glow.glow-one {
    width: 330px;
    height: 330px;
    right: 12px;
    top: 8px;
    background: radial-gradient(circle, rgba(247, 215, 116, .46), transparent 68%);
    animation: softFloat 7s ease-in-out infinite;
}

.home-orbit-glow.glow-two {
    width: 240px;
    height: 240px;
    left: 8px;
    bottom: 12px;
    background: radial-gradient(circle, rgba(200, 150, 30, .20), transparent 70%);
    animation: softFloat 8s ease-in-out infinite reverse;
}

.home-marketplace-mockup {
    width: min(430px, 100%);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(229, 203, 137, .92);
    border-radius: 34px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,240,.94));
    box-shadow:
        0 34px 90px rgba(17, 24, 39, .10),
        inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: mockupFloat 5.5s ease-in-out infinite;
}

.home-mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-mockup-topbar div {
    display: flex;
    gap: 6px;
}

.home-mockup-topbar div span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #e5d4a4;
}

.home-mockup-topbar strong {
    font-size: 13px;
    color: #6b4b00;
    letter-spacing: .02em;
}

.home-mockup-hero-line {
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 20%, rgba(247, 215, 116, .45), transparent 48%),
        linear-gradient(135deg, #fff8df, #ffffff);
    border: 1px solid rgba(240, 223, 184, .86);
    margin-bottom: 12px;
}

.home-mockup-hero-line small {
    display: block;
    margin-bottom: 7px;
    color: #8a6100;
    font-size: 12px;
    font-weight: 950;
}

.home-mockup-hero-line b {
    display: block;
    color: #111827;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.08;
    letter-spacing: -.9px;
}

.home-mockup-category-row {
    display: flex;
    gap: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.home-mockup-category-row span {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(240, 223, 184, .92);
    color: #7a5500;
    text-align: center;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

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

.home-mockup-product {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(240, 223, 184, .86);
    box-shadow: 0 10px 20px rgba(17,24,39,.04);
    min-width: 0;
}

.home-mockup-product.mini-2,
.home-mockup-product.mini-4 {
    transform: translateY(8px);
}

.home-mockup-thumb {
    width: 54px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1b9, #fff);
    display: grid;
    place-items: center;
    color: #9a6b00;
    font-weight: 950;
}

.home-mockup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-mockup-product strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111827;
    font-size: 12px;
    line-height: 1.3;
}

.home-mockup-product small {
    display: block;
    margin-top: 4px;
    color: #a56f00;
    font-size: 12px;
    font-weight: 950;
}

.home-floating-card {
    position: absolute;
    z-index: 3;
    width: 155px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(240, 223, 184, .92);
    box-shadow: 0 20px 50px rgba(17,24,39,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-floating-card span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7df;
    color: #875c00;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 8px;
}

.home-floating-card strong {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.25;
}

.home-floating-card small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.home-floating-card.float-one {
    left: -14px;
    top: 68px;
    animation: cardFloat 5.2s ease-in-out infinite;
}

.home-floating-card.float-two {
    right: -16px;
    bottom: 74px;
    animation: cardFloat 5.8s ease-in-out infinite reverse;
}

.home-checkout-toast {
    position: absolute;
    left: 28px;
    bottom: 12px;
    z-index: 4;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    width: min(300px, 80%);
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    box-shadow: 0 24px 60px rgba(17,24,39,.18);
    animation: toastIn 5s ease-in-out infinite;
}

.home-checkout-toast > span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #047857;
    font-weight: 950;
}

.home-checkout-toast strong,
.home-checkout-toast small {
    display: block;
}

.home-checkout-toast strong {
    font-size: 14px;
}

.home-checkout-toast small {
    margin-top: 2px;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 700;
}

@keyframes heroVisualIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-.35deg); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes softFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .75; }
    50% { transform: translate3d(12px,-10px,0) scale(1.04); opacity: 1; }
}

@keyframes toastIn {
    0%, 18% { opacity: 0; transform: translateY(12px) scale(.96); }
    28%, 82% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(8px) scale(.98); }
}

@media (max-width: 1120px) {
    .home-hero-animated .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        min-height: 390px;
        max-width: 620px;
        width: 100%;
        margin: 4px auto 0;
    }

    .home-floating-card.float-one {
        left: 12px;
    }

    .home-floating-card.float-two {
        right: 12px;
    }
}

@media (max-width: 900px) {
    .home-hero-animated {
        min-height: auto;
        padding: 30px 0 34px;
    }

    .home-hero-animated .home-hero-copy h1 {
        font-size: clamp(34px, 9.5vw, 46px);
        line-height: 1.04;
        letter-spacing: -1.45px;
    }

    .home-hero-animated .home-hero-copy p {
        font-size: 14px;
        line-height: 1.72;
    }

    .home-hero-visual {
        min-height: 300px;
        margin-top: 18px;
    }

    .home-marketplace-mockup {
        width: min(360px, 100%);
        border-radius: 28px;
        padding: 14px;
    }

    .home-mockup-hero-line {
        padding: 14px;
        border-radius: 20px;
    }

    .home-mockup-grid {
        gap: 8px;
    }

    .home-mockup-product {
        grid-template-columns: 44px 1fr;
        padding: 8px;
        border-radius: 16px;
    }

    .home-mockup-thumb {
        width: 44px;
        height: 38px;
        border-radius: 12px;
    }

    .home-floating-card {
        display: none;
    }

    .home-checkout-toast {
        width: min(280px, 92%);
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        grid-template-columns: 34px 1fr;
        padding: 10px 12px;
        animation-name: toastInMobile;
    }

    .home-checkout-toast > span {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .home-trust-row {
        gap: 8px;
    }

    .home-trust-row span {
        min-height: 32px;
        font-size: 12px;
        padding: 7px 10px;
    }
}

@media (max-width: 520px) {
    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-hero-visual {
        min-height: 270px;
    }

    .home-marketplace-mockup {
        width: 100%;
    }

    .home-mockup-category-row span:nth-child(3) {
        display: none;
    }

    .home-mockup-product strong {
        font-size: 11px;
    }

    .home-mockup-product small {
        font-size: 11px;
    }
}

@keyframes toastInMobile {
    0%, 18% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.96); }
    28%, 82% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
    .home-marketplace-mockup,
    .home-floating-card,
    .home-orbit-glow,
    .home-checkout-toast,
    .home-hero-visual {
        animation: none !important;
    }

    .home-dynamic-word {
        transition: none !important;
    }
}


/* Admin Blog Rich Editor - no external subscription */
.rich-editor-shell {
    border: 1px solid rgba(216, 190, 113, 0.55);
    border-radius: 16px;
    background: #fffdf7;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 18px;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid rgba(216, 190, 113, 0.35);
    background: #fff8df;
    position: sticky;
    top: 0;
    z-index: 2;
}

.rich-editor-btn {
    border: 1px solid rgba(180, 139, 37, 0.28);
    background: #ffffff;
    color: #5f4810;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.rich-editor-btn:hover {
    background: #e7bd36;
    color: #111827;
}

.rich-editor-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rich-editor-area {
    min-height: 520px;
    max-height: 720px;
    overflow-y: auto;
    padding: 22px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    line-height: 1.8;
    outline: none;
}

.rich-editor-area h2,
.rich-editor-area h3 {
    line-height: 1.35;
    margin: 22px 0 12px;
}

.rich-editor-area p {
    margin: 0 0 14px;
}

.rich-editor-area img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 16px 0;
}

.rich-editor-area blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 4px solid #e7bd36;
    background: #fff8df;
    border-radius: 12px;
}

.rich-editor-note,
.thumbnail-url-note {
    padding: 10px 14px;
    font-size: 12px;
    color: #77622c;
    background: #fff8df;
}

.thumbnail-source-box {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.thumbnail-source-box input[type="url"] {
    width: 100%;
}

@media (max-width: 768px) {
    .rich-editor-area {
        min-height: 420px;
        padding: 16px;
        font-size: 15px;
    }

    .rich-editor-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}

/* STAGE 4 - CONTENT CONVERSION SYSTEM */
.admin-template-helper {
    background: #fff8df;
    border: 1px solid #f0dfad;
    border-radius: 18px;
    padding: 14px 16px;
    margin: 10px 0 18px;
    color: #41300a;
}

.admin-template-helper strong {
    display: block;
    font-weight: 950;
    margin-bottom: 5px;
}

.admin-template-helper p {
    margin: 0 0 10px;
    color: #6b5a2a;
    line-height: 1.6;
    font-weight: 700;
}

.product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.product-trust-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(17, 24, 39, .05);
}

.product-trust-card span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5c542;
    color: #3d2a00;
    font-weight: 950;
    margin-bottom: 12px;
}

.product-trust-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.product-trust-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 650;
}

.product-faq-box,
.product-bottom-cta,
.article-product-cta,
.article-store-cta {
    margin-top: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7df);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(17,24,39,.06);
}

.product-faq-box {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.product-faq-box h2,
.product-bottom-cta h2,
.article-product-cta h2,
.article-store-cta h2 {
    margin: 10px 0 8px;
    letter-spacing: -.6px;
    line-height: 1.16;
}

.product-faq-list details {
    background: #fff;
    border: 1px solid #f0dfad;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.product-faq-list summary {
    cursor: pointer;
    font-weight: 950;
    color: var(--dark);
}

.product-faq-list p,
.product-bottom-cta p,
.article-product-cta p,
.article-store-cta p {
    color: var(--muted);
    line-height: 1.75;
    font-weight: 650;
}

.product-bottom-cta {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
}

.article-product-cta {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 22px;
    align-items: stretch;
}

.article-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.article-product-meta span {
    background: #fff;
    border: 1px solid #f0dfad;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 950;
    color: #7a5500;
}

.article-product-image {
    min-height: 220px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #f0dfad;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #9a6b00;
    font-size: 58px;
    font-weight: 950;
}

.article-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .product-trust-grid,
    .product-faq-box,
    .article-product-cta {
        grid-template-columns: 1fr;
    }

    .product-bottom-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .article-product-image {
        min-height: 190px;
    }
}

/* Stage 5 - Product Filling System */
.product-fill-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: start;
}

.product-fill-panel {
    border: 1px solid #f0dfad;
    border-radius: 24px;
    background: #fffdf7;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .045);
}

.product-fill-panel h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 950;
}

.product-fill-panel label {
    margin-top: 14px;
}

.product-fill-result textarea[readonly],
.product-fill-result input[readonly] {
    background: #fff;
    color: var(--dark);
}

.copy-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.copy-field-row.textarea-row button {
    margin-top: 0;
}

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

.product-fill-checklist span,
.product-readiness-missing li {
    border: 1px solid #f0dfad;
    background: #fffdf7;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 850;
    color: #6f530f;
}

.product-readiness-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.product-readiness-summary > div {
    border: 1px solid #f0dfad;
    background: linear-gradient(180deg, #fffdf7, #fff7df);
    border-radius: 20px;
    padding: 16px;
}

.product-readiness-summary span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a6b1d;
    font-weight: 950;
}

.product-readiness-summary strong {
    display: block;
    color: var(--dark);
    font-size: 28px;
    margin-top: 5px;
}

.product-readiness-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 950;
    border: 1px solid transparent;
}

.product-readiness-pill strong {
    font-size: 15px;
}

.product-readiness-pill.is-ready {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.product-readiness-pill.is-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.product-readiness-pill.is-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.product-readiness-missing {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-readiness-missing li {
    border-radius: 12px;
    padding: 7px 9px;
    font-size: 11px;
    color: #92400e;
}

.product-fill-mini-banner,
.product-edit-readiness {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #f0dfad;
    background: linear-gradient(135deg, #fff8dd, #fffdf7);
    border-radius: 22px;
    padding: 16px;
    margin: 16px 0 22px;
}

.product-fill-mini-banner strong,
.product-edit-readiness strong {
    display: block;
    color: var(--dark);
    font-weight: 950;
}

.product-fill-mini-banner span,
.product-edit-readiness p,
.product-edit-readiness li {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.6;
}

.product-edit-readiness {
    align-items: flex-start;
}

.product-edit-readiness > div:nth-child(2) {
    flex: 1;
}

.product-edit-readiness ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

@media (max-width: 980px) {
    .product-fill-layout,
    .product-readiness-summary,
    .product-fill-checklist {
        grid-template-columns: 1fr;
    }

    .copy-field-row,
    .product-fill-mini-banner,
    .product-edit-readiness {
        grid-template-columns: 1fr;
        display: grid;
    }
}
