/*=============================================
=     Vendor Page – Product Cards Styles     =
=============================================*/

/* Grid layout */
.vendor-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

@media (max-width: 1199px) {
    .vendor-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .vendor-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 479px) {
    .vendor-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.vpc {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.vpc:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

/* Image area */
.vpc__image-wrap {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpc__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.35s ease;
}

.vpc:hover .vpc__image-wrap img {
    transform: scale(1.06);
}

.vpc__image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Body */
.vpc__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Vendor name */
.vpc__vendor-name {
    font-size: 12px;
    color: #ff6600;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vpc__vendor-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.vpc__vendor-name a:hover {
    color: #cc5200;
}

/* Star rating */
.vpc__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.vpc__star {
    font-size: 13px;
    color: #d0d0d0;
    line-height: 1;
}

.vpc__star.filled {
    color: #f5a623;
}

.vpc__rating-value {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* Product title */
.vpc__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vpc__title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.vpc__title a:hover {
    color: #ff6600;
}

/* Price block */
.vpc__price {
    margin-bottom: 14px;
    margin-top: auto;
}

.vpc__price-main {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #ff6600;
    line-height: 1.2;
}

.vpc__price-main .price-int {
    font-size: 20px;
}

.vpc__price-main .price-dec {
    font-size: 13px;
    vertical-align: super;
}

/* Buy button */
.vpc__buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid #ff6600;
    border-radius: 24px;
    background: #fff;
    color: #ff6600;
    cursor: pointer;
    padding: 9px 18px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
    position: relative;
}

.vpc__buy-btn:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    transform: scale(1.03);
    text-decoration: none;
}

.vpc__buy-btn:active {
    transform: scale(0.97);
}

.vpc__buy-icon {
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.vpc__buy-btn:hover .vpc__buy-icon {
    transform: scale(1.2);
}

.vpc__buy-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* "In cart" state */
.vpc__buy-btn--incart {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    cursor: default;
}

.vpc__buy-btn--incart:hover {
    transform: none !important;
}

/* "Request" style (no price) */
.vpc__buy-btn--request {
    border-color: #aaa;
    color: #777;
}

.vpc__buy-btn--request:hover {
    background: #777;
    border-color: #777;
    color: #fff;
}

/* No price badge */
.vpc__no-price {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 14px;
    margin-top: auto;
}

/* Responsive tweaks */
@media (max-width: 479px) {
    .vpc__title {
        font-size: 14px;
    }

    .vpc__price-main {
        font-size: 15px;
    }
}
