﻿/* QWFIW — PREMIUM GLASS SHOP */

.shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.shop-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.shop-window {
    width: min(960px,100%);
    max-height: min(90vh,850px);
    overflow: auto;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 15% 0%,rgba(255,255,255,.09),transparent 38%),
        linear-gradient(145deg,#19191c,#09090b 75%);
    box-shadow: 0 35px 110px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.08);
    color: #f5f5f5;
    transform: translateY(25px) scale(.97);
    transition: transform .35s ease;
    font-family: inherit;
}

.shop-overlay.is-open .shop-window {
    transform: translateY(0) scale(1);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.shop-header .shop-brand-title {
    margin: 8px 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 25px rgba(255,255,255,.2);
}

.shop-header p {
    margin: 0;
    color: #999;
    font-size: 13px;
    letter-spacing: 1px;
}

.shop-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: white;
    font-size: 25px;
    cursor: pointer;
    transition: .25s;
}

.shop-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

.shop-toolbar {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 15px;
    flex-wrap: wrap;
}

.shop-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    flex: 1;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    color: #aaa;
    transition: .25s;
}

.shop-search-wrap:focus-within {
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 0 20px rgba(255,255,255,.07);
}

.shop-search-wrap input {
    width: 100%;
    padding: 13px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
}

.shop-search-wrap input::placeholder {
    color: #777;
}

.shop-categories {
    display: flex;
    gap: 7px;
}

.shop-filter {
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #999;
    font-size: 9px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: .25s;
}

.shop-filter:hover {
    border-color: rgba(255,255,255,.5);
    color: white;
}

.shop-filter.is-active {
    background: #f2f2f2;
    color: #111;
    border-color: #f2f2f2;
    box-shadow: 0 0 22px rgba(255,255,255,.12);
}

.shop-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px 2px 19px;
    color: #777;
    font-size: 9px;
    letter-spacing: 1.6px;
}

.shop-stats i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #d7d7d7;
    box-shadow: 0 0 12px #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.shop-product {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.018));
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    animation: shopCardIn .55s ease both;
}

.shop-product:nth-child(2) {
    animation-delay: .1s;
}

.shop-product:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 22px 45px rgba(0,0,0,.4), 0 0 25px rgba(255,255,255,.045);
}

.shop-product[hidden] {
    display: none;
}

.shop-product-art {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 70% 25%,rgba(255,255,255,.25),transparent 35%),
        radial-gradient(ellipse at 20% 100%,rgba(140,140,140,.3),transparent 50%),
        linear-gradient(135deg,#333,#101012 70%);
    color: #fff;
}

.shop-product-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    top: -85px;
    right: -30px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,.025), 0 0 0 38px rgba(255,255,255,.02);
}

.shop-product-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 110px;
    height: 110px;
    left: 35%;
    top: 15%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 25px;
    transform: rotate(35deg);
    background: linear-gradient(135deg,rgba(255,255,255,.12),transparent);
    backdrop-filter: blur(4px);
}

.shop-art-two {
    background:
        radial-gradient(ellipse at 25% 30%,rgba(210,210,210,.25),transparent 38%),
        radial-gradient(ellipse at 90% 90%,rgba(100,100,100,.3),transparent 45%),
        linear-gradient(135deg,#29292d,#09090b 75%);
}

.shop-product-art span {
    font-size: 55px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,.55);
    text-shadow: 0 0 25px rgba(255,255,255,.2);
}

.shop-product-art b {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(255,255,255,.8);
}

.shop-product-info {
    padding: 21px;
}

.shop-product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.shop-stock {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #aaa;
}

.shop-price {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,.15);
}

.shop-product h3 {
    margin: 16px 0 9px;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
}

.shop-product p {
    min-height: 58px;
    margin: 0 0 20px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.7;
}

.shop-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: #eee;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    transition: .25s ease;
}

.shop-buy:hover {
    background: #f1f1f1;
    color: #111;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255,255,255,.16);
    transform: translateY(-2px);
}

.shop-buy span {
    font-size: 15px;
}

.shop-empty {
    grid-column: 1/-1;
    padding: 35px;
    text-align: center;
    color: #888;
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #777;
    font-size: 8px;
    letter-spacing: 1.5px;
}

body.shop-is-open {
    overflow: hidden;
}

/* FLOATING SHOP BUTTON */

.shop-fab {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px 11px 11px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: linear-gradient(145deg,rgba(40,40,43,.92),rgba(10,10,12,.96));
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 38px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.15);
    color: #f5f5f5;
    font: 700 10px/1 inherit;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .25s ease;
}

.shop-fab:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.7);
    box-shadow: 0 15px 45px rgba(0,0,0,.55), 0 0 22px rgba(255,255,255,.1);
}

.shop-fab-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
}

.shop-fab-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-fab-arrow {
    margin-left: 3px;
    color: #aaa;
    font-size: 14px;
}

@keyframes shopCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */

@media(max-width:600px) {
    .shop-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .shop-window {
        max-height: 94vh;
        padding: 19px;
        border-radius: 21px;
        margin: auto 0;
    }

    .shop-header .shop-brand-title {
        font-size: 25px;
        letter-spacing: 3px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-product-art {
        height: 135px;
    }

    .shop-toolbar {
        align-items: stretch;
    }

    .shop-categories {
        justify-content: space-between;
    }

    .shop-filter {
        flex: 1;
        padding: 10px 7px;
    }

    .shop-stats {
        font-size: 8px;
    }

    .shop-product p {
        min-height: auto;
    }

    .shop-footer {
        font-size: 7px;
    }

    .shop-fab {
        left: 14px;
        bottom: 14px;
        padding: 9px 14px 9px 9px;
        gap: 9px;
    }

    .shop-fab-icon {
        width: 31px;
        height: 31px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .shop-product,
    .shop-window,
    .shop-overlay,
    .shop-buy,
    .shop-fab {
        animation: none;
        transition: none;
    }
}

/* QWFIW custom shop artwork */
.shop-art-one {
    background: url("./images/qwfiw-development-cover.png") center / cover no-repeat !important;
}
.shop-art-two {
    background: url("./images/qwfiw-services-cover.png") center / cover no-repeat !important;
}
.shop-product-art::before,
.shop-product-art::after {
    display: none !important;
}
.shop-product-art span,
.shop-product-art b {
    visibility: hidden !important;
}