/* Product detail page — typography, SVG surfaces, motion */
.product-detail-page {
    --pd-navy: #0b3d91;
    --pd-navy-deep: #082b66;
    --pd-sky: #3b82f6;
    --pd-ink: #0a1628;
    --pd-muted: #5c6b7a;
    --pd-line: rgba(11, 61, 145, 0.12);
    --pd-surface: #f4f7fb;
    --pd-white: #ffffff;
    position: relative;
    overflow: clip;
}

/* Full-page body atmosphere (product view only) */
body.product-detail-body {
    background-color: #eef3f9;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' viewBox='0 0 1440 900' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1440' y2='900' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23f7f9fc'/%3E%3Cstop offset='0.45' stop-color='%23eef3f9'/%3E%3Cstop offset='1' stop-color='%23e4ecf7'/%3E%3C/linearGradient%3E%3Cpattern id='d' width='32' height='32' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1.15' fill='%230b3d91' fill-opacity='0.055'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1440' height='900' fill='url(%23g)'/%3E%3Crect width='1440' height='900' fill='url(%23d)'/%3E%3Cpath d='M0 180C320 90 560 260 880 160C1120 90 1280 130 1440 90V0H0V180Z' fill='%230b3d91' fill-opacity='0.035'/%3E%3Ccircle cx='1280' cy='720' r='220' fill='%231565c0' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='780' r='160' fill='%230b3d91' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

body.product-detail-body main {
    background: transparent;
}

@media (max-width: 991.98px) {
    body.product-detail-body {
        background-attachment: scroll;
    }
}

/* ----- Shared section shell ----- */
.pd-section {
    position: relative;
    padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.pd-section__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 1.75rem);
    padding-right: clamp(1rem, 3vw, 1.75rem);
}

.pd-section__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.pd-section__bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ----- Reveal motion ----- */
.pd-reveal .pd-reveal__item {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.pd-reveal.is-inview .pd-reveal__item,
.pd-reveal .pd-reveal__item.is-inview {
    opacity: 1;
    transform: none;
}

.pd-reveal--from-left .pd-reveal__item {
    transform: translateX(-28px);
}

.pd-reveal--from-right .pd-reveal__item {
    transform: translateX(28px);
}

.pd-reveal--scale .pd-reveal__item:not(.pd-reveal__item--slide) {
    transform: translateY(16px) scale(0.97);
}

.pd-reveal--scale .pd-reveal__item--slide {
    transform: translateX(26px) scale(0.985);
}

.pd-reveal--stagger .pd-reveal__item:nth-child(1) { --reveal-delay: 0.05s; }
.pd-reveal--stagger .pd-reveal__item:nth-child(2) { --reveal-delay: 0.12s; }
.pd-reveal--stagger .pd-reveal__item:nth-child(3) { --reveal-delay: 0.19s; }
.pd-reveal--stagger .pd-reveal__item:nth-child(4) { --reveal-delay: 0.26s; }

.pd-reveal__item--slide {
    transform: translateX(26px);
}

.pd-reveal.is-inview .pd-reveal__item--slide,
.pd-reveal .pd-reveal__item--slide.is-inview {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .pd-reveal .pd-reveal__item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ----- Hero / product overview ----- */
.pd-hero {
    background: transparent;
    padding-top: clamp(2rem, 4vw, 3.25rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pd-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.pd-gallery {
    position: sticky;
    top: calc(var(--site-topbar-h, 36px) + var(--navbar-lg-h, 102px) + 1rem);
}

.pd-gallery .product-image-slider .carousel {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pd-gallery .product-carousel-stage {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--pd-line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.pd-gallery .main-image-wrapper {
    position: relative;
    display: block;
    cursor: zoom-in;
    line-height: 0;
}

.pd-gallery .product-slider-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.pd-gallery .image-zoom-overlay {
    opacity: 0;
    background: rgba(10, 22, 40, 0.18);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.pd-gallery .main-image-wrapper:hover .image-zoom-overlay {
    opacity: 1;
}

.pd-gallery .product-carousel-nav {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.pd-gallery .product-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--pd-ink);
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-gallery .product-carousel-nav-btn:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.18);
    transform: translateY(-50%) scale(1.05);
}

.pd-gallery .product-carousel-nav-btn--prev { left: 12px; }
.pd-gallery .product-carousel-nav-btn--next { right: 12px; }

.gallery-thumbnails-slider {
    margin-top: 0.9rem;
}

.gallery-thumbnails-track {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.gallery-thumbnail-item {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid rgba(11, 61, 145, 0.14);
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbnail-item:hover {
    border-color: rgba(11, 61, 145, 0.35);
    transform: translateY(-1px);
}

.gallery-thumbnail-item.active {
    border-color: var(--pd-navy);
    box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.18);
}

/* Info column */
.pd-info {
    padding-top: 0.25rem;
}

.pd-info__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pd-navy);
    background: rgba(11, 61, 145, 0.08);
    border: 1px solid rgba(11, 61, 145, 0.16);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pd-info__eyebrow:hover {
    color: var(--pd-navy-deep);
    background: rgba(11, 61, 145, 0.12);
    border-color: rgba(11, 61, 145, 0.28);
}

.pd-info__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--pd-ink);
}

.pd-info__rule {
    display: block;
    width: 48px;
    height: 3px;
    margin: 0 0 1.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pd-navy) 0%, #4e8cff 100%);
}

.pd-info__lead {
    margin: 0 0 1.75rem;
    max-width: 38ch;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    font-weight: 450;
    line-height: 1.7;
    color: var(--pd-muted);
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pd-btn i {
    font-size: 0.9rem;
}

.pd-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-navy-deep) 100%);
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.22);
}

.pd-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 61, 145, 0.28);
}

.pd-btn--whatsapp {
    color: #128c7e;
    background: #fff;
    border-color: rgba(18, 140, 126, 0.35);
}

.pd-btn--whatsapp:hover {
    color: #fff;
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(18, 140, 126, 0.22);
}

.pd-btn--soft {
    color: #1d4ed8;
    background: #eef4ff;
    border-color: rgba(59, 130, 246, 0.22);
    min-height: 38px;
    padding: 0.42rem 0.95rem;
    font-size: 0.8rem;
}

.pd-btn--soft:hover {
    color: #fff;
    background: var(--pd-sky);
    border-color: var(--pd-sky);
}

/* ----- Description ----- */
.pd-desc {
    background: transparent;
}

.pd-desc__panel {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--pd-line);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(6px);
}

.pd-desc__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pd-desc__mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.85rem;
    color: #fff;
    background: linear-gradient(145deg, var(--pd-navy) 0%, #1565c0 100%);
    box-shadow: 0 8px 18px rgba(11, 61, 145, 0.22);
}

.pd-desc__eyebrow {
    display: block;
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-navy);
}

.pd-desc__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--pd-ink);
    line-height: 1.25;
}

.pd-desc__body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
}

.pd-desc__body > *:first-child {
    margin-top: 0;
}

.pd-desc__body h1,
.pd-desc__body h2,
.pd-desc__body h3,
.pd-desc__body h4 {
    margin: 1.75rem 0 0.75rem;
    color: var(--pd-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.pd-desc__body h2 { font-size: 1.35rem; }
.pd-desc__body h3 { font-size: 1.15rem; }

.pd-desc__body p {
    margin: 0 0 1.1rem;
}

.pd-desc__body ul,
.pd-desc__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.pd-desc__body li {
    margin-bottom: 0.4rem;
}

.pd-desc__body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

/* ----- Related ----- */
.pd-related {
    background: transparent;
}

.pd-related__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

.pd-related__eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pd-navy);
}

.pd-related__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    color: var(--pd-ink);
    line-height: 1.2;
}

.pd-related__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--pd-muted);
}

.pd-related__underline {
    width: 48px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pd-navy) 0%, #4e8cff 100%);
}

.pd-related .category-card-modern {
    border-radius: 14px !important;
    border: 1px solid var(--pd-line) !important;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.pd-related .category-card-modern:hover {
    transform: translateY(-7px);
    border-color: rgba(11, 61, 145, 0.28) !important;
    box-shadow: 0 18px 40px rgba(11, 61, 145, 0.12) !important;
}

.pd-related .category-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    background: #ffc107;
    color: #343a40;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.pd-related .category-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #eef3f9;
}

.pd-related .category-card-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(245, 230, 200, 0.25) 0%,
        #e8d5a3 18%,
        #d4af37 50%,
        #e8d5a3 82%,
        rgba(245, 230, 200, 0.25) 100%
    );
    pointer-events: none;
    z-index: 4;
}

.pd-related .category-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-related .category-card-modern:hover .category-card-image {
    transform: scale(1.05);
}

.pd-related .category-card-media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-related .category-card-modern:hover .category-card-media-overlay {
    opacity: 1;
}

.pd-related .category-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.pd-related .category-card-title a {
    color: var(--pd-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-related .category-card-title a:hover {
    color: var(--pd-navy);
}

.pd-related .product-list-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--pd-muted);
}

.pd-related .product-list-card .card-body {
    padding: 1.25rem 1.25rem 1.35rem !important;
    gap: 0.65rem;
}

/* Zoom modal */
.product-zoom-modal .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100%;
}

.product-zoom-modal .modal-content {
    min-height: 100vh;
    border: none;
    border-radius: 0;
    background: #212529 !important;
    position: relative;
    overflow: hidden;
}

.product-zoom-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 5rem;
    margin: 0;
    background: transparent !important;
}

.product-zoom-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 8rem);
}

.product-zoom-image {
    display: block;
    max-width: min(90vw, 1000px);
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-zoom-close,
.product-zoom-nav {
    position: absolute;
    z-index: 20;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff !important;
    color: #212529 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-zoom-close { top: 1rem; right: 1rem; }
.product-zoom-close:hover { transform: scale(1.06); }
.product-zoom-nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.product-zoom-nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.product-zoom-nav--prev:hover,
.product-zoom-nav--next:hover { transform: translateY(-50%) scale(1.06); }

.product-zoom-close svg,
.product-zoom-nav svg {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.product-zoom-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: #f8f9fa !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .pd-hero__layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .pd-gallery {
        position: relative;
        top: auto;
    }

    .pd-info__lead {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .pd-actions {
        flex-direction: column;
    }

    .pd-btn {
        width: 100%;
    }

    .pd-gallery .product-slider-image {
        max-height: 380px;
    }

    .gallery-thumbnail-item {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .product-zoom-modal .modal-body {
        padding: 3.5rem 1rem;
    }

    .product-zoom-close,
    .product-zoom-nav {
        width: 42px;
        height: 42px;
    }

    .product-zoom-nav--prev { left: 0.5rem; }
    .product-zoom-nav--next { right: 0.5rem; }
}
