/* Global Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #777;
    --shopee-color: #ee4d2d;
    --wa-color: #25D366;
    --border-color: #e0e0e0;
    --category-color: #e0f2fe;
    --category-text: #0369a1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header-top {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.search-box {
    display: flex;
    float: right;
    width: 300px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    border-right: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #3a5bef;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.slide-btn:hover {
    background-color: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Category Filter */
.category-filter {
    margin: 2rem 0;
}

.category-filter h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--category-color);
    color: var(--category-text);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 107, 255, 0.2);
}

.category-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    display: inline-block;
    background-color: var(--category-color);
    color: var(--category-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.product-images {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-details p {
    margin-bottom: 2rem;
    color: var(--light-text);
}

#modalProductCategory {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.shopee-btn {
    background-color: var(--shopee-color);
    color: white;
}

.shopee-btn:hover {
    background-color: #d14326;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 77, 45, 0.3);
}

.wa-btn {
    background-color: var(--wa-color);
    color: white;
}

.wa-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 107, 255, 0.3);
}

.load-more-btn:hover {
    background-color: #3a5bef;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 107, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.clicked {
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #ecf0f1;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-section i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-top {
        padding: 1rem 0;
    }
    
    .logo {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .search-box {
        float: none;
        width: 100%;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 15px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .product-images {
        margin-bottom: 1.5rem;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 200px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* No Products Message */
.no-products {
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem;
    color: var(--light-text);
    font-size: 1.1rem;
}
/* Product Grid Responsive Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Membuat rasio 1:1 */
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .product-grid {
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info p {
        font-size: 0.85rem;
    }
}

/* Untuk tampilan HP portrait - 2 kolom */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-image {
        padding-bottom: 100%; /* Tetap pertahankan rasio 1:1 */
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .product-info p {
        display: none; /* Sembunyikan deskripsi di HP untuk menghemat space */
    }
    
    .product-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Untuk HP sangat kecil */
@media (max-width: 400px) {
    .product-grid {
        gap: 0.6rem;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 2rem auto;
    grid-column: 1 / -1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Products Message */
.no-products {
    text-align: center;
    color: var(--light-text);
    padding: 2rem;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

/* Category Filter Responsive */
.category-filter {
    margin: 1.5rem 0;
}

.category-filter h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 576px) {
    .category-filter h2 {
        font-size: 1.2rem;
    }
    
    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .product-images {
        margin-bottom: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 1% auto;
    }
    
    .main-image {
        height: 200px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* Tambahkan ini ke style.css Anda */

/* Dropdown Kategori */
.category-dropdown {
    position: relative;
    width: 250px;
    margin-bottom: 1.5rem;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color);
}

.dropdown-toggle i {
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 100;
}

.dropdown-menu.show {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Trusted By Section */
.trusted-by {
    margin: 4rem 0;
    text-align: center;
}

.trusted-by h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.trusted-by h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.logo-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer Improvements */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p, .footer-section a {
    color: #ecf0f1;
    margin-bottom: 0.8rem;
    display: block;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    display: block;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
    
    .footer-bottom p {
        margin-bottom: 0;
    }
    
    .trusted-logos {
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .category-dropdown {
        width: 100%;
    }
    
    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .logo-item {
        padding: 1rem;
        height: 80px;
    }
    
    .logo-item img {
        max-width: 120px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Untuk tampilan mobile */
@media (max-width: 768px) {
    .social-icon {
        width: 35px;
        height: 35px;
    }
}