/* Font and Base Variables */
:root {
    --primary-yellow: #FFC107;
    --primary-dark-yellow: #E0A800;
    --accent-red: #DC3545;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Custom Navbar (Government Professional) */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.custom-brand-logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 0.85;
    transform: rotate(-4deg);
    font-family: 'Arial Narrow', 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 0px;
    margin-left: 5px;
}

.custom-brand-logo .text-semar {
    color: #FFC107;
    /* Kuning Semar */
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.custom-brand-logo .text-preneur {
    color: #E63946;
    /* Merah PreneurUP */
    font-size: 1.7rem;
    margin-top: 2px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.2s ease-in-out;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #343A40 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://semarangkota.go.id/layout/images/tugu-muda.png') no-repeat right center;
    background-size: cover;
    opacity: 0.15;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #CED4DA;
    margin-bottom: 40px;
}

.search-box-hero {
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-box-hero input {
    height: 55px;
    border: none;
    padding-left: 20px;
    font-size: 1.1rem;
}

.search-box-hero button {
    height: 55px;
    padding: 0 30px;
    background-color: var(--primary-yellow);
    color: #000;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s;
}

.search-box-hero button:hover {
    background-color: var(--primary-dark-yellow);
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 4px;
    background-color: var(--primary-yellow);
    border-radius: 2px;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-yellow);
    color: var(--primary-dark-yellow);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-dark-yellow);
    margin-bottom: 15px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-yellow);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-dark-yellow);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-top: auto;
}

.product-umkm {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Footer */
footer.main-footer {
    background-color: white;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-dark-yellow);
}

/* Utilities */
.text-bg-primary-custom {
    background-color: var(--primary-yellow) !important;
    color: #000 !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 110px 0 60px;
    }
}