/* ============================================================
   PALUNG DIGITAL - FULL & FINAL MARKETPLACE STYLE
   Author: Gemini
   Theme: Modern Dark & Sleek Blue
   ============================================================ */

:root {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --primary: #38bdf8;
    --accent: #7c3aed;
    --text-white: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --container-max: 1200px;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

a.footer-brand {
    font-size: 24px;
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.categories-nav {
    flex-wrap: wrap;
}

.categories-nav a {
    white-space: nowrap;
}
body {
    background-color: var(--bg-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* --- Header & Navigation --- */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand span {
    color: var(--primary);
}

.categories-nav {
    display: flex;
    gap: 25px;
}

.categories-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.categories-nav a:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-mini input {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    outline: none;
}
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f172a;
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
}

.search-box button {
    height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#3b82f6,#8b5cf6);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn-reset {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.btn-reset:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
/* --- Layout Container --- */
main, .archive-header, .container-detail, .checkout-container, .status-container, .access-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Hero Section (home.php) --- */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px 0;
}

.hero-content {
    flex: 1.2;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 900;
    margin: 20px 0;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-promo {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-banner {
    flex: 1;
}

.hero-banner img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.feature-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.feature-item:hover {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.feature-item .icon { font-size: 28px; margin-bottom: 15px; }
.feature-item h4 { color: #fff; margin-bottom: 10px; font-weight: 700; }
.feature-item p { color: var(--text-muted); font-size: 14px; }

/* --- Archive & Search Bar (products.php) --- */
.archive-header { text-align: center; }

.search-box {
    display: flex;
    max-width: 850px;
    margin: 40px auto;
    box-shadow: var(--shadow-glow);
    border-radius: 14px;
}

.search-box input {
    flex: 1;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 18px 25px;
    border-radius: 14px 0 0 14px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0 40px;
    border: none;
    border-radius: 0 14px 14px 0;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- Product Grid & Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
span.badge-cat {
    padding: 10px;
}
.card-content {
    padding: 10px;
}

.card-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}

.btn-detail, .btn-main {
    display: block;
    text-align: center;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-detail:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Product Detail (product_detail.php) --- */
.product-main-wrapper {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 60px;
    padding: 0px 0px;
}

.sticky-image img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.product-info-action h1 { font-size: 36px; font-weight: 800; margin: 15px 0; }
.main-price { font-size: 32px; color: var(--primary); font-weight: 900; margin: 20px 0; }
.btn-purchase {
    display: block; width: 70%; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 18px; border-radius: 12px; font-weight: 800; font-size: 18px;
}

/* --- Checkout Layout --- */
.checkout-flex-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}
.checkout-page{
    max-width:1180px;
    margin:0 auto;
    padding:48px 20px 80px;
}

.checkout-head{
    text-align:center;
    max-width:720px;
    margin:0 auto 34px;
}

.checkout-badge{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(56,189,248,.12);
    color:#38bdf8;
    border:1px solid rgba(56,189,248,.25);
    font-weight:800;
    font-size:13px;
    margin-bottom:14px;
}

.checkout-head h1{
    margin:0 0 10px;
    font-size:42px;
    line-height:1.08;
    color:#fff;
}

.checkout-head p{
    margin:0;
    color:#94a3b8;
    font-size:16px;
}

.checkout-layout{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(340px,.85fr);
    gap:28px;
    align-items:start;
}

.checkout-card{
    background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(8,13,27,.98));
    border:1px solid rgba(148,163,184,.18);
    border-radius:28px;
    box-shadow:0 24px 80px rgba(0,0,0,.26);
}

.checkout-form-card{
    padding:30px;
}

.form-section-title{
    margin-bottom:24px;
}

.form-section-title h3{
    margin:0 0 6px;
    color:#fff;
    font-size:22px;
}

.form-section-title p{
    margin:0;
    color:#94a3b8;
    font-size:14px;
}

.modern-form .form-group{
    margin-bottom:20px;
}

.modern-form label{
    display:block;
    color:#c7d2fe;
    font-weight:700;
    margin-bottom:8px;
    font-size:14px;
}

.modern-form label span{
    color:#64748b;
    font-weight:600;
}

.modern-form input{
    width:100%;
    height:54px;
    border-radius:16px;
    border:1px solid rgba(148,163,184,.18);
    background:#111827;
    color:#fff;
    padding:0 16px;
    outline:none;
    font-size:15px;
    transition:.2s ease;
}

.modern-form input:focus{
    border-color:#38bdf8;
    box-shadow:0 0 0 4px rgba(56,189,248,.12);
}

.modern-form small{
    display:block;
    margin-top:7px;
    color:#94a3b8;
    font-size:13px;
}

.payment-method-box{
    margin:26px 0;
    padding:20px;
    border-radius:22px;
    background:rgba(2,132,199,.08);
    border:1px solid rgba(56,189,248,.18);
}

.payment-method-box h3{
    margin:0 0 6px;
    color:#fff;
    font-size:18px;
}

.payment-method-box p{
    margin:0 0 14px;
    color:#94a3b8;
    font-size:14px;
}

.payment-notice{
    padding:13px 14px;
    border-radius:16px;
    background:rgba(56,189,248,.12);
    color:#dbeafe;
    font-weight:700;
    font-size:14px;
}

.btn-checkout-submit{
    width:100%;
    height:58px;
    border:0;
    border-radius:18px;
    background:linear-gradient(135deg,#38bdf8,#7c3aed);
    color:#fff;
    font-weight:900;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 18px 50px rgba(56,189,248,.22);
    transition:.2s ease;
}

.btn-checkout-submit:hover{
    transform:translateY(-1px);
    filter:brightness(1.08);
}

.checkout-mini-note{
    text-align:center;
    color:#94a3b8;
    font-size:13px;
    margin-top:14px;
}

.checkout-summary-card{
    padding:26px;
    position:sticky;
    top:110px;
}

.checkout-summary-card h3{
    margin:0 0 18px;
    color:#fff;
    font-size:22px;
}

.summary-product{
    display:flex;
    gap:15px;
    align-items:center;
    padding-bottom:20px;
    border-bottom:1px solid rgba(148,163,184,.18);
}

.summary-thumb{
    width:118px;
    height:92px;
    border-radius:18px;
    overflow:hidden;
    background:#020617;
    border:1px solid rgba(148,163,184,.18);
    flex:0 0 auto;
}

.summary-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.summary-info{
    min-width:0;
}

.summary-label{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(56,189,248,.12);
    color:#38bdf8;
    font-size:11px;
    font-weight:900;
    margin-bottom:8px;
}

.summary-info h4{
    margin:0 0 6px;
    color:#fff;
    font-size:16px;
    line-height:1.35;
}

.summary-info p{
    margin:0;
    color:#94a3b8;
    font-size:13px;
}

.summary-lines{
    padding:18px 0;
    border-bottom:1px solid rgba(148,163,184,.18);
}

.summary-row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    margin-bottom:13px;
    color:#cbd5e1;
    font-size:15px;
}

.summary-row:last-child{
    margin-bottom:0;
}

.summary-row strong{
    color:#fff;
    white-space:nowrap;
}

.summary-row.total{
    margin-top:16px;
    padding-top:16px;
    border-top:1px dashed rgba(148,163,184,.22);
    font-size:18px;
}

.summary-row.total strong{
    color:#38bdf8;
    font-size:22px;
}

.free-tag{
    color:#22c55e!important;
}

.secure-checkout-badge{
    margin-top:18px;
    padding:13px 14px;
    border-radius:16px;
    background:rgba(34,197,94,.1);
    color:#bbf7d0;
    border:1px solid rgba(34,197,94,.18);
    text-align:center;
    font-weight:800;
    font-size:13px;
}

.summary-help{
    margin-top:14px;
    text-align:center;
    color:#94a3b8;
    font-size:13px;
}

@media(max-width:900px){
    .checkout-page{
        padding:28px 14px 60px;
    }

    .checkout-head{
        text-align:left;
        margin-bottom:22px;
    }

    .checkout-head h1{
        font-size:30px;
    }

    .checkout-head p{
        font-size:14px;
    }

    .checkout-layout{
        grid-template-columns:1fr;
        gap:18px;
    }

    .checkout-form-card,
    .checkout-summary-card{
        padding:20px;
        border-radius:22px;
    }

    .checkout-summary-card{
        position:static;
        order:-1;
    }

    .summary-product{
        align-items:flex-start;
    }

    .summary-thumb{
        width:98px;
        height:78px;
        border-radius:15px;
    }

    .modern-form input{
        height:52px;
        border-radius:14px;
    }

    .btn-checkout-submit{
        height:54px;
        border-radius:15px;
    }
}

@media(max-width:480px){
    .checkout-head h1{
        font-size:26px;
    }

    .summary-product{
        flex-direction:column;
    }

    .summary-thumb{
        width:100%;
        height:170px;
    }

    .summary-row.total{
        font-size:16px;
    }

    .summary-row.total strong{
        font-size:19px;
    }
}
.order-status-page{
    max-width:860px;
    margin:0 auto;
    padding:60px 20px 90px;
}

.order-status-card{
    background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(8,13,27,.98));
    border:1px solid rgba(148,163,184,.18);
    border-radius:30px;
    padding:34px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
}

.status-top{
    text-align:center;
    padding-bottom:28px;
}

.status-icon{
    width:78px;
    height:78px;
    margin:0 auto 16px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
    border:1px solid rgba(255,255,255,.12);
}

.status-icon.paid{
    background:rgba(34,197,94,.12);
}

.status-icon.pending{
    background:rgba(251,191,36,.12);
}

.status-badge{
    display:inline-flex;
    padding:8px 13px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    margin-bottom:14px;
}

.status-badge.paid{
    background:rgba(34,197,94,.12);
    color:#86efac;
    border:1px solid rgba(34,197,94,.2);
}

.status-badge.pending{
    background:rgba(251,191,36,.12);
    color:#fde68a;
    border:1px solid rgba(251,191,36,.2);
}

.status-top h1{
    color:#fff;
    margin:0 0 8px;
    font-size:36px;
    line-height:1.1;
}

.status-top p{
    margin:0;
    color:#94a3b8;
}

.status-top strong{
    color:#fff;
}

.order-summary-box{
    border-radius:24px;
    background:rgba(2,6,23,.45);
    border:1px solid rgba(148,163,184,.14);
    padding:20px;
}

.order-row{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:14px 0;
    border-bottom:1px solid rgba(148,163,184,.12);
    color:#94a3b8;
}

.order-row:first-child{
    padding-top:0;
}

.order-row:last-child{
    border-bottom:0;
}

.order-row strong{
    color:#fff;
    text-align:right;
}

.order-row.total{
    margin-top:4px;
    padding-top:18px;
    font-size:18px;
}

.order-row.total strong{
    color:#38bdf8;
    font-size:22px;
}

.text-success{
    color:#22c55e!important;
}

.text-warning{
    color:#fbbf24!important;
}

.payment-instruction-box,
.success-box{
    margin-top:24px;
    border-radius:24px;
    padding:22px;
    border:1px solid rgba(148,163,184,.16);
}

.payment-instruction-box{
    background:rgba(56,189,248,.06);
}

.success-box{
    text-align:center;
    background:rgba(34,197,94,.08);
}

.payment-instruction-box h3,
.success-box h3{
    margin:0 0 8px;
    color:#fff;
    font-size:22px;
}

.payment-instruction-box p,
.success-box p{
    color:#cbd5e1;
    margin:0 0 18px;
    line-height:1.6;
}

.bank-card{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.bank-card div{
    border-radius:18px;
    background:rgba(15,23,42,.82);
    border:1px solid rgba(148,163,184,.14);
    padding:15px;
}

.bank-card span{
    display:block;
    color:#94a3b8;
    font-size:12px;
    margin-bottom:6px;
}

.bank-card strong{
    color:#fff;
    font-size:15px;
}

.order-warning{
    margin-top:16px;
    padding:14px;
    border-radius:16px;
    background:rgba(251,191,36,.1);
    color:#fde68a;
    border:1px solid rgba(251,191,36,.18);
    font-size:14px;
    font-weight:700;
}

.btn-access{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 24px;
    border-radius:16px;
    background:linear-gradient(135deg,#22c55e,#38bdf8);
    color:#fff;
    text-decoration:none;
    font-weight:900;
}

.status-actions{
    display:flex;
    gap:12px;
    margin-top:24px;
}

.btn-secondary-order,
.btn-whatsapp-order{
    flex:1;
    min-height:50px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:900;
}

.btn-secondary-order{
    background:rgba(148,163,184,.1);
    color:#e2e8f0;
    border:1px solid rgba(148,163,184,.16);
}

.btn-whatsapp-order{
    background:rgba(34,197,94,.12);
    color:#86efac;
    border:1px solid rgba(34,197,94,.2);
}

@media(max-width:700px){
    .order-status-page{
        padding:34px 14px 70px;
    }

    .order-status-card{
        padding:22px;
        border-radius:24px;
    }

    .status-top h1{
        font-size:28px;
    }

    .order-row{
        flex-direction:column;
        gap:6px;
    }

    .order-row strong{
        text-align:left;
    }

    .bank-card{
        grid-template-columns:1fr;
    }

    .status-actions{
        flex-direction:column;
    }
}
.summary-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

/* --- Form Elements --- */
.form-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--text-muted); font-weight: 600; }
input {
    width: 100%; background: #1e293b; border: 1px solid var(--border-color);
    padding: 15px; border-radius: 12px; color: #fff; font-size: 15px; outline: none;
}
input:focus { border-color: var(--primary); }

/* --- Footer Section --- */
.foot {
    background: #01040f;
    padding: 80px 5% 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}
button.active {
    color: #fff;
    background: transparent;
    border: 0px;
    font-size: 30px;
    font-weight: bold;
    padding-bottom: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-col h4 { font-size: 18px; font-weight: 700; margin-bottom: 25px; color: #fff; }
.footer-col p, .footer-col ul li { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; list-style: none; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .top { padding: 15px 20px; }
    .hero-container, .product-main-wrapper, .checkout-flex-wrapper, .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 38px; }
    .hero-banner { order: -1; }
    .categories-nav, .header-right .search-mini { display: none; }
    .search-box { flex-direction: column; box-shadow: none; }
    .search-box input { border-radius: 12px; border-right: 1px solid var(--border-color); margin-bottom: 10px; }
    .search-box button { border-radius: 12px; padding: 15px; }
    .features-grid { grid-template-columns: 1fr; }
}
.mobile-menu-btn,
.mobile-search {
    display: none;
}

@media (max-width: 768px) {
    .top {
        position: relative;
        height: auto;
        padding: 18px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .brand {
        font-size: 24px;
        z-index: 20;
    }

    .mobile-menu-btn {
        display: flex;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        background: #0f172a;
        color: #fff;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        cursor: pointer;
        z-index: 20;
    }

    .header-right {
        display: none;
    }

    .categories-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 99;
        background: #020617;
        border-top: 1px solid rgba(255,255,255,.08);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: 14px 18px 18px;
        box-shadow: 0 20px 40px rgba(0,0,0,.35);
    }

    .categories-nav.active {
        display: block;
    }

    .categories-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
        color: #dbeafe;
        font-size: 14px;
        text-decoration: none;
    }

    .categories-nav a:last-child {
        border-bottom: 0;
    }

    .mobile-search {
        display: block;
        margin-bottom: 10px;
    }

    .mobile-search input {
        width: 100%;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.12);
        background: #111827;
        color: #fff;
        padding: 0 14px;
    }
}
/* MOBILE SLIDER FEATURES + PRODUK */
@media (max-width: 640px) {

    .features-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding: 18px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0px;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-item {
        min-width: 82%;
        scroll-snap-align: start;
        padding: 24px 20px;
    }

    .main-content {
        padding: 32px 14px;
    }

    .main-content .section-header {
        padding: 0 4px;
    }

    .main-content .product-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding: 4px 4px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .main-content .product-grid::-webkit-scrollbar {
        display: none;
    }

    .main-content .product-card {
        min-width: 165px;
        max-width: 165px;
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .main-content .card-thumb {
        height: 120px;
    }

    .main-content .card-details {
        padding: 12px;
    }

    .main-content .card-details h3 {
        font-size: 13px;
        line-height: 1.35;
    }

    .main-content .current-price {
        font-size: 16px;
    }

    .view-more {
        margin-top: 22px;
        text-align: left;
        padding-left: 4px;
    }

    .view-more .btn-outline {
        width: 100%;
        text-align: center;
    }
}
.foot {
    margin-top: 70px;
    padding: 46px 20px 24px;
    background: #020617;
    border-top: 1px solid rgba(255,255,255,.07);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.footer-brand span {
    color: #38bdf8;
}

.footer-col h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 17px;
}

.footer-col p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.75;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 11px;
}

.footer-col a {
    color: #a8bdd8;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: #38bdf8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 700;
}

.footer-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.footer-icons img {
    max-height: 31px;
    max-width: 92px;
    object-fit: contain;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    padding: 5px 7px;
}

.footer-subtitle {
    margin-top: 24px !important;
}

.footer-bottom {
    max-width: 1100px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

a.btn-outline {
    color: #fff;
    background: 0 0;
    border: 1px solid #fff;
    padding: 15px;
    border-radius: 10px;
}
.card-details {
    padding: 10px;
}
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .foot {
        margin-top: 50px;
        padding: 34px 20px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .footer-brand {
        font-size: 23px;
    }

    .footer-col h4 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 14px;
    }

    .footer-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        text-align: left;
        margin-top: 28px;
    }
}
/* =========================
   MOBILE PRODUCT GRID FIX
========================= */
@media (max-width: 640px) {
    .main-content,
    .main-products {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card {
        border-radius: 18px;
        overflow: hidden;
    }

    .card-thumb {
        height: 130px;
        border-radius: 16px 16px 0 0;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-details,
    .card-content {
        padding: 12px;
    }

    .category-tag,
    .badge-cat {
        font-size: 10px;
    }

    .product-card h3 {
        font-size: 14px;
        line-height: 1.35;
        margin: 7px 0;
    }

    .rating {
        font-size: 11px;
        letter-spacing: -1px;
    }

    .current-price,
    .price {
        font-size: 16px;
        margin-top: 6px;
    }
}

/* =========================
   MOBILE DETAIL PRODUK FIX
========================= */
@media (max-width: 640px) {
    .product-detail,
    .detail-product,
    .product-detail-container {
        padding: 18px 14px;
        display: block;
    }

    .product-detail h1,
    .detail-product h1 {
        font-size: 30px;
        line-height: 1.18;
        text-align: left;
        margin-top: 20px;
    }

    .product-detail .price,
    .detail-product .price {
        font-size: 28px;
        text-align: left;
    }

    .product-detail .rating,
    .detail-product .rating {
        text-align: left;
    }

    .product-detail img,
    .detail-product img {
        max-height: 240px;
        object-fit: contain;
    }

    .btn-main,
    .btn-buy,
    .btn-checkout {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   MOBILE HERO HOME FIX
========================= */
@media (max-width: 640px) {
    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
        padding: 28px 18px;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-banner {
        min-height: auto;
        text-align: center;
    }

    .hero-banner img {
        max-width: 82%;
        height: auto;
    }

    .hero-actions .btn-main {
        width: 100%;
        justify-content: center;
    }
}
.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card {
    overflow: hidden;
    cursor: pointer;
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

.badge-cat {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(56,189,248,.12);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.product-card h3 {
    margin: 0 0 8px;
}

.btn-detail {
    display: none !important;
}

/* MOBILE PRODUCT LIST FIX */
@media (max-width: 640px) {
    .archive-header {
        padding: 26px 14px 0px;
    }

    .archive-container h1 {
        font-size: 26px;
        line-height: 1.2;
        text-align: center;
    }

    .archive-container p {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    .search-box {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
    }

    .search-box input,
    .search-box button,
    .btn-reset {
        width: 100%;
        height: 46px;
        border-radius: 13px;
    }

    .main-products {
        padding: 18px 14px 36px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 18px;
        min-height: auto;
    }

    .card-thumb {
        height: 115px;
        border-radius: 0;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-content {
        padding: 11px;
    }

    .badge-cat {
        font-size: 9px;
        padding: 4px 7px;
        margin-bottom: 7px;
    }

    .product-card h3 {
        font-size: 13px;
        line-height: 1.35;
        min-height: 36px;
        margin-bottom: 7px;
    }

    .rating {
        font-size: 10px;
        letter-spacing: -1px;
        margin-bottom: 5px;
    }

    .price {
        font-size: 15px;
        margin: 0;
        line-height: 1.2;
    }
}
/* PRODUCT DETAIL */
.container-detail {
    max-width: 1160px;
    margin: 0 auto;
    padding: 34px 18px;
}

.breadcrumb-nav {
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 13px;
}

.breadcrumb-nav a {
    color: #38bdf8;
    text-decoration: none;
}

.breadcrumb-nav span {
    margin: 0 6px;
    color: #64748b;
}

.breadcrumb-nav strong {
    color: #cbd5e1;
    font-weight: 500;
}

.product-main-wrapper {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 34px;
    align-items: start;
}

.product-gallery,
.product-info-action,
.product-description-full {
    background: #0b1324;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
}

.product-gallery {
    padding: 22px;
}

.sticky-image {
    position: sticky;
    top: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #111827;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-info-action {
    padding: 28px;
}

.detail-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(56,189,248,.12);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
}

.product-info-action h1 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.stars {
    color: #facc15;
    font-size: 15px;
}

.review-count {
    color: #cbd5e1;
    font-size: 14px;
}

.price-section {
    margin-bottom: 20px;
}

.main-price {
    margin: 0;
    color: #38bdf8;
    font-size: 36px;
}

.purchase-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.purchase-note {
    margin: 0 0 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

.btn-purchase {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg,#38bdf8,#7c3aed);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.trust-item {
    padding: 12px 10px;
    text-align: center;
    border-radius: 14px;
    background: rgba(56,189,248,.07);
    border: 1px solid rgba(56,189,248,.12);
    color: #dbeafe;
    font-size: 13px;
}

.product-description-full {
    margin-top: 28px;
    overflow: hidden;
}

.tabs-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.tabs-header button {
    border: 0;
    background: rgba(56,189,248,.12);
    color: #38bdf8;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
}

.tab-content {
    padding: 30px;
    color: #cbd5e1;
    line-height: 1.8;
}

/* MOBILE DETAIL */
@media (max-width: 760px) {
    .container-detail {
        padding: 18px 14px 34px;
    }

    .breadcrumb-nav {
        display: none;
    }

    .product-main-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-gallery {
        padding: 12px;
        border-radius: 20px;
    }

    .sticky-image {
        position: static;
        min-height: 210px;
        border-radius: 16px;
    }

    .sticky-image img {
        max-height: 230px;
    }

    .product-info-action {
        padding: 18px;
        border-radius: 20px;
    }

    .detail-badge {
        font-size: 10px;
        padding: 6px 9px;
        margin-bottom: 12px;
    }

    .product-info-action h1 {
        font-size: 27px;
        line-height: 1.18;
        letter-spacing: -.5px;
        text-align: left;
    }

    .rating-display {
        justify-content: flex-start;
        margin-bottom: 15px;
    }

    .stars {
        font-size: 13px;
    }

    .review-count {
        font-size: 13px;
    }

    .main-price {
        font-size: 30px;
        text-align: left;
    }

    .purchase-box {
        padding: 14px;
        border-radius: 16px;
    }

    .purchase-note {
        font-size: 14px;
        text-align: left;
    }

    .btn-purchase {
        height: 50px;
        border-radius: 14px;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-item {
        text-align: left;
        font-size: 14px;
    }

    .product-description-full {
        margin-top: 18px;
        border-radius: 20px;
    }

    .tab-content {
        padding: 16px;
        font-size: 14px;
    }
}
.categories-nav {
    overflow: visible;
}

.categories-nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.categories-nav .nav-item > a {
    display: inline-flex;
    align-items: center;
}

.categories-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 10px;
    background: #07101f;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 999;
}

.categories-nav .nav-item:hover .submenu {
    display: grid;
    gap: 4px;
}

.categories-nav .submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
}

.categories-nav .submenu a:hover {
    background: rgba(56, 189, 248, 0.12);
}
@media (max-width: 768px) {
    .categories-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
    }

    .categories-nav.active,
    .categories-nav.show,
    .top.menu-open .categories-nav {
        display: flex;
    }

    .categories-nav .nav-item {
        display: block;
        width: 100%;
    }

    .categories-nav .nav-item > a,
    .categories-nav > a {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

      .categories-nav .submenu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        padding: 0 0 8px 14px;
        margin: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .categories-nav .nav-item.open .submenu {
        display: grid;
    }

    .categories-nav .submenu a {
        padding: 10px 0;
        font-size: 13px;
        opacity: 0.85;
        border-bottom: 0;
    }

    .categories-nav .nav-item:hover .submenu {
        display: grid;
    }
}
.submenu-toggle {
    margin-left: 6px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
}

.submenu-toggle:hover {
    opacity: 1;
}
.categories-nav .parent-menu {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.categories-nav .parent-menu .arrow {
    display: none;
}

@media (min-width: 769px) {
    .categories-nav .nav-item {
        position: relative;
    }

    .categories-nav .parent-menu {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        color: inherit;
        text-transform: uppercase;
    }

    .categories-nav .nav-item:hover .submenu {
        display: grid;
    }
}

@media (max-width: 768px) {
    .categories-nav .parent-menu {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: #cbd5e1;
        font-weight: 800;
        text-align: left;
    }

    .categories-nav .parent-menu .arrow {
        display: inline-block;
        transition: transform .2s ease;
    }

    .categories-nav .submenu {
        display: none !important;
    }

    .categories-nav .nav-item.open .submenu {
        display: grid !important;
    }

    .categories-nav .nav-item.open .arrow {
        transform: rotate(180deg);
    }
}

.nav-item.has-submenu {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}