/* =========================================================
   PLAYMORE MODERN WOOCOMMERCE SHOP
   Add to: your-child-theme/assets/css/playmore-shop.css
   ========================================================= */

:root {
    --pm-bg: #080808;
    --pm-surface: #111111;
    --pm-surface-2: #171717;
    --pm-text: #f7f7f7;
    --pm-muted: #a4a4a4;
    --pm-line: rgba(255, 255, 255, .10);
    --pm-red: #c40006;
    --pm-red-dark: #990005;
    --pm-radius-xl: 30px;
    --pm-radius-lg: 22px;
    --pm-radius-md: 16px;
    --pm-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
    background: #f5f5f3;
}

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
    width: 100%;
    max-width: none;
}

.pm-shop-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 28px auto 80px;
}

/* HERO */
.pm-shop-hero {
    position: relative;
    overflow: hidden;
    min-height: 370px;
    padding: clamp(34px, 5vw, 72px);
    border-radius: var(--pm-radius-xl);
    background:
        radial-gradient(circle at 75% 35%, rgba(196, 0, 6, .34), transparent 27%),
        linear-gradient(120deg, #070707 0%, #111 58%, #1a090a 100%);
    color: var(--pm-text);
    box-shadow: var(--pm-shadow);
}

.pm-shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to right, black, transparent 78%);
}

.pm-shop-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 50px;
    align-items: center;
}

.pm-shop-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.pm-shop-title {
    max-width: 780px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 800;
}

.pm-shop-description,
.pm-shop-description p {
    max-width: 680px;
    margin: 0;
    color: #bebebe;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
}

.pm-shop-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.pm-shop-trust span {
    position: relative;
    padding: 10px 14px 10px 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 600;
}

.pm-shop-trust span::before {
    content: "✓";
    position: absolute;
    left: 13px;
    color: #ff555a;
}

.pm-shop-hero__visual {
    position: relative;
    min-height: 240px;
}

.pm-hero-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) rotate(-7deg);
    color: rgba(255, 255, 255, .94);
    font-size: clamp(86px, 11vw, 150px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.08em;
    text-shadow: 0 15px 60px rgba(196, 0, 6, .5);
}

.pm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.pm-orb--one {
    width: 210px;
    height: 210px;
    right: 10%;
    top: 5%;
    background: linear-gradient(145deg, #e3070d, #730004);
    box-shadow: 0 30px 80px rgba(196, 0, 6, .38);
}

.pm-orb--two {
    width: 92px;
    height: 92px;
    left: 7%;
    bottom: 4%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

/* TOOLBAR */
.pm-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 36px 0 22px;
    padding: 0 4px;
}

.pm-shop-toolbar .woocommerce-result-count {
    float: none;
    margin: 0;
    color: #656565;
    font-size: 14px;
    font-weight: 600;
}

.pm-shop-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-sort-label {
    color: #777;
    font-size: 13px;
    font-weight: 700;
}

.pm-shop-toolbar .woocommerce-ordering {
    float: none;
    margin: 0;
}

.pm-shop-toolbar .woocommerce-ordering select {
    min-width: 190px;
    height: 46px;
    padding: 0 42px 0 15px;
    border: 1px solid #dededb;
    border-radius: 14px;
    background: #fff;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

/* PRODUCT GRID */
.pm-products-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 !important;
    padding: 0 !important;
}

.pm-products-wrap ul.products::before,
.pm-products-wrap ul.products::after {
    display: none !important;
}

.pm-products-wrap ul.products li.product.pm-product-card {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none;
}

.pm-product-card__inner {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e6e6e2;
    border-radius: var(--pm-radius-lg);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .045);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.pm-product-card:hover .pm-product-card__inner {
    transform: translateY(-6px);
    border-color: #d4d4cf;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .10);
}

.pm-product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 10px 10px 0;
    border-radius: 16px;
    background: #f0f0ee;
}

.pm-product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pm-product-card__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.pm-product-card:hover .pm-product-card__media img {
    transform: scale(1.045);
}

.pm-product-card__badges {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.pm-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pm-badge--sale {
    background: var(--pm-red);
    color: #fff;
}

.pm-badge--stock {
    background: #1d1d1d;
    color: #fff;
}

.pm-product-card__quick {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(12, 12, 12, .92);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(8px);
}

.pm-product-card:hover .pm-product-card__quick {
    opacity: 1;
    transform: translateY(0);
}

.pm-product-card__body {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 18px 18px 18px;
}

.pm-product-card__category,
.pm-product-card__category a {
    margin: 0 0 7px;
    color: #8a8a8a !important;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.pm-product-card__title {
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
    font-weight: 750 !important;
    letter-spacing: -.02em;
}

.pm-product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.pm-product-card__rating {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    margin-top: 10px;
}

.pm-product-card__rating .star-rating {
    float: none;
    margin: 0;
    font-size: 13px;
    color: #e1a500;
}

.pm-rating-count {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.pm-product-card__bottom {
    margin-top: auto;
    padding-top: 18px;
}

.pm-product-card__price {
    min-height: 30px;
    margin-bottom: 12px;
    color: #111;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.pm-product-card__price del {
    margin-right: 6px;
    color: #949494;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
}

.pm-product-card__price ins {
    color: var(--pm-red);
    text-decoration: none;
}

.pm-product-card__cart .button,
.pm-product-card__cart a.button,
.pm-product-card__cart .added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 11px 16px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .015em;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease !important;
}

.pm-product-card__cart .button:hover,
.pm-product-card__cart a.button:hover,
.pm-product-card__cart .added_to_cart:hover {
    background: var(--pm-red) !important;
    transform: translateY(-1px);
}

.pm-product-card__cart .button.loading {
    opacity: .7;
}

.pm-product-card__cart .button.added {
    display: none !important;
}

/* NOTICES */
.pm-shop-shell .woocommerce-notices-wrapper {
    margin-top: 24px;
}

.pm-shop-shell .woocommerce-message,
.pm-shop-shell .woocommerce-info,
.pm-shop-shell .woocommerce-error {
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

/* PAGINATION */
.pm-shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pm-shop-pagination .woocommerce-pagination {
    float: none;
}

.pm-shop-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pm-shop-pagination .page-numbers li {
    border: 0 !important;
}

.pm-shop-pagination .page-numbers a,
.pm-shop-pagination .page-numbers span {
    display: grid !important;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px !important;
    border: 1px solid #deded9 !important;
    border-radius: 12px;
    background: #fff !important;
    color: #222 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.pm-shop-pagination .page-numbers .current,
.pm-shop-pagination .page-numbers a:hover {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
}

/* EMPTY STATE */
.pm-shop-empty {
    margin-top: 30px;
    padding: 40px;
    border-radius: var(--pm-radius-lg);
    background: #fff;
}

/* Remove common theme sidebar spacing on product archives. */
body.woocommerce-shop #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* TABLET */
@media (max-width: 1120px) {
    .pm-products-wrap ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pm-shop-hero__inner {
        grid-template-columns: 1fr .5fr;
    }
}

@media (max-width: 820px) {
    .pm-shop-shell {
        width: min(100% - 24px, 1440px);
        margin-top: 14px;
    }

    .pm-shop-hero {
        min-height: auto;
        padding: 36px 26px;
        border-radius: 22px;
    }

    .pm-shop-hero__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pm-shop-hero__visual {
        display: none;
    }

    .pm-products-wrap ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pm-product-card__quick {
        opacity: 1;
        transform: none;
    }
}

/* MOBILE */
@media (max-width: 560px) {
    .pm-shop-shell {
        width: min(100% - 20px, 1440px);
        margin-bottom: 50px;
    }

    .pm-shop-title {
        font-size: clamp(38px, 12vw, 54px);
    }

    .pm-shop-description,
    .pm-shop-description p {
        font-size: 15px;
        line-height: 1.55;
    }

    .pm-shop-trust {
        gap: 7px;
    }

    .pm-shop-trust span {
        padding: 8px 11px 8px 28px;
        font-size: 11px;
    }

    .pm-shop-trust span::before {
        left: 11px;
    }

    .pm-shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
    }

    .pm-shop-toolbar__sort,
    .pm-shop-toolbar .woocommerce-ordering,
    .pm-shop-toolbar .woocommerce-ordering select {
        width: 100%;
    }

    .pm-sort-label {
        display: none;
    }

    .pm-products-wrap ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pm-product-card__media {
        margin: 6px 6px 0;
        border-radius: 13px;
    }

    .pm-product-card__body {
        min-height: 202px;
        padding: 13px 12px 12px;
    }

    .pm-product-card__category,
    .pm-product-card__category a {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .pm-product-card__title {
        font-size: 14px !important;
        line-height: 1.28 !important;
    }

    .pm-product-card__rating {
        margin-top: 7px;
    }

    .pm-rating-count {
        display: none;
    }

    .pm-product-card__bottom {
        padding-top: 12px;
    }

    .pm-product-card__price {
        min-height: 24px;
        margin-bottom: 9px;
        font-size: 16px;
    }

    .pm-product-card__price del {
        display: block;
        margin: 0 0 1px;
        font-size: 11px;
    }

    .pm-product-card__cart .button,
    .pm-product-card__cart a.button,
    .pm-product-card__cart .added_to_cart {
        min-height: 42px;
        padding: 9px 8px !important;
        border-radius: 11px !important;
        font-size: 11px !important;
    }

    .pm-product-card__quick {
        display: none;
    }

    .pm-badge {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 9px;
    }
}