:root {
    --shop-primary: #034a46;
    --shop-primary-soft: #eaf4f3;
    --shop-accent: #287b11;
    --shop-danger: #e63946;
    --shop-text: #253238;
    --shop-muted: #7b8790;
    --shop-border: #edf0f2;
    --shop-bg: #f7f9fa;
    --shop-white: #ffffff;
    --shop-shadow: 0 8px 28px rgba(30, 54, 61, 0.08);
    --shop-shadow-hover: 0 14px 36px rgba(30, 54, 61, 0.14);
}

body {
    background: var(--shop-bg);
}

.shop-part {
    padding-bottom: 55px;
}

.shop-products-grid {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: 1rem;
}

.shop-products-grid > .col {
    display: flex;
}

.product-card {
    width: 100%;
    background: var(--shop-white);
    border: 1px solid var(--shop-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shop-shadow-hover);
    border-color: rgba(3, 74, 70, 0.18);
}

.product-media {
    position: relative;
    overflow: hidden;
    background: #f4f6f7;
    aspect-ratio: 1 / 1;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

.product-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-label .label-text {
    margin: 0;
    min-width: 50px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.25);
}

.product-widget {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 7px;
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s ease;
}

.product-card:hover .product-widget {
    opacity: 1;
    transform: translateY(0);
}

.product-widget a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-primary);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .10);
    transition: .2s ease;
    text-decoration: none;
}

.product-widget a:hover {
    background: var(--shop-primary);
    color: #fff;
}

.product-content {
    padding: 14px 14px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    margin: 0 0 14px !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.8;
}

.product-name a {
    width: 100%;
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.product-name a:hover {
    color: var(--shop-primary);
}

.product-price {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price-info {
    min-width: 0;
    flex: 1;
}

.product-price del {
    display: block;
    color: #a1aab0;
    font-size: 11px;
    margin-bottom: 3px;
    line-height: 1.4;
}

.product-price .final-price {
    display: block;
    color: var(--shop-primary);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
}

.product-add {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--shop-primary-soft);
    color: var(--shop-primary) !important;
    text-decoration: none;
    transition: .2s ease;
}

.product-add:hover {
    background: var(--shop-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.product-unavailable {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff1f2;
    color: #d9303e;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.empty-products {
    width: 100%;
    padding: 45px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--shop-border);
    box-shadow: var(--shop-shadow);
    text-align: center;
}

.empty-products-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f2;
    color: var(--shop-danger);
    font-size: 26px;
}

.empty-products h5 {
    margin-bottom: 10px;
    color: var(--shop-text);
    font-weight: 900;
}

.empty-products p {
    margin: 0;
    color: var(--shop-muted);
}

@media (max-width: 767.98px) {
    .shop-part {
        padding-top: 22px;
        padding-bottom: 35px;
    }

    .shop-products-grid {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .75rem;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-content {
        padding: 10px 9px 11px;
    }

    .product-name {
        min-height: 42px;
        margin-bottom: 9px !important;
        line-height: 1.65;
    }

    .product-name a {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .product-price {
        padding-top: 9px;
        gap: 5px;
    }

    .product-price del {
        font-size: 9.5px;
        margin-bottom: 1px;
    }

    .product-price .final-price {
        font-size: 11px;
    }

    .product-add {
        width: 31px;
        height: 31px;
        min-width: 31px;
        border-radius: 9px;
        font-size: 12px;
    }

    .product-label {
        top: 7px;
        right: 7px;
    }

    .product-label .label-text {
        min-width: 42px;
        height: 24px;
        padding: 0 7px;
        font-size: 10px;
    }

    .product-widget {
        display: none;
    }

    .product-unavailable {
        font-size: 10px;
        padding: 7px 5px;
    }
}

@media (max-width: 390px) {
    .product-content {
        padding-left: 7px;
        padding-right: 7px;
    }

    .product-price .final-price {
        font-size: 10.5px;
    }

    .product-price del {
        font-size: 9px;
    }

    .product-add {
        width: 29px;
        height: 29px;
        min-width: 29px;
    }
}