/*
Theme Name: Dachen Parts Astra Child
Template: astra
Version: 1.0.0
Description: Lightweight Astra child theme for Dachen Parts.
*/

:root {
    --dachen-navy: #12243a;
    --dachen-blue: #1769aa;
    --dachen-orange: #ef7d22;
    --dachen-light: #f3f6f8;
    --dachen-border: #dce3e8;
}

body {
    color: #243445;
}

.dachen-button,
.elementor a.dachen-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    background: var(--dachen-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dachen-button-outline {
    background: transparent;
    color: var(--dachen-navy);
    border: 2px solid var(--dachen-navy);
}

.dachen-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.dachen-product-card {
    overflow: hidden;
    border: 1px solid var(--dachen-border);
    border-radius: 6px;
    background: #fff;
}

.dachen-product-card img,
.dachen-product-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9eef2;
}

.dachen-product-placeholder {
    display: grid;
    place-items: center;
    color: #718096;
}

.dachen-product-card h3 {
    margin: 0;
    padding: 18px;
    color: var(--dachen-navy);
    font-size: 19px;
}

.dachen-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.dachen-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    margin: 40px auto;
}

.dachen-specs {
    width: 100%;
    border-collapse: collapse;
}

.dachen-specs th,
.dachen-specs td {
    padding: 11px 14px;
    border: 1px solid var(--dachen-border);
    text-align: left;
}

.dachen-specs th {
    width: 38%;
    background: var(--dachen-light);
}

.dachen-product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.dachen-product-gallery img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 1px solid var(--dachen-border);
}

@media (max-width: 768px) {
    .dachen-product-grid {
        grid-template-columns: 1fr;
    }

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