* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: rgba(25, 86, 139, 1);
    --secondary: rgba(241, 134, 38, 1);
    --accent: rgba(241, 134, 38, 1);
    --success: rgba(241, 134, 38, 1);
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #c1cbd4;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.15);
}

body {
    background-color: #ffffff;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-link {
    display: inline-block;
}

.logo-img {
    width: 200px;
    transition: opacity 0.3s;
}

.logo-img:hover {
    opacity: 0.9;
}

nav.navbar {
    display: flex;
    align-items: center;
}

nav.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav.navbar ul li a {
    text-decoration: none;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav.navbar ul li a:hover {
    color: var(--secondary);
}

nav.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

nav.navbar ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: var(--primary);
    padding: 5px;
}

.search-cart {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 200px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(25, 86, 139, 0.1);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: rgba(0,0,0,0.05);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* Background yang lebih gelap */
    backdrop-filter: blur(5px); /* Efek blur yang lebih kuat */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff, #f0f0f0); /* Background gradien */
    padding: 30px 40px; /* Padding yang lebih besar */
    border-radius: 20px; /* Sudut yang lebih membulat */
    text-align: center;
    max-width: 90%;
    width: 400px; /* Lebar yang sedikit lebih besar */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 0 5px rgba(211, 47, 47, 0.1); /* Shadow lebih menonjol + glow halus */
    animation: fadeInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animasi yang lebih hidup */
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

/* Animasi untuk pop-up masuk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.icon-asset-img {
    width: 80px; 
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; 
    display: block;
    animation: bounceIn 0.5s ease-out; 
}
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Pertahankan CSS pop-up modern lainnya */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 0 5px rgba(211, 47, 47, 0.1);
    animation: fadeInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-content h2 {
    margin-bottom: 5px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.popup-content p {
    color: #555;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 0;
}

.status-message {
    margin-top: 15px;
    font-size: 15px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 10px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
}

.slide h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slide-btn {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-btn:hover {
    background-color: rgba(241, 134, 38, 0.9);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}


.section-title {
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.categories {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 30px;
    scrollbar-width: thin;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 25px;
    min-width: 80px;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.3s;
}

.category:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s;
    border: 2px solid var(--accent);
}

.category:hover .category-icon {
    background-color: var(--accent);
}

.category-name {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.product-image-kosong {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    filter : grayscale(1);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-stock {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.btn-detail {
    background-color: var(--light);
    color: var(--dark);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: var(--accent);
    color: white;
}

.btn-buy {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: rgba(241, 134, 38, 0.9);
}

/* Footer Styles */
footer {
    background-color: var(--light);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--gray);
    transition: color 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--gray);
    font-size: 14px;
}

.product-detail { 
    padding: 30px 10px 50px; 
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 25px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a { 
    text-decoration: none; 
    color: var(--primary);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb-separator {
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 500;
}

.detail-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.detail-img {
    flex: 1;
    max-width: 500px;
}

.detail-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.detail-img img:hover {
    transform: scale(1.02);
}

.detail-info {
    flex: 1;
    padding: 10px 0;
}

.detail-info h1.product-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.3;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.detail-price {
    color: var(--primary);
    font-size: 26px;
    font-weight: bold;
}

.stock-badge {  
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;    
}

.stock-habis {
    background-color: #f5e8e8;
    color: #912b2b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.product-description {
    margin-bottom: 25px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.detail-desc {
    line-height: 1.7;
    color: var(--gray);
}

.purchase-section {
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background-color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity-selector input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-beli {
    flex: 2;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-beli:hover {
    background: #c96d18;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
}

.feature-icon {
    font-size: 16px;
}

.about-hero {
    background: var(--light-gray);
    padding: 80px 20px;
    text-align: center;
    color: var(--dark);
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;    
}

#satu-about {
    color: var(--primary)!important;
    text-decoration: underline;
}

#shop-about {
    color: var(--secondary)!important;
    text-decoration: underline;
}

.about-hero p {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 17px;
    line-height: 1.7;
}

.about-wrapper {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 900px;
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
}

.about-list {
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.about-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.about-box ul li {
    margin-bottom: 6px;
}

.purchase-section {
    background-color: #ffffff; /* Latar belakang putih */
    border: 1px solid #e0e0e0; /* Garis tepi tipis */
    padding: 20px;
    border-radius: 8px; /* Sudut membulat */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sedikit bayangan */
    max-width: 400px; /* Batasi lebar agar fokus */
    font-family: Arial, sans-serif;
}

.purchase-section form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar elemen form */
}

.varian-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.varian-box label {
    font-size: 16px;
    font-weight: bold;
    color: #333333; 
}

.varian-box select {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #f8f8f8;
    cursor: pointer;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.varian-box select:focus {
    border-color: #007bff; 
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.varian-box option {
    padding: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
        .about-hero h1 { font-size: 28px; }
    .about-box { grid-template-columns: 1fr; }
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-img {
        width: 150px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .menu-toggle {
        display: block;
        font-size: 30px;
        margin-left: 10px;
    }

    nav.navbar ul {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--light);
        width: 200px;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        display: none; 
        border-radius: 8px;
        box-shadow: var(--shadow-hover);
        z-index: 101;
    }
    
    nav.navbar ul li {
        margin: 0;
        text-align: right;
        padding: 10px 15px;
    }
    
    nav.navbar ul li a {
        color: var(--primary);
        font-size: 15px;
        display: block;
    }
    
    /* Tampilkan menu saat burger diklik */
    nav.navbar ul.show {
        display: flex;
    }
    
    /* Slider dengan ukuran tetap di HP */
    .slider-container {
        height: 250px; /* Ukuran tetap untuk HP */
    }
    
    .slide h2 {
        font-size: 24px;
    }
    
    .slide p {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Detail produk responsive */
    .detail-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .detail-img {
        max-width: 100%;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-beli, .btn-cart {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px; /* Ukuran lebih kecil untuk HP kecil */
    }
    
    .slide h2 {
        font-size: 20px;
    }
    
    .slide p {
        font-size: 12px;
    }
    
    .categories .category {
        min-width: 60px;
        margin-right: 15px;
    }
    
    .categories .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .categories .category-icon img {
        width: 30px;
        height: 30px;
    }
    
    .categories .category-name {
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .product-image {
        height: 150px;
    }

    .product-image-kosong {
        height: 150px;
    }    
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-stock {
        font-size: 11px;
    }
    
    .btn-detail, .btn-buy {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Detail produk mobile */
    .detail-info h1.product-title {
        font-size: 24px;
    }
    
    .detail-price {
        font-size: 22px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .quantity-selector input {
        width: 100px;
    }

/* Media Query untuk Perangkat dengan Lebar Maksimal 600px (Ponsel) */
@media (max-width: 600px) {
    .purchase-section {
        /* Hapus margin auto agar melebar penuh, beri padding samping */
        margin: 10px;
        padding: 15px;
        max-width: none; /* Hilangkan batasan lebar */
        border-radius: 0; /* Opsional: hilangkan sudut membulat di layar penuh */
        box-shadow: none; /* Opsional: hilangkan bayangan untuk tampilan lebih datar */
        border-left: none;
        border-right: none;
    }

    .purchase-section form {
        gap: 12px;
    }

    .varian-box label {
        font-size: 15px;
    }

    .varian-box select {
        padding: 12px 15px;
        font-size: 15px;
    }
}

}