* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8F2063;
    --secondary-color: #d4a574;
    --primary-dark: #6b1849;
    --primary-light: #b32878;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Related Posts & Products Section */
.related-posts,
.related-products {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.related-posts h2,
.related-products h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

/* Styling untuk blog grid di related posts */
.related-posts .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive untuk related sections */
@media (max-width: 768px) {
    .related-posts,
    .related-products {
        padding: 2rem 1rem;
        margin: 2rem auto 0;
    }
    
    .related-posts h2,
    .related-products h2 {
        font-size: 1.5rem;
    }
    
    .related-posts .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
#tentang {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    height: 400px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.map-container {
    margin-top: 2rem;
    height: 350px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Product Buttons - Horizontal & Centered Layout */
.product-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-detail {
    flex: 1;
    background: var(--primary-color);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

.btn-whatsapp i {
    margin-right: 0.3rem;
}

/* Product Card Layout Optimization */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    min-height: 50px; /* Konsistensi tinggi judul */
    display: flex;
    align-items: center;
}

.product-info h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.product-info h3 a:hover {
    color: var(--primary-dark);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 60px; /* Konsistensi tinggi deskripsi */
}

.price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-align: center; /* Harga di tengah */
}

/* Single Product Page */
.single-product-page {
    padding: 3rem 0;
}

.single-product-page .container {
    max-width: 1200px;
}

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

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-info-detail h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

.product-actions .btn i {
    margin-right: 0.5rem;
}

.product-meta {
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    color: var(--text-light);
}

.product-meta p {
    margin-bottom: 0.5rem;
}

.related-products {
    margin-top: 4rem;
}

.related-products h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Single Post */
.single-post {
    padding: 3rem 0;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
}

.post-tags {
    color: var(--text-light);
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.post-navigation {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-previous a i {
    margin-right: 0.5rem;
}

.nav-next a i {
    margin-left: 0.5rem;
}

/* Blog Card Link Fix */
.blog-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: var(--primary-dark);
}

/* Footer Bottom - Centered Layout */
.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column; /* Stack vertikal */
    align-items: center; /* Semua di tengah */
    text-align: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Icon di tengah */
    margin-top: 0.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.social-links a i {
    font-size: 1.1rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .about-content,
    .contact-container,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-buttons {
        flex-direction: column;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .about-image {
        height: 300px;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 480px) {
    .post-header h1 {
        font-size: 1.8rem;
    }

    .product-info-detail h1 {
        font-size: 1.8rem;
    }

    .product-price {
        font-size: 1.5rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(143, 32, 99, 0.7), rgba(143, 32, 99, 0.7)),
                url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1200') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 32, 99, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #c59563;
}

/* Section Styles */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Catalog Section */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(143, 32, 99, 0.2);
}

.product-image {
    width: 100%;
    height: 250px; /* Ukuran tetap untuk konsistensi */
    object-fit: cover;
}

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

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .product-image {
        height: 250px; /* Sedikit lebih kecil di tablet */
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 220px; /* Lebih kecil lagi di HP */
    }
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Gallery Section */
#galeri {
    background: var(--bg-light);
}

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

.gallery-item {
    height: 250px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

/* Hover Overlay Effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(143, 32, 99, 0.95) 0%, rgba(143, 32, 99, 0.7) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.gallery-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(143, 32, 99, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Single Post/Product Styles */
.single-post,
.single-product,
.page-content {
    padding: 3rem 0;
}

.post-content,
.page-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Single Post */
.single-post {
    padding: 3rem 0;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-header {
    position: static; /* Pastikan tidak sticky */
    margin-bottom: 2rem;
}

.post-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    color: var(--text-light);
    position: static; /* Pastikan tidak sticky */
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-thumbnail,
.page-thumbnail {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img,
.page-thumbnail img {
    width: 100%;
    height: auto;
}

.post-body,
.page-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.post-body h2,
.post-body h3,
.page-body h2,
.page-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p,
.page-body p {
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
}

.post-tags {
    color: var(--text-light);
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

.post-navigation {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Single Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-info-detail h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

.product-meta {
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    color: var(--text-light);
}

.product-meta p {
    margin-bottom: 0.5rem;
}

.related-products {
    margin-top: 4rem;
}

.related-products h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .catalog-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}