/* KOSMETIKA - Customer Frontend CSS */

:root {
    --primary: #e91e63;
    --primary-light: #f8bbd0;
    --primary-dark: #c2185b;
    --secondary: #9c27b0;
    --accent: #ff6f00;
    --bg-light: #fafafa;
    --text-dark: #212121;
    --text-muted: #757575;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
}

.top-bar {
    font-size: 0.8rem;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Product Card */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-name:hover {
    color: var(--primary);
}

.product-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card .product-old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .product-image-wrapper img {
    transition: transform 0.3s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Category Card */
.category-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: var(--primary);
}

.category-card img {
    height: 140px;
    object-fit: cover;
}

/* Brand Card */
.brand-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
    text-decoration: none;
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(233,30,99,0.15);
}

.brand-card img {
    height: 60px;
    object-fit: contain;
}

/* Section */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Carousel */
.campaign-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item .item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Checkout */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

/* Rating Stars */
.rating-stars .bi-star-fill {
    color: #ffc107;
}

.rating-stars .bi-star {
    color: #ddd;
}

/* Mobile Bottom Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .product-card .card-img-top {
        height: 180px;
    }

    .campaign-carousel .carousel-item img {
        height: 200px;
    }

    main {
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* Search */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.search-overlay.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Loading */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Login/Register */
.auth-card {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.auth-card h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Order Status */
.order-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* VIP Badge */
.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
