/* 
 * Rumah Madu Wilbi Custom Stylesheet
 * Integrates Playfair Display (Headings) and Nunito (Body) Google Fonts.
 * Color Palette: Honey Gold (#F4A627, #FFC93C, #E8A33D), Charcoal (#1A1A1A, #222222), Soft Cream (#FFF9EF, #FFFFFF)
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --honey-primary: #F4A627;
    --honey-light: #FFC93C;
    --honey-dark: #E8A33D;
    --honey-gradient: linear-gradient(135deg, #FFC93C 0%, #F4A627 50%, #E8A33D 100%);
    --bg-cream: #FFF9EF;
    --bg-white: #FFFFFF;
    --charcoal-dark: #1A1A1A;
    --charcoal-medium: #2D2D2D;
    --text-muted: #555555;
    --border-radius-custom: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-white);
    color: var(--charcoal-medium);
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--charcoal-dark);
    font-weight: 700;
}

a {
    color: var(--honey-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--charcoal-dark);
}

/* Honeycomb Background Pattern Utility */
.bg-honeycomb {
    background-color: var(--bg-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66zm0 2L56 84L56 100L28 100L0 100L0 84L28 68z' fill='%23f4a627' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Honey Drip Decorative Border */
.honey-drip-divider {
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,42.4V0Z' fill='%23FFF9EF' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.81,47.69,63.31a91.55,91.55,0,0,0,32.22,4.8c42,.8,79.52-25.2,112.5-47.5C216.73,7,249.77-8.8,288.77,5c25,8.9,43.23,29.1,64.21,43.6,23.21,16,51.58,24,79.51,22.2,43.21-2.7,80.12-30.2,117.81-51.3C579.59,2.8,610-8.9,647.78,4.1c25.42,8.8,44.08,29,65.32,43.5,23.51,16,52.28,24.1,80.59,22.3,43.8-2.7,81.22-30.3,119.4-51.5C942.39,2.8,973.19-8.9,1011.59,4.1c25.82,8.8,44.78,29,66.42,43.5,23.91,16,53.18,24.1,82,22.3,13.4-.8,26.4-4,39-9.5V0Z' fill='%23F4A627' opacity='.1'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
}

/* Navbar Custom Styling */
.navbar-custom {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--bg-cream);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.05);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--charcoal-dark);
}

.navbar-custom .nav-link {
    color: var(--charcoal-medium);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--honey-dark);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--honey-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 70%;
}

.cart-badge, .wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--charcoal-dark);
    color: var(--honey-light);
    border-radius: 50%;
    padding: 0.25em 0.5em;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.4)), url('../images/profil-1.jpg') no-repeat center center;
    background-size: cover;
    color: var(--bg-white);
    padding: 100px 0;
    border-bottom: 8px solid var(--honey-primary);
    position: relative;
}

/* If image is missing, a beautiful fallback background: */
.hero-fallback {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.7)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66zm0 2L56 84L56 100L28 100L0 100L0 84L28 68z' fill='%23f4a627' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E"),
                var(--charcoal-dark);
}

.hero-section h1 {
    color: var(--honey-light);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-honey {
    background: var(--honey-gradient);
    color: var(--charcoal-dark) !important;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-custom);
    padding: 0.6rem 1.8rem;
    box-shadow: 0 4px 10px rgba(244, 166, 39, 0.3);
    transition: var(--transition-smooth);
}

.btn-honey:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(244, 166, 39, 0.5);
    filter: brightness(1.05);
}

.btn-outline-charcoal {
    background-color: transparent;
    color: var(--charcoal-dark);
    border: 2px solid var(--charcoal-dark);
    font-weight: 700;
    border-radius: var(--border-radius-custom);
    padding: 0.6rem 1.8rem;
    transition: var(--transition-smooth);
}

.btn-outline-charcoal:hover {
    background-color: var(--charcoal-dark);
    color: var(--bg-white) !important;
    transform: translateY(-2px);
}

.btn-charcoal {
    background-color: var(--charcoal-dark);
    color: var(--honey-light) !important;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-custom);
    padding: 0.6rem 1.8rem;
    transition: var(--transition-smooth);
}

.btn-charcoal:hover {
    background-color: var(--charcoal-medium);
    color: var(--honey-primary) !important;
    transform: translateY(-2px);
}

/* Cards (Products / Events) */
.card-custom {
    background-color: var(--bg-white);
    border: 1px solid rgba(244, 166, 39, 0.15);
    border-radius: var(--border-radius-custom);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(244, 166, 39, 0.15);
    border-color: var(--honey-primary);
}

.card-custom .card-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-color: var(--bg-cream);
    overflow: hidden;
}

.card-custom .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-custom:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-custom .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-custom .product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--charcoal-dark);
}

.card-custom .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--honey-dark);
    margin-bottom: 0.75rem;
}

.card-custom .product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Wishlist Icon on Product Card */
.wishlist-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bg-white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #ccc;
    transition: var(--transition-smooth);
    z-index: 5;
}

.wishlist-heart-btn:hover {
    transform: scale(1.1);
    color: #dc3545;
}

.wishlist-heart-btn.active {
    color: #dc3545;
}

/* Section Headings */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--honey-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Bee Aksen Icon on Title */
.bee-accent {
    color: var(--honey-primary);
    font-size: 1.2rem;
    margin: 0 8px;
    vertical-align: middle;
}

/* Event Badges */
.badge-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}

.badge-upcoming {
    background-color: #cfe2ff;
    color: #084298;
}

.badge-ongoing {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-completed {
    background-color: #f8d7da;
    color: #842029;
}

/* Footer Custom Styling */
.footer-custom {
    background-color: var(--charcoal-dark);
    color: #b3b3b3;
    padding: 60px 0 20px;
    border-top: 5px solid var(--honey-primary);
}

.footer-custom h4, .footer-custom h5 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-custom .footer-links a {
    color: #b3b3b3;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-custom .footer-links a:hover {
    color: var(--honey-light);
    padding-left: 5px;
}

.footer-custom .social-icon {
    font-size: 1.25rem;
    color: var(--charcoal-dark);
    background-color: var(--honey-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition-smooth);
}

.footer-custom .social-icon:hover {
    background-color: var(--honey-light);
    transform: translateY(-3px);
}

/* Utility classes */
.bg-cream {
    background-color: var(--bg-cream);
}

/* Photo Gallery styles */
.gallery-item {
    border-radius: var(--border-radius-custom);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
    transition: var(--transition-smooth);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Login Page Styling */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-custom);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
    border: 1px solid rgba(244, 166, 39, 0.2);
}

/* QRIS Section in Checkout */
.qris-box {
    border: 2px dashed var(--honey-primary);
    border-radius: var(--border-radius-custom);
    padding: 20px;
    background-color: var(--bg-cream);
    text-align: center;
}
.qris-img {
    max-width: 250px;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Responsive Table */
.cart-table th {
    background-color: var(--charcoal-dark);
    color: var(--bg-white);
}

/* Toast message style */
.toast-container-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
