/*
Theme Name: Technofish Custom B2B
Theme URI: https://technofish.gr
Author: Technofish
Description: A custom, lightweight theme built for maximum WooCommerce speed.
Version: 1.0
Text Domain: technofish-custom
*/
:root {
    /* ── BRAND TYPOGRAPHY ── */
    /* Ensure these fonts are loaded via your WordPress theme or Elementor settings! */
    --font-display: 'Source Sans 3', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    /* ── BRAND COLORS ── */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-accent: #080808;
    --color-bg-primary: var(--color-white);
    /* ── HEADER CONFIGURATION ── */
    --header-height: 70px;
    /* SHORTER BLACK HEADER */
    --header-height-scrolled: 55px;
    --header-ticker-height: 15px;
    /* Restored white line height */
    --header-bg-start: rgb(11, 11, 11);
    --header-bg-scrolled: rgb(240, 240, 240);
    --header-bg-black-mode: var(--color-black);
    /* UPDATE THESE PATHS to your WordPress Media Library URLs! */
    --logo-white: url('http://new.technofish.gr/wp-content/uploads/2026/04/logo-white-scaled.png');
    --logo-black: url('http://new.technofish.gr/wp-content/uploads/2026/04/logo-black-scaled.png');
    /* ── LAYOUT & SPACING ── */
    --container-max-width: 1600px;
    --gutter: 17px;
    --gutter-inset: 40px;

    /* Shared Easing for fluid animations */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

p {
    margin-top: 0 !important;
}
body:not(.home) .site-content {
    padding-top: 55px; /* Matches the exact height of your internal-nav header */
}
/* If you DO want the home page pushed down as well (70px for the big header): */
body.home .site-content {
    padding-top: 70px; /* Matches the exact height of your base header */
}

html,
body {
    overflow-x: clip;
    /* Absolutely prevents horizontal scrolling */
    width: 100%;
    margin: 0;
}

/* 1. The Base Container (The 17px Frame) */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* 2. The Inset Logic (The 40px Alignment) */
/* This applies to anything with the .inset class, AND all Woo pages automatically */
.container.inset,
body.woocommerce .container,
body.woocommerce-page .container {
    padding-left: var(--gutter-inset);
    padding-right: var(--gutter-inset);
}

/* ==========================================================================
   WOOCOMMERCE GLOBAL INSET (40px Desktop / 17px Mobile)
   ========================================================================== */

/* 1. Target every WooCommerce-related container on Desktop */
@media only screen and (min-width: 769px) {

    /* This catches the shop, single products, cart, and checkout */
    body.woocommerce .container,
    body.woocommerce-page .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* 2. Target every WooCommerce-related container on Mobile */
@media only screen and (max-width: 768px) {

    body.woocommerce .container,
    body.woocommerce-page .container {
        padding-left: var(--gutter);
        /* Stays at your 17px to save space */
        padding-right: var(--gutter);
    }
}

/* =========================================================================
   HEADER STYLES (Performance & Premium Layout)
   ========================================================================= */





.nav-wrapper *,
.nav-wrapper *::before,
.nav-wrapper *::after {
    box-sizing: border-box;
}

.admin-bar .nav-wrapper {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nav-wrapper {
        top: 46px;
    }
}

.nav-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--header-height);
    z-index: 9999;
    background: var(--header-bg-start);
    transition: background-color 0.4s ease, height 0.4s ease;
    padding-bottom: var(--header-ticker-height);
    /* Makes room for ticker */
}

.nav-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10; /* Ensures the mega-menu bridge covers the ticker */
}

/* Scrolled States (Smoother transition) */
.nav-wrapper.scrolled,
.nav-wrapper.internal-nav {
    background: var(--header-bg-scrolled);
    height: var(--header-height-scrolled);
    padding-bottom: 0;
    /* Hides ticker */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Restored White Ticker */
.header-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    color: var(--color-black);
    height: var(--header-ticker-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-wrapper.scrolled .header-ticker,
.nav-wrapper.internal-nav .header-ticker {
    display: none;
}

/* ──────────────────────────────────────
   1. BRAND GROUP (Logo + Translate)
   ────────────────────────────────────── */
.nav-brand-group {
    display: flex;
    align-items: flex-end;
    /* Mathematically pins the flags to the bottom of the logo */
    gap: 8px;
    /* Adds a clean space between the logo and flags */
    transition: all 0.4s ease;
    height: 50px;
    /* Base height for the group */
}

/* Scrolled state shrinks the whole container */
.nav-wrapper.scrolled .nav-brand-group,
.nav-wrapper.internal-nav .nav-brand-group {
    height: 35px;
}

.nav-logo-link {
    position: relative;
    display: block;
    width: 150px;
    height: 100%;
    /* Takes the full height of the brand group */
    transition: width 0.4s ease;
}

.nav-wrapper.scrolled .nav-logo-link,
.nav-wrapper.internal-nav .nav-logo-link {
    width: 120px;
}

.nav-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    /* Pins image strictly to the bottom */
    max-height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left bottom;
    /* Forces the actual image pixels to sit on the bottom baseline */
    transition: opacity 0.3s ease;
}

.logo-black {
    opacity: 0;
}

.nav-wrapper.scrolled .logo-white,
.nav-wrapper.internal-nav .logo-white {
    opacity: 0;
}

.nav-wrapper.scrolled .logo-black,
.nav-wrapper.internal-nav .logo-black {
    opacity: 1;
}

.nav-translate {
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform-origin: left bottom;
    /* Ensures that when it shrinks, it shrinks towards the bottom left so it stays aligned! */
    padding-bottom: 4px;
    /* Fine-tunes the flag position to match the exact visual baseline of the "TechnoFISH" text */
}

/* Smoothly scales the flags down by 15% when the header shrinks */
.nav-wrapper.scrolled .nav-translate,
.nav-wrapper.internal-nav .nav-translate {
    transform: scale(0.85);
    padding-bottom: 0px;
    /* Removes the extra padding on the tiny header */
}

/* ──────────────────────────────────────
   2. ABSOLUTE CENTERED DESKTOP LINKS
   ────────────────────────────────────── */
.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    align-items: center; /* Restored: Confines the trigger box to the actual words */
    height: 100%;
}

.nav-links>a,
.nav-has-mega>a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Subtle hover dim effect. 
   Using .nav-has-mega:hover>a ensures it stays dimmed while the mega menu is open! */
.nav-links>a:hover,
.nav-has-mega:hover>a {
    opacity: 0.6;
}

/* Targeted invisible bridge: Only directly below the "ΠΡΟΪΟΝΤΑ" link.
   Height is 0 by default so it doesn't trigger accidentally from below! */
.nav-has-mega>a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -15px;
    right: -15px;
    height: 0;
    background: transparent;
}

/* The bridge ONLY drops down when you actually hover the word */
.nav-has-mega:hover>a::after {
    height: 40px; /* Spans the gap + ticker */
}

.nav-wrapper.scrolled .nav-links>a,
.nav-wrapper.internal-nav .nav-links>a,
.nav-wrapper.scrolled .nav-has-mega>a,
.nav-wrapper.internal-nav .nav-has-mega>a {
    color: var(--color-black);
}

/* 1-Row Mega Menu */
.nav-has-mega {
    position: static;
    height: 100%;
}

.nav-mega-menu {
    position: absolute;
    /* In base state (with ticker), push the menu down below the ticker */
    top: calc(100% + var(--header-ticker-height));
    /* Breakout trick: Since parent (.nav-links) is centered, 50% is screen center. 
       Subtracting 50vw pushes it precisely to the left edge of the viewport. */
    left: calc(50% - 50vw);
    width: 100vw;
    background: #ffffff;
    padding: 25px 30px 15px; /* Reduced bottom padding */
    border-bottom: 2px solid var(--color-black);
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    box-sizing: border-box;
}

/* Remove the offset when scrolled/internal since the ticker is hidden */
.nav-wrapper.scrolled .nav-mega-menu,
.nav-wrapper.internal-nav .nav-mega-menu {
    top: 100%;
}

.nav-has-mega:hover .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
    min-width: 0;
    overflow: hidden;
}

.mega-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    margin-bottom: 8px;
    transition: border-color 0.2s;
    background: #f5f5f5;
}

.mega-item span {
    font-family: var(--font-body);
    font-size: 0.8rem; /* Increased size */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-black);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mega-item:hover {
    transform: translateY(-3px);
}

.mega-item:hover img {
    border-color: var(--color-black);
}

/* ──────────────────────────────────────
   3. ICONS & ACTIONS
   ────────────────────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-wrapper.scrolled .action-icon,
.nav-wrapper.internal-nav .action-icon {
    color: var(--color-black);
}

.action-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.action-icon:hover {
    opacity: 0.6;
}

.b2b-login-btn span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ──────────────────────────────────────
   4. MALOSI-STYLE MOBILE MENU
   ────────────────────────────────────── */

html.noscroll,
body.noscroll {
    overflow: hidden !important;
    overscroll-behavior: none;
}
body.noscroll {
    touch-action: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    padding: 0;
    /* Reduced Z-index so it sits UNDER the sliding white menu */
    z-index: 9000;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.nav-wrapper.scrolled .hamburger span,
.nav-wrapper.internal-nav .hamburger span {
    background: var(--color-black);
}

/* Note: ALL hamburger animation CSS was completely deleted here. It will always remain a hamburger! */

/* Dark Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    z-index: 10001;
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Removed bulky padding */
    overflow: hidden;
    /* Locks the main panel from ugly scrolling */
}

.mobile-menu-panel.open {
    right: 0;
}

/* The new Top Bar */
.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 25px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Left side of top bar: B2B link + flags */
.mobile-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* B2B link in the mobile panel top bar — grey, vertically centered */
.mobile-top-b2b {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    margin-top: -2px; /* Visually align with icons */
}
.mobile-top-b2b:hover {
    color: var(--color-black);
}

/* Right side of top bar: cart + close button */
.mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Cart icon inside mobile panel top bar */
.mobile-top-cart {
    position: relative;
    color: var(--color-black);
    display: flex;
    align-items: center;
    text-decoration: none;
}
.mobile-top-cart svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.mobile-top-cart .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
}

/* GTranslate inside mobile menu top bar */
.mobile-topbar-translate {
    transform: scale(0.85);
    transform-origin: left center;
    display: flex;
    align-items: center;
}

/* FREEZE header state when menu is open — CSS-only safety net. */
.nav-wrapper.menu-open {
    background: var(--header-bg-scrolled) !important;
    height: var(--header-height-scrolled) !important;
    padding-bottom: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: none !important;
}
.nav-wrapper.menu-open .header-ticker { display: none !important; }
.nav-wrapper.menu-open .nav-brand-group { height: 35px !important; }
.nav-wrapper.menu-open .nav-logo-link { width: 120px !important; }
.nav-wrapper.menu-open .logo-white { opacity: 0 !important; }
.nav-wrapper.menu-open .logo-black { opacity: 1 !important; }
.nav-wrapper.menu-open .nav-translate { transform: scale(0.85) !important; padding-bottom: 0 !important; }
.nav-wrapper.menu-open .nav-links > a,
.nav-wrapper.menu-open .nav-has-mega > a { color: var(--color-black) !important; }
.nav-wrapper.menu-open .action-icon { color: var(--color-black) !important; }
.nav-wrapper.menu-open .hamburger span { background: var(--color-black) !important; }

/* X close button — bigger, thinner, more right to match hamburger */
.mobile-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-black);
    stroke-width: 1.5;
    fill: none;
    transition: transform 0.3s ease;
}

.mobile-close-btn:hover svg {
    transform: scale(1.1);
}


.mobile-menu-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 25px 8px;
    overflow-y: auto;
    scrollbar-width: none;
}

.mobile-menu-links::-webkit-scrollbar {
    display: none;
}

/* PRIMARY: Category links — large, bold, the main focus */
.mobile-cat-link {
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: color 0.2s ease;
}
.mobile-cat-link:hover .mobile-cat-title {
    color: var(--color-accent);
}

.mobile-cat-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-black);
    text-transform: uppercase;
    line-height: 1.2;
}

.mobile-cat-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

/* Divider between primary categories and secondary nav */
.mobile-menu-divider {
    height: 1px;
    background: var(--color-black);
    margin: 6px 0;
    opacity: 0.15;
}

/* SECONDARY: Smaller navigation links below the divider — black, compact */
.mobile-secondary-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 0;
    display: block;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}
.mobile-secondary-link:hover {
    opacity: 0.6;
}

/* Replace your existing .nav-socials */
.nav-socials {
    display: flex;
    gap: 20px;
    padding: 10px 25px 18px;
    margin-top: 0;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.nav-socials a {
    color: var(--color-black);
}

.nav-socials svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    overflow: visible;
}

/* TikTok uses a filled icon, not stroked, and needs to be slightly smaller to match visual weight */
.nav-socials a[aria-label="TikTok"] svg {
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
    width: 19px;
    height: 19px;
}

/* ──────────────────────────────────────
   RESPONSIVE QUERIES
   ────────────────────────────────────── */
@media (max-width: 1024px) {

    .nav-links,
    .b2b-login-btn span {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {

    .nav-inner,
    .container {
        padding: 0 16px !important;
    }

    .nav-logo-link {
        width: 140px;
    }

    .nav-translate {
        display: none;
    }

    /* Hide GTranslate on mobile header to save space (moved inside menu) */
}

/* ==========================================================================
   CUSTOM THEME: PRODUCT GRID STYLES
   ========================================================================== */

/* 1. Main Grid Setup (4 Columns) */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 22px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* 2. Main Product Card Structure */
.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    padding-bottom: 20px;
    margin: 0 !important;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);

    /* Card template is fully visible immediately */
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. Image Container & Animation */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start !important;
}

.woocommerce ul.products li.product img {
    padding: 20px;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;

    /* Hidden initially so JS can animate it */
    opacity: 0;
}

/* JS Triggered Animation (Listens to JS for the left-to-right delay timer) */
.woocommerce ul.products li.product.animate-fade-in img {
    /* CHANGED: Slowed down from 1.2s to 2s */
    animation: slowImageFadeIn 2s var(--ease-out) forwards;
    animation-delay: var(--card-delay, 0ms);
}

@keyframes slowImageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hide WooCommerce Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* 4. Text Layout & Typography */
.woocommerce ul.products li.product .technofish-loop-category,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    padding: 0 20px !important;
    text-align: left;
}

.woocommerce ul.products li.product .technofish-loop-category {
    margin: auto 0 0px 0 !important;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #888888;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0px 0 2px 0 !important;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.3px;
    min-height: 0 !important;
}

.woocommerce ul.products li.product .price {
    margin: 0 !important;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    line-height: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
        /* 20px vertical, 10px horizontal for phones */
    }

    .woocommerce ul.products li.product {
        padding-bottom: 12px;
    }

    .woocommerce ul.products li.product img {
        padding: 10px;
    }

    /* Tighter text padding for mobile */
    .woocommerce ul.products li.product .technofish-loop-category,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .price {
        padding: 0 12px !important;
    }

    .woocommerce ul.products li.product .technofish-loop-category {
        font-size: 0.65rem;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1.1rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.9rem;
    }

}



/* ==========================================================================
   FRONT PAGE STYLES (Mapped to Live Root Variables)
   ========================================================================== */

/* ──────────────────────────────────────
   1. HERO SECTION
   ────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    /* Αντί για 100vh, παίρνει το 80% της οθόνης για να φαίνεται ότι υπάρχει συνέχεια */
    height: 94vh; 
    /* Κρατάμε ένα ελάχιστο ύψος για να μη στριμώχνεται το κείμενο σε μικρά laptop */
    min-height: 600px; 
    /* ΤΟ ΜΥΣΤΙΚΟ: Βάζουμε "ταβάνι". Σε τεράστιες οθόνες δεν θα ξεπεράσει ποτέ τα 850px */
    max-height: 850px; 
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 2.5rem;
    z-index: 2;
    max-width: 43.75rem;
    margin-left: var(--gutter-inset);
    /* Pushes left side 40px */
    margin-right: var(--gutter-inset);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.08em;
    margin-bottom: 0;
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.0625rem;
    max-width: 40.625rem;
    line-height: 1.6;
    color: var(--color-white);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ──────────────────────────────────────
   2. BUTTONS 
   ────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

.hero .btn {
    margin-bottom: 1.25rem;
}

/* ──────────────────────────────────────
   3. SECTION HEADINGS
   ────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.08em;
    color: var(--color-black);
    line-height: 0.95;
    margin: 0;
}

.carousel-controls {
    display: flex;
    gap: 0.75rem;
}

.carousel-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    background: transparent;
    border: none;
    cursor: pointer;
}

.carousel-btn svg {
    width: 2.375rem;
    height: 2.375rem;
    stroke: var(--color-black);
    fill: none;
    stroke-width: 2;
}

/* ──────────────────────────────────────
   4. PRODUCT RANGES CAROUSEL
   ────────────────────────────────────── */
.product-ranges {
    padding: 3rem 0;
    background: var(--color-bg-primary);
}

.ranges-track {
    display: flex;
    gap: 1.0625rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.ranges-track::-webkit-scrollbar {
    display: none;
}

.range-card {
    flex: 0 0 26.25rem;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
}

.range-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.6rem;
    background: #f5f5f5;
}

.range-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.range-card-info {
    padding-top: 1rem;
}

.range-card-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.08em;
    line-height: 0.95;
    color: var(--color-black);
    margin: 0 0 0.25rem 0;
}

.range-card-info .text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    margin: 0;
}

/* ──────────────────────────────────────
   DYNAMIC WOOCOMMERCE GRID (New Arrivals)
   ────────────────────────────────────── */
.product-templates {
    padding: 3rem 0rem 0rem 0rem ;
    /* Adds 80px of breathing room to the top and bottom */
    background: var(--color-bg-primary);
}

.product-templates .section-header {
    margin-bottom: 2.5rem;
    /* Pushes the title further away from the top of the cards */
}

/* ──────────────────────────────────────
   5. FEATURED GRID (Two-col promo)
   ────────────────────────────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    margin-left: var(--gutter);
    margin-right: var(--gutter);
}

.featured-block {
    position: relative;
    height: 35rem;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.featured-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-block-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    z-index: 1;
}

.featured-block-content {
    position: absolute;
    bottom: 2.5rem;
    margin-left: var(--gutter-inset);
    margin-right: var(--gutter-inset);
    z-index: 2;
}

.featured-label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
    color: var(--color-white);
}

.featured-heading {
    font-family: var(--font-display);
    font-size: 2.8125rem;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -0.07em;
    line-height: 0.85;
    margin-bottom: 0.3rem;
    margin-top: 0.4375rem;
}

.featured-desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-white);
    max-width: 21.875rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.featured-block .btn {
    margin-top: 0.65rem;
}

/* ──────────────────────────────────────
   6. FULL-WIDTH PROMO BANNER
   ────────────────────────────────────── */
.promo-banner {
    position: relative;
    background: var(--color-bg-primary);
    height: 31.25rem;
    overflow: hidden;
    margin-bottom: 0px;
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    display: block;
    text-decoration: none;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%);
    z-index: 1;
}

.promo-banner-content {
    position: absolute;
    top: 50%;
    margin-left: var(--gutter-inset);
    /* Pushes left side 40px */
    margin-right: var(--gutter-inset);
    transform: translateY(-50%);
    z-index: 2;
    max-width: 34.375rem;
}

.promo-banner-content .featured-label {
  /*  margin-bottom: 0.75rem;*/
    color: var(--color-white);
}

.promo-banner-content .featured-heading {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 0.6rem;
    margin-top: 0.4375rem;
    color: var(--color-white);
}

.promo-banner-content .featured-desc {
    font-family: var(--font-body);
    margin-bottom: 1.75rem;
    color: var(--color-white);
}

/* ──────────────────────────────────────
   7. Η ΙΣΤΟΡΙΑ ΜΑΣ SECTION (Split Layout)
   ────────────────────────────────────── */
.historia-section {
    background: var(--color-bg-primary);
    margin-top: 40px;
    margin-bottom: 40px;
}

.historia-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 32.5rem;
}

.historia-image {
    overflow: hidden;

    display: flex;
    align-items: center;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.6rem;
}

.historia-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3.75rem;
    background: var(--color-bg-primary);
}

.historia-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.historia-title {
    font-family: var(--font-display);
    color: var(--color-black) !important;
    margin-bottom: 1.5rem;
}

.historia-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #505050;
    max-width: 30rem;
}

.historia-btn {
    background: var(--color-black);
    color: var(--color-white);
    align-self: flex-start;
}

/* ──────────────────────────────────────
   8. SCROLL REVEAL ANIMATIONS
   ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ──────────────────────────────────────
   9. RESPONSIVE MEDIA QUERIES
   ────────────────────────────────────── */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-block {
        height: 26.25rem;
    }

    .range-card {
        flex: 0 0 17.5rem;
    }
}

@media (max-width: 768px) {
    
    
    .hero {
        height: 40vh;
        min-height: auto;
    }

    .hero-content {
        bottom: 3.125rem;
        max-width: none;
        left: 0;
        right: 0;
        margin-left: var(--gutter);
        margin-right: var(--gutter);
    }

    .hero-title {
        font-size: 3.625rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 0.83rem;
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.6875rem;
    }

    .featured-block {
        height: 22.5rem;
    }

    .featured-block-content {
        bottom: 1.5rem;
        left: 0;
        right: 0;
        margin-left: var(--gutter);
        margin-right: var(--gutter);
    }

    .promo-banner {
        height: 23.75rem;
    }

    .promo-banner-content {
        left: 0;
        right: 0;
        max-width: none;
        margin-left: var(--gutter);
        margin-right: var(--gutter);
    }

    .range-card {
        flex: 0 0 16.25rem;
    }

    .range-card-image {
        height: 18.75rem;
    }

    .historia-section {
        padding: 0;
    }

    .historia-split {
        grid-template-columns: 1fr;
    }

    .historia-image {
        min-height: 18.75rem;
        padding: 0 var(--gutter);
    }

    .historia-content {
        padding: 2rem var(--gutter);
    }

    .product-templates .woocommerce ul.products {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 15px;
    }

    .product-templates .woocommerce ul.products::-webkit-scrollbar {
        display: none;
    }

    .product-templates .woocommerce ul.products li.product {
        flex: 0 0 75%;
        scroll-snap-align: start;
        width: 75% !important;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn {
        flex: 1;
        min-width: 45%;
        justify-content: center;
    }

    .featured-heading {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
}


/* ──────────────────────────────────────
   FOOTER
   ────────────────────────────────────── */
.site-footer {
    padding: 2.5rem 1.4rem 0 1.4rem;

    background: var(--color-black);
}

.footer-grid {
    display: grid;
    /* ΑΛΛΑΓΗ: 1.5fr για το logo, 2fr για τη διπλή λίστα προϊόντων, 1fr για την εταιρεία */
    grid-template-columns: 1.5fr 2fr 1fr; 
    gap: 3.75rem;
    margin-bottom: 3.75rem;
}
/* Σπάει τη λίστα των προϊόντων σε 2 στήλες ΑΚΥΡΩΝΟΝΤΑΣ το flexbox */
.footer-col ul.footer-products-list {
    display: block !important; /* Ακυρώνει το display: flex */
    column-count: 2;
    column-gap: 2rem;
}

/* Σταματάει τα links από το να κόβονται και προσθέτει το κενό που χάσαμε από το flex gap */
.footer-col ul.footer-products-list li {
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: 0.5rem; /* Απόσταση ανάμεσα στα links */
}




/* --- LOGO SIZE LOCKDOWN --- */
.footer-brand>a {
    display: inline-block;
    max-width: 200px;
    /* Forces the link container to stay small */
    margin-bottom: 1.25rem;
}

.footer-brand .footer-logo {
    width: 100% !important;
    height: auto !important;
    max-height: 65px !important;
    object-fit: contain !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* -------------------------- */

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    /* 14px */
    color: var(--color-white);
    opacity: 0.7;
    line-height: 1.8;
    max-width: 20rem;
    /* 320px */
    margin-bottom: 1.5rem;
    /* 24px */
}

.footer-socials {
    display: flex;
    gap: 1rem;
    /* 16px */
}

.footer-socials a {
    width: 2.5rem;
    /* 40px */
    height: 2.5rem;
    /* 40px */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.footer-socials a:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.footer-socials svg {
    width: 1rem;
    /* 16px */
    height: 1rem;
    /* 16px */
    fill: var(--color-white);
    transition: fill 0.3s var(--ease-out);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    /* 13px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    /* 24px */
    color: var(--color-white);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* 4px */
    padding: 0;
    margin: 0;
}

.footer-col a {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s var(--ease-out);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--color-white);
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.25rem;
    /* 4px */
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    /* 12px 16px */
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 0.8125rem;
    /* 13px */
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.75rem 1.25rem;
    /* 12px 20px */
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    /* 11px */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
}

.newsletter-form button:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.75rem;
    /* 28px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.75rem;
    /* 12px */
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    /* 24px */
}

.footer-legal a {
    font-size: 0.75rem;
    /* 12px */
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

.footer-legal a:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col {
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ──────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   REUSABLE INTERNAL PAGE HERO (WITH ANIMATIONS)
   ========================================================================== */
.page-hero {
    position: relative;
    width: 100%;
    height: 75vh; 
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-top: calc(-1 * var(--header-height)) !important; 
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Cinematic Entrance Animation */
    opacity: 0;
    animation: heroImageFade 2.5s var(--ease-out) forwards;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* Keep the desktop 40px inset gutter */
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--header-height-scrolled) + 2rem) var(--gutter-inset) 2rem; 
    max-width: 45rem;
}

/* 1st to animate (Optional Label) */
.page-hero-content .historia-label {
    color: #ffffff; 
    font-weight: 700;
    margin-bottom: 0.25rem !important;
    opacity: 0;
    animation: heroTextSlideUp 1.5s var(--ease-out) forwards;
    animation-delay: 0.1s; 
}

/* 2nd to animate (Main Title) */
.page-hero-content .hero-title {
    font-size: clamp(2.5rem, 7.4vw, 5.5rem);
    margin-top: 0; 
    margin-bottom: 0 !important;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.04em;
    opacity: 0;
    animation: heroTextSlideUp 1.5s var(--ease-out) forwards;
    animation-delay: 0.3s; 
}

/* 3rd to animate (Subtitle) */
.page-hero-content .hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    margin-top: 0.5rem;
    opacity: 0;
    animation: heroTextSlideUp 1.5s var(--ease-out) forwards;
    animation-delay: 0.5s; 
}

/* ==========================================================================
   HISTORY PAGE SPECIFIC BLOCKS
   ========================================================================== */
.history-block {
    background: #ffffff;
}

.history-block-alt {
    background: #f8f8f8;
}

/* Subtle off-white for contrast */

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 30rem;
}

/* Reverses the layout for the middle block automatically */
.history-row-reverse {
    direction: rtl;
}

.history-row-reverse>* {
    direction: ltr;
}

.history-row-image {
    overflow: hidden;
    padding: var(--gutter-inset);
    /* Consistent 40px global spacing */
    display: flex;
    align-items: center;
}

.history-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.6rem;
}

.history-row-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.75rem var(--gutter-inset);
}

.history-row-text .historia-label {
    color: #888888;
    /* Can change to var(--color-accent) if you set one up */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-row-text .historia-title {
    color: #000000;
    margin-bottom: 1.25rem;
}

.history-row-text .historia-text {
    max-width: 30rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   HISTORY & REUSABLE HERO RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 768px) {
    .page-hero { height: 50vh; min-height: 22rem; }
    
    /* 1. Aligns the text with the standard mobile gutter */
    .page-hero-content {
        padding-left: var(--gutter) !important;
        padding-right: var(--gutter) !important;
    }

    /* 2. Shrinks the text and tightens the line spacing */
    .page-hero-content .hero-title {
        font-size: 2.5rem !important;
        line-height: 0.9 !important;
        margin-bottom: 0.5rem !important;
    }

    .page-hero-content .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }

    /* Standard History overrides */
    .history-row { grid-template-columns: 1fr; min-height: auto; }
    .history-row-reverse { direction: ltr; } /* Kills reverse on mobile so images are always top */
    .history-row-image { min-height: 17.5rem; padding: 1.5rem; }
    .history-row-text { padding: 0.5rem 1.5rem 2.5rem 1.5rem; }
}


/* ==========================================================================
   NEW ARCHIVE HERO STACK (Category Pages)
   ========================================================================== */

/* 1. The Master Wrapper */
.page-hero-container {
    width: 100%;
    position: relative;

    /* Pulls it up exactly 25px to lock perfectly under your 60px scrolled header */
    margin-top: 60px !important;
    margin-bottom: 20px !important;
}



/* ──────────────────────────────────────
   1. CATEGORY BANNER SECTION
   ────────────────────────────────────── */

.hero-spacer-bar {
    width: 100%;
    height: 0px;
    /* Make it 8px for a line, or 40px for a thick box—your call */
    background-color: var(--color-black);
}

.page-hero-container .page-hero-banner {
    position: relative;
    width: 100%;
    height: 45vh; 
    min-height: 5rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.page-hero-container .page-hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-container .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,  /* Dark at the very bottom edge so text is readable */
        rgba(0, 0, 0, 0) 20%,    /* Fades to completely invisible just 20% of the way up */
        rgba(0, 0, 0, 0) 100%    /* Stays completely invisible all the way to the top */
    );
    z-index: 1;
}

.page-hero-container .page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;

    /* The 40px inset aligns the title with your products */
    padding: calc(var(--header-height) + 2rem) var(--gutter-inset) 0;
    text-align: left;
}

/* Use generic title size and color rule */
.page-hero-container .page-hero-content .hero-title {
    color: #ffffff;
    /* Contrast with overlay */
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 0;

}

/* ──────────────────────────────────────
   2. MUTED BLACK BLURB SECTION
   ────────────────────────────────────── */
.page-hero-blurb {
    width: 100%;
    background-color: #000000;
    padding: 1.5rem 0;
}

.blurb-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* This 40px is what makes it line up with the Title and Grid */
    padding: 0 var(--gutter-inset);
    text-align: left;
}

.blurb-inner p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    opacity: 1 !important;
    /* Completely solid white text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ──────────────────────────────────────
   3. TAG-LIKE FILTERS & COUNTER SECTION
   ────────────────────────────────────── */
.page-hero-filters {
    width: 100%;
    padding: 0.55rem 0px;
    background-color: rgb(30, 30, 30);
}

.filters-inner {
    display: flex;
    justify-content: space-between;
    /* FIX: Pushes Counter left, Buttons right */
    align-items: center;
    /* Keeps them perfectly vertically centered */
    gap: 12px;
    flex-wrap: wrap;
}

/* Product Counter Styling */
.filter-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    /* Scaled down to match your new button sizes */
    font-weight: 800;
    color: var(--color-white);
    /* White text to pop against your dark background */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wraps the buttons so they stay together on the right */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Chunky black buttons matching your reference photo */
.filter-btn {
    font-family: var(--font-body);
    padding: 0.4rem 0.7rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    background-color: var(--color-black);
    border: 1px solid transparent;
    /* Prevents buttons from shifting when the active border appears */
    color: var(--color-white);
}

/* Hover and Active states for the buttons */
.filter-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.filter-btn.active {
    border: 1px solid #ffffff;
}

/* ==========================================================================
   HERO ENTRANCE ANIMATIONS (Slow & Cinematic)
   ========================================================================== */

/* 1. Black Background Base for the Image */
.page-hero-container .page-hero-banner {
    background-color: var(--color-black);
}

/* 2. Keyframes */
@keyframes heroImageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroTextSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Apply to Image (Slowed to 2.5 seconds) */
.page-hero-container .page-hero-banner img {
    opacity: 0;
    animation: heroImageFade 2.5s var(--ease-out) forwards;
}

/* 4. Apply to Title (Slowed to 1.5 seconds, quick 0.2s start) */
.page-hero-container .hero-title {
    opacity: 0;
    animation: heroTextSlideUp 1.5s var(--ease-out) forwards;
    animation-delay: 0.2s;
}

/* 5. Apply to the Black Blurb Description (Waits for the title) */
.page-hero-blurb .blurb-inner {
    opacity: 0;
    animation: heroTextSlideUp 1.5s var(--ease-out) forwards;
    /* 0.5s delay means it starts just as the title is settling in */
    animation-delay: 0.5s;
}

/* ──────────────────────────────────────
   HIDE DEFAULT WOOCOMMERCE TOOLS
   ────────────────────────────────────── */
/* Instantly kills the old "Showing all results" text and sorting dropdown */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* ──────────────────────────────────────
   FIXING THE PRODUCT GRID MOVEMENT
   ────────────────────────────────────── */
.woocommerce ul.products {
    /* This creates the gap between the Filter Bar (or Header) and the Products */
    margin-top: 4rem !important;
    margin-bottom: 3rem !important;
}

/* ==========================================================================
   DESKTOP / MOBILE DESCRIPTION TOGGLE
   ========================================================================== */
/* Default Desktop View: Show Desktop Text, Hide Mobile Text */
.page-hero-blurb .desktop-desc {
    display: block !important;
}

.page-hero-blurb .mobile-desc {
    display: none !important;
}

/* ==========================================================================
   CATEGORY PAGE MOBILE TWEAKS (Max Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Toggle Descriptions */
    .page-hero-blurb .desktop-desc {
        display: none !important;
    }

    .page-hero-blurb .mobile-desc {
        display: block !important;
    }

    /* 2. Shrink the Hero Image */
    .page-hero-container .page-hero-banner {
        height: 150px !important;
    }

    /* 3. Fix Alignment & Bottom Padding */
    .page-hero-container .page-hero-content {
        padding-left: var(--gutter) !important;
        padding-right: var(--gutter) !important;
    }

    .page-hero-container .page-hero-content .hero-title {
        font-size: 3.6rem;
        letter-spacing: -0.02em;
    }

    .woocommerce ul.products {
        margin-top: 2.5rem !important;
        margin-bottom: 3rem !important;
    }

    /* 5. Fix Description Box Spacing */
    .blurb-inner {
        padding-left: var(--gutter) !important;
        padding-right: var(--gutter) !important;
    }

    .page-hero-blurb {
        padding: 0.5rem 0;
    }

    .page-hero-blurb .mobile-desc,
    .page-hero-blurb .mobile-desc p {
        margin: 0 !important;
        font-family: var(--font-body) !important;
        font-weight: 400 !important;
        line-height: 1.6 !important;
        color: var(--color-white) !important;
        font-size: 0.9rem !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* 6. Center Filters, Move Counter Bottom, REDUCE Padding */
    .page-hero-filters .filters-inner {
        flex-direction: column-reverse !important;
        justify-content: center !important;
        text-align: center !important;
        padding-top: 4px;
        padding-bottom: 4px;
        gap: 15px !important;
    }

    /* Center the filter buttons */
    .filter-buttons {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   ACF EXTRA SECTIONS STYLING (POST-GRID)
   ========================================================================== */
.category-extra-sections {
    width: 100%;
    margin-top: 4rem;
}

.category-info-block {
    display: flex;
    gap: 40px;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.block-text,
.block-image {
    flex: 1;
}

.block-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
}

.block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Alternate Layout Rules: Flip the content using flex-direction */
.category-info-block.image-left {
    flex-direction: row-reverse;
}






/* ==========================================================================
   GUTENBERG PROMO BLOCKS (50/50 SPLIT - HISTORY STYLED)
   ========================================================================== */

/* The Main Container */
.promo-split-block {
    display: flex;
    align-items: center;
    min-height: 30rem;
    background: var(--color-bg-primary);
    margin: 0 auto 5rem auto !important;
}

/* Force both sides to be exactly 50% width and apply global inset padding */
.promo-split-block>.wp-block-column {
    flex: 1;
    flex-basis: 50% !important;
    margin: 0 !important;
    padding: 0 var(--gutter-inset);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image Wrapper Styling */
.promo-split-block .wp-block-image {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Match the exact History Image look */
.promo-split-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.6rem;
}

/* ---------------------------------------------------------
   TYPOGRAPHY MATCHING (Like the "1979" Screenshot)
   --------------------------------------------------------- */

/* THE SUBTITLE: Use an H6 block in Gutenberg to create the small grey text! */
.promo-split-block h6 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    /* Tiny size */
    color: #888888;
    /* Grey color */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 0.25rem;
    /* Pulled tight to the main title */
}

/* THE MAIN TITLE: Use H2 or H3 */
.promo-split-block h2,
.promo-split-block h3 {
    font-family: var(--font-display);
    color: var(--color-black) !important;
    font-size: 2.5rem;
    font-weight: 900;
    /* Extra bold */
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* THE PARAGRAPH: Pure black, regular weight */
.promo-split-block p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    /* Regular weight */
    line-height: 1.6;
    color: #000000;
    /* Changed to pure black per your request */
    max-width: 33rem;
    /* Let it breathe slightly */
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   THE FLIP CLASS (Alternating Layouts)
   --------------------------------------------------------- */
/* By default, Image Right, Text Left. Adding this reverses it! */
.promo-split-block.image-left {
    flex-direction: row-reverse;
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVENESS
   --------------------------------------------------------- */
@media (max-width: 768px) {

    .promo-split-block,
    .promo-split-block.image-left {
        min-height: auto;
        gap: 2.5rem;
        margin-bottom: 4rem !important;
    }

    .promo-split-block>.wp-block-column {
        width: 100% !important;
        padding: 0;
    }
}



/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES
   ──────────────────────────────────────────────────────────────────────────
   Paste this ENTIRE block at the END of your style.css
   Inspired by Malosi Studio, adapted to TechnoFish design system
   ========================================================================== */


/* ──────────────────────────────────────
   PRODUCT PAGE BASE
   ────────────────────────────────────── */
.tf-single-product {
    background: var(--color-bg-primary);
}

/* Override WooCommerce's default float-based layout */
.tf-single-product div.images,
.tf-single-product .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}


/* ──────────────────────────────────────
   BREADCRUMBS
   ────────────────────────────────────── */
.tf-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.tf-breadcrumb a {
    color: #888888;
    text-decoration: none;
    transition: color 0.25s var(--ease-out);
}

.tf-breadcrumb a:hover {
    color: var(--color-black);
}

.tf-bc-sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}


/* ──────────────────────────────────────
   TWO-COLUMN LAYOUT (Gallery + Summary)
   ────────────────────────────────────── */
.tf-product-columns {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 4rem;
}


/* ──────────────────────────────────────
   PRODUCT GALLERY
   ────────────────────────────────────── */
.tf-product-gallery {
    position: relative;
}

/* Sale Badge */
.tf-product-gallery .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 0;
    line-height: 1;
    min-height: auto;
    min-width: auto;
}

/* Gallery Grid: thumbnails left, main image right */
.tf-product-gallery .woocommerce-product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    /* CHANGED: Increased from 80px to 120px */
    gap: 15px;
    /* Bumping the gap slightly */
    transition: opacity 0.4s ease-in-out;
}

/* When no FlexSlider, wrapper spans full width */
.tf-product-gallery .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper {
    grid-column: 1 / -1;
}

/* Main image viewport — constrained height, image fits inside */
.tf-product-gallery .flex-viewport {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0;
    overflow: hidden;
    background: #f8f8f8;
    max-height: 550px;
}

.tf-product-gallery .flex-viewport img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
    display: block;
}

/* Thumbnail strip (vertical, left side) — fills available space */
.tf-product-gallery .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
    max-height: 550px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tf-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

/* Force WooCommerce JS to drop its inline widths */
.tf-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Thumbnails fill the full column width */
.tf-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    /* Overrides inline JS */
    height: auto !important;
    /* Overrides inline JS */
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
    opacity: 0.5;
    background: #f5f5f5;
    display: block !important;
}

.tf-product-gallery .flex-control-thumbs li img:hover {
    opacity: 0.8;
}

.tf-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--color-black) !important;
    opacity: 1;
}

/* Zoom trigger — HIDDEN (zoom disabled) */
.tf-product-gallery .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Disable zoom cursor */
.tf-product-gallery .woocommerce-product-gallery .zoomImg {
    display: none !important;
}

.tf-product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image {
    cursor: default !important;
}


/* ──────────────────────────────────────
   PRODUCT SUMMARY (Sticky Sidebar)
   ────────────────────────────────────── */
.tf-product-summary {
    position: sticky;
    top: calc(var(--header-height-scrolled) + 25px);
    align-self: start;
}

/* Category Label */
.tf-product-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    line-height: 1;
}

/* Product Title */
.tf-product-title {
    font-family: var(--font-display) !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    line-height: 0.95;
    color: var(--color-black) !important;
    margin: 0 0 0.75rem 0 !important;
}

/* Price */
.tf-product-summary .price {
    font-family: var(--font-body) !important;
    font-size: 1.4rem !important;
    font-weight: 400;
    color: var(--color-black) !important;
    margin: 0 0 1.5rem 0 !important;
    line-height: 1;
}

.tf-product-summary .price del {
    opacity: 0.35;
    font-size: 1.1rem;
}

.tf-product-summary .price ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--color-accent) !important;
}

/* Short Description */
.tf-product-summary .woocommerce-product-details__short-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eaeaea;
}

.tf-product-summary .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0 !important;
}


/* ──────────────────────────────────────
   VARIATION SELECTORS (Dropdowns)
   ────────────────────────────────────── */
.tf-product-summary .variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tf-product-summary .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.tf-product-summary .variations th.label {
    display: block;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-black);
    padding: 0 0 0.4rem 0;
}

.tf-product-summary .variations th.label label {
    font-weight: inherit;
}

.tf-product-summary .variations td.value {
    padding: 0;
}

.tf-product-summary .variations select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-black);
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out);
}

.tf-product-summary .variations select:focus {
    outline: none;
    border-color: var(--color-black);
}

.tf-product-summary .reset_variations {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #888888;
    text-decoration: underline;
    transition: color 0.2s var(--ease-out);
    display: inline-block;
    margin-top: 0.3rem;
    margin-bottom: 0.75rem;
}

.tf-product-summary .reset_variations:hover {
    color: var(--color-black);
}

/* Variation price/description/availability */
.tf-product-summary .woocommerce-variation {
    margin-bottom: 1rem;
}

.tf-product-summary .woocommerce-variation-price .price {
    font-size: 1.8rem !important;
}

.tf-product-summary .woocommerce-variation-description p {
    font-size: 0.85rem;
    color: #505050;
    margin-bottom: 0.5rem !important;
}

.tf-product-summary .woocommerce-variation-availability {
    font-size: 0.8rem;
    font-weight: 700;
}


/* ──────────────────────────────────────
   ADD TO CART FORM
   ────────────────────────────────────── */
.tf-product-summary form.cart:not(.variations_form) {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.tf-product-summary .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

/* Quantity Input */
.tf-product-summary .quantity {
    flex: 0 0 80px;
}

.tf-product-summary .quantity .qty {
    width: 100%;
    height: 100%;
    min-height: 48px;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-black);
    background: transparent;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    transition: border-color 0.25s var(--ease-out);
}

.tf-product-summary .quantity .qty:focus {
    outline: none;
    border-color: var(--color-black);
}

.tf-product-summary .quantity .qty::-webkit-inner-spin-button,
.tf-product-summary .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.tf-product-summary .single_add_to_cart_button {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    min-height: 48px;
    line-height: 1;
}

.tf-product-summary .single_add_to_cart_button:hover {
    background: var(--color-accent) !important;
}

.tf-product-summary .single_add_to_cart_button.disabled,
.tf-product-summary .single_add_to_cart_button:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* SKU */
.tf-product-sku {
    font-family: var(--font-body);
    font-size: 0.9rem;
    /* Increased font size */
    color: #505050;
    /* Made it black to stand out */
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eaeaea;
}

.tf-sku-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    /* Bolder label */
}

/* ──────────────────────────────────────
   FULL-WIDTH SECTION (Description + Specs)
   ────────────────────────────────────── */
.tf-section-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--color-black);
    margin: 0 0 1.5rem 0;
}

.tf-section-light {
    background: #f8f8f8;
    padding: 4rem 0;
}


/* ──────────────────────────────────────
   EXPANDABLE DESCRIPTION
   ────────────────────────────────────── */
.tf-desc-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.tf-desc-wrap {
    position: relative;
    max-height: 4.8em;
    /* ~3 lines of text */
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}

.tf-desc-wrap.expanded {
    max-height: 2000px;
}

.tf-desc-content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
}

.tf-desc-content p {
    margin-bottom: 1rem;
    color: inherit;
}

.tf-desc-content p:last-child {
    margin-bottom: 0;
}

/* Fade gradient at the bottom of truncated text */
.tf-desc-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0), rgba(248, 248, 248, 1));
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

.tf-desc-wrap.expanded .tf-desc-fade {
    opacity: 0;
}

/* Toggle button */
.tf-desc-toggle {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.2s var(--ease-out);
}

.tf-desc-toggle:hover {
    color: var(--color-accent);
}


/* ──────────────────────────────────────
   SPECS BLOCK
   ────────────────────────────────────── */
.tf-specs-block {
    /* Spacing from description block above */
}


/* ──────────────────────────────────────
   STATIC ATTRIBUTES TABLE (non-variation)
   ────────────────────────────────────── */
.tf-static-attrs {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    margin-bottom: 2rem;
    table-layout: fixed;
}

.tf-static-attrs th {
    width: 200px;
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.75rem 1.1rem;
    /* Moved padding back to cells */
    text-align: left;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    vertical-align: middle;
}

.tf-static-attrs td {
    padding: 0.75rem 1.1rem;
    /* Moved padding back to cells */
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.875rem;
    color: var(--color-black);
    font-weight: 500;
    vertical-align: middle;
}

.tf-static-attrs td p {
    margin: 0 !important;
}


/* ──────────────────────────────────────
   VVT TABLE STYLES (Vertical Variations Table)
   ────────────────────────────────────── */
.variations-vertical-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.875rem;
    margin: 0;
    table-layout: auto !important;
    /* Enforces strict alignment */
}

/* Header Row & Body Cells — TIGHT PADDING & ALIGNMENT */
.variations-vertical-table thead th,
.variations-vertical-table tbody td {
    display: table-cell !important;
    width: auto !important;
}

.variations-vertical-table thead th {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.4rem 0.75rem !important;
    /* CHANGED: Shrunk padding */
    text-align: left !important;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
    vertical-align: middle;
}

.variations-vertical-table tbody td {
    padding: 0rem 0.75rem !important;
    /* CHANGED: Shrunk padding */
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    color: var(--color-black);
    font-weight: 500;
    text-align: left !important;
}

/* Zebra Striping */
.variations-vertical-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.variations-vertical-table tbody tr:nth-child(odd) {
    background: #f8f8f8;
}

/* Hover */
.variations-vertical-table tbody tr {
    transition: background-color 0.2s var(--ease-out);
}

.variations-vertical-table tbody tr:hover {
    background: #eef2f7;
}

/* Code stays left-aligned to match the other specs */
.variations-vertical-table .vvt-code,
.variations-vertical-table .vvt-code-header {
    white-space: nowrap;
    text-align: left !important;
}

/* Price snaps to the right to anchor the table and remove the gap */
.variations-vertical-table .vvt-price,
.variations-vertical-table .vvt-price-header {
    white-space: nowrap;
    text-align: right !important;
}

.variations-vertical-table .vvt-price {
    font-weight: 600;
}

/* Default WooCommerce attributes table (non-variable products) */
.tf-specs-content .shop_attributes:not(.variations-vertical-table):not(.tf-static-attrs) {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    table-layout: fixed;
}

.tf-specs-content .shop_attributes:not(.variations-vertical-table):not(.tf-static-attrs) th {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    text-align: left !important;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 200px;
}

.tf-specs-content .shop_attributes:not(.variations-vertical-table):not(.tf-static-attrs) td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.875rem;
    text-align: left !important;
}

.tf-specs-content .shop_attributes:not(.variations-vertical-table):not(.tf-static-attrs) td p {
    margin: 0 !important;
}

/* ──────────────────────────────────────
   MOBILE HORIZONTAL SCROLL ENFORCEMENT
   ────────────────────────────────────── */
@media (max-width: 768px) {
    .tf-specs-content {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .variations-vertical-table {
        min-width: 600px !important;
        /* Forces horizontal scrolling instead of shrinking */
    }
}

/* ──────────────────────────────────────
   RELATED PRODUCTS CAROUSEL
   (uses WooCommerce standard product loop — matches archive cards)
   ────────────────────────────────────── */
.tf-related-section {
    padding: 4rem 0;
    background: var(--color-bg-primary);
}

/* Override the grid and make it a horizontal scroll track */
.tf-related-carousel-wrap ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.1rem;
    padding-bottom: 0.5rem;
    margin: 0 !important;
    /* Kill any WooCommerce grid override */
    grid-template-columns: none !important;
}

.tf-related-carousel-wrap ul.products::-webkit-scrollbar {
    display: none;
}

/* Cards: fixed width for carousel, snap points */
.tf-related-carousel-wrap ul.products li.product {
    flex: 0 0 280px !important;
    min-width: 280px;
    max-width: 280px;
    width: 280px !important;
    scroll-snap-align: start;
    margin: 0 !important;
    float: none !important;
}


/* ──────────────────────────────────────
   STICKY ADD TO CART BAR
   ────────────────────────────────────── */
.tf-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    padding: 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-sticky-bar.visible {
    transform: translateY(0);
}

.tf-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-sticky-bar-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.tf-sticky-bar-thumb {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
    flex-shrink: 0;
    padding: 3px;
}

.tf-sticky-bar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.tf-sticky-bar-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.tf-sticky-bar-price {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.tf-sticky-bar-price del {
    opacity: 0.5;
}

.tf-sticky-bar-price ins {
    text-decoration: none;
}

.tf-sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tf-sticky-qty input {
    width: 60px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0;
    transition: border-color 0.3s var(--ease-out);
}

.tf-sticky-qty input:focus {
    outline: none;
    border-color: var(--color-white);
}

/* Fix for mobile */
@media (max-width: 768px) {
    .tf-sticky-qty input {
        width: 50px;
        height: 38px;
    }
}

.tf-sticky-bar-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.75rem;
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    line-height: 1;
}

.tf-sticky-bar-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ──────────────────────────────────────
   WOOCOMMERCE NOTICES (Floating Toast Notification)
   ────────────────────────────────────── */

/* The Wrapper that holds the toast */
.woocommerce-notices-wrapper {
    position: fixed;
    top: 120px;
    /* Drops it safely below your sticky header */
    right: 30px;
    /* Pins it to the top right */
    z-index: 999999;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
    /* Lets clicks pass through if empty */
}

/* The Notice Box */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    pointer-events: auto;
    background: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 2px solid var(--color-black) !important;
    border-radius: 0 !important;
    padding: 1rem 1.25rem !important;
    font-family: var(--font-body);
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    margin: 0 0 10px 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;

    /* PREMIUM ANIMATION STARTING POINT */
    transform: translateX(40px);
    /* A subtle 40px slide instead of the whole screen */
    opacity: 0;
    /* High-end smooth easing curve, no bouncing */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease-out !important;
}

/* THE PREMIUM SLIDE-IN TRIGGER */
.woocommerce-message.show-toast,
.woocommerce-info.show-toast,
.woocommerce-error.show-toast {
    transform: translateX(0);
    opacity: 1;
}

/* Strip hidden margins from WooCommerce's injected text tags */
.woocommerce-message *,
.woocommerce-info *,
.woocommerce-error * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Error styling */
.woocommerce-error {
    border-color: var(--color-accent) !important;
}

/* Hide WooCommerce checkmark */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* The Button */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 0.75rem 1.2rem !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    /* Forbids the button text from stacking */
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0 !important;
    /* Protects the button from being squished by long text */
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
    background: var(--color-accent) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .woocommerce-notices-wrapper {
        top: 80px;
        /* Tighter to the header on phones */
        right: 0;
        left: 0;
        padding: 0 15px;
        /* Adds edge breathing room */
        max-width: 100%;
    }

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        transform: translateY(-20px);
        /* Glides down slightly from the top on mobile */
    }

    .woocommerce-message.show-toast,
    .woocommerce-info.show-toast,
    .woocommerce-error.show-toast {
        transform: translateY(0);
    }
}


/* ==========================================================================
   MOBILE RESPONSIVE — SINGLE PRODUCT
   ========================================================================== */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .tf-product-columns {
        gap: 2.5rem;
    }

    .tf-product-title {
        font-size: 2rem !important;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

    /* Stack columns vertically */
    .tf-product-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

    /* Kill sticky on mobile */
    .tf-product-summary {
        position: static;
    }

    /* Gallery: thumbnails below main image, horizontal scroll */
    .tf-product-gallery .woocommerce-product-gallery {
        grid-template-columns: 1fr;
    }

    .tf-product-gallery .flex-viewport {
        grid-column: 1;
        grid-row: 1;
        max-height: 400px;
    }

    .tf-product-gallery .flex-viewport img {
        max-height: 400px;
    }

    /* Gallery: horizontal scroll on mobile */
    .tf-product-gallery .flex-control-thumbs {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row !important;
        /* Forces horizontal */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        gap: 10px !important;
    }

    .tf-product-gallery .flex-control-thumbs li {
        width: 80px !important;
        margin-bottom: 0 !important;
        /* Overrides desktop vertical margin */
        flex-shrink: 0;
    }

    /* ── RESTORE NORMAL TABLE ON MOBILE (Horizontal Scroll) ── */
    .tf-specs-content {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }


    /* Short description */
    .tf-product-summary .woocommerce-product-details__short-description {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    /* Add to cart button full width on mobile */
    .tf-product-summary form.cart:not(.variations_form) {
        flex-direction: column;
    }

    .tf-product-summary .woocommerce-variation-add-to-cart {
        flex-direction: column;
    }

    .tf-product-summary .quantity {
        flex: none;
        width: 100%;
    }

    .tf-product-summary .quantity .qty {
        min-height: 44px;
    }

    .tf-product-summary .single_add_to_cart_button {
        min-height: 48px;
    }

    /* Full-width sections: reduce padding */
    .tf-section-light {
        padding: 3rem 0;
    }

    .tf-section-heading {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .tf-desc-block {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    /* ── VVT TABLE: Squished to Fit Mobile Screen ── */
    .tf-specs-content {
        width: 100%;
        overflow-x: hidden !important;
        /* Turns off the horizontal scroll */
        padding-bottom: 0.5rem;
    }

    /* Allow the table to naturally squish into the phone screen */
    .variations-vertical-table {
        display: table !important;
        min-width: 100% !important;
        /* CHANGED: Removed the 600px lock */
        width: 100% !important;
        font-size: 0.75rem !important;
        /* Slightly smaller font for mobile */
    }

    .variations-vertical-table thead {
        display: table-header-group !important;
    }

    /* Tighten Header Padding & Allow text to wrap if needed */
    .variations-vertical-table thead th {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.6rem !important;
        white-space: normal !important;
    }

    .variations-vertical-table tbody {
        display: table-row-group !important;
    }

    .variations-vertical-table thead tr,
    .variations-vertical-table tbody tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

    /* Tighten Cell Padding for Mobile */
    .variations-vertical-table tbody td {
        display: table-cell !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 0.4rem 0.4rem !important;
    }

    /* Hide the fake mobile labels */
    .variations-vertical-table tbody td::before {
        display: none !important;
    }

    /* Static attrs mobile */
    .tf-static-attrs th {
        width: auto;
    }

    /* Related Products */
    .tf-related-section {
        padding: 3rem 0;
    }

    .tf-related-carousel-wrap ul.products li.product {
        flex: 0 0 230px !important;
        min-width: 230px;
        max-width: 230px;
        width: 230px !important;
    }

    /* Sticky bar mobile */
    .tf-sticky-bar-thumb {
        display: none;
    }

    .tf-sticky-bar-title {
        font-size: 0.75rem;
    }

    .tf-sticky-bar-price {
        font-size: 0.7rem;
    }

    .tf-sticky-bar-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.7rem;
    }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
    .tf-product-title {
        font-size: 1.5rem !important;
    }

    .tf-product-summary .price {
        font-size: 1.2rem !important;
    }

    .tf-related-carousel-wrap ul.products li.product {
        flex: 0 0 200px !important;
        min-width: 200px;
        max-width: 200px;
        width: 200px !important;
    }
}

/* ==========================================================================
   GALLERY THUMBNAIL ARROWS (Bigger, perfectly aligned)
   ========================================================================== */

/* 1. Hide the scrollbar */
.tf-product-gallery .flex-control-thumbs {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.tf-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none !important;
}

/* 2. Style the oversized custom Navigation Arrows */
.tf-thumb-arrow {
    position: absolute;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 50px;
    /* Bigger invisible click target */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.tf-thumb-arrow svg {
    width: 40px;
    /* CHANGED: Much larger visual arrows */
    height: 40px;
    stroke: var(--color-black);
    fill: none;
    stroke-width: 1.5;
    /* Kept thin so they look sharp, not bulky */
    transition: all 0.25s var(--ease-out);
}

.tf-thumb-arrow:hover svg {
    stroke: var(--color-accent);
    transform: scale(1.15);
}

/* 3. Desktop Positioning */
.tf-thumb-prev {
    top: -24px;
    left: 36px;
    /* Centered over 120px thumbs (120/2 - 50/2) */
}

.tf-thumb-next {
    bottom: -24px;
    left: 36px;
}

/* 4. Mobile Positioning */
@media (max-width: 768px) {
    .tf-product-gallery .flex-control-thumbs {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        flex-wrap: nowrap !important;
    }

    .tf-thumb-prev,
    .tf-thumb-next {
        top: auto;
        /* Matches exactly half the height of your mobile thumbnails (80px / 2) */
        bottom: 40px;
        transform: translateY(50%) rotate(-90deg);
    }

    .tf-thumb-prev:hover svg,
    .tf-thumb-next:hover svg {
        transform: scale(1.15);
    }

    .tf-thumb-prev {
        left: -15px;
    }

    .tf-thumb-next {
        left: auto;
        right: -15px;
    }
}


/* ==========================================================================
   404 ERROR PAGE (B2B Premium Style)
   ========================================================================== */

/* Change the wrapper name and shrink the height so the carousel peeks above the fold */
.tf-404-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    /* Shorter height pushes the carousel into view */
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
}


/* Keep the rest of your 404 CSS exactly the same below this line */
.tf-404-content {
    ...
}

/* Massive, editorial-style 404 text */
.tf-404-title {
    font-family: var(--font-heading, inherit);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-black);
    margin: 0 0 0.5rem 0;
    letter-spacing: -4px;
}

.tf-404-subtitle {
    font-family: var(--font-heading, inherit);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
    margin: 0 0 1rem 0;
}

.tf-404-text {
    font-family: var(--font-body, inherit);
    font-size: 1.1rem;
    color: #666666;
    margin: 0 0 2rem 0;
}

/* Matches your WooCommerce Add to Cart buttons exactly */
.tf-404-btn {
    display: inline-block;
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body, inherit) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: all 0.3s var(--ease-out, ease) !important;
}

.tf-404-btn:hover {
    background: #505050 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .tf-404-title {
        font-size: 7rem;
    }

    .tf-404-subtitle {
        font-size: 1.25rem;
    }

    .tf-404-btn {
        width: 100%;
        /* Full width button on phones */
    }
}

/* ==========================================================================
   INDEX / ROUTING PAGE (B2B Premium Style)
   ========================================================================== */

.tf-routing-page {
    min-height: 65vh;
    /* Centers the grid vertically on the screen */
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.tf-routing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tf-route-card {
    background: var(--color-white);
    border: 2px solid var(--color-black);
    /* Thick B2B border */
    padding: 4rem 2rem;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.35s var(--ease-out, ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Hover State: Inverts to pitch black */
.tf-route-card:hover {
    background: var(--color-black);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tf-route-icon {
    margin-bottom: 1.5rem;
}

.tf-route-icon svg {
    width: 56px;
    height: 56px;
    stroke: var(--color-black);
    transition: stroke 0.35s var(--ease-out, ease);
}

.tf-route-title {
    /* THE FIX: Added strict sans-serif fallbacks and !important */
    font-family: var(--font-heading, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-black);
    margin: 0 0 1rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.35s var(--ease-out, ease);
}

.tf-route-desc {
    /* THE FIX: Added strict sans-serif fallbacks and !important */
    font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    transition: color 0.35s var(--ease-out, ease);
}

/* Update text and icon colors on hover */
.tf-route-card:hover .tf-route-icon svg {
    stroke: #ffffff;
    /* Accent color icon */
}

.tf-route-card:hover .tf-route-title,
.tf-route-card:hover .tf-route-desc {
    color: var(--color-white);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .tf-routing-page {
        padding: 2rem 0;
        min-height: auto;
    }

    .tf-routing-grid {
        grid-template-columns: 1fr;
        /* Stacks the cards vertically on phones */
        gap: 1.5rem;
    }

    .tf-route-card {
        padding: 3rem 1.5rem;
    }
}




/* ==========================================================================
   WOOCOMMERCE CART PAGE (Optimized & Clean Cascade)
   ========================================================================== */

/* 1. Global Typography & Sticky Safeguards */
.woocommerce-cart .woocommerce,
.woocommerce-cart table,
.woocommerce-cart input,
.woocommerce-cart button,
.woocommerce-cart h2 {
    font-family: var(--font-body, 'Source Sans 3', sans-serif);
    color: var(--color-black);
}

.site-main,
.page-content,
.tf-regular-page .container {
    overflow: visible;
}

/* 2. Flex Layout & Sticky Sidebar */
.woocommerce-cart div.woocommerce {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    /* Critical to allow sticky */
}

.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 65%;
}

.woocommerce-cart .cart-collaterals {
    flex: 1 1 30%;
    margin-top: 0;
    position: sticky;
    top: calc(var(--header-height-scrolled) + 30px);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - var(--header-height-scrolled) - 20px);
    overflow-y: auto;
    scrollbar-width: none;
}

.woocommerce-cart .cart-collaterals::-webkit-scrollbar {
    display: none;
}

/* 3. Main Cart Table Structure */
.woocommerce-cart table.shop_table {
    border: none;
    border-bottom: 3px solid var(--color-black);
    border-collapse: collapse;
    border-radius: 0;
    width: 100%;
    margin-bottom: 2rem;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 0px;
    vertical-align: middle;
}

.woocommerce-cart table.shop_table thead th {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-display, 'Source Sans 3', sans-serif);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Table Elements */
.woocommerce-cart table.shop_table td.product-thumbnail {
    width: 140px;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 110px;
    height: auto;
    max-width: none;
    border-radius: 4px;
}

.woocommerce-cart table.shop_table td.product-name a {
    font-family: var(--font-display, 'Source Sans 3', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-black);
    line-height: 1.4;
    padding-left: 10px;
    display: inline-block;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
    color: var(--color-accent);
}

.woocommerce-cart table.shop_table a.remove {
    color: #cccccc;
    font-size: 1.4rem;
    font-weight: 300;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.woocommerce-cart table.shop_table a.remove:hover {
    color: var(--color-black);
}

/* 4. Cart Totals Box */
.woocommerce-cart .cart-collaterals .cart_totals {
    order: 1;
    border: 2px solid var(--color-black);
    padding: 1.25rem 1.5rem;
    padding-bottom: 0rem;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-family: var(--font-display, 'Source Sans 3', sans-serif);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    margin: 0 0 12px 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table th {
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
}

.woocommerce-cart .cart-collaterals .cart_totals table td {
    text-align: right;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 0.75rem 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th,
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td {
    font-size: 1.15rem;
    font-weight: 900;
    border-bottom: none;
    padding-top: 1rem;
}

/* Shipping Links & Dropdowns */
.woocommerce-cart .cart-collaterals .shipping-calculator-button {
    color: #888888;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.woocommerce-cart .cart-collaterals .shipping-calculator-button::after {
    content: " ↓";
    font-family: sans-serif;
}

.woocommerce-cart .cart-collaterals .shipping-calculator-button:hover {
    color: var(--color-black);
}

/* Kept !important here because Woo injects SVG icons via JS */
.woocommerce-cart .cart-collaterals .shipping-calculator-button .dashicons,
.woocommerce-cart .cart-collaterals .shipping-calculator-button i,
.woocommerce-cart .cart-collaterals .shipping-calculator-button svg {
    display: none !important;
}

.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination {
    color: var(--color-black);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Global Buttons & Hover Overrides */
.woocommerce-cart a.checkout-button,
.tf-empty-cart-btn {
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce-cart a.checkout-button {
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 0;
    padding: 15px 20px;
    width: 100%;
    border: none;
    margin-top: 15px;
    margin-bottom: 0em;
}

.tf-empty-cart-btn {
    background: transparent;
    color: #888888;
    border: 2px solid #e5e5e5;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body, "Helvetica Neue", Helvetica, sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    display: inline-block;
}

.woocommerce-cart a.checkout-button:hover {
    background-color: #333333;
}

.tf-empty-cart-btn:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}

/* 5. Cross-Sells Mini-List */
.woocommerce-cart .cart-collaterals .cross-sells {
    order: 2;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
}

.woocommerce-cart .cart-collaterals .cross-sells h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-black);
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    border: 1px solid #e5e5e5;
    background: transparent;
    min-height: auto;
    height: auto;
    transition: border-color 0.2s ease;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product:hover {
    border-color: var(--color-black);
    transform: none;
    box-shadow: none;
}

.woocommerce-cart .cart-collaterals .cross-sells li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: 100%;
    justify-content: flex-start;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 2px;
    opacity: 1;
    animation: none;
}

.woocommerce-cart .cart-collaterals .cross-sells li.product .woocommerce-loop-product__title {
    font-family: var(--font-body, "Helvetica Neue", Helvetica, sans-serif);
    font-size: 0.75rem;
    font-weight: 800;
    margin: 0 0 2px 0;
    padding: 0;
    color: var(--color-black);
    text-transform: uppercase;
    line-height: 1.2;
}

.woocommerce-cart .cart-collaterals .cross-sells li.product .price {
    font-family: var(--font-body, "Helvetica Neue", Helvetica, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: var(--color-black);
}

/* Kept !important to stop WooCommerce core loop CSS from randomly revealing buttons */
.woocommerce-cart .cart-collaterals .cross-sells li.product .technofish-loop-category,
.woocommerce-cart .cart-collaterals .cross-sells li.product .button,
.woocommerce-cart .cart-collaterals .cross-sells li.product .add_to_cart_button {
    display: none !important;
}

/* 6. Clean-up & Mobile Fallbacks */
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .coupon {
    display: none !important;
}

@media (max-width: 768px) {
    .woocommerce-cart div.woocommerce {
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        width: 100%;
    }

    .woocommerce-cart .cart-collaterals {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }
}

/* ==========================================================================
   CART PAGE: FINAL POLISH & OVERRIDES
   ========================================================================== */

/* 1. Move "ΠΡΟΪΟΝ" to the absolute far left of the black header bar */
.woocommerce-cart table.shop_table thead th.product-name {
    color: transparent !important;
    /* Hides original text but keeps screen-reader structure */
}

.woocommerce-cart table.shop_table thead th.product-remove {
    position: relative !important;
}

.woocommerce-cart table.shop_table thead th.product-remove::after {
    content: "ΠΡΟΪΟΝ";
    position: absolute;
    left: 15px;
    /* Matches your table padding */
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white) !important;
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

/* 2. Kill the Red Crosses (WooCommerce core uses !important, so we MUST too) */
.woocommerce-cart table.shop_table a.remove {
    color: #cccccc !important;
    /* Light grey */
    font-size: 1.4rem !important;
    font-weight: 300 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.woocommerce-cart table.shop_table a.remove:hover {
    color: var(--color-black) !important;
    background: transparent !important;
}

/* 3. Force Checkout Button Styles (Overpowers WooCommerce Core) */
.woocommerce-cart .cart-collaterals .checkout-button {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    width: 100% !important;
    border: none !important;
    margin-top: 15px !important;
    display: block !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce-cart .cart-collaterals .checkout-button:hover {
    background-color: #333333 !important;
    /* Graphite Grey Hover */
}


/* ==========================================================================
   REMOVE MASSIVE GAPS FROM UPSELLS & RELATED PRODUCTS
   ========================================================================== */

.woocommerce .up-sells ul.products,
.woocommerce .related ul.products,
.woocommerce-cart .cross-sells ul.products {
    margin-top: 1.5rem !important;
    /* Normal, tight spacing */
    margin-bottom: 0 !important;
}

/* Optional: Tighten the gap between the "You may also like" title and the products */
.woocommerce .up-sells h2,
.woocommerce .related h2 {
    margin-bottom: 0 !important;
}


/* ==========================================================================
   WOOCOMMERCE GUTENBERG CHECKOUT BLOCK (B2B Styling)
   ========================================================================== */

/* 1. Global Typography */
.wc-block-checkout {
    font-family: var(--font-body, 'Source Sans 3', sans-serif);
    margin-top: 2rem;
}

/* 2. Section Headings (Contact, Shipping, Billing) */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-panel__button {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

/* Hide WooCommerce's default step numbers to keep it clean */
.wc-block-checkout .wc-block-components-title .wc-block-components-title__step-indicator {
    display: none !important;
}

/* 3. Form Inputs (Sharp Edges, High Contrast) */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox-control input,
.wc-block-checkout .wc-block-components-checkbox input[type="checkbox"] {
    border: 2px solid #e5e5e5 !important;
    border-radius: 0 !important;
    /* Removes default rounded corners */
    background-color: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
}

/* Active/Focus State for Inputs */
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-combobox-control input:focus {
    border-color: var(--color-black) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 4. The Right Column (Order Summary Sidebar) */
.wc-block-checkout .wc-block-components-sidebar {
    border-radius: 0 !important;
    background: #ffffff !important;
}

.wc-block-checkout .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__value {
    color: var(--color-black);
}

/* 5. Master "Place Order" Button */
.wc-block-checkout .wc-block-components-checkout-place-order-button {
    background-color: var(--color-black) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 18px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
    border: none !important;
    width: 100%;
    transition: background-color 0.3s ease !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    background-color: #333333 !important;
}

/* 6. Payment Method Container */
.wc-block-checkout .wc-block-components-checkout-step--payment {
    background: transparent !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   GUTENBERG CHECKOUT B2B PATCHES (Gap, Double Border, Shipping)
   ========================================================================== */

/* 1. Fix the Giant Top Gap */
.wp-block-woocommerce-checkout {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.wc-block-checkout {
    margin-top: 0 !important;
}

.woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Removes Gutenberg's inner padding so it sits flush inside our black border */
.wc-block-components-sidebar .wc-block-components-panel__content {
    padding: 0 !important;
}

/* 3. Hide "Δωρεάν" (Free) and Replace with B2B Shipping Text */
/* Hides the price/badge next to the radio buttons */
.wc-block-components-shipping-rates-control .wc-block-components-badge,
.wc-block-components-shipping-rates-control .wc-block-formatted-money-amount {
    display: none !important;
}

/* ==========================================================================
   GUTENBERG CHECKOUT SHIPPING FIX (Unicode Safe)
   ========================================================================== */

/* Hides the original "Δωρεάν" text */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
    font-size: 0 !important;
    color: transparent !important;
}

/* Injects "Χρέωση Παραλήπτη" using safe Unicode escapes */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value::after {
    /* This translates exactly to: Χρέωση Παραλήπτη */
    content: "\03a7\03c1\03ad\03c9\03c3\03b7\0020\03a0\03b1\03c1\03b1\03bb\03ae\03c0\03c4\03b7" !important;
    font-size: 0.95rem !important;
    color: var(--color-black) !important;
    display: block;
    font-weight: 700;
}

/* 2. Hide the "ΔΩΡΕΑΝ" secondary label on the Shipping Radio Button */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
    display: none !important;
}


/* ==========================================================================
   CLASSIC WOOCOMMERCE ORDER RECEIVED (Thank You Page)
   ========================================================================== */

/* 1. Main Container & Typography */
.woocommerce-order {
    font-family: var(--font-body, 'Source Sans 3', sans-serif);
    color: var(--color-black);
    margin-top: 2rem;
}

/* 2. The Success Message (Thank you. Your order has been received.) */
.woocommerce-notice--success {
    border: 3px solid var(--color-black) !important;
    background: #f9f9f9 !important;
    padding: 30px !important;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem !important;
}

/* 3. The Order Info Bar (Order Number, Date, Total, Method) */
ul.woocommerce-order-overview {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 3rem 0 !important;
    border: 2px solid var(--color-black);
}

ul.woocommerce-order-overview li {
    flex: 1;
    min-width: 150px;
    padding: 20px !important;
    border-right: 1px solid #e5e5e5;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

ul.woocommerce-order-overview li:last-child {
    border-right: none;
}

ul.woocommerce-order-overview li strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    margin-top: 5px;
    color: var(--color-black);
}

/* 4. Order Details Table */
section.woocommerce-order-details {
    margin-bottom: 3rem;
}

.woocommerce-order-details__title {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

table.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
}



table.woocommerce-table--order-details tfoot th {
    text-align: left;
    font-weight: 700;
}

table.woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 900;
}

/* 5. Address Section (Billing & Shipping) */
section.woocommerce-customer-details {
    display: flex;
    gap: 30px;
}

section.woocommerce-customer-details .woocommerce-column {
    flex: 1;
    padding: 25px;
}

.woocommerce-column__title {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    margin-bottom: 15px !important;
}

address {
    font-style: normal;
    line-height: 1.6;
}


/* 6. Product Links & Price Column Alignment */

/* Override the default blue link color for products */
table.woocommerce-table--order-details td.woocommerce-table__product-name a {
    color: var(--color-black) !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

table.woocommerce-table--order-details td.woocommerce-table__product-name a:hover {
    opacity: 0.6;
    /* Adds a nice fade effect when hovering */
}

/* Force the entire last column (Headers and Product Prices) to align right */
table.woocommerce-table--order-details thead th:last-child,
table.woocommerce-table--order-details tbody td:last-child {
    text-align: right !important;
}














/* ==========================================================================
   MY ACCOUNT & LOGIN (Failsafe B2B Layout)
   ========================================================================== */

/* --- 1. LOGIN / REGISTER GRID --- */
#customer_login {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-top: 2rem !important;
}

#customer_login form.login,
#customer_login form.register {
    border: 2px solid var(--color-black) !important;
    padding: 40px !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

#customer_login h2 {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    border-bottom: 2px solid var(--color-black) !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* Master Form Buttons */
#customer_login button[type="submit"] {
    background-color: var(--color-black) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    margin-top: 15px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

#customer_login button[type="submit"]:hover {
    background-color: #333333 !important;
}


/* --- 2. MY ACCOUNT DASHBOARD --- */
@media (min-width: 769px) {
    .woocommerce-MyAccount-navigation {
        float: left !important;
        width: 25% !important;
    }

    .woocommerce-MyAccount-content {
        float: right !important;
        width: 72% !important;
        /* Leaves a 3% gap in the middle */
    }

    /* Clearfix so the footer doesn't overlap the floated elements */
    .woocommerce::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Navigation Menu Blocks */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid var(--color-black) !important;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--color-black) !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 15px 20px !important;
    color: var(--color-black) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-black) !important;
    color: #ffffff !important;
}

/* Dashboard Tables (Orders, Addresses) */
.woocommerce-MyAccount-content table.shop_table {
    border: 2px solid var(--color-black) !important;
    border-radius: 0 !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: transparent !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    border-bottom: 2px solid var(--color-black) !important;
    padding: 15px !important;
}

.woocommerce-MyAccount-content table.shop_table td {
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 15px !important;
}

/* Ghost Buttons (View Order, etc.) */
.woocommerce-MyAccount-content .button {
    background: transparent !important;
    color: var(--color-black) !important;
    border: 2px solid var(--color-black) !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-MyAccount-content .button:hover {
    background: var(--color-black) !important;
    color: #ffffff !important;
}

/* Address Boxes */
.woocommerce-MyAccount-content address {
    border: 2px solid #e5e5e5 !important;
    padding: 20px !important;
    font-style: normal !important;
    line-height: 1.6 !important;
}

/* --- 3. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    #customer_login {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .woocommerce-MyAccount-navigation {
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .woocommerce-MyAccount-content {
        width: 100% !important;
    }
}

/* ==========================================================================
   MY ACCOUNT CONTENT STYLING (Typography, Links, & Forms)
   ========================================================================== */

/* 1. Global Typography for the Content Area */
.woocommerce-MyAccount-content {
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    color: var(--color-black) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* 2. Kill the Blue Links */
.woocommerce-MyAccount-content a {
    color: var(--color-black) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-bottom: 2px solid var(--color-black);
    /* B2B style underline */
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: #666 !important;
    border-color: #666 !important;
}

/* 3. Style the Account Details Form */
.woocommerce-MyAccount-content form {
    border: 2px solid var(--color-black) !important;
    padding: 30px !important;
    background: #ffffff !important;
}

/* Form Legends (Password Change Header, etc.) */
.woocommerce-MyAccount-content form legend {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid var(--color-black) !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    width: 100% !important;
    display: block !important;
}

/* Form Inputs */
.woocommerce-MyAccount-content form .input-text,
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="email"] {
    border: 2px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    width: 100% !important;
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    transition: border-color 0.3s ease !important;
}

.woocommerce-MyAccount-content form .input-text:focus,
.woocommerce-MyAccount-content form input[type="password"]:focus,
.woocommerce-MyAccount-content form input[type="email"]:focus {
    border-color: var(--color-black) !important;
    outline: none !important;
}

/* Save Changes Button */
.woocommerce-MyAccount-content form button[type="submit"] {
    background-color: var(--color-black) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    margin-top: 20px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce-MyAccount-content form button[type="submit"]:hover {
    background-color: #333333 !important;
}


/* ==========================================================================
   LOGIN & REGISTER FORMS (Logged-Out View)
   ========================================================================== */

/* 1. Master Form Styling & Typography */
.woocommerce form.login,
.woocommerce form.register {
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    color: var(--color-black) !important;
    border: 2px solid var(--color-black) !important;
    padding: 40px !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}

/* 2. Form Headings (Είσοδος / Εγγραφή) */
.woocommerce form.login h2,
.woocommerce form.register h2 {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid var(--color-black) !important;
    padding-bottom: 10px !important;
    margin-bottom: 25px !important;
}

/* 3. Input Labels */
.woocommerce form.login label,
.woocommerce form.register label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

/* 4. Input Fields */
.woocommerce form.login .input-text,
.woocommerce form.register .input-text {
    border: 2px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    width: 100% !important;
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    transition: border-color 0.3s ease !important;
    margin-bottom: 15px !important;
}

.woocommerce form.login .input-text:focus,
.woocommerce form.register .input-text:focus {
    border-color: var(--color-black) !important;
    outline: none !important;
}

/* 5. The "Login" Button */
.woocommerce form.login button[type="submit"],
.woocommerce form.register button[type="submit"] {
    background-color: var(--color-black) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    margin-top: 15px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce form.login button[type="submit"]:hover,
.woocommerce form.register button[type="submit"]:hover {
    background-color: #333333 !important;
}

/* 6. Kill the Blue Links (Lost Password) */
.woocommerce form.login a,
.woocommerce form.register a {
    color: var(--color-black) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-bottom: 2px solid var(--color-black) !important;
    padding-bottom: 2px !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    margin-top: 15px !important;
}

.woocommerce form.login a:hover,
.woocommerce form.register a:hover {
    color: #666 !important;
    border-color: #666 !important;
}

/* 7. Centering Layout for Single Form (If Registration is Disabled) */
.woocommerce-account .woocommerce>form.login {
    max-width: 500px !important;
    margin: 40px auto !important;
}

/* ==========================================================================
   CONTACT PAGE (No Form - 50/50 Split)
   ========================================================================== */

.tf-contact-section {
    padding: 6rem 0;
}

.tf-contact-grid-no-form {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Map is slightly wider than text */
    gap: 5rem;
    align-items: stretch; /* Forces both columns to be the same height */
}

/* Headings */
.tf-contact-heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--color-black);
    border-bottom: 3px solid var(--color-black);
    padding-bottom: 1rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

/* Left Column: Info Boxes */
.tf-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tf-info-box {
    border-left: 3px solid var(--color-black);
    padding-left: 1.5rem;
}

.tf-info-box h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888888; /* Muted grey for subheadings */
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.tf-info-box p, 
.tf-info-box a {
    font-family: var(--font-body);
    font-size: 1.15rem; /* Slightly larger text since there is no form */
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tf-info-box a:hover {
    color: var(--color-accent);
}

/* Right Column: Large Map */
.tf-contact-map-large {
    width: 100%;
    min-height: 450px; /* Ensures a good height even if text is short */
    border: 2px solid var(--color-black);
    background: #f5f5f5;
    padding: 0;
    display: block;
    border-radius: 0;
}

.tf-contact-map-large iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .tf-contact-grid-no-form {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .tf-contact-map-large {
        height: 400px;
    }
}
/* ==========================================================================
   MOBILE FIXES: HERO TYPOGRAPHY/GUTTERS & CONTACT PAGE PADDING
   ========================================================================== */
@media (max-width: 768px) {
    
    
    
     /* ==========================================================
       MOBILE-ONLY FIXES (Banners, Carousel, Footer Logo)
       ========================================================== */

    /* 1. Make Banner Titles Italic */
    .featured-heading {
        font-style: italic;
        letter-spacing: 0px;
    }


    /* 3. Pull Footer Logo to the Left */
    .footer-brand .footer-logo {
        object-position: left center !important; 
    }

    /* 4. Reduce Hero Bottom Padding */
    .hero-content {
        bottom: 0rem; 
    }

    /* 5. Align Full Banner Text Down (Matches Double Banners) */
    .promo-banner-content {
        top: auto; 
        bottom: 1.5rem; 
        transform: none; 
    }
    
    .promo-banner-content .featured-desc {
    margin-bottom: 1rem;
    }
    
    /* 1. UNIVERSAL HERO MOBILE FIXES */
    .page-hero { 
        height: 50vh; 
        min-height: 22rem; 
    }
    
    /* Force the hero content to use the global 17px mobile gutter instead of 40px */
    .page-hero-content {
        padding-left: var(--gutter) !important;
        padding-right: var(--gutter) !important;
    }

    /* Smaller text and tighter line spacing for mobile hero */
    .page-hero-content .hero-title {
        font-size: 2.5rem !important;
        line-height: 0.9 !important; /* Shorter line spacing */
        margin-bottom: 0.25rem !important;
    }

    .page-hero-content .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.3 !important; /* Shorter line spacing */
    }
    
    .page-hero-content .historia-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* 2. CONTACT PAGE MOBILE FIXES */
    .tf-contact-section {
        /* USING TOP/BOTTOM ONLY so we don't delete your side gutters! */
        padding-top: 4.5rem !important; 
        padding-bottom: 4.5rem !important;
        /* Note: padding-left and padding-right are untouched so the side space returns */
    }
    
    .tf-contact-heading {
        font-size: 1.5rem; 
        margin-bottom: 2rem;
    }
    
    .tf-info-boxes {
        gap: 1.5rem; 
    }
    
    .tf-info-box p, 
    .tf-info-box a {
        font-size: 1rem; 
    }
    
    .tf-contact-map-large {
        min-height: 300px; 
    }
    
    /* 3. HISTORY PAGE MOBILE FIXES */
    .history-row { grid-template-columns: 1fr; min-height: auto; }
    .history-row-reverse { direction: ltr; } 
    .history-row-image { min-height: 17.5rem; padding: 1.5rem; }
    .history-row-text { padding: 0.5rem 1.5rem 2.5rem; }
    
    /* ==========================================================
       BULLETPROOF MOBILE FOOTER CENTERING
       ========================================================== */
    
    .footer-grid {
        grid-template-columns: 1fr !important; 
        gap: 2.5rem !important; 
        text-align: center !important; 
    }

    /* 2. Center the Logo */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand > a {
        margin: 0 auto 1.25rem auto !important; 
        display: flex !important;
        justify-content: center !important;
        max-width: 200px;
    }

    .footer-brand .footer-logo {
        object-position: center !important; /* Overrides the left alignment */
        margin: 0 auto !important;
    }

    /* 3. Center the Social Icons */
    .footer-socials {
        justify-content: center !important;
        width: 100%;
    }

    /* 4. Center the Column Titles and Links */
    .footer-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-col h4 {
        text-align: center !important;
    }

    .footer-col ul {
        align-items: center !important;
        text-align: center !important;
    }

    /* 5. Center the Bottom Legal Bar */
    .footer-bottom {
        flex-direction: column !important;
        gap: 1.25rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-legal {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    
    .section-title {
    letter-spacing: -0.05em;
   }
    
}



/* 1. GLOBAL FIX: Push all pages down to clear the fixed header. */
main#primary,
main.site-main,
body.woocommerce main.site-main,
body.woocommerce-page main.site-main {
    padding-top: var(--header-height) !important;
}

/* 2. EXCEPTION: If a page has a Hero section (.page-hero, .page-hero-container, etc) 
   ABOVE the main content, cancel the padding! The hero section is already mathematically 
   designed to sit under the transparent header. */
.page-hero + main.site-main,
.page-hero ~ main.site-main,
.page-hero + main#primary,
.page-hero ~ main#primary,
.page-hero-container + main.site-main,
.page-hero-container ~ main.site-main,
.page-hero-container + main#primary,
.page-hero-container ~ main#primary,
.page-hero-blurb + main.site-main,
.page-hero-blurb ~ main.site-main,
.page-hero-blurb + main#primary,
.page-hero-blurb ~ main#primary {
    padding-top: 0 !important;
}

/* 3. EXCEPTION: WooCommerce Catalogue/Archive Pages. 
   On these pages, the hero image is often INSIDE the main tag, so the sibling 
   selector above won't catch it. We target the body classes directly instead. */
body.archive.woocommerce main.site-main,
body.tax-product_cat main.site-main,
body.post-type-archive-product main.site-main {
    padding-top: 0 !important;
}





/* ==========================================================
   FOOTER SOCIAL ICON COLOR FIX (Kills the Purple)
   ========================================================== */
.footer-socials a,
.footer-socials a:visited {
    color: var(--color-white) !important;
}

.footer-socials a svg,
.footer-socials a i {
    color: var(--color-white) !important;
}

/* If the SVG uses a hardcoded fill or stroke, force it to inherit the white color */
.footer-socials a svg path,
.footer-socials a svg rect,
.footer-socials a svg circle {
    stroke: currentColor !important;
}


/* 6. Clean-up & Mobile Fallbacks (SQUISHED DESKTOP TABLE LAYOUT) */
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .coupon {
    display: none !important;
}

@media (max-width: 768px) {
    /* Side-by-side flex for the main cart areas */
    .woocommerce-cart div.woocommerce {
        flex-direction: column;
        gap: 20px;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        width: 100%;
    }
    .woocommerce-cart .cart-collaterals {
        position: static;
        max-height: none;
        overflow: visible;
    }

    /* 1. Force the Table to stay a Table */
    .woocommerce-cart table.shop_table {
        display: table !important;
        width: 100% !important;
        table-layout: auto !important; 
    }
    .woocommerce-cart table.shop_table thead {
        display: table-header-group !important; /* Restores the black header */
    }
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr {
        display: table-row-group !important;
    }
    .woocommerce-cart table.shop_table tr {
        display: table-row !important;
        border-bottom: 1px solid #e5e5e5;
    }

    /* 2. Microscopic Padding to fit the screen */
    .woocommerce-cart table.shop_table th,
    .woocommerce-cart table.shop_table td {
        display: table-cell !important;
        padding: 5px 2px !important; 
        vertical-align: middle !important;
        text-align: center !important; 
        border: none !important;
    }
    .woocommerce-cart table.shop_table td::before {
        display: none !important; /* Kills any mobile labels */
    }

    /* 3. Tiny Black Header Text */
    .woocommerce-cart table.shop_table thead th {
        font-size: 0.55rem !important; 
        padding: 8px 2px !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        line-height: 1.1;
    }
    /* Restores the missing "ΠΡΟΪΟΝ" header text we hid earlier */
    .woocommerce-cart table.shop_table thead th.product-name {
        color: var(--color-white) !important;
    }
    .woocommerce-cart table.shop_table thead th.product-remove::after {
        display: none !important;
    }

    /* 4. Shrink the "X" button */
    .woocommerce-cart table.shop_table td.product-remove {
        width: 15px !important;
    }
    .woocommerce-cart table.shop_table a.remove {
        font-size: 1rem !important;
        width: 15px;
        height: 15px;
        line-height: 15px;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. Shrink the Image */
    .woocommerce-cart table.shop_table td.product-thumbnail {
        width: 45px !important;
    }
    .woocommerce-cart table.shop_table td.product-thumbnail img {
        width: 40px !important;
        min-width: 40px !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 6. Shrink the Title & Align Left */
    .woocommerce-cart table.shop_table td.product-name {
        text-align: left !important;
    }
    .woocommerce-cart table.shop_table td.product-name a {
        font-size: 0.7rem !important; 
        line-height: 1.1 !important;
        padding-left: 5px !important;
        display: block;
    }

    /* 7. Shrink the Quantity Box */
    .woocommerce-cart table.shop_table td.product-quantity {
        width: 40px !important;
    }
    .woocommerce-cart table.shop_table td.product-quantity .qty {
        width: 35px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
    }

    /* 8. Shrink the Prices */
    .woocommerce-cart table.shop_table td.product-price,
    .woocommerce-cart table.shop_table td.product-subtotal {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    /* Reduce the gap specifically for mobile */
    .woocommerce-cart div.woocommerce {
        flex-direction: column;
        gap: 5px !important; /* Drastically reduced from 20px */
    }

    /* 1. Hide the word from the Product Title column */
    .woocommerce-cart table.shop_table thead th.product-name {
        color: transparent !important; 
    }

    /* 2. Inject it into the "X" column at the absolute left */
    .woocommerce-cart table.shop_table thead th.product-remove {
        position: relative !important;
    }
    .woocommerce-cart table.shop_table thead th.product-remove::after {
        content: "ΠΡΟΪΟΝ" !important;
        display: block !important;
        position: absolute !important;
        left: 5px !important; /* Pinned to the left edge */
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: var(--color-white) !important;
        font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
        font-size: 0.55rem !important; /* Matches your squished mobile table */
        font-weight: 800 !important;
    }

    /* Push "ΥΠΟΣΥΝΟΛΟ" (Subtotal Header & Price) away from the right edge */
    .woocommerce-cart table.shop_table thead th.product-subtotal,
    .woocommerce-cart table.shop_table tbody td.product-subtotal {
        text-align: right !important;
        padding-right: 15px !important; /* Pushes it off the screen edge */
    }
    
    /* ==========================================================
   SMART STICKY CHECKOUT BAR (Mobile Only)
   ========================================================== */
.tf-sticky-checkout-bar {
    display: none; 
}

@media (max-width: 768px) {
    .tf-sticky-checkout-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9999;
        /* Extra bottom padding accounts for the iPhone home swipe bar */
        padding: 12px 15px 25px 15px; 
        transform: translateY(100%); /* Hidden below screen initially */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .tf-sticky-checkout-bar.visible {
        transform: translateY(0); /* Slides up when active */
    }
    
    .tf-sticky-checkout-btn {
        display: block;
        background: #ffffff;
        color: #000000;
        text-align: center;
        padding: 16px;
        font-family: var(--font-body, sans-serif);
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 2px;
    }
}
}

/* ==========================================================
   CART PAGE: GLOBAL REFINEMENTS 
   ========================================================== */

/* 1. Completely hide the shipping details/calculator from the Cart */
.woocommerce-cart .cart-collaterals .cart_totals table tr.shipping,
.woocommerce-cart .cart-collaterals .cart_totals table tr.woocommerce-shipping-totals {
    display: none !important;
}

/* 2. Reduce the gap between the Product Table and the Cart Totals Box */
.woocommerce-cart table.shop_table {
    margin-bottom: 10px !important; /* Reduced from 2rem */
}



/* ==========================================================================
   CHECKOUT, LOGIN & ACCOUNT REFINEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CHECKOUT MOBILE: REORDER & UN-ACCORDION THE SUMMARY
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .wc-block-checkout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .wc-block-checkout__main {
        order: 1 !important;
    }
    
    .wc-block-components-sidebar {
        order: 2 !important;
        margin-top: 2rem !important;
    }
    
    /* Hide ALL native WooCommerce mobile dropdown toggles */
    .wc-block-components-order-summary-toggle,
    .wc-block-components-sidebar .wc-block-components-panel__button {
        display: none !important;
    }
    
    /* Force the native accordion content to stay permanently open and flat */
    .wc-block-components-sidebar .wc-block-components-panel__content {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Inject a clean B2B title since we hid the ugly dropdown button */
    .wc-block-components-sidebar::before {
        content: "ΣΥΝΟΨΗ ΠΑΡΑΓΓΕΛΙΑΣ";
        display: block;
        font-family: var(--font-display, 'Source Sans 3', sans-serif);
        font-size: 1.25rem;
        font-weight: 900;
        text-transform: uppercase;
        border-bottom: 2px solid var(--color-black);
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        color: var(--color-black);
    }
}

/* --------------------------------------------------------------------------
   2. CHECKOUT: MAKE PRODUCT LIST A SCROLLABLE "DROPDOWN" BOX
   -------------------------------------------------------------------------- */
/* Limits the height of the items list so the page never gets too long */
.wc-block-components-order-summary__cart-items {
    max-height: 160px !important; 
    overflow-y: auto !important;
    padding-right: 10px !important;
    border-bottom: 2px solid var(--color-black) !important;
    margin-bottom: 1rem !important;
}

/* Custom scrollbar for the items list */
.wc-block-components-order-summary__cart-items::-webkit-scrollbar {
    width: 4px;
}
.wc-block-components-order-summary__cart-items::-webkit-scrollbar-thumb {
    background: var(--color-black);
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. LOGIN PAGE: HIDE "ΣΤΟΙΧΕΙΑ ΛΟΓΑΡΙΑΣΜΟΥ" WHEN LOGGED OUT
   -------------------------------------------------------------------------- */
/* Hides the hero banner and titles entirely if the user is not logged in */
body.woocommerce-account:not(.logged-in) .page-hero,
body.woocommerce-account:not(.logged-in) .page-title,
body.woocommerce-account:not(.logged-in) .entry-title {
    display: none !important;
}
/* ==========================================================================
   LOGIN PAGE TYPOGRAPHY FIXES
   ========================================================================== */
/* 1. Completely HIDE "ΣΤΟΙΧΕΙΑ ΛΟΓΑΡΙΑΣΜΟΥ" (The outer page title) */
body.woocommerce-account:not(.logged-in) header.entry-header,
body.woocommerce-account:not(.logged-in) h1.entry-title,
body.woocommerce-account:not(.logged-in) .page-title,
body.woocommerce-account:not(.logged-in) .site-main > h1 {
    display: none !important;
}

/* 2. STYLE the actual "Σύνδεση" (The form title) */
#customer_login h2,
.u-column1 h2,
.woocommerce form.login h2 {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.04em !important;
    color: var(--color-black) !important;
    text-align: center !important;
    border-bottom: none !important; /* Removes the thin default line */
    margin-bottom: 2rem !important;
    width: 100% !important;
    display: block !important;
}


/* --------------------------------------------------------------------------
   4. ACCOUNT PAGE: FIX MISSING FONTS
   -------------------------------------------------------------------------- */
/* Fix Dashboard Menu Font (Uses your Display/Title font) */
.woocommerce-MyAccount-navigation ul li a {
    font-family: var(--font-display, 'Source Sans 3', sans-serif) !important;
    letter-spacing: 0.5px !important;
}

/* Fix "ΣΥΝΔΕΣΗ" (Login/Register) Button Fonts */
#customer_login button[type="submit"],
.woocommerce form.login button[type="submit"],
.woocommerce form.register button[type="submit"] {
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    letter-spacing: 1px !important;
}


/* ==========================================================
   LOGIN PAGE REFINEMENTS
   ========================================================== */
body.woocommerce-account:not(.logged-in) .woocommerce h2 {
    font-family: var(--font-display) !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: -0.04em !important;
    color: var(--color-black) !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
}

/* Reduced top padding for the login container */
body.woocommerce-account:not(.logged-in) .container.inset {
    padding-top: 2rem !important; /* Adjusted from the default 4rem seen in inspector */
}

/* ==========================================================
   EMPTY CART & CHECKOUT STYLES
   ========================================================== */
.woocommerce-cart .cart-empty,
.woocommerce-checkout .woocommerce-info {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem !important;
    padding: 4rem 0;
    border: none !important;
    background: transparent !important;
}

/* Return to Shop Button styling */
.woocommerce-cart .return-to-shop,
.woocommerce-checkout .return-to-shop {
    text-align: center;
    margin-bottom: 4rem;
}

.woocommerce-cart .return-to-shop .button.wc-backward,
.woocommerce-checkout .return-to-shop .button.wc-backward {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    padding: 1rem 2.5rem !important;
    font-family: var(--font-body) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.woocommerce-cart .return-to-shop .button.wc-backward:hover {
    background-color: var(--color-accent) !important;
}


/* ==========================================================================
   WOOCOMMERCE ARCHIVE PAGINATION (B2B Styling)
   ========================================================================== */

/* 1. Center the pagination and add breathing room from the product grid */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
}

/* 2. Strip default WooCommerce table-like borders from the list */
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px; /* Clean spacing between buttons */
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Style the actual buttons (Square, Bold, High Contrast) */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 15px;
    font-family: var(--font-body, 'Source Sans 3', sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--color-black) !important;
    background: transparent !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 0 !important; /* Forces sharp corners */
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover State for clickable pages */
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--color-black) !important;
    background: var(--color-black) !important;
    color: var(--color-white) !important;
}

/* 5. Active/Current Page State */
.woocommerce nav.woocommerce-pagination ul li span.current {
    border-color: var(--color-black) !important;
    background: var(--color-black) !important;
    color: var(--color-white) !important;
}

/* 6. Fix the "Next/Prev" text buttons if they appear */
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem !important;
}

/* 7. Mobile Adjustments to prevent side-scrolling */
@media (max-width: 768px) {
    
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span.current {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   SINGLE PRODUCT: STICKY COLUMN OFFSET FIX (Technofish Custom)
   ========================================================================== */
@media (min-width: 769px) {
    .woocommerce div.product .tf-product-summary,
    .woocommerce div.product div.summary.entry-summary {
        position: sticky !important;
        align-self: flex-start !important;
        top: 160px !important; /* Αυξήσαμε το κενό στα 160px για να σωθεί η κατηγορία */
    }
}


/* ==========================================================================
   3-COLUMN PROMO GRID (For Category Injections)
   ========================================================================== */
.featured-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.featured-grid-3 .featured-block{
    height: 28rem;
}

/* Mobile fallback: Stacks vertically */
@media (max-width: 1024px) {
    .featured-grid-3 {
        grid-template-columns: 1fr;
        padding: 0 var(--gutter);
    }
}


/* ==========================================================================
   ΑΠΟΚΡΥΨΗ ΕΤΙΚΕΤΑΣ "ΠΡΟΣΦΟΡΑ" (SALE BADGE)
   ========================================================================== */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
.woocommerce ul.products li.product .onsale,
.tf-single-product .onsale,
.tf-product-gallery .onsale {
    display: none !important;
}

/* ==========================================================================
   PRODUCT GRID: ΟΜΟΙΟΜΟΡΦΙΑ ΤΙΜΩΝ (ΑΠΟΚΡΥΨΗ ΔΙΑΓΡΑΜΜΕΝΗΣ ΤΙΜΗΣ)
   ========================================================================== */
/* Κρύβει την παλιά (διεγραμμένη) τιμή ΜΟΝΟ στον κατάλογο */
.woocommerce ul.products li.product .price del {
    display: none !important;
}

/* Φροντίζει η νέα τιμή να έχει ακριβώς το ίδιο στυλ με τα υπόλοιπα 
   (όχι έντονα γράμματα, όχι κόκκινα) για να υπάρχει τέλεια ομοιομορφία */
.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 400 !important;
    color: var(--color-black) !important;
    background: transparent !important;
}

/* Αλλάζει την εστίαση της εικόνας στα κινητά για να δείχνει το δεξί μέρος */
@media (max-width: 768px) {
    /* Αν μιλάς για το κάτω banner (.promo-banner) */
    .promo-banner img {
        object-position: right center !important; 
    }

    /* Ή αν μιλάς για το κεντρικό, μεγάλο hero banner πάνω-πάνω */
    .hero-media img {
        object-position: right center !important;
    }
}

/* ==========================================================================
   FIX: 3-COLUMN PROMO GRID MOBILE (Spacing & Square Aspect Ratio)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Kills the double padding so it aligns perfectly with the rest of the site */
    .featured-grid-3 {
        padding: 0 !important; 
    }
}

@media (max-width: 768px) {
    /* Forces the blocks to be perfect squares instead of super tall rectangles */
    .featured-grid-3 .featured-block {
        height: auto !important; 
        aspect-ratio: 1 / 1 !important; 
    }
    
    /* Slightly scales down the text so it fits perfectly inside the new square */
    .featured-grid-3 .featured-block-content .featured-heading {
        font-size: 1.8rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Pulls the text a bit closer to the bottom edge of the square */
    .featured-grid-3 .featured-block-content {
        bottom: 1rem !important;
    }
}

/* Κρύβει τον μετρητή αντικειμένων αν ο παραπάνω κώδικας δεν τον πιάσει σε κάποιο συγκεκριμένο theme */
.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount + span {
    display: none !important;
}

/* Ευθυγράμμιση για πιο καθαρό αποτέλεσμα */
.woocommerce-orders-table__header-order-total, .woocommerce-orders-table__cell-order-total {
    text-align: center !important;
}

/* Κρύβει την κατάσταση παραγγελίας μέσα στη σελίδα της παραγγελίας */
.woocommerce-order-details mark.order-status {
    display: none !important;
}

/* Αν το theme σου το δείχνει και στην κορυφή δίπλα από τον αριθμό */
.order-number .order-status, .order-info .order-status {
    display: none !important;
}

/* Target mobile devices (adjust the max-width breakpoint if your theme uses a different one) */
@media (max-width: 768px) {
  .hero-media img {
    /* Ensures the image fills the container */
    width: 100%;
    height: 100%;
    object-fit: cover; 
    
    /* Shifts the image to show more of the right side */
    object-position: 30% center; 
  }
}
/* ==========================================================================
   SINGLE PRODUCT: SPLIT DESCRIPTION (TEXT + IMAGES)
   ========================================================================== */
.tf-desc-split {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Η στήλη του κειμένου */
.tf-desc-text-col {
    flex: 1;
}

/* Η στήλη των εικόνων */
.tf-desc-images-col {
    flex: 1;
    display: grid;
    gap: 1.5rem;
}

.tf-desc-images-col.two-images {
    grid-template-columns: 1fr 1fr;
}

.tf-desc-images-col.one-image {
    grid-template-columns: 1fr;
}

.tf-desc-images-col img {
    width: 100%;
    height: clamp(150px, 15vw, 250px);
    
    object-fit: cover;
    border-radius: 4px; /* Ελαφριά καμπύλη για να ταιριάζει με το B2B look */
}

/* Κινητό: Αντιστροφή σειράς (Εικόνες Πάνω) */
@media (max-width: 768px) {
    .tf-desc-split {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    .tf-desc-text-col,
    .tf-desc-images-col {
        width: 100%;
    }
}