/*
Theme Name: PowderCoatPro
Theme URI: https://powdercoatpro.com
Author: PowderCoatPro
Author URI: https://powdercoatpro.com
Description: Custom WordPress theme for PowderCoatPro.com — professional powder coating equipment for DIYers and small businesses. Features product showcase, comparison tables, testimonials, and WooCommerce-ready product pages.
Version: 1.0.0
Tested up to: 6.9.3
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powdercoatpro
Tags: e-commerce, custom-menu, custom-logo, featured-images, theme-options
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --bg: #f6f7fa;
    --ink: #222;
    --header: #263238;
    --accent1: #ff9800;
    --accent1-hover: #e68900;
    --accent2: #43a047;
    --accent2-hover: #388e3c;
    --card-bg: #fff;
    --muted: #888;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 10px;
    --blue: #1976d2;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--header);
    color: #fff;
    padding: 2rem 0 3rem 0;
    text-align: center;
}

.site-header h1,
.site-header .site-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.site-header .site-title a {
    color: #fff;
    text-decoration: none;
}

.site-header p,
.site-header .site-description {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem 0;
}

.header-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border: 2px dashed #fff;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.header-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.header-title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    background: #1b252a;
    text-align: center;
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 1.1rem 1.75rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: background 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--accent1);
    text-decoration: none;
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1b252a;
    min-width: 200px;
    z-index: 100;
    flex-direction: column;
}

.main-navigation li:hover > ul { display: flex; }

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-buttons { margin: 1.5rem 0; }

.cta-btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #fff;
}

.cta-btn:hover { text-decoration: none; color: #fff; }
.cta-btn.kv80 { background: var(--accent1); }
.cta-btn.kv80:hover { background: var(--accent1-hover); }
.cta-btn.kv100 { background: var(--accent1); }
.cta-btn.kv100:hover { background: var(--accent1-hover); }

/* ============================================
   BADGES
   ============================================ */
.badges { margin: 1rem 0; }

.badge {
    display: inline-block;
    background: var(--accent2);
    color: #fff;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    margin: 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main,
.site-main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ============================================
   COMPARE / CARD SECTIONS
   ============================================ */
.compare-section,
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.compare-section h2 { text-align: center; margin-top: 0; }

.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.compare-table th,
.compare-table td { border: 1px solid #e0e0e0; padding: 0.8rem; text-align: center; }
.compare-table th { background: #eceff1; }

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section { margin-bottom: 2rem; }

.video-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 2px dashed #444;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    flex: 1 1 250px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 0.8rem; color: var(--blue); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.testimonial { margin-bottom: 1.2rem; }
.testimonial:last-child { margin-bottom: 0; }
.testimonial-quote { font-style: italic; font-size: 1.1rem; }
.testimonial-author { font-weight: 700; color: var(--blue); margin-top: 0.3rem; }

/* ============================================
   PRODUCT PAGE STYLES
   ============================================ */
.product-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.product-media {
    flex: 0 0 420px;
    max-width: 420px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-media img { width: 100%; height: auto; display: block; object-fit: cover; }

.product-info { flex: 1 1 auto; min-width: 250px; display: flex; flex-direction: column; }

.product-title { font-size: 1.6rem; margin: 0; font-weight: 700; color: var(--header); }

.product-sku { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.price-row { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.price { font-size: 1.6rem; font-weight: 800; color: var(--header); }
.msrp { font-size: 0.95rem; color: #999; text-decoration: line-through; }
.stock { font-size: 0.95rem; color: #2e7d32; font-weight: 600; margin-left: auto; }

.buy-actions { display: flex; gap: 0.8rem; margin-top: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.9rem 1.3rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent1); color: #fff; }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background: #eceff1; color: var(--header); }
.btn-ghost { background: transparent; color: var(--header); border: 1px solid #cfd8dc; }

.small-note { font-size: 0.92rem; color: #666; margin-top: 0.6rem; }

/* ============================================
   PRODUCT GRID LAYOUT
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card { padding: 1.25rem; }

/* Features list */
.features-list { display: flex; flex-direction: column; gap: 0.9rem; }
.feature-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-item .feature-icon { font-size: 1.6rem; color: var(--blue); width: 36px; text-align: center; }
.feature-text h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--header); }
.feature-text p { margin: 0.15rem 0 0 0; color: #555; font-size: 0.95rem; }

/* Specs table */
table.specs { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
table.specs th,
table.specs td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid #eef1f3; font-size: 0.95rem; }
table.specs th { width: 40%; color: #666; font-weight: 600; }

/* Reviews */
.reviews h3 { margin-top: 0; }
.review { margin-bottom: 1rem; }
.review .quote { font-style: italic; color: #333; }
.review .by { margin-top: 0.4rem; color: var(--blue); font-weight: 700; }

/* Related products */
.related { display: flex; gap: 0.75rem; margin-top: 0.6rem; flex-wrap: wrap; }
.related .tile {
    background: #fff;
    padding: 0.65rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    width: 160px;
    text-align: center;
}
.related .tile img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.98rem;
    padding: 2rem 0 1rem 0;
    margin-top: 1rem;
}

.site-footer a { color: var(--blue); }

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); text-align: center; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 2rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--card-bg);
    border-radius: 5px;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.pagination .page-numbers.current {
    background: var(--accent1);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .image-placeholder, .header-image { width: 200px; height: 200px; }
    .site-header h1 { font-size: 2rem; }
}

@media (max-width: 1000px) {
    .product-hero { flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .product-media { max-width: 100%; height: auto; }
}

@media (max-width: 800px) {
    .features-grid { flex-direction: column; }
    .compare-section, .testimonials { padding: 1rem; }
    .header-title-container { flex-direction: column; }
    .image-placeholder, .header-image { width: 150px; height: 150px; }
    .site-header h1 { font-size: 1.5rem; }
    .main-navigation ul { flex-direction: column; }
}
