/* =============================================================
   sam-harmonization.css — Production overrides 2026-04-16
   Hides non-functional WooCommerce/wishlist UI in static context
   Replaces CF7 with social-media CTA
   ============================================================= */

/* --- Hide WooCommerce cart/wishlist UI (non-functional in static) --- */
.cart-info,
.cart-content,
.regalia-cart,
.cart-contents,
.wdt-header-cart,
.mini-cart,
.widget_shopping_cart,
.cart-customlocation,
.added_to_cart,
.add_to_cart_button,
.product_type_simple,
.product_type_variable,
.woocommerce-mini-cart,
.tinvwl_add_to_wishlist_button,
.tinv-wishlist,
.yith-wcwl-add-to-wishlist,
.yith-wcwl-add-button,
.yith-wcwl-wishlistexistsbrowse,
.yith-wcwl-wishlistaddedbrowse,
.yith-compare-button,
.compare-button,
.woocommerce-loop-product__add-to-cart,
.product-buttons,
.tinvwl_above_thumbnail,
.tinvwl_after_summary,
ul.products li.product .button,
.regalia-shop-quickview,
.product-actions,
.shop-action,
.product-quickview,
.tinvwl-product-action {
    display: none !important;
}

/* --- Hide CF7 contact form (won't submit on static) and show socmed CTA instead --- */
.wpcf7,
.wpcf7-form,
form.wpcf7-form {
    display: none !important;
}

.wpcf7::after {
    content: "Hubungi Sam Sianata via Instagram, Facebook, atau TikTok di tautan footer ↓";
    display: block !important;
    text-align: center;
    padding: 20px;
    background: rgba(209, 163, 73, 0.1);
    border: 1px solid #d1a349;
    border-radius: 6px;
    color: #d1a349;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* --- Unhide the ::after pseudo on parent --- */
.wpcf7-form-control-wrap { display: none !important; }

/* --- Suppress JS-error-related visual flickers --- */
.elementor-loading,
.lazy-load-error {
    display: none !important;
}

/* --- Improve broken image fallback --- */
img:not([src]),
img[src=""],
img[src*="undefined"] {
    display: none !important;
}

/* === UX: Force category listing card titles to always show === */
.wdt-posts-list-wrapper .entry-title,
.tpl-blog-holder .entry-title,
.wdt-post-entry .entry-title {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 15px 0 10px !important;
    padding: 0 12px !important;
    text-align: center !important;
    transform: none !important;
}

.wdt-posts-list-wrapper .entry-title h4,
.wdt-post-entry .entry-title h4 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #d1a349 !important;
}

.wdt-posts-list-wrapper .entry-title a,
.wdt-post-entry .entry-title a {
    color: #d1a349 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: color 0.3s ease !important;
}

.wdt-posts-list-wrapper .entry-title a:hover,
.wdt-post-entry .entry-title a:hover {
    color: #f0c060 !important;
    text-decoration: none !important;
}

/* Ensure card layout is proper grid with gap */
.tpl-blog-holder,
.wdt-posts-list-wrapper .tpl-blog-holder {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

.wdt-posts-list-wrapper .grid-sizer {
    display: none !important;
}

.wdt-post-entry {
    width: 100% !important;
    background: rgba(209, 163, 73, 0.04) !important;
    border: 1px solid rgba(209, 163, 73, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    padding-bottom: 16px !important;
}

.wdt-post-entry:hover {
    border-color: #d1a349 !important;
    background: rgba(209, 163, 73, 0.08) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(209, 163, 73, 0.15) !important;
}

.wdt-post-entry .entry-thumb {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
}

.wdt-post-entry .entry-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.wdt-post-entry:hover .entry-thumb img {
    transform: scale(1.05) !important;
}

/* Remove any overlay that might block title */
.wdt-post-entry .entry-overlay,
.wdt-post-entry .wdt-entry-overlay,
.wdt-default-overlay::before,
.wdt-default-overlay::after {
    display: none !important;
}

/* Responsive: 2 cols on tablet, 1 col on mobile */
@media (max-width: 1024px) {
    .tpl-blog-holder,
    .wdt-posts-list-wrapper .tpl-blog-holder {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .tpl-blog-holder,
    .wdt-posts-list-wrapper .tpl-blog-holder {
        grid-template-columns: 1fr !important;
    }
    .wdt-posts-list-wrapper .entry-title h4,
    .wdt-post-entry .entry-title h4 {
        font-size: 16px !important;
    }
}

/* Pagination visual polish */
.pagination.blog-pagination {
    margin: 40px 0 60px !important;
    text-align: center !important;
}

.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 4px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(209, 163, 73, 0.3) !important;
    border-radius: 4px !important;
    color: #d1a349 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.pagination .page-numbers:hover {
    background: rgba(209, 163, 73, 0.1) !important;
    border-color: #d1a349 !important;
}

.pagination .page-numbers.current {
    background: #d1a349 !important;
    color: #0a0a0a !important;
    border-color: #d1a349 !important;
    font-weight: 700 !important;
}

.pagination .page-numbers.dots {
    border-color: transparent !important;
}

.pagination ul.page-numbers {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.pagination ul.page-numbers li {
    list-style: none !important;
}

/* === NATIVE HTML5 AUDIO PLAYER (replaces MPFE) === */
.sam-audio-player {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px 24px !important;
    margin: 24px 0 !important;
    background: linear-gradient(135deg, rgba(209,163,73,.08), rgba(209,163,73,.03)) !important;
    border: 1px solid rgba(209,163,73,.3) !important;
    border-radius: 8px !important;
    max-width: 680px !important;
}

.sam-audio-cover {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #d1a349, #a07828) !important;
    border-radius: 50% !important;
    color: #0a0a0a !important;
}

.sam-audio-cover svg {
    width: 34px !important;
    height: 34px !important;
}

.sam-audio-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.sam-audio-title {
    font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #d1a349 !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

.sam-audio-album {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: rgba(209,163,73,.7) !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
}

.sam-audio-native {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    outline: none !important;
}

/* Native audio player dark theme (Chrome/Safari/Firefox) */
.sam-audio-native::-webkit-media-controls-panel {
    background: rgba(0,0,0,.3) !important;
}

@media (max-width: 640px) {
    .sam-audio-player {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .sam-audio-cover {
        flex: 0 0 56px !important;
        width: 56px !important;
        height: 56px !important;
    }
    .sam-audio-title { font-size: 18px !important; }
}
