/* ==========================================================================
   WOODSPICES - E-COMMERCE THEME CSS
   Identité Visuelle: 🔥 Feu & 🪵 Bois
   ========================================================================== */

:root {
  /* Colors - Flame & Heat */
  --color-fire-orange: #E85D04;
  --color-light-orange: #F48C06;
  --color-warm-yellow: #FFBA08;
  --color-ember-red: #D00000;

  /* Colors - Wood & Nature */
  --color-dark-brown: #5C3A21;
  --color-wood-brown: #7A4E2D;
  --color-beige: #EAD7B7;
  --color-cream: #F8F3E7;
  --color-forest-green: #3A5A40;

  /* Neutrals */
  --color-dark-slate: #0F172A;
  --color-body-text: #334155;
  --color-light-gray: #F1F5F9;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(92, 58, 33, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(92, 58, 33, 0.1);
  --shadow-lg: 0 20px 35px -10px rgba(232, 93, 4, 0.15);
  --shadow-glow: 0 0 20px rgba(232, 93, 4, 0.35);
}

/* Base setup */
body {
  font-family: var(--font-family);
  background-color: var(--color-cream);
  color: var(--color-body-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark-brown);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-fire-orange);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--color-ember-red);
}

/* Top bar banner */
.top-bar {
  background: linear-gradient(90deg, var(--color-dark-brown) 0%, var(--color-wood-brown) 100%);
  color: var(--color-beige);
  font-size: 0.85rem;
  padding: 8px 0;
  font-weight: 500;
}

/* Header & Navbar Mobile Layout Fix */
.header-logo {
  height: 52px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  transition: all 0.2s ease-in-out;
}

@media (max-width: 991.98px) {
  .w-100-mobile {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }
  .navbar-brand {
    max-width: 80% !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-logo {
    max-width: 100% !important;
    height: auto !important;
    max-height: 44px !important;
  }
  .navbar-toggler {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    max-width: 80% !important;
    flex: 1 1 auto !important;
  }
  .header-logo {
    max-width: 100% !important;
    height: auto !important;
    max-height: 40px !important;
  }
}

.navbar-woodspices {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-beige);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-fire-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-brand-sub {
  font-size: 0.7rem;
  color: var(--color-wood-brown);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link-woodspices {
  color: var(--color-dark-slate);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link-woodspices:hover,
.nav-link-woodspices.active {
  color: var(--color-fire-orange);
  background-color: var(--color-cream);
}

/* Buttons */
.btn-fire {
  background: linear-gradient(135deg, var(--color-fire-orange) 0%, var(--color-ember-red) 100%);
  color: var(--color-white) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 4, 0.45);
  color: var(--color-white);
}

.btn-wood {
  background: var(--color-dark-brown);
  color: var(--color-cream) !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-wood-brown);
  transition: all 0.3s ease;
}

.btn-wood:hover {
  background: var(--color-wood-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-fire {
  background: transparent;
  color: var(--color-fire-orange) !important;
  border: 2px solid var(--color-fire-orange);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-outline-fire:hover {
  background: var(--color-fire-orange);
  color: var(--color-white) !important;
}

/* Hero Section */
.hero-woodspices {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 18, 9, 0.85) 0%, rgba(15, 23, 42, 0.80) 100%), 
              url('../images/hero_bg.png') center/cover no-repeat;
  color: var(--color-white);
  padding: 95px 0 115px 0;
  overflow: hidden;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-beige);
  max-width: 620px;
  margin: 20px 0 35px 0;
}

/* Cards & Grid */
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-beige);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-fire-orange);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-fire-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px auto;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--color-fire-orange);
  color: var(--color-white);
}

/* Product Card */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-beige);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-light-orange);
}

.product-badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-ember-red);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 5;
}

.product-badge-sec {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(58, 90, 64, 0.9);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 5;
  backdrop-filter: blur(4px);
}

.product-img-wrapper {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-light-gray);
  position: relative;
}

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

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

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-wood-brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 6px 0 10px 0;
  color: var(--color-dark-slate);
}

.product-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background: var(--color-cream);
  color: var(--color-dark-brown);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  margin-bottom: 8px;
}

.product-price-box {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-fire-orange);
}

.product-unit {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
}

.product-old-price {
  text-decoration: line-through;
  color: #94A3B8;
  font-size: 0.95rem;
  margin-right: 6px;
}

/* Feature Arguments */
.feature-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border-left: 4px solid var(--color-fire-orange);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-fire-orange);
}

/* Footer */
.footer-woodspices {
  background: var(--color-dark-brown);
  color: var(--color-beige);
  padding: 60px 0 20px 0;
  border-top: 4px solid var(--color-fire-orange);
}

.footer-title {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

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

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

.footer-links a {
  color: var(--color-beige);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-warm-yellow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 215, 183, 0.2);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(234, 215, 183, 0.7);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .product-img-wrapper {
    height: 180px;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  background-color: #128c7e;
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.6);
  color: #ffffff !important;
}

/* Custom Language Switcher Styling */
.btn-lang-switcher {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-beige);
  font-size: 0.82rem;
  border: 1px solid rgba(234, 215, 183, 0.3) !important;
  transition: all 0.2s ease-in-out;
}

.btn-lang-switcher:hover,
.btn-lang-switcher:focus,
.btn-lang-switcher[aria-expanded="true"] {
  background: var(--color-fire-orange);
  color: #ffffff;
  border-color: var(--color-fire-orange) !important;
}

.navbar .btn-lang-switcher {
  background: var(--color-cream);
  color: var(--color-dark-brown);
  border: 1px solid var(--color-beige) !important;
}

.navbar .btn-lang-switcher:hover {
  background: var(--color-fire-orange);
  color: #ffffff;
}

.lang-dropdown-menu {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-beige) !important;
}

.lang-dropdown-menu .dropdown-item {
  color: var(--color-dark-slate);
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.lang-dropdown-menu .dropdown-item:hover {
  background-color: var(--color-cream);
  color: var(--color-fire-orange);
}

.lang-dropdown-menu .dropdown-item.active {
  background-color: rgba(232, 93, 4, 0.08);
  color: var(--color-fire-orange);
}

/* RTL Support for Arabic (ar) */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] .whatsapp-float-btn {
  right: auto;
  left: 25px;
}

html[dir="rtl"] .me-1, html[dir="rtl"] .me-2, html[dir="rtl"] .me-3, html[dir="rtl"] .me-4 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

/* Hide GTranslate Default Floating Widgets Completely (Header is the ONLY selector) */
.gtranslate_wrapper,
#gt_float_wrapper,
.gt_float_wrapper,
.gt_switcher_wrapper,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

body {
  top: 0 !important;
  position: static !important;
}
