/*
Theme Name:   Blocksy Child
Template:     blocksy
Description:  Child theme voor Oudolf Tuinverlichting productcatalogus
Version:      1.2
*/

/* ── Kleurvariabelen ─────────────────────────────────────────── */
:root {
    --brand-gold:      #C9A96E;
    --brand-gold-dark: #a8853a;
    --brand-dark:      #1a1a1a;
    --text-primary:    #333333;
    --text-muted:      #666;
    --border:          #e5e5e5;
    --bg-light:        #f5f5f5;
}

/* ── Single product layout ───────────────────────────────────── */
.product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

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

.product-single__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.product-single__image .no-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid var(--border);
}

.product-single__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-single__category a {
    font-size: 13px;
    color: var(--brand-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.product-single__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
    margin: 0;
}

.product-single__model {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.product-single__divider {
    height: 1px;
    background: var(--border);
}

.product-single__description {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
}

.product-single__description p {
    margin: 0 0 1rem;
}

.product-single__price-block {
    background: var(--bg-light);
    border-left: 4px solid var(--brand-gold);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-single__price-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
}

.product-single__price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-single__cta {
    display: inline-block;
    background: var(--brand-gold);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    margin-top: 0.25rem;
}

.product-single__cta:hover {
    background: var(--brand-gold-dark);
    color: #fff;
}

/* ── Categorie archief grid ──────────────────────────────────── */
.product-archive {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.product-archive__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-archive__description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

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

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-card__name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.product-card__model {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.product-card__price {
    font-size: 12px;
    color: var(--brand-gold);
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ── Contact Form 7 ──────────────────────────────────────────── */
.wpcf7 {
    max-width: 680px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.cf7-veld {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf7-veld label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.2s;
    font-family: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

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

.wpcf7 input[type="submit"] {
    background: var(--brand-gold);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    width: 100%;
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--brand-gold-dark);
}

.wpcf7 .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    border: none;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: #f5f0e8;
    color: var(--brand-gold-dark);
}

.wpcf7 .wpcf7-validation-errors {
    background: #fdf0ee;
    color: #c0392b;
}

/* ── Shortcode categorieën grid ──────────────────────────────── */
#hp-cats-grid a:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px) !important;
}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.product-breadcrumb {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
 
.product-breadcrumb a {
    color: var(--brand-gold);
    text-decoration: none;
}
 
.product-breadcrumb a:hover {
    text-decoration: underline;
}
 
/* ── Gerelateerde producten ──────────────────────────────────── */
.related-products {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
 
.related-products__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}
 
.related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
 
@media (max-width: 900px) {
    .related-products__grid { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 480px) {
    .related-products__grid { grid-template-columns: 1fr; }
}
