/*
Theme Name: Filip's Bathrooms
Theme URI: https://filsbathrooms.co.uk
Description: Professional bathroom design, supply, and installation services WordPress theme with modern responsive design, product filtering, and e-commerce integration.
Version: 1.0.0
Author: Zen Cloud Media
Author URI: https://www.zencloudmedia.com
Text Domain: fils-bathrooms
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, e-commerce, responsive, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f7f8 !important;
    margin: 0;
    
}

/* Contact Bar Styles */
.contact-bar {
    background: linear-gradient(135deg, #1e40af 0%, #0d9488 100%);
    color: #ffffff;
    font-size: clamp(8px, 2vw, 14px);
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 6px 0;
}

.contact-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-bar-info {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.25rem;
}

.phone-icon {
    width: clamp(10px, 2.5vw, 16px);
    height: clamp(10px, 2.5vw, 16px);
    color: #ffffff;
    flex-shrink: 0;
}

.phone-number {
    font-weight: bold;
    margin-right: clamp(3px, 1vw, 12px);
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    margin-left: 4px;
}

.phone-number:hover {
    color: #2563eb;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1001;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Garamond', Georgia;
    font-size: 48px;
}

.logo-image {
    height: 110px;
    width: 3.5em;
    margin-top: 20px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.logo-text1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Palatino Linotype', Georgia;
    font-size: 53px;
    font-weight: 600;
    margin-left: 60px;
    margin-right: 200px;
    
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

/* Auth Links */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-btn,
.login-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.icon-btn:hover,
.login-icon-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.icon-btn:active,
.login-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.icon-btn svg,
.login-icon-btn svg {
    transition: all 0.3s ease;
}

/* Icon Labels */
.icon-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    white-space: nowrap;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.icon-btn:hover .icon-label {
    opacity: 1;
}

/* Logo Placeholder Styles */
.logo-placeholder,
.mobile-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder svg,
.mobile-logo-placeholder svg {
    transition: transform 0.3s ease;
}

.logo-placeholder:hover svg,
.mobile-logo-placeholder:hover svg {
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Secondary Navigation */
.secondary-nav {
    background-color: #000;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.mobile-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.close-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 15px;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-size: 12px;
}

.menu-link:hover {
    background-color: white;
    color: black;
    border-bottom-color: #2563eb;
}

.dropdown-arrow {
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.menu-item.active > .menu-link .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu-item.active > .dropdown-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 250px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
    font-size: 12px;
}

.menu-item .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.menu-item.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* For sub-dropdowns */
.submenu-item .sub-dropdown-menu {
  display: none;
}

.submenu-item.active .sub-dropdown-menu {
  display: block;
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #444;
}

.dropdown-link:hover {
    background-color: white;
    color: black;
}

.dropdown-menu li:last-child .dropdown-link {
    border-bottom: none;
}

/* Sub-dropdown Menu Styles */
.submenu-item {
  position: relative;
}

.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #555;
  min-width: 200px;
  list-style: none;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10001;
  max-height: 70vh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.submenu-item.active .sub-dropdown-menu,
.submenu-item:hover .sub-dropdown-menu {
  display: block;
}

.sub-dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #666;
    font-size: 12px;
    background-color: #555;
}

.sub-dropdown-link:hover {
    background-color: white;
    color: black;
}

.sub-dropdown-menu li:last-child .sub-dropdown-link {
    border-bottom: none;
}

/* Header spacing before Hero Image */

.header-spacer {
    height: 140px; /* Desktop header + Contact bar */
}

/* Hero Section Styles */
.hero {
   
    min-height: 900px;
    background: linear-gradient(135deg, #1e40af 0%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    background-image: url('https://filipsbathrooms.co.uk/wp-content/themes/fils-baths-woo/assets/images/bath_fulham1.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    padding-bottom: 40px;
    text-align: center;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px 10px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Main Content */
.main-content {
    margin-top: 5vh;
    padding: 0;
}

.page-header {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 20px;
    border-radius: 26px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Generic Products Grid (non-Woo sections that use .products-grid) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 15px;
}

/* Theme Product Card (generic) */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f97316;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #e0f2fe;
    color: #0891b2;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
}

.view-details-btn {
    background: #0d9488;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.view-details-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.load-more-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* Features Section - Mobile Optimized */
.features-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.features-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: #1f2937;
    margin: 30px 0 15px 0;
    font-size: 1.3rem;
}

.about-text p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 15px;
    clear: both;
}

.about-text a {
    color: #2563eb;
    text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    clear: both;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.about-image {
    width: 100%;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
}

.contact-info h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-item strong {
    color: #1f2937;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.submit-btn {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-left: 60px;
}

.footer-section h3,
.footer-section h4 {
    color: #f9fafb;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #87CEEB;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #87CEEB;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #87CEEB;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Generic Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0 20px;
}

/* Service Cards */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

/* CTA Button hover */
.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Mobile Styles */
@media (max-width: 879px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }


    .contact-bar {
        font-size: clamp(14px, 2.5vw, 14px);
        padding: 6px 0;
        position: fixed;
        top: 0;
        z-index: 1002;
    }

    .contact-info {
        gap: 0;
    }

    .phone-icon {
        width: clamp(14px, 2vw, 14px);
        height: clamp(14px, 2vw, 14px);
        margin-right: 5px;
        color: white;
    }

    .phone-number {
        margin-right: clamp(2px, 0.5vw, 5px);
        margin-left: 3px;
        font-size: 14px;
    }

    .header-content {
        justify-content: space-between;
    }

    .header {
        top: 25px;
    }

    .header-right {
        position: static;
        transform: none;
    }

    .logo-image {
        height: 109.6px;
    }

    .logo-text1 {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .secondary-nav {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #000;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        padding-bottom: 120px;
        scrollbar-width: thin;
        scrollbar-color: #888 #000;
    }

    .secondary-nav::-webkit-scrollbar {
        width: 8px;
        background: #000;
    }

    .secondary-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .secondary-nav.active {
        left: 0;
    }

    .mobile-menu-header {
        display: flex;
        margin-top: 30px;
        padding-left: 130px;
    }

    .menu-container {
        padding-left: 55px;
        max-width: none;
    }

    .main-menu {
        flex-direction: column;
        gap: 0;
    }

    .menu-item {
        border-bottom: 1px solid #333;
    }

    .menu-link {
        padding: 20px;
        justify-content: space-between;
        border-bottom: none;
        font-size: 15px;
    }

    .menu-link:hover {
        background-color: #333;
        color: white;
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: #222;
        min-width: auto;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-item.active .dropdown-menu {
        max-height: 1000px;
        overflow-y: auto;
    }

    .dropdown-link {
        padding: 15px 40px;
        border-bottom: 1px solid #333;
        color: #bbb;
        font-size: 14px;
    }

    .dropdown-link:hover {
        background-color: #444;
        color: white;
        font-size: 14px;
    }

    .sub-dropdown-menu {
      position: static;
      display: none;
      width: 100%;
      box-shadow: none;
      background: #444;
      font-size: 14px;
    }

    .submenu-item.active .sub-dropdown-menu {
      display: block;
    }

    .sub-dropdown-link {
        padding: 12px 60px;
        border-bottom: 1px solid #555;
        color: #ddd;
        font-size: 14px;
        background-color: #444;
        text-decoration: none;
    }

    .sub-dropdown-link:hover {
        background-color: #666;
        color: white;
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-top: -311px;
    }

    .hero {
        min-height: 400px;            /* smaller hero */
        background-size: contain;    /* SHOW whole image */
        background-position: top center;
        padding-bottom: 20px;
        text-align: center;
    }

    .hero-content {
        padding-top: 325px;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-image {
        width: 100% !important;
        margin-bottom: 20px !important;
        float: none !important;
    }

    .about-image img {
        height: 250px !important;
        width: 100% !important;
    }

    .about-text {
        width: 100% !important;
        clear: both !important;
    }

    .about-text p {
        clear: both !important;
        margin-bottom: 15px !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero {
        margin-top: 0;
        height: 65vh;
    }

    .main-menu {
        justify-content: center;
    }

    .menu-link {
        font-size: 10px;
    }

    .dropdown-menu {
        min-width: 220px;
    }

    .about-content {
        gap: 40px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .main-menu {
        justify-content: space-between;
    }

    .menu-link {
        padding: 12px 12px;
        font-size: 12px;
    }
}


/* =========================
   WOOCOMMERCE PAGE ADJUSTMENTS
   ========================= */

/* Footer small link hover stays the same */
.footer-bottom a:hover {
    text-decoration: underline;
}

/* WooCommerce wrapper spacing */
.woocommerce-content {
    padding: 40px 0;
}

/* Shop / Cart / Single Product Heroes */
.shop-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #1e40af 0%, #0d9488 100%);
    background-image: url('https://filipsbathroomd/wp-content/themes/fils-baths-woo/assets/images/bath_fulham1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.cart-hero {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    background-image: url('https://filipsbathrooms.co.uk/wp-content/themes/fils-baths-woo/assets/images/bath_fulham1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.single-product-hero {
    height: 30vh;
    min-height: 200px;
    background: linear-gradient(135deg, #7c3aed 0%, #0d9488 100%);
    padding: 20px 0;
}

/* Breadcrumbs inside hero */
.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woocommerce-breadcrumb {
    color: white;
    font-size: 0.9rem;
}

.woocommerce-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: white;
}

/* Shop Page Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.woocommerce-products-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.term-description {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Shop Controls (sorting + result count) */
.woocommerce-ordering,
.woocommerce-result-count {
    margin-bottom: 20px;
    padding-left: 6vw;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce-ordering select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

/* Optional wrapper grid if used */
.woocommerce-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* =========================
   CORE WOO PRODUCTS GRID
   4 desktop – 3 tablet – 2 mobile
   ========================= */

/* Base grid: 4 columns on desktop */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0 30px 40px;
    padding: 0;
}

/* Product card container
   Supports both <li class="product"> and your <div class="product-card product ..."> */
.woocommerce ul.products > li.product,
.woocommerce ul.products > .product,
.woocommerce ul.products .product-card.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products > li.product:hover,
.woocommerce ul.products > .product:hover,
.woocommerce ul.products .product-card.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Product link wrapper */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products .product-card.product .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product images */
.woocommerce ul.products li.product img,
.woocommerce ul.products .product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img,
.woocommerce ul.products .product:hover img {
    transform: scale(1.05);
}

/* Product badge (New, Sale etc) – matches theme style */
.woocommerce ul.products .product-badge,
.woocommerce ul.products .new-badge,
.woocommerce ul.products span.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f97316;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Ensure Woo's default sale badge uses same style */
.woocommerce span.onsale {
    background: #dc2626;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Product titles */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 15px 15px 10px;
    line-height: 1.3;
    text-decoration: none;
}

/* Remove "link look" while keeping clickability */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product h2 a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    outline: none !important;
}

/* Description / short description */
.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce ul.products li.product .product-description {
    color: #6b7280;
    margin: 0 15px 15px;
    line-height: 1.5;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Feature tags inside loop (your .feature-tag labels) */
.woocommerce ul.products li.product .product-features,
.woocommerce ul.products .product-card.product .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 15px 15px;
}

.woocommerce ul.products li.product .feature-tag,
.woocommerce ul.products .product-card.product .feature-tag {
    background: #e0f2fe;
    color: #0891b2;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Extra - links inside product-info area */
.woocommerce ul.products li.product .product-info a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: inherit;
    outline: none !important;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 15px 15px;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #dc2626;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    background: #0d9488;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0 15px 15px 15px;
    display: inline-block;
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* =========================
   SINGLE PRODUCT PAGE
   ========================= */

.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.woocommerce div.product div.images {
    margin-bottom: 0;
}

.woocommerce div.product div.images img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product div.summary {
  padding-top: 0 !important;
  margin-top: 100px!important;
}


.woocommerce div.product .product_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.woocommerce div.product p.price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 25px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    text-decoration: none;
}

.woocommerce div.product form.cart {
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 15px;
}

.woocommerce div.product form.cart .quantity input {
    width: 80px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.woocommerce div.product .product_meta {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 30px;
    color: #6b7280;
}

.woocommerce div.product .product_meta span {
    display: block;
    margin-bottom: 8px;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 60px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin-right: 30px;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 0;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: #6b7280;
    line-height: 1.6;
}

/* Related Products */
.related-products-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.related-products-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1f2937;
}

/* =========================
   CART PAGE
   ========================= */

.cart-content {
    padding: 40px 0;
}

.woocommerce-cart-form {
    margin-bottom: 40px;
}

.woocommerce table.cart {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    width: 100%;
}

.woocommerce table.cart thead th {
    background: #f8f9fa;
    padding: 20px 15px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e9ecef;
    text-align: left;
}

.woocommerce table.cart tbody td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.woocommerce table.cart tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.cart img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce table.cart .product-name a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce table.cart .product-name a:hover {
    color: #2563eb;
}

.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
    font-weight: 600;
    color: #1e40af;
    font-size: 1.1rem;
}

.woocommerce table.cart .product-remove a {
    color: #dc2626;
    font-size: 1.5rem;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.woocommerce table.cart .product-remove a:hover {
    background: #dc2626;
    color: white;
}

.woocommerce table.cart .quantity input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
}

/* Cart actions row */
.woocommerce table.cart .actions {
    background: #f8f9fa;
    padding: 20px;
}

.woocommerce table.cart .actions .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.woocommerce table.cart .actions .coupon input {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    flex: 1;
    max-width: 200px;
}

.woocommerce table.cart .actions .button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce table.cart .actions .button:hover {
    background: #4b5563;
}

/* Cart Collaterals (totals) */
.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.cart_totals {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart_totals h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
}

.cart_totals table tr:last-child th,
.cart_totals table tr:last-child td {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
}

.wc-proceed-to-checkout {
    margin-top: 20px;
}

.wc-proceed-to-checkout .checkout-button {
    background: linear-gradient(45deg, #059669, #0d9488);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* =========================
   RESPONSIVE – TABLET (3 COLS)
   ========================= */

@media (max-width: 1024px) and (min-width: 769px) {

    /* 3 columns on tablet */
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 20px 30px;
    }

    .single-product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-collaterals {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE – MOBILE (2 COLS)
   ========================= */

@media (max-width: 768px) {

    /* 2 columns on mobile */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 15px 30px;
        gap: 20px;
    }

    .woocommerce ul.products li.product img,
    .woocommerce ul.products .product img {
        height: 200px;
    }

    .single-product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-collaterals {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }

    /* Cart table becomes stacked cards */
    .woocommerce table.cart {
        font-size: 0.9rem;
    }

    .woocommerce table.cart thead {
        display: none;
    }

    .woocommerce table.cart tbody td {
        display: block;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #f1f3f4;
    }

    .woocommerce table.cart tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }

    .woocommerce table.cart .product-thumbnail {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   CLEAN WOO PRODUCTS GRID + SINGLE PRODUCT LAYOUT
   ============================================ */

/* Reset legacy float/position hacks from old CSS/YellowPencil */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.products .product {
    float: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Base grid: 4 columns on desktop */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0 30px 40px;
    padding: 0;
    box-sizing: border-box;
}

/* Tablet: 3 columns (769px – 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0 20px 30px;
    }
}

/* Mobile: 2 columns (≤ 768px) */
@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 15px 30px;
        gap: 20px;
    }
}

/* Very small screens: 1 column (≤ 480px) */
@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }
}

/* Single Product: sensible spacing below hero/header */
.woocommerce div.product {
    margin-top: 40px;
}

/* Slightly tighter on mobile */
@media (max-width: 768px) {
    .woocommerce div.product {
        margin-top: 30px;
    }
}

/* Keep your single product image tweak */
.woocommerce div.product div.images img {
    margin: 3px !important;
}

/* ============================================
   HOMEPAGE HEADER LOGO + ICON ALIGNMENT
   (match category header feel)
   ============================================ */

body.home .header-content {
    justify-content: space-between;
    padding: 0 20px;
}

/* Icon group: tighter spacing, visually centred */
body.home .header-right {
    gap: 8px;
    margin-right: 0px;
}

/* Icon buttons + hamburger same size, nicely circular */
body.home .header-right .icon-btn,
body.home .header-right .login-icon-btn,
body.home .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo height tuned to sit nicely with icons */
body.home .logo-image {
    height: 109.6px;
    margin-top: 0px;
    width: auto;
}

/* ============================================
   GLOBAL HORIZONTAL OVERFLOW SAFETY
   ============================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* HARD RESET: prevent Woo or plugins from forcing flex layout */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
}

.woocommerce ul.products li.product {
    width: auto !important;
    flex: none !important;
}


/* === FINAL GRID ITEM RESET === */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    flex: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
}


/* ==========================================
   🔥 TOTAL PRODUCT GRID RESET (Guaranteed Fix)
   Removes ALL plugin, Woo, YellowPencil overrides
   ========================================== */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin: 0 30px 40px !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Remove all poisoned float/flex/width rules */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.products .product {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    clear: none !important;
    transform: none !important;
}

/* Override WooCommerce's column classes */
ul.products[class*="columns"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

ul.products.columns-1,
ul.products.columns-1 li.product {
    width: auto !important;
}

/* TABLET */
@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products[class*="columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products[class*="columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products[class*="columns"] {
        grid-template-columns: 1fr !important;
    }
}


/* Kill remaining YellowPencil / wrong Woo max-width */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    max-width: none !important;
}


/* -------------------------
   FINAL FIX – STOP FLEXBOX
   ------------------------- */

/* WooCommerce wrappers often override with flex – disable it globally */
.woocommerce .products,
.woocommerce-page .products,
.woocommerce div.products,
.woocommerce-page div.products {
    display: block !important;
    width: 100% !important;
    flex-wrap: unset !important;
    flex: unset !important;
}

/* The real grid container */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin: 0 30px 40px !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Fix LI layout */
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

/* Disable WooCommerce float-based layout classes */
ul.products li.product.first,
ul.products li.product.last,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce-page ul.products li.product.first,
.woocommerce-page ul.products li.product.last {
    float: none !important;
    clear: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}


/* Ensure true grid behavior for LI items */
ul.products li.product {
    float: none !important;
    clear: none !important;
}


/* STOP THE PRODUCTS WRAPPER FROM USING FLEX */
.woocommerce .products,
.woocommerce-page .products,
.products {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    flex-wrap: unset !important;
}


/* REMOVE WOO CLEARFIX PSEUDO-ELEMENTS THAT BREAK THE GRID */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}


/* ------------------------------
   RESPONSIVE PRODUCT GRID FIX
   ------------------------------ */  

/* Desktop – already 4 columns */
.woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablet: 3 columns (768px–1023px) */
@media (max-width: 1023px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Wide Mobile: 2 columns (480px–767px) */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Narrow Mobile: 1 column (<480px) */
@media (max-width: 479px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}


/* Tidy mobile & tablet layout, prevent overflow */
@media (max-width: 1023px) {
    .woocommerce ul.products {
        margin: 0 15px !important; /* smaller sides on tablet */
        gap: 20px !important;      /* reduce space between items */
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products {
        margin: 0 10px !important; /* mobile */
        gap: 15px !important;
    }
}

@media (max-width: 479px) {
    .woocommerce ul.products {
        margin: 0 8px !important;  /* narrow mobile */
        gap: 12px !important;
    }
}

.woocommerce ul.products {
    padding: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-pagination,
.woocommerce-pagination .page-numbers {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.woocommerce-pagination ul.page-numbers {
    margin: 0 auto !important;
    padding: 0 10px !important;
}

/* One-line safety net */
body, html {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Add tidy breathing space on the right side of the product grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
    padding-left: 30px !important;
    padding-right: 30px !important; /* Adjust this value as needed */
    box-sizing: border-box !important;
}


/* Single Product page fixes */



.woocommerce div.product div.summary {
  padding-left: 2vh !important;
  padding-right: 0.6vh !important;
  padding-top: 30vh;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 60px;
  padding-left: 4vh;
}


/* Tablet  */
@media (max-width: 1024px) and (min-width: 769px) {

.woocommerce div.product div.summary {
  padding-left: 2vh !important;
  padding-right: 0.6vh !important;
 
}

}
/* Mobile */

/* ===== Modern 2-column checkout ===== */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

/* Left column (billing + shipping) */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Right column (order review) */
.woocommerce-checkout #order_review {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* ===== Sticky order summary ===== */
@media (min-width: 992px) {
    .woocommerce-checkout #order_review {
        position: sticky;
        top: 120px;
    }
}

/* ===== Payment section cleanup ===== */
.woocommerce-checkout #payment {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 25px;
}

.woocommerce-checkout .wc_payment_methods {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

.woocommerce-checkout .wc_payment_method {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.woocommerce-checkout .wc_payment_method label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-checkout .payment_box {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 12px;
}

/* ===== Express payments (Apple / Google / PayPal) ===== */
.woocommerce-checkout .wc-block-components-express-payment,
.woocommerce-checkout .ppc-button-wrapper,
.woocommerce-checkout .ppcp-button {
    margin-bottom: 18px !important;
}

.woocommerce-checkout .ppcp-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Prevent buttons being squashed */
.woocommerce-checkout .ppcp-button iframe,
.woocommerce-checkout .ppcp-button {
    max-width: 100% !important;
}

/* ===== Place order button ===== */
.woocommerce-checkout #place_order {
    background: #111827;
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    padding: 14px;
    width: 100%;
    margin-top: 15px;
}

.woocommerce-checkout #place_order:hover {
    background: #000000;
}

/* ===== Mobile checkout ===== */
@media (max-width: 991px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout #order_review {
        position: static;
        margin-top: 30px;
    }
}


#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}


/* Responsive Hero Section Height Adjustments */

@media (max-width: 320px) {
  .hero {
    min-height: 200px !important;
   
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 300px !important;
   
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px !important;
   
  }
}

@media (max-width: 580px) {
  .hero {
    min-height: 500px !important;
   
  }
}


/* =====================================================
   RESPONSIVE NORMALISATION LAYER
   Purpose:
   - Lock 320px–767px into ONE mobile layout
   - Only change layout at 768px+
   - Do NOT destroy existing styling
   ===================================================== */


/* -----------------------------
   GLOBAL SAFETY
   ----------------------------- */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* -----------------------------
   HERO – FULL IMAGE ON MOBILE
   ----------------------------- */

.hero {
  min-height: clamp(380px, 70vh, 900px);
  background-position: top center;
  background-repeat: no-repeat;
}

/* 320px–767px → show FULL image */
@media (max-width: 767px) {
  .hero {
    background-size: contain !important;
  }
}

/* ≥768px → fill nicely (cropping allowed) */
@media (min-width: 768px) {
  .hero {
    background-size: cover !important;
  }
}




/* -----------------------------
   GENERIC GRIDS – MOBILE FIRST
   ----------------------------- */

/* Force consistent mobile layout (320–767) */
.products-grid,
.features-grid,
.services-grid {
  grid-template-columns: 1fr !important;
}


/* -----------------------------
   WOO PRODUCTS GRID – MOBILE
   ----------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
}


/* -----------------------------
   SINGLE PRODUCT LAYOUT – MOBILE
   ----------------------------- */

.single-product-wrapper {
  grid-template-columns: 1fr !important;
}


/* =====================================================
   ≥768px – TABLET / DESKTOP ENHANCEMENTS
   ===================================================== */

@media (min-width: 768px) {

  /* Generic grids */
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Woo products */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    gap: 30px !important;
  }

  /* Single product */
  .single-product-wrapper {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* =====================================================
   ≥1200px – LARGE DESKTOP (OPTIONAL)
   ===================================================== */

@media (min-width: 1200px) {

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}


/* ==============================
   HEADER HEIGHT CONTROL
   ============================== */

:root {
  --contact-bar-height: 28px;
  --header-height: 80px;
  --hero-content-gap: 16px;
}


/* ==============================
   HERO STRUCTURE FIX
   ============================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(
    var(--contact-bar-height) +
    var(--header-height) +
    var(--hero-content-gap)
  );
  padding-bottom: 32px;
}


.hero-title {
  margin-top: 0 !important;
  margin-bottom: 8px;
}

.hero-subtitle {
  margin-bottom: 16px;
}


@media (max-width: 480px) {
  :root {
    --hero-content-gap: 8px;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}


/* ==============================
   PAGE TITLE POSITIONING
   ============================== */

.page-header,
.woocommerce-products-header,
.single-product .product_title {
  margin-top: 0 !important;
  padding-top: 32px;
}


/* ==============================
   HERO – SINGLE CONSISTENT MODEL
   ============================== */

.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 900px);
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;      /* SAME AS DESKTOP */
  justify-content: center;
  text-align: center;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: clamp(16px, 4vw, 40px);
}


.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  margin-bottom: clamp(8px, 2vw, 20px);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.5;
}


.header-spacer {
  height: calc(28px + 80px); /* contact bar + header */
}


@media (max-width: 767px) {
  .hero {
    background-size: contain;
  }
}

@media (min-width: 768px) {
  .hero {
    background-size: cover;
  }
}

:root {
  --contact-bar-height: 28px;
  --header-height: 80px;
  --hero-mobile-offset: 16px;
}


.hero {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}


@media (max-width: 890px) {

  /* Move content up inside hero */
  .hero {
    align-items: flex-start;
  }

  .hero-content {
    margin-top: calc(
      var(--contact-bar-height) +
      var(--header-height) +
      var(--hero-mobile-offset)
    );
    padding-top: 0 !important;
  }
}


.hero-content form,
.hero-content .search-form,
.hero-content input[type="text"] {
  position: relative;
  z-index: 2;
}


.hero {
  overflow: hidden;
}


/* Desktop / large screens */
@media (min-width: 890px) {
  .hero {
    align-items: center;
  }

  .hero-content {
    margin-top: 0;
  }
}


/* Mobile: 320px – 889px */
@media (max-width: 889px) {

  .hero {
    align-items: flex-start; /* stop flex centering */
  }

  .hero-content {
    margin-top: calc(
      var(--contact-bar-height) +
      var(--header-height) +
      12px
    );
  }
}


/* ==========================================================
   HERO + HEADER STACK: CONSISTENT SPACING (320–480 FIX)
   Paste this at the VERY END of your CSS file.
   ========================================================== */

/* 1) Define header stack heights once */
:root {
  --contact-bar-h: 30px;       /* your contact bar is around this */
  --header-h: 110px;           /* .header-content height on desktop */
  --mobile-header-h: 70px;     /* your logo shrinks on mobile */
  --secondary-nav-h: 40px;     /* adjust if your black nav is taller */
  --hero-gap: 18px;            /* breathing space below header stack */
}

/* 2) Make spacer use the same “fixed stack” height everywhere */
.header-spacer {
  height: calc(var(--contact-bar-h) + var(--header-h) + var(--secondary-nav-h)) !important;
}

/* 3) Ensure hero background is fully visible (no crop) */
.hero {
  /* show whole image */
  background-size: contain !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;

  /* provide a consistent hero height without needing 6 media queries */
  min-height: clamp(420px, 72vw, 900px) !important;

  /* IMPORTANT: remove layout drift from old padding/margins */
  padding-bottom: 40px !important;
  text-align: center;
  position: relative;
}

/* 4) Pin hero content just under the fixed header stack (desktop baseline) */
.hero-content {
  /* If you want the text to sit “on” the hero image area:
     we push it down by the fixed stack height + a small gap. */
  padding-top: calc(var(--contact-bar-h) + var(--header-h) + var(--hero-gap)) !important;

  /* neutralize your old mobile pushes */
  margin-top: 0 !important;
}

/* 5) Stop the hero title/subtitle being yanked around on mobile */
.hero-title,
.hero-subtitle {
  margin-top: 0 !important;
}

/* 6) Keep search bar inside the hero and above the background layer */
.hero-content,
.hero-title,
.hero-subtitle,
.hero-content form,
.hero-content input[type="text"],
.hero-content input[type="search"] {
  position: relative;
  z-index: 3;
}

/* ==========================================================
   MOBILE STACK (<= 879px) — match your breakpoint
   This is where drifting was happening.
   ========================================================== */
@media (max-width: 879px) {

  /* The header shrinks on mobile; use mobile header height for calculations */
  .header-spacer {
    height: calc(var(--contact-bar-h) + var(--mobile-header-h) + var(--secondary-nav-h)) !important;
  }

  .hero {
    /* keep full image visible on mobile too */
    background-size: contain !important;

    /* slightly taller on mobile so content doesn't fall off the image */
    min-height: clamp(360px, 92vw, 650px) !important;
  }

  .hero-content {
    /* CRITICAL: remove your old 325px padding */
    padding-top: calc(var(--contact-bar-h) + var(--mobile-header-h) + var(--hero-gap)) !important;
  }

  /* Proportional typography without additional media queries */
  .hero-title {
    font-size: clamp(1.4rem, 5.2vw, 2.0rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem) !important;
  }
}

/* ==========================================================
   SMALL MOBILE (<= 480px) — tighten gap a touch
   Ensures 480 → 320 does NOT drift down.
   ========================================================== */
@media (max-width: 480px) {
  :root { --hero-gap: 12px; }

  .hero {
    min-height: clamp(320px, 110vw, 520px) !important;
  }

  /* Make the search input behave on tiny widths */
  .hero-content input[type="text"],
  .hero-content input[type="search"] {
    width: 100% !important;
    max-width: 420px;
  }
}

/* ==========================================================
   WooCommerce hero/page title alignment
   (prevents the “gap” under hero before page title)
   ========================================================== */

/* Make Woo heroes use same “stack-aware” padding */
.shop-hero,
.cart-hero,
.single-product-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* If your Woo page title area sits below the hero, remove extra top spacing */
.woocommerce-products-header,
.woocommerce .page-title,
.woocommerce-page .page-title {
  margin-top: 150px !important;
  padding-left: 6vw;
}

/* If you have a custom breadcrumb/title container inside hero, keep it consistent */
.breadcrumb-container {
  padding-top: calc(var(--contact-bar-h) + var(--header-h) + var(--hero-gap)) !important;
}

@media (max-width: 879px) {
  .breadcrumb-container {
    padding-top: calc(var(--contact-bar-h) + var(--mobile-header-h) + var(--hero-gap)) !important;
  }
}


/* =========================================
   HERO FINAL NORMALISATION (FIX DRIFT & GAPS)
   ========================================= */

/* 1) Header spacer is the ONLY header offset */
.header-spacer {
  height: 140px !important; /* contact bar + header + nav */
}

/* 2) Hero has NO top padding or margin hacks */
.hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow: hidden;
}

/* Keep hero content inside image, near top */
.hero-content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  padding: 0 16px;
}


@media (max-width: 480px) {
  .hero-content {
    top: 12%;
  }
}


/* Restore search bar behaviour */
.hero-content input[type="text"],
.hero-content input[type="search"] {
  width: 160px !important;
  max-width: 100%;
  transition: width 0.4s ease-in-out;
}

.hero-content input[type="text"]:focus,
.hero-content input[type="search"]:focus {
  width: 100% !important;
}


/* Remove gap below hero before Woo title */
.hero + .woocommerce-content,
.hero + .woocommerce-products-header,
.hero + .page-header {
  margin-top: 0 !important;
  padding-top: 20px;
}


/* =========================================
   FINAL HERO CONTENT ANCHOR FIX
   ========================================= */

/* Remove percentage-based positioning entirely */
.hero-content {
  top: auto !important;
  transform: translateX(-50%) !important;
}


/* Mobile: anchor hero content directly under header */
@media (max-width: 889px) {

  .hero {
    position: relative;
  }

  .hero-content {
    position: absolute;
    left: 50%;
    top: calc(140px + 12px); /* header stack + gap */
    width: 100%;
    max-width: 1000px;
    padding: 0 16px;
  }
}


@media (min-width: 890px) {
  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
}


.hero {
  overflow: hidden;
}

.hero-content,
.hero-content * {
  position: relative;
  z-index: 3;
}


:root {
  --header-stack-height: 140px; /* default mobile */
}


@media (max-width: 360px) {
  :root {
    --header-stack-height: 170px; /* accommodates wrapped contact bar */
  }
}


@media (max-width: 889px) {
  .hero {
    position: relative;
  }

  .hero-content {
    position: absolute;
    top: calc(var(--header-stack-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    padding: 0 16px;
  }
}

/* =====================================================
   DESKTOP / TABLET FIXES (≥ 890px)
   ===================================================== */

@media (min-width: 890px) {

  /* -----------------------------
     1) HERO: TRUE FULL-WIDTH
     ----------------------------- */

  .hero {
    width: 100vw !important;
    max-width: 100vw !important;

    /* break out of any centered container */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background-size: cover !important;
    background-position: center top !important;
  }

  /* Safety: if hero is inside a container */
  .container .hero {
    max-width: none !important;
  }

  /* -----------------------------
     2) HERO CONTENT: RESET MOBILE POSITIONING
     ----------------------------- */

  .hero-content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    margin: 0 auto;
    max-width: 1100px;
    padding: 0 24px;
    width: 100%;
  }
}


/* ==============================
   RESPONSIVE LOGO TEXT FIX
   ============================== */

.logo-text1 {
  margin: 0 !important;
  line-height: 1;
  white-space: nowrap;

  /* fluid scaling */
  font-size: clamp(24px, 3.2vw, 48px);
}

/* Ensure header never overflows vertically */
.header-content {
  align-items: center;
  overflow: hidden;
}

/* Reduce logo dominance on mid-width screens */
@media (max-width: 1100px) {
  .logo-text1 {
    font-size: clamp(22px, 2.6vw, 36px);
  }
}

/* Hide logo text where space is genuinely insufficient */
@media (max-width: 900px) {
  .logo-text1 {
    display: none;
    
  }
}


/* =========================================
   HIDE MOBILE HAMBURGER FROM DESKTOP UP
   ========================================= */

/* Desktop & tablet navigation */
@media (min-width: 879px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* =========================================
   HEADER: TRUE CENTERED LOGO TEXT
   ========================================= */

/* Make header a 3-column grid */
.header-content {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Left logo image */
.header-content .logo,
.header-content .logo-image {
  justify-self: start;
}

/* Center text: Filip’s Bathrooms */
.logo-text1 {
  justify-self: center;
  text-align: center;
  margin: 0 !important;
  padding: 0 12px;
  white-space: nowrap;
  line-height: 1;

  /* Fluid, safe scaling */
  font-size: clamp(22px, 3vw, 48px);
}

/* Right icon group */
.header-right {
  position: relative !important; /* remove absolute positioning */
  justify-self: end;
  display: flex;
  gap: 8px;
  transform: none !important;
  top: auto !important;
  right: auto !important;
}

/* Prevent overlap at medium widths */
@media (max-width: 1100px) {
  .logo-text1 {
    font-size: clamp(20px, 2.6vw, 32px);
  }
}

/* Hide center text only when truly necessary */
@media (max-width: 900px) {
  .logo-text1 {
    display: none;
  }
}


/* =========================================
   HEADER GRID – FIX VERTICAL SHIFT
   ========================================= */

/* Keep grid, but DO NOT vertically center everything */
.header-content {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: stretch; /* 👈 critical change */
}

/* Left logo image: keep original alignment */
.header-content .logo,
.header-content .logo-image {
  align-self: center; /* same visual position as before */
}

/* Right icons: keep original alignment */
.header-right {
  align-self: center;
}

/* Center text: explicitly center it vertically */
.logo-text1 {
  align-self: center;
  justify-self: center;
  text-align: center;
  margin: 0 !important;
  padding: 0 12px;
  white-space: nowrap;
  line-height: 1;

  font-size: clamp(22px, 3vw, 48px);
}


/* =====================================================
   HEADER: FINAL GRID + VERTICAL ANCHOR FIX
   ===================================================== */

/* Header container: grid for horizontal layout ONLY */
.header-content {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: start;              /* ⬅ restore original vertical feel */
  height: 110px;                   /* your original header height */
  padding-top: 10px;               /* matches original spacing */
}

/* Left logo image */
.logo,
.logo-image {
  align-self: start;
  margin-top: 10px;                /* keeps logo higher */
}

/* Center text */
.logo-text1 {
  align-self: center;
  justify-self: center;
  margin-top: 0 !important;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(24px, 3vw, 48px);
}

/* Right icon group */
.header-right {
  position: relative !important;   /* undo absolute positioning */
  align-self: start;
  margin-top: 10px;                /* same vertical line as logo */
  display: flex;
  gap: 8px;
}

/* Hamburger button – align with icons */
.mobile-menu-toggle {
  align-self: start;
  margin-top: 10px;
}


@media (max-width: 879px) {

  .header-content {
    height: 70px;          /* your mobile header height */
    padding-top: 8px;
  }

  .logo,
  .logo-image,
  .header-right,
  .mobile-menu-toggle {
    margin-top: 0;
    align-self: center;    /* mobile header is truly centered */
  }
}


/* =========================================
   HEADER HEIGHT RESET (FIX CLIPPING)
   ========================================= */

/* Remove forced heights */
.header-content {
  height: auto !important;
  min-height: 110px;          /* desktop baseline */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mobile header should also size naturally */
@media (max-width: 879px) {
  .header-content {
    min-height: 90px;         /* matches your original mobile feel */
  }
}


/* =========================================
   DESKTOP HEADER: ALIGN ICONS WITH LOGO
   ========================================= */

@media (min-width: 879px) {

  /* Make all three grid columns align consistently */
  .header-content {
    align-items: center; /* align logo + text + icons together */
  }

  /* Ensure right-side icons are not pushed up */
  .header-right {
    align-self: center;
    margin-top: 0 !important;
  }

  /* Safety: logo block stays aligned */
  .logo,
  .logo-image {
    align-self: center;
    margin-top: 0 !important;
  }
}

/* =====================================================
   PERFORMANCE + STABILITY TWEAKS (non-destructive)
   - Keeps your current layout/looks the same
   - Reduces accidental overflow + improves rendering stability
   ===================================================== */

/* 1) Ensure nothing causes sideways scroll (safe, low risk) */
img, svg, video, canvas, iframe {
  max-width: 100%;
}

/* 2) Avoid long pages forcing expensive layout/paint work
      (supported in modern Chromium; harmless elsewhere) */
@supports (content-visibility: auto) {
  /* Below-the-fold sections */
  .features-section,
  .about-section,
  .contact-section,
  .footer,
  .woocommerce-content,
  .related-products-section,
  .cart-content,
  .woocommerce-checkout .woocommerce {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px; /* prevents large CLS jumps */
  }
}

/* 3) Respect reduced motion + reduce animation work */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* 4) Ensure hamburger never appears on desktop widths */
@media (min-width: 880px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========================================
   FIX: SECONDARY NAV OFFSET (DESKTOP)
   ========================================= */

@media (min-width: 880px) {
  .secondary-nav {
    top: 155px; /* adjusted to match actual header height */
  }
}


:root {
  --header-total-height: 155px;
}

@media (min-width: 880px) {
  .secondary-nav {
    top: var(--header-total-height);
  }
}

/* =========================================
   WooCommerce Filter and Filter Button Styling
   ========================================= */
    .wc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #dadada;
    border: 2px solid #e5e7eb;
    border-radius: 26px;
    color: #5f5d5d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
        transition-duration: 0.2s;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.wc-filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-left: 6vw;
}


/* =========================================
   WOO MOBILE GRID FIX (Wide mobile = 2 cols, Small mobile = 1 col)
   Paste at VERY END of style.css
   ========================================= */

/* Wide mobile: 2 columns (375px–767px) */
@media (max-width: 767px) and (min-width: 376px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products[class*="columns"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* Small mobile: 1 column (0px-375px) */
@media (max-width: 375px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products[class*="columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}




/* =========================================
   REMOVE HERO ENTIRELY ON WOO PAGES
   Keep ONLY WooCommerce page title
   ========================================= */

/* Hide hero container completely on Woo pages */
body.woocommerce .hero,
body.shop .hero,
body.single-product .hero,
body.product-category .hero,
body.product-tag .hero {
  display: none !important;
}

/* Remove any spacing the hero left behind */
body.woocommerce .header-spacer {
  display: none !important;
}

/* Ensure Woo page title sits correctly under header */
body.woocommerce .woocommerce-products-header,
body.woocommerce .page-header,
body.woocommerce .woocommerce-content {
  margin-top: 0 !important;
 
}

.woocommerce .page-title, .woocommerce-page .page-title {
  padding-left: 6vw;
}

/* =========================================
   REMOVE FILTER TITLE FROM WOO PAGES
   ========================================= */

/* Ensures Filter title is removed */
 .wc-filter-title {
    display: none !important;
  }

  /* Adjust filter icon position if title is removed */
  .wc-filter-header {
  padding-left: 13vw;
}


/* Filter Button Spacing */
.wc-filter-scroll-wrapper {
  padding-left: 13vw;
}

/* Result Counter Spacing */
.woocommerce .woocommerce-result-count {
  padding-left: 16vw;
}

/* Page Title Padding Top Adjustment for desktop */
@media (max-width: 1440px) and (min-width: 879px) {  
  .woocommerce .page-title, .woocommerce-page .page-title {
    padding-left: 6vw;
  }
}

/* Page Title Padding Top Adjustment for tablet/mobile */
@media (max-width: 767px) and (min-width: 376px) {
.woocommerce .page-title, .woocommerce-page .page-title {
    padding-left: 8vw !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: clamp(320px, 110vw, 0px) !important;
  }
}




  /* FIX: Prevent product images from being clipped */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper {
    overflow: visible;
    height: auto;
    max-height: none;
}

/* SINGLE SOURCE OF TRUTH FOR HEADER OFFSET */
.header-spacer {
  height: 155px; /* contact bar + header + secondary nav */
}

/* Undo dangerous offsets */


@media (max-width: 879px) {
  .header-spacer {
    height: 115px;
  }
}

/* FIX: Proper WooCommerce gallery stacking */
.single-product .woocommerce-product-gallery {
  display: flex;
  flex-direction: column;
}

.single-product .woocommerce-product-gallery__wrapper {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.single-product .flex-control-thumbs {
  margin-top: 16px;
  position: static !important;
}

/* FIX: Proper WooCommerce gallery stacking */
.single-product .woocommerce-product-gallery {
  display: flex;
  flex-direction: column;
}

.single-product .woocommerce-product-gallery__wrapper {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.single-product .flex-control-thumbs {
  margin-top: 16px;
  position: static !important;
}


/* =========================================
   FIX: Offset WooCommerce content from fixed header (DESKTOP)
   ========================================= */

@media (min-width: 880px) {
  body.single-product .woocommerce-content,
  body.single-product .woocommerce,
  body.single-product main.main-content {
    padding-top: 160px; /* contact bar + header + secondary nav */
  }
}


/* =========================================
   FIX: Restore header offset on Woo pages
   ========================================= */

body.single-product .header-spacer {
  display: block !important;
  height: 150px !important; /* contact bar + header + nav */
}


@media (max-width: 879px) {
  body.single-product .header-spacer {
    height: 115px !important;
  }
}


/* Add breathing room below fixed header on product pages */
body.single-product .header-spacer {
  margin-bottom: 32px; /* adjust: try 24px–48px */
}


@media (max-width: 879px) {
  body.single-product .header-spacer {
    margin-bottom: 20px;
  }
}


/* Space between header and product content */
body.single-product .woocommerce div.product {
  margin-top: 32px;
}


/* =========================================
   FIX: Mobile thumbnail overlap (WooCommerce)
   ========================================= */

@media (max-width: 768px) {

  /* Let the gallery define its own height */
  .single-product .woocommerce-product-gallery {
    display: block !important;
    height: auto !important;
  }

  .single-product .woocommerce-product-gallery__wrapper {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Force thumbnails BELOW the main image */
  .single-product .flex-control-nav.flex-control-thumbs {
    position: static !important;
    display: flex !important;
    flex-wrap: nowrap;
    margin-top: 12px !important;
    padding-top: 0 !important;
    clear: both !important;
  }

  /* Ensure thumbnails have their own height */
  .single-product .flex-control-thumbs li {
    height: auto !important;
  }

}


/* =========================================
   FINAL FIX: Mobile thumbnail overlap (FlexSlider)
   ========================================= */

@media (max-width: 768px) {

  /* Let FlexSlider calculate height naturally */
  .single-product .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Ensure main image wrapper does not constrain height */
  .single-product .woocommerce-product-gallery__wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
  }

  /* Force thumbnails into normal document flow */
  .single-product .flex-control-nav.flex-control-thumbs {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 16px !important;
    clear: both !important;
    z-index: 1 !important;
  }

  /* Prevent thumbnails from collapsing */
  .single-product .flex-control-thumbs li {
    height: auto !important;
    margin-bottom: 0 !important;
  }

}

/* =========================================
   DESKTOP GAP BELOW HEADER (FINAL)
   ========================================= */

@media (min-width: 880px) {
  body.single-product .woocommerce div.product {
    margin-top: 32px !important; /* try 24–48px */
  }
}


/* =====================================================
   SINGLE PRODUCT – FIX HEADER OVERLAP + ADD DESKTOP GAP
   + FIX THUMBNAILS OVERLAPPING MAIN IMAGE
   Paste at VERY END of style.css
   ===================================================== */

/* Your header stack height (contact + header + secondary nav) */
:root {
  --wc-header-stack: 155px;  /* you already reference ~155px in your CSS */
  --wc-gap-below-header: 24px; /* the gap you want on desktop */
}

/* ✅ Push the WHOLE product page down (desktop) */
@media (min-width: 880px) {
  body.single-product main#product,
  body.single-product .single-product-content,
  body.single-product .woocommerce-content {
    padding-top: calc(var(--wc-header-stack) + var(--wc-gap-below-header)) !important;
  }
}

/* ✅ Mobile/tablet: keep a sensible offset (you said mobile is now OK, but safe) */
@media (max-width: 879px) {
  body.single-product main#product,
  body.single-product .single-product-content,
  body.single-product .woocommerce-content {
    padding-top: calc(var(--wc-header-stack) + 16px) !important;
  }
}

/* ✅ STOP using vh-based padding hacks inside the gallery/summary */
body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce div.product div.summary {
  padding-top: 0 !important;
}

/* -----------------------------------------------------
   THUMBNAILS: prevent overlap and force them below image
   ----------------------------------------------------- */

/* Main gallery wrapper should size naturally */
body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Make sure the main image block has breathing room above thumbs */
body.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 14px !important;
}

/* Force thumbnails to sit BELOW the main image (no absolute/negative offsets) */
body.single-product .woocommerce div.product div.images .flex-control-thumbs {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 12px !important;
  padding-top: 0 !important;

  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  clear: both !important;
}

/* Thumbnail items */
body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
  float: none !important;
  margin: 0 !important;
  width: 70px !important;
}

/* Thumbnail images */
body.single-product .woocommerce div.product div.images .flex-control-thumbs img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* FINAL: Add breathing room below fixed header on product pages */
.woocommerce div.product {
  margin-top: 100px;
}


@media (max-width: 1440px) and (min-width: 879px) {
  .woocommerce .page-title, .woocommerce-page .page-title {
    margin-top: 230px !important;
    padding-left: 6vw;
  }
}


/* 🔧 INDEPENDENT FiboSearch Magnifier - Full Position Control */
.dgwt-wcas-search-wrapp { 
    position: relative !important; 
    overflow: visible !important;
}

/* MAGNIFIER - Move with these 4 numbers */
.dgwt-wcas-ico-magnifier {
    display: block !important;
    position: absolute !important;
    left: 16px !important;     /* ← LEFT/RIGHT: 10px=closer, 25px=farther */
    top: 55% !important;       /* ↑ UP/DOWN: 45%=higher, 55%=lower */
    transform: translateY(-50%) !important;
    width: 20px !important;    /* 📏 SIZE: 18px=smaller, 24px=bigger */
    height: 20px !important;
    z-index: 3 !important;
    opacity: 0.8 !important;
    pointer-events: none !important;
}

/* INPUT SPACE - Match magnifier position */
.dgwt-wcas-search-input {
    padding-left: 46px !important;  /* ← Match LEFT value + 30px */
    background-image: none !important;
    position: relative !important;
}

/* MOBILE */
@media (max-width: 879px) {
    .dgwt-wcas-ico-magnifier {
        left: 14px !important;  /* Mobile LEFT position */
        width: 18px !important;
        height: 18px !important;
    }
    .dgwt-wcas-search-input {
        padding-left: 44px !important;
    }
}

/* =========================================
   FiboSearch Homepage Centering Fix
   ========================================= */

/* Pure FiboSearch - Just centering */
.homepage-search-wrapper {
    text-align: center;
    margin: 20px auto;
    max-width: 900px;
}

@media (max-width: 879px) {
    .homepage-search-wrapper {
        margin: 15px auto;
        padding: 0 10px;
    }
}

/* 🎯 FiboSearch - Centered + Expanded FROM START */
.dgwt-wcas-search-wrapp {
    max-width: 600px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
}

/* FORCE EXPANDED STATE FROM START */
.dgwt-wcas-search-input {
    width: 100% !important;
    min-width: 400px !important;  /* Minimum expanded width */
    max-width: 600px !important;
    transition: none !important;  /* Disable animation conflicts */
}

/* WRAPPER - Center everything */
.hero-content,
.hero,
.page-content {
    text-align: center !important;
}

/* MOBILE - Always expanded + centered */
@media (max-width: 879px) {
    .dgwt-wcas-search-wrapp {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: 0 auto !important;
        padding: 0 5px !important;
    }
    
    .dgwt-wcas-search-input {
        min-width: 300px !important;
        width: 100% !important;
        max-width: none !important;
    }
}


/* 🔧 MOBILE: FiboSearch dropdown BEHIND header + no scroll jump */
@media (max-width: 879px) {
    /* Dropdown stays BEHIND your fixed headers */
    .dgwt-wcas-search-suggestions,
    .dgwt-wcas-dropdown {
        z-index: 500 !important;  /* Below your headers (1000-1002) */
        position: fixed !important;
        top: 160px !important;    /* Below contact bar (30px) + header (110px) + gap */
        left: 0 !important;
        right: 0 !important;
        max-height: calc(100vh - 180px) !important;
        overflow-y: auto !important;
    }
    
    /* Prevent scroll jump on focus */
    .dgwt-wcas-search-input:focus {
        outline: none !important;
        scroll-margin-top: 180px !important;
    }
    
    /* Body scroll lock during dropdown */
    .dgwt-wcas-search-wrapp:focus-within {
        position: relative;
        z-index: 501;
    }
    
    /* Container doesn't jump */
    body.search .dgwt-wcas-search-wrapp,
    .homepage-search-wrapper:focus-within {
        position: relative !important;
        top: 0 !important;
    }
}

/* Ensure headers stay on top */
@media (max-width: 879px) {
    .contact-bar { z-index: 1002 !important; }
    .header { z-index: 1001 !important; }
    .secondary-nav { z-index: 1000 !important; }
}

/* 🎯 UNIFORM LOGO SIZE - 168x109.6px EVERYWHERE */
.logo-image,
.site-logo img,
.custom-logo,
.woocommerce .logo-image,
.single-product .logo-image,
body.woocommerce-page .logo-image,
body.single-product .logo-image {
    width: 161px !important;
    height: 109.6px !important;
    object-fit: contain !important;
    max-width: 161px !important;
    max-height: 109.6px !important;
}

/* Header container adjustments */
.header-content .logo-image,
.header .logo-image {
    height: 109.6px !important;
    width: 161px !important;
}

/* Mobile logo matching */
@media (max-width: 879px) {
    .logo-image,
    .mobile-logo-image,
    .site-logo img,
    .custom-logo {
        width: 161px !important;
        height: 109.6px !important;
        object-fit: contain !important;
    }
    
    .header {
        top: 25px !important;  /* Adjust for taller logo */
    }
    
    .logo-image {
        height: 109.6px !important;  /* Override mobile reduction */
    }
}

/* Ensure no padding/margin interference */
.logo,
.header-content .logo,
.site-branding {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}


@media (max-width: 879px) {
    
  /* =========================================
   WooCommerce Page Title Top Margin Fix
   ========================================= */
  .woocommerce .page-title, .woocommerce-page .page-title {
  margin-top: 175px ;
  }
 }


/* =========================================
   WooCommerce Notice Box Styling Fix
   ========================================= */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    margin: 4em 0 2em;
 }

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
    top: 3em;
    left: 1.5em;
}

/* =========================================
   WooCommerce Sale Badge Position Fix - Desktop
   ========================================= */
.woocommerce span.onsale {
  top: -10px !important;
}

/* Specific fix for product grid items */
.woocommerce ul.products span.onsale {
  top: -10px !important;
 
}

/* =========================================
   WooCommerce Sale Badge Position Fix - Mobile
   ========================================= */
@media (max-width: 879px) {
.woocommerce span.onsale {
  top: -48px !important;
}

/* Specific fix for product grid items */
.woocommerce ul.products span.onsale {
  top: -48px !important;
 }
}

/* =========================================
   WooCommerce Price Styling Fix
   ========================================= */
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
  text-decoration: none !important;
}


/* =========================================
   WooCommerce Cart Totals Width Fix
   ========================================= */
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
  width: 100% !important;
}


/* --- FIX: Checkout layout breaks at tablet/desktop breakpoint --- */
@media (min-width: 763px){

    /* --- LABELS ABOVE INPUTS (stable on tablet & desktop) --- */
  .woocommerce-checkout form.checkout .form-row{
    display: block;
    margin-bottom: 14px;
  }

  .woocommerce-checkout form.checkout .form-row > label{
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px;
    float: none !important;
  }

  .woocommerce-checkout form.checkout .form-row .woocommerce-input-wrapper{
    display: block;
    width: 100%;
    max-width: 100%;
    float: none !important;
  }

}


/* --- 2-column checkout: keep "Your order" heading + order review together on the right --- */
@media (min-width: 763px){

  /* Use grid so we can place the heading + review in the same right column */
  .woocommerce-checkout form.checkout{
    display: grid !important;
    grid-template-columns: 58% 42%;
    column-gap: 28px;
    row-gap: 14px;
    align-items: start;
  }

  /* Left column: customer details spans the full height */
  .woocommerce-checkout #customer_details{
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 170% !important;
    min-width: 0 !important;
  }

  /* Right column: heading sits above the order review */
  .woocommerce-checkout #order_review_heading{
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    margin-top: 0;
  }

  .woocommerce-checkout #order_review,
  .woocommerce-checkout .woocommerce-checkout-review-order{
    grid-column: 2;
    grid-row: 2;
    width: 95% !important;
    min-width: 0 !important;
  }

  /* Kill float/width rules from themes/plugins that commonly break checkout */
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading{
    float: none !important;
    clear: none !important;
  }
}

/* Woo checkout: remove magnifier/search icon WITHOUT resetting theme field styling */
.woocommerce-checkout form.checkout .form-row input,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select {
  background-image: none !important;          /* removes icon only */
  --icon: none !important;                    /* covers themes using CSS vars */
}

/* If your theme injects the icon via pseudo-elements, remove ONLY those */
.woocommerce-checkout form.checkout .form-row::before,
.woocommerce-checkout form.checkout .form-row::after,
.woocommerce-checkout form.checkout .form-row .woocommerce-input-wrapper::before,
.woocommerce-checkout form.checkout .form-row .woocommerce-input-wrapper::after {
  content: none !important;
}


/* Let Forminator control its own layout */
.forminator-ui *,
.forminator-ui *::before,
.forminator-ui *::after {
  box-sizing: border-box ;
}

.forminator-ui input,
.forminator-ui select,
.forminator-ui textarea {
  width: 100%  ;
  max-width: 100% ;
}

/* WPBakery/theme sometimes makes labels inline */
.forminator-ui label {
  display: block ;
}

/* Prevent theme button styles breaking alignment */
.forminator-ui button,
.forminator-ui .forminator-button {
  width: auto ;
  max-width: 100% ;
}


/* Center Forminator form and add safe spacing */
.forminator-container {
  max-width: 720px ;        /* adjust to taste: 640–800px is common */
  margin-left: auto ;
  margin-right: auto ;
  padding-left: 24px ;
  padding-right: 24px ;
}

/* On larger screens, give it a bit more breathing room */
@media (min-width: 1024px) {
  .forminator-container {
    padding-left: 32px ;
    padding-right: 32px ;
  }
}


/* Center the Forminator form and add space from screen edges */
#primary.site-main > form.forminator-ui {
  max-width: 720px;     /* change to whatever you like */
  margin: 0 auto;
  padding: 0 24px;      /* space from screen edge */
  width: 100%;
  box-sizing: border-box;
}

/* Optional: a little extra padding on larger screens */
@media (min-width: 1024px) {
  #primary.site-main > form.forminator-ui {
    padding: 0 32px;
  }
}

#primary.site-main > #forminator-module-43718.forminator-ui {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}


/* 1) Push the form down below the header/secondary nav */
#primary.site-main > form.forminator-ui {
  margin-top: 32px;          /* increase if still too close */
  padding-top: 8px;          /* extra breathing room */
}

/* If your header is sticky and overlaps content, use padding on main instead */
#primary.site-main {
  padding-top: 32px;         /* adjust: 40–80px if needed */
}

/* 2) Add spacing between fields / rows */
#primary.site-main .forminator-ui .forminator-row {
  margin-bottom: 18px;       /* space between rows */
}

#primary.site-main .forminator-ui .forminator-field {
  margin-bottom: 14px;       /* space between fields */
}

/* 3) Left-align checkbox/radio options under the label */
#primary.site-main .forminator-ui .forminator-field-checkbox,
#primary.site-main .forminator-ui .forminator-field-radio {
  text-align: left;
}

#primary.site-main .forminator-ui .forminator-checkbox,
#primary.site-main .forminator-ui .forminator-radio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

/* Ensure the option label isn't centered by theme styles */
#primary.site-main .forminator-ui .forminator-checkbox-label,
#primary.site-main .forminator-ui .forminator-radio-label {
  text-align: left;
}

/* If you use "inline" options and they appear centered, force stacking */
#primary.site-main .forminator-ui .forminator-radio-inline,
#primary.site-main .forminator-ui .forminator-checkbox-inline {
  display: block;
}

/* 4) Specific page adjustment: extra top padding on page ID 43719 Quick Pay*/
.page-id-43719 #primary.site-main { padding-top: 120px; }


/* Remove magnifying glass from GetPaid address fields */
.getpaid-payment-form-element-address input[type="text"],
.getpaid-payment-form-element-address input[type="email"],
.getpaid-payment-form-element-address input[type="tel"]  {
    background-image: none !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
    padding-left: 12px !important; /* Restore normal left padding */
}

/* Kill any pseudo-elements adding the icon */
.getpaid-payment-form-element-address input::before,
.getpaid-payment-form-element-address input::after {
    content: none !important;
    display: none !important;
}


/* Nuclear option - remove ALL icons/backgrounds from GetPaid forms */
.getpaid-payment-form-element input,
.getpaid-payment-form-element input[type="text"],
.getpaid-payment-form-element input[type="number"],
.getpaid-payment-form-element input[type="search"],
.getpaid-payment-form-element input[type="email"] {
    background: none !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: 0 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Kill ALL pseudo-elements in GetPaid forms */
.getpaid-payment-form-element input::before,
.getpaid-payment-form-element input::after,
.getpaid-payment-form-element input::-webkit-search-decoration,
.getpaid-payment-form-element input::-webkit-search-cancel-button,
.getpaid-payment-form-element input::-webkit-search-results-button,
.getpaid-payment-form-element input::-webkit-search-results-decoration {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Specific amount field override */
input[placeholder*="amount"],
input.wpinv-amount,
input.getpaid-amount {
    background: none !important;
}

/* =========================================
   GetPaid Form Styling Fixes
   ========================================= */

/* Blue Pay button - full width */
body .getpaid-payment-form-element input[type="submit"],
body .getpaid-payment-form-element button[type="submit"] {
    width: 100% !important;
    background-color: #0066cc !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    font-weight: bold !important;
   
}

body .getpaid-payment-form-element input[type="submit"]:hover {
    background-color: #0052a3 !important;
}




