/* Каталог — atelier grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 12px 12px 28px;
}

.product-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%),
        linear-gradient(165deg, #141a26 0%, #0c111a 100%);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out both;
    display: flex;
    flex-direction: column;
    height: 100%;
    isolation: isolate;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(165deg, rgba(212, 175, 119, 0.28), transparent 42%, rgba(46, 230, 214, 0.16));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.product-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(46, 230, 214, 0.16) 0%, transparent 62%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 230, 214, 0.28);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(46, 230, 214, 0.12);
}

.product-card:hover .product-card-glow {
    opacity: 1;
}

.product-card:active {
    transform: scale(0.985) translateY(-1px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    overflow: hidden;
}

.product-image-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(46, 230, 214, 0.1) 0%, transparent 48%),
        radial-gradient(circle at 80% 90%, rgba(212, 175, 119, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #101722 0%, #080c14 100%);
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 10px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}

.product-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
    padding: 16px 14px 20px;
    border: none;
    outline: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.product-card:hover .product-image {
    transform: scale(1.07) translateY(-4px);
}

.product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #D4AF77;
    background: rgba(5, 7, 13, 0.72);
    border: 1px solid rgba(212, 175, 119, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: calc(100% - 48px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    position: relative;
    z-index: 1;
    padding: 12px 12px 13px;
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    min-height: 32px;
    letter-spacing: 0.01em;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #2EE6D6;
    text-shadow: 0 0 18px rgba(46, 230, 214, 0.28);
    white-space: nowrap;
}

.product-tap-hint {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #05070D;
    background: linear-gradient(160deg, #7AF0E6, #2EE6D6 55%, #14C8B9);
    box-shadow: 0 6px 16px rgba(46, 230, 214, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-tap-hint svg {
    width: 14px;
    height: 14px;
}

.product-card:hover .product-tap-hint {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(46, 230, 214, 0.45);
}

.product-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(5, 7, 13, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    color: #EEF3F8;
}

.product-share-btn:hover {
    background: #2EE6D6;
    color: #05070D;
    border-color: #2EE6D6;
}

.product-share-btn:active {
    transform: scale(0.92);
}

.product-share-btn svg {
    width: 13px;
    height: 13px;
}

.product-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    min-height: 176px;
}

.product-card--featured .product-image-wrapper {
    width: 46%;
    height: auto;
    min-height: 176px;
}

.product-card--featured .product-info {
    flex: 1;
    justify-content: center;
    padding: 18px 16px 16px 8px;
    gap: 12px;
}

.product-card--featured .product-name {
    font-size: 16px;
    min-height: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    letter-spacing: 0;
}

.product-card--featured .product-price {
    font-size: 20px;
}

.product-card--featured .product-tap-hint {
    width: 36px;
    height: 36px;
}
