/* =========================================================
   CUSTOM WOOCOMMERCE SHOP
========================================================= */

:root {
    --void: #07070c;
    --night: #10131f;
    --panel: #161a2c;
    --panel-2: #1b2036;
    --blood: #d6451f;
    --blood-deep: #8f2712;
    --ember: #d9a441;
    --parchment: #fbf7ee;
    --mist: #e4e5e6;
    --text: rgba(243,237,224,0.72);
    --text-dim: rgba(243,237,224,0.56);
    --line: rgba(243,237,224,0.10);
    --line-soft: rgba(243,237,224,0.06);
    --display: 'Cinzel', serif;
    --body: 'Inter', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --container: 1180px;
    --ease: cubic-bezier(.22,1,.36,1);
}


/* =========================================================
   RESET
========================================================= */

.custom-shop-page {
    background: var(--void);
    color: var(--parchment);
    font-family: var(--body);
    overflow: hidden;
}

.custom-shop-page *,
.custom-shop-page *::before,
.custom-shop-page *::after {
    box-sizing: border-box;
}

.custom-shop-page a {
    text-decoration: none;
}

.shop-container {
    width: min(var(--container), calc(100% - 50px));
    margin: 0 auto;
}


/* =========================================================
   SHOP HERO
========================================================= */

.shop-hero {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

}

.shop-stars,
.shop-stars::before,
.shop-stars::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.shop-stars {
    opacity: .65;

   
    background-size:
        170px 170px,
        260px 260px;

    background-position:
        20px 30px,
        100px 80px;
}

.shop-hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;

   background-image: url("../theme/images/bloodmoon.png") !important;
background-size: cover !important;
background-position: center !important;
background-repeat: no-repeat !important;

    filter: blur(1px);
    opacity: .8;
}

.shop-hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 850px;
    padding: 50px 20px;
}

.shop-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: var(--ember);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.shop-eyebrow span {
    width: 35px;
    height: 1px;
    background: var(--ember);
}

.shop-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 85px);
    line-height: .95;
    letter-spacing: 2px;
    color: var(--parchment);
}

.shop-hero-line {
    width: 100px;
    height: 2px;
    margin: 30px auto;
    background: linear-gradient(
        90deg,
        transparent,
        var(--blood),
        var(--ember),
        transparent
    );
}

.shop-hero p {
    max-width: 650px;
    margin: auto;

    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   ORBITS
========================================================= */

.shop-hero-orbit {
    position: absolute;
    z-index: 2;

    width: 580px;
    height: 480px;

    border: 1px solid rgba(217,164,65,.12);
    border-radius: 50%;
}

.orbit-one {
    transform: rotate(25deg);
}

.orbit-two {
    width: 760px;
    height: 400px;
    transform: rotate(-30deg);
}

.orbit-three {
    width: 900px;
    height: 400px;
    transform: rotate(65deg);
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.shop-products-section {
    position: relative;
    padding: 110px 0;
    background: var(--night);
}

.shop-products-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--line);
}


/* =========================================================
   TOP BAR
========================================================= */

.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;

    margin-bottom: 45px;
}

.section-kicker {
    display: block;

    color: var(--ember);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.shop-heading h2 {
    margin: 0 0 15px;

    font-family: var(--display);
    font-size: 42px;
    font-weight: 600;
    color: var(--parchment);
}

.shop-heading p {
    max-width: 570px;
    margin: 0;

    color: var(--text-dim);
    line-height: 1.7;
}


/* =========================================================
   SORT
========================================================= */

.shop-sort {
    min-width: 220px;
}

.sort-label {
    display: block;

    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.woocommerce .woocommerce-ordering {
    float: none;
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    width: 100%;
    padding: 14px 40px 14px 15px;

    border: 1px solid var(--line);
    border-radius: 0;

    background-color: var(--panel);
    color: var(--parchment);

    font-family: var(--body);
    font-size: 12px;

    outline: none;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--ember);
}


/* =========================================================
   CATEGORY NAV
========================================================= */

.shop-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    padding-bottom: 35px;
    margin-bottom: 45px;

    border-bottom: 1px solid var(--line);
}

.shop-category-nav a {
    display: inline-flex;
    align-items: center;

    min-height: 40px;
    padding: 0 18px;

    border: 1px solid var(--line);

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: all .3s var(--ease);
}

.shop-category-nav a:hover,
.shop-category-nav a.active {
    border-color: var(--ember);
    color: var(--parchment);
    background: rgba(217,164,65,.08);
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.custom-product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.custom-product-card {
    position: relative;

    background: var(--panel);

    border: 1px solid var(--line);

    transition:
        transform .45s var(--ease),
        border-color .45s var(--ease),
        box-shadow .45s var(--ease);
}

.custom-product-card:hover {
    transform: translateY(-8px);

    border-color: rgba(217,164,65,.35);

    box-shadow:
        0 25px 70px rgba(0,0,0,.35),
        0 0 35px rgba(214,69,31,.06);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.custom-product-image {
    position: relative;

/*     aspect-ratio: 4 / 5; */

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(214,69,31,.10),
            transparent 55%
        ),
        var(--panel-2);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .7s var(--ease),
        filter .7s var(--ease);
}

.custom-product-card:hover
.custom-product-image img {
    transform: scale(1.06);
    filter: brightness(.78);
}


/* =========================================================
   BADGE
========================================================= */

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 4;

    padding: 8px 12px;

    background: var(--blood);

    color: white;

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 2px;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.product-image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(7,7,12,.55);

    opacity: 0;

    transition: opacity .4s var(--ease);
}

.custom-product-card:hover .product-image-overlay {
    opacity: 1;
}

.quick-view-link {
    display: inline-flex;
    gap: 10px;

    padding: 13px 18px;

    border: 1px solid rgba(251,247,238,.5);

    color: var(--parchment);

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.5px;

    transition: .3s ease;
}

.quick-view-link:hover {
    background: var(--parchment);
    color: var(--void);
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.custom-product-info {
    padding: 27px 25px 25px;
}

.product-category {
    margin-bottom: 10px;

    color: var(--ember);

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-title {
    margin: 0 0 12px;
}

.product-title a {
    color: var(--parchment);

    font-family: var(--display);
    font-size: 24px;
    line-height: 1.25;

    transition: color .3s ease;
}

.product-title a:hover {
    color: var(--ember);
}

.product-short-description {
    min-height: 48px;

    color: var(--text-dim);

    font-size: 13px;
    line-height: 1.65;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--line);
}

.product-price {
    color: var(--ember);

    font-family: var(--display);
    font-size: 20px;
}

.product-price del {
    color: var(--text-dim);
    font-size: 13px;
}

.product-price ins {
    text-decoration: none;
}

.custom-product-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    border: 1px solid rgba(217,164,65,.45);

    color: var(--parchment);

    background: transparent;

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1.3px;

    white-space: nowrap;

    transition: all .3s var(--ease);
}

.custom-product-button:hover {
    background: var(--blood);
    border-color: var(--blood);
    color: white;
}

.custom-product-button span {
    color: var(--ember);
    font-size: 13px;
}

.custom-product-button:hover span {
    color: white;
}


/* =========================================================
   PAGINATION
========================================================= */

.custom-shop-pagination {
    margin-top: 70px;
    text-align: center;
}

.custom-shop-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.custom-shop-pagination li {
    margin: 0;
}

.custom-shop-pagination a,
.custom-shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    border: 1px solid var(--line);

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 11px;

    transition: .3s ease;
}

.custom-shop-pagination a:hover,
.custom-shop-pagination .current {
    border-color: var(--ember);
    background: var(--ember);
    color: var(--void);
}


/* =========================================================
   FILE FORMAT SECTION
========================================================= */

.file-format-section {
    position: relative;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(214,69,31,.07),
            transparent 35%
        ),
        var(--void);
}

.file-format-container {
    width: min(1300px, calc(100% - 50px));
    margin: 0 auto;
}

.file-format-heading {
    text-align: center;
    margin-bottom: 45px;
}

.file-format-heading h2 {
    margin: 0;

    color: var(--blood);

    font-family: var(--display);
    font-size: clamp(35px, 5vw, 58px);

    line-height: 1.1;
    text-transform: uppercase;
}


/* =========================================================
   FILE CARDS
========================================================= */

.file-format-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.file-format-card {
    display: flex;
    align-items: center;
    gap: 25px;

    min-height: 185px;

    padding: 30px 45px;

    border: 1px solid rgba(255,255,255,.05);

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);
}

.epub-card {
    background:
        linear-gradient(
            100deg,
            rgba(126,57,142,.22),
            rgba(126,57,142,.10)
        );
}

.pdf-card {
    background:
        linear-gradient(
            100deg,
            rgba(166,63,63,.22),
            rgba(166,63,63,.10)
        );
}

.format-icon {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
}

.format-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.epub-icon svg circle {
    fill: #b9007b;
}

.pdf-icon svg circle {
    fill: #df2424;
}

.format-content {
    flex: 1;
}

.format-content p {
    margin: 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.format-content strong {
    display: block;
    margin-top: 10px;

    color: var(--parchment);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   FINAL CTA
========================================================= */

.shop-final-cta {
    position: relative;

    padding: 130px 0;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(214,69,31,.12),
            transparent 35%
        ),
        var(--night);

    border-top: 1px solid var(--line);
}

.shop-final-cta h2 {
    margin: 0;

    color: var(--parchment);

    font-family: var(--display);
    font-size: clamp(45px, 7vw, 80px);

    line-height: 1;
}

.shop-final-cta h2 em {
    color: var(--ember);
    font-style: normal;
}

.shop-final-cta p {
    max-width: 520px;

    margin: 25px auto 35px;

    color: var(--text-dim);

    line-height: 1.7;
}

.gold-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 15px 25px;

    border: 1px solid var(--ember);

    background: var(--ember);

    color: var(--void);

    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;

    transition: all .3s var(--ease);
}

.gold-button:hover {
    background: transparent;
    color: var(--ember);
}

.gold-button span {
    font-size: 16px;
}


/* =========================================================
   EMPTY SHOP
========================================================= */

.custom-shop-empty {
    padding: 100px 20px;
    text-align: center;
}

.empty-icon {
    color: var(--ember);
    font-size: 45px;
    margin-bottom: 20px;
}

.custom-shop-empty h2 {
    margin: 0 0 15px;

    font-family: var(--display);
    font-size: 40px;
}

.custom-shop-empty p {
    color: var(--text-dim);
    margin-bottom: 30px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .custom-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-sort {
        width: 100%;
        max-width: 280px;
    }

    .file-format-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 767px) {

    .shop-container {
        width: min(100% - 30px, var(--container));
    }

    .shop-hero {
        min-height: 400px;
    }

    .shop-hero-inner {
        padding: 80px 15px;
    }

    .shop-hero h1 {
        font-size: 48px;
    }

    .shop-eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .shop-heading h2 {
        font-size: 32px;
    }

    .custom-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-products-section {
        padding: 75px 0;
    }

    .file-format-container {
        width: calc(100% - 30px);
    }

    .file-format-section {
        padding: 75px 0;
    }

    .file-format-grid {
        gap: 15px;
    }

    .file-format-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 25px;
    }

    .format-icon {
        width: 80px;
        height: 80px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .custom-product-button {
        width: 100%;
        justify-content: center;
    }

    .shop-final-cta {
        padding: 90px 0;
    }

}


@media (max-width: 480px) {

    .shop-hero h1 {
        font-size: 39px;
    }

    .shop-category-nav {
        gap: 7px;
    }

    .shop-category-nav a {
        padding: 0 12px;
        font-size: 8px;
    }

    .custom-product-info {
        padding: 22px 18px;
    }

    .product-title a {
        font-size: 21px;
    }

    .file-format-heading h2 {
        font-size: 34px;
    }

}