/* ==========================================================================
   Velgrina — Homepage Sections
   Bestsellers slider, Category cards, Lifestyle, Social, Trust bar
   ========================================================================== */

/* ---------- Product Grid (Category Page) ---------- */
.velgrina-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .velgrina-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1280px) {
    .velgrina-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ---------- Filter Sidebar (Category Page) ---------- */
.velgrina-filter-block {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

/* ---------- Design Tokens ---------- */
:root {
    --velgrina-teal: #2E7D8C;
    --velgrina-teal-hover: #246876;
    --velgrina-black: #1E2022;
    --velgrina-border: #D1D5DB;
    --velgrina-light: #F4F5F4;
    --velgrina-gray: #6B7280;
    --velgrina-success: #16a34a;
    --velgrina-red: #dc2626;
}

.velgrina-homepage {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

@supports not (overflow: clip) {
    .velgrina-homepage {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   GLOBAL SVG CONSTRAINT — prevents unsized SVGs from blowing up
   Applies to ALL inline SVGs inside homepage containers.
   ========================================================================== */
.velgrina-homepage svg:not(.velgrina-hero svg):not(.velgrina-slider-arrow svg) {
    max-width: 1.5em;
    max-height: 1.5em;
}

.velgrina-product-card svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.velgrina-product-card .velgrina-product-card__image svg {
    width: auto !important;
    height: auto !important;
}

.velgrina-atc-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.velgrina-testimonial-card svg,
.velgrina-stars svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.velgrina-product-card__rating svg {
    width: 14px !important;
    height: 14px !important;
}

/* Trust bar icons */
.velgrina-trustbar-icon,
section.bg-velgrina-light svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

/* Lifestyle badges */
.velgrina-lifestyle-badge svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

/* ==========================================================================
   BESTSELLERS SECTION LAYOUT
   ========================================================================== */
.velgrina-bestsellers {
    padding: 2rem 1rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .velgrina-bestsellers {
        padding: 2.5rem 2rem;
    }
}

.velgrina-bestsellers__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .velgrina-bestsellers__header {
        margin-bottom: 2.5rem;
    }
}

.velgrina-bestsellers__title {
    font-size: 1.5rem;
    color: var(--velgrina-black);
}

@media (min-width: 768px) {
    .velgrina-bestsellers__title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .velgrina-bestsellers__title {
        font-size: 2.25rem;
    }
}

.velgrina-bestsellers__arrows {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .velgrina-bestsellers {
        max-width: 100%;
        padding: 1.5rem 0 1.75rem;
        overflow: hidden;
    }

    .velgrina-bestsellers__header {
        justify-content: space-between;
        text-align: left;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .velgrina-bestsellers__title {
        font-size: 1.375rem;
        line-height: 1.25;
        margin: 0;
        min-width: 0;
    }

    .velgrina-bestsellers__arrows {
        display: flex;
        gap: 0.375rem;
    }
}

.velgrina-product-card__prices {
    margin-top: auto;
}

/* Mobile pagination dots for bestsellers slider */
.velgrina-bestsellers__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
}
.velgrina-bestsellers__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}
.velgrina-bestsellers__dot--active {
    background: #2e7d8c;
    width: 24px;
}
.velgrina-bestsellers__dot:focus-visible {
    outline: 2px solid #2e7d8c;
    outline-offset: 2px;
}
/* Expand hit area to 44x44 for touch without enlarging visual dot */
.velgrina-bestsellers__dot::before {
    content: '';
    position: absolute;
    inset: -18px;
}
.velgrina-bestsellers__dot {
    position: relative;
}

@media (max-width: 639px) {
    .velgrina-bestsellers__dots {
        gap: 6px;
        margin-top: 0.875rem;
        overflow: hidden;
    }
}

.velgrina-bestsellers__swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
    animation: velgrina-swipe-pulse 2s ease-in-out 2;
}
@keyframes velgrina-swipe-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-4px); }
}

/* ==========================================================================
   SLIDER ARROWS  (shared across all carousels)
   ========================================================================== */
.velgrina-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--velgrina-border);
    background: #fff;
    color: var(--velgrina-black);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.velgrina-slider-arrow:hover {
    background: var(--velgrina-teal);
    border-color: var(--velgrina-teal);
    color: #fff;
}

.velgrina-slider-arrow__icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .velgrina-slider-arrow {
        width: 36px;
        height: 36px;
    }

    .velgrina-slider-arrow__icon {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   BESTSELLERS SLIDER
   ========================================================================== */
.velgrina-slider {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
}

.velgrina-slider__track {
    display: flex;
    width: 100%;
    transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

/* Card wrapper: widths mirror Alpine perPage values. */
.velgrina-slider-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

@media (min-width: 360px) {
    .velgrina-slider-card {
        flex-basis: 50%;
        max-width: 50%;
        padding: 0 6px;
    }
}

@media (min-width: 768px) {
    .velgrina-slider-card {
        flex-basis: 33.333333%;
        max-width: 33.333333%;
        padding: 0 8px;
    }
}

@media (min-width: 1200px) {
    .velgrina-slider-card {
        flex-basis: 25%;
        max-width: 25%;
        padding: 0 8px;
    }
}

/* ==========================================================================
   PRODUCT CARD  (used inside bestsellers slider)
   ========================================================================== */
.velgrina-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--velgrina-border);
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.velgrina-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Image container */
.velgrina-product-card__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
}

.velgrina-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.4s ease;
}

.velgrina-product-card:hover .velgrina-product-card__image img {
    transform: scale(1.04);
}

/* Hover (second) image */
.velgrina-product-card__hover-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.velgrina-product-card:hover .velgrina-product-card__hover-img {
    opacity: 1;
}

@media (max-width: 767px) {
    .velgrina-product-card {
        border-color: #e5e7eb;
    }

    .velgrina-product-card__image img {
        padding: 0.75rem;
    }
}

@media (max-width: 359px) {
    .velgrina-product-card__image {
        aspect-ratio: 4 / 3;
    }
}

/* Image badge (campaign label / discount label) */
.velgrina-product-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--velgrina-red, #E84044);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    line-height: 1.4;
    z-index: 2;
}

.velgrina-product-card__badge--campaign {
    background: var(--cb, #E84044);
    color: var(--ct, #fff);
}

/* Price block — same as category page */
.velgrina-price-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding-top: 2px;
}

.velgrina-price-block__old-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.velgrina-price-block__old {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.velgrina-price-block__pct {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #16A34A;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

.velgrina-price-block__final {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1E2022;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

@media (max-width: 639px) {
    .velgrina-price-block__final {
        font-size: 1.25rem;
    }
}

/* Info section */
.velgrina-product-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 12px 12px;
    gap: 5px;
}

/* Product name */
.velgrina-product-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--velgrina-black);
    text-decoration: none;
    transition: color 0.2s;
}

@media (max-width: 639px) {
    .velgrina-product-card__name {
        font-size: 0.875rem;
        min-height: 2.45em;
    }
}

@media (min-width: 640px) {
    .velgrina-product-card__name {
        font-size: 0.875rem;
    }
}

.velgrina-product-card__name:hover {
    color: var(--velgrina-teal);
}

/* Prices */
.velgrina-product-card__price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--velgrina-black);
}

@media (min-width: 640px) {
    .velgrina-product-card__price {
        font-size: 1rem;
    }
}

.velgrina-product-card__price--old {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--velgrina-gray);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Stock indicator */
.velgrina-product-card__stock {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.velgrina-product-card__stock--in {
    color: var(--velgrina-success);
}

.velgrina-product-card__stock-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.velgrina-product-card__stock-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Delivery time */
.velgrina-product-card__delivery {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--velgrina-gray);
    font-size: 0.6875rem;
    margin-top: 2px;
}

.velgrina-product-card__delivery svg,
.velgrina-product-card__delivery-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.velgrina-atc-btn__icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

/* Add-to-cart hover overlay */
.velgrina-atc-hover {
    margin-top: auto;
    padding-top: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
}

.velgrina-product-card:hover .velgrina-atc-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Always visible on touch devices */
@media (hover: none) {
    .velgrina-atc-hover {
        opacity: 1;
        transform: translateY(0);
    }
}

.velgrina-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 12px;
    min-height: 44px;
    background: var(--velgrina-teal);
    color: #fff;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.velgrina-atc-btn:hover {
    background: var(--velgrina-teal-hover);
}

.velgrina-atc-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   COLLECTIONS SECTION LAYOUT
   ========================================================================== */
.velgrina-collections {
    padding: 2.5rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .velgrina-collections {
        padding: 2.5rem 2rem;
    }
}

.velgrina-collections__title {
    font-size: 1.5rem;
    color: var(--velgrina-black);
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .velgrina-collections__title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .velgrina-collections__title {
        font-size: 2.25rem;
    }
}

.velgrina-collections__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .velgrina-collections__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* ==========================================================================
   CATEGORY / COLLECTION CARDS
   ========================================================================== */
.velgrina-cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.velgrina-cat-card a {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

@media (min-width: 768px) {
    .velgrina-cat-card a {
        aspect-ratio: 3 / 4;
    }
}

.velgrina-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.velgrina-cat-card:hover img {
    transform: scale(1.1);
}

.velgrina-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
    transition: background 0.3s;
}

.velgrina-cat-card:hover .velgrina-cat-card__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        transparent 100%
    );
}

.velgrina-cat-card__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    z-index: 2;
    transition: transform 0.3s;
    line-height: 1.3;
}

.velgrina-cat-card:hover .velgrina-cat-card__title {
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .velgrina-cat-card__title {
        font-size: 1.125rem;
        padding: 20px 16px;
    }
}

/* ==========================================================================
   LIFESTYLE SECTION (full-width bg, Tailwind-free)
   ========================================================================== */
.velgrina-lifestyle {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background-color: var(--velgrina-light);
    overflow: hidden;
    padding: 0;
}

@media (max-width: 767px) {
    .velgrina-lifestyle {
        width: 100%;
        left: auto;
        margin-left: 0;
    }
}

.velgrina-lifestyle__inner {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ── Mobile: stack ── */
.velgrina-lifestyle__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.velgrina-lifestyle__content {
    width: 100%;
    order: 2;
    padding: 2rem 1.25rem;
}

.velgrina-lifestyle-img {
    width: 100%;
    order: 1;
    overflow: hidden;
}

/* ── Desktop: true split-screen ── */
@media (min-width: 768px) {
    .velgrina-lifestyle__grid {
        flex-direction: row;
        align-items: stretch;
        height: 380px;
        max-width: 90rem;
        margin: 0 auto;
    }

    .velgrina-lifestyle__content {
        width: 42%;
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem 2.5rem 3rem 5vw;
    }

    .velgrina-lifestyle-img {
        width: 58%;
        order: 2;
        overflow: hidden;
        position: relative;
    }
}

.velgrina-lifestyle__heading {
    font-size: 1.5rem;
    color: var(--velgrina-black);
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .velgrina-lifestyle__heading {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
}

.velgrina-lifestyle__desc {
    color: var(--velgrina-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.velgrina-lifestyle__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.velgrina-lifestyle__cta {
    display: inline-block;
    background-color: var(--velgrina-teal);
    color: #fff;
    padding: 14px 24px;
    min-height: 44px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .velgrina-lifestyle__cta {
        padding: 14px 32px;
        font-size: 0.875rem;
    }
}

.velgrina-lifestyle__cta:hover {
    background-color: var(--velgrina-teal-hover);
}

.velgrina-lifestyle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    aspect-ratio: 4 / 3;
    display: block;
    transition: transform 0.5s ease;
}

.velgrina-lifestyle-img:hover img {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .velgrina-lifestyle-img img {
        aspect-ratio: unset;
        min-height: 380px;
        max-height: none;
        position: absolute;
        inset: 0;
        object-position: center 38%;
    }
}

/* ==========================================================================
   SOCIAL / INSTAGRAM SECTION
   ========================================================================== */
/* Social section uses mostly Tailwind utility classes.
   Only the hover transition on the overlay needs custom CSS
   if not handled via Tailwind group-hover classes.              */

/* No additional custom classes needed — template uses Tailwind utilities
   and group-hover pattern. This block is a placeholder for any future
   social-specific styles. */

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
/* Trust bar is built entirely with Tailwind utilities in the template.
   The custom color utilities (text-velgrina-teal, bg-velgrina-light,
   border-velgrina-border, text-velgrina-black, text-velgrina-gray)
   are defined in Tailwind config.

   Below are fallback styles in case Tailwind purges them. */

/* Color utilities used across all sections — fallback definitions */
.text-velgrina-teal {
    color: var(--velgrina-teal);
}

.text-velgrina-black {
    color: var(--velgrina-black);
}

.text-velgrina-gray {
    color: var(--velgrina-gray);
}

.bg-velgrina-light {
    background-color: var(--velgrina-light);
}

.bg-velgrina-teal {
    background-color: var(--velgrina-teal);
}

.border-velgrina-border {
    border-color: var(--velgrina-border);
}

.hover\:bg-velgrina-teal-hover:hover {
    background-color: var(--velgrina-teal-hover);
}

/* ==========================================================================
   TRUST BAR (full-width, Tailwind-free)
   ========================================================================== */
.velgrina-trustbar {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background-color: var(--velgrina-light);
    border-top: 1px solid var(--velgrina-border);
    border-bottom: 1px solid var(--velgrina-border);
}

@media (max-width: 767px) {
    .velgrina-trustbar {
        width: 100%;
        left: auto;
        margin-left: 0;
    }
}

.velgrina-trustbar__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .velgrina-trustbar__inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.velgrina-trustbar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
}

@media (min-width: 768px) {
    .velgrina-trustbar__item {
        gap: 12px;
        padding: 16px 20px;
    }
}

.velgrina-trustbar__item--border {
    border-right: 1px solid var(--velgrina-border);
}

/* Mobile: 2nd and 4th items get top border instead of all having right border */
@media (max-width: 767px) {
    .velgrina-trustbar__inner > :nth-child(n+3) {
        border-top: 1px solid var(--velgrina-border);
    }
    .velgrina-trustbar__inner > :nth-child(2n) {
        border-right: none;
    }
}

.velgrina-trustbar__icon-wrap {
    flex-shrink: 0;
    color: var(--velgrina-teal);
}

.velgrina-trustbar-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

.velgrina-trustbar__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--velgrina-black);
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 768px) {
    .velgrina-trustbar__title {
        font-size: 0.875rem;
    }
}

.velgrina-trustbar__subtitle {
    font-size: 0.6875rem;
    color: var(--velgrina-gray);
    margin: 2px 0 0;
}

@media (min-width: 768px) {
    .velgrina-trustbar__subtitle {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   STAR RATINGS
   ========================================================================== */
.velgrina-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.velgrina-stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.velgrina-star {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.velgrina-star--full {
    color: #F59E0B;
}

.velgrina-star--half {
    color: #F59E0B;
    opacity: 0.5;
}

.velgrina-star--empty {
    color: var(--velgrina-border);
}

.velgrina-product-card__review-count {
    font-size: 0.6875rem;
    color: var(--velgrina-gray);
    margin-left: 2px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
/* Slide wrapper — flex item in slider */
.velgrina-testimonials__slide {
    display: flex;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 0;
    padding: 0 8px;
}

.velgrina-testimonial-card {
    background: #fff;
    border: 1px solid var(--velgrina-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    transition: box-shadow 0.25s;
}

.velgrina-testimonial-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.velgrina-testimonial-card .velgrina-star {
    width: 16px;
    height: 16px;
}

.velgrina-testimonial-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--velgrina-black);
    margin: 0 0 16px;
    flex: 1;
}

.velgrina-testimonial-card__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--velgrina-border);
    padding-top: 12px;
}

.velgrina-testimonial-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--velgrina-black);
}

.velgrina-testimonial-card__product {
    font-size: 0.75rem;
    color: var(--velgrina-gray);
}

/* ==========================================================================
   LIFESTYLE BADGES
   ========================================================================== */
.velgrina-lifestyle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid var(--velgrina-border);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--velgrina-black);
    background: #fff;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .velgrina-lifestyle-badge {
        gap: 6px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.velgrina-lifestyle-badge svg,
.velgrina-lifestyle-badge__icon {
    width: 16px;
    height: 16px;
    color: var(--velgrina-teal);
    flex-shrink: 0;
}

.velgrina-lifestyle-badge:nth-child(2) .velgrina-lifestyle-badge__icon {
    transform: translateY(-1px);
}

/* ==========================================================================
   TESTIMONIALS LAYOUT
   ========================================================================== */
.velgrina-testimonials {
    padding: 2rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .velgrina-testimonials {
        padding: 2.5rem 2rem;
    }
}

.velgrina-testimonials__title {
    text-align: left;
    font-size: 1.5rem;
    color: var(--velgrina-black);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .velgrina-testimonials__title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .velgrina-testimonials__title {
        font-size: 2.25rem;
    }
}

/* Header row: title+subtitle left, arrows right */
.velgrina-testimonials__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.velgrina-testimonials__subtitle {
    font-size: 0.8125rem;
    color: var(--velgrina-gray);
    margin-top: 4px;
}

.velgrina-testimonials__arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .velgrina-testimonials {
        max-width: 100%;
        padding: 1.75rem 0 2rem;
        overflow: hidden;
    }

    .velgrina-testimonials__header {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        gap: 0.75rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .velgrina-testimonials__header > div {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 0;
    }

    .velgrina-testimonials__title,
    .velgrina-testimonials__subtitle {
        text-align: left;
    }

    .velgrina-testimonials__title {
        overflow-wrap: anywhere;
        font-size: 1.375rem;
        line-height: 1.25;
    }

    .velgrina-testimonials__arrows {
        display: flex;
        gap: 0.375rem;
    }
}

.velgrina-testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--velgrina-border);
    background: #fff;
    color: var(--velgrina-black);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.velgrina-testimonials__arrow:hover {
    border-color: var(--velgrina-teal);
    color: var(--velgrina-teal);
}

/* Unified slider viewport */
.velgrina-testimonials__viewport {
    overflow: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
}

.velgrina-testimonials__track {
    display: flex;
    width: 100%;
    transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
    gap: 0;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

.velgrina-testimonial-card .velgrina-stars {
    margin-bottom: 0.75rem;
}

/* Dots */
.velgrina-testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

@media (max-width: 767px) {
    .velgrina-testimonials__viewport {
        padding: 0 1rem;
    }

    .velgrina-testimonials__slide {
        padding: 0;
    }

    .velgrina-testimonial-card {
        padding: 16px;
    }

    .velgrina-testimonials__dots {
        gap: 6px;
        margin-top: 1rem;
        padding: 0 1rem;
    }
}

.velgrina-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--velgrina-border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
}

.velgrina-dot--active {
    width: 20px;
    border-radius: 4px;
    background: var(--velgrina-teal);
}
