﻿/* ==========================================================================
   GALAXY ARMORY — PRODUCT DETAIL SPECIFIC STYLESHEET (css/product.css)
   PDP main layout, imagery stage, buy box, specs table, other models grid.
   ========================================================================== */

        /* ============================================================
           [PRODUCT DETAIL LAYOUT]
        ============================================================ */
        .pdp-main {
            padding-top: 110px;
            padding-bottom: 5rem;
            position: relative;
            z-index: 1;
            flex: 1;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-family: var(--font-mono);
            font-size: 0.68rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--titanium-dim);
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .breadcrumb a {
            color: var(--titanium-dim);
            transition: color var(--transition);
        }

        .breadcrumb a:hover { color: var(--texas-red); }
        .breadcrumb .sep { color: var(--line-strong); }
        .breadcrumb .current { color: var(--titanium); font-weight: 700; }

        /* --- Product Overview Grid --- */
        .pdp-grid {
            display: grid;
            grid-template-columns: 1.15fr 1fr;
            gap: clamp(2rem, 5vw, 4.5rem);
            align-items: start;
            margin-bottom: 4rem;
        }

        /* --- Left Column: Imagery --- */
        .pdp-media-wrap {
            position: sticky;
            top: 100px;
        }

        .pdp-image-stage {
            background: var(--obsidian);
            border: 1px solid var(--line);
            position: relative;
            overflow: hidden;
            aspect-ratio: 16 / 10;
            contain: layout paint;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }

        .pdp-image-stage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s var(--ease);
        }

        .pdp-image-stage:hover img {
            transform: scale(1.03);
        }

        .pdp-gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: rgba(14, 13, 13, 0.75);
            backdrop-filter: blur(6px);
            border: 1px solid var(--line);
            color: var(--titanium);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 6;
            transition: all var(--transition);
        }

        .pdp-gallery-arrow:hover {
            background: var(--texas-red);
            border-color: var(--texas-red);
            color: #fff;
        }

        .pdp-gallery-prev {
            left: 0.75rem;
        }

        .pdp-gallery-next {
            right: 0.75rem;
        }

        .pdp-gallery-arrow svg {
            width: 16px;
            height: 16px;
        }

        .pdp-thumbs {
            display: flex;
            gap: 0.65rem;
            margin-top: 0.75rem;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .pdp-thumb-btn {
            flex: 0 0 88px;
            height: 56px;
            background: var(--obsidian);
            border: 1px solid var(--line);
            padding: 2px;
            cursor: pointer;
            overflow: hidden;
            position: relative;
            transition: all var(--transition);
        }

        .pdp-thumb-btn:hover {
            border-color: var(--line-strong);
        }

        .pdp-thumb-btn.active {
            border-color: var(--texas-red);
            box-shadow: 0 0 0 1px var(--texas-red);
        }

        .pdp-thumb-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.2s ease;
        }

        .pdp-thumb-btn:not(.active) img {
            opacity: 0.65;
        }

        .pdp-thumb-btn:hover img,
        .pdp-thumb-btn.active img {
            opacity: 1;
        }

        .pdp-badge-texas {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: rgba(20, 19, 18, 0.88);
            backdrop-filter: blur(8px);
            border: 1px solid var(--line-strong);
            color: var(--titanium);
            font-family: var(--font-mono);
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 0.35rem 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.45rem;
            z-index: 5;
        }

        .pdp-badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--texas-red);
        }

        .pdp-nfa-notice {
            margin-top: 1rem;
            background: rgba(244, 244, 244, 0.02);
            border: 1px solid var(--line);
            padding: 0.9rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 0.72rem;
            color: var(--titanium-dim);
            font-family: var(--font-mono);
        }

        .pdp-nfa-notice svg {
            width: 18px;
            height: 18px;
            stroke: var(--texas-red);
            flex-shrink: 0;
        }

        /* --- Right Column: Info & Actions --- */
        .pdp-info {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .pdp-series-badge {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--texas-red);
        }

        .pdp-title {
            font-size: clamp(2rem, 3.5vw, 3rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            line-height: 1.05;
            color: var(--titanium);
        }

        .pdp-price-box {
            display: flex;
            align-items: baseline;
            gap: 0.8rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--line);
        }

        .pdp-price {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--titanium);
            letter-spacing: -0.02em;
        }

        .pdp-price-label {
            font-size: 0.7rem;
            font-family: var(--font-mono);
            color: var(--titanium-dim);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .pdp-tagline {
            font-size: 1.05rem;
            color: var(--titanium);
            font-weight: 500;
            line-height: 1.5;
            text-wrap: balance;
        }

        .pdp-description {
            font-size: 0.9rem;
            color: var(--titanium-dim);
            line-height: 1.7;
        }

        /* Quick specs cards */
        .quick-specs-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            margin-block: 0.5rem;
        }

        .quick-spec-item {
            background: var(--obsidian);
            padding: 0.85rem 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .quick-spec-key {
            font-family: var(--font-mono);
            font-size: 0.6rem;
            font-weight: 500;
            color: var(--titanium-dim);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .quick-spec-val {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--titanium);
        }

        /* Action buttons row */
        .pdp-actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        .btn-pdp-add {
            background: var(--texas-red);
            border: 1px solid var(--texas-red);
            color: #fff;
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 1.1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            cursor: pointer;
            transition: background var(--transition), border-color var(--transition);
        }

        .btn-pdp-add:hover { background: #a01c3b; }
        .btn-pdp-add.added { background: #1a6b35; border-color: #1a6b35; }
        .btn-pdp-add:disabled,
        .btn-pdp-add.btn-pdp-disabled {
            background: rgba(255, 255, 255, 0.04);
            border: 1px dashed rgba(255, 255, 255, 0.2);
            color: var(--titanium-dim);
            cursor: not-allowed;
            pointer-events: none;
            opacity: 0.75;
            box-shadow: none;
        }
        .btn-pdp-add:disabled svg,
        .btn-pdp-add.btn-pdp-disabled svg {
            stroke: var(--titanium-dim);
        }
        .btn-pdp-add svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

        .pdp-secondary-actions {
            display: flex;
            gap: 0.75rem;
        }

        .btn-pdp-secondary {
            flex: 1;
            background: transparent;
            border: 1px solid var(--line);
            color: var(--titanium-dim);
            font-family: var(--font);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.85rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-decoration: none;
            transition: all var(--transition);
        }

        .btn-pdp-secondary:hover {
            border-color: var(--texas-red);
            color: var(--titanium);
            background: var(--texas-red-dim);
        }

        /* ============================================================
           [SPECIFICATIONS SECTION -- EXACT LAYOUT MATCHING USER REFERENCE]
        ============================================================ */
        .specs-section {
            background: var(--obsidian);
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            padding-block: 4.5rem;
            margin-top: 2rem;
        }

        .specs-header {
            margin-bottom: 2.5rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--line);
        }

        .specs-header h2 {
            font-size: clamp(1.8rem, 3vw, 2.4rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--titanium);
        }

        /* Specifications table layout */
        .specs-table {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        .spec-row {
            display: grid;
            grid-template-columns: 280px 1fr;
            padding: 1.1rem 0;
            border-bottom: 1px solid rgba(48, 46, 44, 0.6);
            align-items: baseline;
            gap: 2rem;
            transition: background var(--transition);
        }

        .spec-row:last-child {
            border-bottom: none;
        }

        .spec-row:hover {
            background: rgba(244,244,244,0.02);
        }

        .spec-name {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--titanium-dim);
        }

        .spec-value {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--titanium);
            line-height: 1.6;
        }

        .spec-value strong {
            color: #fff;
            font-weight: 700;
        }

        /* ============================================================
           [COMPARE / OTHER MODELS CAROUSEL]
        ============================================================ */
        .other-models-section {
            padding-block: 5rem;
        }

        .other-models-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--line);
            flex-wrap: wrap;
            gap: 1rem;
        }

        .other-models-header h3 {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        .other-models-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5px;
            background: var(--line);
        }

        .other-card {
            background: var(--obsidian-deep);
            padding: 1.5rem;
            display: flex;
            gap: 1.5rem;
            align-items: center;
            text-decoration: none;
            transition: background var(--transition);
        }

        .other-card:hover {
            background: var(--obsidian);
        }

        .other-card-img {
            width: 120px;
            height: 80px;
            aspect-ratio: 120 / 80;
            contain: layout paint;
            object-fit: cover;
            border: 1px solid var(--line);
            background: #111;
            flex-shrink: 0;
        }

        .other-card-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .other-card-platform {
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--texas-red);
            text-transform: uppercase;
        }

        .other-card-title {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--titanium);
            text-transform: uppercase;
        }

        .other-card:hover .other-card-title {
            color: var(--texas-red);
        }

        .other-card-price {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--titanium-dim);
        }


/* ============================================================
   PRODUCT DETAIL RESPONSIVE BREAKPOINTS
============================================================ */
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; }
    .pdp-media-wrap { position: static; }
    .other-models-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-row { grid-template-columns: 180px 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
    .pdp-main { padding-top: 95px; }
    .pdp-title { font-size: clamp(1.8rem, 5vw, 3rem); word-break: break-word; }
}

@media (max-width: 540px) {
    .spec-row { grid-template-columns: 1fr; gap: 0.35rem; }
    .other-models-grid { grid-template-columns: 1fr; }
}
