/*
Theme Name: Malakaprinting
Theme URI: https://malakatech.com
Author: Malakatech
Author URI: https://malakatech.com
Description: Tema percetakan (digital & offset) dengan integrasi WooCommerce oleh Malakatech. Header ala marketplace, sidebar kategori, slider promo, katalog produk, testimoni, dan FAQ.
Version: 1.6.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: malakaprinting
WC requires at least: 7.0
WC tested up to: 8.6
*/

:root{
  --red:#E11B26;--red-d:#B71219;--ink:#1c1c1e;--paper:#FFFFFF;--bg:#F4F5F7;
  --line:#E6E8EC;--muted:#6b7280;--cyan:#00A7C4;--magenta:#D6296B;--yellow:#F4C430;
  --font-d:"Archivo Black","Arial Black",sans-serif;--font-b:"Inter",system-ui,-apple-system,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--font-b);line-height:1.6;overflow-x:hidden}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--font-d);letter-spacing:-.02em;line-height:1.1}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
svg{display:block;max-width:100%}
/* jaring pengaman: SVG ikon inline tak boleh meraksasa bila CSS spesifik telat */
.tp-single svg,.wc-assurance svg,.tp-gb svg,.tp-help svg,.tp-single .single_add_to_cart_button svg,.woocommerce svg[viewBox]{width:1em;height:1em}
.tp-gb svg{width:16px;height:16px}
.tp-help svg{width:20px;height:20px}
.tp-single .wc-wa-btn svg{width:20px;height:20px}

/* ===== TOP BAR ===== */
.topbar{background:var(--red);color:#fff;font-size:13px}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:40px}
.topbar-l,.topbar-r{display:flex;align-items:center;gap:22px}
.topbar-l .tb-item{display:flex;align-items:center;gap:7px;opacity:.95}
.topbar .socials{display:flex;align-items:center;gap:12px}
.topbar .socials svg{width:16px;height:16px;fill:#fff;opacity:.9;transition:.2s}
.topbar .socials a:hover svg{opacity:1;transform:translateY(-1px)}
.topbar-r a{opacity:.95;transition:.2s}
.topbar-r a:hover{opacity:1}
.topbar .divider{width:1px;height:14px;background:rgba(255,255,255,.35)}
@media(max-width:900px){.topbar-l span,.topbar-r{display:none}}

/* ===== HEADER ===== */
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:78px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .mark{width:40px;height:36px;background:var(--red);border-radius:6px;display:flex;align-items:center;justify-content:center}
.logo .mark svg{width:24px;height:24px;fill:#fff}
.logo .txt{font-family:var(--font-d);font-size:22px;letter-spacing:-.03em;color:var(--ink)}
.logo .txt em{font-style:normal;color:var(--red)}
.logo img.custom-logo{max-height:44px;width:auto}
.search{flex:1;display:flex;align-items:center;border:1.5px solid var(--line);border-radius:30px;padding:5px 6px 5px 20px;background:#fff}
.search input{flex:1;border:none;outline:none;font-family:var(--font-b);font-size:14.5px;background:transparent}
.search button{width:40px;height:40px;background:var(--red);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.search button svg{width:18px;height:18px;fill:#fff}
.header-icons{display:flex;align-items:center;gap:18px;flex:none}
.header-icons a{position:relative}
.header-icons svg{width:23px;height:23px;fill:var(--ink);opacity:.8;transition:.2s}
.header-icons a:hover svg{opacity:1;fill:var(--red)}
.header-icons .badge-count{position:absolute;top:-6px;right:-8px;background:var(--red);color:#fff;font-family:var(--font-b);font-size:10px;font-weight:700;min-width:16px;height:16px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.header-btns{display:flex;align-items:center;gap:10px;flex:none}
.btn-outline{border:1.5px solid var(--red);color:var(--red);padding:10px 22px;border-radius:30px;font-weight:700;font-size:14px;transition:.2s}
.btn-outline:hover{background:#fff5f5}
.btn-fill{background:var(--red);color:#fff;padding:11px 24px;border-radius:30px;font-weight:700;font-size:14px;transition:.2s}
.btn-fill:hover{background:var(--red-d)}
@media(max-width:1100px){.header-icons{display:none}}
@media(max-width:700px){.site-header .wrap{flex-wrap:wrap;height:auto;padding-top:14px;padding-bottom:14px}.search{order:5;flex-basis:100%}}

/* ===== NAV BAR ===== */
.navbar{background:var(--red);position:sticky;top:0;z-index:60;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.navbar .wrap{display:flex;align-items:center;height:52px;position:relative}
.nav-cat-btn{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:14.5px;padding:0 22px;height:52px;cursor:pointer;width:270px;flex:none}
.nav-cat-btn svg{width:18px;height:18px;fill:#fff}
.nav-links{display:flex;align-items:center;gap:6px;margin-left:24px;flex:1;list-style:none}
.nav-links a{color:#fff;font-weight:500;font-size:14.5px;padding:8px 16px;border-radius:6px;transition:.2s;opacity:.95;display:block}
.nav-links a:hover,.nav-links .current-menu-item>a{background:rgba(255,255,255,.14)}
.nav-help{display:flex;align-items:center;gap:12px;color:#fff;font-size:13.5px}
.nav-help .wa{display:flex;align-items:center;gap:6px;opacity:.95}
.nav-help .wa svg{width:16px;height:16px;fill:#fff}
@media(max-width:1000px){.nav-links,.nav-help{display:none}.nav-cat-btn{width:auto}}

/* ===== TICKER ===== */
.ticker{background:#111214;color:#fff;overflow:hidden;position:relative;height:42px;display:flex;align-items:center}
.ticker .tick-label{background:var(--yellow);color:#7a5300;font-weight:800;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;padding:0 18px;height:100%;display:flex;align-items:center;flex:none;z-index:3;position:relative;gap:8px}
.ticker .tick-label svg{width:16px;height:16px;fill:#7a5300}
.ticker .tick-track{display:flex;white-space:nowrap;animation:tickmove 32s linear infinite;flex:1}
.ticker:hover .tick-track{animation-play-state:paused}
.ticker .tick-item{display:inline-flex;align-items:center;gap:10px;padding:0 28px;font-size:14px;font-weight:500}
.ticker .tick-item b{color:var(--yellow);font-weight:700}
.ticker .tick-item::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--red)}
@keyframes tickmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ===== HERO ===== */
.hero-sec{background:#fff;border-bottom:1px solid var(--line);padding-bottom:8px}
.hero-grid{display:grid;grid-template-columns:270px 1fr;gap:16px;padding:16px 0}
.cat-menu{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;align-self:start}
.cat-menu a{display:flex;align-items:center;gap:14px;padding:13px 18px;font-size:14px;font-weight:500;color:var(--ink);border-bottom:1px solid var(--line);transition:.15s}
.cat-menu a:last-child{border-bottom:none}
.cat-menu a:hover{background:#fff5f5;color:var(--red);padding-left:22px}
.cat-menu a .ci{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:none;background:#fbe9ea}
.cat-menu a .ci svg{width:18px;height:18px;fill:var(--red)}
.cat-menu a .cname{flex:1}
.cat-menu a .arr{width:14px;height:14px;fill:#c4c4c4}
.cat-menu a:hover .arr{fill:var(--red)}
.slider-area{position:relative;border-radius:14px;overflow:hidden;background:#e11b26;aspect-ratio:1600/650;width:100%}
.slides{position:relative;width:100%;height:100%}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;display:block}
.slide.active{opacity:1;z-index:1}
.slide img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
@supports not (aspect-ratio: 1 / 1){.slider-area{height:0;padding-bottom:40.6%}.slides{position:absolute;inset:0}}
.dots{position:absolute;bottom:18px;right:24px;z-index:6;display:flex;gap:8px}
.dot{width:9px;height:9px;border-radius:50%;background:rgba(225,27,38,.28);border:none;cursor:pointer;transition:.3s}
.dot.active{background:var(--red);width:24px;border-radius:20px}
.arrows{position:absolute;bottom:16px;left:24px;z-index:6;display:flex;gap:8px}
.arrows button{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.85);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s}
.arrows button:hover{background:#fff;border-color:var(--red)}
.arrows svg{width:16px;height:16px;fill:var(--red)}
@media(max-width:1150px){.hero-grid{grid-template-columns:240px 1fr}}
@media(max-width:820px){.hero-grid{grid-template-columns:1fr}.cat-menu{display:none}}

/* ===== FEATURE STRIP ===== */
.features{background:var(--bg);padding:26px 0}
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.feat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;gap:14px;align-items:flex-start}
.feat .fi{width:44px;height:44px;border-radius:10px;background:var(--red);display:flex;align-items:center;justify-content:center;flex:none}
.feat .fi svg{width:22px;height:22px;fill:#fff}
.feat b{display:block;font-family:var(--font-b);font-weight:700;font-size:15px;margin-bottom:3px}
.feat span{font-size:13px;color:var(--muted);line-height:1.45}
@media(max-width:900px){.feat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.feat-grid{grid-template-columns:1fr}}

/* ===== SECTIONS ===== */
.sec{padding:70px 0}
.kicker{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--red);margin-bottom:16px}
.kicker::before{content:"";width:32px;height:2px;background:var(--red)}
.sec h2{font-size:clamp(28px,4vw,42px);margin-bottom:18px}

/* TENTANG */
.about{background:#fff}
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.about p{font-size:16px;color:#4b5563;margin-bottom:14px}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.stat{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:24px}
.stat b{font-family:var(--font-d);font-size:38px;display:block;line-height:1;color:var(--red)}
.stat span{font-size:13px;color:var(--muted);font-weight:500}
@media(max-width:820px){.about-grid{grid-template-columns:1fr;gap:32px}}

/* COUNTDOWN */
.countdown{background:linear-gradient(120deg,#E11B26,#8a0d13);border-radius:16px;padding:26px 30px;margin-bottom:38px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;position:relative;overflow:hidden}
.countdown::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.1) 1.5px,transparent 1.5px);background-size:14px 14px;opacity:.5}
.cd-left{position:relative;z-index:2;color:#fff}
.cd-left .cd-flag{display:inline-flex;align-items:center;gap:8px;background:var(--yellow);color:#7a5300;font-weight:800;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:20px;margin-bottom:12px}
.cd-left .cd-flag svg{width:14px;height:14px;fill:#7a5300}
.cd-left h3{font-family:var(--font-d);font-size:clamp(22px,3vw,30px);color:#fff;margin-bottom:6px}
.cd-left p{font-size:14px;opacity:.9}
.cd-timer{position:relative;z-index:2;display:flex;align-items:center;gap:10px}
.cd-box{background:#fff;border-radius:12px;min-width:66px;padding:12px 8px;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.cd-box b{font-family:var(--font-d);font-size:30px;color:var(--red);display:block;line-height:1}
.cd-box span{font-size:10.5px;font-weight:600;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.cd-colon{color:#fff;font-family:var(--font-d);font-size:26px;opacity:.7}
@media(max-width:560px){.countdown{flex-direction:column;align-items:flex-start}.cd-box{min-width:58px}.cd-box b{font-size:24px}}

/* filter kategori */
.cat-filter{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.cat-filter a{border:1.5px solid var(--line);background:#fff;color:var(--ink);padding:9px 18px;border-radius:30px;font-family:var(--font-b);font-weight:600;font-size:13.5px;transition:.2s}
.cat-filter a:hover{border-color:var(--red);color:var(--red)}
.cat-filter a.active{background:var(--red);border-color:var(--red);color:#fff}

/* KATALOG / PRODUCT GRID */
.cat-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px;margin-bottom:36px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.1)}
.card .thumb{height:200px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#E11B26,#8a0d13)}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .thumb .ph{font-family:var(--font-d);font-size:19px;color:#fff;text-align:center;padding:0 20px;z-index:2}
.card .thumb::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:9px 9px;pointer-events:none}
.card .thumb img+.ph{display:none}
.card .body{padding:20px 20px 22px;flex:1;display:flex;flex-direction:column}
.card .tag{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--red);margin-bottom:8px}
.card h3{font-family:var(--font-b);font-weight:700;font-size:18px;margin-bottom:8px;letter-spacing:0}
.card h3 a{color:inherit}
.card .rating{display:flex;align-items:center;gap:7px;margin-bottom:12px}
.card .stars{display:inline-flex;gap:2px}
.card .stars svg{width:15px;height:15px;fill:var(--yellow)}
.card .rating span{font-size:12px;font-weight:600;color:var(--muted)}
.card .desc{font-size:14px;color:var(--muted);margin-bottom:16px;flex:1}
.card .price{font-weight:700;font-size:15px;margin-bottom:18px}
.card .price small{font-weight:500;color:var(--muted)}
.card .price ins{text-decoration:none;color:var(--red)}
.card .price del{color:#b0b4bb;font-weight:500;font-size:13px;margin-left:6px}
.card-btns{display:flex;gap:10px}
.b-detail{flex:1;text-align:center;border:1.5px solid var(--ink);padding:11px;border-radius:8px;font-weight:600;font-size:14px;transition:.2s}
.b-detail:hover{background:var(--ink);color:#fff}
.b-wa{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;background:#25D366;color:#fff;padding:11px;border-radius:8px;font-weight:600;font-size:14px;transition:.2s}
.b-wa:hover{background:#1fb356}
.b-wa svg{width:16px;height:16px;fill:#fff}

/* TESTIMONI */
.testi{background:#fff}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:36px}
@media(max-width:900px){.testi-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.testi-grid{grid-template-columns:1fr}}
.testi-card{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:26px 24px;position:relative;display:flex;flex-direction:column}
.testi-card .quote{position:absolute;top:16px;right:22px;font-family:var(--font-d);font-size:52px;color:var(--red);opacity:.14;line-height:1}
.testi-card .stars{display:inline-flex;gap:2px;margin-bottom:14px}
.testi-card .stars svg{width:16px;height:16px;fill:var(--yellow)}
.testi-card p{font-size:14.5px;color:#374151;line-height:1.7;margin-bottom:22px;flex:1}
.testi-user{display:flex;align-items:center;gap:12px}
.testi-user .ava{width:46px;height:46px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-family:var(--font-d);font-size:18px;color:#fff}
.av1{background:var(--red)}.av2{background:var(--cyan)}.av3{background:var(--magenta)}
.av4{background:#5a4a8c}.av5{background:var(--yellow);color:#7a5300}.av6{background:#25D366}
.testi-user b{display:block;font-size:14.5px;font-weight:700}
.testi-user span{font-size:12.5px;color:var(--muted)}

/* FAQ */
.faq{background:var(--bg)}
.faq-list{max-width:820px;margin-top:30px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;overflow:hidden;transition:.2s}
.faq-item.open{border-color:var(--red)}
.faq-q{width:100%;background:none;border:none;color:var(--ink);text-align:left;font-family:var(--font-b);font-weight:600;font-size:16px;padding:20px 52px 20px 22px;cursor:pointer;position:relative;display:flex}
.faq-q::after{content:"+";position:absolute;right:22px;top:18px;font-size:24px;font-weight:400;transition:.3s;color:var(--red)}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;color:var(--muted);font-size:15px}
.faq-a p{padding:0 22px 20px}
.faq-item.open .faq-a{max-height:260px}

/* FOOTER */
.site-footer{background:#111214;color:#fff;padding:56px 0 26px}
.foot-main{display:grid;grid-template-columns:1.6fr 1fr 1.15fr 1fr 1fr;gap:32px;padding-bottom:40px}
.foot-brand .logo{margin-bottom:18px}
.foot-brand .logo .txt,.foot-brand .logo .txt em{color:#fff}
.foot-brand p{font-size:14px;color:#9aa0a6;line-height:1.7;margin-bottom:24px}
.foot-brand h5{font-size:15px;font-weight:700;margin-bottom:14px}
.foot-social{display:flex;gap:12px}
.foot-social a{width:40px;height:40px;border-radius:10px;background:#26282c;display:flex;align-items:center;justify-content:center;transition:.2s}
.foot-social a:hover{background:var(--red)}
.foot-social svg{width:18px;height:18px;fill:#fff}
.foot-col h4{font-size:16px;font-weight:800;margin-bottom:20px}
.foot-col ul{list-style:none}
.foot-col li{margin-bottom:13px}
.foot-col a{font-size:14px;color:#9aa0a6;transition:.2s}
.foot-col a:hover{color:#fff}
.foot-hours h4{font-size:18px;font-family:var(--font-d);margin:26px 0 16px}
.hour-item{display:flex;gap:10px;margin-bottom:14px}
.hour-item .hi{width:18px;height:18px;fill:var(--red);flex:none;margin-top:2px}
.hour-item b{display:block;font-size:14px;font-weight:600}
.hour-item span{font-size:14px;color:#9aa0a6}
.foot-logistics{border-top:1px solid #26282c;padding:28px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}
.fl-block h5{font-size:15px;font-weight:700;margin-bottom:14px}
.badge-row{display:flex;gap:12px;flex-wrap:wrap}
.badge{background:#fff;border-radius:8px;height:38px;padding:0 14px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#111}
.badge.jne{color:#0056a4}.badge.jnt{color:#e11b26}.badge.sicepat{color:#e11b26}
.badge.anteraja{color:#e11b26}.badge.grab{color:#00b14f}.badge.gosend{color:#00aa13}
.badge.bca{color:#0060af}.badge.mandiri{color:#003d79}.badge.qris{color:#e11b26}
.pay-block{text-align:right}
.pay-block .badge-row{justify-content:flex-end}
.foot-bottom{border-top:1px solid #26282c;padding-top:22px;font-size:13px;color:#7c8085;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.foot-bottom .fb-links{display:flex;gap:8px;align-items:center}
.foot-bottom .fb-links a{color:#9aa0a6;transition:.2s}
.foot-bottom .fb-links a:hover{color:#fff}
.foot-bottom .fb-links .sep{color:#4a4d52}
@media(max-width:1050px){.foot-main{grid-template-columns:1fr 1fr 1fr;row-gap:36px}.foot-brand{grid-column:1/-1}}
@media(max-width:760px){.foot-main{grid-template-columns:1fr 1fr}.foot-logistics{flex-direction:column;align-items:flex-start}.pay-block{text-align:left}.pay-block .badge-row{justify-content:flex-start}}
@media(max-width:480px){.foot-main{grid-template-columns:1fr}}

/* ===== WOOCOMMERCE ===== */
.woo-wrap{max-width:1200px;margin:10px auto;padding:40px 24px 70px}
.wc-breadcrumb,.woocommerce-breadcrumb{font-size:13.5px;color:var(--muted);margin-bottom:24px}
.wc-breadcrumb a:hover,.woocommerce-breadcrumb a:hover{color:var(--red)}
/* single product: foto kiri sejajar judul+info kanan */
/* CSS lama (fallback bila template baru tak dipakai) */
.single-product div.product:not(.tp-single){display:grid;grid-template-columns:0.9fr 1.1fr;gap:48px;align-items:start;padding-top:4px}
/* template baru: div.product = block, grid hanya di .tp-single-grid */
.single-product div.product.tp-single{display:block}
@media(max-width:900px){.single-product div.product{grid-template-columns:1fr;gap:28px}.woo-wrap{padding:28px 18px 50px}}
.single-product .woocommerce-product-gallery{position:sticky;top:72px}
.single-product .woocommerce-product-gallery img{border-radius:16px;border:1px solid var(--line);aspect-ratio:1/1;object-fit:cover;width:100%}
.single-product .woocommerce-product-gallery__wrapper{margin:0}
.single-product .woocommerce-product-gallery img{border-radius:16px;border:1px solid var(--line)}
.single-product .product_title{font-size:clamp(26px,3.5vw,38px);margin-bottom:12px;line-height:1.15}
.single-product .entry-summary{max-width:560px}
.single-product .entry-summary>*{margin-top:0}
.single-product .woocommerce-product-rating{margin:0 0 18px}
.single-product .price{margin:0 0 18px!important}
.single-product .woocommerce-product-details__short-description{color:#4b5563;font-size:15px;margin:0 0 20px}
.single-product .woocommerce-product-details__short-description p{margin-bottom:0}
.single-product form.cart{margin:0 0 22px}
.single-product .product_meta{margin-top:6px;font-size:14px;color:var(--muted)}
.single-product .woocommerce-product-rating{margin-bottom:20px}
.single-product .price{font-family:var(--font-d);font-size:32px;color:var(--red);background:var(--bg);border-radius:14px;padding:18px 22px;display:inline-block;margin-bottom:24px}
.single-product .price del{font-family:var(--font-b);font-size:16px;color:#b0b4bb;font-weight:500;margin-left:10px}
.single-product .price ins{text-decoration:none}
.single-product form.cart{margin-bottom:24px}
/* ===== VARIAN sebagai pill button (menggantikan dropdown) ===== */
.single-product table.variations{border:none;margin-bottom:18px;width:100%}
.single-product table.variations tbody,
.single-product table.variations tr{display:block}
.single-product table.variations td,
.single-product table.variations th{display:block;padding:0;border:none;background:none;text-align:left}
.single-product table.variations th.label{font-family:var(--font-b);font-weight:700;font-size:14px;margin-bottom:10px;color:var(--ink)}
.single-product table.variations td.label{margin-bottom:10px}
/* select asli baru disembunyikan setelah pill terbangun (hindari area kosong) */
.single-product .variations select.tp-has-pills{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;margin:0}
.single-product .variations select{min-width:220px;height:44px;border:1.5px solid var(--line);border-radius:10px;padding:0 14px;font-family:var(--font-b);font-size:14px}
.tp-variant-pills{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:6px}
.tp-variant-pills .pill{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:11px 18px;font-family:var(--font-b);font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;transition:.18s;user-select:none}
.tp-variant-pills .pill:hover{border-color:var(--red);color:var(--red)}
.tp-variant-pills .pill.active{border-color:var(--red);background:var(--red);color:#fff;box-shadow:0 6px 16px rgba(225,27,38,.25)}
.single-product .reset_variations{display:inline-block;margin:6px 0 0;font-size:13px;color:var(--muted)}
.single-product .woocommerce-variation-price{margin:10px 0 4px}
.single-product .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.single-product .quantity input{width:70px;height:48px;border:1.5px solid var(--line);border-radius:10px;text-align:center;font-weight:600;font-size:15px}
.single-product .single_add_to_cart_button{background:var(--red)!important;color:#fff!important;border:none!important;border-radius:12px!important;padding:15px 28px!important;font-family:var(--font-b)!important;font-weight:700!important;font-size:15px!important;transition:.2s!important;cursor:pointer}
.single-product .single_add_to_cart_button:hover{background:var(--red-d)!important}
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button.wc-variation-selection-needed{opacity:.55!important;cursor:not-allowed}
.single-product .single_add_to_cart_button.wc-variation-selection-needed::after{content:" — pilih varian dulu";font-weight:500;font-size:13px}
.single-product table.variations{margin-bottom:18px}
.single-product table.variations td,.single-product table.variations th{padding:6px 8px;font-size:14px}
.wc-wa-btn{display:inline-flex;align-items:center;gap:9px;background:#25D366;color:#fff;padding:15px 26px;border-radius:12px;font-weight:700;font-size:15px;margin-left:10px;transition:.2s}
.wc-wa-btn:hover{background:#1fb356;color:#fff}
.wc-wa-btn svg{width:20px;height:20px;fill:#fff}
.wc-assurance{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}
.wc-assur{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.wc-assur svg{width:22px;height:22px;fill:var(--red);flex:none}
.wc-assur span{font-size:12.5px;font-weight:600;line-height:1.3}
@media(max-width:560px){.wc-assurance{grid-template-columns:1fr}}
.woocommerce-tabs{grid-column:1/-1;margin-top:48px;clear:both}
.woocommerce-tabs ul.tabs{list-style:none;display:flex;gap:6px;border-bottom:2px solid var(--line);margin:0 0 24px;padding:0;flex-wrap:wrap}
.woocommerce-tabs ul.tabs::before,.woocommerce-tabs ul.tabs::after{display:none!important}
.woocommerce-tabs ul.tabs li{margin-bottom:-2px;background:none!important;border:none!important;padding:0!important}
.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce-tabs ul.tabs li a{padding:14px 22px;font-weight:600;font-size:15px;color:var(--muted);border-bottom:3px solid transparent;display:block;text-decoration:none}
.woocommerce-tabs ul.tabs li.active a{color:var(--red);border-bottom-color:var(--red)}
.woocommerce-tabs .panel,.woocommerce-tabs .woocommerce-Tabs-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;margin:0}
.woocommerce-tabs .panel h2{font-family:var(--font-b);font-weight:800;font-size:20px;margin-bottom:14px}
.woocommerce-tabs .panel p{font-size:15px;color:#374151;margin-bottom:12px;line-height:1.7}
.woocommerce-tabs .panel ul{margin:0 0 8px 20px}
.woocommerce-tabs .panel ul li{font-size:15px;color:#374151;margin-bottom:6px}
@media(max-width:560px){.woocommerce-tabs .panel{padding:22px}}
/* shop/archive grid — flexbox, tahan terhadap wrapper WooCommerce */
.woocommerce ul.products,
.woocommerce-page ul.products{display:flex!important;flex-wrap:wrap;gap:22px!important;list-style:none;margin:0!important;padding:0!important}
.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none!important;content:none!important}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
	background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.25s;
	margin:0!important;padding:0!important;float:none!important;text-align:left;display:flex;flex-direction:column;
	width:calc((100% - 44px)/3)!important;
}
.woocommerce ul.products.columns-1 li.product{width:100%!important}
.woocommerce ul.products.columns-2 li.product{width:calc((100% - 22px)/2)!important}
.woocommerce ul.products.columns-4 li.product{width:calc((100% - 66px)/4)!important}
@media(max-width:900px){.woocommerce ul.products li.product{width:calc((100% - 22px)/2)!important}}
@media(max-width:560px){.woocommerce ul.products li.product{width:100%!important}}
.woocommerce ul.products li.product:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.1)}
/* placeholder 1:1 bila belum ada foto */
.woocommerce ul.products li.product .tp-thumb-ph{display:flex;align-items:center;justify-content:center;text-align:center;aspect-ratio:1/1;background:linear-gradient(135deg,#E11B26,#8a0d13);color:#fff;font-family:var(--font-d);font-size:18px;padding:0 22px;position:relative}
.woocommerce ul.products li.product .tp-thumb-ph::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:10px 10px}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{position:relative;display:block}
.woocommerce ul.products li.product .tp-sale{position:absolute;top:12px;right:12px;background:var(--yellow);color:#7a5300;font-family:var(--font-b);font-weight:800;font-size:11px;padding:5px 11px;border-radius:20px;z-index:3;letter-spacing:.04em}
.woocommerce ul.products li.product .tp-card-body{padding:16px 18px 18px;flex:1;display:flex;flex-direction:column}
.woocommerce ul.products li.product .tp-card-btns{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.woocommerce ul.products li.product .tp-btn-detail{text-align:center;background:var(--red);color:#fff;border-radius:8px;font-weight:600;font-size:14px;padding:11px;transition:.2s}
.woocommerce ul.products li.product .tp-btn-detail:hover{background:var(--red-d)}
.woocommerce ul.products li.product .tp-btn-wa{display:flex;align-items:center;justify-content:center;gap:7px;background:#25D366;color:#fff;border-radius:8px;font-weight:600;font-size:14px;padding:11px;transition:.2s}
.woocommerce ul.products li.product .tp-btn-wa:hover{background:#1fb356}
.woocommerce ul.products li.product .tp-btn-wa svg{width:15px;height:15px;fill:#fff}
/* thumbnail 1:1 penuh */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a img{display:block}
.woocommerce ul.products li.product a img{margin:0!important;border-radius:0!important;width:100%!important;aspect-ratio:1/1;height:auto!important;object-fit:cover;background:#f4f5f7}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:14px 18px 4px;font-family:var(--font-b);font-weight:700;font-size:16px;line-height:1.35}
.woocommerce ul.products li.product .price{padding:2px 18px 8px;font-weight:700;color:var(--ink);font-size:15px}
.woocommerce ul.products li.product .price ins{color:var(--red);text-decoration:none}
.woocommerce ul.products li.product .price del{color:#b0b4bb;font-weight:500;font-size:13px}
.woocommerce ul.products li.product .star-rating{margin:0 18px 8px;font-size:13px}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{margin:auto 18px 8px;background:var(--red)!important;color:#fff!important;border-radius:8px!important;text-align:center;font-weight:600!important;padding:11px!important;display:block;font-size:14px}
.woocommerce ul.products li.product .button:last-child,
.woocommerce ul.products li.product .added_to_cart:last-child{margin-bottom:18px}
.woocommerce ul.products li.product .button:hover{background:var(--red-d)!important}
.woocommerce .star-rating span::before,.woocommerce .star-rating::before{color:var(--yellow)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--red)!important}
.woocommerce-message::before,.woocommerce-info::before{color:var(--red)!important}
/* sembunyikan result count & ordering default agar rapi */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{margin-bottom:18px}
.related.products{width:100%;margin-top:50px}
.related.products>h2{font-size:26px;margin-bottom:24px}

/* =========================================================================
 * SINGLE PRODUCT PROFESIONAL (template content-single-product.php)
 * ========================================================================= */
.tp-single{max-width:1200px;margin:10px auto 0;padding:0 24px;box-sizing:border-box}
@media(max-width:600px){.tp-single{padding:0 16px}}
.tp-single-grid{display:grid;grid-template-columns:0.9fr 1.1fr;gap:44px;align-items:start;margin:10px 0 8px}
@media(max-width:900px){.tp-single-grid{grid-template-columns:1fr;gap:26px}}

/* galeri — foto dikecilkan ~10% */
.tp-gallery-col{position:sticky;top:72px}
.tp-single .woocommerce-product-gallery{margin:0!important;width:90%!important;max-width:90%!important;float:none!important}
@media(max-width:900px){.tp-single .woocommerce-product-gallery{width:100%!important;max-width:420px!important}}
.tp-single .woocommerce-product-gallery__wrapper{margin:0}
.tp-single .woocommerce-product-gallery img{border-radius:18px;border:1px solid var(--line);aspect-ratio:1/1;object-fit:cover;width:100%;background:#f4f5f7}
.tp-single .woocommerce-product-gallery__trigger{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.12);top:16px;right:16px}
.tp-single .flex-control-thumbs{display:flex;gap:10px;margin-top:12px;padding:0;list-style:none}
.tp-single .flex-control-thumbs li{width:auto;margin:0}
.tp-single .flex-control-thumbs img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:2px solid var(--line)}
.tp-single .flex-control-thumbs img.flex-active{border-color:var(--red)}
.tp-gallery-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tp-gb{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:8px 13px;font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}
.tp-gb svg{width:15px;height:15px;fill:var(--red);flex:none}

/* panel info berkartu */
.tp-summary-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:0 10px 40px rgba(0,0,0,.04)}
@media(max-width:560px){.tp-summary-card{padding:22px}}
.tp-eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--red);margin-bottom:12px}
.tp-eyebrow a{color:inherit}
.tp-title{font-size:clamp(26px,3.4vw,36px);line-height:1.12;margin-bottom:14px;color:var(--ink)}
.tp-rate-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:22px;font-size:14px;color:var(--muted)}
.tp-stars{display:inline-flex;gap:2px}
.tp-stars svg{width:17px;height:17px;fill:var(--yellow)}
.tp-rate-num{font-weight:700;color:var(--ink)}
.tp-rate-sep{color:#cbd0d6}
.tp-rate-count{color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.tp-rate-count:hover{color:var(--red)}
.tp-sold{color:var(--muted)}

.tp-price-box{display:flex;align-items:center;gap:14px;background:var(--bg);border-radius:14px;padding:18px 22px;margin-bottom:22px;flex-wrap:wrap}
.tp-price{font-family:var(--font-d);font-size:30px;color:var(--red);line-height:1}
.tp-price .amount{font-family:var(--font-d)}
.tp-price del{font-family:var(--font-b);font-size:16px;color:#b0b4bb;font-weight:500;margin-left:8px}
.tp-price ins{text-decoration:none}
.tp-price-badge{background:var(--red);color:#fff;font-size:12px;font-weight:700;padding:5px 12px;border-radius:20px}

.tp-short{color:#4b5563;font-size:15px;line-height:1.7;margin-bottom:24px}
.tp-short p{margin-bottom:8px}
.tp-short p:last-child{margin-bottom:0}

/* form cart di dalam card */
.tp-single form.cart{margin:0 0 22px!important;padding:0;border:none}
.tp-single .single_add_to_cart_button{width:auto}
.tp-single .quantity input.qty{width:70px;height:50px;border:1.5px solid var(--line);border-radius:10px;text-align:center;font-weight:600;font-size:15px}
.tp-single .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

.tp-meta{display:flex;flex-wrap:wrap;gap:8px 20px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13.5px;color:var(--muted);margin-bottom:18px}
.tp-meta-item b{color:var(--ink);font-weight:600}
.tp-meta-item a{color:var(--red)}

.tp-help{display:flex;gap:10px;align-items:flex-start;background:#fff8f2;border:1px solid #ffe3cf;border-radius:12px;padding:14px 16px}
.tp-help svg{width:20px;height:20px;fill:var(--red);flex:none;margin-top:1px}
.tp-help span{font-size:13.5px;color:#7a4a1e;line-height:1.5}

/* WA button (dari hook) di dalam form */
.tp-single .wc-wa-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#25D366;color:#fff;padding:15px 24px;border-radius:12px;font-weight:700;font-size:15px;transition:.2s;margin-top:12px;width:100%}
.tp-single .wc-wa-btn:hover{background:#1fb356;color:#fff}
.tp-single .wc-wa-btn svg{width:20px;height:20px;fill:#fff}

/* tabs modern */
.tp-tabs-wrap{margin-top:52px;clear:both}
.tp-tabs-wrap .woocommerce-tabs{grid-column:auto;margin-top:0}
.tp-tabs-wrap ul.tabs{list-style:none;display:flex;gap:8px;border-bottom:2px solid var(--line);margin:0 0 24px;padding:0;flex-wrap:wrap}
.tp-tabs-wrap ul.tabs::before,.tp-tabs-wrap ul.tabs::after{display:none!important;content:none!important}
.tp-tabs-wrap ul.tabs li{display:block!important;margin:0 0 -2px!important;padding:0!important;background:none!important;border:none!important;border-radius:0!important}
.tp-tabs-wrap ul.tabs li::before,.tp-tabs-wrap ul.tabs li::after{display:none!important;content:none!important}
.tp-tabs-wrap ul.tabs li a{display:block!important;padding:14px 22px!important;font-weight:600;font-size:15px;color:var(--muted);border-bottom:3px solid transparent;text-decoration:none}
.tp-tabs-wrap ul.tabs li.active a{color:var(--red);border-bottom-color:var(--red)}
.tp-tabs-wrap .woocommerce-Tabs-panel,.tp-tabs-wrap .panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;margin:0}
.tp-tabs-wrap .related.products{margin-top:56px}
.tp-tabs-wrap .related.products>h2{font-size:26px;margin-bottom:24px}
