/* =========================
   Intex Modern Theme (FINAL)
   Fixes:
   - NO double navbar underline
   - NO double carousel arrows (Bootstrap default hidden)
   ========================= */

/* Brand + tokens */
:root{
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;

  --brand-green: linear-gradient(90deg, #6c9569 0%, rgb(204 171 117) 100%);;
  --brand-green-dark: #04695a;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 10px 25px rgba(2, 6, 23, .08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --font: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

html, body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

a{ text-decoration: none; }
a:hover{ text-decoration: none; }

/* Utility */
.round, .border-round{ border-radius: var(--radius-lg); }
.bg-white{ background: var(--surface) !important; }

/* Titles */
.section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Subtle text */
.text-muted, small, .muted{ color: var(--muted) !important; }

/* =========================
   TOPBAR + NAVBAR
   ========================= */
.container-fluid.py-2.border-bottom{
  background: var(--surface);
  border-bottom: 1px solid var(--border) !important;
}

.container-fluid.sticky-top{
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, .06);
}

/* Logo */
.navbar-brand img{
  height: 44px;
  width: auto;
}

/* Nav spacing */
.navbar-nav{ gap: 18px; }

/* Links */
.navbar-nav .nav-link{
  position: relative;
  font-weight: 800;
  color: var(--muted) !important;
  padding: 10px 6px;

  /* HARD: prevent underline duplicates from other CSS */
  border: 0 !important;
  box-shadow: none !important;
}

/* HARD: remove any pseudo underline from older styles */
.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after{
  content: none !important;
}

/* Hover */
.navbar-nav .nav-link:hover{ color: var(--ink) !important; }

/* Active underline (ONLY ONE) */
.navbar-nav .nav-link.active{
  color: var(--brand-green) !important;
}

.navbar-nav .nav-link.active::after{
  content: "" !important;
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px; /* change to -6px if you want closer to text */
  height: 4px;
  background: var(--brand-green);
}

/* =========================
   CARDS + BUTTONS
   ========================= */
.card{
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface);
}

.card:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-text{
  color: var(--muted);
  line-height: 1.6;
}

.btn{
  border-radius: 14px;
  font-weight: 900;
  padding: 12px 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary{
  background: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(18, 183, 106, .18);
}

.btn-primary:hover{
  background: var(--brand-green-dark) !important;
  border-color: var(--brand-green-dark) !important;
  transform: translateY(-1px);
}

.btn-outline-primary{
  color: var(--brand-green) !important;
  border-color: rgba(18,183,106,.45) !important;
  background: transparent !important;
}

.btn-outline-primary:hover{
  background: rgba(18,183,106,.10) !important;
  border-color: rgba(18,183,106,.55) !important;
  transform: translateY(-1px);
}

/* =========================
   PRODUCT CARDS (Grid + Slider)
   ========================= */
.product-description{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 18px !important;
  height: 100%;
}

.product-description:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-description img{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.product-description h5{
  font-size: 20px;
  line-height: 1.25;
  margin-top: 12px;
  margin-bottom: 8px;
  font-weight: 900;
  color: var(--ink);
}

.product-description p{
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Product button */
.btn.product-btn{
  background: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #fff !important;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
}

.btn.product-btn:hover{
  background: var(--brand-green-dark) !important;
  border-color: var(--brand-green-dark) !important;
}

/* =========================
   SIDEBAR / FILTER BOX
   ========================= */
.sort-category{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.sidebar-title{
  font-weight: 900;
  margin-bottom: 12px;
}

/* =========================
   PAGINATION
   ========================= */
.pagination .page-link{
  border-radius: 999px;
  margin: 0 4px;
  border: 1px solid var(--border);
  color: var(--ink);
}

.pagination .page-item.active .page-link{
  background: rgba(18,183,106,.12);
  border-color: rgba(18,183,106,.25);
  color: var(--brand-green);
  font-weight: 900;
}

/* =========================
   FORMS
   ========================= */
.form-control, .form-select{
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  box-shadow: none !important;
}

.form-control:focus, .form-select:focus{
  border-color: rgba(18,183,106,.55);
  box-shadow: 0 0 0 .25rem rgba(18,183,106,.14) !important;
}

/* =========================
   CAROUSEL CONTROLS (FIX DOUBLE)
   ========================= */

/* Hide bootstrap default icons (prevents double arrow look) */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  display: none !important;
  background-image: none !important;
}

/* If your old markup has <i class="... slider-btn">, style it */
.carousel-controls .slider-btn,
.carousel-control-prev i,
.carousel-control-next i{
  background: rgba(16,24,40,.10) !important;
  color: var(--ink) !important;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 18px;
}

/* Remove any orange background from other css */
.carousel-control-prev,
.carousel-control-next{
  opacity: 1 !important;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i{
  background: rgba(16,24,40,.16) !important;
}

/* IMPORTANT:
   If you still see a second orange circle, it is likely
   coming from styles applied to .carousel-control-*-icon.
   This file forces it hidden above.
*/

/* =========================
   NEWSLETTER (footer input/button align)
   NOTE: target common bootstrap input group too
   ========================= */
.input-group .form-control{
  border-radius: 14px 0 0 14px !important;
  height: 46px;
}

.input-group .btn{
  border-radius: 0 14px 14px 0 !important;
  height: 46px;
  font-weight: 900;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px){
  .sort-category{ margin-bottom: 18px; }
  .navbar-brand img{ height: 40px; }
}

@media (max-width: 575px){
  .btn{ width: auto; }
}
