/* All storefront styling is scoped to prevent dashboard CSS conflicts. */
.ps-store {
    --ps-blue:#175cff;
    --ps-navy:#101e35;
    --ps-muted:#53637c;
    --ps-border:#e5eaf3;
    font-family:inherit;
    color:var(--ps-navy);
    background:#fff;
    width:100%;
    min-height:70vh;
    overflow:hidden;
}
.ps-store *, .ps-store *:before, .ps-store *:after {
    box-sizing:border-box;
}
.ps-store a { text-decoration:none; }
.ps-wrap {
    max-width:1400px;
    margin:auto;
    padding:0 24px;
}
.ps-hero {
    background:linear-gradient(115deg,#f3f7ff 0%,#fff 63%,#eef3ff 100%);
    border-bottom:1px solid var(--ps-border);
}
.ps-hero-inner {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:35px;
    align-items:center;
    min-height:355px;
    padding-top:30px;
    padding-bottom:30px;
}
.ps-kicker {
    display:inline-block;
    color:var(--ps-blue);
    background:#e7efff;
    padding:8px 12px;
    border-radius:100px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.6px;
}
.ps-hero h1 {
    color:var(--ps-navy);
    font-size:clamp(34px,4.5vw,62px);
    line-height:1.08;
    letter-spacing:-1.5px;
    margin:16px 0;
    font-weight:850;
}
.ps-hero h1 span,.ps-heading h2 span { color:var(--ps-blue); }
.ps-hero p {
    color:var(--ps-muted);
    font-size:17px;
    line-height:1.7;
    max-width:600px;
}
.ps-hero-photo {
    height:315px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:24px;
}
.ps-hero-photo img {
    display:block!important;
    width:100%!important;
    max-width:450px!important;
    height:100%!important;
    max-height:315px!important;
    object-fit:contain!important;
}
.ps-benefits {
    display:flex;
    flex-wrap:wrap;
    gap:22px;
    margin-top:25px;
    font-size:13px;
    font-weight:750;
}
.ps-benefits span { white-space:nowrap; }
.ps-categories {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:22px 0;
}
.ps-category {
    background:#f1f5fc!important;
    color:#28405f!important;
    border:1px solid transparent!important;
    border-radius:50px!important;
    padding:12px 20px!important;
    font-weight:700;
    cursor:pointer;
    font-size:14px;
}
.ps-category.ps-active {
    background:var(--ps-blue)!important;
    color:#fff!important;
}
.ps-heading { margin:10px 0 24px; }
.ps-heading h2 {
    font-size:clamp(28px,3vw,38px);
    letter-spacing:-1px;
    color:var(--ps-navy);
    margin:0 0 6px;
}
.ps-heading p { color:var(--ps-muted); margin:0; }
.ps-product {
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    gap:30px;
    padding:22px;
    margin-bottom:22px;
    border:1px solid var(--ps-border);
    border-radius:24px;
    background:#fff;
    box-shadow:0 12px 38px rgba(16,30,53,.055);
    min-width:0;
}
.ps-gallery { min-width:0; width:100%; }
.ps-main-photo {
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    height:350px;
    width:100%;
    min-width:0;
    padding:12px;
    border-radius:17px;
    background:#f4f6fa;
    overflow:hidden;
}
.ps-main-photo > img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:325px!important;
    object-fit:contain!important;
}
.ps-prev,.ps-next {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#172c4d!important;
    box-shadow:0 3px 12px #0002;
    cursor:pointer;
    font-size:28px;
    line-height:1;
}
.ps-prev { left:10px; }
.ps-next { right:10px; }
.ps-thumbs {
    display:flex;
    gap:10px;
    margin-top:10px;
    overflow-x:auto;
    padding:2px;
}
.ps-thumb {
    flex:0 0 76px!important;
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    max-width:76px!important;
    padding:4px!important;
    border:2px solid #e0e6f0!important;
    border-radius:11px!important;
    background:#fff!important;
    cursor:pointer;
    overflow:hidden;
}
.ps-thumb.ps-chosen { border-color:var(--ps-blue)!important; }
.ps-thumb img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
}
.ps-info { min-width:0; align-self:center; }
.ps-info h2 {
    color:var(--ps-navy);
    font-size:clamp(24px,2.8vw,35px);
    line-height:1.2;
    margin:13px 0 10px;
}
.ps-price {
    color:var(--ps-blue);
    font-size:clamp(29px,3vw,39px);
    font-weight:850;
    margin:12px 0;
}
.ps-desc {
    color:var(--ps-muted);
    line-height:1.8;
    white-space:pre-line;
    overflow-wrap:anywhere;
    margin:14px 0 20px;
}
.ps-tag {
    display:inline-block;
    background:#eaf1ff;
    color:var(--ps-blue);
    border-radius:30px;
    padding:7px 11px;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}
.ps-actions,.ps-payment {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}
.ps-btn {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    min-height:47px;
    padding:12px 21px!important;
    background:var(--ps-blue)!important;
    color:#fff!important;
    border:1px solid var(--ps-blue)!important;
    border-radius:12px!important;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    text-align:center;
    max-width:100%;
}
.ps-btn-light {
    color:var(--ps-blue)!important;
    background:#fff!important;
}
.ps-hint {
    font-size:13px;
    color:var(--ps-muted);
}
.ps-manual { flex-basis:100%; color:var(--ps-muted); }
.ps-manual summary { cursor:pointer; margin:10px 0; }
.ps-manual form { display:flex; flex-wrap:wrap; gap:10px; }
.ps-manual input {
    border:1px solid #cad4e3;
    padding:12px;
    border-radius:10px;
    min-width:180px;
}
.ps-breadcrumb {
    color:var(--ps-muted);
    padding:25px 0;
    font-size:14px;
}
.ps-breadcrumb a { color:var(--ps-blue); }
.ps-empty {
    text-align:center;
    padding:60px 20px;
    border:1px solid var(--ps-border);
    border-radius:20px;
}
.ps-hidden { display:none!important; }
@media(max-width:850px) {
    .ps-hero-inner { grid-template-columns:1fr 0.75fr; }
    .ps-product { gap:18px; }
    .ps-main-photo { height:290px; }
}
@media(max-width:680px) {
    .ps-wrap { padding-left:14px; padding-right:14px; }
    .ps-hero-inner { grid-template-columns:1fr; gap:8px; }
    .ps-hero-photo { height:210px; }
    .ps-hero-photo img { max-height:210px!important; }
    .ps-hero p { font-size:15px; }
    .ps-benefits { gap:12px; }
    .ps-categories { flex-wrap:nowrap; overflow-x:auto; }
    .ps-category { white-space:nowrap; }
    .ps-product { grid-template-columns:1fr; padding:12px; }
    .ps-main-photo { height:300px; }
    .ps-main-photo > img { max-height:275px!important; }
    .ps-info { padding:7px; }
    .ps-actions .ps-btn { flex:1; }
}

/* NFC PREMIUM STORE GRID V2 */
.ps-store #ps-products ~ .ps-product {
    display: inline-flex !important;
    box-sizing: border-box !important;
    vertical-align: top;
    width: calc(16.666667% - 13px) !important;
    min-width: 0 !important;
    margin: 0 6px 18px !important;
    padding: 10px !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left;
    border: 1px solid var(--ps-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(16,30,53,.045);
    overflow: hidden;
}
.ps-store #ps-products ~ .ps-product .ps-gallery {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
}
.ps-store #ps-products ~ .ps-product .ps-main-photo {
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
    width: 100% !important;
    overflow: hidden;
    border-radius: 9px;
    background: #f7f9fc;
}
.ps-store #ps-products ~ .ps-product .ps-main-photo > img,
.ps-store #ps-products ~ .ps-product .ps-current {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}
.ps-store #ps-products ~ .ps-product .ps-thumbs {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 7px;
    overflow-x: auto;
}
.ps-store #ps-products ~ .ps-product .ps-thumb {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    padding: 2px;
    overflow: hidden;
}
.ps-store #ps-products ~ .ps-product .ps-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.ps-store #ps-products ~ .ps-product .ps-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    min-width: 0;
    padding: 2px 0 !important;
}
.ps-store #ps-products ~ .ps-product .ps-info h2 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}
.ps-store #ps-products ~ .ps-product .ps-tag {
    font-size: 10px;
}
.ps-store #ps-products ~ .ps-product .ps-price {
    font-size: 19px;
    font-weight: 750;
}
.ps-store #ps-products ~ .ps-product .ps-desc {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}
.ps-store #ps-products ~ .ps-product .ps-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}
.ps-store #ps-products ~ .ps-product .ps-actions .ps-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 10px 7px;
    font-size: 12px;
}
@media (max-width: 1100px) {
    .ps-store #ps-products ~ .ps-product {
        width: calc(25% - 13px) !important;
    }
}
@media (max-width: 760px) {
    .ps-store #ps-products ~ .ps-product {
        width: calc(33.333333% - 13px) !important;
    }
    .ps-store #ps-products ~ .ps-product .ps-main-photo {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
}
@media (max-width: 520px) {
    .ps-store #ps-products ~ .ps-product {
        width: calc(50% - 13px) !important;
        margin: 0 4px 12px !important;
        padding: 8px !important;
    }
    .ps-store #ps-products ~ .ps-product .ps-main-photo {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }
    .ps-store #ps-products ~ .ps-product .ps-info h2 {
        font-size: 13px;
    }
    .ps-store #ps-products ~ .ps-product .ps-price {
        font-size: 17px;
    }
}


/* Dedicated responsive shop product grid */
.ps-store .ps-product-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
    margin: 0 0 28px;
}
.ps-store .ps-product-grid > .ps-product {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    border: 1px solid var(--ps-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(16,30,53,.05);
}
.ps-store .ps-product-grid .ps-gallery {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
}
.ps-store .ps-product-grid .ps-main-photo {
    width: 100% !important;
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
    overflow: hidden;
    background: #f7f9fc;
    border-radius: 9px;
}
.ps-store .ps-product-grid .ps-main-photo img,
.ps-store .ps-product-grid .ps-current {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}
.ps-store .ps-product-grid .ps-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding: 3px 0 !important;
}
.ps-store .ps-product-grid .ps-info h2 {
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    margin: 0;
}
.ps-store .ps-product-grid .ps-price {
    font-size: 19px;
    font-weight: 750;
}
.ps-store .ps-product-grid .ps-desc {
    font-size: 12px;
    line-height: 1.5;
}
.ps-store .ps-product-grid .ps-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}
.ps-store .ps-product-grid .ps-actions .ps-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
    font-size: 12px;
}
@media (max-width: 1200px) {
    .ps-store .ps-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 800px) {
    .ps-store .ps-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 540px) {
    .ps-store .ps-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .ps-store .ps-product-grid .ps-main-photo {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }
    .ps-store .ps-product-grid .ps-info h2 {
        font-size: 13px;
    }
    .ps-store .ps-product-grid .ps-price {
        font-size: 17px;
    }
}
