/*
Theme Name: CMJ Jeler Shop
Theme URI: https://cmjeler.ro
Author: CMJ Jeler
Author URI: https://cmjeler.ro
Description: Tema personalizată pentru CMJ Jeler - Distribuitor Autorizat Snap-on & Kent
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietar
Text Domain: cmj-theme
Tags: woocommerce, ecommerce, custom
*/

/* ============================================================
   GLOBAL VARIABLES & RESET
   ============================================================ */
:root {
    --cmj-blue: #2b3990;
    --cmj-blue-dark: #1e2a70;
    --cmj-blue-hover: #1e3a8a;
    --cmj-dark: #1e293b;
    --cmj-gray: #f8fafc;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.cmj-btn-primary {
    background-color: var(--cmj-blue);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cmj-btn-primary:hover { background-color: var(--cmj-blue-hover); transform: translateY(-2px); color: #fff; }

.cmj-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    border-left: 4px solid var(--cmj-blue);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: #6b7280;
}
.site-topbar .topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.site-topbar .topbar-contact { display: flex; gap: 1rem; font-weight: 600; }
.site-topbar a:hover { color: var(--cmj-blue); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main { padding: 1rem 0; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-logo a {
    background-color: var(--cmj-blue);
    padding: 0.5rem 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(43,57,144,0.3);
    display: inline-block;
    transition: transform 0.2s;
}
.site-logo a:hover { transform: scale(1.05); }
.site-logo img { height: 55px; width: auto; filter: brightness(0) invert(1); }

.header-search { flex: 1; max-width: 48rem; }
.header-search form { display: flex; align-items: center; position: relative; }
.header-search input[type="search"] {
    width: 100%;
    height: 3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0 3.5rem 0 1rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.header-search input[type="search"]:focus { outline: none; border-color: var(--cmj-blue); background: #fff; }
.header-search button {
    position: absolute;
    right: 4px; top: 4px; bottom: 4px;
    background: var(--cmj-blue);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.header-search button:hover { background: var(--cmj-blue-dark); }

.header-actions { display: flex; align-items: center; gap: 2rem; }
.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
}
.header-action-item:hover { color: var(--cmj-blue); }
.header-action-item i { font-size: 1.5rem; margin-bottom: 0.25rem; transition: transform 0.2s; }
.header-action-item:hover i { transform: scale(1.1); }
.cart-count-badge {
    position: absolute;
    top: -4px; right: -8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    width: 1.25rem; height: 1.25rem;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.site-nav-bar {
    border-top: 1px solid #f1f5f9;
    background: #fff;
}
.site-nav-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    align-items: center;
}
.site-nav-bar nav a:hover { color: var(--cmj-blue); }
.nav-all-products { color: var(--cmj-blue); display: flex; align-items: center; gap: 0.5rem; position: relative; cursor: pointer; }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    width: 16rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-top: 4px solid var(--cmj-blue);
    border-radius: 0 0 0.5rem 0.5rem;
    display: none;
    z-index: 200;
}
.nav-all-products:hover .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, padding-left 0.15s;
}
.nav-dropdown a:hover { background: #eff6ff; padding-left: 2rem; color: var(--cmj-blue); font-weight: 600; }
.nav-special { color: #dc2626 !important; margin-left: auto; }
.nav-special:hover { color: #b91c1c !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--cmj-dark);
    color: #9ca3af;
    padding: 4rem 0 0;
    border-top: 1px solid #374151;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 1rem; }
.footer-col .contact-item i { color: var(--cmj-blue); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 2.5rem; height: 2.5rem;
    background: #374151;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
    color: #9ca3af;
}
.footer-social a:hover { background: var(--cmj-blue); color: #fff; }
.footer-bottom {
    border-top: 1px solid #374151;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.product-card-image {
    position: relative;
    background: #f8fafc;
    border-radius: 0.75rem;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1rem;
}
.product-card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s;
}
.product-card:hover .product-card-image img { transform: scale(1.1); }
.product-badge {
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 1;
    color: #fff;
}
.badge-stock { background: #22c55e; }
.badge-new { background: #3b82f6; }
.badge-sale { background: #dc2626; }
.product-brand { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 0.25rem; }
.product-title { font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; transition: color 0.2s; line-height: 1.4; }
.product-title a:hover { color: var(--cmj-blue); }
.product-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.product-price { font-size: 1.125rem; font-weight: 800; color: var(--cmj-blue); }
.product-price-old { font-size: 0.75rem; color: #94a3b8; text-decoration: line-through; }
.btn-add-to-cart {
    width: 2.5rem; height: 2.5rem;
    background: #f1f5f9;
    color: var(--cmj-blue);
    border: none;
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.btn-add-to-cart:hover { background: var(--cmj-blue); color: #fff; }

/* ============================================================
   HOMEPAGE - HERO
   ============================================================ */
.hero-section { padding: 2rem 0; }
.hero-banner {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 10; padding: 3rem; max-width: 36rem; color: #fff; }
.hero-badge {
    background: rgba(59,130,246,0.3);
    color: #bfdbfe;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(96,165,250,0.3);
    backdrop-filter: blur(4px);
    display: inline-block;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-title span { color: #93c5fd; }
.hero-subtitle { color: #e5e7eb; margin-bottom: 2rem; font-size: 1.1rem; font-weight: 300; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ============================================================
   HOMEPAGE - CATEGORIES
   ============================================================ */
.categories-section { padding: 2rem 0; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}
.category-card {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.category-card:hover { border-color: var(--cmj-blue); box-shadow: 0 8px 20px rgba(43,57,144,0.1); }
.category-icon {
    width: 3.5rem; height: 3.5rem;
    background: #eff6ff;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--cmj-blue);
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s;
}
.category-card:hover .category-icon { background: var(--cmj-blue); color: #fff; }
.category-card h3 { font-weight: 700; font-size: 0.875rem; color: #334155; transition: color 0.2s; }
.category-card:hover h3 { color: var(--cmj-blue); }
.category-card.promo .category-icon { background: #fef2f2; color: #ef4444; }
.category-card.promo:hover .category-icon { background: #dc2626; color: #fff; }
.category-card.promo h3 { color: #dc2626; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { padding: 2rem 0 3rem; }
.products-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.products-section-header h2 { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.products-section-header a { color: var(--cmj-blue); font-weight: 600; font-size: 0.875rem; transition: text-decoration 0.2s; }
.products-section-header a:hover { text-decoration: underline; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-page-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 2rem 0; }
.shop-breadcrumb { font-size: 0.75rem; color: #6b7280; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-breadcrumb a:hover { color: var(--cmj-blue); }
.shop-breadcrumb .current { color: var(--cmj-blue); font-weight: 700; }
.shop-page-title { font-size: 1.875rem; font-weight: 800; color: #1e293b; }
.shop-layout { padding: 3rem 0; }
.shop-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
@media (max-width: 1024px) { .shop-grid { grid-template-columns: 1fr; } }

/* Sidebar */
.shop-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.sidebar-widget h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 0.5rem; }
.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.2s;
}
.sidebar-widget ul li a:hover, .sidebar-widget ul li a.active { color: var(--cmj-blue); font-weight: 700; }
.category-count { font-size: 0.75rem; background: #f8fafc; padding: 0.15rem 0.5rem; border-radius: 9999px; }
.active .category-count { background: #eff6ff; }
.price-filter { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.price-filter input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
}
.brand-filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}
.brand-filter label:hover { color: var(--cmj-blue); }
.brand-filter input[type="checkbox"] { accent-color: var(--cmj-blue); width: 1rem; height: 1rem; }
.btn-filter {
    width: 100%;
    background: #f1f5f9;
    color: #374151;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.btn-filter:hover { background: var(--cmj-blue); color: #fff; }

/* Shop toolbar */
.shop-toolbar {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.shop-result-count { font-size: 0.875rem; color: #6b7280; }
.shop-result-count strong { color: #1e293b; }
.shop-toolbar-right { display: flex; align-items: center; gap: 1rem; }
.shop-sort select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    color: #374151;
}
.view-toggle button {
    width: 2rem; height: 2rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.view-toggle .active { background: var(--cmj-blue); color: #fff; }
.view-toggle .inactive { background: #f1f5f9; color: #6b7280; }
.view-toggle .inactive:hover { background: #e2e8f0; }

.shop-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }

/* Pagination */
.shop-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-num {
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid #e2e8f0;
    color: #6b7280;
}
.page-num:hover { background: var(--cmj-blue); color: #fff; border-color: var(--cmj-blue); }
.page-num.current { background: var(--cmj-blue); color: #fff; border-color: var(--cmj-blue); }
.page-dots { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; color: #9ca3af; }

/* ============================================================
   PRODUCT PAGE (SINGLE)
   ============================================================ */
.product-breadcrumb-bar { padding: 1rem 0; }
.product-breadcrumb { font-size: 0.75rem; color: #6b7280; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.product-breadcrumb a:hover { color: var(--cmj-blue); }
.product-breadcrumb .current { color: var(--cmj-blue); font-weight: 700; }

.single-product-section { padding: 1.5rem 0; }
.single-product-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.07); padding: 2.5rem; }
.single-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 1024px) { .single-product-grid { grid-template-columns: 1fr; } }

/* Gallery */
.product-gallery-main {
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    min-height: 350px;
    position: relative;
}
.product-gallery-main img {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s;
}
.product-gallery-main:hover img { transform: scale(1.05); }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.thumb-item {
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.thumb-item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb-item.active { border-color: var(--cmj-blue); }
.thumb-item:hover { border-color: var(--cmj-blue); }

/* Product info */
.product-info { display: flex; flex-direction: column; }
.product-meta-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.product-sku { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.product-brand-tag { background: #f1f5f9; color: #374151; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 0.25rem; text-transform: uppercase; }
.product-title-single { font-size: 1.75rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.875rem; }
.stars { color: #facc15; font-size: 0.75rem; display: flex; gap: 1px; }
.rating-count { color: #6b7280; }
.product-price-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
}
.price-excl-vat { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; }
.price-main { font-size: 2.5rem; font-weight: 800; color: var(--cmj-blue); line-height: 1; }
.price-unit { font-size: 0.875rem; color: #6b7280; font-weight: 700; margin-left: 0.5rem; }
.price-stock { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #16a34a; display: flex; align-items: center; gap: 0.25rem; }
.product-description { color: #4b5563; line-height: 1.75; margin-bottom: 2rem; }
.product-actions { display: flex; gap: 1rem; margin-bottom: 2rem; }
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8fafc;
    width: 8rem;
}
.qty-control button {
    width: 2.5rem; height: 3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.qty-control button:hover { background: #e2e8f0; color: var(--cmj-blue); }
.qty-control input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
}
.btn-add-to-cart-main {
    flex: 1;
    background: var(--cmj-blue);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 14px rgba(43,57,144,0.3);
    transition: background 0.2s, transform 0.2s;
}
.btn-add-to-cart-main:hover { background: var(--cmj-blue-dark); transform: translateY(-2px); }
.product-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-item i { color: var(--cmj-blue); }
.trust-item a { text-decoration: underline; }
.trust-item a:hover { color: #dc2626; }

/* Product tabs */
.product-tabs-section { padding: 2rem 0; }
.product-tabs-card { background: #fff; border-radius: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.tabs-nav { display: flex; background: #f8fafc; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.tab-btn {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.tab-btn:hover { color: var(--cmj-blue); background: #fff; }
.tab-btn.active { color: var(--cmj-blue); background: #fff; border-bottom-color: var(--cmj-blue); }
.tab-content { padding: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.specs-table { width: 100%; font-size: 0.875rem; color: #4b5563; border-collapse: collapse; }
.specs-table th { background: #f8fafc; font-weight: 600; color: #1e293b; padding: 0.75rem 1rem; text-align: left; width: 33%; min-width: 140px; border-bottom: 1px solid #f1f5f9; }
.specs-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9; }

/* Related products */
.related-products-section { padding: 2rem 0 3rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: stretch; }
    .site-logo { text-align: center; }
    .header-actions { justify-content: center; }
    .hero-content { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .single-product-card { padding: 1.25rem; }
    .product-actions { flex-direction: column; }
    .qty-control { width: 100%; }
    .product-trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { padding: 1rem 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #fff;
    border-left: 4px solid var(--cmj-blue);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.woocommerce-error { border-left-color: #dc2626; }
