/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy theme
Author: Your Name
Author URI: https://yoursite.com
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* 
   Add your custom CSS below this line
*/

/* Newsletter Subscription Form Styles */
.autohjul-newsletter-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.autohjul-newsletter-content {
    display: flex;
    flex-direction: column;
}

.autohjul-newsletter-heading {
    color: #0066cc;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.autohjul-newsletter-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.autohjul-newsletter-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: wrap;
}

.autohjul-newsletter-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.autohjul-newsletter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #0066cc;
    pointer-events: none;
    z-index: 1;
}

.autohjul-newsletter-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background-color: #000000;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    border-radius: 4px 0 0 4px;
    -webkit-appearance: none;
    appearance: none;
}

.autohjul-newsletter-input::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

.autohjul-newsletter-input:focus {
    border-color: #0066cc;
}

.autohjul-newsletter-input:invalid:not(:placeholder-shown) {
    border-color: #ff0000;
}

.autohjul-newsletter-button {
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    font-size: 13px !important;
    font-weight: 600 !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important; 
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    transition: background-color 0.3s ease !important;
    white-space: nowrap;
    border-radius: 0 6px 6px 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

input.autohjul-newsletter-input {
    padding-left: 40px !important;
    border-radius: 4px 0 0 4px !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    background-color: #000000 !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.autohjul-newsletter-button:hover {
    background-color: #0052a3;
}

.autohjul-newsletter-button:active {
    background-color: #003d7a;
}

.autohjul-newsletter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autohjul-newsletter-form {
        flex-direction: column;
    }
    
    .autohjul-newsletter-input-wrapper {
        min-width: 100%;
    }
    
    .autohjul-newsletter-input {
        border-radius: 4px;
    }
    
    .autohjul-newsletter-button {
        width: 100% !important;
    }
}

.woocommerce-shop main div.hero-section {
    display: none !important;
}


.archive.tax-product_cat div.hero-section {
    display: none !important;
}

/* Product grids: 2 columns on mobile (shop, category, related, tab products) */
@media (max-width: 690px) {
	[data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Price color by product age: 3+ years (by pa_year-of-manufacture-dot) = red; otherwise black. Not on cart/checkout. */
.autohjul-product-card__price,
.autohjul-single-price-value,
.bcc-card-unit-price,
.autohjul-quick-view-price,
.woocommerce-mini-cart .quantity {
	color: #000 !important;
}
.autohjul-price-old,
.autohjul-price-old *,
.autohjul-product-card__price.autohjul-price-old,
.autohjul-product-card__price.autohjul-price-old *,
.bcc-card-unit-price.autohjul-price-old,
.bcc-card-unit-price.autohjul-price-old * {
	color: #c00 !important;
}


@media (max-width: 768px) {        
    [data-widget_type="theme-site-logo.default"] img {
        width: 100% !important;
    }
}
