/* JBuckle International - Modern Dark Dynamics Stylesheet */

:root {
    /* Modern Palette */
    --jb-primary: #2F4F4F;
    /* Dark Slate Grey */
    --jb-primary-dark: #1F3636;
    --jb-primary-light: #4A6E6E;

    /* Accents */
    --jb-accent-orange: #FF8C00;
    --jb-accent-soft: #fff3e0;

    /* UI Colors */
    --jb-bg: #f4f6f8;
    --jb-surface: #ffffff;
    --jb-text-main: #2b3136;
    --jb-text-muted: #6c757d;

    /* Typography */
    --jb-font-head: 'Montserrat', sans-serif;
    --jb-font-body: 'Inter', sans-serif;

    /* Layout */
    --jb-container-max: 1400px;
    --jb-shadow-card: 0 20px 40px -14px rgba(0, 0, 0, 0.1);
    --jb-shadow-hover: 0 25px 50px -12px rgba(47, 79, 79, 0.25);
    --jb-radius: 16px;
}

body {
    font-family: var(--jb-font-body);
    color: var(--jb-text-main);
    background-color: var(--jb-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--jb-font-head);
    font-weight: 700;
    color: var(--jb-primary-dark);
}

.container-xl,
.container-fluid {
    max-width: var(--jb-container-max);
}

a {
    color: var(--jb-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--jb-accent-orange);
}

/* --- Buttons --- */
.btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: var(--jb-font-head);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--jb-primary);
    border-color: var(--jb-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 79, 79, 0.3);
}

.btn-primary:hover {
    background-color: var(--jb-accent-orange);
    border-color: var(--jb-accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
    color: #000;
}

/* --- Header & Navigation (Glassmorphism) --- */
.top-bar {
    background-color: #000;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 8px 0;
    font-family: var(--jb-font-body);
    position: relative;
    z-index: 1100;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar a:hover {
    color: var(--jb-accent-orange);
}

/* Language Toggle Buttons in Top Bar */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: var(--jb-accent-orange);
    background-color: rgba(255, 140, 0, 0.15);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Language Toggle Buttons in Light Header (page.php) */
.lang-switch-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-btn-header {
    color: var(--jb-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn-header:hover {
    color: var(--jb-primary-dark);
    background-color: rgba(47, 79, 79, 0.1);
}

.lang-btn-header.active {
    color: var(--jb-accent-orange);
    background-color: rgba(255, 140, 0, 0.1);
}

.lang-divider-header {
    color: var(--jb-text-muted);
    font-size: 0.75rem;
}

.header-main {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s;
}

.header-main.is-sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
}

.navbar-nav .nav-link {
    font-family: var(--jb-font-head);
    font-weight: 600;
    color: var(--jb-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
    position: relative;
    opacity: 0.8;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--jb-primary-dark);
    opacity: 1;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--jb-accent-orange);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.navbar-nav .nav-link:hover::after {
    width: 25px;
}

/* --- Hero Section (Dark & Dynamic) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    margin: 20px;
    border-radius: var(--jb-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

/* Dark Dynamic Overlay */
.hero-overlay {
    position: absolute;
    bottom: 80px;
    left: 60px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(47, 79, 79, 0.85) 100%);
    padding: 3.5rem;
    max-width: 600px;
    backdrop-filter: blur(8px);
    border-radius: var(--jb-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-left: 6px solid var(--jb-accent-orange);
    transition: transform 0.4s ease;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-overlay:hover {
    transform: translateX(10px);
    border-left-color: #fff;
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-overlay h1 span {
    color: var(--jb-accent-orange);
}

.hero-overlay p {
    font-size: 1.25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-section {
        margin: 0;
        border-radius: 0;
    }

    .hero-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 2rem;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }
}

/* --- Product Cards --- */
.product-card {
    border: none;
    border-radius: var(--jb-radius);
    background: var(--jb-surface);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(47, 79, 79, 0.2);
    z-index: 10;
}

.product-img-wrapper {
    position: relative;
    padding: 30px;
    background: #fff;
    border-radius: var(--jb-radius) var(--jb-radius) 0 0;
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08) rotate(-2deg);
}

.product-body {
    padding: 25px;
    text-align: center;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--jb-accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--jb-primary-dark);
}

.product-price {
    font-size: 1.35rem;
    color: var(--jb-text-main);
    font-weight: 800;
    display: block;
    margin-bottom: 20px;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--jb-text-main);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-add-cart:hover {
    background-color: var(--jb-accent-orange);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

/* --- News Cards --- */
.news-card {
    background: var(--jb-surface);
    border: none;
    border-radius: var(--jb-radius);
    box-shadow: var(--jb-shadow-card);
    transition: transform 0.3s;
    height: 100%;
    border-left: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--jb-accent-orange);
}

.news-date {
    display: inline-block;
    background: var(--jb-accent-soft);
    color: var(--jb-accent-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--jb-bg);
}

.text-orange {
    color: var(--jb-accent-orange) !important;
}

.contact-card a {
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--jb-accent-orange) !important;
    text-decoration: none;
}

/* --- Footer --- */
.footer-main {
    background-color: #0d1111;
    /* Almost black */
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 3px solid var(--jb-accent-orange);
}

.footer-main h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-main h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--jb-primary-light);
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    display: block;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* --- Mobile Menu --- */
.offcanvas {
    border-radius: 0 var(--jb-radius) var(--jb-radius) 0;
}

.offcanvas-header {
    background-color: var(--jb-primary-dark);
    color: #fff;
}