/**
 * ================================================
 * STYLESHEET MARKETPLACE KOSMETIK
 * Design: Modern, Clean, Elegant
 * Color Scheme: Pastel & Soft Tones
 * ================================================
 */

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Pastel Elegant */
    --primary-pink: #FFB6C1;
    --primary-rose: #FF69B4;
    --secondary-lavender: #E6E6FA;
    --secondary-mint: #F0FFF0;
    --accent-gold: #FFD700;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --bg-light: #FFF5F7;
    --bg-white: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-pink));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-lavender);
    color: var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-rose);
    color: var(--primary-rose);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-rose));
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* --- LOGO UPDATE START --- */
.logo {
    display: flex;              /* Agar gambar dan teks sejajar */
    align-items: center;        /* Vertikal center */
    gap: 10px;                  /* Jarak antara logo dan teks */
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-rose);
    font-weight: bold;
    text-decoration: none;
}

.logo-img {
    height: 40px;               /* Tinggi logo disesuaikan */
    width: auto;                /* Lebar otomatis proporsional */
    object-fit: contain;
}
/* --- LOGO UPDATE END --- */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-rose);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: 25px;
    padding: 8px 15px;
    width: 400px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 5px 10px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--primary-rose);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-gold);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-lavender), var(--secondary-mint));
    padding: 80px 20px;
    text-align: center;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* === SIDEBAR FILTER === */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.sidebar {
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow);
    height: fit-content;
    /* Perbaikan typo property sticky */
    position: sticky; 
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.filter-option {
    margin-bottom: 10px;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-rose);
}

/* === PRODUCT GRID === */
.products-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    color: var(--primary-rose);
    font-weight: bold;
    margin: 10px 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.product-rating {
    color: var(--accent-gold);
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-rose);
}

.product-details h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
}

.price-section {
    margin: 20px 0;
}

.current-price {
    font-size: 36px;
    color: var(--primary-rose);
    font-weight: bold;
}

.product-attributes {
    margin: 30px 0;
}

.attribute-group {
    margin-bottom: 20px;
}

.attribute-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.shade-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shade-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.shade-option:hover,
.shade-option.selected {
    border-color: var(--primary-rose);
    transform: scale(1.1);
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary-rose);
    background-color: var(--bg-light);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.product-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
}

.tab-button.active {
    color: var(--primary-rose);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-rose);
}

.tab-content {
    padding: 25px 0;
}

/* === DASHBOARD === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-pink));
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: bold;
}

.table-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--bg-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--bg-light);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* === FORMS === */
.form-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-rose);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-pink);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}