:root {
    --siplah-blue: #0095da;
    --siplah-blue-dark: #0077b5;
    --siplah-orange: #ff6600;
    --siplah-light: #f4f7f9;
    --siplah-gray: #757575;
}

body {
    background-color: var(--siplah-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Header */
.siplah-header {
    background-color: var(--siplah-blue);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.search-input {
    border: none;
    padding: 10px 20px;
    width: 100%;
    outline: none;
}

.search-button {
    background: #eee;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.nav-top {
    background: #0081bc;
    color: #fff;
    font-size: 12px;
    padding: 5px 0;
}

/* Category Icons */
.category-item {
    text-align: center;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    color: #333;
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.category-text {
    font-size: 11px;
    font-weight: 500;
}

/* Product Cards */
.siplah-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    height: 100%;
}

.siplah-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-siplah {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-new {
    background: #28a745;
    color: #fff;
}

.badge-umkm {
    background: #6f42c1;
    color: #fff;
}

.price-container {
    margin-top: 10px;
}

.price-main {
    color: var(--siplah-orange);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0;
}

.price-sub {
    font-size: 10px;
    color: var(--siplah-gray);
}

.seller-info {
    font-size: 12px;
    color: var(--siplah-gray);
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Detail Page */
.detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

.buy-panel {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: fit-content;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 5px 15px;
    font-weight: bold;
    cursor: pointer;
}

.qty-val {
    border: none;
    width: 50px;
    text-align: center;
}

.btn-siplah-orange {
    background: var(--siplah-orange);
    border-color: var(--siplah-orange);
    color: #fff;
    font-weight: bold;
}

.btn-siplah-blue {
    background: var(--siplah-blue);
    border-color: var(--siplah-blue);
    color: #fff;
    font-weight: bold;
}

.tab-siplah .nav-link {
    border: none;
    color: var(--siplah-gray);
    padding: 15px 30px;
    font-weight: 500;
}

.tab-siplah .nav-link.active {
    border-bottom: 3px solid var(--siplah-blue);
    color: var(--siplah-blue);
    background: none;
}

/* Mega Menu */
.mega-menu-container {
    position: relative;
    z-index: 1060;
}

.kategori-btn {
    background: var(--siplah-blue-dark);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
    display: none;
    z-index: 1050;
    padding: 0 !important;
    border: 1px solid #ddd;
}

.mega-menu-container:hover .mega-menu-dropdown {
    display: flex;
}

.menu-level-1 {
    width: 250px;
    background: #fdfdfd;
    padding: 10px 0;
    border-right: 1px solid #eee;
    border-radius: 0 0 0 12px;
    min-height: 480px;
}

.menu-level-2 {
    width: 325px;
    padding: 10px 0;
    background: #fff;
    border-right: 1px solid #eee;
    display: block;
    min-height: 480px;
    visibility: hidden;
}

.menu-level-3 {
    width: 325px;
    padding: 10px 0;
    background: #fff;
    border-radius: 0 0 12px 0;
    display: block;
    min-height: 480px;
    visibility: hidden;
}

.mega-menu-dropdown.active-level-2 .menu-level-2 {
    visibility: visible;
}

.mega-menu-dropdown.active-level-3 .menu-level-3 {
    visibility: visible;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    text-decoration: none !important;
}

.menu-item:hover,
.menu-item.active {
    background: #f0f7ff;
    color: var(--siplah-blue);
    font-weight: 600;
}

.menu-level-1 .menu-item:hover,
.menu-level-1 .menu-item.active {
    background: #fff;
    border-left: 4px solid var(--siplah-blue);
    padding-left: 16px;
}

.menu-title-header {
    padding: 5px 20px 10px 20px;
    font-weight: bold;
    color: var(--siplah-blue);
    border-bottom: 2px solid #f0f7ff;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

/* Footer Redesign */
.siplah-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding-top: 40px;
    padding-bottom: 20px;
    font-size: 14px;
    color: #333;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 15px;
}

.footer-desc {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--siplah-blue);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.contact-item i {
    font-size: 20px;
    margin-right: 10px;
    color: #999;
}

.partner-logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-logo-item {
    max-height: 35px;
    object-fit: contain;
    filter: none;
    /* Keep original colors */
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 30px;
    font-size: 12px;
    color: #888;
}

.footer-bottom-links a {
    color: var(--siplah-blue);
    text-decoration: none;
    margin-left: 15px;
}

/* Search Tabs */
.search-tabs {
    border-bottom: 2px solid #f0f0f0;
}

.search-tab-item {
    padding: 15px 30px;
    font-weight: 600;
    color: #666;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.search-tab-item:hover {
    color: var(--siplah-blue);
}

.search-tab-item.active {
    color: var(--siplah-blue);
    border-bottom-color: var(--siplah-blue);
    background-color: #f8fbff;
}

.shop-logo-box {
    background: #fdfdfd;
    padding: 5px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Seller Profile View */
.seller-header-banner {
    background: #ccc;
    height: 250px;
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.seller-profile-card {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.seller-profile-logo {
    width: 120px;
    height: 120px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-right: 25px;
}

.seller-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.status-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}