
/* NFCproduct Premium Store V1
   Public storefront only. No checkout or QR logic changes. */

.ps-store {
    --ps-blue:#2257e7;
    --ps-navy:#14213a;
    --ps-muted:#64748b;
    --ps-border:#e4eaf3;
    background:#fbfcff;
}

.ps-store .ps-wrap {
    max-width:1320px;
}

.ps-store .ps-hero {
    background:linear-gradient(120deg,#edf3ff 0%,#ffffff 58%,#f2f6ff 100%);
}

.ps-store .ps-hero-inner {
    min-height:360px;
    gap:40px;
}

.ps-store .ps-hero-photo {
    border-radius:28px;
    background:rgba(255,255,255,.55);
}

.ps-store .ps-heading {
    margin:22px 0 26px;
}

.ps-store .ps-heading h2 {
    font-weight:850;
    letter-spacing:-1.1px;
}

.ps-store .ps-categories {
    gap:10px;
}

.ps-store .ps-category {
    transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}

.ps-store .ps-category:hover {
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(25,55,105,.09);
}

/* Product listing: larger cards than the previous six-column layout. */
.ps-store .ps-product-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:22px !important;
    align-items:stretch;
}

.ps-store .ps-product-grid > .ps-product {
    padding:14px !important;
    gap:13px !important;
    border:1px solid #e5eaf3;
    border-radius:22px;
    background:#fff;
    box-shadow:0 7px 26px rgba(22,43,76,.055);
    transition:transform .2s ease,box-shadow .2s ease;
}

.ps-store .ps-product-grid > .ps-product:hover {
    transform:translateY(-4px);
    box-shadow:0 16px 38px rgba(22,43,76,.11);
}

.ps-store .ps-product-grid .ps-main-photo {
    height:215px !important;
    min-height:215px !important;
    max-height:215px !important;
    border-radius:16px;
    background:linear-gradient(145deg,#f3f6fb,#edf2fa);
}

.ps-store .ps-product-grid .ps-info {
    gap:10px;
    padding:5px 3px 3px !important;
}

.ps-store .ps-product-grid .ps-info h2 {
    font-size:17px;
    line-height:1.4;
    font-weight:750;
    color:#15233d;
}

.ps-store .ps-product-grid .ps-price {
    font-size:23px;
    font-weight:850;
    color:#2257e7;
}

.ps-store .ps-product-grid .ps-desc {
    font-size:13px;
    line-height:1.65;
    color:#64748b;
}

.ps-store .ps-product-grid .ps-actions {
    gap:9px;
}

.ps-store .ps-product-grid .ps-actions .ps-btn {
    min-height:44px;
    padding:11px 10px !important;
    font-size:13px;
    border-radius:12px !important;
}

/* Product details: preserve gallery and payment forms. */
.ps-store > .ps-wrap > .ps-product {
    gap:38px;
    padding:28px;
    border-radius:26px;
    box-shadow:0 12px 40px rgba(22,43,76,.065);
}

.ps-store > .ps-wrap > .ps-product .ps-main-photo {
    height:440px;
    border-radius:20px;
    background:linear-gradient(145deg,#f6f8fc,#edf2fa);
}

.ps-store > .ps-wrap > .ps-product .ps-main-photo > img {
    max-height:410px !important;
}

.ps-store > .ps-wrap > .ps-product .ps-info h2 {
    font-size:clamp(27px,3vw,40px);
    font-weight:850;
    letter-spacing:-.8px;
}

.ps-store > .ps-wrap > .ps-product .ps-price {
    font-size:clamp(32px,3.5vw,44px);
}

.ps-store .ps-btn {
    transition:filter .2s ease,transform .2s ease;
}

.ps-store .ps-btn:hover {
    filter:brightness(.96);
    transform:translateY(-1px);
}

.ps-store .ps-btn:focus-visible,
.ps-store .ps-category:focus-visible,
.ps-store .ps-thumb:focus-visible {
    outline:3px solid #93b4ff;
    outline-offset:3px;
}

@media(max-width:1100px) {
    .ps-store .ps-product-grid {
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:16px !important;
    }
}

@media(max-width:800px) {
    .ps-store .ps-product-grid {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:14px !important;
    }

    .ps-store .ps-product-grid .ps-main-photo {
        height:180px !important;
        min-height:180px !important;
        max-height:180px !important;
    }

    .ps-store > .ps-wrap > .ps-product {
        gap:20px;
        padding:18px;
    }

    .ps-store > .ps-wrap > .ps-product .ps-main-photo {
        height:340px;
    }
}

@media(max-width:540px) {
    .ps-store .ps-wrap {
        padding-left:13px;
        padding-right:13px;
    }

    .ps-store .ps-product-grid {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:11px !important;
    }

    .ps-store .ps-product-grid > .ps-product {
        padding:10px !important;
        border-radius:16px;
        gap:9px !important;
    }

    .ps-store .ps-product-grid .ps-main-photo {
        height:155px !important;
        min-height:155px !important;
        max-height:155px !important;
        padding:6px;
        border-radius:12px;
    }

    .ps-store .ps-product-grid .ps-info h2 {
        font-size:14px;
    }

    .ps-store .ps-product-grid .ps-price {
        font-size:19px;
    }

    .ps-store .ps-product-grid .ps-desc {
        font-size:12px;
    }

    .ps-store .ps-product-grid .ps-actions .ps-btn {
        font-size:12px;
        min-height:41px;
        padding:9px 5px !important;
    }

    .ps-store > .ps-wrap > .ps-product {
        padding:13px;
        border-radius:18px;
    }

    .ps-store > .ps-wrap > .ps-product .ps-main-photo {
        height:300px;
    }

    .ps-store > .ps-wrap > .ps-product .ps-main-photo > img {
        max-height:275px !important;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ps-store .ps-product-grid > .ps-product,
    .ps-store .ps-btn,
    .ps-store .ps-category {
        transition:none;
    }
}
