/* ===== Milkberry Product Detail — Premium Pink Theme ===== */
:root {
    --accent: #c92f5d;
    --accent-dark: #7f173b;
    --accent-soft: #f7d9e2;
    --pink-light: #f7d9e2;
    --pink-mid: #dc7897;
    --text: #211820;
    --text-muted: #65545d;
    --border: rgba(127, 23, 59, 0.18);
    --bg: #fff4f2;
    --white: #ffffff;
    --green: #16a34a;
    --radius: 20px;
    --shadow: 0 12px 40px rgba(127, 23, 59, 0.12);
    --shadow-lg: 0 20px 60px rgba(127, 23, 59, 0.18);
    --font: 'Poppins', sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.pd-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.pd-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}
.pd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pd-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(196, 69, 105, 0.3);
    flex-shrink: 0;
}
.pd-logo-img { width: 100%; height: 100%; object-fit: cover; }
.pd-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.pd-logo-text .brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}
.pd-logo-text .company {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pd-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.pd-menu a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.2s;
}
.pd-menu a:hover,
.pd-menu a.active { color: var(--accent); }

/* Hero */
.pd-hero {
    padding: 36px 0 48px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(252, 228, 236, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 40%, rgba(255, 240, 245, 0.8) 0%, transparent 50%),
        var(--white);
}
.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

/* Image card */
.pd-main-image,
.pd-gallery-card {
    background: var(--white);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: sticky;
    top: 88px;
}
.pd-main-image img,
.pd-gallery-card img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.12));
}
.emoji-fallback { font-size: 6rem; }

/* Info column */
.pd-hero-info { padding-top: 8px; }
.pd-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 8px 14px;
    background: var(--accent-soft);
    border-radius: 999px;
    display: inline-block;
}
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-hero-info h1 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.pd-short {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 520px;
}

/* Specs card */
.pd-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.pd-spec label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.pd-spec span {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
}
.pd-spec .mrp { color: var(--accent); font-weight: 700; }
.in-stock { color: var(--green); }
.out-of-stock { color: #dc2626; }

/* Hero CTAs */
.pd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.pd-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pd-hero-actions a:hover { transform: translateY(-2px); }
.btn-buy {
    background: linear-gradient(135deg, var(--accent), #7f173b);
    color: #fff;
    box-shadow: 0 8px 24px rgba(196, 69, 105, 0.35);
}
.btn-buy:hover { box-shadow: 0 12px 28px rgba(196, 69, 105, 0.45); }
.btn-dealer {
    background: var(--white);
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Details section */
.pd-section {
    padding: 20px 0 56px;
}
.pd-details-wrap {
    display: grid;
    gap: 18px;
    max-width: 1120px;
}
.pd-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}
.pd-card h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text);
}
.pd-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.info-chip {
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.pd-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pd-storage {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    padding: 28px 30px;
}
.pd-storage h2 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #0c4a6e;
}
.pd-storage ul {
    list-style: none;
    display: grid;
    gap: 10px;
}
.pd-storage li {
    position: relative;
    padding-left: 28px;
    color: #334155;
    font-size: 0.95rem;
}
.pd-storage li::before {
    content: "❄";
    position: absolute;
    left: 0;
    top: 0;
}

/* Bottom actions (if still used) */
.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.pd-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}
.pd-actions .btn-buy {
    background: linear-gradient(135deg, var(--accent), #7f173b);
    color: #fff;
}
.pd-actions .btn-dealer {
    background: var(--white);
    color: var(--accent);
    border: 2px solid var(--accent);
}
.pd-actions .btn-wa {
    background: #25d366;
    color: #fff;
}

/* Nutrition (hidden by default if requested earlier) */
.pd-nutrition {
    display: none !important;
}

/* Related */
.pd-section h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.related-card img {
    height: 110px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto 14px;
}
.related-card p {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* Footer */
.pd-footer {
    background: #261019;
    color: #c4b5c8;
    padding: 40px 0 28px;
    margin-top: 20px;
    text-align: center;
}
.pd-footer a {
    color: #e9a0b4;
    display: inline;
    padding: 0 6px;
}
.pd-footer a:hover { color: #fff; }
.pd-footer p { font-size: 0.88rem; margin: 6px 0; }

.pd-not-found {
    text-align: center;
    padding: 100px 20px;
}
.pd-not-found h1 { font-family: var(--serif); margin-bottom: 12px; }
.pd-not-found a { color: var(--accent); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
    .pd-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .pd-main-image,
    .pd-gallery-card {
        position: static;
        min-height: 300px;
        padding: 24px;
    }
    .pd-main-image img,
    .pd-gallery-card img { max-height: 280px; }
    .pd-menu { gap: 14px; }
    .pd-logo-text .company { display: none; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pd-menu { display: none; }
    .pd-specs { grid-template-columns: 1fr; gap: 14px; }
    .pd-hero-actions { flex-direction: column; }
    .pd-hero-actions a { width: 100%; }
    .pd-actions { flex-direction: column; }
    .pd-actions a { width: 100%; justify-content: center; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pd-card, .pd-storage { padding: 22px 18px; }
}

/* ===== Product Page Premium UI Upgrade (2026-08) ===== */
/* Scope: product detail pages only. No site data/admin/API styles are changed. */

/* Static product-page gallery */
.pd-gallery-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    overflow: hidden;
}
.pd-gallery-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #7f173b, #e9a0b4);
}
.pd-gallery-title {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--text);
}
.pd-view-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.pd-view-tabs::-webkit-scrollbar { display: none; }
.pd-view-tab {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 999px;
    font: 600 .72rem/1 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: .2s ease;
}
.pd-view-tab:hover,
.pd-view-tab.active {
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-color: rgba(196, 69, 105, .28);
    box-shadow: 0 5px 14px rgba(196, 69, 105, .10);
}
.pd-gallery-card .pd-main-image {
    position: relative;
    top: auto;
    min-height: 300px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.98), rgba(255,240,245,.78) 62%, rgba(252,228,236,.62));
    box-shadow: inset 0 0 0 1px rgba(196,69,105,.08);
    border: 0;
}
.pd-gallery-card .pd-main-image img {
    max-height: 330px;
    transition: transform .35s ease, filter .35s ease;
}
.pd-gallery-card:hover .pd-main-image img {
    transform: scale(1.025);
    filter: drop-shadow(0 20px 34px rgba(0,0,0,.16));
}
.pd-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pd-tag {
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: #4b5563;
    font-size: .73rem;
    font-weight: 600;
}

/* Static product info */
.pd-info { padding-top: 4px; }
.pd-info .badges,
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-new { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.badge-premium { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.pd-info h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin-bottom: 15px;
}
.pd-info .desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 16px;
}
.pd-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 20px;
    font-size: .84rem;
    color: #6e6269;
    font-weight: 500;
}
.pd-rating .stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }

/* More tactile spec cards, applies safely to both static and dynamic product pages */
.pd-spec {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #fffbfc);
    border: 1px solid rgba(196,69,105,.08);
}
.pd-specs { gap: 10px; padding: 14px; }

/* Static detail cards */
.pd-card h3,
.pd-storage h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.pd-card + .pd-card { margin-top: 0; }
.pd-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: .85rem;
}
.pd-share a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--accent-dark);
    font-weight: 700;
    transition: .2s ease;
}
.pd-share a:hover { transform: translateY(-2px); border-color: rgba(196,69,105,.3); }

/* Section headings shared by rich static sections */
.pd-why,
.pd-faq,
.pd-related { padding: 68px 0; }
.pd-why .container,
.pd-faq .container,
.pd-related .container { text-align: center; }
.pd-why .label,
.pd-faq .label,
.pd-related .label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--accent);
}
.pd-why h2,
.pd-faq h2,
.pd-related h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.45rem);
    line-height: 1.18;
    margin-bottom: 10px;
}
.pd-why .sub,
.pd-faq .sub,
.pd-related .sub {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: .96rem;
}

/* Why choose */
.pd-why {
    background: linear-gradient(180deg, #fff 0%, #fff7f3 100%);
    border-top: 1px solid rgba(196,69,105,.07);
    border-bottom: 1px solid rgba(196,69,105,.07);
}
.pd-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left;
}
.pd-why-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 10px 28px rgba(196,69,105,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pd-why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pd-why-card .icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--accent-soft);
    font-size: 1.35rem;
}
.pd-why-card h4 { font-size: .98rem; margin-bottom: 6px; }
.pd-why-card p { color: var(--text-muted); font-size: .82rem; line-height: 1.65; }

/* FAQ */
.pd-faq { background: #fff; }
.pd-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
    text-align: left;
}
.pd-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgba(17,24,39,.035);
}
.pd-faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    font: 600 .92rem/1.5 var(--font);
    cursor: pointer;
}
.pd-faq-q .arrow { color: var(--accent); transition: transform .25s ease; }
.pd-faq-a {
    display: none;
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: .87rem;
    line-height: 1.7;
}
.pd-faq-item.active { border-color: rgba(196,69,105,.24); }
.pd-faq-item.active .pd-faq-a { display: block; }
.pd-faq-item.active .pd-faq-q .arrow { transform: rotate(180deg); }

/* Related product cards */
.pd-related {
    background: linear-gradient(180deg, #fff9f5 0%, #fff 100%);
}
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    text-align: left;
}
.pd-related-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pd-related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pd-related-img {
    height: 190px;
    display: grid;
    place-items: center;
    padding: 18px;
    background: radial-gradient(circle at 50% 35%, #fff 0%, #fff5f2 74%, #f6e5e8 100%);
}
.pd-related-img picture { display: contents; }
.pd-related-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.pd-related-card:hover .pd-related-img img { transform: scale(1.04); }
.pd-related-body { padding: 16px; }
.pd-related-body h4 { font-size: .95rem; line-height: 1.4; margin-bottom: 5px; }
.pd-related-body p { color: var(--text-muted); font-size: .76rem; margin-bottom: 10px; }
.pd-related-body .price { color: var(--accent); font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.pd-related-body .btn-sm {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 700;
}
.pd-view-all {
    display: inline-flex;
    margin-top: 26px;
    padding: 12px 20px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid rgba(196,69,105,.2);
    font-weight: 600;
    font-size: .87rem;
}

/* Dealer CTA */
.pd-dealer-cta {
    max-width: 1080px;
    margin: 0 auto 68px;
    padding: 46px 24px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0%, rgba(255,255,255,.16), transparent 35%),
        linear-gradient(135deg, #701532, #c92f5d 55%, #d85b80);
    box-shadow: 0 24px 55px rgba(163,56,86,.22);
}
.pd-dealer-cta h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 8px; }
.pd-dealer-cta p { max-width: 610px; margin: 0 auto 20px; color: rgba(255,255,255,.86); }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.cta-btns a { padding: 12px 19px; border-radius: 999px; font-size: .86rem; font-weight: 700; }
.cta-primary { background: #fff; color: var(--accent-dark); }
.cta-outline { color: #fff; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); }

/* Rich static footer */
.pd-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 32px;
    text-align: left;
    margin-bottom: 26px;
}
.pd-footer-brand p { margin-top: 14px; max-width: 330px; line-height: 1.7; }
.pd-footer-grid h4 { color: #fff; margin-bottom: 12px; }
.pd-footer-grid > div:not(.pd-footer-brand) a { display: block; padding: 5px 0; }
.pd-footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; }

.pd-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(196,69,105,.3);
    cursor: pointer;
    z-index: 80;
}

/* Ensure Nutrition Facts never appears on product pages, including cached/legacy markup. */
.pd-nutrition { display: none !important; }

@media (max-width: 900px) {
    .pd-why-grid, .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .pd-footer-grid > div:last-child { grid-column: 1 / -1; }
    .pd-dealer-cta { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 600px) {
    .pd-hero { padding-top: 20px; }
    .pd-info h1 { font-size: 2rem; }
    .pd-gallery-card { padding: 18px; border-radius: 22px; }
    .pd-gallery-card .pd-main-image { min-height: 255px; padding: 14px; }
    .pd-gallery-card .pd-main-image img { max-height: 245px; }
    .pd-tags { justify-content: flex-start; }
    .pd-why, .pd-faq, .pd-related { padding: 50px 0; }
    .pd-why-grid, .pd-related-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
    .pd-why-card { padding: 17px 14px; }
    .pd-related-img { height: 145px; padding: 12px; }
    .pd-related-body { padding: 13px; }
    .pd-related-body h4 { font-size: .82rem; }
    .pd-related-body p { font-size: .68rem; }
    .pd-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .pd-footer-brand { grid-column: 1 / -1; }
    .pd-footer-grid > div:last-child { grid-column: 1 / -1; }
    .pd-dealer-cta { margin-bottom: 48px; padding: 36px 18px; border-radius: 22px; }
}


/* ===== Product Page UX Upgrade v2 ===== */
/* Decorative view tabs are hidden until multiple product-view images are available. */
.pd-view-tabs { display: none !important; }

/* Clearer hero hierarchy */
.pd-hero-info,
.pd-info { min-width: 0; }
.pd-hero-info h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 10px 0 14px;
}
.pd-short {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}
.pd-breadcrumb {
    color: #8b7280;
    font-size: .78rem;
    line-height: 1.55;
}
.pd-breadcrumb a { color: var(--accent-dark); font-weight: 600; }

/* Dynamic product gallery now uses the same premium treatment as legacy product pages. */
.pd-gallery-card.dynamic-gallery {
    position: sticky;
    top: 92px;
    min-height: 0;
}
.pd-gallery-card.dynamic-gallery .pd-main-image {
    width: 100%;
    min-height: 390px;
}
.pd-gallery-card.dynamic-gallery .pd-main-image img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
}
.pd-product-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid rgba(196,69,105,.12);
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.pd-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--border);
    color: #5f5360;
    font-size: .72rem;
    font-weight: 600;
}
.pd-trust-item strong {
    display: block;
    color: var(--text);
    font-size: .76rem;
}
.pd-trust-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
}

/* Image zoom affordance */
.pd-zoomable { cursor: zoom-in; outline: none; }
.pd-zoomable:focus-visible { box-shadow: 0 0 0 4px rgba(196,69,105,.18), var(--shadow-lg); }
.pd-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(196,69,105,.13);
    box-shadow: 0 6px 18px rgba(17,24,39,.08);
    color: #5c4651;
    font-size: .69rem;
    font-weight: 700;
    pointer-events: none;
}
.pd-no-scroll { overflow: hidden; }
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(25,16,31,.76);
    backdrop-filter: blur(8px);
    animation: pdFadeIn .18s ease-out;
}
.pd-lightbox-inner {
    width: min(820px, 94vw);
    height: min(720px, 82vh);
    display: grid;
    place-items: center;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.pd-lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pd-lightbox-close {
    position: fixed;
    top: 22px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #311f2a;
    font: 400 2rem/1 Arial, sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    cursor: pointer;
}
@keyframes pdFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Two-column detail layout when space allows */
.pd-details-wrap.pd-details-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.pd-details-wrap.pd-details-premium .pd-alert,
.pd-details-wrap.pd-details-premium .pd-storage { grid-column: 1 / -1; }
.pd-details-wrap.pd-details-premium .pd-card { height: 100%; }

/* Dynamic FAQ using native details/summary */
.pd-faq-native {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
    text-align: left;
}
.pd-faq-native details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(17,24,39,.035);
    overflow: hidden;
}
.pd-faq-native details[open] { border-color: rgba(196,69,105,.26); }
.pd-faq-native summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: .92rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.pd-faq-native summary::-webkit-details-marker { display: none; }
.pd-faq-native summary::after { content: '+'; color: var(--accent); font-size: 1.15rem; }
.pd-faq-native details[open] summary::after { content: '−'; }
.pd-faq-native .pd-faq-copy {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: .87rem;
    line-height: 1.7;
}

/* Dynamic related cards use richer information while keeping database values untouched. */
.pd-related-body .pd-related-desc {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Share area polish */
.pd-share { padding-top: 4px; }

/* Scroll-to-top now only appears after scrolling. */
.pd-scroll-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.pd-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile product action bar */
.pd-mobile-actionbar { display: none; }

@media (max-width: 900px) {
    .pd-gallery-card.dynamic-gallery { position: static; }
    .pd-gallery-card.dynamic-gallery .pd-main-image { min-height: 320px; }
    .pd-details-wrap.pd-details-premium { grid-template-columns: 1fr; }
    .pd-details-wrap.pd-details-premium .pd-alert,
    .pd-details-wrap.pd-details-premium .pd-storage { grid-column: auto; }
}

@media (max-width: 600px) {
    body { padding-bottom: 78px; }
    .pd-hero-grid { gap: 20px; }
    .pd-gallery-card.dynamic-gallery .pd-main-image { min-height: 270px; }
    .pd-trust-row { grid-template-columns: 1fr 1fr; }
    .pd-trust-item:last-child { grid-column: 1 / -1; }
    .pd-zoom-hint { right: 10px; bottom: 10px; }
    .pd-lightbox { padding: 16px; }
    .pd-lightbox-inner { height: min(620px, 76vh); padding: 18px; border-radius: 20px; }
    .pd-lightbox-close { top: 14px; right: 14px; }
    .pd-scroll-top { bottom: 92px; right: 14px; }

    .pd-mobile-actionbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 150;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 7px;
        padding: 8px;
        border: 1px solid rgba(196,69,105,.14);
        border-radius: 18px;
        background: rgba(255,255,255,.95);
        backdrop-filter: blur(14px);
        box-shadow: 0 16px 48px rgba(55,32,45,.2);
    }
    .pd-mobile-action {
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 9px;
        border-radius: 12px;
        text-align: center;
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.25;
        white-space: normal;
    }
    .pd-mobile-action.primary {
        color: #fff;
        background: linear-gradient(135deg, var(--accent), #d96b8b);
        box-shadow: 0 6px 16px rgba(196,69,105,.22);
    }
    .pd-mobile-action.secondary {
        color: var(--accent-dark);
        background: var(--accent-soft);
        border: 1px solid rgba(196,69,105,.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===== Product Page Effects v3 — subtle, performance-friendly ===== */

/* 1) Product image: soft ambient glow + smooth hover zoom */
.pd-gallery-card {
    isolation: isolate;
    overflow: hidden;
}
.pd-gallery-card::before {
    content: "";
    position: absolute;
    width: 62%;
    aspect-ratio: 1;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,131,168,.22) 0%, rgba(252,228,236,.11) 46%, transparent 72%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
    animation: pdGlowBreath 5.8s ease-in-out infinite;
}
.pd-gallery-card > * {
    position: relative;
    z-index: 1;
}
.pd-main-image img {
    transform: translateZ(0) scale(1);
    transition: transform .5s cubic-bezier(.2,.75,.25,1), filter .5s ease;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .pd-gallery-card:hover .pd-main-image img {
        transform: translateY(-4px) scale(1.045);
        filter: drop-shadow(0 22px 38px rgba(0,0,0,.16));
    }
}
@keyframes pdGlowBreath {
    0%, 100% { opacity: .66; transform: translate(-50%, -50%) scale(.94); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* 2) Scroll reveal: JS adds these classes only when supported */
.pd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .65s cubic-bezier(.2,.75,.25,1),
        transform .65s cubic-bezier(.2,.75,.25,1);
    transition-delay: var(--pd-reveal-delay, 0ms);
}
.pd-reveal.pd-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
.pd-reveal[data-pd-reveal="scale"] {
    transform: translateY(14px) scale(.975);
}
.pd-reveal[data-pd-reveal="scale"].pd-reveal-visible {
    transform: translateY(0) scale(1);
}

/* 3) Related product cards: richer lift + image movement */
.pd-related-card {
    transform: translateZ(0);
    transition: transform .34s cubic-bezier(.2,.75,.25,1), box-shadow .34s ease, border-color .34s ease;
}
.pd-related-card .pd-related-img img {
    transition: transform .42s cubic-bezier(.2,.75,.25,1), filter .42s ease;
}
@media (hover: hover) and (pointer: fine) {
    .pd-related-card:hover {
        transform: translateY(-8px) scale(1.012);
        border-color: rgba(196,69,105,.24);
        box-shadow: 0 22px 52px rgba(196,69,105,.15);
    }
    .pd-related-card:hover .pd-related-img img {
        transform: translateY(-3px) scale(1.075);
        filter: drop-shadow(0 14px 22px rgba(0,0,0,.11));
    }
}

/* 4) CTA shine + press micro-interaction */
.pd-hero-actions a,
.pd-actions a,
.pd-mobile-action,
.pd-view-all,
.pd-dealer-cta a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.pd-hero-actions a::after,
.pd-actions a::after,
.pd-mobile-action::after,
.pd-view-all::after,
.pd-dealer-cta a::after {
    content: "";
    position: absolute;
    inset: -35% auto -35% -60%;
    width: 42%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
    pointer-events: none;
    z-index: 2;
    transition: left .62s ease;
}
@media (hover: hover) and (pointer: fine) {
    .pd-hero-actions a:hover::after,
    .pd-actions a:hover::after,
    .pd-mobile-action:hover::after,
    .pd-view-all:hover::after,
    .pd-dealer-cta a:hover::after {
        left: 125%;
    }
}
.pd-hero-actions a:active,
.pd-actions a:active,
.pd-mobile-action:active,
.pd-view-all:active,
.pd-dealer-cta a:active {
    transform: translateY(0) scale(.975);
}

/* 5) FAQ accordion: animate existing active state without changing data/markup */
.pd-faq-a {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px;
    transform: translateY(-5px);
    transition: max-height .34s ease, opacity .24s ease, transform .34s ease, padding-bottom .34s ease;
}
.pd-faq-item.active .pd-faq-a {
    display: block;
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 18px;
}
.pd-faq-item {
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pd-faq-item.active {
    box-shadow: 0 12px 34px rgba(196,69,105,.075);
}

/* Native dynamic FAQ gets a soft open animation too. */
.pd-faq-native details .pd-faq-copy {
    transform-origin: top;
}
.pd-faq-native details[open] .pd-faq-copy {
    animation: pdFaqOpen .28s ease both;
}
@keyframes pdFaqOpen {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badge micro-effect kept intentionally subtle. */
.badge,
.pd-tag,
.pd-product-kicker {
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .badge:hover,
    .pd-tag:hover,
    .pd-product-kicker:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(196,69,105,.09);
    }
}

/* Lightbox enters with a slight scale instead of a hard pop. */
.pd-lightbox-inner {
    animation: pdLightboxPop .24s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes pdLightboxPop {
    from { opacity: 0; transform: scale(.965) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Keep interactions calm and accessible for users who reduce motion. */
@media (prefers-reduced-motion: reduce) {
    .pd-gallery-card::before { animation: none !important; }
    .pd-reveal,
    .pd-reveal[data-pd-reveal="scale"] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Product Page v4 — Navbar motion ===== */
.pd-header {
    transition:
        background-color .32s ease,
        border-color .32s ease,
        box-shadow .32s ease;
    animation: pdNavbarEnter .58s cubic-bezier(.2,.75,.25,1) both;
}
.pd-header.pd-nav-scrolled {
    background: rgba(255,255,255,.985);
    border-bottom-color: rgba(196,69,105,.16);
    box-shadow: 0 10px 34px rgba(74,40,56,.10);
}
.pd-nav {
    transition: padding .32s ease;
}
.pd-header.pd-nav-scrolled .pd-nav {
    padding-top: 8px;
    padding-bottom: 8px;
}
.pd-logo-circle {
    transition: transform .36s cubic-bezier(.2,.75,.25,1), box-shadow .36s ease;
}
.pd-menu a {
    position: relative;
    padding: 8px 0;
    transition: color .25s ease, transform .25s ease;
}
.pd-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #df879e);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.2,.75,.25,1);
}
.pd-menu a.active::after {
    transform: translateX(-50%) scaleX(.72);
}

@media (hover: hover) and (pointer: fine) {
    .pd-logo:hover .pd-logo-circle {
        transform: translateY(-2px) rotate(-3deg) scale(1.04);
        box-shadow: 0 9px 24px rgba(196,69,105,.28);
    }
    .pd-menu a:hover {
        transform: translateY(-2px);
    }
    .pd-menu a:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes pdNavbarEnter {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger the desktop nav items only on the first paint. */
@media (min-width: 601px) {
    .pd-menu a {
        animation: pdNavItemEnter .44s cubic-bezier(.2,.75,.25,1) both;
    }
    .pd-menu a:nth-child(1) { animation-delay: .10s; }
    .pd-menu a:nth-child(2) { animation-delay: .15s; }
    .pd-menu a:nth-child(3) { animation-delay: .20s; }
    .pd-menu a:nth-child(4) { animation-delay: .25s; }
    .pd-menu a:nth-child(5) { animation-delay: .30s; }
    .pd-menu a:nth-child(6) { animation-delay: .35s; }
}
@keyframes pdNavItemEnter {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pd-header,
    .pd-menu a { animation: none !important; }
    .pd-header,
    .pd-nav,
    .pd-logo-circle,
    .pd-menu a,
    .pd-menu a::after { transition: none !important; }
}

/* ===== v5 FIX: Related product image/content overlap =====
   Keep animated product images clipped inside their media area so titles
   can never slide underneath the image on desktop or mobile. */
.pd-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pd-related-img {
    position: relative;
    flex: 0 0 190px;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    overflow: hidden;
    box-sizing: border-box;
}
.pd-related-img picture {
    width: 100%;
    height: 100%;
}
.pd-related-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.pd-related-body {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100%;
    background: #fff;
}
.pd-related-body h4 {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

@media (max-width: 640px) {
    .pd-related-img {
        flex-basis: 145px;
        height: 145px;
        min-height: 145px;
        max-height: 145px;
    }
}

/* ===== Product Page v6 — Reference-style animated related product cards =====
   Inspired by the user-provided expanding circle/product reveal card.
   Desktop gets the full hover interaction; touch/mobile keeps a clear static card. */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    .pd-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
        max-width: 1080px;
        margin-left: auto;
        margin-right: auto;
    }

    .pd-related-card {
        --pd-card-accent: var(--accent);
        position: relative;
        display: block;
        height: 330px;
        min-height: 330px;
        overflow: hidden;
        isolation: isolate;
        border: 0;
        border-radius: 28px;
        background: transparent;
        box-shadow: none;
        transform: translateZ(0);
        transition: transform .45s cubic-bezier(.2,.75,.25,1), filter .45s ease;
    }

    /* Circular brand stage — expands to the whole card on hover. */
    .pd-related-card::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 50%;
        top: 43%;
        width: 222px;
        height: 222px;
        border: 6px solid var(--pd-card-accent);
        border-radius: 50%;
        background: #191919;
        box-shadow:
            0 0 0 1px rgba(255,255,255,.16) inset,
            0 0 12px rgba(196,69,105,.38),
            0 0 42px rgba(196,69,105,.23);
        transform: translate(-50%, -50%);
        transition:
            width .56s cubic-bezier(.2,.75,.25,1),
            height .56s cubic-bezier(.2,.75,.25,1),
            top .56s cubic-bezier(.2,.75,.25,1),
            border-radius .56s cubic-bezier(.2,.75,.25,1),
            background .42s ease,
            box-shadow .42s ease;
    }

    /* Milkberry logo shown in the circular resting state. */
    .pd-related-card::after {
        content: "";
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 43%;
        width: 118px;
        height: 118px;
        background: url('../images/logo.png') center / contain no-repeat;
        filter: drop-shadow(0 8px 16px rgba(0,0,0,.24));
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        transition: opacity .32s ease, transform .45s cubic-bezier(.2,.75,.25,1);
    }

    .pd-related-card .pd-related-img {
        position: absolute;
        z-index: 3;
        left: 50%;
        top: 43%;
        width: 44%;
        height: 248px;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: visible;
        background: transparent;
        transform: translate(-50%, -50%) scale(.62) rotate(-8deg);
        opacity: 0;
        transition:
            left .62s cubic-bezier(.18,.8,.25,1),
            top .62s cubic-bezier(.18,.8,.25,1),
            transform .62s cubic-bezier(.18,.8,.25,1),
            opacity .28s ease .05s;
    }

    .pd-related-card .pd-related-img picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .pd-related-card .pd-related-img img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 18px;
        filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
        transform: none;
        transition: transform .62s cubic-bezier(.18,.8,.25,1), filter .42s ease;
    }

    .pd-related-card .pd-related-img > div {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        font-size: 5rem !important;
        filter: drop-shadow(0 15px 22px rgba(0,0,0,.16));
    }

    /* Keep the product name visible before hover so customers know the item. */
    .pd-related-card .pd-related-body {
        position: absolute;
        z-index: 4;
        left: 50%;
        bottom: 14px;
        width: min(78%, 350px);
        padding: 0;
        background: transparent;
        text-align: center;
        transform: translateX(-50%);
        transition:
            left .58s cubic-bezier(.18,.8,.25,1),
            top .58s cubic-bezier(.18,.8,.25,1),
            bottom .3s ease,
            width .58s cubic-bezier(.18,.8,.25,1),
            transform .58s cubic-bezier(.18,.8,.25,1),
            text-align .3s ease;
    }

    .pd-related-card .pd-related-body h4 {
        display: inline-block;
        max-width: 100%;
        margin: 0;
        padding: 9px 16px;
        overflow: hidden;
        border: 1px solid rgba(196,69,105,.14);
        border-radius: 999px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 10px 28px rgba(56,27,39,.10);
        color: var(--text);
        font-size: .94rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition:
            color .3s ease,
            background .3s ease,
            box-shadow .3s ease,
            border-color .3s ease,
            padding .3s ease,
            font-size .3s ease;
    }

    .pd-related-card .pd-related-body p,
    .pd-related-card .pd-related-body .price,
    .pd-related-card .pd-related-body .btn-sm {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition:
            opacity .3s ease,
            transform .38s cubic-bezier(.2,.75,.25,1),
            max-height .38s ease,
            margin .38s ease,
            padding .38s ease;
    }

    .pd-related-card:hover,
    .pd-related-card:focus-visible {
        transform: translateY(-7px) scale(1.012);
        filter: drop-shadow(0 24px 32px rgba(163,56,86,.18));
        outline: none;
    }

    .pd-related-card:hover::before,
    .pd-related-card:focus-visible::before {
        top: 50%;
        width: 100%;
        height: 100%;
        border-radius: 28px;
        background:
            radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 30%),
            linear-gradient(135deg, #9f264c 0%, var(--pd-card-accent) 52%, #d96b8b 100%);
        box-shadow: 0 24px 60px rgba(163,56,86,.25);
    }

    .pd-related-card:hover::after,
    .pd-related-card:focus-visible::after {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.3) rotate(-16deg);
    }

    .pd-related-card:hover .pd-related-img,
    .pd-related-card:focus-visible .pd-related-img {
        left: 74%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1) rotate(3deg);
        opacity: 1;
        transition-delay: 0s, 0s, 0s, .18s;
    }

    .pd-related-card:hover .pd-related-img img,
    .pd-related-card:focus-visible .pd-related-img img {
        transform: scale(1.04);
        filter: drop-shadow(0 22px 28px rgba(0,0,0,.22));
    }

    .pd-related-card:hover .pd-related-body,
    .pd-related-card:focus-visible .pd-related-body {
        left: 26px;
        top: 50%;
        bottom: auto;
        width: 47%;
        text-align: left;
        transform: translateY(-50%);
    }

    .pd-related-card:hover .pd-related-body h4,
    .pd-related-card:focus-visible .pd-related-body h4 {
        display: block;
        padding: 0;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        color: #fff;
        font-size: clamp(1.18rem, 1.55vw, 1.48rem);
        line-height: 1.15;
        text-overflow: clip;
        white-space: normal;
    }

    .pd-related-card:hover .pd-related-body p,
    .pd-related-card:focus-visible .pd-related-body p {
        max-height: 70px;
        margin-top: 10px;
        color: rgba(255,255,255,.86);
        font-size: .78rem;
        line-height: 1.55;
        opacity: 1;
        transform: translateY(0);
    }

    .pd-related-card:hover .pd-related-body .price,
    .pd-related-card:focus-visible .pd-related-body .price {
        max-height: 34px;
        margin-top: 12px;
        color: #fff;
        font-size: .78rem;
        opacity: .9;
        transform: translateY(0);
    }

    .pd-related-card:hover .pd-related-body .btn-sm,
    .pd-related-card:focus-visible .pd-related-body .btn-sm {
        display: inline-flex;
        max-height: 46px;
        margin-top: 12px;
        padding: 9px 15px;
        background: #fff;
        color: var(--accent-dark);
        box-shadow: 0 9px 24px rgba(56,27,39,.14);
        opacity: 1;
        transform: translateY(0);
    }

    .pd-related-card .pd-related-body .btn-sm::after {
        content: " →";
        margin-left: 4px;
        transition: transform .25s ease;
    }
    .pd-related-card:hover .pd-related-body .btn-sm::after,
    .pd-related-card:focus-visible .pd-related-body .btn-sm::after {
        transform: translateX(3px);
    }
}

/* Touch/tablet/mobile: keep the cards immediately readable and stable. */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .pd-related-card::before,
    .pd-related-card::after {
        content: none;
    }
    .pd-related-card {
        border: 1px solid var(--border);
        background: #fff;
        box-shadow: var(--shadow);
    }
    .pd-related-card .pd-related-img {
        overflow: hidden;
        background: radial-gradient(circle at 50% 35%, #fff 0%, #fff5f2 74%, #f6e5e8 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-related-card,
    .pd-related-card::before,
    .pd-related-card::after,
    .pd-related-card .pd-related-img,
    .pd-related-card .pd-related-img img,
    .pd-related-card .pd-related-body,
    .pd-related-card .pd-related-body h4,
    .pd-related-card .pd-related-body p,
    .pd-related-card .pd-related-body .price,
    .pd-related-card .pd-related-body .btn-sm {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== Product Page v15 — Milkberry-only related-card brand badge + no-crop + cache-safe ===== */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    /* Replace the old black circular resting badge with the same visual language as the header brand. */
    .pd-related-card::before {
        top: 43%;
        width: 272px;
        height: 128px;
        border: 1px solid rgba(196,69,105,.20);
        border-radius: 24px;
        background: rgba(255,255,255,.98);
        box-shadow:
            0 0 0 1px rgba(255,255,255,.75) inset,
            0 10px 28px rgba(83,35,53,.10),
            0 0 18px rgba(232,62,116,.20),
            0 0 42px rgba(232,62,116,.11);
    }

    .pd-related-card::after {
        content: "Milkberry";
        box-sizing: border-box;
        width: 220px;
        height: 86px;
        padding: 31px 10px 10px 82px;
        background: url('../images/logo.png') 14px 50% / 58px 58px no-repeat;
        color: var(--accent);
        font-family: 'Poppins', sans-serif;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.02em;
        text-align: left;
        white-space: nowrap;
        filter: none;
    }

    .pd-related-card::after {
        /* Company line inherits through a compact second visual line; use shadow for crispness. */
        text-shadow: 0 1px 0 rgba(255,255,255,.75);
    }

    .pd-related-card:hover::before,
    .pd-related-card:focus-visible::before {
        top: 50%;
        width: 100%;
        height: 100%;
        border-radius: 28px;
        border-color: rgba(255,255,255,.18);
        background:
            radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 30%),
            linear-gradient(135deg, #9f264c 0%, var(--pd-card-accent) 52%, #d96b8b 100%);
        box-shadow:
            0 24px 60px rgba(163,56,86,.25),
            0 0 26px rgba(232,62,116,.20);
    }

    /* Product photo: always show the complete source image. */
    .pd-related-card .pd-related-img,
    .pd-related-card:hover .pd-related-img,
    .pd-related-card:focus-visible .pd-related-img {
        width: 46%;
        height: 250px;
        box-sizing: border-box;
        padding: 12px;
        overflow: hidden;
        border-radius: 22px;
        background: rgba(255,255,255,.10);
    }

    .pd-related-card .pd-related-img {
        transform: translate(-50%, -50%) scale(.62) rotate(0deg);
    }

    .pd-related-card:hover .pd-related-img,
    .pd-related-card:focus-visible .pd-related-img {
        left: 74%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    .pd-related-card .pd-related-img picture {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .pd-related-card .pd-related-img img,
    .pd-related-card:hover .pd-related-img img,
    .pd-related-card:focus-visible .pd-related-img img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
        border-radius: 14px;
    }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .pd-related-card .pd-related-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* ===== Product Page v14 — full product-name visibility ===== */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    /* Resting card: never truncate long product names. */
    .pd-related-card .pd-related-body {
        width: calc(100% - 32px);
        max-width: 430px;
        overflow: visible;
        box-sizing: border-box;
    }

    .pd-related-card .pd-related-body h4 {
        display: inline-block;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        text-wrap: balance;
        padding: 8px 14px;
        border-radius: 18px;
        line-height: 1.25;
        text-align: center;
    }

    /* Expanded card: reserve enough room for 2–3 line names. */
    .pd-related-card:hover .pd-related-body,
    .pd-related-card:focus-visible .pd-related-body {
        left: 24px;
        width: 46%;
        max-width: none;
        padding-right: 8px;
        overflow: visible;
        box-sizing: border-box;
    }

    .pd-related-card:hover .pd-related-body h4,
    .pd-related-card:focus-visible .pd-related-body h4 {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        text-overflow: clip;
        text-wrap: balance;
        text-align: left;
        font-size: clamp(1.05rem, 1.35vw, 1.34rem);
        line-height: 1.16;
    }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .pd-related-body h4 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: break-word;
        word-break: normal;
    }
}


/* =========================================================
   v16 — Related Products alignment + touch-friendly swipe
   One CTA only; essential product info remains visible on touch devices.
   ========================================================= */
.pd-related-grid {
    align-items: stretch;
}
.pd-related-card .pd-related-body .price { display: none !important; }

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    .pd-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
    .pd-related-card {
        min-height: 340px;
        height: 100%;
    }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .pd-related .container { overflow: visible; }
    .pd-related-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 5vw 18px 2px;
        margin-right: calc(50% - 50vw);
        scroll-snap-type: x mandatory;
        scroll-padding-left: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .pd-related-card {
        flex: 0 0 min(82vw, 330px);
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        scroll-snap-align: start;
        border-radius: 20px;
    }
    .pd-related-card .pd-related-img {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 210px !important;
        min-height: 210px;
        padding: 14px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-radius: 0 !important;
        background: radial-gradient(circle at 50% 35%, #fff 0%, #fff5f2 74%, #f6e5e8 100%) !important;
    }
    .pd-related-card .pd-related-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }
    .pd-related-card .pd-related-body {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        padding: 16px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        text-align: left !important;
        background: #fff;
    }
    .pd-related-card .pd-related-body h4 {
        display: block !important;
        width: 100% !important;
        margin: 0 0 7px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--text-dark) !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    .pd-related-card .pd-related-body p {
        display: block !important;
        margin: 0 0 13px !important;
        color: var(--text-muted) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .pd-related-card .pd-related-body .btn-sm {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ===== v29 — Clean Modern Product Layout (Mockup 4) ===== */
body{background:#fffaf7}.pd-header{box-shadow:0 2px 18px rgba(159,38,76,.04)}
.pd-breadcrumb-bar{background:#fff;border-bottom:1px solid var(--border);padding:13px 0;font-size:.78rem;color:var(--text-muted)}
.pd-breadcrumb-bar .container{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pd-breadcrumb-bar a:hover,.pd-breadcrumb-bar strong{color:var(--accent)}
.pd-hero{padding:34px 0 28px;background:linear-gradient(135deg,#fff 0%,#fff9f5 58%,#fff3f6 100%)}
.pd-hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr);gap:34px;align-items:stretch}
.pd-gallery-card{position:relative;top:auto;min-height:0;padding:14px;border-radius:22px;background:#fff;border:1px solid var(--border);box-shadow:0 14px 42px rgba(159,38,76,.08);display:block}
.pd-main-image{position:relative;top:auto;min-height:390px;padding:26px;border:0;box-shadow:none;border-radius:17px;background:linear-gradient(145deg,#fdecef,#fff4ec);overflow:hidden}
.pd-main-image:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.5);right:-90px;top:-80px}
.pd-main-image img{max-height:370px;position:relative;z-index:1;filter:drop-shadow(0 18px 28px rgba(64,24,31,.18))}
.pd-category-badge{position:absolute;z-index:4;top:28px;left:28px;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;border-radius:999px;padding:8px 14px;font-size:.72rem;font-weight:700;letter-spacing:.02em;box-shadow:0 8px 20px rgba(159,38,76,.18)}
.pd-thumb-row{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 2px 0}.pd-thumb{width:62px;height:54px;border-radius:11px;border:1px solid var(--border);display:grid;place-items:center;background:#fff;overflow:hidden;font-size:1.45rem}.pd-thumb img{width:100%;height:100%;object-fit:contain}.pd-thumb.active{border:2px solid var(--accent);background:var(--accent-soft)}.pd-thumb-soft{background:#fff7f7;color:var(--accent)}.pd-thumb-arrow{border:0;background:#fff;width:34px;height:34px;border-radius:50%;box-shadow:0 4px 15px rgba(0,0,0,.08);font-size:1.35rem;color:var(--accent);cursor:pointer}
.pd-hero-info{padding:8px 0;display:flex;flex-direction:column;justify-content:center}.pd-product-kicker{display:inline-flex;align-self:flex-start;background:var(--accent-soft);color:var(--accent-dark);border-radius:999px;padding:7px 12px;font-size:.72rem;font-weight:700;margin-bottom:12px}.pd-hero-info h1{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:10px}.pd-short{font-size:.94rem;margin-bottom:20px;max-width:650px}
.pd-price-stock{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);align-items:center}.pd-price-stock label,.pd-meta-line small{display:block;font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.pd-price{font-size:1.8rem;color:var(--accent);font-weight:700}.pd-price-stock small{color:var(--text-muted);font-size:.7rem}.pd-price-stock .in-stock,.pd-price-stock .out-of-stock{display:inline-flex;padding:7px 13px;border-radius:999px;font-size:.78rem;font-weight:600}.pd-price-stock .in-stock{background:#e8f8e8;color:#21883a}.pd-price-stock .out-of-stock{background:#feecec;color:#b42318}
.pd-meta-line{display:flex;gap:10px;margin:17px 0;flex-wrap:wrap}.pd-meta-line>span{flex:1;min-width:110px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff;font-size:.82rem;font-weight:600}.pd-hero-actions{display:grid;grid-template-columns:1fr 54px;gap:10px;margin:0}.pd-hero-actions a{border-radius:11px}.btn-buy{padding:14px 22px;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;text-align:center}.btn-heart{display:grid!important;place-items:center!important;padding:0!important;background:#fff;color:var(--accent);border:1.5px solid var(--accent);font-size:1.5rem}
.pd-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.pd-benefits>div{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 6px;text-align:center;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center}.pd-benefits b{color:var(--accent);font-size:1.05rem}.pd-benefits span{font-size:.66rem;line-height:1.35;margin-top:4px;font-weight:500}
.pd-section{padding:8px 0 36px}.pd-details-premium{grid-template-columns:1.3fr 1fr;gap:12px}.pd-details-premium .pd-card,.pd-details-premium .pd-storage,.pd-details-premium .pd-alert{box-shadow:none;border-color:var(--border);background:#fff}.pd-details-premium .pd-card{padding:22px}.pd-details-premium .pd-card h2,.pd-details-premium .pd-storage h2{font-family:var(--font);font-size:1rem;color:var(--accent-dark)}
.pd-why{padding-top:38px!important}.pd-related-card{transition:transform .2s,box-shadow .2s}.pd-related-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
@media(max-width:800px){.pd-menu{display:none}.pd-nav{padding-left:14px;padding-right:14px}.pd-breadcrumb-bar{padding:10px 0}.pd-hero{padding:18px 0}.pd-hero-grid{grid-template-columns:1fr;gap:20px}.pd-main-image{min-height:310px}.pd-main-image img{max-height:290px}.pd-category-badge{top:25px;left:25px}.pd-hero-info h1{font-size:2rem}.pd-benefits{grid-template-columns:repeat(2,1fr)}.pd-details-premium{grid-template-columns:1fr}.pd-price-stock{grid-template-columns:1fr 1fr}.pd-thumb{width:54px;height:48px}}
@media(max-width:480px){.pd-logo-text .company{display:none}.pd-main-image{min-height:270px;padding:20px}.pd-main-image img{max-height:250px}.pd-thumb-row{gap:6px}.pd-thumb{width:48px;height:44px}.pd-hero-info h1{font-size:1.72rem}.pd-short{font-size:.86rem}.pd-price{font-size:1.5rem}.pd-meta-line>span{min-width:90px}.pd-benefits>div{min-height:70px}.pd-details-premium .pd-card{padding:18px}}


/* v30 — Deeper Berry product-page tone */
.pd-hero {
    background:
        radial-gradient(ellipse at 18% 0%, rgba(220,120,151,.34) 0%, transparent 54%),
        radial-gradient(ellipse at 92% 38%, rgba(201,47,93,.12) 0%, transparent 48%),
        linear-gradient(180deg, #fff7f4 0%, #fce9e8 100%);
}
.pd-main-image, .pd-gallery-card, .pd-card, .pd-storage { border-color: rgba(127,23,59,.18); }
.pd-gallery-card .pd-main-image {
    background: radial-gradient(circle at 50% 28%, #fff 0%, #fbe5e8 65%, #f2cbd6 100%);
}
.pd-spec { background: linear-gradient(145deg, #fff, #fdf1f3); border-color: rgba(127,23,59,.13); }
.pd-info h1, .pd-card h3, .pd-storage h3 { color: #3b1525; }
.pd-tag, .pd-share a { border-color: rgba(127,23,59,.2); }

/* v36.3 — Admin product status badges */
.pd-status-badges{position:absolute;z-index:7;top:28px;right:28px;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:58%}
.pd-status-badge{display:inline-flex;align-items:center;min-height:28px;padding:6px 10px;border-radius:999px;font-size:.66rem;font-weight:900;letter-spacing:.055em;line-height:1;box-shadow:0 8px 22px rgba(84,15,43,.14);border:1px solid rgba(255,255,255,.72);backdrop-filter:blur(8px)}
.pd-status-new{background:#fff;color:#a51648}.pd-status-popular{background:#7d1738;color:#fff}.pd-status-featured{background:#25171d;color:#fff}
@media(max-width:800px){.pd-status-badges{top:24px;right:24px;max-width:54%}.pd-status-badge{font-size:.6rem;padding:6px 8px}}

/* v36.4 — complete enquiry basket */
.pd-enquiry-basket{position:fixed;right:22px;bottom:22px;z-index:1200}.pd-basket-toggle{border:0;border-radius:999px;background:linear-gradient(135deg,var(--accent,#b82350),var(--accent-dark,#761735));color:#fff;padding:14px 18px;font:800 14px/1.1 inherit;box-shadow:0 14px 38px rgba(87,18,49,.25);cursor:pointer}.pd-basket-toggle b{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;padding:0 6px;border-radius:999px;background:#fff;color:var(--accent-dark,#761735)}.pd-basket-panel{position:absolute;right:0;bottom:58px;width:340px;max-height:min(520px,70vh);overflow:auto;background:#fff;border:1px solid #efd2dd;border-radius:20px;padding:18px;box-shadow:0 24px 65px rgba(66,19,38,.22)}.pd-basket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.pd-basket-head small,.pd-enquiry-kicker{color:var(--accent,#b82350);font-weight:800;letter-spacing:.12em;font-size:10px}.pd-basket-head h3{margin:3px 0 0;font-size:21px}.pd-basket-head button,.pd-enquiry-close{border:0;background:#fff2f6;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}.pd-basket-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #f2e2e8;font-size:13px;font-weight:700}.pd-basket-item button{border:0;background:#fff0f4;color:#a31f4c;width:28px;height:28px;border-radius:50%;cursor:pointer}.pd-basket-empty{padding:18px 4px;color:#78636c;text-align:center}.pd-basket-send,.pd-enquiry-submit{width:100%;margin-top:14px;border:0;border-radius:12px;background:var(--accent,#b82350);color:#fff;padding:13px 16px;font:800 14px inherit;cursor:pointer}.pd-basket-send:disabled{opacity:.45;cursor:not-allowed}.pd-enquiry-modal{position:fixed;inset:0;z-index:1300;background:rgba(34,10,20,.52);backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px}.pd-enquiry-modal[hidden]{display:none}.pd-enquiry-dialog{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;background:#fffafc;border:1px solid #efd2dd;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(36,8,21,.28)}.pd-enquiry-dialog h2{margin:5px 0 8px;font-size:30px}.pd-enquiry-dialog>p{margin:0 0 16px;color:#705c65}.pd-enquiry-close{position:absolute;right:18px;top:18px}.pd-enquiry-summary{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.pd-enquiry-chip{background:#fdebf1;border:1px solid #f4c9d7;color:#8e2144;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}.pd-enquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pd-enquiry-grid label,.pd-enquiry-note{display:grid;gap:6px;font-size:12px;font-weight:800;color:#50333e}.pd-enquiry-grid input,.pd-enquiry-note textarea{width:100%;box-sizing:border-box;border:1px solid #e8ccd6;background:#fff;border-radius:11px;padding:12px 13px;font:500 14px inherit;outline:none}.pd-enquiry-grid input:focus,.pd-enquiry-note textarea:focus{border-color:var(--accent,#b82350);box-shadow:0 0 0 3px rgba(184,35,80,.08)}.pd-enquiry-note{margin-top:12px}.pd-enquiry-status{min-height:20px;margin-top:10px;font-size:13px;font-weight:700}.pd-enquiry-status.ok{color:#18814b}.pd-enquiry-status.err{color:#b42345}.pd-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important}.pd-basket-pop{animation:pdBasketPop .35s ease}@keyframes pdBasketPop{50%{transform:scale(1.08)}}@media(max-width:650px){.pd-enquiry-basket{right:14px;bottom:76px}.pd-basket-toggle{padding:12px 14px}.pd-basket-panel{width:min(340px,calc(100vw - 28px));right:0}.pd-enquiry-dialog{padding:24px 18px}.pd-enquiry-grid{grid-template-columns:1fr}.pd-enquiry-dialog h2{font-size:25px}}

/* v37.3.5 — mobile Back to Products */
.pd-mobile-back-wrap { display: none; }
@media (max-width: 800px) {
  .pd-mobile-back-wrap { display: block; padding: 10px 14px 0; background: #fff; }
  .pd-mobile-back { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 14px; border: 1px solid #efd2dd; border-radius: 999px; background: #fff7fa; color: var(--accent-dark,#761735); font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 16px rgba(118,23,53,.06); }
  .pd-mobile-back:active { transform: scale(.98); }
}

/* Admin-controlled category Ingredients visibility */
.pd-details-wrap.pd-details-premium.pd-no-ingredients { grid-template-columns: 1fr; }
.pd-details-wrap.pd-details-premium.pd-no-ingredients > .pd-card { grid-column: 1 / -1; }


/* Admin-controlled category Nutrition Information */
.pd-nutrition-card { grid-column: 1 / -1; }
.pd-nutrition-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; margin-top: 12px; }
.pd-nutrition-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; border:1px solid rgba(173,31,77,.12); border-radius:12px; background:#fff9fb; }
.pd-nutrition-row span { color:var(--muted); font-size:.9rem; }
.pd-nutrition-row strong { color:var(--text); font-size:.92rem; text-align:right; }
@media(max-width:700px){ .pd-nutrition-list{grid-template-columns:1fr;} }


/* Nutrition readability: keep item name and value visually separated */
.nutrition-list{
  display:grid;
  gap:0;
}
.nutrition-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:28px;
  padding:11px 0;
  border-bottom:1px solid rgba(173,31,77,.10);
}
.nutrition-row:last-child{border-bottom:0}
.nutrition-row .nutrition-label{
  min-width:0;
  color:#3f3035;
}
.nutrition-row .nutrition-value{
  margin-left:0 !important;
  padding-left:0 !important;
  text-align:right;
  white-space:nowrap;
  color:#171217;
  font-weight:700;
}
@media(max-width:520px){
  .nutrition-row{column-gap:18px}
}

/* Product lightbox viewport containment fix */
.pd-lightbox {
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(14px, 3vh, 28px);
}
.pd-lightbox-inner {
    box-sizing: border-box;
    width: min(820px, calc(100vw - 56px));
    height: min(720px, calc(100dvh - 56px));
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(14px, 2.5vw, 30px);
}
.pd-lightbox-inner img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}
@media (max-width: 640px) {
    .pd-lightbox { padding: 12px; }
    .pd-lightbox-inner {
        width: calc(100vw - 24px);
        height: calc(100dvh - 24px);
        padding: 12px;
        border-radius: 18px;
    }
    .pd-lightbox-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        z-index: 1001;
    }
}

/* v31 — Product page header: logo + Back to Products only */
.pd-menu.pd-back-only {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}
.pd-menu.pd-back-only .pd-back-products {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 17px !important;
    border: 1px solid rgba(177,31,80,.18) !important;
    border-radius: 999px !important;
    background: #fff5f8 !important;
    color: #8f1b43 !important;
    font: 700 13px/1 "Poppins", sans-serif !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(127,23,56,.07) !important;
}
.pd-menu.pd-back-only .pd-back-products:hover {
    background: #fce8ef !important;
    color: #761735 !important;
    transform: translateY(-1px);
}
.pd-menu.pd-back-only .pd-back-products::after { display: none !important; }
@media (max-width: 768px) {
    .pd-nav { gap: 10px !important; }
    .pd-menu.pd-back-only { display: flex !important; }
    .pd-menu.pd-back-only .pd-back-products {
        min-height: 40px !important;
        padding: 0 13px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}
@media (max-width: 480px) {
    .pd-logo-text .brand { font-size: 20px !important; }
    .pd-menu.pd-back-only .pd-back-products { padding: 0 11px !important; }
}
