/* Import Fonts dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #800080; /* Ungu Tua/Maroon */
    --secondary-color: #F8C4CC; /* Pink Lembut/Blush */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #fff;
    --bg-dark: #fcf6f9; /* Off-White Cream */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; 
}

body {
    background-color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* -------------------- Header & Navigasi -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-light);
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 7%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.logo {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
}

.navbar a {
    font-size: 1.6rem;
    padding: 0 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--secondary-color);
}

.icons i, .menu-toggle i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-left: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle {
    display: none; 
}

/* -------------------- Hero Section -------------------- */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('images/hero-bg.jpg') no-repeat; 
    background-size: cover;
    background-position: center;
    padding: 10rem 7% 0;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); 
}

.home .content {
    max-width: 65rem;
    position: relative; 
}

.home .content h1 {
    font-size: 6rem;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.home .content p {
    font-size: 1.8rem;
    color: var(--text-dark);
    padding: 1rem 0;
    line-height: 1.6;
}

.btn {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 1.2rem 3.5rem;
    font-size: 1.7rem;
    color: var(--primary-color);
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    letter-spacing: 0.1rem;
}

/* -------------------- General Sections Styling -------------------- */
section {
    padding: 8rem 7%;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-color);
    margin-bottom: 5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 8rem;
    height: 0.3rem;
    background: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 0.2rem;
}

/* -------------------- Products Section -------------------- */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.product-card .image-box img {
    height: 30rem;
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.product-card h3 {
    font-size: 2.4rem;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 2rem;
    height: 4.5rem;
    overflow: hidden;
}

.product-card .price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.product-card .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .cart-btn {
    flex-grow: 1;
    margin-right: 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.2rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: var(--transition);
}

.product-card .cart-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.product-card .like-btn {
    font-size: 2.4rem;
    color: #ccc;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.product-card .like-btn.liked {
    color: #ff3366; /* Merah untuk tanda suka */
}

.product-card .like-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* -------------------- Reviews Section -------------------- */
.reviews {
    background-color: var(--secondary-color);
}

.review-container {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    flex-wrap: wrap;
}

.review-card {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 40rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    text-align: center;
}

.review-card i.fa-quote-left {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.review-card p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-card .rating i {
    color: gold;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.review-card h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--primary-color);
    text-align: center;
    padding: 4rem 7%;
}

.footer-logo {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 1.5rem;
}

.footer p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.footer .social-icons a {
    color: var(--text-light);
    font-size: 2.5rem;
    margin: 0 1.2rem;
    transition: var(--transition);
}

.footer .social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* -------------------- Bottom Buy Button (Mobile Only) -------------------- */
.bottom-buy-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #25D366; 
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
    display: none; /* Sembunyikan di desktop */
    align-items: center;
    gap: 1rem;
    animation: pulse 1.5s infinite; 
}

/* -------------------- Animasi (Keyframes) -------------------- */

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animate-text {
    animation: slideInFromLeft 1s ease-out backwards;
}

.animate-text.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0; 
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-2 {
    transition-delay: 0.2s; 
}

.fade-in.delay-3 {
    transition-delay: 0.4s;
}

@keyframes slideUp {
    0% { transform: translateY(80px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.slide-up {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* -------------------- Media Queries (Responsif) -------------------- */

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    .header {
        padding: 1.5rem 3%;
    }
    section {
        padding: 6rem 3%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-light);
        border-top: 0.1rem solid var(--secondary-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.3s ease-out;
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-bottom: 1rem;
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 
    }

    .navbar a {
        display: block;
        margin: 1rem;
        padding: 1rem;
        border: 1px solid var(--secondary-color);
    }

    .home .content h1 {
        font-size: 4.5rem;
    }

    /* Tampilkan Bottom Buy Button */
    .bottom-buy-btn {
        display: flex; 
    }

    /* Sembunyikan ikon yang tidak terlalu penting di mobile */
    .icons #search-btn {
        display: none;
    }
}