﻿/*
Theme Name: Dacheng Radiator Astra Child
Template: astra
Version: 1.0.0
Description: Lightweight Astra child theme for Dacheng Radiator.
*/

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

body {
    color: #243445;
}

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

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

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

.dacheng-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.dacheng-category-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--dacheng-border);
    border-radius: 8px;
    background: #fff;
    color: var(--dacheng-navy);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dacheng-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--dacheng-blue);
    box-shadow: 0 10px 28px rgba(18, 36, 58, .10);
}

.dacheng-category-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.dacheng-category-count,
.dacheng-category-description {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

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

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

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

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

.dacheng-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);
}

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

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

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

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

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

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

.dacheng-archive {
    padding-top: 48px;
    padding-bottom: 64px;
}

.dacheng-archive-header {
    margin-bottom: 28px;
}

.dacheng-breadcrumb {
    color: #64748b;
    font-size: 14px;
}

.dacheng-archive-cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: 8px;
    background: var(--dacheng-light);
}

.dacheng-vehicle-search {
    max-width: 860px;
    margin: 24px auto;
    padding: 28px;
    border: 1px solid var(--dacheng-border);
    border-radius: 10px;
    background: #fff;
}

.dacheng-vehicle-search label {
    display: block;
    margin-bottom: 10px;
    color: var(--dacheng-navy);
    font-size: 18px;
    font-weight: 800;
}

.dacheng-vehicle-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.dacheng-vehicle-search input[type="search"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--dacheng-border);
    border-radius: 4px;
}

.dacheng-vehicle-search button {
    min-height: 48px;
    padding: 10px 22px;
    border: 0;
    border-radius: 4px;
    background: var(--dacheng-orange);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.dacheng-search-help,
.dacheng-search-empty {
    color: #64748b;
}

.dacheng-search-results {
    margin-top: 34px;
}

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

    .dacheng-vehicle-search-row {
        grid-template-columns: 1fr;
    }

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