/* ===== INDISTYLEX HOME — uses site CSS variables from style.css ===== */

/* ── Hero ── */
.home-hero { margin-top: 0; }
.home-hero-panel {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.home-hero-panel--sale {
    background: linear-gradient(135deg, #DBEAFE 0%, #93C5FD 45%, #2563EB 100%);
}
.home-hero-panel--new {
    background: linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 50%, #93C5FD 100%);
}
.home-hero-panel--baby {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 55%, #60A5FA 100%);
}
.home-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.8) 2px, transparent 2px),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.6) 3px, transparent 3px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.5) 2px, transparent 2px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
    pointer-events: none;
}
.home-hero-pattern--light { opacity: 0.25; }
.home-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 16px 56px;
}
.home-hero-copy { flex: 1; max-width: 480px; color: var(--primary); }
.home-hero-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.85;
}
.home-hero-pre {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}
.home-hero-display {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 12px;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 2px 3px 0 rgba(27, 58, 95, 0.15);
}
.home-hero-display--sm {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -1px;
    color: var(--primary);
    text-shadow: none;
}
.home-hero-off {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 24px;
    color: var(--primary);
}
.home-hero-off strong { font-weight: 800; }
.home-hero-subline {
    font-size: 1rem;
    color: rgba(27, 58, 95, 0.75);
    margin-bottom: 24px;
}
.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(27, 58, 95, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-hero-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 58, 95, 0.3);
}
.home-hero-cta--dark { background: var(--accent-hover); }
.home-hero-cta .bi-bag-heart-fill { color: #FFD166; font-size: 1rem; }
.home-hero-visual {
    position: relative;
    flex-shrink: 0;
    display: none;
}
@media (min-width: 768px) {
    .home-hero-visual { display: block; }
}
.home-hero-kid {
    max-height: 380px;
    width: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(27, 58, 95, 0.15);
    animation: homeHeroFloat 5s ease-in-out infinite;
}
@keyframes homeHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.home-animate-in {
    animation: homeFadeUp 0.7s ease-out both;
}
@keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-img-reveal {
    animation: homeImgReveal 0.65s ease-out both;
}
.home-img-reveal:nth-child(2) { animation-delay: 0.08s; }
.home-img-reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes homeImgReveal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero-kid,
    .home-animate-in,
    .home-img-reveal { animation: none; }
}
.home-hero-badge {
    position: absolute;
    top: 10%;
    right: -10px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(79, 142, 247, 0.4);
    z-index: 3;
}
.home-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.home-hero-nav:hover { background: #fff; }
.home-hero-nav--prev { left: 12px; }
.home-hero-nav--next { right: 12px; }
.home-hero-dots {
    margin-bottom: 20px;
    z-index: 5;
}
.home-hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
}
.home-hero-dots button.active { background: #fff; width: 24px; border-radius: 999px; }

/* ── USP bar ── */
.home-usp {
    background: #DBEAFE;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    padding: 14px 0;
}
.home-usp-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: home-usp-scroll 35s linear infinite;
}
.home-usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}
.home-usp-item i {
    font-size: 1.1rem;
    color: var(--accent);
}
@keyframes home-usp-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Sections ── */
.home-section { padding: 56px 0; }
.home-h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}
.home-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.home-link-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
.home-link-all:hover { color: var(--primary); }

/* ── Gender toggle + fit chips ── */
.home-fit { background: #fff; }
.home-gender-toggle {
    display: inline-flex;
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 32px;
    border: 1px solid #E2EAF5;
}
.home-gender-btn {
    border: none;
    background: transparent;
    padding: 10px 32px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.home-gender-btn.is-active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 142, 247, 0.35);
}
.home-fit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 20px;
}
.home-fit-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    min-width: 76px;
    transition: transform 0.15s;
}
.home-fit-chip:hover {
    transform: translateY(-4px);
    color: var(--accent);
}
.home-fit-chip-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid #E2EAF5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.home-fit-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-fit-chip:hover .home-fit-chip-icon {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}
.home-fit-chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

/* ── Quick shop cards ── */
.home-quick-shop { background: var(--light-bg); padding-top: 0; }
.home-quick-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E2EAF5;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 58, 95, 0.1);
    color: inherit;
}
.home-quick-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.home-quick-card-body {
    padding: 20px;
    text-align: center;
}
.home-quick-card-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.home-quick-card-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.home-quick-card-body span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── Product carousel ── */
.home-favorites { background: var(--accent-soft); }
.home-carousel-wrap {
    position: relative;
}
.home-carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #E2EAF5;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    z-index: 3;
    cursor: pointer;
    display: none;
}
@media (min-width: 992px) {
    .home-carousel-arrow { display: flex; align-items: center; justify-content: center; }
}
.home-carousel-arrow--prev { left: -20px; }
.home-carousel-arrow--next { right: -20px; }
.home-carousel-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.home-product-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
}
.home-product-track > .home-product-card {
    flex: 0 0 min(260px, 82vw);
    scroll-snap-align: start;
    height: auto;
}
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}
@media (min-width: 768px) {
    .home-product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Product card (Miarcus-style) ── */
.home-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E2EAF5;
}
.home-product-card-media {
    position: relative;
    background: var(--card-bg);
    aspect-ratio: 1;
    overflow: hidden;
}
.home-product-card-media img,
.home-product-card-media .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.home-product-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-warm);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 2;
}
.home-product-sale--new {
    background: var(--accent);
}
.home-product-sale--featured {
    background: var(--primary);
}
.home-product-sale--trending {
    background: #0EA5E9;
}
.home-product-card .collection-card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.home-product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    min-height: 0;
}
.home-product-card-top {
    flex: 0 0 auto;
}
.home-product-card-bottom {
    margin-top: auto;
    flex: 0 0 auto;
    padding-top: 8px;
}
.home-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 0;
    min-height: 2.7em;
}
.home-product-title:hover { color: var(--accent); }
.home-product-pill-slot {
    min-height: 28px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}
.home-product-swatches-slot {
    min-height: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.home-product-swatches-slot .collection-card-swatches {
    margin-bottom: 0;
}
.home-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #E8EEFF;
    color: var(--accent-hover);
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 0;
}
.home-product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 1.5em;
}
.home-product-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}
.home-product-compare {
    font-size: 0.75rem;
    color: #94A3B8;
    text-decoration: line-through;
}
.home-product-save {
    font-size: 0.68rem;
    font-weight: 700;
    color: #E53935;
}
.home-product-action,
.home-product-cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.home-product-size-slot {
    min-height: 42px;
    flex-shrink: 0;
}
.home-product-size {
    width: 100%;
    border: 1.5px solid #E2EAF5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.78rem;
    margin-bottom: 0;
    background: #fff;
    color: var(--primary);
    min-height: 42px;
}
.home-product-add-btn {
    width: 100%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
    min-height: 44px;
    flex-shrink: 0;
}
.home-product-add-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ── Editorial blocks ── */
.home-editorial { background: #fff; }
.home-editorial-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.home-editorial-block--reverse { flex-direction: row-reverse; }
.home-editorial-text { flex: 1; min-width: 240px; }
.home-editorial-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.home-editorial-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.home-editorial-text a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.home-editorial-text a:hover { color: var(--accent); }
.home-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 280px;
}
.home-editorial-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E2EAF5;
}

/* ── Category grid ── */
.home-categories { background: var(--light-bg); }
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-cat-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
}
.home-cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.home-cat-tile:hover img { transform: scale(1.06); }
.home-cat-tile-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(27, 58, 95, 0.88));
    color: #fff;
}
.home-cat-tile-cap strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.home-cat-tile-cap span {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ── Needs cards ── */
.home-needs { background: #fff; }
.home-need-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--accent-soft);
    border: 1px solid #E2EAF5;
    border-radius: 14px;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}
.home-need-card:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--accent);
}
.home-need-card--photo {
    padding: 0;
    overflow: hidden;
    border: none;
    background: #fff;
    box-shadow: 0 4px 16px rgba(27, 58, 95, 0.08);
}
.home-need-card--photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.home-need-card--photo span {
    display: block;
    padding: 14px 10px;
    width: 100%;
}
.home-need-card--photo:hover img { transform: scale(1.04); }
.home-need-card--photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(79, 142, 247, 0.18);
}

/* ── Real moments ── */
.home-moments { background: var(--accent-soft); }
.home-moments-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.home-moment-card {
    flex: 0 0 min(200px, 45vw);
    scroll-snap-align: start;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.home-moment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-moment-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
}
.home-moment-btn:hover { background: var(--accent-hover); color: #fff; }

/* ── Shop by age ── */
.home-age { background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%); }
.home-age-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.home-age-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 68px;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #E2EAF5;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.15s;
}
.home-age-emoji { font-size: 1.3rem; }
.home-age-item small {
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}
.home-age-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(79, 142, 247, 0.15);
    transform: translateY(-2px);
}

/* ── Trust ── */
.home-trust {
    padding: 44px 0 60px;
    border-top: 1px solid #E2EAF5;
    background: #fff;
}
.home-trust-box {
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-trust-box i {
    font-size: 1.6rem;
    color: var(--accent);
}
.home-trust-box strong {
    display: block;
    font-size: 0.82rem;
    color: var(--primary);
}
.home-trust-box span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    .home-hero-panel { min-height: 360px; }
    .home-section { padding: 40px 0; }
    .home-editorial-block,
    .home-editorial-block--reverse { flex-direction: column; }
}
