/*
Theme Name: Bobby Duke Custom
Theme URI: https://www.bobbyduke.com
Description: Custom WordPress theme for Bobby Duke - CNC milled golf putters. Migrated from BigCommerce. No e-commerce functionality.
Author: Bobby Duke
Author URI: https://www.bobbyduke.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bobbyduke
*/

:root {
    --bd-red: #E60000;
    --bd-dark: #333333;
    --bd-green: #76AC42;
    --bd-black: #000000;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
    background: #ffffff;
    line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: var(--bd-red); }

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 0;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 8px 20px;
    font-size: 11px;
    text-transform: uppercase;
}

.header-top a { color: #666; }
.header-top a:hover { color: var(--bd-red); }

.logo-area {
    text-align: left;
    padding: 10px 20px;
}

.logo-area img { max-height: 80px; width: auto; }

.logo-text {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #000;
    display: inline-block;
    position: relative;
}

.logo-text::after {
    content: '';
    display: block;
    height: 6px;
    background: var(--bd-green);
    border-radius: 3px;
    margin-top: 2px;
}

/* NAVIGATION */
.main-nav {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    display: inline-flex;
    gap: 25px;
}

.main-nav a {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.5px;
}

.main-nav a:hover { color: var(--bd-red); }

.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--bd-red); }

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* BREADCRUMBS */
.breadcrumbs {
    font-size: 12px;
    color: #666;
    padding: 10px 0;
    margin-bottom: 10px;
}

.breadcrumbs a { color: #666; }
.breadcrumbs a:hover { color: var(--bd-red); }

/* PAGE CONTENT */
.page-content {
    padding: 20px 0;
}

.page-content h1 {
    font-size: 28px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-content h2 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 10px;
}

.page-content h3 {
    font-size: 16px;
    color: #333;
    margin: 15px 0 8px;
}

.page-content p { margin-bottom: 12px; }

.page-content ul, .page-content ol {
    margin: 10px 0 15px 20px;
}

.page-content li { margin-bottom: 5px; }

/* PRODUCT GALLERY GRID */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.product-card {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    width: 250px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 14px;
    margin: 10px 0 5px;
}

.product-card h3 a { color: #333; }
.product-card h3 a:hover { color: var(--bd-red); }

.product-card .specs {
    font-size: 12px;
    color: #888;
}

/* PRODUCT DETAIL PAGE */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.product-images {
    flex: 1;
    min-width: 300px;
}

.product-images .main-image img {
    width: 100%;
    height: auto;
}

.product-images .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-images .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
}

.product-images .thumbnails img:hover { border-color: var(--bd-red); }

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 24px;
    text-transform: uppercase;
}

.product-info h2 {
    font-size: 18px;
    color: var(--bd-red);
}

.product-info ul { margin: 10px 0 15px 20px; }

/* HOMEPAGE BANNER */
.home-banner {
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
}

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

/* SECTION DIVIDERS */
.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin: 30px 0;
    font-size: 18px;
}

/* FOOTER */
.site-footer {
    background: #000;
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li { margin-bottom: 5px; }

.footer-col a {
    color: #ccc;
    font-size: 12px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 11px;
    color: #999;
    margin-top: 20px;
}

/* SOCIAL SIDEBAR */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.social-sidebar a {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-align: center;
    line-height: 36px;
    color: #fff;
    font-size: 16px;
}

.social-sidebar .facebook { background: #3B5998; }
.social-sidebar .twitter { background: #55ACEE; }
.social-sidebar .instagram { background: #C13584; }
.social-sidebar .pinterest { background: #BD081C; }
.social-sidebar .tumblr { background: #36465D; }
.social-sidebar .email { background: #5EC5E5; }

/* NEWSLETTER FORM */
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 5px 8px;
    margin-bottom: 8px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
    font-size: 12px;
}

.newsletter-form label {
    display: block;
    font-size: 11px;
    color: #ccc;
    margin-bottom: 3px;
}

.newsletter-form button {
    background: var(--bd-green);
    color: #fff;
    border: none;
    padding: 6px 15px;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .main-nav ul { flex-direction: column; gap: 5px; }
    .social-sidebar { display: none; }
    .footer-container { flex-direction: column; }
    .product-detail { flex-direction: column; }
}


/* HOMEPAGE CAROUSEL */
.bd-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.bd-carousel-track {
    display: flex;
    width: 500%;
    height: 450px;
    animation: bdCarouselSlide 25s infinite ease-in-out;
}

.bd-carousel-slide {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

.bd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes bdCarouselSlide {
    0%, 16%   { transform: translateX(0%); }
    20%, 36%  { transform: translateX(-20%); }
    40%, 56%  { transform: translateX(-40%); }
    60%, 76%  { transform: translateX(-60%); }
    80%, 96%  { transform: translateX(-80%); }
    100%      { transform: translateX(0%); }
}

.bd-carousel:hover .bd-carousel-track {
    animation-play-state: paused;
}

/* Logo image */
.logo-area img.logo-img {
    max-height: 80px;
    width: auto;
    padding-bottom: 4px;
    border-bottom: 6px solid var(--bd-green);
    border-radius: 0 0 3px 3px;
}

@media (max-width: 768px) {
    .bd-carousel-track { height: 250px; }
    .bd-carousel { margin-bottom: 20px; }
}
