/* DWP marketplace — peach header, hijau Kemenkes untuk aksen */
:root {
    --dwp-green: #00856F;
    --dwp-green-dark: #006B5B;
    --dwp-green-soft: #E8F7F4;
    --dwp-peach: #FFD3AC;
    --dwp-peach-soft: #FFF4E8;
    --dwp-ink: #0F172A;
    --dwp-orange: #FF6A00;
    --dwp-text: #1f2937;
    --dwp-muted: #6b7280;
    --dwp-border: #e5e7eb;
    --dwp-bg: #F5F7F8;
    --dwp-white: #ffffff;
}

.dwp-body {
    background: var(--dwp-bg);
    color: var(--dwp-text);
    overflow-x: hidden;
}

.dwp-header,
.site-header.dwp-header {
    background: var(--dwp-peach) !important;
    border-bottom: 1px solid #f0c89a !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dwp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.dwp-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-decoration: none;
    color: var(--dwp-ink);
    flex: 0 1 auto !important;
}

.dwp-brand-logo,
.dwp-header .site-logo,
.dwp-header img.dwp-brand-logo,
.dwp-header img.site-logo {
    width: auto !important;
    height: 56px !important;
    max-width: 70px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    display: block;
    flex-shrink: 0 !important;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
}

.dwp-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dwp-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dwp-ink) !important;
}

.dwp-brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--dwp-green-dark) !important;
    margin-top: 2px;
}

.dwp-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #d9a87a;
    background: #fff;
    border-radius: 10px;
    padding: 10px 11px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.dwp-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--dwp-ink);
    border-radius: 2px;
}

.dwp-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: nowrap;
}

.dwp-nav .site-nav-link,
.dwp-header .site-nav-link {
    color: var(--dwp-ink) !important;
    font-weight: 700;
    font-size: 14px;
}

.dwp-nav .site-nav-link.active,
.dwp-nav .site-nav-link:hover {
    color: var(--dwp-green-dark) !important;
}

.dwp-header .site-admin-login {
    border: 1px solid var(--dwp-green-dark) !important;
    color: var(--dwp-green-dark) !important;
    background: #fff;
    border-radius: 999px;
}

.dwp-header .site-admin-login:hover {
    background: var(--dwp-green-dark) !important;
    color: #fff !important;
}

.dwp-main {
    min-height: 50vh;
}

.dwp-hero,
.dwp-wisuda-hero {
    background: var(--dwp-peach);
    color: var(--dwp-ink);
    padding: 48px 0 40px;
}

.dwp-wisuda-hero {
    padding: 32px 0 28px;
}

.dwp-wisuda-hero-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: var(--dwp-ink);
}

.dwp-body .page-title-bar {
    background: var(--dwp-peach) !important;
    color: var(--dwp-ink) !important;
}

.dwp-hero-inner {
    max-width: 860px;
}

.dwp-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    color: var(--dwp-green-dark);
    margin: 0 0 8px;
}

.dwp-hero h1,
.dwp-section-title,
.dwp-page h1 {
    margin: 0;
    color: inherit;
    font-size: 34px;
    font-weight: 800;
}

.dwp-hero h1 {
    color: var(--dwp-ink);
}

.dwp-hero .dwp-intro-text,
.dwp-hero .dwp-intro-contact {
    max-width: 720px;
    margin: 12px 0 0;
    color: #334155;
}

.dwp-hero a {
    color: var(--dwp-green-dark);
    font-weight: 700;
}

.dwp-hero-actions,
.dwp-product-actions,
.dwp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dwp-contact-actions .dwp-btn,
.dwp-secretariat .dwp-btn {
    min-width: min(100%, 220px);
}

.dwp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.dwp-btn-primary {
    background: var(--dwp-green);
    color: #fff !important;
}

.dwp-btn-orange {
    background: var(--dwp-orange);
    color: #fff !important;
}

.dwp-btn-white {
    background: #fff;
    color: var(--dwp-green-dark) !important;
}

.dwp-btn-outline {
    background: #fff;
    color: var(--dwp-green-dark) !important;
    border-color: #cde8e2;
}

.dwp-category-chips {
    background: #fff;
    border-bottom: 1px solid var(--dwp-border);
}

.dwp-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
}

.dwp-chip {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--dwp-green-soft);
    color: var(--dwp-green-dark);
    font-weight: 700;
    font-size: 13px;
}

.dwp-catalog-section {
    padding: 32px 0 12px;
}

.dwp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.dwp-section-title {
    color: var(--dwp-green-dark);
    font-size: 24px;
    text-align: left;
}

.dwp-section-desc {
    color: var(--dwp-muted);
    margin: -8px 0 18px;
}

.dwp-section-link {
    color: var(--dwp-orange);
    font-weight: 800;
    white-space: nowrap;
}

.dwp-market-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 20px;
}

.dwp-product-card {
    background: #fff;
    border: 1px solid var(--dwp-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dwp-product-card:hover {
    box-shadow: 0 10px 24px rgba(0, 107, 91, 0.12);
    transform: translateY(-2px);
}

.dwp-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    display: block;
    overflow: hidden;
}

.dwp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.dwp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--dwp-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
}

.dwp-badge-wisuda {
    background: var(--dwp-orange);
}

.dwp-product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #e8f7f4 100%);
    color: var(--dwp-green-dark);
    font-weight: 700;
    text-align: center;
    padding: 16px;
}

.dwp-product-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.dwp-product-body h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.dwp-product-body h3 a {
    color: inherit;
}

.dwp-product-desc {
    margin: 0;
    color: var(--dwp-muted);
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dwp-product-price,
.dwp-detail-price {
    margin: 0;
    color: var(--dwp-orange);
    font-size: 15px;
    font-weight: 800;
}

.dwp-product-actions .dwp-btn {
    flex: 1 1 auto;
    min-height: 34px;
    font-size: 12px;
}

.dwp-empty-note {
    text-align: center;
    color: var(--dwp-muted);
    padding: 12px 0 32px;
}

.dwp-page {
    padding: 32px 0 64px;
}

.dwp-page-card,
.dwp-detail-info,
.dwp-detail-gallery {
    background: #fff;
    border: 1px solid var(--dwp-border);
    border-radius: 16px;
    padding: 24px;
}

.dwp-page-card h1,
.dwp-detail-info h1 {
    color: var(--dwp-green-dark);
    text-align: left;
    font-size: 28px;
    margin-bottom: 12px;
}

.dwp-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dwp-detail-gallery img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.dwp-detail-copy {
    color: #374151;
    line-height: 1.7;
    margin: 12px 0;
}

.dwp-detail-contact {
    background: var(--dwp-green-soft);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
}

.dwp-muted {
    color: var(--dwp-muted);
}

.dwp-footer {
    background: var(--dwp-green-dark);
    color: #e7f8f4;
    margin-top: 32px;
}

.dwp-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 32px;
    padding: 40px 0 24px;
}

.dwp-footer-logo {
    width: auto;
    height: 56px;
    max-width: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}

.dwp-footer-title,
.dwp-footer-heading {
    margin: 12px 0 8px;
    font-weight: 800;
    color: #fff;
}

.dwp-footer-sub {
    margin: 0;
    color: #b7efe4;
    font-weight: 600;
}

.dwp-footer-menu,
.dwp-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dwp-footer-menu li,
.dwp-footer-contact li {
    margin: 0 0 8px;
    color: #d9f5ef;
}

.dwp-footer a {
    color: #fff;
}

.dwp-footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #00584b;
    text-align: center;
    padding: 14px 16px;
    color: #d9f5ef;
    font-size: 14px;
}

.dwp-footer-copy p {
    margin: 0;
}

.site-footer {
    display: none;
}

@media (max-width: 1200px) {
    .dwp-market-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .dwp-detail-grid,
    .dwp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .dwp-nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .dwp-header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .dwp-nav {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 12px;
        padding: 8px 0 4px;
        white-space: normal;
    }

    .dwp-nav.is-open {
        display: flex;
    }

    .dwp-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dwp-hero h1,
    .dwp-page h1,
    .dwp-detail-info h1 {
        font-size: 26px;
    }

    .dwp-brand-logo,
    .dwp-header .site-logo,
    .dwp-header img.dwp-brand-logo,
    .dwp-footer-logo {
        height: 46px !important;
        max-width: 58px !important;
        max-height: 50px !important;
    }

    .dwp-brand-title {
        font-size: 15px;
        white-space: normal;
    }

    .dwp-brand-subtitle {
        font-size: 12px;
    }

    .dwp-detail-grid,
    .dwp-footer-grid {
        grid-template-columns: 1fr;
    }

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

    .dwp-product-actions,
    .dwp-contact-actions,
    .dwp-hero-actions {
        flex-direction: column;
    }

    .dwp-contact-actions .dwp-btn,
    .dwp-hero-actions .dwp-btn {
        width: 100%;
    }
}
