/* ===================================================
   Ella Beauty — Homepage Styles
   Palette: blush pink, rose gold, soft lavender, white
   =================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --clr-white:       #ffffff;
    --clr-snow:        #fdf6f8;
    --clr-blush:       #f8e8ee;
    --clr-pink:        #e8a0bf;
    --clr-rose:        #c97c9a;
    --clr-rose-gold:   #b76e79;
    --clr-lavender:    #d5c6e0;
    --clr-lavender-lt: #efe6f7;
    --clr-text:        #3a2d3f;
    --clr-text-light:  #7c6a84;
    --clr-gold:        #d4a373;
    --clr-overlay:     rgba(248, 232, 238, .45);
    --glass-bg:        rgba(255, 255, 255, .35);
    --glass-border:    rgba(255, 255, 255, .55);
    --shadow-soft:     0 8px 32px rgba(185, 110, 121, .12);
    --shadow-card:     0 12px 40px rgba(185, 110, 121, .15);
    --radius-sm:       8px;
    --radius-md:       16px;
    --radius-lg:       24px;
    --transition:      .35s cubic-bezier(.4, 0, .2, 1);
    --font-body:       'Cairo', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-snow);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Utility ---------- */
.container {
    width: min(90%, 1240px);
    margin-inline: auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: .6rem;
    color: var(--clr-text);
}

.section-subtitle {
    text-align: center;
    color: var(--clr-text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   2. HERO / CAROUSEL
   ============================ */
.hero {
    margin-top: 68px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--clr-blush) 0%, var(--clr-lavender-lt) 100%);
}

.hero__track {
    display: flex;
    transition: transform .65s cubic-bezier(.77, 0, .175, 1);
    will-change: transform;
}

.hero__slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    min-height: 520px;
    position: relative;
}

.hero__content {
    text-align: center;
    max-width: 640px;
    z-index: 2;
}
.hero__badge {
    display: inline-block;
    background: var(--clr-rose-gold);
    color: var(--clr-white);
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    letter-spacing: .03em;
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--clr-text);
}
.hero__title em {
    font-style: normal;
    color: var(--clr-rose-gold);
}
.hero__desc {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    padding: .85rem 2.4rem;
    border-radius: 50px;
    transition: all var(--transition);
}
.btn--primary {
    background: var(--clr-rose-gold);
    color: var(--clr-white);
    box-shadow: 0 6px 24px rgba(185, 110, 121, .35);
}
.btn--primary:hover {
    background: var(--clr-rose);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(185, 110, 121, .45);
}

.hero__dots {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
    z-index: 10;
}
.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--clr-pink);
    opacity: .4;
    transition: all var(--transition);
    cursor: pointer;
}
.hero__dot.active {
    opacity: 1;
    width: 28px;
    border-radius: 20px;
    background: var(--clr-rose-gold);
}

/* decorative circle blobs */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    pointer-events: none;
}
.hero__blob--1 {
    width: 340px; height: 340px;
    background: var(--clr-pink);
    top: -80px; inset-inline-start: -60px;
}
.hero__blob--2 {
    width: 260px; height: 260px;
    background: var(--clr-lavender);
    bottom: -60px; inset-inline-end: 5%;
}

/* ============================
   3. FEATURED PRODUCTS
   ============================ */
.products {
    padding: 5rem 0;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.products__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* glass card */
.product-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    perspective: 800px;
}
.product-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 50px rgba(185, 110, 121, .2);
}

.product-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--clr-blush), var(--clr-lavender-lt));
    aspect-ratio: 3/3.5;
}
.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.product-card:hover .product-card__img-wrap img {
    transform: scale(1.08);
}

.product-card__tag {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: var(--clr-rose-gold);
    color: var(--clr-white);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .85rem;
    border-radius: 50px;
}

.product-card__body {
    padding: 1.3rem 1.4rem 1.5rem;
}
.product-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.product-card__title a {
    color: inherit;
    text-decoration: none;
}
.product-card__title a:hover {
    color: var(--clr-rose-gold);
}

.products__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--clr-text-muted, #888);
    font-size: 1rem;
    padding: 2rem 0;
}
.product-card__subtitle {
    font-size: .82rem;
    color: var(--clr-text-light);
    margin-bottom: .8rem;
}
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--clr-rose-gold);
}
.product-card__price small {
    font-size: .78rem;
    font-weight: 400;
    color: var(--clr-text-light);
    margin-inline-start: .2rem;
}

.btn--cart {
    background: linear-gradient(135deg, var(--clr-rose-gold), var(--clr-pink));
    color: var(--clr-white);
    padding: .55rem 1.3rem;
    font-size: .82rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(185, 110, 121, .25);
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
}
.btn--cart:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(185, 110, 121, .4);
}
.btn--cart.added {
    background: linear-gradient(135deg, #6ec17a, #48a85a);
}

/* ripple */
.btn--cart .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transform: scale(0);
    animation: ripple-anim .5s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================
   4. SPECIAL OFFERS
   ============================ */
.offers {
    padding: 5rem 0;
    background: linear-gradient(160deg, var(--clr-lavender-lt) 0%, var(--clr-blush) 100%);
    position: relative;
    overflow: hidden;
}
.offers__blob {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--clr-pink);
    filter: blur(100px);
    opacity: .18;
    top: -120px;
    inset-inline-end: -100px;
    pointer-events: none;
}

.offers__card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.offers__img {
    flex: 0 0 42%;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3.5;
    background: linear-gradient(135deg, var(--clr-blush), var(--clr-lavender-lt));
}
.offers__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offers__body { flex: 1; }
.offers__badge {
    display: inline-block;
    background: var(--clr-rose-gold);
    color: var(--clr-white);
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.offers__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: .8rem;
    line-height: 1.4;
}
.offers__desc {
    color: var(--clr-text-light);
    margin-bottom: 1.4rem;
    line-height: 1.8;
}

.offers__timer {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.offers__timer-box {
    text-align: center;
    background: rgba(255,255,255,.55);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    min-width: 62px;
    border: 1px solid var(--glass-border);
}
.offers__timer-box strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-rose-gold);
    line-height: 1.2;
}
.offers__timer-box span {
    font-size: .7rem;
    color: var(--clr-text-light);
}

@media (max-width: 768px) {
    .offers__card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.4rem;
    }
    .offers__img { flex: none; width: 100%; }
    .offers__timer { justify-content: center; }
}
