/*
Theme Name: CERAMICS_PALEMBANG
Author: IDO
Description: Tema ringan, elegant, SEO-friendly untuk company profile dengan fitur produk custom dan tombol WhatsApp.
Version: 1.2
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    background: #f7fafc;
}

header {
    background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);l
}

/* Logo Styling */
.site-logo img {
    max-height: 80px; /* Sesuaikan dengan h-16, bisa ubah ke 80px (h-20) */
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05); /* Efek hover */
}

/* Responsivitas */
@media (max-width: 640px) {
    .site-logo img {
        max-height: 48px; /* Kembali ke h-12 di mobile */
    }
}

footer {
    background: #1a202c;
    color: #e2e8f0;
}

.product-card, .post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.whatsapp-button {
    transition: background-color 0.3s ease;
    background: #25D366;
    padding: 8px 16px;
    border-radius: 4px;
}

.whatsapp-button:hover {
    background: #1ebe57;
}

.pagination a, .pagination span.current {
    background: #2b6cb0;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 4px;
    font-size: 0.9rem;
}

.pagination span.current {
    background: #1a4971;
}

.pagination a:hover {
    background: #1a4971;
}

#product-category-filter {
    min-width: 200px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#product-category-filter:focus {
    outline: none;
    border-color: #2b6cb0;
}

.products-page .product-card {
    min-height: 360px;
    max-height: 400px; /* Batasi tinggi agar rapi */
}
/* Single Post Blog News Style */
.single-post .post-hero {
    position: relative;
    margin-bottom: 2rem;
}
.single-post .post-hero .post-meta {
    font-size: 0.875rem;
}
.single-post .post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}
.single-post .post-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}
.single-post .post-content ul li {
    margin-bottom: 0.75rem;
}
.single-post .social-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: all 0.3s;
}
.single-post .social-share a:hover {
    background-color: #f7fafc;
}
.single-post .sidebar ul li {
    transition: all 0.3s;
}
.single-post .sidebar ul li:hover {
    background-color: #f7fafc;
    padding-left: 0.5rem;
}
.single-post .related-posts .related-card {
    transition: all 0.3s;
}
.single-post .related-posts .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
/* Product Card Styling */
.product-card {
    border: 1px solid #e5e7eb;
}
.product-card .product-category span {
    transition: all 0.3s ease;
}
.product-card .product-category span:hover {
    transform: translateX(2px);
}
.product-card a.group:hover .product-category {
    background-color: #f1f5f9;
}
.product-card .wp-block-button__link {
    display: inline-block;
    margin-top: 0.5rem;
}
/* Product Title Styling */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.5rem; /* Tinggi maksimum untuk 2 baris (1rem ≈ 16px) */
    word-break: break-word; /* Membagi kata jika terlalu panjang */
    padding: 0 1rem; /* Padding samping untuk ruang tambahan */
}

.product-title:hover {
    color: #2563eb; /* Warna hover lebih terang */
    -webkit-line-clamp: unset; /* Tampilkan semua teks saat hover (opsional) */
    overflow: visible;
    max-height: none;
}

/* Contact Page Styling */
.contact-page .container {
    max-width: 1200px;
}
.contact-page h1 {
    color: #1e293b;
}
.contact-page .bg-white {
    transition: all 0.3s ease;
}
.contact-page .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.contact-page a {
    text-decoration: none;
}

/* Hero Section Styling */
.hero-section {
    min-height: 60vh;
}
.hero-section .container {
    max-width: 1200px;
}
.hero-section h1 {
    line-height: 1.2;
}
.hero-section a {
    text-decoration: none;
}
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}