/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #5a5a5a;
    background-color: #faf9f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f5f1eb 0%, #ede4d8 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #e8ddd4;
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: #8b7355;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: #a0916b;
    font-weight: 300;
}

/* Main content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Controls section */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-container {
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e8ddd4;
    border-radius: 25px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #d4b896;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.filter-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e8ddd4;
    background-color: #fff;
    color: #8b7355;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    background-color: #f5f1eb;
    border-color: #d4b896;
}

.filter-btn.active {
    background-color: #d4b896;
    border-color: #d4b896;
    color: #fff;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Product cards */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f8f8;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #d4b896;
    margin-bottom: 1rem;
}

.product-description {
    color: #7a7a7a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-category {
    display: flex;
    justify-content: flex-end;
}

.category-tag {
    background-color: #f5f1eb;
    color: #8b7355;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Loading and no results states */
.loading, .no-results {
    text-align: center;
    padding: 3rem 0;
    color: #8b7355;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #8b7355;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive design */
@media (min-width: 576px) {
    .controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .search-container {
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .product-image {
        height: 280px;
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main {
        padding: 4rem 0;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        gap: 3rem;
    }
    
    .product-image {
        height: 300px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.filter-btn:focus,
.search-input:focus {
    outline: 2px solid #d4b896;
    outline-offset: 2px;
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Tambahkan di akhir file css/style.css */
.product-actions {
    margin-top: 1rem;
    text-align: center;
}

.view-detail-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #d4b896;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background-color: #c4a886;
    transform: translateY(-2px);
}

/* Custom Section Styles */
.custom-section {
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ede8 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.custom-header {
    text-align: center;
    margin-bottom: 3rem;
}

.custom-header h2 {
    font-size: 2.5rem;
    color: #8b7355;
    margin-bottom: 1rem;
    font-weight: 600;
}

.custom-header p {
    font-size: 1.2rem;
    color: #a0916b;
    max-width: 600px;
    margin: 0 auto;
}

.custom-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.custom-info h3,
.custom-form h3 {
    color: #8b7355;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #d4b896;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #8b7355;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #7a7a7a;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b7355;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8ddd4;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #d4b896;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.custom-gallery {
    text-align: center;
}

.custom-gallery h3 {
    color: #8b7355;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 1rem;
    color: #8b7355;
    font-weight: 500;
}

/* Responsive Design for Custom Section */
@media (min-width: 768px) {
    .custom-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .steps {
        gap: 2rem;
    }
    
    .custom-section {
        padding: 4rem 3rem;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .custom-header h2 {
        font-size: 3rem;
    }
}
