/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(90deg, #4c63d2 0%, #6b46c1 50%, #9333ea 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.logo {
    width: 150px;
    border-radius: 50%;
}

/* Search Bar */
.search-bar input {
    border-radius: 25px;
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.search-bar input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    background: white;
}

.search-bar i {
    color: #6b46c1;
}

/* Cart and Navbar Links */
.navbar a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #e0e7ff !important;
    transform: translateY(-2px);
}

.cart {
    position: relative;
    font-weight: bold;
    color: white;
}

.cart span {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Category Links */
.category-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    background: linear-gradient(135deg, #5b73e8 0%, #8b5cf6 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(91, 115, 232, 0.3);
}

.category-links a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.category-links a.active {
    font-weight: bold;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Category Icon */
.category-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.category-icon:hover {
    transform: scale(1.1);
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-title-link {
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.section-title-link:hover {
    color: white;
}

.section-title-link:hover .section-title {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.section-title-link.active {
    color: white;
}

.section-title-link.active .section-title {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Alert Messages */
.alert {
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    font-size: 16px;
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 10px auto;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.alert .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.alert .close:hover {
    opacity: 1;
}

/* Product Category Section */
.produk-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Product Section Styling */
.product {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(91, 115, 232, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(243, 232, 255, 0.95) 100%);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.1);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #4c1d95;
    margin: 0.5rem 0;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 1rem 0;
}

.product .btn {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.product .btn i {
    margin-right: 8px;
}

/* Button Styling */
.btn-success {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
}

.btn-cancel {
  padding: 8px 18px;
  text-decoration: none;
  padding-top: -6px;
  background-color: #e0e0e0; /* abu-abu netral */
  color: #333;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: #d6d6d6;
}

.btn-cancel:active {
  background-color: #cfcfcf;
  transform: scale(0.98);
}


/* Heart Icon */
.heart-icon {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    cursor: pointer;
    z-index: 10;
}

.heart-icon i {
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.heart-icon:hover i {
    transform: scale(1.2);
}

.heart-icon.loved i {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #312e81 0%, #581c87 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.footer p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.footer-links a {
    text-decoration: none;
    color: #c4b5fd;
    margin: 0 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #4c63d2 0%, #6b46c1 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #9333ea 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        width: 100% !important;
        margin: 1rem 0 !important;
    }

    .category-links {
        font-size: 0.9rem;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .category-links a {
        padding: 0.4rem 0.8rem;
    }

    .product {
        margin-bottom: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}