.home-v3{
    --max: 1280px;     /* set 1400px if you want bigger */
    --gap: 28px;
}

.home-v3 .v3-section,
.home-v3 .v3-promo{
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

.home-v3 .v3-section{
    margin-top: 10px;        /* closer to banner above */
    margin-bottom: 18px;     /* more space before next banner */
}

.home-v3 .v3-head{
    display:flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.home-v3 .v3-title{
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-v3 .v3-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;          /* bigger */
    border-radius: 999px;        /* pill */
    font-size: 18px;
    font-weight: 700;

    background: #f3f4f6;         /* light gray */
    color: #111;
    text-decoration: none;

    transition: background .18s ease, color .18s ease;
}

.home-v3 .v3-link:hover{
    background: #111;            /* invert on hover */
    color: #fff;
}


.home-v3 .v3-promo__img{
    width: 100%;
    height: auto;
    display:block;
    border-radius: 14px;
}

/* carousel */
.home-v3 .v3-section{ overflow-x: clip; }
.home-v3 .v3-carousel{ position: relative; }

.home-v3 .v3-track{
    display:flex;
    flex-wrap: nowrap;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 0 6px;
    margin: 0;
    scrollbar-width: none;
}
.home-v3 .v3-track::-webkit-scrollbar{ height: 0; }

.home-v3 .v3-item{
    flex: 0 0 calc((100% - (3 * var(--gap))) / 4);
    max-width: calc((100% - (3 * var(--gap))) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1024px){
    .home-v3 .v3-item{
        flex-basis: calc((100% - (2 * var(--gap))) / 3);
        max-width: calc((100% - (2 * var(--gap))) / 3);
    }
}
@media (max-width: 640px){
    .home-v3 .v3-item{
        flex-basis: calc((100% - var(--gap)) / 2);
        max-width: calc((100% - var(--gap)) / 2);
    }
}

.home-v3 .v3-btn{
    position:absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;

    border: 0;
    background: #e5e7eb;         /* gray circle */
    color: #6b7280;              /* gray arrow */

    cursor: pointer;
    z-index: 10;

    display: grid;
    place-items: center;

    /* hide the ‹ › text so only our custom arrow shows */
    font-size: 0;
    line-height: 0;

    box-shadow: 0 10px 24px rgba(0,0,0,.14);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Arrow tail */
.home-v3 .v3-btn::before{
    content:"";
    position:absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* Arrow head */
.home-v3 .v3-btn::after{
    content:"";
    position:absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

/* direction */
.home-v3 .v3-btn[data-v3-next]::after{
    transform: translateX(6px) rotate(45deg);
}
.home-v3 .v3-btn[data-v3-prev]::after{
    transform: translateX(-6px) rotate(-135deg);
}

/* hover style: circle white, arrow black */
.home-v3 .v3-btn:hover{
    background: #ffffff;
    color: #111111;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    transform: translateY(-50%) scale(1.03);
}
.home-v3 .v3-btn:active{
    transform: translateY(-50%) scale(0.98);
}

.home-v3 .v3-btn[data-v3-prev]{ left: 10px; }
.home-v3 .v3-btn[data-v3-next]{ right: 10px; }

.home-v3 .v3-btn.is-hidden{
    display: none;
}


/* card */
.home-v3 .v3-media{
    position: relative;
    display:block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow:hidden;
    background: #f5f5f5;
}

.home-v3 .v3-img{
    position:absolute;
    inset: 10px;                 /* keeps image slightly smaller */
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;         /* ✅ NO CROP */
    object-position: center;
    display:block;
}

.home-v3 .v3-media--swap .v3-img--a{ opacity: 1; transition: opacity 220ms ease; }
.home-v3 .v3-media--swap .v3-img--b{ opacity: 0; transition: opacity 220ms ease; }
.home-v3 .v3-media--swap:hover .v3-img--a{ opacity: 0; }
.home-v3 .v3-media--swap:hover .v3-img--b{ opacity: 1; }

.home-v3 .v3-noimg{
    position:absolute; inset:0;
    display:grid; place-items:center;
    color:#888; font-size: 14px;
}

.home-v3 .v3-badges{
    position:absolute;
    top: 10px; left: 10px;
    display:flex;
    flex-direction: column;
    gap: 8px;
}

.home-v3 .v3-badge{
    display:inline-flex;
    width: fit-content;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    color:#fff;
}
.home-v3 .v3-badge--sale{ background:#dc2626; }
.home-v3 .v3-badge--new{ background:#111827; }
.home-v3 .v3-badge--try{ background:#2563eb; }

.home-v3 .v3-info{
    display: grid;
    grid-template-rows: auto auto auto;   /* top, mid, bottom */
    row-gap: 6px;
    padding-top: 6px;                    /* keep from step 1 */
}


.home-v3 .v3-row{
    display:flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.home-v3 .v3-name{
    min-width:0;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color:#111;
    text-decoration:none;
}

.home-v3 .v3-brand{
    min-height: 16px;          /* reserves the row height */
    line-height: 16px;
    min-width:0;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color:#6b7280;
}

.home-v3 .v3-price{ white-space: nowrap; }
.home-v3 .v3-price--now{ font-size: 16px; font-weight: 800; color:#111; }
.home-v3 .v3-price--old{ font-size: 14px; color:#9ca3af; text-decoration: line-through; }
.home-v3 .v3-cur{ margin-left: 4px; color:#6b7280; font-weight: 700; }

.home-v3 .v3-row--bottom{ margin-top: 0; align-items: center; }

.home-v3 .v3-swatches{
    display:flex;
    align-items:center;
    gap: 8px;
    min-height: 18px;
}

.home-v3 .v3-swatch{
    width:16px; height:16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    display:inline-block;
}

.home-v3 .v3-more{ font-size: 12px; color:#6b7280; }

.home-v3 .v3-cart{
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 999px;
    color:#111;
}
.home-v3 .v3-cart:hover{ background:#f3f4f6; }
.home-v3 .v3-cart.is-disabled{ opacity:.45; pointer-events:none; }

/* Extra space only for the first product row under the first banner */
.home-v3 .v3-section.is-first-row{
    margin-top: 26px;   /* increase/decrease as you like */
}

.home-v3 .v3-row--mid{
    min-height: 16px;       /* one line */
    line-height: 16px;
    align-items: center;
}