/*
Theme Name: Hydroblast
Theme URI:
Author:
Description: A WooCommerce shop theme for Hydroblast.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hydroblast
Tags: woocommerce, e-commerce, shop
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Source+Sans+3:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Tailwind Play CDN handles utility styles. This file contains only:
   1. Base resets
   2. WordPress nav menu overrides (generated HTML — Tailwind utilities cannot be applied)
   3. WooCommerce product grid overrides (generated HTML — Tailwind utilities cannot be applied)
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   NAV MENU
   WordPress generates this HTML — classes added via CSS only
=========================== */

.site-description {
    display: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #005497;
    border-bottom-color: #005497;
}

/* ===========================
   WOOCOMMERCE OVERRIDES
   WC generates this HTML — Tailwind utilities cannot be applied directly
=========================== */

/* Ensure WooCommerce shortcode wrapper takes full width */
.woocommerce,
.woocommerce-page {
    width: 100% !important;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.woocommerce ul.products li.product {
    background-color: #ffffff;
    border: 1px solid #dee1e3;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 !important;
    width: auto !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
    box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    padding: 0.75rem 1rem 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .price {
    padding: 0.25rem 1rem 0.75rem !important;
    color: #005497 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product .button {
    display: block !important;
    margin: 0 1rem 1rem !important;
    width: calc(100% - 2rem) !important;
    background-color: #005497 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    border-radius: 4px !important;
    padding: 0.625rem 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #0074db !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .main-navigation ul {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   WOOCOMMERCE PRODUCT CATEGORIES
   WC generates this HTML — overrides only
=========================== */

.woocommerce ul.product_categories {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.product_categories li.product-category {
    margin: 0 !important;
    width: auto !important;
}

.woocommerce ul.product_categories li.product-category a {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dee1e3;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding-bottom: 0.75rem;
}

.woocommerce ul.product_categories li.product-category a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #0074db;
}

/* === BUTTON COMPONENTS === */

.btn-blue {
    display: inline-block;
    background-color: #2b7fff;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 12px 45px;
    border-radius: 30px;
    border: 1px solid #2b7fff;
    box-shadow: 0 7px 28px rgba(111, 42, 120, 0.30);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.btn-blue:hover {
    background-color: #5196ff;
    border-color: #5196ff;
    color: #ffffff;
}

.btn-hollow {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 12px 45px;
    border-radius: 30px;
    border: 1px solid #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.btn-hollow:hover {
    background-color: #6f2a78;
    border-color: #6f2a78;
    color: #ffffff;
}

.btn-brand {
    display: inline-block;
    background-color: #005497;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 12px 45px;
    border-radius: 30px;
    border: 1px solid #005497;
    box-shadow: 0 7px 28px rgba(0, 84, 151, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.btn-brand:hover {
    background-color: #0074db;
    border-color: #0074db;
    color: #ffffff;
}

.woocommerce ul.product_categories li.product-category img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background-color: #f8f9fa !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
}

.woocommerce ul.product_categories li.product-category h2,
.woocommerce ul.product_categories li.product-category .woocommerce-loop-category__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #005497 !important;
    padding: 0.75rem 1rem 0.25rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.woocommerce ul.product_categories li.product-category h2 .count,
.woocommerce ul.product_categories li.product-category .count {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #7f8b93 !important;
}

@media (max-width: 640px) {
    .woocommerce ul.product_categories {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===========================
   PRODUCT CATEGORY GRID (custom — bypasses WC shortcode conflicts)
=========================== */

.hb-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.hb-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hb-cat-card:hover {
    box-shadow: 0 10px 32px rgba(0, 84, 151, 0.14);
    transform: translateY(-4px);
    text-decoration: none;
}

.hb-cat-img-wrap {
    background: #f2f5f8;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    border-bottom: 1px solid #eaecef;
}

.hb-cat-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hb-cat-placeholder {
    color: #c5d0d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-cat-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hb-cat-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f1923;
    margin: 0;
    line-height: 1.3;
}

.hb-cat-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #7f8b93;
}

.hb-cat-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 0.625rem 1rem;
    background: #005497;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hb-cat-card:hover .hb-cat-btn {
    background: #2b7fff;
}

@media (max-width: 768px) {
    .hb-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hb-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   PRODUCT GRIDS (featured / recent — custom templates)
=========================== */

.hb-prod-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.hb-prod-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.hb-prod-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===========================
   PRODUCT CARDS (modern redesign)
=========================== */

.hb-prod-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hb-prod-card:hover {
    box-shadow: 0 10px 32px rgba(0, 84, 151, 0.14);
    transform: translateY(-4px);
}

.hb-prod-img-wrap {
    background: #f2f5f8;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    border-bottom: 1px solid #eaecef;
}

.hb-prod-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hb-prod-placeholder {
    color: #c5d0d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-prod-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hb-prod-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f1923;
    margin: 0;
    line-height: 1.3;
}

.hb-prod-spec {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #005497;
    background: #e6f0fb;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    margin: 0.25rem 0 0.5rem;
    width: fit-content;
}

.hb-prod-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 12px 24px;
    background: #005497;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    border: 1px solid #005497;
    box-shadow: 0 7px 28px rgba(0, 84, 151, 0.25);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.hb-prod-btn:hover {
    background-color: #0074db;
    border-color: #0074db;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .hb-prod-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hb-prod-grid--3,
    .hb-prod-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hb-prod-grid--3,
    .hb-prod-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   FOOTER
=========================== */

.footer-col-heading {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background-color: #2b7fff;
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-nav-list li a {
    display: block;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #2b7fff;
    padding-left: 6px;
    border-left: 3px solid #2b7fff;
}

.footer-contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    color: #fff2f2;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
}

.footer-contact-item svg,
.footer-contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    letter-spacing: 0;
}

.footer-social-icon:hover {
    background-color: #2b7fff;
    color: #ffffff;
}

.footer-newsletter-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 40px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    padding: 10px 20px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.footer-newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter-input:focus {
    border-color: #2b7fff;
}

@media (max-width: 767px) {
    .footer-columns {
        flex-direction: column !important;
    }
    .footer-col-info {
        width: 100% !important;
    }
    .footer-col-nav {
        width: 100% !important;
    }
    .footer-col-newsletter {
        width: 100% !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }
}
