:root {
        --shop-card-accent-start: #6df2d2;
        --shop-card-accent-end: #1abc9c;
        --shop-card-bg-start: #0f1113;
        --shop-card-bg-mid: #161a1c;
        --shop-card-bg-end: #0b0d0e;
        --shop-card-text: #e3e7eb;
        --shop-card-text-muted: #8d96a0;
}

body.shop-flex-layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
}

body.shop-flex-layout > #content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
}

body.shop-flex-layout #site-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
}

body.shop-flex-layout #customize-main {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: calc(100dvh - var(--layout-top-offset, var(--header-height, 88px)));
}

body.shop-flex-layout #customize-main > #content {
        flex: 1 1 auto;
        display: block;
        height: auto;
        overflow: visible;
}

.product-list {
        display: flex;
        flex-wrap: wrap;
        gap: clamp(20px, 4vw, 32px);
        padding: clamp(20px, 4vw, 48px);
        justify-content: center;
        align-items: flex-start;
        align-content: flex-start;
        flex: 1;
        width: 100vw;
        min-width: 100%;
        min-height: calc(100dvh - var(--layout-top-offset, 0px));
        box-sizing: border-box;
        position: relative;
        z-index: 1;
}

@supports not (height: 100dvh) {
        .product-list {
                min-height: calc(100vh - var(--layout-top-offset, 0px));
        }
}

.product-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: min(280px, 92vw);
        height: auto;
        padding: 24px 22px 28px;
        border-radius: 22px;
        border: 1px solid transparent;
        background:
                linear-gradient(180deg, #171717, #020202) padding-box,
                linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(48, 52, 55, 0.02)) border-box;
        box-shadow:
                inset 0 0 0 1px rgba(109, 242, 210, 0.02),
                inset 0 0 28px rgba(26, 188, 156, 0.06),
                0 18px 42px rgba(0, 0, 0, 0.55);
        text-align: center;
        cursor: pointer;
        text-decoration: none;
        color: var(--shop-card-text);
        transition:
                transform 0.35s ease,
                box-shadow 0.35s ease,
                background 0.35s ease,
                color 0.35s ease;
        overflow: hidden;
        isolation: isolate;
}

.product-card::before {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: calc(22px - 1px);
        background:
                radial-gradient(125% 90% at 50% 0%, rgba(109, 242, 210, 0.09), transparent 65%),
                radial-gradient(120% 100% at 50% 100%, rgba(26, 188, 156, 0.06), transparent 70%);
        opacity: 0.45;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: -1;
}

.product-card::after {
        content: "";
        position: absolute;
        inset: -18px;
        border-radius: calc(22px + 18px);
        background: radial-gradient(circle at center, rgba(109, 242, 210, 0.18), transparent 65%);
        opacity: 0;
        transition: opacity 0.45s ease;
        pointer-events: none;
        z-index: -2;
}

.product-card:hover,
.product-card:focus-visible {
        transform: translateY(-6px);
        background:
                linear-gradient(180deg, #181b1d, #16181a) padding-box,
                linear-gradient(135deg, rgba(109, 242, 210, 0.85), rgba(26, 188, 156, 0.3)) border-box;
        box-shadow:
                inset 0 0 32px rgba(26, 188, 156, 0.12),
                0 28px 60px rgba(0, 0, 0, 0.6),
                0 0 28px rgba(109, 242, 210, 0.24);
        color: #ffffff;
}

.product-card:hover::before,
.product-card:focus-visible::before {
        opacity: 0.75;
}

.product-card:hover::after,
.product-card:focus-visible::after {
        opacity: 1;
}

.product-card:focus-visible {
        outline: none;
}

.product-card__visual {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        border-radius: 16px;
        background:
                radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), transparent 60%),
                radial-gradient(circle at 80% 0%, rgba(109, 242, 210, 0.06), transparent 55%),
                repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(0, 0, 0, 0) 1px 4px),
                linear-gradient(160deg, rgba(36, 39, 43, 0.96), rgba(20, 22, 24, 0.96));
        box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.04),
                inset 0 0 22px rgba(0, 0, 0, 0.55),
                0 26px 48px rgba(0, 0, 0, 0.55);
        transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.product-card:hover .product-card__visual,
.product-card:focus-visible .product-card__visual {
        box-shadow:
                inset 0 0 0 1px rgba(109, 242, 210, 0.18),
                inset 0 0 26px rgba(26, 188, 156, 0.16),
                0 32px 58px rgba(0, 0, 0, 0.65);
        transform: translateY(-2px);
}

.product-card__visual img {
        width: 100%;
        max-height: 200px;
        object-fit: contain;
        filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.product-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
        text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.product-price {
        display: inline-flex;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 500;
        margin: 6px 0 0;
}

.product-price__from {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--shop-card-text-muted);
}

.product-price__value {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--shop-card-accent-start);
        text-shadow: 0 6px 18px rgba(109, 242, 210, 0.35);
}

@media (max-width: 520px) {
        .product-card {
                width: 100%;
        }

        .product-card__visual {
                padding: 20px;
        }
}
