/* ============================================================
   CK Kauçuk - Main Stylesheet
   Brand Color: #00804c (Primary Green)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary-color: #00804c;
    --primary-dark: #006b3f;
    --primary-light: #00995c;
    --primary-rgb: 0, 128, 76;
    --secondary-color: #06163a;
    --secondary-rgb: 6, 22, 58;
    --dark: #1a1a2e;
    --light-gray: #f5f7fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ---------- Global Reset & Defaults ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Typography ---------- */
.font-heading,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

.text-primary-color { color: var(--primary-color) !important; }
.text-secondary-color { color: var(--secondary-color) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }
.bg-primary-color { background-color: var(--primary-color) !important; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Topbar ---------- */
.topbar {
    background-color: var(--secondary-color);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1040; /* keep language dropdown above the white header below */
}

.topbar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

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

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

.topbar-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Main Header / Navbar ---------- */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand img {
    height: 55px;
    transition: var(--transition);
}

.main-header.sticky .navbar-brand img {
    height: 45px;
}

.navbar {
    min-height: 70px;
}

.navbar-nav .nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color) !important;
    padding: 24px 16px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    border-top: 3px solid var(--primary-color);
    min-width: 260px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
}

.hero-slide {
    min-height: calc(100vh - 118px); /* fill the first screen below topbar + header */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.85) 0%, rgba(var(--primary-rgb), 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-content .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Page Banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(var(--primary-rgb), 0.9) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.88), rgba(var(--primary-rgb), 0.75));
}

.page-banner > .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-banner .breadcrumb {
    justify-content: center;
    margin: 0;
    padding: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.page-banner .breadcrumb-item a:hover {
    color: var(--white);
}

.page-banner .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ---------- Feature Cards (Why Choose Us) ---------- */
.feature-card {
    padding: 40px 30px;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.4s ease;
}

.feature-card:hover::before {
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border-radius: 50%;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* ---------- Product Cards ---------- */
.product-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-img-wrapper {
    overflow: hidden;
    height: 240px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ---------- Sustainability Cards ---------- */
.sust-card {
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.sust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.sust-icon {
    transition: var(--transition);
}

.sust-card:hover .sust-icon i {
    transform: scale(1.15);
}

/* ---------- Page Content ---------- */
.page-content {
    line-height: 1.9;
}

.page-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 28px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

.page-content p {
    margin-bottom: 16px;
    color: #555;
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    text-decoration: none;
    font-size: 18px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    font-size: 28px;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #1da851;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
}

/* ---------- Forms ---------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Gallery ---------- */
.gallery-card {
    border-radius: var(--radius);
    transition: var(--transition);
}

.gallery-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ---------- Contact Info Cards ---------- */
.card {
    border-radius: var(--radius);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ---------- Misc Utilities ---------- */
.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- CTA Section ---------- */
section.bg-primary .btn-light {
    transition: var(--transition);
}

section.bg-primary .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---------- 404 Page ---------- */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

/* ============================================================
   MODERN ENHANCEMENTS (2025 refresh)
   ============================================================ */

/* ---------- Language switcher (topbar dropdown) ---------- */
.topbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 40px;
    color: #fff !important;
    line-height: 1.4;
}
.topbar .dropdown-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.45);
}
/* Language menu must be compact (global .dropdown-menu is 260px wide) */
.topbar .dropdown-menu {
    min-width: 150px;
    border-radius: 10px;
    border-top: 3px solid var(--primary-color);
    margin-top: 10px;
    box-shadow: var(--shadow-md);
}
.topbar .dropdown-menu .dropdown-item {
    padding: 8px 16px;
}
.topbar .dropdown-menu .dropdown-item.active,
.topbar .dropdown-menu .dropdown-item:active {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- Sticky/modern header polish ---------- */
.main-header {
    backdrop-filter: saturate(1.1);
}
.navbar-nav .nav-link {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
}

/* ---------- Full-screen hero: gradient + animation ---------- */
.hero-slide::before {
    background: linear-gradient(120deg, rgba(var(--secondary-rgb), 0.90) 0%, rgba(var(--secondary-rgb), 0.55) 45%, rgba(var(--primary-rgb), 0.45) 100%);
}
.hero-title {
    font-size: 4rem;
    letter-spacing: -0.5px;
    max-width: 15ch;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-size: 1rem;
}

/* Staggered fade-up for the ACTIVE slide only */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
.carousel-item.active .hero-subtitle { animation: heroFadeUp .7s ease .1s both; }
.carousel-item.active .hero-title    { animation: heroFadeUp .7s ease .25s both; }
.carousel-item.active .hero-content .lead { animation: heroFadeUp .7s ease .4s both; }
.carousel-item.active .hero-content .btn  { animation: heroFadeUp .7s ease .55s both; }

/* ---------- Modern circular carousel controls ---------- */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.hero-slider .carousel-control-prev { left: 28px; }
.hero-slider .carousel-control-next { right: 28px; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}
.hero-slider .carousel-indicators {
    margin-bottom: 2rem;
}

/* ---------- Animated scroll-down hint ---------- */
.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    animation: heroBounce 2s infinite;
    pointer-events: none;
}
@keyframes heroBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.85; }
    50%      { transform: translate(-50%, 10px); opacity: 0.4; }
}

/* ---------- Card / section modern polish ---------- */
.feature-card,
.product-card,
.sust-card,
.gallery-card {
    border-radius: 14px;
}
.product-card { border-radius: 14px; }
.product-img-wrapper { border-radius: 14px 14px 0 0; }
.feature-icon { border-radius: 18px; }

/* Smooth anchor + reduced-motion respect */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.6rem; }
    .hero-slider .carousel-control-prev { left: 10px; }
    .hero-slider .carousel-control-next { right: 10px; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 2rem; max-width: 100%; }
    .hero-scroll-hint { display: none; }
}

/* ---------- Mobile language switcher (topbar hidden < 992px) ---------- */
.mobile-lang {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    width: 100%;
}
.mobile-lang-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.mobile-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mobile-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 40px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
    background: #fff;
    transition: var(--transition);
}
.mobile-lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.mobile-lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Product Image Improvements */
.product-card .product-img-wrapper {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    max-height: 280px;
    overflow: hidden;
}

.product-card .product-img-wrapper .product-img {
    max-height: 250px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-card .product-img {
    background: #ffffff;
    object-fit: contain;
}

/* Product detail page image */
.bg-light.rounded-3.overflow-hidden.shadow-sm img.img-fluid {
    background: #ffffff;
    object-fit: contain;
    max-height: 450px;
}

/* ---------- Preloader Animation ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #06163a;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    max-height: 70px;
    animation: preloaderPulse 1.8s infinite ease-in-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3.5px solid rgba(255,255,255,0.12);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.85s infinite linear;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
