/* ============================================ */
/* ROOT VARIABLES - WOOD THEME */
/* ============================================ */
:root {
    /* Wood Color Palette */
    --primary-wood: #8b4513;
    --dark-wood: #654321;
    --light-wood: #a0826d;
    --wood-accent: #d2691e;

    /* Additional Colors */
    --gold: #daa520;
    --cream: #f5f5dc;
    --dark-brown: #3e2723;
    --light-cream: #fff8dc;

    /* Bootstrap Override */
    --bs-primary: #8b4513;
    --bs-success: #25d366;

    /* Typography */
    --font-heading: "Playfair Display", serif;
    --font-body: "Poppins", sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================ */
/* GLOBAL STYLES */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================ */
/* PRELOADER */
/* ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--dark-wood) 0%,
        var(--primary-wood) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.wood-loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================ */
/* NAVBAR */
/* ============================================ */
.navbar {
    padding: 1rem 0;
    background: white !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-wood) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--primary-wood);
}

.brand-text {
    color: var(--dark-brown);
}

.text-wood {
    color: var(--primary-wood);
}

.nav-link {
    color: var(--dark-brown) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-wood);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-wood) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 50%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn-wood {
    background: linear-gradient(135deg, var(--primary-wood), var(--dark-wood));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-wood:hover {
    background: linear-gradient(135deg, var(--dark-wood), var(--primary-wood));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-wood {
    border: 2px solid var(--primary-wood);
    color: var(--primary-wood);
    background: transparent;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-wood:hover,
.btn-outline-wood.active {
    background: var(--primary-wood);
    color: white;
    border-color: var(--primary-wood);
}

/* ============================================ */
/* HERO CAROUSEL */
/* ============================================ */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(62, 39, 35, 0.8),
        rgba(139, 69, 19, 0.7)
    );
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    bottom: auto;
    padding: 2rem;
}

.carousel-caption h1 {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-wood);
    border-radius: 20%;
    padding: 30px;
    margin: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gold) !important;
}

/* ============================================ */
/* STATS SECTION */
/* ============================================ */
.bg-wood {
    background: linear-gradient(135deg, var(--primary-wood), var(--dark-wood));
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.counter {
    font-size: 3rem;
    color: var(--gold);
    margin: 1rem 0;
}

/* ============================================ */
/* ABOUT SECTION */
/* ============================================ */
.about-image-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    min-width: 150px;
}

.feature-box {
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-block;
}

/* ============================================ */
/* PRODUCT SECTION */
/* ============================================ */
.product-item {
    transition: var(--transition);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Product Badges */
.badge-bestseller,
.badge-new,
.badge-hot,
.badge-limited {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 10;
}

.badge-bestseller {
    background: var(--gold);
}

.badge-new {
    background: #28a745;
}

.badge-hot {
    background: #dc3545;
}

.badge-limited {
    background: #ff6b6b;
}

/* Product Body */
.product-body {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    color: var(--primary-wood);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 0.75rem;
    min-height: 60px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-wood);
    margin-bottom: 0.75rem;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================ */
/* MODAL */
/* ============================================ */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--light-cream), white);
}

.bg-wood.badge {
    background: var(--primary-wood) !important;
}

/* ============================================ */
/* GALLERY */
/* ============================================ */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================ */
/* TESTIMONIAL */
/* ============================================ */
.testimonial-card {
    background: var(--light-cream);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--gold);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ============================================ */
/* CONTACT SECTION */
/* ============================================ */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item {
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    border: none;
    box-shadow: var(--shadow-sm);
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-wood);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.15);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}

.text-light-50:hover {
    color: white;
}

/* ============================================ */
/* FLOATING BUTTONS */
/* ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-wood);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-wood);
    transform: translateY(-5px);
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */
.section-padding {
    padding: 5rem 0;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 992px) {
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .product-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow-md);
    }

    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .counter {
        font-size: 2rem;
    }

    .about-badge {
        position: static;
        margin-top: 1rem;
    }

    .product-image {
        height: 220px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption .lead {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .product-title {
        font-size: 1.1rem;
        min-height: auto;
    }

    .product-price {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

/* ============================================ */
/* SCROLLBAR CUSTOM */
/* ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-wood);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-wood);
}


/* Hero */







/* Testimoni */

.carousel-control-prev-icon-custom,
.carousel-control-next-icon-custom {
    width: 50px;
    height: 50px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    padding: 12px;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon-custom,
.carousel-control-next-icon-custom {
    background-color: #8b4513 !important;
}

.carousel-control-prev:hover .carousel-control-prev-icon-custom,
.carousel-control-next:hover .carousel-control-next-icon-custom {
    background-color: #8b4513 !important;
    transform: scale(1.1);
}
/* 

.transition-all { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.pulse-animation {
    animation: pulse 2s infinite;
    transition: opacity 0.3s ease;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0; }
} */
.btn-wood:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
}
.btn-wood:hover .opacity-0 { opacity: 0.15 !important; }
