/* ═══════════════════════════════════════════════
   RIFSTOCK PRO STORE — v2.0 CSS
   Holographic, Dynamic, Tactical B2B Design
   ═══════════════════════════════════════════════ */

/* Global Overrides */
.store-body {
    background: var(--bg);
}

#store-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Navbar Adjusment */
.cart-badge {
    background: var(--gold);
    color: var(--bg);
    padding: 0 0.4rem;
    border-radius: 100px;
    font-weight: 900;
    font-family: var(--disp);
    margin-left: 0.3rem;
}

/* ── V2 PRO HERO ── */
.store-hero {
    padding-top: 140px;
    padding-bottom: 5rem;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--w05);
    overflow: hidden;
}

.store-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.he-line {
    height: 1px;
    width: 30px;
    background: var(--gold);
}

.he-text {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--gold);
    font-family: var(--sans);
}

.store-h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.store-lead {
    font-size: 0.9rem;
    color: var(--w50);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-family: var(--sans);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-left: 2px solid var(--w12);
    padding-left: 1.5rem;
}

.h-stat {
    display: flex;
    flex-direction: column;
}

.hs-v {
    font-family: var(--disp);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--w);
    line-height: 1;
}

.hs-s {
    font-size: 0.9rem;
    color: var(--w30);
}

.hs-l {
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--w30);
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
    font-family: var(--sans);
}

.hs-div {
    width: 1px;
    height: 30px;
    background: var(--w05);
}

/* Hologram Viewer */
.hero-holo {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--w12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
}

.holo-ring--1 {
    width: 340px;
    height: 340px;
}

.holo-ring--2 {
    width: 260px;
    height: 260px;
    border-style: solid;
    border-color: var(--w05);
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.holo-core {
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 2;
}

#holo-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--gd));
}

.holo-tag {
    position: absolute;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--w12);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.holo-tag::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--w20);
}

.holo-tag--tl {
    top: -20px;
    left: -60px;
}

.holo-tag--tl::before {
    right: -30px;
    top: 50%;
}

.holo-tag--br {
    bottom: -10px;
    right: -70px;
}

.holo-tag--br::before {
    left: -30px;
    top: 50%;
}

.ht-val {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
}

.ht-u {
    font-size: 0.6rem;
    color: var(--w50);
}

.ht-lbl {
    font-size: 0.4rem;
    letter-spacing: 0.2em;
    color: var(--w30);
    text-transform: uppercase;
}

/* ── COMMAND BAR (Filters) ── */
.command-bar-wrap {
    position: sticky;
    top: 61px;
    z-index: 100;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--w08);
    padding: 1rem 0;
    transition: all 0.3s;
}

.command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cb-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--w05);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--w05);
    flex: 1;
    max-width: 320px;
    transition: border-color 0.3s;
}

.cb-search:focus-within {
    border-color: var(--gold);
}

.cb-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--w);
    font-size: 0.75rem;
    width: 100%;
    font-family: var(--sans);
}

.cb-search svg {
    color: var(--w30);
}

.cb-filters {
    display: flex;
    gap: 0.5rem;
    background: var(--bg2);
    padding: 0.3rem;
    border-radius: 100px;
    border: 1px solid var(--w05);
}

.cb-btn {
    background: transparent;
    border: none;
    color: var(--w30);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--sans);
}

.cb-btn:hover {
    color: var(--w);
}

.cb-btn.active {
    background: var(--w);
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.cb-views {
    display: flex;
    gap: 0.4rem;
}

.view-btn {
    background: var(--bg2);
    border: 1px solid var(--w05);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--w30);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-btn.active {
    color: var(--gold);
    border-color: var(--ga);
    background: rgba(252, 199, 11, 0.05);
}

/* ── PRO PRODUCT GRID ── */
.store-main {
    padding: 4rem 0 6rem;
    position: relative;
    z-index: 2;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 3D Glass Module Card */
.pro-card {
    background: rgba(15, 15, 24, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--w08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.pro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.pro-card:hover {
    border-color: var(--w20);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--w12);
}

.pro-card:hover::before {
    opacity: 1;
}

.pro-card.glow-gold:hover {
    border-color: var(--gold);
    box-shadow: 0 30px 60px rgba(252, 199, 11, 0.08), 0 0 0 1px var(--ga);
}

.pro-card.glow-gold::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(252, 199, 11, 0.1), transparent 40%);
}

.pc-img-wrap {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--w05);
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.01));
    overflow: hidden;
}

.pc-img-wrap svg {
    width: 100px;
    height: 100px;
    opacity: 0.15;
    stroke: var(--w);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(40px);
    /* 3D pop */
}

.pro-card:hover .pc-img-wrap svg {
    opacity: 0.5;
    transform: translateZ(60px) scale(1.1);
    stroke: var(--gold);
}

/* Stock Pulse */
.pc-stock {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 3;
}

.pc-stock.in {
    color: var(--grn);
}

.pc-stock.out {
    color: var(--red);
}

.pc-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.pc-cat {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--w30);
    margin-bottom: 0.4rem;
    letter-spacing: 0.1em;
}

.pc-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Hidden Specs expansion */
.pc-specs {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.7rem;
    color: var(--w50);
    font-family: var(--sans);
}

.pro-card:hover .pc-specs {
    height: 80px;
    opacity: 1;
    margin-bottom: 1rem;
}

.pc-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.pc-specs li::before {
    content: '→';
    color: var(--gold);
    font-family: var(--mono);
}

.pc-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.pc-price {
    display: flex;
    flex-direction: column;
}

.pc-price-lbl {
    font-size: 0.45rem;
    letter-spacing: 0.1em;
    color: var(--w30);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.pc-price-val {
    font-family: var(--disp);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--w);
    line-height: 1;
}

.pc-add {
    background: var(--w05);
    border: 1px solid var(--w12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w);
    cursor: pointer;
    transition: all 0.3s;
}

.pc-add:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    transform: rotate(90deg);
}

/* Add Animation State */
.pc-add.added {
    background: var(--grn);
    border-color: var(--grn);
    color: var(--bg);
    transform: none;
    pointer-events: none;
}

/* ── ASSURANCE STRIP ── */
.assurance-strip {
    border-top: 1px solid var(--w05);
    border-bottom: 1px solid var(--w05);
    background: var(--bg1);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.assurance-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.assure-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.ai-icon {
    font-size: 1.8rem;
    filter: sepia(1) hue-rotate(330deg) saturate(3);
}

.ai-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.ai-text p {
    font-size: 0.75rem;
    color: var(--w30);
    line-height: 1.6;
}

/* ── PRO PROCUREMENT DRAWER ── */
.pro-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 100vw;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--w12);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.pro-drawer.open {
    transform: translateX(0);
}

.drawer-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--ga), transparent 70%);
    pointer-events: none;
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--w05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dh-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--w50);
    cursor: pointer;
    transition: 0.3s;
}

.drawer-close:hover {
    color: var(--w);
    transform: rotate(90deg);
}

.shipping-prog-wrap {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--w05);
    background: var(--w05);
}

.sp-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.8rem;
    font-family: var(--sans);
}

.sp-bar-bg {
    height: 4px;
    background: var(--w12);
    border-radius: 4px;
    overflow: hidden;
}

.sp-bar-fill {
    height: 100%;
    background: var(--grn);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.di-item {
    display: flex;
    gap: 1.2rem;
}

.di-img {
    width: 80px;
    height: 80px;
    background: var(--surf);
    border: 1px solid var(--w08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.di-img svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
    opacity: 0.5;
}

.di-info {
    flex: 1;
}

.di-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.di-cat {
    font-size: 0.5rem;
    color: var(--w30);
    font-family: var(--mono);
    display: block;
    margin-bottom: 0.5rem;
}

.di-ctrls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.di-price {
    font-family: var(--disp);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--w);
}

.qty-pill {
    display: inline-flex;
    background: var(--w05);
    border: 1px solid var(--w12);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    align-items: center;
    gap: 0.8rem;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--w50);
    cursor: pointer;
    transition: color 0.3s;
}

.qty-btn:hover {
    color: var(--w);
}

.qty-v {
    font-size: 0.7rem;
    font-family: var(--mono);
}

.drawer-footer {
    padding: 2rem;
    background: var(--bg1);
    border-top: 1px solid var(--w12);
    position: relative;
}

.df-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--w50);
}

.df-val {
    color: var(--w);
    font-family: var(--mono);
}

.df-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 1.5rem 0;
    border-top: 1px solid var(--w05);
    padding-top: 1.5rem;
}

.df-total-row span {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--w50);
}

.df-total-row strong {
    font-family: var(--disp);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
}

.checkout-btn {
    height: 60px;
    font-size: 0.7rem;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.secure-badge {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.55rem;
    color: var(--w30);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--mono);
}

/* Resp */
@media(max-width: 900px) {
    .store-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .store-lead {
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        border-left: none;
        padding-left: 0;
        flex-wrap: wrap;
    }

    .command-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .assurance-inner {
        grid-template-columns: 1fr;
    }
}