/* =========================================================
   AINA SAGA SHOP SYSTEM
   Shared Between Homepage + Shops Archive
========================================================= */

/* =========================================================
   GLOBAL SECTION
========================================================= */

.as-shop-section,
.as-shop-showcase,
.as-home-shop-section {
    position: relative;
    padding: 110px 6%;
    background:
        radial-gradient(
            circle at top,
            rgba(125, 92, 255, 0.08),
            transparent 32%
        ),
        #070711;
    overflow: hidden;
}

/* subtle divider */
.as-home-shop-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================================
   SECTION HEADER
========================================================= */

.as-section-heading,
.as-shop-section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 70px;
}

.as-section-subtitle,
.as-shop-eyebrow,
.as-section-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,0.05);

    color: #ff5f9f;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    border: 1px solid rgba(255,255,255,0.06);
}

.as-section-heading h2,
.as-shop-section-heading h2,
.as-shop-hero h1 {
    color: #fff;

    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.05;
    font-weight: 800;

    margin-bottom: 24px;
}

.as-section-heading p,
.as-shop-hero p {
    color: rgba(255,255,255,0.72);

    font-size: 1.05rem;
    line-height: 1.9;

    max-width: 760px;
    margin: auto;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.as-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.as-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(18,18,28,0.96),
            rgba(10,10,18,0.98)
        );

    border: 1px solid rgba(255,255,255,0.05);

    border-radius: 30px;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    backdrop-filter: blur(14px);
}

/* =========================================================
   IMAGE
========================================================= */

.as-product-image-wrap {
    position: relative;

    display: block;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #101018;
}

.as-product-image-wrap::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.72),
            rgba(0,0,0,0.12) 40%,
            transparent 70%
        );

    pointer-events: none;
}

.as-product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.as-product-card:hover .as-product-image {
    transform: translateY(-8px);

    border-color: rgba(255,255,255,0.1);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.55);
}

/* =========================================================
   CONTENT
========================================================= */

.as-product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 28px;
}

.as-product-tag {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 18px;
    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255,255,255,0.06);

    color: rgba(255,255,255,0.84);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.as-product-title {
    color: #ffffff;

    font-size: 1.28rem;
    line-height: 1.45;
    font-weight: 700;

    letter-spacing: -0.3px;

    margin-bottom: 16px;
}

.as-product-price {
    color: #ff5f9f;

    font-size: 1.08rem;
    font-weight: 700;

    margin-bottom: 18px;
}

.as-product-excerpt {
    color: rgba(255,255,255,0.68);

    line-height: 1.85;
    font-size: 0.96rem;

    margin-bottom: 28px;
}

/* =========================================================
   BUTTONS
========================================================= */

/* =========================================================
   PRIMARY PRODUCT BUTTON
========================================================= */

.as-product-button{

    position:relative;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:fit-content;

    margin-top:auto;

    padding:16px 34px;

    border-radius:999px;

    background:
        linear-gradient(
            180deg,
            #7d4dff 0%,
            #5b2de2 55%,
            #3f169f 100%
        );

    border:
        1px solid rgba(255,255,255,.12);

    color:#ffffff;

    text-decoration:none;

    font-size:.96rem;
    font-weight:700;

    letter-spacing:.2px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(91,45,226,.35),
        0 0 22px rgba(255,95,159,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        filter .3s ease,
        border-color .3s ease;
}

/* cinematic top light */
.as-product-button::before{

    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.22),
            transparent 45%
        );

    opacity:.85;

    pointer-events:none;
}

/* ambient glow */
.as-product-button::after{

    content:"";

    position:absolute;
    inset:-40%;

    background:
        radial-gradient(
            circle,
            rgba(255,95,159,.22),
            transparent 70%
        );

    opacity:0;

    transition:opacity .35s ease;

    pointer-events:none;
}

.as-product-button:hover{

    transform:
        translateY(-4px)
        scale(1.015);

    color:#ffffff;

    border-color:
        rgba(255,255,255,.18);

    filter:brightness(1.06);

    box-shadow:
        0 20px 42px rgba(91,45,226,.42),
        0 0 34px rgba(255,95,159,.16);
}

.as-product-button:hover::after{
    opacity:1;
}
/* =========================================================
   HOMEPAGE EXPLORE BUTTON
========================================================= */

.as-shop-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 70px;
}

/* =========================================================
   SECONDARY GLASS BUTTON
========================================================= */

a.as-shop-more-button,
a.as-shop-note-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 30px;

    border-radius: 18px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(184,140,255,0.18);

    color: #b88cff !important;

    text-decoration: none !important;

    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.2px;

    backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

a.as-shop-more-button:hover,
a.as-shop-note-button:hover {

    transform: translateY(-3px);

    background:
        linear-gradient(
            180deg,
            #7d4dff 0%,
            #5b2de2 55%,
            #3f169f 100%
        );

    border-color: rgba(255,95,159,0.28);

    color: #ffffff !important;

    box-shadow:
        0 14px 30px rgba(0,0,0,0.32);
}

/* =========================================================
   STORE NOTE
========================================================= */

.as-shop-note {
    padding: 0 6% 120px;

    background:
        radial-gradient(
            circle at top,
            rgba(125,92,255,0.08),
            transparent 32%
        ),
        #070711;
}

.as-shop-note-box {
    max-width: 920px;

    margin: auto;

    padding: 80px 50px;

    border-radius: 40px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.03)
        );

    border: 1px solid rgba(255,255,255,0.07);

    backdrop-filter: blur(16px);
}

.as-shop-note-box h2 {
    color: #fff;

    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 24px;
}

.as-shop-note-box p {
    color: rgba(255,255,255,0.72);

    line-height: 1.9;

    margin-bottom: 34px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.as-no-products {
    grid-column: 1/-1;

    padding: 70px 20px;

    text-align: center;

    color: rgba(255,255,255,0.56);
}

/* =========================================
   SHOP FILTER
========================================= */

.as-shop-filter {

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;

    gap:14px;

    margin-bottom:56px;

    position:relative;
    z-index:2;
}

.as-shop-filter::after {

    content:"";

    position:absolute;

    left:50%;
    bottom:-28px;

    transform:translateX(-50%);

    width:180px;
    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.12),
            transparent
        );
}

/* =========================================
   FILTER BUTTON
========================================= */

.as-filter-btn {

    position:relative;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 26px;

    min-width:90px;

    border:none;
    border-radius:999px;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.74);

    font-size:.92rem;
    font-weight:700;

    letter-spacing:.2px;

    cursor:pointer;

    overflow:hidden;

    backdrop-filter:blur(12px);

    transition:
        transform .28s ease,
        background .28s ease,
        border-color .28s ease,
        color .28s ease,
        box-shadow .28s ease;
}

/* subtle cinematic light */
.as-filter-btn::before {

    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.12),
            transparent 50%
        );

    opacity:.8;

    pointer-events:none;
}

/* =========================================
   HOVER
========================================= */

.as-filter-btn:hover {

    transform:
        translateY(-2px);

    color:#ffffff;

    border-color:
        rgba(123,47,247,.28);

    background:
        rgba(123,47,247,.08);

    box-shadow:
        0 10px 22px rgba(0,0,0,.18);
}

/* =========================================
   ACTIVE
========================================= */

.as-filter-btn.active {

    background:
        linear-gradient(
            135deg,
            #7b2ff7,
            #b245ff
        );

    color:#ffffff;

    border-color:
        rgba(255,255,255,.14);

    box-shadow:
        0 12px 28px rgba(123,47,247,.30),
        0 0 18px rgba(178,69,255,.12);
}

.as-filter-btn.active:hover {

    transform:
        translateY(-2px)
        scale(1.02);
}

.as-product-card{

    transition:
        opacity .25s ease,
        transform .25s ease;

}

.as-product-card.hide{

    opacity:0;

    transform:
        translateY(12px);

    pointer-events:none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .as-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 900px) {

    .as-shop-section,
    .as-shop-showcase,
    .as-home-shop-section {
        padding: 90px 24px;
    }

    .as-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

}

@media (max-width: 640px) {

    .as-shop-hero {
        min-height: auto;

        padding: 130px 20px 90px;
    }

    .as-shop-section,
    .as-shop-showcase,
    .as-home-shop-section,
    .as-shop-note {
        padding-left: 20px;
        padding-right: 20px;
    }

    .as-product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .as-product-content {
        padding: 24px;
    }

    .as-product-title {
        font-size: 1.18rem;
    }

    .as-shop-note-box {
        padding: 55px 24px;
        border-radius: 28px;
    }

}