/* style.css - Kiani Florist Theme */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f0e1; /* cream */
    color: #4b3f2f; /* coklat gelap */
    margin: 0;
    padding: 0;
}

header {
    background-color: #e0d4b0; /* cream gelap */
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

nav {
    background-color: #d6c4a1;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
}

nav a {
    text-decoration: none;
    color: #4b3f2f;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    background-color: #e0d4b0;
}

nav a.active {
    background-color: #e0d4b0;
}

.hero {
    width: 100%;
    height: 400px;
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2em;
    text-shadow: 1px 1px 5px #000;
}

.main-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff7ed;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}



.product-card {
    display: inline-block;
    width: 220px;
    margin: 15px;
    padding: 10px;
    border: 1px solid #d6c4a1;
    border-radius: 8px;
    text-align: center;
    background-color: #fffdf6;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

footer {
    background-color: #e0d4b0;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9em;
}





.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 15px;
}

.product-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}


@media (max-width: 768px) {
    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-list {
        grid-template-columns: 1fr;
    }
}





.product-card h4 {
    font-size: 14px;
}

.product-card .price {
    font-size: 13px;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1em;
}

.product-card p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #4b3f2f;
}

.product-card button {
    background-color: #d6c4a1;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin: 2px;
    transition: background-color 0.3s;
}

.product-card button:hover {
    background-color: #e0d4b0;
}

.products-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-card {
    width: 260px;
    background: #f6efe7;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

.product-card h4 {
    font-family: serif;
    margin: 12px 0 6px;
}

.btn-wa {
    background: #6b7b4f;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
}
/* HERO SECTION */
.hero {
    background: url('../images/hero.jpg') center/cover no-repeat;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 40px 60px;
    text-align: center;
    color: #fff;
    border-radius: 8px;
}

.hero-overlay h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-overlay p {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    .hero-overlay h2 {
        font-size: 26px;
    }
    .hero-overlay p {
        font-size: 15px;
    }
}
/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #e9dfc4;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Overlay content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-left: 8%;
    margin-top: 130px;
    color: #4a3b2a;
}

.hero-content h2 {
    font-size: 22px;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 46px;
    margin: 10px 0;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Button */
.btn-wa {
    background: #6b7b4d;
    color: #fff;
    padding: 14px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
}

.btn-wa:hover {
    background: #55653c;
}

/* Social links */
.hero-social {
    margin-top: 20px;
}

.hero-social a {
    margin-right: 15px;
    text-decoration: none;
    color: #4a3b2a;
    font-weight: 600;
}

/* Responsive */
@media (max-width:768px) {
    .hero-slider {
        height: 380px;
    }
    .hero-content {
        margin: 80px 20px;
    }
    .hero-content h1 {
        font-size: 30px;
    }
}

body{
    margin:0;
    font-family: 'Georgia', serif;
    background:#f7f2e8;
    color:#4a3b2c;
}

header{
    background:#e4d6b5;
    text-align:center;
    padding:20px;
}

nav{
    background:#d7c6a1;
    padding:10px;
    text-align:center;
}

nav a{
    margin:0 15px;
    text-decoration:none;
    color:#4a3b2c;
    font-weight:bold;
}

.hero{
    height:420px;
    background-size:cover;
    background-position:center;
    position:relative;
}

.hero-overlay{
    background:rgba(0,0,0,0.4);
    color:#fff;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:60px;
}

.hero h2{
    font-size:40px;
}

.hero p{
    font-size:18px;
    max-width:500px;
}

.btn{
    background:#b59b6a;
    color:#fff;
    padding:12px 25px;
    width:max-content;
    text-decoration:none;
    border-radius:25px;
    margin-top:20px;
}

.featured{
    padding:50px;
    background:#fff6e9;
}

.products-list{
    display:flex;
    gap:30px;
    justify-content:center;
}

.product-card{
    background:#fff;
    border-radius:15px;
    padding:15px;
    width:260px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.product-card img{
    width:100%;
    border-radius:12px;
}

.wa{
    display:inline-block;
    margin-top:10px;
    background:#6b7d4a;
    color:#fff;
    padding:8px 15px;
    border-radius:20px;
    text-decoration:none;
}

footer{
    text-align:center;
    padding:20px;
    background:#e4d6b5;
}

/* HERO FULL WIDTH */
.hero-full{
    width:100%;
    height:480px;
    background-size:cover;
    background-position:center;
    position:relative;
    margin:0;
}

/* overlay gelap elegan */
.hero-full::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.45);
}

/* isi teks */
.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:80px;
    color:#fff;
    max-width:700px;
}

.hero-content h2{
    font-size:42px;
    margin-bottom:15px;
    text-shadow:0 3px 10px rgba(0,0,0,0.5);
}

.hero-content p{
    font-size:18px;
    line-height:1.6;
    margin-bottom:25px;
}

.hero-btn{
    background:#c3a46b;
    color:#fff;
    padding:14px 35px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    width:fit-content;
    transition:0.3s;
}

.hero-btn:hover{
    background:#a88b55;
}

header,
nav{
    margin-bottom:0 !important;
}

.hero-full{
    margin-top:0 !important;
    padding-top:0 !important;
}

.hero-slider{
    width:100%;
    height:460px;
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1s ease;
}

.slide.active{
    opacity:1;
}

.slide-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:80px;
    color:#fff;
}

.slide-overlay h2{
    font-size:42px;
    margin-bottom:15px;
}

.slide-overlay p{
    font-size:18px;
    max-width:600px;
}

.hero-btn{
    background:#c8a45d;
    color:#fff;
    padding:12px 26px;
    text-decoration:none;
    border-radius:30px;
    width:fit-content;
    margin-top:15px;
}


.hero-slider{
    width:100%;
    height:420px;
    position:relative;
    overflow:hidden;
}

.slide{
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
}

.slide-overlay{
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
    text-align:center;
}

.hero-btn{
    background:#c9a24d;
    padding:12px 30px;
    color:#fff;
    text-decoration:none;
    border-radius:30px;
    margin-top:15px;
}

.hero-full{
    width:100%;
    height:420px;
    position:relative;
    margin-bottom:60px;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
}

.hero-overlay h2{
    font-size:42px;
    margin-bottom:10px;
}

.hero-overlay p{
    font-size:18px;
    margin-bottom:20px;
}

.hero-btn{
    background:#c9a76b;
    color:#fff;
    padding:12px 30px;
    border-radius:30px;
    text-decoration:none;
}



.hero-slider{
    position:relative;
    height:380px;
    overflow:hidden;
}
.slide{
    position:relative;
    height:100%;
    background-size:cover;
    background-position:center;
}
.slide-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
    text-align:center;
}

/* TEKS */
.hero-text{
    opacity:0;
    transform:translateY(15px);
    transition:.6s ease;
    position:absolute;
}
.hero-text.active{
    opacity:1;
    transform:translateY(0);
}

.hero-text h2{
    font-size:42px;
    margin-bottom:10px;
}
.hero-text p{
    font-size:18px;
    opacity:.9;
}

.category-menu{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}
.category-menu a{
    padding:8px 18px;
    border-radius:20px;
    background:#eee;
    text-decoration:none;
    color:#333;
    font-size:14px;
}
.category-menu a.active{
    background:#c9a76b;
    color:#fff;
}
.category-menu a:hover{
    background:#c9a76b;
    color:#fff;
}


.category-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:30px 0;
    justify-content:center;
}

.cat-item{
    padding:10px 22px;
    border-radius:30px;
    background:linear-gradient(135deg,#f1f1f1,#e6e6e6);
    color:#333;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:.3s ease;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.cat-item:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.cat-item.active{
    background:linear-gradient(135deg,#c9a76b,#a8864a);
    color:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.product-card{
    animation:fadeUp .4s ease;
}
@keyframes fadeUp{
    from{opacity:0; transform:translateY(15px)}
    to{opacity:1; transform:none}
}

/* ===== PRODUK TERBARU ===== */
.products-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:20px 0;
}
.product-card{
    background:#fff;
    padding:15px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    transition:transform .3s, box-shadow .3s;
}
.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
}
.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:12px;
}
.product-card h4{
    font-size:18px;
    margin:5px 0 10px 0;
    color:#333;
}
.product-card .price{
    font-size:16px;
    font-weight:bold;
    margin-bottom:10px;
}
.product-card .original-price{
    text-decoration:line-through;
    color:#999;
    margin-right:8px;
}
.product-card .discount-percent{
    font-size:14px;
    color:#ff4c4c;
    font-weight:bold;
    margin-left:5px;
}
.product-card button{
    margin-top:8px;
    padding:10px 20px;
    border:none;
    border-radius:20px;
    background:#c9a76b;
    color:#fff;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}
.product-card button:hover{
    background:#b0894b;
}


button

/* tombol simpan & hapus */
.save-btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 20px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
    text-decoration:none;
    text-align:center;
}

.save-btn:hover{
    opacity:0.9;
}

.save-btn.delete-btn{
    background:#ff4c4c; /* merah untuk hapus */
    color:#fff;
    margin-left:10px; /* sedikit jarak dari simpan */
}

.save-btn.delete-btn:hover{
    background:#e03b3b;
}


.short-desc{
    white-space: pre-line; /* mempertahankan enter/spasi */
    text-align: left;
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}




/* ===== TOP BAR ===== */
.top-bar{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 20px;
    background:#fff;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.menu-icon{
    font-size:26px;
    cursor:pointer;
}

.search-box{
    display:flex;
    flex:1;
    background:#f5f5f5;
    border-radius:30px;
    overflow:hidden;
}

.search-box input{
    flex:1;
    padding:10px 15px;
    border:none;
    background:transparent;
    outline:none;
}

.search-box button{
    padding:0 15px;
    border:none;
    background:#c9a76b;
    color:#fff;
    cursor:pointer;
}

/* ===== SIDEBAR ===== */
.sidebar{
    position:fixed   !important;
    top:0;
    left:-280px;
    width:260px;
    height:100%;
    background:#fff;
    box-shadow:3px 0 20px rgba(0,0,0,0.15);
    padding:20px;
    transition:.3s;
    z-index:2001;
}

.sidebar.active{
    left:0;
}

.sidebar-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
}

.sidebar a{
    display:block;
    padding:10px 0;
    text-decoration:none;
    color:#333;
    border-bottom:1px solid #eee;
}

.sidebar a:hover{
    color:#c9a76b;
}

/* ===== OVERLAY ===== */
#overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:1000;
}

#overlay.active{
    opacity:1;
    visibility:visible;
}


.top-bar{
    position:relative;
    top:0;
    z-index:2001; /* lebih tinggi dari overlay */
}


.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 240px;
    height: 100%;
    background: #fff;
    transition: 0.3s;
    padding: 20px;
    z-index: 2000;
}

#overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1999;
}


.sidebar-header span {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}


/* Overlay fullscreen */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999; /* pastikan di atas konten */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px; /* sembunyikan default */
    width: 250px;
    height: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 1000; /* lebih tinggi dari top-bar */
}

/* Sidebar header (tombol ✕) */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top bar tetap di atas konten biasa */
.top-bar {
    position: relative; /* atau fixed jika ingin selalu terlihat */
    z-index: 500;
}