/* VITSA product card — reference layout with smooth shadow */

.vitsa-product-carousel__stage {
    position: relative;
    padding: 0;
}

.vitsa-product-carousel__nav--side {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
    padding: 0;
}

@media (max-width: 639px) {
    .vitsa-product-carousel__nav--side {
        display: none;
    }
}

.vitsa-product-carousel__nav--side .vitsa-product-carousel__arrow-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vitsa-product-card.product-inner {
    padding: 0 !important;
    border: none !important;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.vitsa-product-card.product-inner:hover {
    border: none !important;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

.vitsa-product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0;
    background: #fff;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none;
    overflow: hidden;
}

.vitsa-product-card__badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    pointer-events: none;
}

.vitsa-product-card__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.2rem 0.45rem;
    border-radius: 0.2rem;
    color: #fff;
}

.vitsa-product-card__badge--discount {
    background: #9db668;
    color: #fff;
}

.vitsa-product-card__badge--hot {
    background: #f6d354;
    color: #1a1a1a;
}

.vitsa-product-card__badge--deal {
    background: hsl(45, 95%, 55%);
    color: hsl(150, 15%, 12%);
}

.vitsa-product-card__badge--highly-rated {
    background: hsl(270, 55%, 60%);
    color: #fff;
}

.vitsa-product-card__badge--best-buy {
    background: hsl(335, 75%, 60%);
    color: #fff;
}

.vitsa-product-card__media .product-loop__buttons {
    display: none !important;
}

.vitsa-product-card__body {
    padding: 0.625rem 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.vitsa-product-card__rating .star-rating-wrapper {
    justify-content: center;
}

.vitsa-product-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1rem;
}

.vitsa-product-card__brand {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #3b82c4;
    line-height: 1.2;
}

.vitsa-product-card__sku {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    color: hsl(150, 8%, 42%);
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

.vitsa-product-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.5rem;
}

.vitsa-product-card__title a {
    color: #111 !important;
    text-decoration: none;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vitsa-product-card__title a:hover,
.vitsa-product-card--sale .vitsa-product-card__title a {
    color: #111 !important;
}

.vitsa-product-card--sale .vitsa-product-card__title a:hover {
    color: #1a3a6c !important;
}

.vitsa-product-card__price .product-price ins .amount,
.vitsa-product-card__price .product-price ins .bb-product-price-text {
    color: hsl(0, 85%, 55%) !important;
}

.vitsa-product-card__price .product-price .product-price-discount {
    font-size: 0.6875rem;
    font-weight: 700;
    color: hsl(0, 85%, 55%);
    background: hsl(0, 85%, 96%);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    line-height: 1.3;
}

.vitsa-product-card__price .product-price .product-price-original .amount {
    color: hsl(150, 15%, 12%) !important;
}

.vitsa-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    line-height: 1.3;
}

.vitsa-product-card__stock-in {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    font-weight: 500;
}

.vitsa-product-card__stock-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #2563eb;
    flex-shrink: 0;
}

.vitsa-product-card__stock-out {
    color: hsl(0, 85%, 55%);
    font-weight: 500;
}

.vitsa-product-card__delivery {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid hsl(150, 12%, 90%);
    border-radius: 0.25rem;
    background: #fff;
    color: hsl(150, 8%, 42%);
    font-size: 10px;
    line-height: 1.2;
}

.vitsa-product-card__delivery svg {
    width: 0.75rem;
    height: 0.75rem;
    stroke: currentColor;
    flex-shrink: 0;
}

.vitsa-product-card__cart .product-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem;
    margin: 0 !important;
    width: 100%;
}

.vitsa-product-card__cart .quantity {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.vitsa-product-card__cart .qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid hsl(150, 12%, 90%);
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
}

.vitsa-product-card__cart .qty-box .svg-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.vitsa-product-card__cart .qty-box .decrease,
.vitsa-product-card__cart .qty-box .increase {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 2rem !important;
    height: 2rem !important;
}

.vitsa-product-card__cart .qty-box input.qty {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 2rem;
    height: 2rem;
    border: none;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 2rem;
}

.vitsa-product-card__cart .add-to-cart-button .svg-icon,
.vitsa-product-card__cart .js-quick-shop-button .svg-icon {
    display: none !important;
}

.vitsa-product-card__cart .add-to-cart-button,
.vitsa-product-card__cart .js-quick-shop-button {
    width: 100% !important;
    padding: 0.625rem 0.75rem !important;
    min-height: 2.25rem;
    border: none !important;
    border-radius: 0.375rem !important;
    background: #1a3a6c !important;
    color: #fff !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.vitsa-product-card__cart .add-to-cart-button:hover:not(:disabled),
.vitsa-product-card__cart .js-quick-shop-button:hover:not(:disabled) {
    background: #152f57 !important;
}

/* Product grid sections — Best Deals, Trending, Recommended, PDP related */
.vitsa-best-deals,
.vitsa-product-grid-section {
    padding: 3rem 0;
    background: #fff;
}

.vitsa-best-deals__header,
.vitsa-product-grid-section .vitsa-best-deals__header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.vitsa-best-deals__header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 1rem;
}

.vitsa-best-deals__header-titles {
    grid-column: 2;
    text-align: center;
}

.vitsa-best-deals__title {
    margin: 0;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(150, 15%, 12%);
}

.vitsa-best-deals__accent {
    width: 3rem;
    height: 0.25rem;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: rgba(110, 177, 46, 0.7);
}

.vitsa-best-deals__nav {
    grid-column: 3;
    justify-self: end;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .vitsa-best-deals__nav {
        display: flex;
    }
}

.vitsa-best-deals__arrow {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid hsl(150, 12%, 90%);
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vitsa-best-deals__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .vitsa-best-deals__grid {
        gap: 1.25rem;
    }
}

.vitsa-best-deals__footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vitsa-best-deals__dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.vitsa-best-deals__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: hsl(150, 12%, 90%);
    cursor: pointer;
}

.vitsa-best-deals__dot.is-active {
    width: 2rem;
    background: #6eb12e;
}

.vitsa-best-deals__view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6eb12e !important;
    text-decoration: none;
    border-bottom: 2px solid #6eb12e;
    padding-bottom: 0.125rem;
}

/* PDP — description below hero */
.vitsa-product__hero.product-detail-container {
    margin-bottom: 0 !important;
}

.vitsa-product__details {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.vitsa-product__body {
    margin-top: 0 !important;
}

/* PDP — qty controls (Farmart uses absolute +/- buttons) */
.vitsa-product__actions .qty-box {
    display: flex !important;
    align-items: center;
    overflow: hidden;
}

.vitsa-product__actions .qty-box .decrease,
.vitsa-product__actions .qty-box .increase,
.vitsa-product__actions .qty-box .svg-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 2.25rem !important;
    height: 100% !important;
    flex-shrink: 0;
}

.vitsa-product__actions .qty-box input.qty {
    flex: 1 1 auto;
    text-decoration: none !important;
    line-height: 2.75rem;
}

/* PDP — keep summary aligned with container padding on mobile */
@media (max-width: 991px) {
    .vitsa-product__inner > .row,
    .vitsa-product__hero .row {
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-x: 0;
    }
}

.vitsa-best-deals__item,
.vitsa-product__related-grid > * {
    min-width: 0;
}

@media (max-width: 767px) {
    .vitsa-product-card.product-inner .product-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .vitsa-product-card.product-inner .quantity {
        width: 100% !important;
        flex: 1 1 auto !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .vitsa-product-card.product-inner .qty-box {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .vitsa-product-card.product-inner .qty-box .decrease,
    .vitsa-product-card.product-inner .qty-box .increase,
    .vitsa-product-card.product-inner .qty-box .svg-icon {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 2rem !important;
        height: 2rem !important;
    }

    .vitsa-product-card.product-inner .qty-box input.qty {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 2rem;
        text-decoration: none !important;
        line-height: 2rem;
    }

    .vitsa-product-card.product-inner .add-to-cart-button,
    .vitsa-product-card.product-inner .js-quick-shop-button {
        width: 100% !important;
        white-space: normal !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.35rem !important;
    }

    .vitsa-product-card.product-inner .product-loop__buttons {
        display: none !important;
    }

    .vitsa-product__actions .qty-box {
        display: flex !important;
        align-items: center;
        overflow: hidden;
    }

    .vitsa-product__actions .qty-box .decrease,
    .vitsa-product__actions .qty-box .increase,
    .vitsa-product__actions .qty-box .svg-icon {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 2.25rem !important;
        height: 100% !important;
        flex-shrink: 0;
    }

    .vitsa-product__actions .qty-box input.qty {
        flex: 1 1 auto;
        text-decoration: none !important;
        line-height: 2.75rem;
    }

    .vitsa-product__actions.product-button .quantity {
        flex: 1 1 100%;
        width: 100%;
    }
}
