.market-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}


.market-product-card__image {
	height: 180px;
	background: #fff;
}


.market-product-card__price {
	font-size: 15px;
	font-weight: 700;
	color: #7c5c35;
}
.market-product-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease;
}

.market-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.market-product-card__image-wrap {
    position: relative;
    margin: 0 auto;
}

.market-product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
}

.market-product-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}


.market-product-card__favorite,
.market-product-card__discount {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 0;
    background: #fff;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 20px;
}

.market-product-card__favorite {
    top: 0;
    right: 0;
    color: #e8b777;
}

.market-product-card__favorite svg {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.market-product-card__favorite.is-active svg {
    fill: #e8b777;
    stroke: #e8b777;
}

.market-product-card__discount {
    right: 0;
    bottom: 0;
    color: #e8b777;
}

.market-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.market-product-card__subscription {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.market-product-card__sub-badge {
    display: inline-block;
    background: #509D0B;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 500;
}

.market-product-card__sub-text {
    font-size: 12px;
    color: #4a8f2f;
    line-height: 1.15;
}
.market-product-card__sub-link {
    text-decoration: none;
    cursor: pointer;
}

.market-product-card__sub-link:hover,
.market-product-card__sub-link:focus {
    text-decoration: underline;
}
.market-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.market-product-card__price-old {
    color: #8f8f8f;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 400;
}

.market-product-card__price-current {
    color: #1f1f1f;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

.market-product-card__title {
    display: block;
    color: #3a3a3a;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
    font-weight: 400;
}

.market-product-card__title:hover {
    color: #1f1f1f;
    text-decoration: none;
}

.market-product-card__action {
    margin-top: auto;
    padding-top: 8px;
}

.market-product-card__select-btn,
.market-product-qty {
    width: 100%;
    height: 36px;
    border-radius: 999px;
}

.market-product-card__select-btn {
    border: 0;
    background: #e8b777;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.market-product-card__select-btn:hover {
    background: #e1b067;
}

.market-product-qty {
    background: #d9a24f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.market-product-qty__btn {
    width: 48px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.market-product-qty__value {
    flex: 1 1 auto;
    text-align: center;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 768px) {
    .market-product-card {
        padding: 10px;
        border-radius: 14px;
    }

    .market-product-card__image-link {
        height: 150px;
    }

    .market-product-card__price-current {
        font-size: 20px;
    }

    .market-product-card__title {
        font-size: 15px;
    }

    .market-product-card__select-btn,
    .market-product-qty {
        height: 32px;
    }
    
}

.market-product-card__select-btn.is-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
@media (max-width: 640px) {
    
.market-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.market-product-modal__notice {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}