/*
Theme Name: Buzz Paints
Theme URI: https://buzzpaints.com
Description: Custom WooCommerce theme for Buzz Paints — UK tabletop miniature paint specialists.
Author: Bee Computers Ltd
Author URI: https://buzzpaints.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
WooCommerce: 8.0
Text Domain: buzz-paints
*/

/* ========================================================
   GOOGLE FONTS & FONT AWESOME — loaded via functions.php
   ======================================================== */

:root {
    --bg-base: #f4f4f5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #fafafa;
    --gold: #b38822;
    --gold-light: #fef9c3;
    --war-red: #da291c;
    --war-red-hover: #b92218;
    --text-main: #18181b;
    --text-muted: #52525b;
    --border: #e4e4e7;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 12px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* 1. TOP BAR */
.top-bar {
    background: #09090b;
    color: #d4d4d8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
}
.top-bar-left span { margin-right: 20px; font-weight: 500; }
.top-bar-left i { color: var(--gold); margin-right: 5px; }
.top-bar-right a { margin-left: 20px; }
.top-bar-right a:hover { color: #fff; }

/* 2. HEADER */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    max-width: 1800px;
    margin: 0 auto;
}
.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}
.logo i { color: var(--war-red); }

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}
.search-container input {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 12px 20px 12px 45px;
    color: var(--text-main);
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}
.search-container input:focus { border-color: var(--war-red); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1); }
.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions { display: flex; gap: 30px; align-items: center; }
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
}
.action-item i { font-size: 1.4rem; color: var(--text-main); margin-bottom: 5px; transition: 0.3s; }
.action-item:hover, .action-item:hover i { color: var(--war-red); }

/* 3. NAVIGATION */
nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 5%;
}
.nav-list > li > a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 15px 0;
    display: block;
    border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover { color: var(--war-red); border-bottom: 3px solid var(--war-red); }
.sale-link { color: var(--war-red) !important; }

/* 4. HERO SECTION */
.hero {
    position: relative;
    height: 70vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%),
                url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2000&auto=format&fit=crop') center/cover;
    border-bottom: 1px solid var(--border);
}
.hero-content {
    max-width: 550px;
    z-index: 2;
}
.badge {
    background: var(--war-red);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 2px;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--text-main);
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--war-red);
    color: #fff;
    border: none;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}
.btn:hover { background: var(--text-main); transform: translateY(-2px); color: #fff; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    clip-path: none;
}
.btn-outline:hover { background: var(--text-main); color: #fff; }

/* 5. ANIMATED BRAND TICKER */
.brand-ticker-wrap {
    background: var(--bg-surface);
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.brand-ticker-wrap::before, .brand-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; width: 100px; height: 100%;
    z-index: 2;
}
.brand-ticker-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.brand-ticker-wrap::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.brand-ticker {
    display: inline-block;
    animation: scroll 30s linear infinite;
}
.brand-ticker-content { display: inline-flex; gap: 80px; padding-right: 80px; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-item {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #d4d4d8;
    transition: 0.3s;
    cursor: pointer;
    font-weight: 600;
}
.brand-item:hover { color: var(--text-main); }

/* 6. TRUST SIGNALS */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: var(--bg-base);
}
.trust-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}
.trust-card i { font-size: 2.2rem; color: var(--war-red); }
.trust-card h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--text-main); }
.trust-card p { font-size: 0.9rem; color: var(--text-muted); }

/* 7. MOSAIC CATEGORIES */
.section-header { text-align: center; padding: 60px 5% 40px; }
.section-header h2 { font-size: 2.8rem; display: inline-block; position: relative; color: var(--text-main); }
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px;
    background: var(--gold);
}
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 20px;
    padding: 0 5%;
    margin-bottom: 60px;
}
.mosaic-item {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}
.mosaic-item img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8;
    transition: 0.7s ease;
}
.mosaic-item:hover img { opacity: 0.5; transform: scale(1.08); }
.mosaic-content {
    position: absolute;
    bottom: 30px; left: 30px;
    z-index: 2;
    color: #fff;
}
.mosaic-content h3 { font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 5px; }
.mosaic-content span {
    background: #fff; color: var(--text-main);
    padding: 5px 12px; font-size: 0.85rem; font-weight: 700;
    font-family: 'Oswald', sans-serif;
    border-radius: 20px;
    display: inline-block;
    transition: 0.3s;
}
.mosaic-item:hover span { background: var(--war-red); color: #fff; }
.mosaic-large { grid-column: span 2; grid-row: span 2; }
.mosaic-wide { grid-column: span 2; grid-row: span 1; }

/* 8. PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 5% 80px;
}
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: #d4d4d8;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.tag-new {
    position: absolute; top: 15px; left: 15px;
    background: var(--gold-light); color: var(--gold);
    border: 1px solid var(--gold);
    padding: 3px 10px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase;
    border-radius: 4px;
}
.product-card img {
    width: 100%; height: 220px; object-fit: contain;
    margin-bottom: 20px;
    mix-blend-mode: multiply;
}
.p-brand { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.p-title { font-size: 1.1rem; margin: 5px 0 15px; flex-grow: 1; font-weight: 600; color: var(--text-main); }
.p-price { font-size: 1.5rem; color: var(--text-main); font-weight: 700; margin-bottom: 20px; font-family: 'Oswald', sans-serif; }
.btn-add {
    width: 100%; padding: 14px;
    background: #fff; color: var(--text-main);
    border: 2px solid var(--border);
    font-family: 'Oswald', sans-serif; font-size: 1.05rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase;
    border-radius: 4px;
    display: block;
    text-align: center;
}
.product-card:hover .btn-add { background: var(--war-red); border-color: var(--war-red); color: #fff; }

/* 9. MID-PAGE PROMO */
.promo-banner {
    margin: 20px 0 60px;
    height: 450px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1599421498111-ce1ce4dfcf10?q=80&w=2000&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.promo-content h2 { font-size: 3.5rem; color: #fff; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.promo-content p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 35px; color: #e4e4e7; }

/* 10. ABOUT / TEXT SPLIT */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 5%;
    background: var(--bg-surface);
    align-items: center;
    margin-bottom: 60px;
}
.about-image {
    width: 100%; height: 450px;
    background: url('https://images.unsplash.com/photo-1581836499506-4a660b39478a?q=80&w=1000&auto=format&fit=crop') center/cover;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}
.about-text h2 { font-size: 2.8rem; margin-bottom: 25px; color: var(--text-main); }
.about-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.15rem; }

/* 11. HOBBY BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 5% 80px;
}
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-content { padding: 25px; }
.blog-date { color: var(--war-red); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.blog-content h3 { font-size: 1.4rem; margin: 10px 0 15px; color: var(--text-main); }
.blog-content p { color: var(--text-muted); font-size: 0.95rem; }

/* 12. FOOTER & NEWSLETTER */
.newsletter {
    background: var(--text-main);
    padding: 70px 5%;
    text-align: center;
}
.newsletter h2 { font-size: 2.8rem; margin-bottom: 10px; color: #fff; }
.newsletter p { margin-bottom: 35px; color: #a1a1aa; font-weight: 400; font-size: 1.1rem; }
.news-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.news-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 4px 0 0 4px;
}
.news-form button {
    padding: 16px 35px;
    background: var(--war-red);
    color: #fff;
    border: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0 4px 4px 0;
}
.news-form button:hover { background: #b92218; }

footer {
    background: #09090b;
    padding: 80px 5% 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-about h3 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.footer-about h3 i { color: var(--war-red); }
.footer-about p { color: #a1a1aa; margin-bottom: 20px; max-width: 400px; }
.footer-col h4 { font-size: 1.2rem; color: #fff; margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #a1a1aa; font-size: 0.95rem; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #27272a;
    color: #71717a;
    font-size: 0.85rem;
}
.payment-icons { display: flex; gap: 15px; font-size: 1.8rem; color: #52525b; }

/* SUB-PAGES */
.page-header { padding: 40px 5%; background: var(--bg-surface); border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 10px; }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--war-red); }
.container { padding: 40px 5%; max-width: 1600px; margin: 0 auto; }
.grid-sidebar { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
.sidebar h3 { font-size: 1.2rem; margin-bottom: 15px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.filter-group { margin-bottom: 25px; }
.filter-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-muted); font-size: 0.95rem; cursor: pointer; }
.filter-item input { width: 16px; height: 16px; accent-color: var(--war-red); }

/* PRODUCT PAGE */
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery-main img { width: 100%; border: 1px solid var(--border); border-radius: 8px; mix-blend-mode: multiply; background: #fff; }
.product-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.qty-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.qty-wrapper input { width: 60px; padding: 15px; text-align: center; border: 1px solid var(--border); font-size: 1.1rem; }

/* CART PAGE */
.grid-cart { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); box-shadow: var(--shadow-soft); }
.data-table th, .data-table td { padding: 20px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-surface-alt); font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.summary-box { background: var(--bg-surface); padding: 30px; border: 1px solid var(--border); border-radius: 8px; position: sticky; top: 40px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-muted); }
.summary-total { font-size: 1.5rem; font-weight: 700; color: var(--text-main); border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px; }

/* BLOG PAGE */
.blog-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }

/* CONTENT NARROW (post/about) */
.content-narrow { max-width: 900px; margin: 60px auto; background: var(--bg-surface); box-shadow: 0 4px 20px rgba(0,0,0,0.04); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.content-narrow-inner { max-width: 800px; margin: 60px auto; padding: 60px; background: var(--bg-surface); box-shadow: 0 4px 20px rgba(0,0,0,0.04); border-radius: 8px; border: 1px solid var(--border); }

/* WooCommerce overrides */
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 15px 20px; margin: 20px 5%; border-radius: 4px; }
.woocommerce-message { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.woocommerce-info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }
.woocommerce-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 10px; justify-content: center; padding: 40px 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { padding: 8px 15px; border: 1px solid var(--border); border-radius: 4px; font-family: 'Oswald', sans-serif; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--war-red); color: #fff; border-color: var(--war-red); }

/* SEARCH */
.search-term { color: var(--war-red); font-style: italic; }
.search-box-large { display: flex; max-width: 600px; margin: 20px auto 0; }
.search-box-large input { flex: 1; padding: 15px 20px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-size: 1rem; }
.search-box-large button { padding: 15px 30px; background: var(--war-red); color: white; border: none; font-family: 'Oswald', sans-serif; font-size: 1.1rem; border-radius: 0 4px 4px 0; cursor: pointer; }

/* RESPONSIVE */
@media(max-width: 1024px) {
    .mosaic-grid { grid-template-columns: 1fr 1fr; }
    .mosaic-large { grid-column: span 2; grid-row: span 1; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-main { gap: 20px; }
    .search-container { order: 4; width: 100%; max-width: 100%; margin: 15px 0 0 0; }
    .mobile-menu-btn { display: block; order: 1; }
    .logo { order: 2; flex-grow: 1; justify-content: center; }
    .header-actions { order: 3; }
}
@media(max-width: 768px) {
    .header-main { flex-wrap: wrap; }
    .search-container { order: 3; max-width: 100%; margin: 20px 0 0; }
    .nav-list { flex-wrap: wrap; gap: 15px; }
    .about-section { grid-template-columns: 1fr; }
    .blog-grid, .footer-grid { grid-template-columns: 1fr; }
    .mosaic-grid { display: flex; flex-direction: column; }
    .mosaic-item { height: 280px; }
    .grid-sidebar { grid-template-columns: 1fr; }
    .grid-half { grid-template-columns: 1fr; }
    .grid-cart { grid-template-columns: 1fr; }
}

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border);
    border-radius: 4px; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; min-width: 220px; z-index: 100; transform: translateY(10px);
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
    display: block; padding: 10px 20px; font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
}
.dropdown-menu li a:hover { color: var(--war-red); background: var(--bg-surface-alt); padding-left: 25px; }

/* --- MOBILE NAVIGATION --- */
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.close-menu { display: none; font-size: 1.5rem; cursor: pointer; position: absolute; top: 20px; right: 20px; color: var(--text-main); }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(4px); }
.mobile-overlay.active { opacity: 1; visibility: visible; }

@media(max-width: 1024px) {
    .nav-list {
        position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
        background: #fff; flex-direction: column; justify-content: flex-start;
        padding: 80px 20px 20px; transition: 0.4s ease; box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        z-index: 1001; gap: 0; overflow-y: auto;
    }
    .nav-list.active { left: 0; }
    .close-menu { display: block; }
    .nav-list > li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-list > li > a { padding: 15px 0; border: none; font-size: 1.2rem; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; display: none; padding: 0 0 10px 15px;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown > a::after { content: '\f0d7'; font-family: "Font Awesome 6 Free"; font-weight: 900; float: right; }
}

/* In stock badge */
.badge-stock { background: var(--gold-light); color: var(--gold); border: 1px solid var(--gold); padding: 3px 10px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; border-radius: 4px; display: inline-block; }
.badge-instock { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-outofstock { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
/* ========================================================
   WOOCOMMERCE ADD-TO-CART / PRODUCT FORMS
   ======================================================== */

.woocommerce div.quantity,
.woocommerce .quantity { display: inline-flex; align-items: center; margin-bottom: 20px; }

.woocommerce div.quantity input.qty,
.woocommerce .quantity input.qty,
.woocommerce input.qty {
    width: 70px; padding: 14px 10px; text-align: center;
    border: 2px solid var(--border); border-radius: 4px;
    font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600;
    color: var(--text-main); background: #fff; -moz-appearance: textfield;
}
.woocommerce div.quantity input.qty:focus,
.woocommerce .quantity input.qty:focus { border-color: var(--war-red); outline: none; }

.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    display: inline-block; padding: 16px 40px;
    font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600;
    background: var(--war-red) !important; color: #fff !important;
    border: none !important; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 4px; transition: 0.3s; text-decoration: none;
}
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--war-red-hover) !important; transform: translateY(-1px); color: #fff !important;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    display: inline-block; padding: 12px 30px;
    font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
    background: var(--text-main) !important; color: #fff !important;
    border: none !important; cursor: pointer;
    text-transform: uppercase; border-radius: 4px; transition: 0.3s; text-decoration: none;
}
.woocommerce button.button:hover, .woocommerce a.button:hover {
    background: #3f3f46 !important; color: #fff !important;
}

.woocommerce form.cart {
    display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px;
}

.woocommerce .stock.out-of-stock { color: var(--war-red); font-weight: 700; font-size: 0.95rem; margin-bottom: 15px; }
.woocommerce .stock.in-stock { color: #155724; font-weight: 700; font-size: 0.95rem; margin-bottom: 15px; }

.woocommerce-notices-wrapper .woocommerce-message {
    background: #d4edda; border: 1px solid #c3e6cb; color: #155724;
    padding: 15px 20px; border-radius: 4px; margin: 20px 5%; font-size: 1rem;
}
.woocommerce-notices-wrapper .woocommerce-error {
    background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24;
    padding: 15px 20px; border-radius: 4px; margin: 20px 5%;
}

.woocommerce ul.products::after { display: none; }

/* ========================================================
   CART & CHECKOUT — WIDE CONTAINER OVERRIDE
   ======================================================== */

/* Let WooCommerce block cart/checkout use full width */
.woocommerce-cart .content-narrow-inner,
.woocommerce-checkout .content-narrow-inner {
    max-width: 1400px !important;
    padding: 40px 5% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 20px auto !important;
}

/* WooCommerce block cart primary button (proceed to checkout) */
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
    background: var(--war-red) !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 16px 40px !important;
}
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button:hover {
    background: var(--war-red-hover) !important;
}

/* Block checkout place order button */
.wc-block-components-checkout-place-order-button {
    background: var(--war-red) !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
}
