/* ==========================================================================
   Air Display – Single Product Page
   File: public_html/demo/assets/css/product.css
   Everything is scoped under #adPdp (an ID) so global.css / common.css /
   style.css rules cannot override it, without needing !important.
   ========================================================================== */

/* Neutralise the global theme only on this page */
body:has(#adPdp),
body:has(#adPdp) main#main {
    background: #fff !important;
    color: #111827 !important;
}
body:has(#adPdp) main#main {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

#adPdp {
    --ad-red: #ea1d2d;
    --ad-red-dark: #c40812;
    --ad-ink: #0f1115;
    --ad-text: #4b5563;
    --ad-muted: #6b7280;
    --ad-line: #e5e7eb;
    --ad-wa: #22c55e;
    --ad-wa-dark: #16a34a;

    box-sizing: border-box;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 96px;
    background: #fff;
    color: var(--ad-ink);
    font-family: inherit;
    text-align: left;
}
#adPdp *,
#adPdp *::before,
#adPdp *::after { box-sizing: border-box; }

#adPdp svg {
    display: inline-block;
    flex-shrink: 0;
    max-width: 100%;
    vertical-align: middle;
}
#adPdp a { text-decoration: none; }
#adPdp h1, #adPdp h2, #adPdp h3, #adPdp h4, #adPdp p, #adPdp ul {
    margin: 0;
    padding: 0;
    text-transform: none;
}

/* ---------- Breadcrumbs ---------- */
#adPdp .ad-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--ad-muted);
}
#adPdp .ad-crumbs a { color: #374151; }
#adPdp .ad-crumbs a:hover { color: var(--ad-red); }
#adPdp .ad-crumbs .sep { color: #9ca3af; }
#adPdp .ad-crumbs .curr { color: var(--ad-red); font-weight: 500; }

/* ---------- Showcase: gallery + details ---------- */
#adPdp .ad-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-bottom: 88px;
}

/* Gallery */
#adPdp .ad-media { min-width: 0; }
#adPdp .ad-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #0b0f1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
}
#adPdp .ad-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease;
}
#adPdp .ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--ad-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
#adPdp .ad-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
#adPdp .ad-arrow:focus-visible,
#adPdp .ad-thumb:focus-visible { outline: 3px solid var(--ad-red); outline-offset: 2px; }
#adPdp .ad-arrow.prev { left: 14px; }
#adPdp .ad-arrow.next { right: 14px; }
#adPdp .ad-arrow svg { width: 20px; height: 20px; }

#adPdp .ad-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}
#adPdp .ad-thumb {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 72px;
    aspect-ratio: 1.2 / 1;
    padding: 0;
    border: 2px solid var(--ad-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease;
}
#adPdp .ad-thumb:hover { border-color: #fca5a5; }
#adPdp .ad-thumb.active { border-color: var(--ad-red); }
#adPdp .ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Details */
#adPdp .ad-details { min-width: 0; padding-top: 4px; }
#adPdp .ad-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--ad-red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
#adPdp .ad-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--ad-red);
}
#adPdp .ad-title {
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: var(--ad-ink);
    margin-bottom: 22px;
    overflow-wrap: break-word;
}
#adPdp .ad-title .dot { color: var(--ad-red); }
#adPdp .ad-desc {
    max-width: 62ch;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ad-text);
    margin-bottom: 38px;
}
#adPdp .ad-desc p + p { margin-top: 12px; }
#adPdp .ad-desc ul, #adPdp .ad-desc ol { padding-left: 20px; margin-top: 10px; }
#adPdp .ad-desc a { color: var(--ad-red); }

/* Feature grid: 2 columns, hairline between them (as in the design) */
#adPdp .ad-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
}
#adPdp .ad-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px 18px 0;
}
#adPdp .ad-feature:nth-child(even) {
    padding-left: 28px;
    border-left: 1px solid var(--ad-line);
}
#adPdp .ad-feature svg {
    width: 38px;
    height: 38px;
    color: #1f2937;
}
#adPdp .ad-feature h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151;
}
#adPdp .ad-feature p {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ad-muted);
}

/* Buttons */
#adPdp .ad-actions { display: flex; flex-wrap: wrap; gap: 14px; }
#adPdp .ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 10px;
    font: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#adPdp .ad-btn svg { width: 19px; height: 19px; }
#adPdp .ad-btn:focus-visible { outline: 3px solid var(--ad-ink); outline-offset: 2px; }
#adPdp .ad-btn-primary {
    background: var(--ad-red);
    color: #fff;
    border: 1px solid var(--ad-red);
    box-shadow: 0 8px 20px -8px rgba(234, 29, 45, .55);
}
#adPdp .ad-btn-primary:hover { background: var(--ad-red-dark); border-color: var(--ad-red-dark); }
#adPdp .ad-btn-ghost {
    background: #fff;
    color: var(--ad-ink);
    border: 1px solid #d1d5db;
}
#adPdp .ad-btn-ghost:hover { border-color: var(--ad-ink); }

/* ---------- Available models ---------- */
#adPdp .ad-models-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ad-ink);
}
#adPdp .ad-models-title::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--ad-red);
}
#adPdp .ad-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 22px;
}
#adPdp .ad-model {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 18px;
    background: #fff;
    border: 1px solid var(--ad-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px -16px rgba(15, 23, 42, .25);
}
#adPdp .ad-model-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 18px;
    overflow: hidden;
}
#adPdp .ad-model-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
#adPdp .ad-model h3 {
    min-height: 54px;
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.01em;
    color: var(--ad-ink);
}
#adPdp .ad-model h3 small {
    font-size: .8em;
    font-weight: 600;
}
#adPdp .ad-specs { list-style: none; flex: 1 1 auto; margin-bottom: 22px; }
#adPdp .ad-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: var(--ad-text);
}
#adPdp .ad-specs svg { width: 18px; height: 18px; color: #6b7280; }
#adPdp .ad-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ad-wa);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s ease;
}
#adPdp .ad-wa:hover { background: var(--ad-wa-dark); }
#adPdp .ad-wa svg { width: 22px; height: 22px; }

/* ---------- Not found ---------- */
#adPdp .ad-empty { padding: 120px 0; text-align: center; }
#adPdp .ad-empty h1 { font-size: 34px; margin-bottom: 12px; }
#adPdp .ad-empty p { color: var(--ad-muted); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    #adPdp { padding: 20px 18px 72px; }
    #adPdp .ad-showcase { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-bottom: 64px; }
    #adPdp .ad-stage { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
    #adPdp .ad-crumbs { margin-bottom: 24px; }
    #adPdp .ad-features { grid-template-columns: 1fr; }
    #adPdp .ad-feature:nth-child(even) { padding-left: 0; border-left: 0; }
    #adPdp .ad-feature { padding-right: 0; }
    #adPdp .ad-btn { width: 100%; }
    #adPdp .ad-thumb { flex-basis: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    #adPdp * { transition: none !important; }
}

/* ---------- Product video ---------- */
#adPdp .ad-video-sec { margin-bottom: 88px; }
#adPdp .ad-video-sec .ad-models-title { justify-content: center; }
#adPdp .ad-video {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45);
}
#adPdp .ad-video iframe,
#adPdp .ad-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) { #adPdp .ad-video-sec { margin-bottom: 64px; } }