/*
Theme Name: Das Radhaus Böhn
Theme URI: https://radhaus-boehn.de
Author: Boehndev
Author URI: https://boehndev.de
Description: WordPress-Theme für Das Radhaus Böhn - Fahrradhändler. Konvertiert aus Figma/React mit ACF Flexible Content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radhaus-boehn
*/

/* Social Icon Hover Animation (replaces framer-motion whileHover) */
.footer__social-link svg {
    transition: transform 0.3s ease;
}

.footer__social-link:hover svg {
    transform: scale(1.2) rotate(360deg);
}

/* --- WooCommerce Customizations --- */

:root {
    --color-primary: #283583;
    --color-primary-hover: #1e2a6a;
    --border-radius: 9999px; /* Tailwind rounded-full style */
}

/* Headings only on white or undefined background */
section.bg-white h1,
section.bg-white h2,
section.bg-white h3,
section.bg-white h4,
section.bg-white h5,
section.bg-white h6,
section:not([class*="bg-"]) h1,
section:not([class*="bg-"]) h2,
section:not([class*="bg-"]) h3,
section:not([class*="bg-"]) h4,
section:not([class*="bg-"]) h5,
section:not([class*="bg-"]) h6,
main:not([class*="bg-"]) h1,
main:not([class*="bg-"]) h2,
main:not([class*="bg-"]) h3,
main:not([class*="bg-"]) h4,
main:not([class*="bg-"]) h5,
main:not([class*="bg-"]) h6 {
    color: #283583;
}

/* Headings on primary blue background */
section.bg-\[\#283583\] h1,
section.bg-\[\#283583\] h2,
section.bg-\[\#283583\] h3,
section.bg-\[\#283583\] h4,
section.bg-\[\#283583\] h5,
section.bg-\[\#283583\] h6,
footer.bg-\[\#283583\] h1,
footer.bg-\[\#283583\] h2,
footer.bg-\[\#283583\] h3,
footer.bg-\[\#283583\] h4,
footer.bg-\[\#283583\] h5,
footer.bg-\[\#283583\] h6,
.bg-\[\#283583\] h1,
.bg-\[\#283583\] h2,
.bg-\[\#283583\] h3,
.bg-\[\#283583\] h4,
.bg-\[\#283583\] h5,
.bg-\[\#283583\] h6 {
    color: #fff;
}

/* Hero heading always white */
section.hero h1 {
    color: #fff;
}

/* Logo Height Adjustment */
.header__logo img,
.custom-logo-link img {
    max-height: 64px; /* Matches radhaus_setup height */
    width: auto;
}

/* Header Navigation Padding */
.header__link,
.header__cta,
.header__dropdown-trigger {
    padding-left: 1.5625rem !important; /* 25px */
    padding-right: 1.5625rem !important; /* 25px */
}

/* WooCommerce Buttons */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    text-transform: none;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
}

/* WooCommerce Forms */
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb; /* Tailwind gray-200 */
    padding: 0.5rem 1rem;
    width: 100%;
}

.woocommerce-input-wrapper input:focus,
.woocommerce form .form-row input.input-text:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -1px;
}

/* WooCommerce Shop Layout & Fonts */
.woocommerce ul.products li.product .woocommerce-loop-category__title, 
.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce ul.products li.product h3 {
    font-size: 1.25rem;
    color: #1f2937; /* Tailwind gray-800 */
    font-weight: 700;
}

.woocommerce span.onsale {
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* WooCommerce Messages */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    border-top-color: var(--color-primary);
}

.woocommerce-message::before, 
.woocommerce-info::before {
    color: var(--color-primary);
}

/* Price adjustments */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: var(--color-primary);
    font-weight: 700;
}

/* Sidebar & Widgets */
.woocommerce #secondary,
.woocommerce .widget-area,
.woocommerce-page #secondary,
.woocommerce-page .widget-area,
.woocommerce #sidebar,
.woocommerce-page #sidebar {
    display: none;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--color-primary);
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    background-color: var(--color-primary);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a:focus, 
.woocommerce nav.woocommerce-pagination ul li a:hover, 
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    color: #fff;
}

/* Single Product in same content container as cart/page content */
.single-product .woocommerce-notices-wrapper,
.single-product .woocommerce-breadcrumb,
.single-product div.product {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.single-product .woocommerce-breadcrumb {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .single-product .woocommerce-notices-wrapper,
    .single-product .woocommerce-breadcrumb,
    .single-product div.product {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .single-product .woocommerce-notices-wrapper,
    .single-product .woocommerce-breadcrumb,
    .single-product div.product {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
