/*
Theme Name: Pelt Ram
Theme URI: https://example.com/pelt-ram
Author: pelt-ram team
Author URI: https://example.com
Description: Pelt Ram custom WordPress theme with a product catalog CPT (product) and category taxonomy (product_cat). Ships product meta fields (price, sku, gallery) and a JSON importer.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pelt-ram
Tags: custom-post-type, e-commerce, product-catalog
*/

:root {
    --pr-fg: #1c1c1c;
    --pr-bg: #ffffff;
    --pr-muted: #6b6b6b;
    --pr-accent: #b8541d;
    --pr-border: #e5e5e5;
    --pr-max: 1200px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--pr-fg);
    background: var(--pr-bg);
    line-height: 1.6;
}
a { color: var(--pr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--pr-max); margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--pr-border); padding: 18px 0; }
.site-header .brand { font-size: 22px; font-weight: 700; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.site-header .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--pr-border); margin-top: 60px; padding: 30px 0; color: var(--pr-muted); font-size: 14px; }

.main-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; margin: 30px 0; }
@media (max-width: 900px) { .main-with-sidebar { grid-template-columns: 1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card { border: 1px solid var(--pr-border); border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.product-card .thumb { aspect-ratio: 1/1; background: #f7f7f7; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 12px 14px; }
.product-card .title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.product-card .price { color: var(--pr-accent); font-weight: 600; }

.single-product .layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .single-product .layout { grid-template-columns: 1fr; } }
.single-product .gallery img { border: 1px solid var(--pr-border); border-radius: 4px; margin-bottom: 10px; }
.single-product .meta .price { font-size: 24px; color: var(--pr-accent); font-weight: 700; }
.single-product .meta .sku { color: var(--pr-muted); font-size: 13px; }

.widget { margin-bottom: 24px; }
.widget h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--pr-border); padding-bottom: 8px; }

.pagination { margin: 30px 0; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--pr-border); border-radius: 4px; }
.pagination .current { background: var(--pr-fg); color: #fff; }

.not-found { text-align: center; padding: 60px 20px; }
