/* PromoCodes.com.au — standalone stylesheet (does not use the comps/freestuff Tailwind build).
   Brand colour lives in --pc-brand; swap it to the logo colour once the logo is final. */

:root {
    /* From the logo: charcoal wordmark + purple ".com.au" */
    --pc-brand: #7e3fb8;
    --pc-brand-ink: #5f2d8c;
    --pc-brand-soft: #f3ecfa;
    --pc-accent: #7e3fb8;
    --pc-accent-ink: #5f2d8c;
    --pc-ink: #2a3340;
    --pc-muted: #5b6472;
    --pc-line: #e3e6ea;
    --pc-bg: #f6f7f8;
    --pc-card: #ffffff;
    --pc-ok: #15803d;
    --pc-radius: 14px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--pc-ink);
    background: var(--pc-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--pc-brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
img { max-width: 100%; }

.pc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pc-muted { color: var(--pc-muted); font-size: 0.875rem; }
.pc-link { font-weight: 600; text-decoration: none; }

/* Header */
.pc-header { background: var(--pc-card); border-bottom: 1px solid var(--pc-line); position: sticky; top: 0; z-index: 10; }
.pc-header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.pc-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--pc-ink); text-decoration: none; letter-spacing: -0.02em; }
.pc-logo-tld { color: var(--pc-muted); font-weight: 600; }
.pc-logo img { display: block; height: 40px; width: auto; }
@media (max-width: 640px) { .pc-logo img { height: 34px; } }
.pc-hero h1, .pc-merchant-head h1, .pc-page-title { font-family: Poppins, Inter, sans-serif; }
.pc-search { flex: 1; max-width: 420px; margin-left: auto; }
.pc-search input, .pc-hero-search input {
    width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-bg);
}
.pc-search input:focus, .pc-hero-search input:focus { outline: 2px solid var(--pc-brand); outline-offset: 1px; background: #fff; }
.pc-nav { display: flex; gap: 16px; }
.pc-nav a { font-weight: 600; text-decoration: none; color: var(--pc-ink); white-space: nowrap; }
.pc-nav a:hover { color: var(--pc-brand); }
/* Mobile: logo + nav on row 1, full-width search on row 2 */
@media (max-width: 640px) {
    .pc-header-inner { flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
    .pc-nav { margin-left: auto; gap: 12px; font-size: 0.9rem; }
    .pc-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
}

/* Buttons */
.pc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; color: #fff; background: var(--pc-accent);
    border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.pc-btn:hover { background: var(--pc-accent-ink); }
.pc-btn-ghost { background: #fff; color: var(--pc-brand); border: 2px solid var(--pc-brand); padding: 9px 16px; }
.pc-btn-ghost:hover { background: var(--pc-brand-soft); }
.pc-btn-reveal { position: relative; overflow: hidden; padding-right: 54px; min-width: 150px; }
.pc-btn-peek {
    position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--pc-ink); border: 2px dashed var(--pc-accent); border-left: 0; border-radius: 0 10px 10px 0;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem;
}

/* Hero */
.pc-hero { background: var(--pc-ink); color: #fff; padding: 48px 0 56px; }
.pc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.pc-hero p { margin: 10px 0 24px; opacity: 0.9; max-width: 560px; }
.pc-hero-search { display: flex; gap: 8px; max-width: 560px; }
.pc-hero-search input { border: 0; background: #fff; padding: 14px 18px; }

.pc-section { margin: 40px 0; }
.pc-section > h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* Store grid */
.pc-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pc-store {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 16px 10px;
    text-decoration: none; color: var(--pc-ink); transition: border-color .15s, transform .15s;
}
.pc-store:hover { border-color: var(--pc-brand); transform: translateY(-1px); }
.pc-store-logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--pc-muted); }
.pc-store-logo img { width: 48px; height: 48px; object-fit: contain; }
.pc-store-name {
    font-weight: 700; font-size: 0.9rem; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) { .pc-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pc-store { padding: 12px 6px; } }
@media (max-width: 380px) { .pc-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Category chips — wrap on desktop, single swipeable row on mobile */
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pc-chip {
    flex: none; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--pc-ink);
    background: #fff; border: 1px solid var(--pc-line); border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.pc-chip:hover { border-color: var(--pc-brand); color: var(--pc-brand); }
.pc-chip.is-active { background: var(--pc-brand); border-color: var(--pc-brand); color: #fff; }
@media (max-width: 640px) {
    .pc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 4px; scrollbar-width: none; }
    .pc-chips::-webkit-scrollbar { display: none; }
}
.pc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 48px; }
.pc-cat-tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 16px; text-decoration: none; color: var(--pc-ink); }
.pc-cat-tile:hover { border-color: var(--pc-brand); }
.pc-cat-name { font-weight: 700; }

/* Related stores (merchant sidebar) */
.pc-related { list-style: none; padding: 0; margin: 0 0 10px; }
.pc-related a { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--pc-ink); min-width: 0; }
.pc-related a:hover .pc-related-name { color: var(--pc-brand); }
.pc-related-logo { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--pc-muted); }
.pc-related-logo img { width: 28px; height: 28px; object-fit: contain; }
.pc-related-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Offer card — coupon stub */
.pc-offers { display: flex; flex-direction: column; gap: 12px; }
.pc-offer {
    display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center;
    background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); overflow: hidden;
}
.pc-stub {
    align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--pc-brand-soft); color: var(--pc-brand-ink); border-right: 2px dashed var(--pc-line); padding: 14px 6px; position: relative;
}
.pc-stub::before, .pc-stub::after {
    content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--pc-bg); border: 1px solid var(--pc-line);
}
.pc-stub::before { top: -9px; }
.pc-stub::after { bottom: -9px; }
.pc-stub-logo {
    width: 44px; height: 44px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; overflow: hidden; font-weight: 800; font-size: 1.1rem; color: var(--pc-muted); box-shadow: 0 0 0 1px var(--pc-line);
}
.pc-stub-logo img { width: 36px; height: 36px; object-fit: contain; }
.pc-stub-big { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pc-offer .pc-stub-word { font-size: 1rem; letter-spacing: 0.06em; }
.pc-stub-small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; margin-top: 3px; }
.pc-stub-type { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; opacity: 0.7; }
.pc-offer-body { padding: 14px 16px; min-width: 0; }
.pc-offer-title { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.pc-offer-kicker { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pc-muted); min-width: 0; }
.pc-offer-kicker a { color: var(--pc-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-offer-kicker a:hover { color: var(--pc-brand); }
.pc-tag { flex: none; font-size: 0.68rem; padding: 2px 7px; border-radius: 999px; background: var(--pc-bg); color: var(--pc-muted); }
.pc-tag-code { background: var(--pc-brand-soft); color: var(--pc-brand-ink); }
.pc-offer-desc { margin: 6px 0 0; color: var(--pc-muted); font-size: 0.9rem; }
.pc-offer-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--pc-muted); }
.pc-ok { color: var(--pc-ok); font-weight: 600; }
.pc-offer-cta { padding: 14px 16px 14px 0; }

.pc-offer-top { border: 2px solid var(--pc-brand); }
.pc-offer-top .pc-stub { background: var(--pc-brand); color: #fff; }
.pc-offer-top .pc-stub-big { font-size: 1.9rem; }
.pc-offer-top .pc-offer-title { font-size: 1.15rem; }

.pc-offer-expired { opacity: 0.6; }
.pc-offer-expired .pc-stub { background: var(--pc-bg); color: var(--pc-muted); }
.pc-code-dead { font-family: ui-monospace, Menlo, Consolas, monospace; text-decoration: line-through; color: var(--pc-muted); }

.pc-offer-wrap { display: flex; flex-direction: column; gap: 4px; }
.pc-offer-brand { font-size: 0.8rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 640px) {
    .pc-offer { grid-template-columns: 84px minmax(0, 1fr); }
    .pc-stub-big { font-size: 1.2rem; }
    .pc-hero { padding: 32px 0 36px; }
    .pc-hero-search { flex-direction: column; }
    .pc-offer-cta { grid-column: 1 / -1; padding: 0 16px 14px; border-top: 1px dashed var(--pc-line); padding-top: 12px; }
    .pc-offer-cta .pc-btn { width: 100%; }
}

/* Merchant page */
.pc-crumbs { font-size: 0.85rem; color: var(--pc-muted); margin: 20px 0 12px; }
.pc-crumbs a { color: var(--pc-muted); }
.pc-merchant-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pc-merchant-logo {
    width: 72px; height: 72px; flex: none; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: var(--pc-muted); overflow: hidden;
}
.pc-merchant-logo img { width: 56px; height: 56px; object-fit: contain; }
.pc-merchant-head > div { min-width: 0; }
.pc-merchant-head h1 { overflow-wrap: anywhere; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; }
.pc-merchant-stats { margin: 6px 0 0; color: var(--pc-muted); font-size: 0.9rem; }

.pc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-bottom: 48px; }
@media (max-width: 900px) { .pc-layout { grid-template-columns: 1fr; } }
.pc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.pc-card { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 18px; }
.pc-card h2 { font-size: 1rem; margin-bottom: 8px; }
.pc-card p { margin: 0 0 8px; font-size: 0.9rem; }
.pc-card-alert { background: var(--pc-brand-soft); border-color: transparent; }

.pc-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pc-tab { font: inherit; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--pc-line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--pc-ink); }
.pc-tab.is-active { background: var(--pc-ink); color: #fff; border-color: var(--pc-ink); }

.pc-expired { margin-top: 24px; }
.pc-expired summary { cursor: pointer; font-weight: 600; color: var(--pc-muted); margin-bottom: 12px; }

.pc-empty { background: var(--pc-card); border: 1px dashed var(--pc-line); border-radius: var(--pc-radius); padding: 24px; text-align: center; margin: 24px 0; }
.pc-page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; }

/* Stores A–Z */
.pc-az { margin-bottom: 48px; }
.pc-az-letter { font-size: 1.1rem; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--pc-line); }
.pc-az-list { list-style: none; padding: 0; margin: 0; columns: 3 200px; column-gap: 24px; }
.pc-az-list li { padding: 4px 0; break-inside: avoid; }
.pc-az-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }

/* Footer */
.pc-footer { background: var(--pc-card); border-top: 1px solid var(--pc-line); padding: 28px 0; font-size: 0.9rem; }
.pc-footer p { margin: 0 0 8px; max-width: 720px; }

/* Code reveal modal */
.pc-modal { position: fixed; inset: 0; background: rgba(20, 24, 31, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.pc-modal[hidden] { display: none; }
.pc-modal-box { background: #fff; border-radius: 18px; padding: 28px 24px 22px; max-width: 440px; width: 100%; position: relative; text-align: center; }
.pc-modal-close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--pc-muted); }
.pc-modal-brand { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pc-brand); }
.pc-modal-title { font-size: 1.15rem; margin-bottom: 18px; }
.pc-code-box {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 2px dashed var(--pc-brand); border-radius: 12px; padding: 8px 8px 8px 16px; margin-bottom: 12px;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em;
}
.pc-code-box span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.pc-vote { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pc-line); font-weight: 600; }
.pc-vote-btn { font-size: 1.3rem; border: 1px solid var(--pc-line); background: #fff; border-radius: 10px; padding: 4px 12px; cursor: pointer; }
.pc-vote-btn:hover { border-color: var(--pc-brand); }

/* Footer links */
.pc-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.pc-footer-links a { font-weight: 600; text-decoration: none; color: var(--pc-ink); }
.pc-footer-links a:hover { color: var(--pc-brand); }

/* Long-form pages (about, policies) */
.pc-prose { max-width: 720px; margin-bottom: 56px; }
.pc-prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.pc-prose p, .pc-prose li { color: #3b4452; }
.pc-prose ul { padding-left: 20px; }
.pc-prose li { margin-bottom: 6px; }
.pc-lead { font-size: 1.1rem; color: var(--pc-ink) !important; }

/* Merchant FAQ */
.pc-faq { margin-top: 32px; }
.pc-faq h2 { font-size: 1.2rem; margin-bottom: 12px; }
.pc-faq details { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 14px 16px; margin-bottom: 8px; }
.pc-faq summary { cursor: pointer; font-weight: 700; }
.pc-faq details p { margin: 10px 0 0; color: #3b4452; }

/* Footer bottom row */
.pc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; border-top: 1px solid var(--pc-line); padding-top: 14px; margin-top: 6px; }
.pc-footer-bottom p { margin: 0; }
.pc-made { display: inline-flex; align-items: center; gap: 5px; }
.pc-heart { color: #e11d48; }

/* Blog */
.pc-section-intro { color: var(--pc-muted); max-width: 680px; margin: -8px 0 24px; }
.pc-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.pc-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); overflow: hidden; text-decoration: none; color: var(--pc-ink); }
.pc-post-card:hover { border-color: var(--pc-brand); }
.pc-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pc-post-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.pc-post-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.pc-article { max-width: none; }
.pc-article img { border-radius: 12px; height: auto; }
.pc-article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.pc-article th, .pc-article td { border: 1px solid var(--pc-line); padding: 8px 10px; text-align: left; }
.pc-post-links { list-style: none; padding: 0; margin: 0; }
.pc-post-links li { padding: 6px 0; border-bottom: 1px solid var(--pc-line); }
.pc-post-links li:last-child { border-bottom: 0; }
.pc-post-links a { text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .pc-nav { gap: 10px; font-size: 0.85rem; } }
/* Narrow phones: smaller logo, drop "Stores" (search covers it) so logo + nav fit one row */
@media (max-width: 420px) {
    .pc-logo img { height: 30px; }
    .pc-nav-wide { display: none; }
}

/* Home "Popular stores": compact logo tiles — 8 across on desktop, one swipeable row on mobile */
.pc-store-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.pc-store-strip .pc-store { padding: 10px 6px; gap: 4px; }
.pc-store-strip .pc-store-logo, .pc-store-strip .pc-store-logo img { width: 36px; height: 36px; }
.pc-store-strip .pc-store-name { font-size: 0.8rem; -webkit-line-clamp: 1; }
.pc-store-strip .pc-muted { font-size: 0.75rem; }
@media (max-width: 900px) { .pc-store-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pc-store-strip .pc-store:nth-child(n+9) { display: none; } }
@media (max-width: 640px) {
    .pc-store-strip { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
    .pc-store-strip::-webkit-scrollbar { display: none; }
    .pc-store-strip .pc-store { flex: 0 0 96px; }
    .pc-store-strip .pc-store:nth-child(n+9) { display: flex; }
}

/* Article pages load the shared Tailwind build (preflight resets headings/lists) — restore pc defaults */
.pc-article .pc-page-title { font-weight: 800; }
.pc-card h2, .pc-section > h2, .pc-faq h2 { font-weight: 700; }
.pc-article > p.pc-muted { margin-bottom: 24px; }
.pc-article h2 { font-size: 1.6rem; font-weight: 800; margin: 2rem 0 1rem; }
.pc-article h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.pc-article p { margin: 1rem 0; line-height: 1.75; }
.pc-article a:not([class]) { color: var(--pc-brand); text-decoration: underline; }

/* Competitions.com.au widgets */
.pc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-section-head h2 { font-size: 1.3rem; margin: 0; }
.pc-comps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .pc-comps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-comp { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); overflow: hidden; text-decoration: none; color: var(--pc-ink); }
.pc-comp:hover { border-color: var(--pc-brand); }
.pc-comp-img { display: block; aspect-ratio: 5 / 3; background: var(--pc-brand-soft); }
.pc-comp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-comp-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pc-comp-title { font-weight: 700; font-size: 0.9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-comps-list { list-style: none; padding: 0; margin: 0 0 8px; }
.pc-comps-list li { border-bottom: 1px solid var(--pc-line); }
.pc-comps-list li:last-child { border-bottom: 0; }
.pc-comps-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; text-decoration: none; color: var(--pc-ink); }
.pc-comps-list a:hover .pc-comps-title { color: var(--pc-brand); }
.pc-comps-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }

/* Half-price specials widget — retailer-branded (Coles red / Woolworths green) */
.pc-hp { --hp: #2a3340; --hp-soft: #f3f4f6; background: #fff; border: 1px solid var(--pc-line); border-top: 4px solid var(--hp); border-radius: var(--pc-radius); padding: 18px; margin: 0 0 24px; }
.pc-hp-coles { --hp: #e01a22; --hp-soft: #fdecec; }
.pc-hp-woolworths { --hp: #178841; --hp-soft: #e8f5ec; }
.pc-hp-all { border-top: 0; background: linear-gradient(90deg, #e01a22 0 50%, #178841 50% 100%) top / 100% 4px no-repeat, #fff; }
.pc-section + .pc-hp, .pc-hp + .pc-section { margin-top: 24px; }
.pc-hp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-hp-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pc-hp-logos { display: flex; flex: none; }
.pc-hp-logos img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--pc-line); padding: 4px; }
.pc-hp-logos img + img { margin-left: -10px; }
.pc-hp-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.pc-hp-kicker { margin: 0 0 2px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hp); }
.pc-hp-all .pc-hp-kicker { color: var(--pc-brand); }
.pc-hp-split { margin: 2px 0 0; font-size: 0.85rem; color: var(--pc-muted); }
.pc-hp-split a { color: var(--pc-ink); font-weight: 600; text-decoration: none; }
.pc-hp-split a:hover { text-decoration: underline; }
.pc-hp-cta { background: var(--hp); }
.pc-hp-cta:hover { background: var(--hp); filter: brightness(0.92); }
.pc-hp-all .pc-hp-cta { background: var(--pc-brand); }
.pc-hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pc-hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-hp-cta { width: 100%; } }
.pc-hp-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--pc-line); border-radius: 12px; text-decoration: none; color: var(--pc-ink); background: #fff; transition: border-color .15s, transform .15s; }
.pc-hp-item:hover { border-color: var(--hp); transform: translateY(-1px); }
.pc-hp-all .pc-hp-item:hover { border-color: var(--pc-brand); }
.pc-hp-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: #fde047; color: #1f2937; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; }
.pc-hp-ret { position: absolute; top: 8px; right: 8px; z-index: 1; width: 22px; height: 22px; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--pc-line); }
.pc-hp-img { display: flex; justify-content: center; align-items: center; height: 110px; margin: 10px 0 4px; }
.pc-hp-img img { width: 110px; height: 110px; object-fit: contain; }
.pc-hp-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-hp-price strong { color: #c42b2b; font-size: 1.1rem; font-weight: 800; }
.pc-hp-price s { color: var(--pc-muted); font-size: 0.8rem; margin-left: 4px; }
.pc-hp-save { align-self: flex-start; font-size: 0.72rem; font-weight: 700; color: var(--pc-ok); background: #e8f5ec; padding: 2px 7px; border-radius: 999px; }

/* Add-a-code form */
.pc-btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.pc-btn-block { display: flex; width: 100%; margin: 6px 0; }
.pc-small { font-size: 0.82rem; margin-top: 8px; }
.pc-tabs a.pc-tab { text-decoration: none; }
.pc-form { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 20px; margin-bottom: 48px; }
.pc-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.pc-form input, .pc-form textarea {
    font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-bg); width: 100%;
}
.pc-form input:focus, .pc-form textarea:focus { outline: 2px solid var(--pc-brand); outline-offset: 1px; background: #fff; }
.pc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pc-form-row { grid-template-columns: 1fr; } .pc-form { padding: 16px; } }
.pc-form .pc-btn { align-self: flex-start; }
.pc-req { color: #c74444; }
.pc-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pc-form-errors { background: #fdf0f0; border: 1px solid #f3c9c9; color: #8f2a2a; border-radius: 12px; padding: 10px 16px; margin-bottom: 14px; }
.pc-form-errors ul { margin: 0; padding-left: 18px; }
.pc-submit-done { margin-bottom: 48px; }
.pc-checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.pc-checklist li { padding: 4px 0 4px 22px; position: relative; font-size: 0.9rem; }
.pc-checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--pc-ok); font-weight: 700; }
.pc-checklist-no li::before { content: "\2715"; color: #c74444; }

/* Half-price page (pc_halfprice.cfm): promocodes look over the shared freestuff markup */
.pc-hpx { padding-top: 20px; padding-bottom: 40px; }
.pc-hpx-hero { display: flex; align-items: center; gap: 18px; background: var(--pc-ink); color: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.pc-hpx-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, #e01a22 0 50%, #178841 50% 100%); }
.pc-hpx-logos { display: flex; flex: none; }
.pc-hpx-logos img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; box-shadow: 0 0 0 2px var(--pc-ink); }
.pc-hpx-logos { gap: 8px; }
.pc-hpx-hero-text { flex: 1; min-width: 0; }
.pc-hpx-kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: #fde047; }
.pc-hpx-hero h1 { font-family: Poppins, Inter, sans-serif; font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 800; line-height: 1.15; margin: 0; color: #fff; }
.pc-hpx-stats { margin: 6px 0 0; font-size: 0.85rem; opacity: 0.8; }
.pc-hpx-share { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.pc-hpx-share:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 640px) {
    .pc-hpx-hero { flex-wrap: wrap; padding: 18px; gap: 12px; }
    .pc-hpx-logos img { width: 42px; height: 42px; }
    .pc-hpx-share { position: absolute; top: 14px; right: 14px; }
}
.pc-hpx-ret-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; }
/* purple instead of freestuff green for the active filter chips and search focus */
.pc-hpx .hp-cat-tab.bg-green-600, .pc-hpx .hp-brand-pill.bg-green-600 { background: var(--pc-brand) !important; border-color: var(--pc-brand) !important; }
.pc-hpx .hp-cat-tab:not(.bg-green-600):not(.bg-red-600):hover { border-color: var(--pc-brand) !important; }
.pc-hpx #hp-search:focus, .pc-hpx #hp-sort:focus { border-color: var(--pc-brand) !important; box-shadow: 0 0 0 3px var(--pc-brand-soft) !important; }
.pc-hpx .hp-retailer-btn { font-size: 0.8rem; }

/* Homepage SEO copy */
.pc-home-copy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; border-top: 1px solid var(--pc-line); padding-top: 32px; margin-bottom: 56px; }
@media (max-width: 900px) { .pc-home-copy { grid-template-columns: 1fr; } }
.pc-home-copy .pc-prose { max-width: none; margin-bottom: 0; }
.pc-home-copy .pc-prose h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; }
.pc-home-copy .pc-prose h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 8px; }
.pc-home-copy .pc-prose ol { padding-left: 20px; }
.pc-home-copy .pc-faq { margin-top: 0; }

/* Pagination */
.pc-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 8px; }
.pc-page-num, .pc-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--pc-line); border-radius: 10px; background: #fff; color: var(--pc-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.pc-page-num:hover, .pc-page-btn:hover { border-color: var(--pc-brand); color: var(--pc-brand); }
.pc-page-num.is-current { background: var(--pc-brand); border-color: var(--pc-brand); color: #fff; }
.pc-page-gap { color: var(--pc-muted); padding: 0 2px; }

/* Amazon 50%-off page (pc_amazon.cfm): reuses the half-price hero, Amazon mark + purple accents */
.pc-azx-hero::after { background: linear-gradient(90deg, #ff9900, #fde047); }
.pc-azx-logo { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: #232f3e; font-size: 30px; }
.pc-azx-disclosure { margin: 6px 0 0; font-size: 0.72rem; opacity: 0.7; font-style: italic; }
.pc-azx .az-cat-tab.bg-orange-600 { background: var(--pc-brand) !important; border-color: var(--pc-brand) !important; }
.pc-azx .az-cat-tab:not(.bg-orange-600):not(.bg-red-600):hover { border-color: var(--pc-brand) !important; }
.pc-azx #az-search:focus, .pc-azx #az-sort:focus { border-color: var(--pc-brand) !important; box-shadow: 0 0 0 3px var(--pc-brand-soft) !important; }
@media (max-width: 640px) { .pc-azx-logo { width: 42px; height: 42px; font-size: 24px; } }

/* "Show code" → copied animation: button turns green, label swaps, the peek tab expands to show the full code */
.pc-btn-reveal { transition: background-color .25s ease, transform .15s ease; }
.pc-btn-reveal.is-copied { background: var(--pc-ok); transform: scale(1.03); }
.pc-btn-reveal.is-copied .pc-btn-peek { border-color: var(--pc-ok); color: var(--pc-ok); }
.pc-btn-reveal.is-copied .pc-btn-label { animation: pc-pop .35s ease; }
@keyframes pc-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
#pcCopy.is-copied { background: var(--pc-ok); }
#pcGoLink { margin-top: 10px; }

/* Codes this browser already revealed: show the code itself in the button */
.pc-btn-reveal.is-revealed { background: #fff; color: var(--pc-ink); border: 2px dashed var(--pc-brand); padding-right: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.pc-btn-reveal.is-revealed:hover { background: var(--pc-brand-soft); }
.pc-btn-reveal.is-revealed .pc-btn-peek { display: none; }

/* Content map: keyword anchors, store guide card, guide lists */
.pc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pc-cat-intro a { font-weight: 600; }
.pc-guide-card { display: flex; flex-direction: column; gap: 6px; margin: 24px 0 0; padding: 18px 20px; background: var(--pc-brand-soft); border: 1px solid transparent; border-radius: var(--pc-radius); text-decoration: none; color: var(--pc-ink); }
.pc-guide-card:hover { border-color: var(--pc-brand); }
.pc-guide-kicker { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pc-brand); }
.pc-guide-title { font-weight: 800; font-size: 1.1rem; }
.pc-guide-list { list-style: none; padding: 0; margin: 0 0 24px; }
.pc-guide-list li { padding: 8px 0; border-bottom: 1px solid var(--pc-line); }
.pc-guide-list a { font-weight: 600; text-decoration: none; }
.pc-footer-cats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: 0.85rem; }
.pc-footer-cats a { color: var(--pc-muted); text-decoration: none; }
.pc-footer-cats a:hover { color: var(--pc-brand); }
.pc-guides-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* /category/ index tiles: icon, counts, store logos, rotating tints */
.pc-cat-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pc-cat-tile { --tone: var(--pc-brand); --tone-soft: var(--pc-brand-soft); gap: 6px; padding: 18px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pc-cat-tile:hover { border-color: var(--tone); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42, 51, 64, 0.08); }
.pc-cat-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.pc-cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tone-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 4px; }
.pc-cat-name { font-size: 1.02rem; }
.pc-cat-logos { display: flex; gap: 6px; margin-top: 8px; }
.pc-cat-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--pc-line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: var(--pc-muted); overflow: hidden; }
.pc-cat-logo img { width: 26px; height: 26px; object-fit: contain; }
.pc-tone-purple { --tone: #7e3fb8; --tone-soft: #f3ecfa; }
.pc-tone-pink { --tone: #c026d3; --tone-soft: #fbeefe; }
.pc-tone-orange { --tone: #ea580c; --tone-soft: #fff1e8; }
.pc-tone-green { --tone: #178841; --tone-soft: #e8f5ec; }
.pc-tone-blue { --tone: #0891b2; --tone-soft: #e6f6fa; }
.pc-tone-yellow { --tone: #d9a521; --tone-soft: #fdf6e3; }
.pc-tone-red { --tone: #c74444; --tone-soft: #fcecec; }
.pc-footer-label { color: var(--pc-ink); font-weight: 600; }

.pc-ad { margin: 32px 0 8px; }
.pc-cat-icon { font-weight: 800; color: var(--tone); font-family: Poppins, Inter, sans-serif; }
.pc-vote-btn { font: inherit; font-size: 0.9rem; font-weight: 700; padding: 6px 16px; }
