
/**
 * Main CSS - Ani Hanim Bakery
 * Color scheme: Brown (#8B6F47), Cream (#F5E6D3), White (#FFFFFF)
 */

:root {
    --color-primary: #8B6F47;      /* Brown - Roti */
    --color-secondary: #F5E6D3;    /* Cream */
    --color-accent: #D4A574;       /* Light Brown */
    --color-dark: #3E3E3E;         /* Dark Gray */
    --color-light: #F9F9F9;        /* Light */
    --color-white: #FFFFFF;        /* White */
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
/* ===========================
   NAVBAR PREMIUM
=========================== */

.navbar{
    background:#8B6F47;
    padding:14px 0;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.navbar .container-fluid{
    max-width:1320px;
    margin:auto;
    padding:0 25px;
}

.navbar-brand{

    display:flex;
    align-items:center;
    gap:12px;

    color:#fff!important;

    font-size:26px;
    font-weight:700;

}
.navbar-brand img{
    width:40px;
    height:40px;
    object-fit:cover;
    object-position:center;
    border-radius:50%;
}
.navbar-nav{

    gap:8px;

}

.navbar-nav .nav-link{

    color:white!important;

    font-size:17px;

    padding:10px 18px!important;

    border-radius:8px;

    transition:.3s;

}

.navbar-nav .nav-link:hover{

    background:#F5E6D3;

    color:#8B6F47!important;

}

.btn-navbar{

    background:#fff;

    color:#8B6F47;

    border-radius:8px;

    padding:10px 18px;

    font-weight:600;

}

.btn-navbar:hover{

    background:#F5E6D3;

}

/* ===== HERO/BANNER ===== */
.hero{
    background:#F8F2E8;
    border-radius:25px;
    padding:70px;
    margin:40px auto;
    max-width:1320px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.hero-content{
    flex:1;
}

.hero-content h1{

    font-size:52px;
    font-weight:800;
    color:#3E2A1D;

    margin-bottom:20px;

}

.hero-content p{

    font-size:20px;
    color:#666;

    margin-bottom:35px;

}

.hero-image{

    flex:1;

    text-align:center;

}

.hero-image img{

    width:100%;

    max-width:520px;

}
.hero-banner{
    position:relative;
    margin:20px;
    border-radius:25px;
    overflow:hidden;
    border:6px solid #d4a574;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);

    max-width:1450px;
    margin-left:auto;
    margin-right:auto;
}

.hero-banner img{
    width:100%;
    height:auto;
    display:block;
}
.hero-text{
    background: #E8DCCB;   /* sama seperti warna section produk */
    margin: 0;
    padding: 35px 40px;
    border-top: 4px solid #D4A574;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1{
    color: #3E3E3E;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text p{
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.hero-text .btn{
    border-radius: 12px;
    padding: 12px 30px;
}
.overlay{
    background:none;
    padding:0;

}

.overlay h1{
    font-size:60px;
    font-weight:bold;
}

.overlay p{
    font-size:24px;
}
/* ===== CAROUSEL/SLIDER ===== */
.carousel-item {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 111, 71, 0.4);
}

.carousel-caption {
    background: rgba(139, 111, 71, 0.9);
    padding: 2rem;
    border-radius: 10px;
    bottom: 50px !important;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(139, 111, 71, 0.2);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #e8d4c0 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.discount {
    background: var(--color-danger);
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-rating {
    margin-bottom: 0.5rem;
    color: var(--color-warning);
    font-size: 0.95rem;
}

.product-price {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
}

.product-stock {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-stock.low {
    color: var(--color-danger);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

.btn-detail {
    flex: 1;
    background: var(--color-secondary);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-detail:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.btn-primary:hover {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

.btn-secondary {
    background: var(--color-secondary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-secondary:hover {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

/* ===== SECTION ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #999;
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-light {
    background-color: var(--color-secondary);
}

.section-white {
    background-color: var(--color-white);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(139, 111, 71, 0.2);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0 0;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

footer a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--color-white);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a::before {
    content: '▸ ';
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* ===== FORM ===== */
.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 111, 71, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 40px 0;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }
}
.product-card{
    border:none;
    border-radius:15px;
    overflow:hidden;
}

.product-card:hover{
    transform:translateY(-8px);
    transition:0.3s;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.produkSwiper{
    width:100%;
    overflow:visible;
    padding:20px 45px 60px;

}

.produkSwiper .swiper-slide{
    height:auto;
}

.produkSwiper .product-card{
    height:100%;
}

.produkSwiper .swiper-button-next,
.produkSwiper .swiper-button-prev{
    color:#8B6F47;
}

.produkSwiper .swiper-pagination-bullet-active{
    background:#8B6F47;
}