:root {
    --accent-violet: var(--gmg-main-primary, #8a4fff);
    --accent-cyan: var(--gmg-main-secondary, #00f5d4);
    --accent-coral: var(--gmg-main-accent, #ff5e7e);
    --accent-electric: #4d7cff;
    --glass-border: color-mix(in srgb, var(--gmg-main-text, #fff) 12%, transparent);
    --radius-fluid-xl: 28px;
    --radius-fluid-md: 18px;
    --radius-fluid-sm: 12px;
    --radius-pill: 100px;
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-section {
    position: relative;
    width: 100%;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title-wrap h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gmg-main-text, #fff);
    margin: 0 0 6px 0;
}

.item-counter {
    font-size: 0.85rem;
    color: var(--gmg-main-text-muted, #a0aec0);
}

.curved-sort-pill {
    background: color-mix(in srgb, var(--gmg-main-text, #fff) 5%, transparent);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
}

.curved-sort-pill select {
    background: transparent;
        border-radius: 10px;
    border: none;
    color: var(--gmg-main-text, #fff);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.curved-sort-pill select option {
    background: var(--gmg-main-bg, #0a0e1a);
    color: var(--gmg-main-text, #fff);
}

.cards-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    perspective: 1400px;
}

.card-3d-wrapper {
    position: relative;
    border-radius: var(--radius-fluid-xl);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.card-3d-glass {
    position: relative;
    background: var(--gmg-main-bg, #0a0e1a);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-fluid-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px color-mix(in srgb, var(--gmg-main-text, #fff) 20%, transparent);
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--gmg-main-text, #fff) 18%, transparent), transparent 70%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 4;
}

.card-floating-stage {
    position: relative;
    height: 230px;
    border-radius: var(--radius-fluid-md);
    background: radial-gradient(circle, color-mix(in srgb, var(--gmg-main-text, #fff) 4%, transparent) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform: translateZ(40px);
}

.glow-backdrop-sphere {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.55;
    transition: transform 0.4s var(--spring-ease), opacity 0.4s ease;
}

.card-3d-wrapper:hover .glow-backdrop-sphere {
    transform: scale(1.35);
    opacity: 0.85;
}

.floating-product-img {
    max-height: 180px;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.7));
    transform: translateZ(35px);
    transition: transform 0.4s var(--spring-ease);
}

.card-3d-wrapper:hover .floating-product-img {
    transform: translateZ(65px) scale(1.1) rotate(-3deg);
}

.floating-tag-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gmg-main-bg, #0a0e1a);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 15%, transparent);
    color: var(--gmg-main-text, #fff);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transform: translateZ(45px);
    z-index: 5;
}

.quick-like-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gmg-main-bg, #0a0e1a);
    border: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 12%, transparent);
    color: var(--gmg-main-text, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(45px);
    transition: all 0.25s ease;
    z-index: 5;
}

.quick-like-btn:hover {
    color: var(--accent-coral);
    transform: translateZ(50px) scale(1.15);
}

.card-body-curved {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(25px);
}

.product-sub-category {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 6px;
}

.product-curved-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 14px 0;
    color: var(--gmg-main-text, #fff);
}

.feature-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.micro-pill {
    background: color-mix(in srgb, var(--gmg-main-text, #fff) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 8%, transparent);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    color: #cbd5e1;
}
html[data-gmg-theme="light"] .micro-pill {
    color: #6d6f72;
}

.card-bottom-deck {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 8%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateZ(30px);
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-caption {
    font-size: 0.7rem;
    color: #718096;
}

.price-num {
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gmg-main-text, #fff);
}

.price-num small {
    font-size: 0.78rem;
    color: var(--gmg-main-text-muted, #a0aec0);
    margin-right: 4px;
}

.btn-add-bubble {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-fluid-sm);
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-electric));
    border: none;
    color: var(--gmg-main-text, #fff);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(138, 79, 255, 0.4);
    transition: all 0.3s var(--spring-ease);
}

.btn-add-bubble:hover {
    transform: scale(1.12) rotate(90deg);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-cyan) 50%, transparent);
}

.curved-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.curved-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.curved-bag-drawer {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: -480px;
    width: 420px;
    background: rgba(18, 22, 38, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-fluid-xl);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 color-mix(in srgb, var(--gmg-main-text, #fff) 20%, transparent);
    transition: left 0.4s var(--smooth-ease);
    padding: 24px;
}

.curved-bag-drawer.open {
    left: 20px;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 8%, transparent);
}

.drawer-title-capsule {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-title-capsule h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gmg-main-text, #fff);
}

.drawer-title-capsule i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.btn-bubble-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gmg-main-text, #fff) 6%, transparent);
    border: none;
    color: var(--gmg-main-text, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-bubble-close:hover {
    background: var(--accent-coral);
    transform: rotate(90deg);
}

.bag-items-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bag-item-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 6%, transparent);
    border-radius: var(--radius-fluid-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bag-item-img {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--gmg-main-text, #fff) 4%, transparent);
    border-radius: var(--radius-fluid-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bag-item-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.bag-item-details {
    flex-grow: 1;
}

.bag-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gmg-main-text, #fff);
}

.bag-item-price {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.bag-item-trash {
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.bag-item-trash:hover {
    color: var(--accent-coral);
}

.drawer-bottom {
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--gmg-main-text, #fff) 8%, transparent);
}

.price-bubble-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--gmg-main-text-muted, #a0aec0);
}

.price-bubble-row strong {
    font-size: 1.25rem;
    color: var(--gmg-main-text, #fff);
}

.btn-curved-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-electric));
    color: #000;
    border: none;
    padding: 15px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--accent-cyan) 40%, transparent);
    transition: all 0.3s var(--smooth-ease);
}

.btn-curved-primary:hover {
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-cyan) 60%, transparent);
    transform: translateY(-2px);
}

.gmg-page-link {
    padding: .5rem;
    margin: .2rem;
    border: 1px solid rebeccapurple;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .curved-bag-drawer {
        width: calc(100vw - 24px);
        left: -100vw;
        top: 12px;
        bottom: 12px;
    }

    .curved-bag-drawer.open {
        left: 12px;
    }

    .cards-3d-grid {
        grid-template-columns: 1fr;
    }
}

.gmg-pagination {
    display: flex;
    justify-content: center;
    gap: var(--gmg-sp-2);
    padding-block: var(--gmg-sp-6);
    align-content: center;
    align-items: center;
}

.gmg-page-link.is-current {
    background: #946bdd;
    color: var(--gmg-main-text, #fff);
}
