
/* AR Guns Live Catalog v0.3 */

.catalog-hero {
    padding: 70px 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(77,112,144,.32), transparent 30%),
        linear-gradient(135deg, var(--navy-dark, #17324a), var(--charcoal, #1d242b));
}

.catalog-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.catalog-hero p {
    max-width: 720px;
    color: #d7e0e6;
    font-size: 1.08rem;
}

.catalog-search {
    max-width: 820px;
    margin-top: 28px;
    display: flex;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.22);
}

.catalog-search input {
    width: 100%;
    min-width: 0;
    padding: 17px 18px;
    border: 0;
    outline: 0;
    font: inherit;
}

.catalog-search button {
    padding: 0 28px;
    border: 0;
    background: var(--accent, #d10f14);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.catalog-section {
    padding: 55px 0 80px;
    background: var(--soft, #f2f4f6);
}

.catalog-toolbar {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.catalog-filters {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 999px;
}

.catalog-filters a {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 800;
}

.catalog-filters a.active {
    background: var(--navy, #2d4f6f);
    color: #fff;
}

.live-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.live-product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(20,35,47,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.live-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(20,35,47,.13);
}

.live-product-image {
    height: 245px;
    padding: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    border-bottom: 1px solid #eef0f2;
}

.live-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-product-body {
    min-height: 270px;
    padding: 19px;
    display: flex;
    flex-direction: column;
}

.live-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--muted, #666b6d);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stock-badge.is-available {
    color: #155b2a;
    background: #e7f5eb;
}

.stock-badge.is-unavailable {
    color: #7b2e2e;
    background: #f9e9e9;
}

.live-product-card h2 {
    margin: 15px 0 8px;
    font-size: 1.06rem;
    line-height: 1.3;
}

.live-product-card h2 a {
    text-decoration: none;
}

.live-product-card p {
    margin: 0;
    color: var(--muted, #666b6d);
    font-size: .88rem;
}

.live-product-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.product-price {
    color: var(--ink, #161a1d);
    font-size: 1.25rem;
    font-weight: 900;
}

.product-price span {
    display: block;
    color: var(--navy, #2d4f6f);
    font-size: .86rem;
}

.product-link {
    color: var(--accent, #d10f14);
    font-size: .85rem;
    font-weight: 900;
    text-decoration: none;
}

.catalog-pagination {
    margin-top: 34px;
    padding: 16px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 10px;
}

.catalog-pagination a {
    color: var(--accent, #d10f14);
    font-weight: 900;
    text-decoration: none;
}

.catalog-alert,
.catalog-empty {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 14px;
}

.catalog-alert {
    color: #7b2e2e;
    border-color: #ddabab;
    background: #fff3f3;
}

.catalog-empty h2 {
    margin-top: 0;
}

.product-detail-section {
    padding: 45px 0 80px;
    background: var(--soft, #f2f4f6);
}

.product-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--navy, #2d4f6f);
    font-weight: 900;
    text-decoration: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 42px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(20,35,47,.08);
}

.product-detail-image {
    min-height: 460px;
    padding: 28px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-detail-copy h1 {
    margin: 5px 0 15px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.detail-stock {
    margin-bottom: 18px;
}

.detail-price {
    margin: 10px 0 18px;
    font-size: 2rem;
    font-weight: 900;
}

.product-summary {
    color: var(--muted, #666b6d);
    font-size: 1.03rem;
}

.product-inquiry-box {
    margin-top: 28px;
    padding: 22px;
    background: var(--soft, #f2f4f6);
    border-left: 4px solid var(--accent, #d10f14);
    border-radius: 8px;
}

.product-inquiry-box h2 {
    margin: 0 0 8px;
}

.product-information-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.product-info-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line, #d4d9de);
    border-radius: 14px;
}

.product-info-panel h2 {
    margin: 4px 0 14px;
}

.product-spec-list {
    margin: 0;
}

.product-spec-list div {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    border-bottom: 1px solid #edf0f2;
}

.product-spec-list dt {
    color: var(--muted, #666b6d);
    font-weight: 800;
}

.product-spec-list dd {
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.training-callout {
    margin-top: 24px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-dark, #17324a), var(--navy, #2d4f6f));
    border-radius: 14px;
}

.training-callout h2 {
    margin: 4px 0 8px;
}

.training-callout p {
    max-width: 720px;
    margin: 0;
    color: #d7e0e6;
}

@media (max-width: 1050px) {
    .live-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .live-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-grid,
    .product-information-grid {
        grid-template-columns: 1fr;
    }

    .training-callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .catalog-search {
        display: grid;
    }

    .catalog-search button {
        min-height: 50px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-product-grid {
        grid-template-columns: 1fr;
    }

    .live-product-image {
        height: 280px;
    }

    .product-detail-grid {
        padding: 20px;
    }

    .product-detail-image {
        min-height: 320px;
    }

    .catalog-pagination {
        flex-wrap: wrap;
        gap: 14px;
    }
}


/* Catalog polish v0.4 */

.live-product-card {
    height: 100%;
}

.live-product-image {
    position: relative;
    width: 100%;
    border: 0;
    cursor: zoom-in;
    overflow: hidden;
    font: inherit;
}

.live-product-image img {
    transition: transform .28s ease;
}

.live-product-image:hover img,
.live-product-image:focus-visible img {
    transform: scale(1.06);
}

.live-product-image:focus-visible {
    outline: 3px solid var(--accent, #d10f14);
    outline-offset: -3px;
}

.image-zoom-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 32, 45, .82);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .03em;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.live-product-image:hover .image-zoom-label,
.live-product-image:focus-visible .image-zoom-label {
    opacity: 1;
    transform: translateY(0);
}

.live-product-body {
    min-height: 248px;
}

.live-product-card h2 {
    min-height: 2.75em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-product-card p {
    min-height: 3.9em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.catalog-lightbox[hidden] {
    display: none;
}

.catalog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.catalog-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 10, 14, .88);
    cursor: zoom-out;
}

.catalog-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1000px);
    max-height: 90vh;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.catalog-lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 48px);
    object-fit: contain;
}

.catalog-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--accent, #d10f14);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .live-product-body {
        min-height: auto;
    }

    .live-product-card h2,
    .live-product-card p {
        min-height: auto;
    }

    .catalog-lightbox {
        padding: 14px;
    }

    .catalog-lightbox-dialog {
        padding: 14px;
    }

    .catalog-lightbox-close {
        top: 8px;
        right: 8px;
    }
}
