/*
Theme Name: Tools World
Theme URI: https://toolsworld.co.uk
Title: PowerTools Pro UK
Author: Antigravity
Description: A premium industrial-style theme for selling tools, built for WooCommerce. UK Edition.
Version: 4.0.0
Text Domain: tools-world
*/

:root {
    /* Premium Palette */
    --primary: #FFB700;
    /* Richer Industry Gold */
    --primary-hover: #E6A300;
    --dark: #0a0a0a;
    /* Pure Black */
    --dark-card: #151515;
    --text-main: #222222;
    --text-light: #666666;
    --border-light: #e5e5e5;
    --accent-blue: #0056b3;
    /* Trust Blue (UK) */

    /* Typography */
    --font-heading: 'Titillium Web', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------------------------
   RESET & BASE
------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #f4f6f8;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #fff !important;
}

.bg-dark {
    background-color: var(--dark);
}

.section-padding {
    padding: 90px 0;
}

/* -------------------------------------------
   BUTTONS
------------------------------------------- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 183, 0, 0.4);
}

.btn-outline {
    background: transparent;
    /* Changed from glass to transparent for clearer text */
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--dark);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
    color: var(--primary);
}

/* -------------------------------------------
   HEADER
------------------------------------------- */
/* -------------------------------------------
   HEADER REDESIGN (v4.1)
------------------------------------------- */
.top-bar {
    background-color: #f5f5f5;
    color: #555;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.top-info i,
.top-delivery-promo i {
    color: var(--primary);
    margin-right: 5px;
}

.top-delivery-promo {
    font-weight: 700;
    color: #333;
}

/* Middle Header */
.site-header-middle {
    background: #fff;
    padding: 25px 0;
}

.middle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo-text {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.site-logo-text .highlight {
    color: var(--primary);
}

/* Search Bar */
.search-area {
    flex-grow: 1;
    max-width: 600px;
}

.header-search-form .search-input-group {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.header-search-form .search-field {
    width: 100%;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
}

.header-search-form .search-submit {
    background: var(--primary);
    border: none;
    padding: 0 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
}

.header-search-form .search-submit:hover {
    background: var(--primary-hover);
}

/* Actions */
.actions-area {
    display: flex;
    gap: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-wrap {
    position: relative;
    font-size: 1.8rem;
    color: var(--dark);
}

.text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.text-wrap .sub {
    font-size: 0.75rem;
    color: #777;
}

.text-wrap .main {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bottom Navbar */
.site-navbar {
    background: var(--dark);
    /* Black/Dark Grey Bar */
    color: #fff;
    height: 50px;
    border-top: 1px solid #333;
}

.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Category Dropdown */
.category-dropdown-wrapper {
    position: relative;
    height: 100%;
    width: 250px;
}

.cat-btn {
    background: var(--primary);
    border: none;
    width: 100%;
    height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    padding: 0 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.category-dropdown-wrapper:hover .category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.cat-list li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

.cat-list li a:hover {
    background: #f9f9f9;
    color: var(--primary-hover);
    padding-left: 25px;
}

.cat-list li a i {
    color: #ccc;
    margin-right: 8px;
    font-size: 0.8rem;
}

.cat-list li.view-all a {
    font-weight: 700;
    color: var(--primary-hover);
    border: none;
}

/* Main Links In Navbar */
.main-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding-left: 20px;
}

.main-links a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 15px;
    line-height: 50px;
    /* Vertically center */
    display: block;
}

.main-links a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.special-link {
    color: var(--primary) !important;
}

.special-link i {
    margin-right: 5px;
}

/* Responsive Header Tweaks */
.mobile-menu-toggle-v2 {
    display: none;
}

@media (max-width: 992px) {
    .site-header-middle .actions-area {
        display: none;
    }

    /* Hide cart text/account on tablet */
    .site-navbar {
        height: auto;
        padding: 10px 0;
    }

    .navbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .category-dropdown-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }

    .main-links {
        display: none;
    }

    /* Could add mobile menu logic here */
}

/* -------------------------------------------
   HERO
------------------------------------------- */
/* Note: Background image moved here for reliability */
.hero-premium {
    position: relative;
    height: 650px;
    background-color: #222;
    /* Fallback */
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-block {
    max-width: 650px;
    color: #fff;
    animation: slideRight 0.8s ease-out;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero-premium h1 {
    font-size: 4rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-premium p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* -------------------------------------------
   FEATURES
------------------------------------------- */
.features-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 6px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary);
}

.feature-box i {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* -------------------------------------------
   WOOCOMMERCE PRODUCTS
------------------------------------------- */
.section-subtitle {
    display: block;
    color: var(--primary-hover);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 5px;
    background: var(--primary);
    margin: 0 auto;
}

ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 !important;
}

ul.products li.product {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid #eee;
    padding-bottom: 20px;
    width: 100% !important;
    /* Fix collapsed items */
    margin: 0 !important;
    /* Fix alignment */
}

ul.products li.product:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    padding: 0 20px;
    margin-bottom: 5px;
    color: #222;
}

ul.products li.product .price {
    display: block;
    padding: 0 20px 15px;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.25rem;
}

ul.products li.product .button {
    margin: 0 20px !important;
    width: calc(100% - 40px);
    background: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 10px 0;
}

ul.products li.product .button:hover {
    background: var(--primary);
    color: #000;
}

/* -------------------------------------------
   BRANDS
------------------------------------------- */
.brands-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
    opacity: 0.7;
}

.brand-item {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.brand-item:hover {
    opacity: 1;
    color: var(--primary);
}

/* -------------------------------------------
   PROMO BANNER
------------------------------------------- */
.promo-banner {
    background: #FFB700;
    color: #000;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(45deg, #FFB700 25%, #FFAA00 25%, #FFAA00 50%, #FFB700 50%, #FFB700 75%, #FFAA00 75%, #FFAA00 100%);
    background-size: 40px 40px;
}

.promo-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #000;
}

.promo-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.promo-tag {
    background: #000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* -------------------------------------------
   NEWS / BLOG
------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-body {
    padding: 25px;
}

.news-body h3 {
    font-size: 1.2rem;
    min-height: 3em;
}

.read-more {
    color: var(--primary-hover);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary);
}

/* -------------------------------------------
   FOOTER
------------------------------------------- */
.site-footer {
    background-color: var(--dark);
    color: #888;
    padding-top: 70px;
    font-size: 0.95rem;
}

.footer-logo h2 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #222;
}

.widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col p i {
    width: 25px;
    color: var(--primary);
}

.payment-icons {
    font-size: 2rem;
    color: #555;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-end;
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* -------------------------------------------
   RESPONSIVE
------------------------------------------- */
/* -------------------------------------------
   RESPONSIVE & MOBILE APP FEEL
------------------------------------------- */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle-v2 {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    /* Push to right if needed */
}

/* Off-Canvas Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {

    /* 1. Header Tweaks */
    .site-header-middle .middle-inner {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
    }

    .site-logo-text {
        font-size: 2rem;
    }

    .search-area {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .actions-area {
        display: flex;
    }

    /* Show cart on mobile */
    .action-btn .text-wrap {
        display: none;
    }

    /* Icon only for cart */
    .header-cart-btn {
        background: none;
        padding: 0;
    }

    .site-navbar {
        padding: 0;
        height: 0;
        border: none;
        overflow: visible;
    }

    /* 2. Show Mobile Toggle in Navbar Area (or Header) */
    .mobile-menu-toggle-v2 {
        display: block;
        position: absolute;
        top: -65px;
        /* Move into middle header area */
        left: 0;
        color: var(--dark);
        font-size: 1.8rem;
        z-index: 1001;
        margin: 0;
    }

    /* Adjust Logo to allow space for burger */
    .logo-area {
        margin-left: 40px;
    }

    /* 3. Off-Canvas Menu Drawer */
    .navbar-inner {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        /* Drawer width */
        max-width: 320px;
        height: 100vh;
        background: var(--dark);
        z-index: 9999;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .navbar-inner.active {
        transform: translateX(0);
        /* Slide In */
    }

    /* Menu Items inside Drawer */
    .category-dropdown-wrapper {
        width: 100%;
        margin-bottom: 20px;
        height: auto;
    }

    .cat-btn {
        background: #333;
        color: #fff;
        padding: 15px;
        border-radius: 4px;
    }

    .category-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        /* JS to toggle? Or just show always */
    }

    .category-dropdown-wrapper.active .category-menu {
        display: block;
    }

    /* Simple Accordion if needed */

    .main-links {
        display: block;
    }

    .main-links ul {
        flex-direction: column;
        padding: 0;
    }

    .main-links a {
        line-height: normal;
        padding: 15px 0;
        border-bottom: 1px solid #333;
        font-size: 1.1rem;
    }

    /* 4. Product Grid - 2 Columns Density properly */
    .features-grid {
        grid-template-columns: 1fr;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    ul.products li.product {
        padding-bottom: 10px;
    }

    ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem;
        /* Smaller Font */
        padding: 0 10px;
        min-height: 2.4em;
        /* Prevent misalignment */
    }

    ul.products li.product .price {
        font-size: 1.1rem;
        padding: 0 10px 10px;
    }

    ul.products li.product .button {
        margin: 0 10px !important;
        width: calc(100% - 20px);
        padding: 8px 0;
        font-size: 0.8rem;
    }

    /* Hero Text Mobile */
    .hero-premium {
        height: 500px;
        text-align: center;
    }

    .hero-text-block {
        margin: 0 15px;
    }

    .hero-premium h1 {
        font-size: 2.2rem;
    }

    /* 4. Horizontal Scrollable Category Bar */
    .mobile-category-bar {
        display: block;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 990;
    }

    .mobile-category-bar .scroll-wrapper {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-category-bar .scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .cat-pill {
        display: inline-block;
        background: #f4f6f8;
        color: var(--dark);
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        border: 1px solid transparent;
        text-decoration: none;
    }

    .cat-pill.active,
    .cat-pill:hover {
        background: var(--dark);
        color: var(--primary);
        border-color: var(--dark);
    }

    /* 5. Hide Top Bar */
    .top-bar {
        display: none !important;
    }

    /* 6. Hero Button Fixes */
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 993px) {
    .mobile-category-bar {
        display: none;
    }
}

@media (max-width: 576px) {

    /* Even denser mobile view if needed */
    .hero-premium {
        height: 400px;
    }

    .hero-premium h1 {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------
   HOME ENHANCEMENTS (v5.0)
------------------------------------------- */
/* Trust Strip */
.trust-strip {
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--primary);
}



/* SEO Grid */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.seo-box h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-box h4 i {
    color: var(--primary-dark);
}

.seo-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Logic for New Sections */
@media (max-width: 992px) {
    .deal-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding: 20px;
    }

    .countdown-timer {
        justify-content: center;
    }

    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }

    .trust-item {
        white-space: nowrap;
        flex-shrink: 0;
        margin-right: 20px;
    }
}

@media (max-width: 576px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }

    .deal-content h2 {
        font-size: 1.5rem;
    }

    .trust-strip {
        display: none;
    }
}

/* -------------------------------------------
   WOOCOMMERCE PRODUCTS (v5.1 Polished - Override)
------------------------------------------- */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none outside !important;
}

ul.products li.product {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
}

ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
}

ul.products li.product a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease !important;
}

ul.products li.product:hover a img {
    transform: scale(1.05) !important;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 0 10px !important;
    line-height: 1.4 !important;
    min-height: 80px !important;
    /* Force fixed height for alignment */
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-grow: 0 !important;
    margin-bottom: 5px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

ul.products li.product .price {
    display: block !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-hover) !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    /* Allow price area to grow if needed, or push button */
    display: flex !important;
    align-items: flex-end !important;
    /* Align price text to bottom of this flexible space */
    justify-content: center !important;
    padding-bottom: 10px !important;
}

ul.products li.product .price del {
    color: #999 !important;
    font-size: 0.9rem !important;
    margin-right: 5px !important;
    opacity: 0.7 !important;
    font-weight: 400 !important;
}


ul.products li.product .button {
    display: block !important;
    background: var(--primary) !important;
    color: var(--dark) !important;
    border: none !important;
    padding: 12px 0 !important;
    /* Remove side padding to depend on width */
    border-radius: 4px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    margin: 10px 0 0 0 !important;
    /* Top margin only */
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    /* Essential fix */
    min-width: 0 !important;
    /* Flexbox fix */
    left: 0 !important;
    right: 0 !important;
}

ul.products li.product .button:hover {
    background: var(--dark) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

ul.products li.product .onsale {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #e74c3c !important;
    color: #fff !important;
    padding: 3px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    z-index: 5 !important;
    min-height: auto !important;
    line-height: normal !important;
}

/* Fix for first items in row sometimes misaligning in default Woo */
ul.products::before,
ul.products::after {
    display: none !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   Contact Page Styles (v5.0)
   ========================================= */

.contact-page-content {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.contact-page-content h2::after {
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* =========================================
   Enhanced Category Menu (v5.1)
   ========================================= */

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
}

/* Show menu on parent hover */
.category-dropdown-wrapper:hover .category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list>li {
    position: relative;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}

.cat-list>li:last-child {
    border-bottom: none;
}

.cat-list>li:hover {
    background: #fdfdfd;
}

.cat-list>li>a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    justify-content: space-between;
    /* Space out text and arrow */
}

/* Arrow indicator for submenus */
.arrow-indicator {
    font-size: 0.8rem;
    color: #ccc;
    margin-left: auto;
    /* Push to right */
}

/* Left Icon override if using angle-right there */
.cat-list>li>a>i.fa-angle-right {
    margin-right: 12px;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cat-list>li:hover>a {
    color: var(--primary-hover);
    padding-left: 25px;
    /* Slight slide effect */
}

.cat-list>li:hover>a i {
    color: var(--primary);
}

/* View All Link Special Styling */
.cat-list>li.view-all a {
    color: var(--primary-hover);
    font-weight: 700;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: #fffcf5;
}

.cat-list>li.view-all:hover a {
    background: var(--primary);
    color: #fff;
}

/* Submenu Styles (Flyout) */
.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    /* Push to right side */
    width: 250px;
    background: #fff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 8px 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 101;
    border-left: 2px solid var(--primary);
}

.cat-list>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sub-menu li a:hover {
    color: var(--primary-hover);
    background: #f9f9f9;
    padding-left: 25px;
}

width: 60px;
height: 4px;
background: var(--primary);
border-radius: 2px;
}

.contact-page-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.contact-info-block {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--dark);
}

.contact-info-block h3 i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    background: rgba(255, 193, 7, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-info-block p strong {
    color: #333;
}

.contact-info-block a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info-block a:hover {
    color: var(--primary);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    margin-top: 20px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    filter: grayscale(20%);
    /* Stylish muted map look */
    transition: filter 0.3s ease;
}

.map-responsive:hover iframe {
    filter: grayscale(0%);
}

@media (min-width: 768px) {
    .contact-page-content .row {
        display: flex;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-page-content .col-md-6 {
        flex: 1;
    }

    .map-responsive {
        margin-top: 0;
        /* Align with top of content on desktop */
        height: 100%;
        min-height: 500px;
        padding-bottom: 0;
        /* Override aspect ratio hack for explicit height flex */
    }
}