/*
Theme Name: Canada Peptide Market
Theme URI: https://precisionpeptides.ca
Description: Dark premium research peptide store
Author: Canada Peptide Market
Version: 3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: precisionpeptides
*/

/* ============================================================
   CONTACT PAGE — ported to match Lyfe Peptides layout (Precision green)
   ============================================================ */
.page-intro { max-width: 720px; margin: 0 auto 40px; }
.page-intro h2 { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; color: #121212; margin-bottom: 16px; }
.page-intro h3 { font-size: 1.25rem; font-weight: 700; color: #121212; margin: 28px 0 12px; }
.page-intro p { color: #444; line-height: 1.7; margin-bottom: 12px; }
.contact-form-wrap { max-width: 640px; margin: 0 auto 48px; }
.lyfe-contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lyfe-contact-form .form-group { margin-bottom: 16px; }
.lyfe-contact-form label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.lyfe-contact-form input, .lyfe-contact-form select, .lyfe-contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d8ddda; border-radius: 8px;
    font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
    box-sizing: border-box; background: #fff; color: #121212;
}
.lyfe-contact-form input:focus, .lyfe-contact-form select:focus, .lyfe-contact-form textarea:focus { border-color: #10b981; }
.contact-submit { background: #10b981; color: #fff; border: none; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.contact-submit:hover { background: #059669; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 720px; margin: 0 auto 40px; }
.contact-card { background: #f5f7f6; border: 1px solid #e6ebe8; border-radius: 10px; padding: 24px; text-align: center; }
.contact-card h3 { font-size: 14px; font-weight: 700; color: #121212; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card p { color: #555; font-size: 14px; margin: 0; }
@media (max-width: 600px) {
    .lyfe-contact-form .form-row { grid-template-columns: 1fr; }
    .contact-details { grid-template-columns: 1fr; }
}

.page-intro ul { padding-left: 20px; margin-bottom: 16px; }
.page-intro li { color: #444; line-height: 1.7; margin-bottom: 8px; }
.page-intro strong { color: #121212; }

/* ============================================================
   BLOG ARCHIVE + SINGLE POST — Precision
   ============================================================ */
.blog-intro { color: var(--text-muted); margin: -8px 0 36px; max-width: 640px; font-size: 15px; }
.pp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pp-blog-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.pp-blog-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-4px); }
.pp-blog-thumb { display: block; aspect-ratio: 16 / 10; background: var(--dark-surface); overflow: hidden; }
.pp-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pp-blog-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.pp-blog-cat { color: var(--accent); font-weight: 700; }
.pp-blog-meta time { color: var(--text-muted); }
.pp-blog-card h2 { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0; }
.pp-blog-card h2 a { color: var(--white); }
.pp-blog-card h2 a:hover { color: var(--accent); }
.pp-blog-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin: 0; }
.pp-blog-readmore { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: auto; }
.pp-blog-pagination { margin-top: 40px; }
.pp-blog-pagination .page-numbers { color: var(--text-light); padding: 8px 14px; border: 1px solid var(--dark-border); border-radius: var(--radius-sm); margin: 0 4px; text-decoration: none; }
.pp-blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 900px) { .pp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pp-blog-grid { grid-template-columns: 1fr; } }

/* Single post readability */
.single .entry-content { max-width: 760px; color: var(--text); font-size: 16px; line-height: 1.75; }
.single .entry-content h2 { font-size: 1.6rem; font-weight: 800; color: #121212; margin: 32px 0 12px; }
.single .entry-content h3 { font-size: 1.25rem; font-weight: 700; color: #121212; margin: 26px 0 10px; }
.single .entry-content p { margin-bottom: 16px; }
.single .entry-content ul, .single .entry-content ol { padding-left: 22px; margin-bottom: 16px; }
.single .entry-content li { margin-bottom: 8px; line-height: 1.7; }
.single .entry-content a { color: var(--accent-hover); text-decoration: underline; }
.single .entry-content img, .single .entry-content iframe { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }
.single .entry-content strong { color: #121212; }

/* HERO BRAND LOGOS (brands sold on this site) */
.hero-brands{margin-top:38px;}
.hero-brands-label{display:block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--text-muted);margin-bottom:14px;}
.hero-brands-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.hero-brand-chip{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;padding:12px 22px;box-shadow:0 4px 14px rgba(0,0,0,.18);}
.hero-brand-chip img{height:34px;width:auto;display:block;}

/* Center the default WC product grid within the shop wrapper (match other shop elements) */
.wc-wrapper ul.products{max-width:var(--max-width);margin-left:auto !important;margin-right:auto !important;padding-left:32px !important;padding-right:32px !important;box-sizing:border-box;}

.pw-img{width:100%;height:360px;object-fit:cover;border-radius:var(--radius-lg);display:block;}
@media(max-width:760px){.pw-img{height:240px;}}

/* hide product categories in meta (keep SKU + brand) */
.product_meta .posted_in:has(a[href*="product-category"]){display:none;}

/* lab-tested badge */
.pen-upsell .lab-tested{display:inline-flex;align-items:center;gap:7px;margin-top:8px;font-family:'Inter',sans-serif;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#d6efdf}
.pen-upsell .lab-tested svg{flex:0 0 auto}

/* ============================================================
   PEN NOTIFY ME — buttons + modal (ported to match other sites)
   ============================================================ */
.products li.product .btn-notify-me {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 10px;
    padding: 11px 20px;
    background: #c8102e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s;
}
.products li.product .btn-notify-me:hover { background: #a50e27; }
.products li.product .btn-learn-more-shop {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 11px 20px;
    background: transparent;
    color: #c8102e;
    border: 2px solid #c8102e;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}
.products li.product .btn-learn-more-shop:hover { background: #c8102e; color: #fff; }

.pen-sold-out-wrap { margin: 20px 0; }
.btn-notify-me-single {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #c8102e;
    color: #fff;
    border: 2px solid #c8102e;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}
.btn-notify-me-single:hover { background: #a50e27; border-color: #a50e27; color: #fff; }
.btn-learn-more-single {
    display: block;
    width: 100%;
    padding: 11px 24px;
    background: transparent;
    color: #c8102e;
    border: 2px solid #c8102e;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-top: 8px;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}
.btn-learn-more-single:hover { background: #c8102e; color: #fff; }

/* pen-upsell notify button (on vial pages, sits under View Product) */
.pen-upsell .btn-upsell-notify {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 20px;
    background: #c8102e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s;
}
.pen-upsell .btn-upsell-notify:hover { background: #a50e27; }

/* Modal */
#notify-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; justify-content: center; align-items: center;
}
.notify-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.notify-modal-box {
    position: relative; background: #fff; border-radius: 12px;
    padding: 40px 36px; max-width: 420px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; z-index: 1;
}
.notify-modal-box h3 { font-size: 1.3rem; font-weight: 700; color: #0d1f3c; margin: 0 0 8px; }
.notify-modal-box p { font-size: 0.9rem; color: #6b7280; line-height: 1.5; margin-bottom: 20px; }
.notify-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    font-size: 1.6rem; color: #9ca3af; cursor: pointer; line-height: 1; padding: 4px;
}
#notify-form input {
    display: block; width: 100%; padding: 11px 14px; margin-bottom: 10px;
    border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; outline: none;
    box-sizing: border-box;
}
#notify-form input:focus { border-color: #c8102e; }
#notify-form button {
    display: block; width: 100%; padding: 12px; background: #c8102e; color: #fff;
    border: none; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: background 0.2s;
}
#notify-form button:hover { background: #a50e27; }
.notify-success { font-size: 1rem; font-weight: 600; color: #16a34a; padding: 20px 0; }

/* Shop loop pen buttons live in .card-action (custom card markup) — match card pill buttons */
.card-action .btn-notify-me,
.card-action .btn-learn-more-shop {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px 24px; border-radius: 9999px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.78px;
    text-decoration: none; box-sizing: border-box; transition: background .2s, color .2s; cursor: pointer;
}
.card-action .btn-notify-me { background: #c8102e; color: #fff; border: 2px solid #c8102e; margin-bottom: 8px; }
.card-action .btn-notify-me:hover { background: #a50e27; border-color: #a50e27; }
.card-action .btn-learn-more-shop { background: transparent; color: #c8102e; border: 2px solid #c8102e; }
.card-action .btn-learn-more-shop:hover { background: #c8102e; color: #fff; }

/* Pen upsell: Sold Out badge (vial product pages) */
.pen-upsell .btn-sold-out {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 8px; padding: 10px 20px;
    background: #6b7280; color: #fff; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; border-radius: 6px;
    box-sizing: border-box; cursor: default;
}
