/* ═══════════════════════════════════════════════════════════════
   bamiMAG · index.css — Homepage styles
   Paleta: Emerald Sage (#1D6A4E primary, #E07A3A accent)
═══════════════════════════════════════════════════════════════ */

/* ── Animații ────────────────────────────────────────────────── */
@keyframes heroFadeUp    { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes blobFloat1    { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-20px) scale(1.06)} 66%{transform:translate(-15px,15px) scale(.96)} }
@keyframes blobFloat2    { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-25px,20px) scale(1.04)} 66%{transform:translate(20px,-15px) scale(.97)} }
@keyframes sectionReveal { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes trophyBounce  { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-6px) rotate(3deg)} }
@keyframes livePulse     { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
@keyframes spin          { to{transform:rotate(360deg)} }

/* ── Hero bamiMAG ────────────────────────────────────────────── */
.bami-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    background: #f2f7f5;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.bami-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #f2f7f5 0%, #eaf4f0 50%, #d4ede5 100%);
}
/* Blob decorativ */
.bami-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(29,106,78,.08) 0%, transparent 65%);
    filter: blur(60px);
    animation: blobFloat1 12s ease-in-out infinite;
    pointer-events: none;
}
.bami-hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    bottom: -150px; left: -80px;
    background: radial-gradient(circle, rgba(224,122,58,.07) 0%, transparent 65%);
    filter: blur(60px);
    animation: blobFloat2 15s ease-in-out infinite;
    pointer-events: none;
}

.bami-hero-inner {
    position: relative; z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.bami-hero-text {
    max-width: 580px;
    animation: heroFadeUp .5s ease both;
}

.bami-hero-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: #1D6A4E;
    margin-bottom: 1.2rem;
}
.bami-hero-line {
    flex: 1; height: 1px;
    background: #1D6A4E; opacity: .3;
    max-width: 40px;
}

.bami-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #0d1117;
    margin-bottom: 1rem;
    animation: heroFadeUp .5s .1s ease both;
}

.bami-hero-sub {
    font-size: 15px;
    color: #4b7a60;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    animation: heroFadeUp .5s .2s ease both;
}

.bami-hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    animation: heroFadeUp .5s .3s ease both;
}

/* Butoane hero */
.bami-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: #1D6A4E; color: #fff;
    border-radius: 50px;
    font-weight: 700; font-size: 14.5px;
    border: none; cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(29,106,78,.3);
}
.bami-btn-primary:hover {
    background: #165a40;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 22px rgba(29,106,78,.4);
}

.bami-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: transparent; color: #1D6A4E;
    border: 2px solid #1D6A4E;
    border-radius: 50px;
    font-weight: 600; font-size: 14.5px;
    transition: all .2s; text-decoration: none;
}
.bami-btn-outline:hover { background: #1D6A4E; color: #fff; }

/* Stats hero */
.bami-hero-stats {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    animation: heroFadeUp .5s .4s ease both;
}
.bami-stat { text-align: center; }
.bami-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem; font-weight: 800;
    color: #1D6A4E; line-height: 1;
}
.bami-stat-label { font-size: 12px; color: #4b7a60; margin-top: 3px; font-weight: 500; }

/* Mobile hero */
@media (max-width: 991px) {
    .bami-hero {
        padding: 2.5rem 0 2rem;
        min-height: unset;
        align-items: flex-start;
    }
    .bami-hero-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
    .bami-hero-eyebrow { justify-content: center; font-size: 10px; }
    .bami-hero-title { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: .6rem; }
    .bami-hero-sub { font-size: 13.5px; margin-bottom: 1.2rem; }
    .bami-hero-actions { justify-content: center; gap: 8px; }
    .bami-btn-primary { padding: 11px 20px; font-size: 13.5px; }
    .bami-btn-outline { padding: 10px 18px; font-size: 13.5px; }
    .bami-hero-stats { justify-content: center; gap: 1.5rem; margin-top: .5rem; }
    .bami-stat-num { font-size: 1.8rem; }
    .bami-hero-text { max-width: 100%; }
}

@media (max-width: 991px) {
    .bami-trust-bar { padding: .8rem 0; }
    .bami-trust-items {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        gap: 0;
        scrollbar-width: none;
    }
    .bami-trust-items::-webkit-scrollbar { display: none; }
    .bami-trust-sep { display: block; width: 1px; height: 28px; background: rgba(255,255,255,.2); flex-shrink: 0; }
    .bami-trust-item { padding: .4rem 1.1rem; flex-shrink: 0; }
    .bami-trust-item strong { font-size: 12px; }
    .bami-trust-item span { display: block; font-size: 10.5px; opacity: .7; }
    .bami-trust-item i { font-size: 1.1rem; }
}

/* ── Trust Bar ───────────────────────────────────────────────── */
.bami-trust-bar {
    background: #1D6A4E;
    padding: 1rem 0;
}
.bami-trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem; flex-wrap: wrap;
}
.bami-trust-item {
    display: flex; align-items: center; gap: 10px; color: #fff;
}
.bami-trust-item i { font-size: 1.3rem; opacity: .85; }
.bami-trust-item strong { display: block; font-size: 13px; font-weight: 700; }
.bami-trust-item span  { font-size: 11.5px; opacity: .75; }

@media (max-width: 575px) {
    .bami-trust-items { gap: 1.2rem; }
    .bami-trust-item span { display: none; }
}

/* ── Secțiuni homepage ───────────────────────────────────────── */
.bami-section { padding: 3rem 0; animation: sectionReveal .5s ease both; }
.bami-section-alt { background: #f9fbfa; }

.bami-section-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem; gap: 12px;
}
.bami-section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.7rem; font-weight: 800; margin: 0;
}
.bami-section-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
}

.bami-see-all {
    font-size: 13.5px; font-weight: 600;
    color: #1D6A4E; text-decoration: none; white-space: nowrap;
    transition: opacity .2s;
}
.bami-see-all:hover { opacity: .7; text-decoration: underline; }

.bami-section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 50px;
    font-size: 13px; font-weight: 700;
}
.badge-new  { background: #d4ede5; color: #1D6A4E; }
.badge-sale { background: #fdebd7; color: #c9692a; }
.badge-hot  { background: #fee2e2; color: #c0392b; }

/* ── Grid categorii ──────────────────────────────────────────── */
.bami-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 768px)  { .bami-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (max-width: 480px)  { .bami-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .bami-cat-grid { grid-template-columns: repeat(8, 1fr); } }

.bami-cat-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    padding: 1.2rem .8rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    transition: all .2s;
}
.bami-cat-card:hover {
    border-color: #1D6A4E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29,106,78,.12);
}
.bami-cat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: transform .2s;
}
.bami-cat-card:hover .bami-cat-icon { transform: scale(1.1); }
.bami-cat-name {
    font-size: 12px; font-weight: 700;
    color: #0d1117; text-align: center; line-height: 1.3;
}
.bami-cat-count { font-size: 11px; color: #6b7280; }

@media (max-width: 480px) {
    .bami-cat-icon { width: 42px; height: 42px; font-size: 1.1rem; }
    .bami-cat-name { font-size: 11px; }
}

/* ── Scroll orizontal produse ────────────────────────────────── */
.bami-product-scroll {
    display: flex; gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.bami-product-scroll::-webkit-scrollbar { height: 4px; }
.bami-product-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.bami-product-scroll::-webkit-scrollbar-thumb { background: #1D6A4E; border-radius: 4px; }

/* ── Grid produse 4 coloane ──────────────────────────────────── */
.bami-product-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 576px) { .bami-product-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Grid produse 2 coloane (dublu layout) ───────────────────── */
.bami-double-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) { .bami-double-section { grid-template-columns: 1fr; } }
.bami-product-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ── Card produs ─────────────────────────────────────────────── */
.bami-product-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all .2s;
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 185px;
}
/* În grid, cardurile umplu coloana */
.bami-product-grid-4 .bami-product-card,
.bami-product-grid-2 .bami-product-card { width: auto; flex-shrink: unset; }
.bami-product-card-sm { border-radius: 12px; }

.bami-product-card:hover {
    border-color: #1D6A4E;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29,106,78,.12);
}

/* Imagine card */
.bami-product-img {
    position: relative;
    background: #f5f6fa;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.bami-product-img img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 10px;
    transition: transform .3s;
}
.bami-product-card:hover .bami-product-img img { transform: scale(1.06); }

/* Badge-uri pe imagine */
.bami-product-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 50px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .02em;
}
.badge-new-tag  { background: #1D6A4E; color: #fff; }
.badge-sale-tag { background: #c9692a; color: #fff; }

.bami-product-rank {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px;
    background: rgba(0,0,0,.65); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
}

/* Info card */
.bami-product-info { padding: 10px 12px 14px; }
.bami-product-cat {
    font-size: 10px; color: #1D6A4E; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bami-product-name {
    font-size: 12.5px; font-weight: 600; color: #0d1117;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.bami-product-name-sm { font-size: 11.5px; }
.bami-product-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px; font-weight: 700; color: #1D6A4E;
}
.bami-product-price-sm { font-size: 14px; }
.bami-product-price-row { display: flex; align-items: baseline; gap: 6px; }
.bami-product-price-old {
    font-size: 11px; color: #9ca3af;
    text-decoration: line-through;
}

/* ── Banner giveaway ─────────────────────────────────────────── */
.bami-giveaway-banner {
    background: linear-gradient(135deg, #1D6A4E, #2D9E75);
    padding: 1.4rem 0;
}
.bami-giveaway-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.bami-giveaway-left { display: flex; align-items: center; gap: 1rem; }
.bami-giveaway-trophy {
    position: relative;
    font-size: 2rem; color: #fff;
    animation: trophyBounce 3s ease-in-out infinite;
}
.bami-giveaway-live {
    position: absolute; top: -6px; right: -12px;
    background: #ef4444; color: #fff;
    font-size: 8px; font-weight: 800;
    padding: 1px 5px; border-radius: 4px;
    letter-spacing: .05em;
    animation: livePulse 1.5s infinite;
}
.bami-giveaway-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.75); margin-bottom: 3px;
}
.bami-giveaway-title { font-size: 16px; font-weight: 700; color: #fff; }
.bami-giveaway-meta {
    font-size: 12px; color: rgba(255,255,255,.7);
    display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap;
}
.bami-giveaway-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: #fff; color: #1D6A4E;
    border-radius: 50px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    transition: all .2s; white-space: nowrap;
    flex-shrink: 0;
}
.bami-giveaway-btn:hover { background: #f2f7f5; transform: translateY(-1px); }

@media (max-width: 575px) {
    .bami-giveaway-btn span { display: none; }
    .bami-giveaway-btn { padding: 10px 14px; }
    .bami-giveaway-title { font-size: 14px; }
}

/* ── CTA final ───────────────────────────────────────────────── */
.bami-cta {
    background: linear-gradient(135deg, #f2f7f5, #eaf4f0);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #d4ede5;
}
.bami-cta-inner h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    margin-bottom: .5rem; color: #0d1117;
}
.bami-cta-inner p { color: #6b7280; margin-bottom: 1.5rem; font-size: 15px; }

/* ── Card cu butoane (bami-card.php) ─────────────────────────────── */
.bami-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all .2s;
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 185px;
}
.bami-product-grid-4 .bami-product-card,
.bami-product-grid-2 .bami-product-card { width: auto; flex-shrink: unset; }
.bami-product-card-sm { border-radius: 12px; }
.bami-product-card:hover {
    border-color: #1D6A4E;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29,106,78,.12);
}
.bami-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1;
}
.bami-product-img {
    position: relative;
    background: #f5f6fa;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.bami-product-img img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 10px;
    transition: transform .3s;
}
.bami-product-card:hover .bami-product-img img { transform: scale(1.06); }
.bami-product-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 50px;
    font-size: 10px; font-weight: 700;
}
.badge-new-tag  { background: #1D6A4E; color: #fff; }
.badge-sale-tag { background: #c9692a; color: #fff; }
.bami-product-info { padding: 10px 12px 8px; flex: 1; }
.bami-product-cat {
    font-size: 10px; color: #1D6A4E; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bami-product-name {
    font-size: 12.5px; font-weight: 600; color: #0d1117;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.bami-product-name-sm { font-size: 11.5px; }
.bami-product-price-row { display: flex; align-items: baseline; gap: 6px; }
.bami-product-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; font-weight: 700; color: #1D6A4E;
}
.bami-product-price-sm { font-size: 14px; }
.bami-product-price-old { font-size: 11px; color: #9ca3af; text-decoration: line-through; }

/* Butoane card */
.bami-card-actions {
    display: flex;
    gap: 6px;
    padding: 0 10px 10px;
}
.bami-card-btn-cart {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 10px;
    background: #1D6A4E; color: #fff;
    border: none; border-radius: 10px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    white-space: nowrap;
}
.bami-card-btn-cart:hover:not(:disabled) { background: #165a40; transform: translateY(-1px); }
.bami-card-btn-wish {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: #f5f6fa; color: #6b7280;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; cursor: pointer; transition: all .2s;
    flex-shrink: 0;
}
.bami-card-btn-wish:hover,
.bami-card-btn-wish.wished { background: #fee2e2; color: #e53e3e; border-color: #feb2b2; }
