@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --color-black: #121212;
    --color-white: #FFFFFF;
    --color-light-gray: #F8F8F8;
    --color-medium-gray: #E0E0E0;
    --color-dark-gray: #757575;
    --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
    --font-secondary: 'Lato', 'Segoe UI', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 35px;
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
}

.nav-link:hover {
    color: var(--color-dark-gray);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-dark {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline-light {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid white;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #121212;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #f5f5f5;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.slide-content .hero-logo {
    max-width: 280px;
    width: 60%;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 4rem 0 2rem;
    padding: 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: var(--color-light-gray);
}

.product-card__info {
    padding: 1.5rem 1rem;
    text-align: center;
}

.product-card__name {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.product-card__desc {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin-bottom: 0.25rem;
}

.product-card__stock {
    font-size: 0.7rem;
    color: var(--color-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* === FOOTER === */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem 4rem 2rem;
    margin-top: 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer__col p,
.footer__col li {
    font-size: 0.8rem;
    color: var(--color-medium-gray);
    line-height: 2;
    font-weight: 300;
}

.footer__col a:hover {
    color: var(--color-white);
}

.footer__copyright {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-dark-gray);
}

.map-container {
    border: 1px solid #333;
    overflow: hidden;
}

.map-container iframe {
    display: block;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--color-white);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-dark-gray);
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-black);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }
    .product-grid {
        padding: 0 2rem 2rem;
    }
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 12px 0;
    }
    
    .sidebar .brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0 16px 12px;
        margin-bottom: 8px;
    }
    
    .sidebar .brand img {
        max-width: 40px;
        margin: 0;
    }
    
    .sidebar .brand span {
        font-size: 9px;
    }
    
    .sidebar .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        padding: 0 8px;
    }
    
    .sidebar .nav-menu li a {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .main-content h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 14px 10px;
    }
    
    .stat-card .value {
        font-size: 20px;
    }
    
    /* Table */
    table {
        font-size: 10px;
    }
    
    table th, table td {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    table th {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    /* Produk card di mobile */
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px 16px;
        max-width: 95%;
    }
    
    /* Filter */
    .filter-box form {
        flex-direction: column;
    }
    
    .filter-box input[type="date"] {
        width: 100%;
    }
    
    /* Tombol */
    .btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .stat-card {
        padding: 10px 8px;
    }
    
    .stat-card .value {
        font-size: 16px;
    }
    
    .stat-card .label {
        font-size: 8px;
    }
    
    table th, table td {
        padding: 4px 3px;
        font-size: 8px;
    }
    
    .sidebar .nav-menu li a {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .main-content {
        padding: 12px 8px;
    }
    
    .main-content h1 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card img {
        height: 280px;
    }
    .slide-content h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   NOTIFICATION POPUP PREMIUM
   ============================================ */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.notification-popup {
    background: #fff;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

.notification-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #121212;
}

.notification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.notification-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: #121212;
}

.notification-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.notification-message strong {
    color: #121212;
}

.notification-message em {
    font-style: italic;
    color: #121212;
}

.notification-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #121212;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: #333;
}

.notification-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #999;
}

.notification-footer a {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   NOTIFICATION POPUP PREMIUM
   ============================================ */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: notifFadeIn 0.2s ease;
}

.notification-popup {
    background: #fff;
    padding: 2.5rem 2rem 2rem;
    max-width: 430px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: notifSlideUp 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.notification-close:hover {
    color: #121212;
}

.notification-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.notification-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    color: #121212;
}

.notification-message {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.notification-message strong {
    color: #121212;
    font-weight: 600;
}

.notification-message em {
    font-style: italic;
    color: #333;
}

.notification-btn,
.notification-close-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #121212;
    color: #fff;
    border: none;
    text-decoration: none;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-btn:hover,
.notification-close-btn:hover {
    background: #333;
}

.notification-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #999;
}

.notification-footer a {
    color: #121212;
    font-weight: 600;
    text-decoration: underline;
}

@keyframes notifFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notifSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}