/*
Theme Name: BMS-Arms
Theme URI: http://bms-arms.com
Description: Modern WordPress theme for BMS-Arms wapenhandel - specialist in antieke wapens, zwartkruit munitie en schietsport.
Version: 1.0
Author: BMS-Arms
Text Domain: bms-arms
*/

/* ============================================================
   IMPORTS & RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1a1c0f;
    background-image:
        radial-gradient(ellipse at top, #2a2d18 0%, #1a1c0f 60%);
    font-family: 'Lato', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #c8bc8a;
    min-height: 100vh;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    color: #d4aa44;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: 2.4em;
}

h2 {
    font-size: 1.9em;
}

h3 {
    font-size: 1.4em;
}

h4 {
    font-size: 1.1em;
}

p {
    margin: 0 0 1.2em;
    color: #bdb28a;
}

a {
    color: #d4aa44;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0cb66;
    text-decoration: underline;
}

ul,
ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

strong {
    color: #d9cc9a;
    font-weight: 700;
}

hr {
    border: none;
    border-top: 1px solid #3a3820;
    margin: 2em 0;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    background: linear-gradient(135deg, #0d0f07 0%, #1e2210 40%, #2a3015 100%);
    border-bottom: 3px solid #5a4e18;
    padding: 0;
    position: relative;
    overflow: hidden;
}

#site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(90, 78, 24, 0.04) 2px,
            rgba(90, 78, 24, 0.04) 4px);
    pointer-events: none;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    z-index: 1;
}

.header-branding {
    flex: 0 0 auto;
}

.site-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.2em;
    font-weight: 700;
    color: #d4aa44;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 170, 68, 0.2);
    line-height: 1;
    margin: 0;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.site-title:hover {
    color: #f0cb66;
    text-decoration: none;
}

.site-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    color: #8a7e4a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 300;
}

.header-shield {
    font-size: 5em;
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
    background: #0d0f07;
    border-bottom: 2px solid #3a3317;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-inner>ul>li {
    position: relative;
}

.nav-inner>ul>li>a {
    display: block;
    padding: 14px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82em;
    font-weight: 700;
    color: #b0a060;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-right: 1px solid #1e2010;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-inner>ul>li>a:hover,
.nav-inner>ul>li.current-menu-item>a {
    background: #1e2810;
    color: #d4aa44;
    text-decoration: none;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
#page-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#primary-content {
    flex: 1;
    min-width: 0;
}

#sidebar {
    flex: 0 0 230px;
    width: 230px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-box {
    background: linear-gradient(180deg, #252818 0%, #1e2110 100%);
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 30px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-title {
    font-size: 1.9em;
    color: #d4aa44;
    border-bottom: 2px solid #4a4220;
    padding-bottom: 12px;
    margin-bottom: 22px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #d4aa44;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
    background: linear-gradient(180deg, #1a1e0d 0%, #151808 100%);
    border: 1px solid #3a3820;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(90deg, #2a2c18, #1e2010);
    color: #cfbf66;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95em;
    padding: 10px 15px;
    margin: 0;
    border-bottom: 2px solid #4a4220;
    letter-spacing: 0.06em;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px dotted #2a2e18;
    margin: 0;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: block;
    padding: 9px 15px 9px 18px;
    font-size: 0.88em;
    color: #cbbf88;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, padding 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li.current-menu-item a {
    background: #1e2810;
    color: #d4aa44;
    padding-left: 22px;
    border-left-color: #d4aa44;
    text-decoration: none;
}

/* ============================================================
   PRODUCT LISTINGS
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    background: #1a1e0d;
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: #6a5a20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-card img:hover {
    opacity: 0.88;
}

.product-nr {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8em;
    color: #8a7e4a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.product-name {
    font-size: 0.95em;
    font-weight: 700;
    color: #d4d0a8;
    margin-bottom: 4px;
}

.product-type {
    font-size: 0.8em;
    color: #8a7e4a;
    margin-bottom: 4px;
}

.product-price {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1em;
    color: #d4aa44;
    font-weight: 700;
}

.product-condition {
    font-size: 0.78em;
    color: #6a8a5a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-condition.used {
    color: #8a7e4a;
}

/* ============================================================
   SINGLE PRODUCT LISTING (original inline style)
   ============================================================ */
.product-listing {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2e2e1a;
}

.product-listing:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-listing img {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
    border-radius: 3px;
    border: 1px solid #3a3820;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-listing img:hover {
    border-color: #6a5a20;
}

.product-listing-info {
    flex: 1;
    min-width: 0;
}

.product-listing-info .nr {
    font-size: 0.78em;
    color: #8a7e4a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.product-listing-info .brand {
    font-size: 1.05em;
    font-weight: 700;
    color: #d4d0a8;
    margin-bottom: 2px;
}

.product-listing-info .cal {
    font-size: 0.9em;
    color: #9a9070;
    margin-bottom: 6px;
}

.product-listing-info .price {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15em;
    color: #d4aa44;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-listing-info .category-tag {
    display: inline-block;
    font-size: 0.72em;
    color: #5a5030;
    background: #2a2e18;
    border: 1px solid #3a3820;
    border-radius: 2px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   ALERT/INFO BOXES
   ============================================================ */
.alert-box {
    background: rgba(90, 70, 20, 0.2);
    border: 1px solid #5a4e18;
    border-left: 4px solid #d4aa44;
    border-radius: 3px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #c8bc8a;
}

.alert-box.warning {
    border-left-color: #c05020;
    background: rgba(90, 30, 15, 0.2);
}

/* ============================================================
   IMAGES
   ============================================================ */
.entry img {
    max-width: 100%;
    height: auto;
    border: 1px solid #3a3820;
    border-radius: 3px;
}

.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 15px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap {
    background: #151808;
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 24px;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
    width: 100%;
    background: #0d0f07;
    border: 1px solid #3a3820;
    border-radius: 3px;
    padding: 10px 14px;
    color: #c8bc8a;
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: #d4aa44;
}

.contact-form-wrap label {
    display: block;
    margin-bottom: 6px;
    color: #a09060;
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-form-wrap .form-group {
    margin-bottom: 18px;
}

.contact-form-wrap textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-wrap input[type="submit"],
.btn {
    background: linear-gradient(135deg, #5a4e18, #8a7020);
    color: #f0e8c0;
    border: 1px solid #6a5a20;
    border-radius: 3px;
    padding: 12px 28px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
}

.contact-form-wrap input[type="submit"]:hover,
.btn:hover {
    background: linear-gradient(135deg, #6a5e28, #9a8030);
    box-shadow: 0 2px 12px rgba(212, 170, 68, 0.3);
}

/* WooCommerce-style CF7 */
.wpcf7-form p {
    margin-bottom: 14px;
}

.wpcf7-form .wpcf7-form-control {
    background: #0d0f07;
    border: 1px solid #3a3820;
    color: #c8bc8a;
    padding: 8px 12px;
    font-size: 0.9em;
    border-radius: 3px;
}

.wpcf7-form .wpcf7-submit {
    background: linear-gradient(135deg, #5a4e18, #8a7020);
    color: #f0e8c0;
    border: 1px solid #6a5a20;
    padding: 10px 24px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid #4a4220;
    border-radius: 3px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5em;
    color: #8a7e4a;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #d4aa44;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: #0a0c06;
    border-top: 2px solid #3a3317;
    padding: 30px 20px;
    text-align: center;
    color: #5a5428;
    font-size: 0.82em;
    letter-spacing: 0.06em;
}

#site-footer .footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

#site-footer p {
    color: #5a5428;
    margin: 0;
}

#site-footer a {
    color: #8a7a38;
}

#site-footer a:hover {
    color: #d4aa44;
}

.footer-nav {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.footer-nav li a {
    color: #6a6030;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-nav li a:hover {
    color: #d4aa44;
    text-decoration: none;
}

/* ============================================================
   FRONT PAGE
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #161a0b 0%, #242818 50%, #1a1e0c 100%);
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 170, 68, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1em;
    color: #8a7e4a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1em;
    color: #a09a70;
    max-width: 560px;
    margin: 0 auto 28px;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #5a4e18, #8a7020);
    color: #f0e8c0 !important;
    border: 1px solid #6a5a20;
    border-radius: 3px;
    padding: 12px 32px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    background: linear-gradient(135deg, #6a5e28, #9a8030);
    box-shadow: 0 4px 16px rgba(212, 170, 68, 0.3);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.category-card {
    background: linear-gradient(180deg, #1e2210 0%, #161a0a 100%);
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: block;
}

.category-card:hover {
    border-color: #6a5a22;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-card-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.category-card-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85em;
    color: #cfbf66;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-box {
    text-align: center;
    padding: 60px 30px;
}

.error-404-code {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 7em;
    color: #2e2c18;
    line-height: 1;
    margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
    #page-wrap {
        flex-direction: column;
    }

    #sidebar {
        flex: none;
        width: 100%;
    }

    .header-inner {
        min-height: 100px;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 6px;
    }

    .site-title {
        font-size: 2.2em;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .product-listing {
        flex-direction: column;
    }

    .product-listing img {
        flex: none;
        width: 100%;
    }

    .hero-section {
        padding: 28px 20px;
    }

    .content-box {
        padding: 20px;
    }
}

/* ============================================================
   MODERNIZATION â€” Scroll reveal animations
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lightboxIn {
    from {
        transform: scale(0.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.content-box {
    animation: fadeInUp 0.5s ease both;
}

.sidebar-widget {
    animation: fadeInUp 0.55s ease both;
    animation-delay: 0.05s;
}

/* ============================================================
   MODERNIZATION â€” Product listing image zoom on hover
   ============================================================ */
.product-listing {
    border-radius: 6px;
    background: linear-gradient(180deg, #23261500 0%, #1c1f0e 100%);
    transition: background 0.25s, box-shadow 0.25s;
    padding: 16px;
    border-bottom: 1px solid #2e2e1a;
}

.product-listing:hover {
    background: linear-gradient(180deg, #2a2f1a 0%, #222612 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.product-listing .img-wrap {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #3a3820;
    line-height: 0;
}

/* When img is a direct child (existing markup) â€” apply overflow clip */
.product-listing>img {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #3a3820;
    cursor: zoom-in;
    transition: transform 0.35s ease, border-color 0.2s;
    display: block;
}

.product-listing:hover>img {
    transform: scale(1.04);
    border-color: #7a6628;
}

/* ============================================================
   MODERNIZATION â€” Product cards (enhanced)
   ============================================================ */
.product-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1e2210 0%, #161a0a 100%);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #7a6628;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 170, 68, 0.08);
}

.product-card .img-container {
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 12px;
}

.product-card img {
    transition: transform 0.4s ease, opacity 0.2s;
}

.product-card:hover img {
    transform: scale(1.06);
    opacity: 0.92;
}

/* Gold shine strip at top on hover */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4aa44, transparent);
    transition: left 0.4s ease;
}

.product-card:hover::after {
    left: 100%;
}

/* ============================================================
   MODERNIZATION â€” Lightbox enhanced animation
   ============================================================ */
.lightbox-overlay {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease both;
}

.lightbox-overlay.active img {
    animation: lightboxIn 0.28s cubic-bezier(0.2, 0.8, 0.4, 1) both;
}

.lightbox-overlay img {
    border: 2px solid rgba(212, 170, 68, 0.4);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(212, 170, 68, 0.1);
}

/* ============================================================
   MODERNIZATION â€” Product badges / tags
   ============================================================ */
.badge-new {
    display: inline-block;
    background: linear-gradient(90deg, #3a6a20, #4a8a28);
    color: #c0f0a0;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-used {
    display: inline-block;
    background: #2a2e18;
    color: #9a9060;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #3a3820;
    border-radius: 2px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-sold {
    display: inline-block;
    background: rgba(80, 30, 18, 0.4);
    color: #c04030;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #5a2810;
    border-radius: 2px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================================
   MODERNIZATION â€” improved alert boxes
   ============================================================ */
.alert-box {
    position: relative;
    overflow: hidden;
}

.alert-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(212, 170, 68, 0.3), transparent);
    border-radius: 0 3px 3px 0;
}

/* ============================================================
   MODERNIZATION â€” Page title decoration
   ============================================================ */
.page-title {
    position: relative;
}

.page-title::before {
    content: 'âš”';
    font-size: 0.55em;
    opacity: 0.35;
    margin-right: 10px;
    vertical-align: middle;
    font-style: normal;
}

/* ============================================================
   MODERNIZATION â€” Sidebar nav active pulse
   ============================================================ */
.sidebar-nav li.current-menu-item a,
.sidebar-nav li.active a {
    background: linear-gradient(90deg, #1e3010, #1a2a0e);
    color: #d4aa44;
    padding-left: 22px;
    border-left: 3px solid #d4aa44;
    text-decoration: none;
    position: relative;
}

/* ============================================================
   MODERNIZATION â€” Hero section parallax shimmer
   ============================================================ */
.hero-section {
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%,
            rgba(212, 170, 68, 0) 0deg,
            rgba(212, 170, 68, 0.03) 60deg,
            rgba(212, 170, 68, 0) 120deg);
    animation: shimmer 12s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   MODERNIZATION â€” Smooth image loading
   ============================================================ */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[src]:not([src=""]) {
    opacity: 1;
}

/* CSS-only fallback: once layout is painted, show all imgs */
body img {
    opacity: 1;
}

/* ============================================================
   MODERNIZATION â€” Navigation hover underline animation
   ============================================================ */
.nav-inner>ul>li>a {
    position: relative;
}

.nav-inner>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #d4aa44;
    transition: left 0.2s ease, right 0.2s ease;
}

.nav-inner>ul>li>a:hover::after,
.nav-inner>ul>li.current-menu-item>a::after {
    left: 0;
    right: 0;
}

/* ============================================================
   MODERNIZATION â€” Footer divider
   ============================================================ */
#site-footer {
    position: relative;
}

#site-footer::before {
    content: 'âš” BMS-Arms âš”';
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75em;
    color: #3a3420;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    #site-nav,
    #sidebar,
    .lightbox-overlay {
        display: none !important;
    }

    #page-wrap {
        display: block;
    }

    #primary-content {
        width: 100%;
    }

    .content-box {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
/* ============================================================
   TELEGRAM BUTTON
   ============================================================ */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #1a75a0 0%, #1a97c4 100%);
    color: #ffffff !important;
    border: 1px solid #1a88b5;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-top: 10px;
    white-space: nowrap;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #1585b5 0%, #1aa8d8 100%);
    box-shadow: 0 4px 16px rgba(26,150,195,0.35);
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #fff !important;
}

.telegram-btn .tg-icon {
    font-size: 1.1em;
    line-height: 1;
}

/* Sidebar & footer variants */
.telegram-btn--sidebar {
    display: flex;
    width: 100%;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.85em;
    padding: 9px 12px;
    box-sizing: border-box;
}

.telegram-btn--footer {
    font-size: 0.9em;
    color: #b0e8ff !important;
    background: transparent;
    border-color: rgba(26,150,195,0.4);
}

.telegram-btn--footer:hover {
    background: rgba(26,150,195,0.15);
    color: #fff !important;
}

/* Product listing inline Telegram button */
.product-listing .telegram-btn {
    margin-top: 12px;
    font-size: 0.82em;
    padding: 7px 14px;
}

/* Sidebar contact link */
.contact-form-link {
    display: inline-block;
    background: #2a2e18;
    border: 1px solid #4a4220;
    border-radius: 3px;
    padding: 6px 14px;
    color: #cfbf66 !important;
    font-size: 0.88em;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.contact-form-link:hover {
    background: #363c20;
    color: #d4aa44 !important;
    text-decoration: none !important;
}
/* ============================================================
   BLOG — Section header on homepage
   ============================================================ */
.blog-section-home {
    max-width: 980px;
    margin: 28px auto 0;
    padding: 0 0 50px;
}

.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.blog-section-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5em;
    color: #d4aa44;
    margin: 0;
    position: relative;
}

.blog-section-title::before {
    content: '?';
    font-size: 0.55em;
    opacity: 0.45;
    margin-right: 10px;
    vertical-align: middle;
}

.blog-section-all {
    font-family: 'Cinzel', serif;
    font-size: 0.8em;
    color: #8a7a38;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #3a3820;
    border-radius: 3px;
    padding: 6px 14px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.blog-section-all:hover {
    color: #d4aa44;
    border-color: #6a5a20;
    background: #1e2210;
    text-decoration: none;
}

/* ============================================================
   BLOG — Card grid
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.blog-grid--home {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
    .blog-grid--home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .blog-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   BLOG — Card
   ============================================================ */
.blog-card {
    background: linear-gradient(180deg, #1e2210 0%, #161a0a 100%);
    border: 1px solid #3a3820;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    position: relative;
    list-style: none;
    margin: 0;
}

.blog-card:hover {
    border-color: #7a6628;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,170,68,0.07);
    transform: translateY(-3px);
}

/* Gold sweep effect */
.blog-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #d4aa44, transparent);
    transition: left 0.4s ease;
}

.blog-card:hover::after {
    left: 100%;
}

/* Thumbnail */
.blog-card-thumb-link {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.blog-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #1a1e0d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.07);
}

.blog-card-thumb--placeholder {
    background: linear-gradient(135deg, #1a1e0d, #252a14);
    border-bottom: 1px solid #2e321a;
}

.blog-placeholder-icon {
    font-size: 2.8em;
    opacity: 0.2;
    user-select: none;
}

/* Card body */
.blog-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta row: date + category */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.blog-card-date {
    font-size: 0.75em;
    color: #6a6030;
    letter-spacing: 0.05em;
}

.blog-card-cat {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #8a7030;
    background: #252a14;
    border: 1px solid #3a3820;
    border-radius: 2px;
    padding: 2px 7px;
}

/* Title */
.blog-card-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.98em;
    font-weight: 600;
    color: #d4d0a8;
    line-height: 1.4;
    margin: 0 0 10px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #d4aa44;
    text-decoration: none;
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 0.86em;
    color: #9a9060;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

/* Read more link */
.blog-read-more {
    display: inline-block;
    font-size: 0.82em;
    font-weight: 700;
    color: #a08828;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid #4a401a;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
    align-self: flex-start;
    margin-top: auto;
}

.blog-read-more:hover {
    color: #d4aa44;
    border-color: #8a7020;
    text-decoration: none;
}

/* ============================================================
   BLOG — Single post (single.php area)
   ============================================================ */
.blog-post-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #2e2e1a;
}

.blog-post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.blog-post-thumbnail {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #3a3820;
}

.blog-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   BLOG — Pagination
   ============================================================ */
.blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #2e2e1a;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #1a1e0d;
    border: 1px solid #3a3820;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88em;
    color: #9a9060;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #2a2e18;
    border-color: #6a5a20;
    color: #d4aa44;
    text-decoration: none;
}

.blog-pagination .page-numbers.current {
    font-weight: 700;
}

/* ============================================================
   BLOG — Empty state
   ============================================================ */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6a6030;
}

.blog-empty .blog-placeholder-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 16px;
    opacity: 0.25;
}

.blog-empty h2 {
    color: #7a7040;
    margin-bottom: 10px;
}
/* ============================================================
   SINGLE POST — Author line
   ============================================================ */
.post-author-line {
    font-size: 0.82em;
    color: #6a6030;
    margin: 6px 0 0;
    letter-spacing: 0.03em;
}

/* ============================================================
   SINGLE POST — Full content area
   ============================================================ */
.single-post-content {
    margin-top: 20px;
    font-size: 0.97em;
    line-height: 1.85;
    color: #bdb28a;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #d4aa44;
    margin-top: 28px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #3a3820;
    border-radius: 3px;
    margin: 14px 0;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.single-post-content blockquote {
    background: rgba(90,78,24,0.1);
    border-left: 4px solid #5a4e18;
    margin: 20px 0;
    padding: 14px 20px;
    color: #a09060;
    font-style: italic;
    border-radius: 0 3px 3px 0;
}

.single-post-content a {
    color: #d4aa44;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #f0cb66;
}

/* Multi-page post links */
.page-links {
    margin-top: 24px;
    font-size: 0.88em;
    color: #6a6030;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #1a1e0d;
    border: 1px solid #3a3820;
    border-radius: 3px;
    color: #9a9060;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.page-links .page-numbers:hover {
    border-color: #6a5a20;
    color: #d4aa44;
}

/* ============================================================
   SINGLE POST — Footer (tags + CTA)
   ============================================================ */
.single-post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2e2e1a;
}

.single-post-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

/* Post tags */
.post-tags,
.post-tags-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tags-label {
    font-size: 0.78em;
    color: #5a5430;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 2px;
}

.post-tag {
    display: inline-block;
    font-size: 0.72em;
    color: #8a7a38;
    background: #1e2210;
    border: 1px solid #3a3820;
    border-radius: 2px;
    padding: 3px 9px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.post-tag:hover {
    background: #252c12;
    color: #d4aa44;
    text-decoration: none;
}

/* ============================================================
   SINGLE POST — Prev / Next navigation
   ============================================================ */
.single-post-nav {
    margin-top: 28px;
}

.post-nav-links {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 160px;
    background: linear-gradient(180deg, #1e2210 0%, #161a0a 100%);
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 14px 18px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-nav-link:hover {
    border-color: #6a5a20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    text-decoration: none;
}

.post-nav-blog {
    flex: 0 0 auto;
    min-width: auto;
    padding: 14px 22px;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 0.82em;
    color: #8a7a38;
    letter-spacing: 0.08em;
    text-align: center;
}

.post-nav-blog:hover {
    color: #d4aa44;
}

.post-nav-prev {
    align-items: flex-start;
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-dir {
    font-size: 0.75em;
    color: #5a5430;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-title {
    font-size: 0.9em;
    color: #cfbf88;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.comment-body {
    background: #1a1e0d;
    border: 1px solid #3a3820;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: #d4d0a8;
}

.comment-metadata {
    font-size: 0.78em;
    color: #5a5430;
    margin-top: 2px;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 0.9em;
    color: #9a9060;
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 0.78em;
    color: #8a7a38;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #0d0f07;
    border: 1px solid #3a3820;
    border-radius: 3px;
    padding: 9px 12px;
    color: #c8bc8a;
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, #5a4e18, #8a7020);
    color: #f0e8c0;
    border: 1px solid #6a5a20;
    border-radius: 3px;
    padding: 10px 24px;
    font-family: 'Cinzel', serif;
    font-size: 0.88em;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #6a5e28, #9a8030);
}

#reply-title {
    font-size: 1.2em;
    color: #d4aa44;
    margin-bottom: 14px;
}