/* 
================================================================
HEAVYPARTS - Premium Heavy Equipment Spare Parts CSS stylesheet
Theme: Industrial Modern (Charcoal Grey, Warning Yellow, Clean White)
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #f2a900; /* Caterpillar-inspired Warning Yellow */
    --primary-hover: #d99700;
    --dark: #151515; /* Deep Charcoal Black */
    --dark-medium: #222222;
    --dark-light: #2c2c2c;
    --light-bg: #f5f6f8;
    --card-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #555555;
    --text-light: #888888;
    --text-white: #ffffff;
    --border-color: #e5e7eb;
    --success: #2ec4b6;
    --error: #e71d36;
    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: url('/images/space-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ==========================================
   HEADER CONTAINER
   ========================================== */

#header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

/* Header Top */
.header-top {
    background-color: var(--dark);
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-medium);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left .socials {
    display: flex;
    gap: 15px;
}

.header-top-left .socials a {
    color: var(--text-light);
}

.header-top-left .socials a:hover {
    color: var(--primary);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-link {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 5px 0;
}

.dropdown-trigger:hover {
    color: var(--text-white);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    width: 120px;
    padding: 8px 0;
    display: none;
    z-index: 200;
}

.dropdown-trigger:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 6px 15px;
    font-size: 13px;
}

.dropdown-menu-custom li a:hover {
    background-color: var(--light-bg);
    color: #ff3333 !important;
}

.top-log a:hover {
    color: var(--primary);
}

/* Header Middle */
.header-middle {
    padding: 20px 0;
    background-color: #ffffff;
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
}

.logo-icon-red {
    color: #ff3333;
    margin-right: 8px;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-icon-red::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background-color: #ff3333;
    box-shadow: 0 4px 0 #ff3333, 0 -4px 0 #ff3333;
}

.logo-bold-black {
    color: #111;
    font-weight: 800;
}

.middle-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 20px;
}

/* Search Bar Clean */
.search-header-clean {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #fff;
    height: 44px;
    display: flex;
    align-items: center;
    width: 480px;
    overflow: hidden;
}

.search-header-clean form {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.search-category-w {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px 0 15px;
    border-right: 1px solid var(--border-color);
}

.search-category-w select {
    background: none;
    border: none;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    padding-right: 10px;
    appearance: none;
    -webkit-appearance: none;
}

.select-arrow-icon {
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: #777;
    pointer-events: none;
}

.search-input-clean {
    flex-grow: 1;
    height: 100%;
    padding: 0 15px;
    font-size: 13px;
    color: #333;
    border: none;
    background: none;
}

.search-input-clean::placeholder {
    color: #999;
}

.btn-search-clean {
    background-color: #ff3333;
    color: #fff;
    height: 100%;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.btn-search-clean:hover {
    background-color: #cc181e;
}

/* Wishlist Button Clean */
.wishlist-clean-w {
    display: flex;
    align-items: center;
}

.btn-wishlist-clean {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 15px;
    transition: var(--transition);
}

.btn-wishlist-clean:hover {
    border-color: #ff3333;
    color: #ff3333;
}

/* Cart Clean */
.cart-clean-w {
    position: relative;
}

.shopcart-clean {
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 18px;
    cursor: pointer;
    gap: 12px;
    background-color: #fff;
    position: relative;
}

.basket-icon-w {
    color: #222;
    font-size: 16px;
    position: relative;
    display: flex;
    align-items: center;
}

.items-count-badge {
    position: absolute;
    top: -14px;
    right: -14px;
    background-color: #ff3333;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

.cart-inner-clean {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.cart-lbl-clean {
    color: #777;
    font-weight: 600;
}

.cart-val-clean {
    color: #ff3333;
    font-weight: 700;
}

/* Cart Dropdown Box */
.shoppingcart-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--border-color);
    display: none;
    z-index: 100;
    margin-top: 10px;
}

.cart-clean-w:hover .shoppingcart-box {
    display: block;
}

.shoppingcart-box table {
    width: 100%;
    border-collapse: collapse;
}

.shoppingcart-box td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.cart_product_name {
    font-weight: 600;
    font-size: 13px;
    display: block;
}

.cart-total-table {
    margin-top: 15px;
    background-color: var(--light-bg);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.cart-total-table div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.cart-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cart-buttons a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.cart-buttons .view-cart {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.cart-buttons .view-cart:hover {
    background-color: var(--border-color);
}

.cart-buttons .checkout-cart {
    background-color: #ff3333;
    color: #fff;
}

.cart-buttons .checkout-cart:hover {
    background-color: #cc181e;
}

.empty-cart-msg {
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
    font-weight: 500;
}

.wishlist-total-header {
    font-size: 20px;
    color: var(--text-medium);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.wishlist-total-header:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Header Bottom Navigation */
.header-bottom {
    background-color: #ffffff;
    color: #222;
    border-bottom: 2px solid #ff3333;
}

.header-bottom.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    animation: stickySlideDown 0.25s ease-out forwards;
}

@keyframes stickySlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-bottom .container {
    display: flex;
    align-items: stretch;
    position: relative;
}

.col-menu-vertical {
    width: 280px;
    position: relative;
    margin-bottom: -2px;
}

.so-vertical-menu {
    background-color: #ff3333;
    color: #ffffff;
    font-weight: 700;
    height: calc(100% + 2px);
    border-radius: 4px 4px 0 0;
}

.megamenuToogle-wrapper {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
}

.megamenuToogle-wrapper i {
    font-size: 18px;
    color: #ff3333;
}

/* Vertical Category Menu List */
.vertical-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--shadow-md);
    z-index: 90;
    display: none; /* Collapsed by default on non-home pages */
}

body.common-home .vertical-wrapper {
    display: block;
}

/* Hide vertical menu when sticky on homepage */
.header-bottom.sticky-nav .vertical-wrapper {
    display: none !important;
}

/* Allow hover behavior on non-home pages & when sticky */
.col-menu-vertical:hover .vertical-wrapper,
.header-bottom.sticky-nav .col-menu-vertical:hover .vertical-wrapper {
    display: block !important;
}

.megamenu-vertical-list {
    display: flex;
    flex-direction: column;
}

.item-vertical {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.item-vertical:last-child {
    border-bottom: none;
}

.item-vertical > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.item-vertical > a i {
    color: #ff3333;
}

.item-vertical:hover > a {
    background-color: var(--light-bg);
    color: #ff3333 !important;
}

/* Submenu Flyout */
.item-vertical .sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 500px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: none;
    z-index: 150;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.item-vertical:hover .sub-menu {
    display: block;
}

.sub-menu-row {
    display: flex;
    gap: 20px;
}

.sub-menu-col {
    flex: 1;
}

.sub-menu-col h5 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.sub-menu-col ul li a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-medium);
}

.sub-menu-col ul li a:hover {
    color: #ff3333 !important;
    padding-left: 5px;
}

.sub-menu-banner {
    margin-top: 15px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.sub-menu-banner img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.sub-menu-banner:hover img {
    transform: scale(1.05);
}

/* Horizontal Mega Menu */
.horizontal-menu-w {
    flex-grow: 1;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

.horizontal-megamenu {
    display: flex;
}

.horizontal-megamenu > li {
    position: relative;
}

.horizontal-megamenu > li.has-megamenu {
    position: static;
}

.horizontal-megamenu > li > a {
    display: block;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111; /* Dark text */
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.horizontal-megamenu > li:hover > a {
    background-color: #ff3333; /* Red background block on hover */
    color: #ffffff; /* White text on hover */
}

.horizontal-megamenu > li.active > a {
    background-color: #ff3333; /* Red block for active */
    color: #ffffff; /* White text for active */
}

.horizontal-megamenu > li.active:hover > a {
    color: #ffffff; /* Stay white on hover for active item */
}

/* Horizontal Mega Menu Panel */
.horizontal-megamenu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 25px 30px;
    display: none;
    gap: 30px;
    z-index: 999;
    box-sizing: border-box;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    animation: menuSlideDown 0.25s ease;
}

.horizontal-megamenu > li:hover .horizontal-megamenu-panel {
    display: flex;
}

.megamenu-col {
    flex: 1;
}

.megamenu-col h5 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    border-bottom: 2px solid #ff3333;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.megamenu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-col ul li {
    margin-bottom: 8px;
}

.megamenu-col ul li a {
    font-size: 13px;
    color: #666;
    transition: var(--transition);
    display: block;
}

.megamenu-col ul li a:hover {
    color: #ff3333;
    padding-left: 5px;
}

/* Services Dropdown Submenu */
.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 10px 0;
    list-style: none;
    display: none;
    z-index: 999;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    animation: menuSlideDown 0.2s ease;
}

.horizontal-megamenu > li:hover .dropdown-submenu {
    display: block;
}

.dropdown-submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-submenu li a:hover {
    background-color: var(--light-bg);
    color: #ff3333 !important;
}

/* Arrow icon */
.menu-arrow {
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.7;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MAIN HERO & SIDEBAR SECTION
   ========================================== */

.main-container {
    padding: 30px 0;
}

.main-hero-row {
    display: flex;
    gap: 30px;
}

.col-sidebar-placeholder {
    width: 280px;
    flex-shrink: 0;
}

.col-slideshow-full {
    flex-grow: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.25), 0 0 50px rgba(255, 255, 255, 0.15), 0 15px 35px rgba(0, 0, 0, 0.6);
    position: relative;
    background-color: var(--dark);
    height: 450px;
}

/* Hero Slideshow Slider */
.slideshow-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Info */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
    color: var(--text-white);
    z-index: 3;
}

.slide-content {
    max-width: 500px;
}

.slide-content h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.2s;
}

.slide-item.active .slide-content h4 {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.4s;
}

.slide-item.active .slide-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.slide-content p {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.6s;
}

.slide-item.active .slide-content p {
    transform: translateY(0);
    opacity: 1;
}

.btn-hero {
    display: inline-block;
    background-color: #ff3333;
    color: #fff;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 14px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.8s, background-color 0.3s;
}

.slide-item.active .btn-hero {
    transform: translateY(0);
    opacity: 1;
}

.btn-hero:hover {
    color: #fff;
    background-color: var(--dark-medium);
    border: 1px solid #ff3333;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* ==========================================
   SERVICES BADGES BLOCK
   ========================================== */

.block-services {
    margin-top: 30px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.icon-service {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.icon-service:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.icon-service .icon,
.icon-service .icon i {
    font-size: 36px;
    color: #ff3333 !important;
}

.icon-service h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.icon-service p {
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================
   DEAL OF THE DAY & BEST SELLERS
   ========================================== */

.deals-bestsellers-row {
    margin-top: 40px;
    display: flex;
    gap: 30px;
}

.col-deal {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.col-bestsellers {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.module-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-title span {
    position: relative;
    padding-bottom: 5px;
}

.module-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Deal of the Day ribbon styles */
.deal-card-wrapper {
    position: relative;
    padding-top: 15px; /* space for overlapping ribbon */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.deal-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    flex-grow: 1;
}

.deal-ribbon {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #ff3333;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 25px;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 4px 4px 4px 0;
}

.deal-ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #8a1313 transparent transparent;
}

.deal-image {
    width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #fafafa;
}

.deal-image img {
    width: 100%;
    display: block;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.deal-card:hover .deal-image img {
    transform: scale(1.05);
}

.deal-info {
    width: 55%;
}

.deal-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.deal-info .rating {
    color: #ffcc00;
    font-size: 13px;
    margin-bottom: 15px;
}

.deal-info .price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.deal-info .price-new {
    font-size: 24px;
    font-weight: 800;
    color: #ff3333;
}

.deal-info .price-old {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
}

.deal-info p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* White boxes countdown */
.deal-countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cd-item {
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    width: 65px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cd-num {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.cd-lbl {
    font-size: 10px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* Deal Actions row with black buttons */
.deal-actions-row {
    display: flex;
    gap: 10px;
}

.btn-deal-add {
    background-color: #ff3333;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-deal-add:hover {
    background-color: #d92626;
    color: #fff;
}

.btn-deal-icon {
    width: 45px;
    height: 45px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.btn-deal-icon:hover {
    background-color: #ff3333;
}

/* Best Seller updates */
.bestsellers-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--card-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bestsellers-header {
    background-color: #ff3333;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bestsellers-list {
    padding: 20px;
    background-color: var(--card-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bestseller-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bestseller-item:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.bestseller-img {
    width: 70px;
    height: 70px;
    border: none;
    background: transparent;
    flex-shrink: 0;
    overflow: hidden;
}

.bestseller-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.bestseller-title {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 3px;
    line-height: 1.4;
}

.bestseller-title:hover {
    color: var(--primary-hover);
}

.bestseller-rating {
    color: #ffcc00;
    font-size: 11px;
    margin-bottom: 4px;
}

.bestseller-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff3333;
}

.bestsellers-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.bestsellers-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.bestsellers-dots .dot.active {
    background-color: #ff3333;
}

/* ==========================================
   PRODUCT LISTING TABS SECTION
   ========================================== */

.listingtab-section {
    margin-top: 40px;
}

.listing-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--dark-medium);
    margin-bottom: 25px;
    padding-bottom: 5px;
}

.listing-tabs-header .module-title {
    margin-bottom: 0;
}

.listing-tabs-header .module-title span::after {
    display: none;
}

.tabs-list {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}

.tab-content-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Product Card */
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-card-top {
    position: relative;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.product-card-top img {
    max-width: 100%;
    max-height: 100%;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.product-card:hover .product-card-top img {
    transform: scale(1.08);
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--error);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--success);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    z-index: 5;
}

/* Hover Quickview Overlay */
.quickview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.product-card:hover .quickview-overlay {
    opacity: 1;
}

.btn-quickview {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-quickview:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.product-card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #ff3333;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title:hover {
    color: var(--primary);
}

.product-rating {
    color: var(--primary);
    font-size: 11px;
    margin-bottom: 10px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
}

.product-price .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 5px;
    font-weight: 400;
}

.btn-add-to-cart-grid {
    background-color: var(--light-bg);
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart-grid:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* Category Slider Banner */
.category-promo-banner {
    margin-top: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-promo-banner img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.category-promo-banner:hover img {
    transform: scale(1.02);
}

/* ==========================================
   HOT CATEGORIES (SHOP BY CATEGORIES)
   ========================================== */

.hot-categories-section {
    margin-top: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.category-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-box-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fafafa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-box-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-box:hover .category-box-img img {
    transform: scale(1.08);
}

.category-box-info {
    flex-grow: 1;
}

.category-box-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.category-box-links li {
    margin-bottom: 4px;
}

.category-box-links li a {
    font-size: 13px;
    color: var(--text-medium);
}

.category-box-links li a:hover {
    color: var(--primary-hover);
    padding-left: 5px;
}

.category-box-info .view-all-cat {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-hover);
    text-transform: uppercase;
}

/* ==========================================
   BRANDS SECTION
   ========================================== */

.brands-section {
    margin-top: 50px;
    padding-top: 40px;
}

.brands-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.brands-slider-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.brands-track {
    display: flex;
    width: max-content;
    animation: brandMarquee 25s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-logo-card {
    flex: 0 0 200px !important;
    width: 200px !important;
    text-align: center;
    padding: 20px 10px;
    border-right: 1px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: var(--transition);
}

.brand-logo-card img {
    max-height: 40px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo-card:hover img {
    filter: none;
    opacity: 1;
}

/* Brands Arrow buttons overlapping container */
.brands-arrow {
    }

@keyframes brandMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-arrow:hover {
    color: #ff3333;
    border-color: #ff3333;
}

.brands-arrow.prev-btn {
    left: -20px;
}

.brands-arrow.next-btn {
    right: -20px;
}

/* Media query for brands columns */
@media (max-width: 1024px) {
    .brand-logo-card {
        flex: 0 0 25%; /* 4 items visible */
    }
}

@media (max-width: 768px) {
    .brand-logo-card {
        flex: 0 0 50%; /* 2 items visible */
    }
    .brands-arrow.prev-btn {
        left: -10px;
    }
    .brands-arrow.next-btn {
        right: -10px;
    }
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.footer-container {
    background-color: var(--dark);
    color: var(--text-white);
    margin-top: 60px;
}

/* Footer Top Newsletter Row */
.footer-top {
    background: linear-gradient(to right, #cc181e 35%, #ff3333 35%);
    color: #fff;
    padding: 0;
    border-bottom: none;
}

.footer-top-row {
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

.footer-socials-block {
    width: 35%;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    padding: 20px 0;
    box-sizing: border-box;
}

.social-box {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 2px;
    transition: var(--transition);
}

.social-box:hover {
    background-color: #222;
    color: #fff;
}

/* Sidebar Widget H4 */
.sidebar-widget h4 {
    background: #ff3333;
    color: #fff;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* View More Buttons */
.btn-cat-view-more, .btn-view-more {
    background: #ff3333 !important;
    color: #fff !important;
}
.btn-cat-view-more:hover, .btn-view-more:hover {
    background: #222 !important;
}

.footer-newsletter-block {
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 20px 40px;
    box-sizing: border-box;
}

.newsletter-label {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.newsletter-form-clean {
    display: flex;
    width: 60%;
    max-width: 450px;
}

.newsletter-form-clean input {
    flex-grow: 1;
    background-color: #ffffff;
    color: #222;
    font-size: 13px;
    padding: 12px 15px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: none;
}

.newsletter-form-clean input::placeholder {
    color: #999;
}

.btn-subscribe-clean {
    background-color: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 25px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe-clean:hover {
    background-color: #111;
}

/* Media queries for split footer */
@media (max-width: 992px) {
    .footer-top {
        background: #ff3333;
    }
    .footer-top-row {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }
    .footer-socials-block {
        width: 100%;
        justify-content: center;
        padding: 0;
    }
    .footer-newsletter-block {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        align-items: center;
    }
    .newsletter-form-clean {
        width: 100%;
    }
}

/* Footer Middle */
.footer-middle {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #cccccc;
}

.footer-contact-list li i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 3px;
}

.footer-col ul.links li {
    margin-bottom: 10px;
}

.footer-col ul.links li a {
    font-size: 14px;
    color: #cccccc;
}

.footer-col ul.links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #0b0b0b;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-light);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-methods i {
    font-size: 28px;
    color: #555555;
}

.payment-methods i:hover {
    color: var(--text-white);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark);
    color: var(--primary);
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
    .col-sidebar-placeholder {
        display: none;
    }
    
    .vertical-wrapper {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    .col-menu-vertical:hover .vertical-wrapper {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-service:not(:last-child) {
        border-right: none;
    }
    
    .deals-bestsellers-row {
        flex-direction: column;
    }
    
    .col-bestsellers {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-middle .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .middle-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-header-w {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .deal-card {
        flex-direction: column;
    }

    .deal-image, .deal-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HYDRAULICS & UNDERCARRIAGE HORIZONTAL SECTIONS
   ========================================== */
.hydraulics-row-container, .undercarriage-row-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.hydraulics-left-banner, .undercarriage-left-banner {
    width: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

.hydraulics-left-banner .banner-inner, .undercarriage-left-banner .banner-inner {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 25px;
    box-sizing: border-box;
}

.hydraulics-left-banner h3, .undercarriage-left-banner h3 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hydraulics-left-banner p, .undercarriage-left-banner p {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-shop-banner {
    background-color: #ff3333;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    text-align: center;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-shop-banner:hover {
    background-color: #fff;
    color: #ff3333;
}

/* Right Content Area & Clean Tabs */
.hydraulics-right-content, .undercarriage-right-content {
    flex-grow: 1;
}

.listing-tabs-header-clean {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
}

.tabs-list-clean {
    display: flex;
    gap: 25px;
}

.tabs-list-clean .tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0 0 5px 0;
    position: relative;
    transition: var(--transition);
}

.tabs-list-clean .tab-btn:hover {
    color: #ff3333;
}

.tabs-list-clean .tab-btn.active {
    color: #ff3333;
}

.tabs-list-clean .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff3333;
}

.products-grid-clean {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; /* space for scrollbar if visible */
}

/* Hide scrollbar for a cleaner look */
.products-grid-clean::-webkit-scrollbar {
    display: none;
}
.products-grid-clean {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider-wrapper {
    position: relative;
    width: 100%;
}

.product-slider-wrapper .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-slider-wrapper .slider-arrow:hover {
    background-color: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.product-slider-wrapper .slider-arrow.prev {
    left: -20px;
}

.product-slider-wrapper .slider-arrow.next {
    right: -20px;
}


.product-card-clean {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    flex: 0 0 calc((100% - 40px) / 3); /* 3 items per row with 2 gaps of 20px */
    scroll-snap-align: start;
}

.product-card-clean:hover {
    box-shadow: var(--shadow-md);
    border-color: #ff3333;
}

.product-card-clean .card-img-w {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.product-card-clean .card-img-w img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Ribbon discount badge for clean card */
.badge-sale-clean {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ff3333;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 2px 2px 2px 0;
    z-index: 5;
}

.badge-sale-clean::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    border-style: solid;
    border-width: 0 5px 5px 0;
    border-color: transparent #8a1313 transparent transparent;
}

.card-info-w {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title-w {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 5px;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title-w:hover {
    color: #ff3333;
}

.card-stars-w {
    color: #ffcc00;
    font-size: 11px;
    margin-bottom: 8px;
}

.card-price-w {
    font-size: 15px;
    font-weight: 700;
    color: #ff3333;
}

.card-price-w .old-p {
    font-size: 12px;
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}

/* Media Query overrides for clean grid */
@media (max-width: 1024px) {
    .hydraulics-row-container, .undercarriage-row-container {
        flex-direction: column;
    }
    .hydraulics-left-banner, .undercarriage-left-banner {
        width: 100%;
        min-height: 250px;
    }
}

@media (max-width: 991px) {
    .product-card-clean {
        flex: 0 0 calc((100% - 20px) / 2); /* 2 items */
    }
}

@media (max-width: 480px) {
    .product-card-clean {
        flex: 0 0 100%; /* 1 item */
    }
}

/* ==========================================
   SHOP BY CATEGORIES NEW STYLES
   ========================================== */
.section-title-w {
    text-align: center;
    margin-bottom: 35px;
}

.sub-title-red {
    font-size: 22px;
    font-weight: 700;
    color: #f2a900;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.main-title-black {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.main-title-black span {
    color: #ff3333;
    margin: 0 5px;
}

.categories-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-box-new {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-box-new:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cat-img-left {
    width: 40%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-img-left img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cat-info-right {
    width: 60%;
}

.cat-info-right h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.cat-info-right ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.cat-info-right ul li {
    margin-bottom: 6px;
    font-size: 13px;
}

.cat-info-right ul li a {
    color: #777;
    transition: var(--transition);
}

.cat-info-right ul li a:hover {
    color: #ff3333;
    padding-left: 3px;
}

.cat-info-right ul li::before {
    content: "• ";
    color: #ff3333; /* Red dot matching ribbon highlights */
    margin-right: 6px;
    font-size: 12px;
    font-weight: bold;
}

.btn-cat-view-more {
    display: inline-block;
    background-color: #ff3333 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-cat-view-more:hover {
    background-color: #222 !important;
    color: #fff !important;
}

/* Media Query overrides for categories */
@media (max-width: 1024px) {
    .categories-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid-new {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HIDE ALL PRODUCT PRICES (RFQ SYSTEM)
   ========================================== */
.price,
.product-price,
.old-price,
.card-price-w,
.bestseller-price,
.price-val,
.cart-val-clean,
.items_carts,
.cart-total-table,
.cart_product_price,
.old-p,
.new-p,
.quote-item-price,
.quote-cart-table th:nth-child(4),
.quote-cart-table td:nth-child(4),
#sort-select option[value="price-asc"],
#sort-select option[value="price-desc"] {
    }

.sidebar-widget:has(#price-filters) {
    }

/* Hide wishlist and cart from header middle section */
.wishlist-clean-w,
.cart-clean-w {
    }

/* ==========================================
   MEET OUR BEST TEAM SECTION
   ========================================== */
.team-section-container {
    background: none;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.team-card {
    background-color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 0;
    position: relative;
    margin-top: 0;
    text-align: center;
    border-radius: 2px;
    overflow: visible;
}

.team-photo-wrapper {
    background-color: #15152a;
    height: 220px;
    position: relative;
    overflow: visible;
    border-bottom: 4px solid #ffffff;
}

.team-photo-wrapper img {
    height: 260px;
    width: auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    z-index: 10;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo-wrapper img {
    transform: translateX(-50%) scale(1.05);
}

.team-info-box {
    background-color: #ffffff;
    padding: 20px 10px;
    position: relative;
    z-index: 20;
}

.team-info-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 5px 0;
    text-transform: none;
}

.team-info-box p {
    font-size: 12px;
    color: #666666;
    margin: 0;
}

.team-header {
    text-align: center;
    max-width: 800px;
    color: #ffffff;
}

.team-header h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #ffffff;
}

.team-header h2 strong {
    font-weight: 800;
}

.team-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0c5;
    margin-bottom: 25px;
}

.team-divider {
    display: none;
}

/* Light page overrides for team text */
.about-page .team-header h2 {
    color: #ffffff;
    font-weight: 800;
}
.about-page .team-header p {
    color: #555555;
}
.about-page .team-divider {
    background-color: #ff3333;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


 
/* LATEST NEWS SECTION */  
.news-section-container { margin: 40px auto; max-width: 1200px; padding: 0 15px; }  
.news-header { text-align: center; margin-bottom: 30px; }  
.news-header h2 { font-size: 28px; color: #333; margin: 0; }  
.news-header h2 strong { color: #ff3333; }  
.news-divider { width: 60px; height: 3px; background-color: #ff3333; margin: 15px auto; }  
 
/* LATEST NEWS SECTION */  
.news-section-container { margin: 40px auto; max-width: 1200px; padding: 0 15px; }  
.news-header { text-align: center; margin-bottom: 30px; }  
.news-header h2 { font-size: 28px; color: #ffffff; margin: 0; }  
.news-header h2 strong { color: #ffffff; }  
.news-divider { display: none; }  
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }  
@media(max-width: 991px){ .news-grid{ grid-template-columns: repeat(2, 1fr); } }  
@media(max-width: 767px){ .news-grid{ grid-template-columns: 1fr; } }  
.news-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }  
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }  
.news-img-wrapper { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background-color: #f8f9fa; }  
.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }  
.news-info { padding: 20px; }  
.news-date { font-size: 12px; color: #ff3333; font-weight: bold; margin-bottom: 10px; display: block; }  
.news-title { font-size: 18px; color: #333; margin: 0 0 10px; font-weight: bold; text-decoration: none; display: block; }  
.news-title:hover { color: #ff3333; }
.news-desc { font-size: 14px; color: #666; line-height: 1.5; margin: 0; } 

/* Space Effect Background */
#space-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: transparent; pointer-events: none; }
.space-star { position: absolute; background-color: #ffffff; border-radius: 50%; opacity: 0; animation: twinkle linear infinite; box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4); }
@keyframes twinkle { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(0.5); } }



.btn-red-clean {
    background-color: #ff3333;
    color: #fff;
    transition: background-color 0.3s;
}
.btn-red-clean:hover {
    background-color: #222;
    color: #fff;
}

.card-price-w { display: none !important; }
.product-price { display: none !important; }
.product-price-clean { display: none !important; }
.bestseller-price { display: none !important; }
.btn-cat-view-more, .btn-view-more, .btn-hero { background-color: #ff3333 !important; }
.btn-cat-view-more:hover, .btn-view-more:hover, .btn-hero:hover { background-color: #222 !important; color: #fff !important; }
.sidebar-widget h4 { background-color: #ff3333 !important; color: #fff !important; font-weight: bold; padding: 10px; }
@media (max-width: 991px) {
    .header-bottom .container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        gap: 10px !important;
    }
    .header-bottom .header-logo {
        position: relative !important;
        right: auto !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }
    .header-bottom .horizontal-menu-w {
        display: none !important;
    }
    .header-bottom .header-search-right {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .header-bottom .search-header-clean {
        max-width: 100% !important;
    }
    .main-hero-row {
        flex-direction: column !important;
    }
    .col-sidebar-placeholder {
        display: none !important;
    }
    .col-slideshow-full {
        width: 100% !important;
    }
    .header-bottom .vertical-wrapper {
        position: relative !important;
        width: 100% !important;
    }
    .col-menu-vertical {
        width: 100% !important;
    }
}

@media (max-width: 991px) {
    .header-bottom .horizontal-menu-w {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
    }
    .horizontal-megamenu {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        border-top: 1px solid #eee;
    }
    .horizontal-megamenu > li {
        width: 100% !important;
        border-bottom: 1px solid #eee;
    }
    .horizontal-megamenu > li > a {
        padding: 12px 15px !important;
    }
}

@media (max-width: 991px) {
    body.common-home .vertical-wrapper {
        display: none !important;
    }
    .header-bottom .horizontal-megamenu > li {
        display: block !important;
        width: 100% !important;
    }
}

/* MOBILE NAV FIXES 2 */
@media (max-width: 991px) {
    /* Hide ALL CATEGORIES by default on mobile */
    body.common-home .vertical-wrapper,
    .vertical-wrapper {
        display: none !important;
        position: relative !important;
        width: 100% !important;
    }
    .vertical-wrapper.show-mobile-cat {
        display: block !important;
    }

    /* Hide Main Navigation by default on mobile */
    .header-bottom .horizontal-menu-w {
        display: none !important;
        width: 100% !important;
        white-space: normal !important;
        padding-left: 0 !important;
        margin-top: 10px;
    }
    .header-bottom .horizontal-menu-w.show-mobile-menu {
        display: block !important;
    }
    
    .horizontal-megamenu {
        flex-direction: column !important;
        width: 100% !important;
        text-align: left !important;
    }
    .horizontal-megamenu > li {
        width: 100% !important;
        border-bottom: 1px solid #ddd;
    }
    .horizontal-megamenu > li > a {
        padding: 12px 20px !important;
        display: block !important;
    }

    /* Mobile toggles styling */
    .mobile-nav-toggles {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .mobile-menu-btn {
        background: #ff3333;
        color: #fff;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        flex: 1;
        text-align: center;
        margin-left: 10px;
    }
    
    /* Adjust about-hero on mobile */
    .about-hero {
        padding: 20px 15px !important;
    }
    .contact-info-blocks {
        flex-direction: column !important;
    }
}

/* ABOUT & CONTACT MOBILE FIXES */
@media (max-width: 991px) {
    .about-hero {
        padding: 20px 10px !important;
        text-align: center;
    }
    .about-hero h1 {
        font-size: 28px !important;
    }
    .about-hero p {
        font-size: 14px !important;
    }
    .contact-info-row {
        flex-direction: column !important;
    }
    .contact-form-col {
        width: 100% !important;
        padding-right: 0 !important;
    }
    .contact-details-col {
        width: 100% !important;
        margin-top: 30px !important;
    }
    .contact-info-blocks {
        display: flex;
        flex-direction: column !important;
    }
    .contact-block {
        width: 100% !important;
        margin-bottom: 20px;
    }
    .about-content-row {
        flex-direction: column !important;
    }
    .about-content-left, .about-content-right {
        width: 100% !important;
        padding: 10px !important;
    }
    .about-features {
        flex-direction: column !important;
    }
    .feature-box {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    /* Guarantee that horizontal menu items are block */
    .horizontal-megamenu > li {
        display: block !important;
    }
}
