/* ==========================================================================
   CSS Variables & DeWALT/Industrial Theme Design System
   ========================================================================== */
   :root {
    /* Colors */
    --primary: #FFCC00; /* DeWalt Yellow */
    --primary-hover: #E6B800;
    --secondary: #111111; /* Very dark industrial gray/black */
    --secondary-light: #222222;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E2E2E2;
    --bg-main: #FFFFFF;
    --bg-light: #F5F6F8; /* Light industrial background */
    --danger: #E32636; /* Offer / Error */
    
    /* Typography */
    /* Barlow for rugged industrial headings, Inter for clean readable products */
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1320px;
    --radius: 12px; /* Smoother, modern corners */
    --radius-pill: 30px; /* For fully rounded elements */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 18px 36px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.site-main {
    min-height: 60vh;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

.text-small {
    font-size: 0.8em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill); /* Modern rounded buttons */
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.btn-block {
    width: 100%;
}

.mt-3 {
    margin-top: 15px;
}

.mb-4 {
    margin-bottom: 25px;
}
.text-center {
    text-align: center;
}
.text-light-gray {
    color: #ccc;
}

/* ==========================================================================
   Header Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--secondary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span,
.top-bar-right a {
    color: #ccc;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left span:last-child {
    margin-right: 0;
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
    background-color: var(--bg-main);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 32px;
    color: var(--secondary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.search-wrap {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    border: 2px solid var(--primary); /* Use primary color for modern accent */
    border-radius: var(--radius-pill);
    height: 52px;
    background: #fff;
    overflow: hidden; /* Ensure inner elements conform to border radius */
    box-shadow: var(--shadow-sm);
}

.search-category {
    background-color: #f8f8f8;
    border-right: 1px solid var(--border-color);
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.search-category select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.search-form button {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    width: 60px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.header-actions {
    display: flex;
    gap: 30px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-item i.fa-user {
    font-size: 24px;
    color: var(--secondary);
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.action-text strong {
    font-size: 14px;
    color: var(--secondary);
}

.action-item:hover .action-text strong {
    color: var(--primary-hover);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
    background-color: var(--secondary);
}

.nav-inner {
    display: flex;
}

.all-categories {
    background-color: var(--primary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 280px;
    border-radius: var(--radius) var(--radius) 0 0; /* Attach nicely to the bar */
}

.nav-links {
    display: flex;
    padding-left: 20px;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Special High-Contrast Button for Promotions */
.nav-links li .nav-promo {
    background-color: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-pill);
    padding: 6px 18px; /* Slightly more compact */
    margin: 8px 5px;   /* Vertical centering */
    align-self: center;
    font-weight: 800;
    transition: var(--transition);
    border: 1px solid var(--primary); /* subtle border to keep shape */
}

.nav-links li .nav-promo:hover {
    background-color: #000; /* Pure black on hover */
    color: #fff !important;
    border-color: #000;
}

.badge {
    background-color: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 5px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 30px 0;
    background-color: var(--bg-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1541888086925-ebde00fb4eaf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.hero-content {
    max-width: 500px;
}

.hero-content .subtitle {
    display: inline-block;
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 4px 12px;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.hero-content h1 {
    color: #fff;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    color: #ddd;
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-promos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-box {
    flex: 1;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.promo-1 {
    background-image: url('https://images.unsplash.com/photo-1588691866324-f725a33c2e17?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
}

.promo-2 {
    background-image: url('https://images.unsplash.com/photo-1572981779307-38b8cabb2407?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-content span {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
}

.promo-content h3 {
    color: #fff;
    font-size: 22px;
    margin: 10px 0 15px;
    max-width: 200px;
}

.promo-content a {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.promo-content a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-banner {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: flex;
    justify-content: space-between;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    flex: 1;
    border-right: 1px solid var(--border-color);
    justify-content: center;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item .icon {
    font-size: 32px;
    color: var(--primary);
}

.feature-item h4 {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--secondary);
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Common Sections
   ========================================================================== */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 0;
}

.view-all {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--secondary);
}

.view-all:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cat-card {
    background: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    padding: 30px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    height: 100%;
}

.cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.cat-img {
    margin-bottom: 15px;
    color: var(--secondary);
    transition: var(--transition);
}

.cat-card:hover .cat-img {
    color: var(--primary);
    transform: scale(1.1);
}

.cat-card h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.cat-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.prod-tabs {
    display: flex;
    gap: 15px;
}

.prod-tabs button {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.prod-tabs button.active, .prod-tabs button:hover {
    color: var(--secondary);
    border-bottom-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.product-card .badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.product-card .badge.new {
    background-color: var(--secondary);
}

.product-card .badge.discount {
    background-color: var(--danger);
}

.product-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.hover-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .hover-actions {
    bottom: 10px;
    opacity: 1;
}

.hover-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.hover-actions button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.product-info .category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.product-title {
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 8px 0;
    height: 44px; /* Fix height for 2 lines */
    overflow: hidden;
}

.product-title a {
    color: var(--secondary);
}

.product-title a:hover {
    color: var(--primary);
}

.rating {
    color: #FFB800;
    font-size: 12px;
    margin-bottom: 10px;
}

.rating span {
    color: var(--text-muted);
    margin-left: 5px;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-wrap .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
}

.price-wrap .price {
    color: var(--secondary);
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.price-wrap .price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--secondary);
    color: #ccc;
    font-size: 14px;
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-logo {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-widget p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #fff;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
}

.footer-widget h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #ccc;
}

.footer-widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-size: 12px;
}

.contact-item strong {
    color: #fff;
    font-size: 18px;
    font-family: var(--font-heading);
}

.footer-bottom {
    background-color: var(--secondary-light);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-icons {
    display: flex;
    gap: 15px;
    color: #666;
}

/* ==========================================================================
   Volume Quote Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-md);
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 5px;
}

/* ==========================================================================
   WooCommerce Integration (Industrial Overrides)
   ========================================================================== */

/* Buttons */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--secondary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 12px 25px;
    transition: var(--transition);
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Price colors */
.woocommerce div.product p.price, 
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
    color: var(--secondary);
    text-decoration: none;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.woocommerce-breadcrumb a {
    color: var(--secondary);
    font-weight: 600;
}

/* Shop Sidebar */
#secondary .widget h2.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Volume Notice in Single Product */
.volume-notice {
    background-color: #fff9e6;
    border: 1px dashed var(--primary);
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-top: 20px;
}

/* ==========================================================================
   About Section & Stats
   ========================================================================== */
.about-section .about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-section .lead {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .about-stats-grid {
        margin-top: 40px;
    }
}
