/* ==========================================================
   Product Card 18 — Wavy Underline
   ========================================================== */
.ahpc18-section {
    --ahpc18-brand: #185FA5;
    --ahpc18-brand-dark: #042C53;
    --ahpc18-sale: #A32D2D;
    --ahpc18-soft: #f4f3f0;
    --ahpc18-line: #E5E1DB;
    --ahpc18-text: #1c1917;
    --ahpc18-muted: #78716c;
    --ahpc18-card: #ffffff;
    --ahpc18-wave:#D4537E;--ahpc18-tag1:#E1F5EE;--ahpc18-tag2:#FBEAF0;--ahpc18-tag3:#FAEEDA;--ahpc18-tag4:#EEEDFE;--ahpc18-radius:18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 16px 70px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ahpc18-section * { box-sizing: border-box; }
.ahpc18-intro { margin: 10px 0 0; max-width: 520px; font-size: 15px; color: #6b635b; }
.ahpc18-all, .ahpc18-all:hover, .ahpc18-all:focus { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ahpc18-text); text-decoration: none; border-bottom: 2px solid var(--ahpc18-text); padding-bottom: 2px; }
.ahpc18-head:not(.ahpc18-head--split) .ahpc18-all { display: inline-block; margin-top: 14px; }
.ahpc18-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ahpc18-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ahpc18-img { display: block; position: relative; aspect-ratio: 1; overflow: hidden; }
.ahpc18-section .ahpc18-img img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; display: block; border-radius: 0; transition: transform .6s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); image-rendering: -webkit-optimize-contrast; }
.ahpc18-section .ahpc18-card:hover .ahpc18-img img { transform: scale(1.06) translateZ(0); }
.ahpc18-badge { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; background: var(--ahpc18-sale); padding: 4px 10px; border-radius: 999px; }
.ahpc18-name { margin: 0; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ahpc18-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ahpc18-name a { color: inherit; text-decoration: none; }
.ahpc18-price { font-size: 17px; font-weight: 700; color: var(--ahpc18-text); }
.ahpc18-old { font-size: 13px; color: var(--ahpc18-muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.ahpc18-price .woocommerce-Price-amount, .ahpc18-old .woocommerce-Price-amount { color: inherit; }
.ahpc18-section a:focus-visible { outline: 3px solid var(--ahpc18-text); outline-offset: 3px; }
.ahpc18-section .added_to_cart { display: none !important; }
.ahpc18-section a.loading { opacity: .6; pointer-events: none; }
@media (max-width: 1024px) { .ahpc18-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ahpc18-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
@media (max-width: 600px) {
    .ahpc18-heading { font-size: 26px; }
    .ahpc18-intro { font-size: 14px; }
    .ahpc18-head { margin-bottom: 26px; }
    .ahpc18-name { font-size: 13px; }
    .ahpc18-price { font-size: 15px; }
    .ahpc18-old { font-size: 11px; margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .ahpc18-section * { transition: none !important; animation: none !important; } }

/* ---------- design ---------- */
.ahpc18-head{text-align:center;margin-bottom:36px}
.ahpc18-heading{margin:0;font-size:34px;font-weight:700;color:var(--ahpc18-text)}
.ahpc18-wave{display:block;width:120px;height:14px;margin:8px var(--ahpc18-intro-r,auto) 0 var(--ahpc18-intro-l,auto);color:var(--ahpc18-wave)}
.ahpc18-wave path{stroke-dasharray:200;stroke-dashoffset:0}
.ahpc18-head:hover .ahpc18-wave path{stroke-dashoffset:200;animation:ahpc18-draw .9s ease forwards}
@keyframes ahpc18-draw{to{stroke-dashoffset:0}}
.ahpc18-intro{margin-top:10px}
.ahpc18-card{background:var(--ahpc18-card);border:1px solid var(--ahpc18-line);border-radius:var(--ahpc18-radius);overflow:hidden;transition:transform .3s,box-shadow .3s}
.ahpc18-card:nth-child(4n+1){--ahpc18-tagbg:var(--ahpc18-tag1)}.ahpc18-card:nth-child(4n+2){--ahpc18-tagbg:var(--ahpc18-tag2)}.ahpc18-card:nth-child(4n+3){--ahpc18-tagbg:var(--ahpc18-tag3)}.ahpc18-card:nth-child(4n){--ahpc18-tagbg:var(--ahpc18-tag4)}
.ahpc18-card:hover{transform:translateY(-4px);box-shadow:0 16px 28px -18px rgba(28,25,23,.3)}
.ahpc18-body{padding:14px;display:flex;flex-direction:column;flex:1}
.ahpc18-cat{align-self:flex-start;font-size:11px;font-weight:600;color:var(--ahpc18-text);background:var(--ahpc18-tagbg);padding:4px 10px;border-radius:999px;margin-bottom:8px}
.ahpc18-row{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.ahpc18-add{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--ahpc18-brand);text-decoration:none;padding:6px 12px;border-radius:999px;transition:background .25s}
.ahpc18-add svg{width:14px;height:14px}
.ahpc18-add:hover{background:color-mix(in srgb,var(--ahpc18-brand) 12%,transparent)}
@media (max-width:600px){.ahpc18-wave{width:90px}.ahpc18-section{--ahpc18-radius:14px}.ahpc18-body{padding:10px}.ahpc18-cat{font-size:10px;padding:3px 8px}.ahpc18-add{font-size:12px;padding:4px 8px}}

/* --- Header alignment helper (set by the Header Alignment control) --- */
.ahpc18-intro { margin-left: var(--ahpc18-intro-l, auto); margin-right: var(--ahpc18-intro-r, auto); }

/* --- Alignment: match plugin containers (Product Card 1–7, Category Grid 1–9): full width, 65px sides, 1px on mobile --- */
.ahpc18-section { max-width: 100%; padding-left: 65px; padding-right: 65px; }
@media (max-width: 768px) {
    .ahpc18-section { padding: 1px; }
}
