/* General Styling */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f3f0e9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-header {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Logo */
.logo-container img {
    max-height: 60px;
    width: auto;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px #814603;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #814603;
    padding: 8px 15px;
    cursor: pointer;
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.nav-icons a {
    color: #333;
    text-decoration: none;
}

.nav-icons .btn {
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-masuk {
    background-color: #814603;
    color: white !important;
    border: none;
}

.btn-masuk:hover {
    background-color: #663702;
}

.btn-daftar {
    background-color: #d3d3d3;
    color: #814603 !important;
    border: none;
}

.btn-daftar:hover {
    background-color: #c4c4c4;
}

/* Main Navigation */
.main-nav {
    background-color: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.main-nav .nav {
    justify-content: center;
    gap: 30px;
}

.main-nav .nav-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .nav-link:hover {
    color: #814603;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #814603;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

@media (max-width: 992px) {
    .search-container {
        margin: 15px auto;
    }

    .nav-icons {
        justify-content: center;
        margin-top: 15px;
    }

    .main-nav .nav {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 0;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav .nav-link {
        white-space: nowrap;
    }

    .nav-icons .btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        text-align: center;
        margin-bottom: 15px;
    }

    .search-container input {
        padding: 10px 40px 10px 15px;
        font-size: 13px;
    }

    .nav-icons {
        gap: 10px;
    }

    .nav-icons .btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Hero Section */
.carousel-item .hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-item .hero>div {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    background-color: #814603;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    transition: transform 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    background-color: #663702;
}

/* New Product Section */
.new-product {
    padding: 60px 0;
}

.new-product .card {
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.new-product .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.new-product .card-img-top {
    height: 300px;
    object-fit: cover;
}

.new-product .card-body {
    padding: 1.5rem;
}

.new-product .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.new-product .card-text {
    color: #814603;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Categories Section */
.categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.category-item:hover .category-img {
    transform: scale(1.05);
}

.category-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: white;
    font-family: 'Playfair Display', serif;
}

.category-text p {
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-text h2 {
    font-size: 2rem;
    margin: 0.5rem 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sale Section */
.sale-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #ff0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1;
}

/* Responsive  */
@media (max-width: 1200px) {
    .category-item {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .carousel-item .hero {
        height: 70vh;
    }

    .new-product .card-img-top {
        height: 250px;
    }

    .categories-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-text {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .category-text h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .carousel-item .hero {
        height: 60vh;
    }

    .category-item {
        height: 300px;
    }

    .new-product .card-img-top {
        height: 200px;
    }

    .category-text h2 {
        font-size: 1.25rem;
    }

    header {
        padding: 10px 0;
    }

    .nav-link {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-item .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .categories-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .category-item {
        height: 250px;
    }

    .new-product {
        padding: 30px 0;
    }

    .sale-section {
        padding: 30px 0;
    }

    .category-text {
        bottom: 1rem;
        left: 1rem;
    }

    .category-text h2 {
        font-size: 1.5rem;
    }

    .category-text p {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: #213448;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

footer h5 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: white;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #ffc107;
}

footer .social-icons {
    display: flex;
    gap: 1rem;
}

footer .social-icons 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;
}

footer .social-icons a:hover {
    background: #814603;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
    }

    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

.product-title {
            font-size: 24px;
            font-weight: bold;
        }
        .product-price {
            font-size: 20px;
            color: #814603;
        }
        .product-detail {
            font-size: 14px;
            color: #555;
        }
        .btn-buy {
            background-color: #814603;
            color: white;
            border: none;
        }
        .btn-cart {
            background-color: #d3d3d3;
            color: #814603;
            border: none;
        }
        .thumbnail-images img {
            width: 100%;
            margin-bottom: 10px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border 0.3s ease;
        }
        .thumbnail-images img:hover {
            border: 2px solid #814603;
        }
        .main-image img {
            width: 100%;
            height: auto;
            border-radius: 5px;
        }
        .divider {
            border-top: 1px solid #ccc;
            margin: 20px 0;
        }
        @media (max-width: 768px) {
            .product-title {
                font-size: 20px;
            }
            .product-price {
                font-size: 18px;
            }
            .product-detail {
                font-size: 12px;
            }
            .btn-buy, .btn-cart {
                font-size: 14px;
            }
            .quantity button {
                font-size: 12px;
                padding: 5px;
            }
            .quantity input {
                width: 40px;
            }
        }
        .detail-modern-box {
            background: #fff;
            border-radius: 24px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08);
            max-width: 950px;
            margin: 40px auto 32px auto;
            padding: 36px 32px 28px 32px;
        }
        .detail-modern-title {
            font-weight: bold;
            font-size: 2rem;
            margin-bottom: 10px;
            letter-spacing: 1px;
            color: #814603;
        }
        .detail-modern-price {
            font-size: 1.3rem;
            color: #814603;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .detail-modern-divider {
            border-top: 1.5px solid #eee;
            margin: 18px 0;
        }
        .detail-modern-img-main {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
            margin-bottom: 12px;
            transition: 0.2s;
        }
        .detail-modern-thumbs img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            margin-right: 8px;
            border: 2px solid #eee;
            cursor: pointer;
            transition: border 0.2s, transform 0.2s;
        }
        .detail-modern-thumbs img.active, .detail-modern-thumbs img:hover {
            border: 2px solid #814603;
            transform: scale(1.08);
        }
        .detail-modern-size-btn {
            margin-right: 8px;
            margin-bottom: 4px;
            border-radius: 6px;
            border: 1.5px solid #814603;
            background: #fff;
            color: #814603;
            font-weight: 500;
            padding: 6px 18px;
            transition: background 0.2s, color 0.2s;
        }
        .detail-modern-size-btn.active, .detail-modern-size-btn:hover {
            background: #814603;
            color: #fff;
        }
        .detail-modern-qty-row {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 1.2rem;
            margin-bottom: 0;
        }
        .detail-modern-qty-btn {
            background: #f3f0e9;
            border: none;
            font-size: 1.3rem;
            font-weight: bold;
            color: #814603;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            transition: background 0.2s;
            box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        }
        .detail-modern-qty-btn:hover {
            background: #ffd700;
            color: #222;
        }
        .detail-modern-buy-btn {
            background: #814603;
            color: #fff;
            font-weight: bold;
            font-size: 1.1rem;
            border: none;
            border-radius: 8px;
            width: 100%;
            padding: 14px 0;
            margin-bottom: 10px;
            letter-spacing: 1px;
            transition: background 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        }
        .detail-modern-buy-btn:hover {
            background: #663702;
        }
        .detail-modern-cart-btn {
            background: #e0e0e0;
            color: #814603;
            font-weight: bold;
            font-size: 1.1rem;
            border: none;
            border-radius: 8px;
            width: 100%;
            padding: 14px 0;
            letter-spacing: 1px;
            transition: background 0.2s;
        }
        .detail-modern-cart-btn:hover {
            background: #e0e0e0;
        }
        .btn-outline-dark.size-btn {
            border-color: #213448 !important;
            color: #814603;
        }
          .size-btn.active {
    background-color: #814603 !important;
    color: white !important;
  }

        .btn-outline-dark:hover {
            background-color: #814603;
            color: #fff;
        }
        .btn.btn-outline-dark:hover {
            background-color: #814603;
            color: #fff;
        }
        @media (max-width: 900px) {
            .detail-modern-box { padding: 18px 4px 12px 4px; }
            .detail-modern-title { font-size: 1.3rem; }
        }

/* Tambahkan di bagian <style> atau CSS file Anda */
.modal {
    z-index: 99999 !important;
    /* Pastikan paling atas */
    pointer-events: auto !important;
    /* Pastikan bisa interaksi */
}

.modal-backdrop {
    z-index: 9999 !important;
    /* Backdrop di bawah modal */
}

/* --- GABUNGAN DARI src/admin/assets/css/styles.css --- */
.sidebar {
    background-color: #814603;
    min-height: 100vh;
    color: white;
    padding: 20px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    padding: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #814603;
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    margin: 0;
}

.table-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: #814603;
    margin: 0;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c82333;
}

        .payment-container {
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            text-align: center;
        }

        .payment-button {
            background-color: #814603;
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
        }

        .payment-button:hover {
            background-color: #663702;
        }