/* Katalog Section */
.katalog-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.katalog-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1A1A1A;
}

.katalog-subtitle {
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.6;
}

/* Search and Filter */
.search-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 500px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    font-size: 14px;
    background-color: #F5F5F5;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #F5F5F5;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: #F5F5F5;
}

/* Product Count */
.product-count {
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background-color: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #2196F3;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-details {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1A1A1A;
}

/* Fix: Hilangkan warna biru dan underline pada link judul produk */
.product-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #FF8C00;
}

.product-title a:visited {
    color: #1A1A1A;
}

.product-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating .star {
    color: #FFB800;
}

.product-rating .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.product-badge-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.product-type {
    background-color: #F0F0F0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #E67E00;
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #FF8C00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filter-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
/* Shopping Cart Styles */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #FF8C00;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-count {
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
}

.cart-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-close:hover {
    background: #f5f5f5;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-cart-icon svg {
    width: 60px;
    height: 60px;
    color: #999;
}

.empty-cart h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.empty-cart p {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

.continue-shopping {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-shopping:hover {
    background: #FF7700;
    transform: translateY(-2px);
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-item-type {
    font-size: 12px;
    color: #666;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #FF8C00;
    margin-top: auto;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.cart-item-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.remove-item {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
}

.remove-item:hover {
    text-decoration: underline;
}

/* Cart Footer */
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.cart-total span:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #FF8C00;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #FF7700;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}