/* ===================================================================
 * PANDUSOLUSI DESIGN SYSTEM v1.0 — Premium Digital Marketplace
 * Palette: Primary #1769FF · Secondary #0B1F44 · Accent #FFB800
 * Dimuat hanya di template pandusolusi-home (lihat functions.php).
 * =================================================================== */
:root {
  --pds-primary: #1769ff;
  --pds-primary-dark: #0f4fd1;
  --pds-primary-soft: #e8efff;
  --pds-secondary: #0b1f44;
  --pds-accent: #ffb800;
  --pds-accent-soft: #fff6e0;
  --pds-bg: #f7f9fc;
  --pds-surface: #ffffff;
  --pds-text: #17233b;
  --pds-muted: #718096;
  --pds-border: #e6ebf2;
  --pds-success: #16a36a;
  --pds-danger: #e5484d;
  --pds-radius: 16px;
  --pds-radius-sm: 10px;
  --pds-shadow: 0 10px 30px rgba(11, 31, 68, .08);
  --pds-shadow-hover: 0 18px 44px rgba(23, 105, 255, .16);
  --pds-font: "Plus Jakarta Sans", Inter, -apple-system, "Segoe UI", sans-serif;
}

.pds-wrap { max-width: 1230px; margin: 0 auto; padding: 0 20px; }
.pds-section { padding: 56px 0; }
.pds-section.alt { background: var(--pds-surface); }
.pds-eyebrow { display: inline-block; font: 700 12px/1 var(--pds-font); letter-spacing: 2px; text-transform: uppercase; color: var(--pds-primary); background: var(--pds-primary-soft); padding: 8px 14px; border-radius: 999px; margin-bottom: 12px; }
.pds-h2 { font: 800 clamp(24px, 3.4vw, 36px)/1.2 var(--pds-font); color: var(--pds-secondary); margin: 0 0 8px; }
.pds-sub { color: var(--pds-muted); font-size: 16px; margin: 0 0 28px; }
.pds-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pds-link { font-weight: 700; color: var(--pds-primary); white-space: nowrap; }
.pds-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--pds-primary); color: #fff !important; font-weight: 700; padding: 14px 28px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.pds-btn:hover { background: var(--pds-primary-dark); transform: translateY(-2px); box-shadow: var(--pds-shadow-hover); }
.pds-btn.accent { background: var(--pds-accent); color: var(--pds-secondary) !important; }
.pds-btn.ghost { background: #fff; color: var(--pds-primary) !important; border: 2px solid var(--pds-primary); }
.pds-btn.danger { background: #e5484d; }
.pds-btn.danger:hover { background: #b91c1c; }

/* --- 01 announcement --- */
.pds-announce { background: var(--pds-secondary); color: #fff; font-size: 13.5px; }
.pds-announce .pds-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.pds-announce a { color: var(--pds-accent); font-weight: 700; }
.pds-announce .dot { opacity: .4; margin: 0 8px; }

/* --- 03 hero --- */
.pds-hero { background: linear-gradient(120deg, var(--pds-secondary) 0%, #123063 55%, var(--pds-primary) 130%); border-radius: 0; color: #fff; overflow: hidden; }
.pds-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 20px; }
.pds-hero h1 { font: 800 clamp(30px, 4.6vw, 54px)/1.12 var(--pds-font); margin: 0 0 16px; color: #fff; }
.pds-hero h1 span { color: var(--pds-accent); }
.pds-hero p { color: #c9d6ee; font-size: 17px; margin: 0 0 28px; max-width: 52ch; }
.pds-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pds-hero-stats { display: flex; gap: 28px; margin-top: 32px; }
.pds-hero-stats b { display: block; font-size: 24px; }
.pds-hero-stats small { color: #9db1d4; }
.pds-hero-img img { border-radius: var(--pds-radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

/* --- 04 trust --- */
.pds-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 2; }
.pds-trust-item { background: var(--pds-surface); border: 1px solid var(--pds-border); border-radius: var(--pds-radius); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--pds-shadow); }
.pds-trust-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--pds-primary-soft); display: grid; place-items: center; font-size: 22px; }
.pds-trust-item b { display: block; color: var(--pds-secondary); font-size: 15px; }
.pds-trust-item small { color: var(--pds-muted); font-size: 13px; }

/* --- 05 categories --- */
.pds-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pds-cat { position: relative; border-radius: var(--pds-radius); overflow: hidden; background: var(--pds-secondary); min-height: 190px; display: flex; align-items: flex-end; box-shadow: var(--pds-shadow); transition: transform .2s, box-shadow .2s; }
.pds-cat:hover { transform: translateY(-4px); box-shadow: var(--pds-shadow-hover); }
.pds-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pds-cat-body { position: relative; padding: 20px; color: #fff; background: linear-gradient(transparent, rgba(11,31,68,.85)); width: 100%; }
.pds-cat-body b { font-size: 18px; display: block; }
.pds-cat-body small { opacity: .85; }

/* --- 05b category icon strip (mockup style) --- */
.pds-catstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 10px; overflow-x: auto; padding: 18px; background: var(--pds-surface); border: 1px solid var(--pds-border); border-radius: var(--pds-radius); box-shadow: var(--pds-shadow); margin-top: 18px; scrollbar-width: thin; }
.pds-catstrip a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--pds-text); padding: 6px 4px; }
.pds-catstrip .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--pds-primary-soft); display: grid; place-items: center; font-size: 26px; }
.pds-catstrip a:hover .ic { background: var(--pds-accent-soft); }

/* --- product grid umum --- */
.pds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pds-card { background: var(--pds-surface); border: 1px solid var(--pds-border); border-radius: var(--pds-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.pds-card:hover { transform: translateY(-4px); box-shadow: var(--pds-shadow-hover); }
.pds-card-img { position: relative; aspect-ratio: 1/1; background: #eef2f8; overflow: hidden; }
.pds-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pds-badge { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pds-badge span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.pds-badge .off { background: var(--pds-danger); color: #fff; }
.pds-badge .best { background: var(--pds-accent); color: var(--pds-secondary); }
.pds-badge .feat { background: var(--pds-primary); color: #fff; }
.pds-rank { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--pds-primary); color: #fff; font: 800 14px/30px var(--pds-font); text-align: center; }
.pds-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pds-card-title { font-weight: 700; font-size: 14.5px; color: var(--pds-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pds-card-title a { color: inherit; }
.pds-stars { color: var(--pds-accent); font-size: 13px; letter-spacing: 1px; }
.pds-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pds-price ins { text-decoration: none; color: #d61f26; font-weight: 800; font-size: 17px; }
.pds-price del { color: var(--pds-muted); font-size: 13px; }
.pds-sold { font-size: 12.5px; color: var(--pds-muted); }
.pds-stock { font-size: 12.5px; font-weight: 700; }
.pds-stock.in { color: var(--pds-success); }
.pds-stock.out { color: var(--pds-danger); }
.pds-add { margin-top: auto; padding-top: 8px; }
.pds-add .button { width: 100%; text-align: center; background: var(--pds-primary) !important; border-radius: 10px !important; }

/* --- 07 flash sale --- */
.pds-flash { background: linear-gradient(120deg, #e5484d, #b91c1c); border-radius: 24px; padding: 36px; color: #fff; }
.pds-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pds-flash-head h2 { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 32px); }
.pds-count { display: flex; gap: 8px; }
.pds-count div { background: rgba(0,0,0,.35); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 62px; }
.pds-count b { display: block; font-size: 22px; }
.pds-count small { font-size: 11px; opacity: .8; }
.pds-flash .pds-card { border: 0; }

/* --- 08 promo banners --- */
.pds-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pds-promo { border-radius: var(--pds-radius); padding: 32px 28px; color: #fff; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: center; }
.pds-promo h3 { margin: 0 0 8px; font-size: 22px; }
.pds-promo p { margin: 0 0 18px; opacity: .85; font-size: 14.5px; }
.pds-promo .pds-btn { align-self: flex-start; padding: 11px 22px; font-size: 14px; }
.pds-promo.blue { background: linear-gradient(135deg, #1769ff, #0b3fa0); }
.pds-promo.navy { background: linear-gradient(135deg, #0b1f44, #1e3a6e); }
.pds-promo.gold { background: linear-gradient(135deg, #b97a00, #ffb800); }
.pds-promo.gold h3, .pds-promo.gold p { color: #0b1f44; }

/* --- 11 why --- */
.pds-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pds-why-item { background: var(--pds-surface); border: 1px solid var(--pds-border); border-radius: var(--pds-radius); padding: 28px 24px; box-shadow: var(--pds-shadow); }
.pds-why-item .n { font: 800 15px var(--pds-font); color: var(--pds-primary); }
.pds-why-item h3 { margin: 10px 0 8px; color: var(--pds-secondary); font-size: 18px; }
.pds-why-item p { margin: 0; color: var(--pds-muted); font-size: 14.5px; }

/* --- nav row ala mockup: bar putih + tombol biru (homepage saja) --- */
.pds-navrow { background: #fff; border-bottom: 1px solid var(--pds-border); }
.pds-navrow .pds-wrap { display: flex; align-items: center; gap: 6px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; }
.pds-navrow a { color: var(--pds-text); font-weight: 600; font-size: 14.5px; padding: 10px 16px; white-space: nowrap; border-radius: 10px; }
.pds-navrow a:hover { color: var(--pds-primary); }
.pds-navrow a.on { color: var(--pds-primary); box-shadow: inset 0 -3px 0 var(--pds-primary); border-radius: 0; }
.pds-navrow .all { background: var(--pds-primary); color: #fff !important; font-weight: 700; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; }
.pds-navrow .all:hover { background: var(--pds-primary-dark); color: #fff !important; }
.pds-drop { position: relative; }
.pds-dropmenu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--pds-border); border-radius: 12px; box-shadow: var(--pds-shadow-hover); padding: 8px; z-index: 999; }
.pds-drop:hover .pds-dropmenu, .pds-drop:focus-within .pds-dropmenu { display: block; }
.pds-dropmenu a { display: flex !important; justify-content: space-between; padding: 10px 14px !important; border-radius: 8px; }
.pds-dropmenu a:hover { background: var(--pds-primary-soft); }
.pds-dropmenu small { color: var(--pds-muted); }
@media (max-width: 640px) { .pds-navrow a { padding: 9px 12px; font-size: 13px; } }

/* --- service strip (mockup style) --- */
.pds-service { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #eef4ff; border-radius: var(--pds-radius); padding: 26px 30px; }
.pds-service-item { display: flex; gap: 12px; align-items: center; }
.pds-service-item .si { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: var(--pds-shadow); }
.pds-service-item b { display: block; color: var(--pds-secondary); font-size: 14.5px; }
.pds-service-item small { color: var(--pds-muted); font-size: 12.5px; }
@media (max-width: 1024px) { .pds-service { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pds-service { grid-template-columns: 1fr 1fr; padding: 20px; } }

/* --- 12 testimonials (hanya bila ada review asli) --- */
.pds-testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pds-testi { background: var(--pds-surface); border: 1px solid var(--pds-border); border-radius: var(--pds-radius); padding: 24px; box-shadow: var(--pds-shadow); }
.pds-testi .q { color: var(--pds-text); font-size: 15px; }
.pds-testi .who { margin-top: 14px; font-weight: 700; color: var(--pds-secondary); font-size: 14px; }
.pds-testi .prod { font-size: 12.5px; color: var(--pds-muted); font-weight: 400; display: block; }

/* --- 14 final CTA --- */
.pds-cta { background: linear-gradient(120deg, var(--pds-secondary), var(--pds-primary-dark)); border-radius: 24px; padding: 56px 40px; text-align: center; color: #fff; }
.pds-cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin: 0 0 12px; }
.pds-cta p { color: #c9d6ee; margin: 0 0 28px; }
.pds-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- responsive --- */
@media (max-width: 1024px) {
  .pds-grid { grid-template-columns: repeat(3, 1fr); }
  .pds-cats, .pds-promos { grid-template-columns: repeat(2, 1fr); }
  .pds-trust, .pds-why { grid-template-columns: repeat(2, 1fr); }
  .pds-hero-grid { grid-template-columns: 1fr; padding: 48px 20px; }
}
@media (max-width: 640px) {
  .pds-section { padding: 40px 0; }
  .pds-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pds-card-body { padding: 12px; }
  .pds-card-title { font-size: 13px; }
  .pds-price ins { font-size: 15px; }
  .pds-cats, .pds-promos, .pds-trust, .pds-why, .pds-testis { grid-template-columns: 1fr; }
  .pds-testis { grid-template-columns: 1fr; }
  .pds-announce .hide-m { display: none; }
  .pds-flash { padding: 24px 18px; }
  .pds-cta { padding: 40px 24px; }
}
