/* ═══════════════════════════════════════════════════════════
   MILORA BEAUTY — home.css  v2
   Two-column hero · Category strip · Carousel
═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero {
    background: var(--white);
    margin-top: calc(-1 * (var(--navbar-height) + 2rem));
    padding-top: calc(var(--navbar-height) + 2rem);
    overflow: hidden;
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    /* Add a small bottom padding so content doesn’t touch the next section */
    padding-bottom: var(--sp-5);
}

/* Banner carousel wrapper */
.hero--carousel { position: relative; }

/* Single slide */
.hero__slide {
    display: none;
    width: 100%;
}
.hero__slide.active { display: block; }

/* Two-column inner layout */
.hero__inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--sp-10) var(--container-pad);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: var(--sp-8);
    min-height: calc(45vh - var(--navbar-height));
}

/* ── Left: text ─────────────────────────────────────────── */
.hero__content {
    animation: heroFadeUp 0.8s ease forwards;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo — large in hero */
.hero__logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--sp-6);
    display: block;
}

/* Main headline */
.hero__title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.02em;
}

/* Gold italic accent line */
.hero__title-accent {
    display: block;
    color: var(--gold);
    font-style: italic;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--grey);
    max-width: 460px;
    line-height: 1.8;
    margin-bottom: var(--sp-6);
}

/* Trust icons row inside hero */
.hero__trust {
    display: flex;
    gap: var(--sp-8);
    margin-bottom: var(--sp-8);
    padding: var(--sp-5) 0;
    border-top: 1px solid var(--grey-border);
    border-bottom: 1px solid var(--grey-border);
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    text-align: center;
}

.hero__trust-item i {
    font-size: 1.4rem;
    color: var(--gold);
}

.hero__trust-item strong {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    display: block;
    line-height: 1.4;
}

/* CTA buttons */
.hero__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    align-items: center;
}

/* ── Right: image ───────────────────────────────────────── */
.hero__image-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    animation: heroFadeUp 0.8s 0.2s ease both;
}

.hero__image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Placeholder when no image uploaded */
.hero__image--placeholder {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--nude-beige) 0%, var(--gold-pale) 50%, var(--nude-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

/* Rotating "Your Beauty — Our Passion" badge */
.hero__badge {
    position: absolute;
    top: var(--sp-8);
    right: var(--sp-8);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: rotateBadgeOuter 20s linear infinite;
}

@keyframes rotateBadgeOuter {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero__badge-inner {
    animation: rotateBadgeOuter 20s linear infinite reverse;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

.hero__badge-top {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero__badge-main {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.hero__badge i { font-size: 0.68rem; color: var(--gold); margin-top: 2px; }

/* Hero carousel controls */
.hero-carousel-controls {
    position: absolute;
    bottom: var(--sp-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    z-index: 10;
}

.hero-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.85);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}
.hero-carousel-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.hero-carousel-dots { display: flex; gap: var(--sp-2); align-items: center; }
.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gold-pale);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}
.hero-carousel-dot.active { background: var(--gold); width: 24px; }

/* ══════════════════════════════════════
   CATEGORY ICON STRIP
══════════════════════════════════════ */
.hero-categories {
    background: var(--white);
    border-top: 1px solid var(--grey-border);
    border-bottom: 1px solid var(--grey-border);
    padding: var(--sp-4) 0;
}

.hero-categories__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hero-categories__inner::-webkit-scrollbar { display: none; }

.hero-cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-8);
    border-right: 1px solid var(--grey-border);
    transition: background var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.hero-cat-link:last-child { border-right: none; }
.hero-cat-link:hover { background: var(--nude-beige); }

.hero-cat-link i {
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform var(--transition-normal);
}
.hero-cat-link:hover i { transform: translateY(-2px); }

.hero-cat-link span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
}

/* ══════════════════════════════════════
   TRUST BAR
══════════════════════════════════════ */
.trust-bar {
    background: var(--white);
    padding: var(--sp-10) 0;
}

.trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-md);
    padding: var(--sp-8);
}

.trust-item { display: flex; align-items: center; gap: var(--sp-4); }
.trust-item i { font-size: 1.8rem; color: var(--gold); flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-size: 0.95rem; font-weight: 700; color: var(--black); }
.trust-item span { font-size: 0.82rem; font-weight: 400; color: var(--grey); }

/* ══════════════════════════════════════
   CATEGORIES GRID
══════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4);
}

/* ══════════════════════════════════════
   SALE STRIP
══════════════════════════════════════ */
.sale-strip {
    padding: var(--sp-16) 0;
    background: var(--black);
}

.sale-strip__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--sp-10);
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.sale-strip .product-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 169, 126, 0.15);
}
.sale-strip .product-card__name  { color: var(--ivory); }
.sale-strip .product-card__price .current { color: var(--gold); }
.sale-strip .product-card__brand { color: rgba(200, 169, 126, 0.7); }

/* ══════════════════════════════════════
   WHY MILORA
══════════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-8);
}
.why-item { text-align: center; padding: var(--sp-8) var(--sp-4); }
.why-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold-light), var(--nude-beige));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-5);
    font-size: 1.6rem;
    color: var(--gold-deep);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.why-item:hover .why-icon { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.why-item h4 { font-size: 1.05rem; margin-bottom: var(--sp-3); color: var(--black); }
.why-item p  { font-size: 0.9rem; line-height: 1.7; color: var(--grey); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .hero { min-height: auto; }
    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: var(--sp-8);
        padding-bottom: var(--sp-8);
        min-height: auto;
    }
    .hero__image-col { order: -1; min-height: 300px; justify-content: center; }
    .hero__image, .hero__image--placeholder { max-height: 320px; height: 320px; border-radius: var(--radius-md); }
    .hero__badge { display: none; }
    .hero__logo { height: 60px; }
    .hero__trust { gap: var(--sp-4); }
}

@media (max-width: 640px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar__inner { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-cat-link { padding: var(--sp-3) var(--sp-4); }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .why-grid { grid-template-columns: 1fr; }
}