/* =========================================================
   KNOZ ALSHAM — FINAL UI (Bootstrap 5)
   Clean modern layout: spacing, typography, hover, animations
   ========================================================= */

/* ---------- Theme ---------- */
:root{
  --brand-green:#1f8a5b;
  --brand-red:#d72638;
  --brand-dark:#111827;
  --text:#0f172a;
  --muted:#64748b;

  --bg:#f6f7fb;
  --card:#ffffff;

  --radius:20px;
  --radius-sm:14px;

  --border: rgba(15,23,42,.08);
  --shadow: 0 18px 55px rgba(2, 8, 23, .10);
  --shadow-sm: 0 10px 30px rgba(2, 8, 23, .08);

  --ring: rgba(31,138,91,.20);
}

/* ---------- Base ---------- */
html, body{ height:100%; }
body{
  background: radial-gradient(1200px 600px at 10% 0%, rgba(31,138,91,.08), transparent 55%),
              radial-gradient(1200px 600px at 90% 0%, rgba(215,38,56,.06), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: var(--brand-green); }
a:hover{ color:#176b46; }

.container{ max-width: 1140px; }

::selection{ background: rgba(31,138,91,.20); }

/* ---------- Utilities ---------- */
.k-muted{ color: var(--muted) !important; }
.k-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.k-section{ margin-top: 26px; }
.k-title{
  font-weight: 900;
  letter-spacing: -0.4px;
}

/* ---------- Reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header (glass) ---------- */
.k-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

/* Topbar */
.k-topbar{
  border-bottom: 1px solid rgba(15,23,42,.06);
  background: rgba(255,255,255,.60);
}
.k-toplink{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
  color: rgba(15,23,42,.78);
  padding: .2rem .35rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.k-toplink i{ color: var(--brand-green); }
.k-toplink:hover{
  background: rgba(31,138,91,.10);
  color: rgba(15,23,42,.92);
}
.k-wa{
  border-radius: 999px;
  padding: .35rem .75rem;
}

/* Brand */
.k-brand{
  font-weight: 900;
  letter-spacing:.2px;
  color: var(--text);
}
.k-logo-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 0 6px var(--ring);
}

/* Search pill */
.k-pill{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 12px 28px rgba(2,8,23,.08);
}
.k-search input{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.k-search .btn{
  border-radius: 999px;
}

/* Desktop nav buttons */
.k-navlink{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.88);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.k-navlink:hover{
  transform: translateY(-1px);
  background: rgba(31,138,91,.08);
  border-color: rgba(31,138,91,.22);
}

/* Cart badge */
.k-badge{
  font-size: .72rem;
  background: var(--brand-red) !important;
}

/* Notice bar */
.k-notice{
  background: linear-gradient(90deg, rgba(31,138,91,.10), rgba(215,38,56,.08));
  border-top: 1px solid rgba(15,23,42,.06);
}

/* Mobile offcanvas */
.offcanvas{
  border-left: 1px solid rgba(15,23,42,.10);
}
.list-group-item{
  border-color: rgba(15,23,42,.08);
  border-radius: 14px !important;
  margin-bottom: 8px;
}

/* ---------- Buttons (modern) ---------- */
.btn-brand{
  background: linear-gradient(135deg, var(--brand-dark), #0b1220);
  border: 0;
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px rgba(2,8,23,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(2,8,23,.22);
  filter: brightness(1.05);
  color:#fff;
}
.btn-brand:active{
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(2,8,23,.16);
}

.btn-outline-brand{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-outline-brand:hover{
  background: rgba(31,138,91,.10);
  border-color: rgba(31,138,91,.28);
  transform: translateY(-1px);
}

/* Prevent "dim" look when disabled by mistake */
button:disabled, .btn:disabled, .btn.disabled{
  opacity: .55 !important;
  filter: grayscale(.2);
  box-shadow: none !important;
}

/* ---------- Hero (image + overlay) ---------- */
.k-hero{
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}

.k-hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(13, 12, 12, 0.65),
    rgba(21, 19, 19, 0.35),
    rgba(60, 55, 55, 0.15)
  );
}

.k-hero > .container{
  position: relative;
  z-index: 2;
}

@media (max-width:768px){
  .k-hero{
    min-height: 280px;
    border-radius: 18px;
  }
}

/* ---------- Filter block ---------- */
.k-filter{
  border-radius: 22px;
  padding: 18px;
}
.k-filter .form-control,
.k-filter .form-select{
  border-radius: 14px;
  border-color: rgba(15,23,42,.12);
}
.k-filter .form-control:focus,
.k-filter .form-select:focus{
  border-color: rgba(31,138,91,.40);
  box-shadow: 0 0 0 .25rem rgba(31,138,91,.12);
}

/* ---------- Products cards ---------- */
.product-img{
  height: 175px;
  object-fit: cover;
}
.k-product{
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.k-product:hover{
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(2,8,23,.14);
}
.k-price{ font-weight: 950; }

/* ---------- Carousel (if used later) ---------- */
.carousel-inner{ border-radius: 24px; }
.slider-img{
  height: 420px;
  object-fit: cover;
}
@media (max-width: 768px){
  .slider-img{ height: 240px; }
}

/* ---------- Footer (modern dark) ---------- */
.k-footer{
  margin-top: 64px;
  background: radial-gradient(900px 420px at 15% 10%, rgba(31,138,91,.16), transparent 55%),
              radial-gradient(900px 420px at 85% 20%, rgba(215,38,56,.12), transparent 55%),
              linear-gradient(180deg, #0b1220, #070c16);
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.08);
}
.k-footer-muted{ color: rgba(255,255,255,.66); }
.k-footer-title{
  font-weight: 900;
  margin-bottom: .75rem;
}
.k-footer-link{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.k-footer-link:hover{
  transform: translateY(-1px);
  background: rgba(31,138,91,.18);
  border-color: rgba(31,138,91,.26);
  color:#fff;
}
.k-footer-nav{
  color: rgba(255,255,255,.84);
  text-decoration: none;
  display: inline-block;
  padding: .35rem 0;
}
.k-footer-nav:hover{ color: #fff; }
.k-footer-card{
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.k-footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
}
.k-footer-legal{
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.k-footer-legal:hover{ color: #fff; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 992px){
  .k-hero{ border-radius: 22px; }
}
@media (max-width: 768px){
  .k-hero h1{ font-size: 1.9rem; }
}
/* Contact links (do NOT reuse footer link styles here) */
.k-contact-link{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.85rem 1rem;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  text-decoration:none;
  color: rgba(17,24,39,.92);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.k-contact-link:hover{
  transform: translateY(-1px);
  border-color: rgba(31,138,91,.25);
  box-shadow: 0 18px 45px rgba(17,24,39,.10);
  color: rgba(17,24,39,.96);
}
.k-contact-link i{
  color: var(--brand-green);
  font-size: 1.1rem;
}
.k-contact-link span{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Make footer background full width, content stays in container */
.k-footer{
  padding: 0;
  background: transparent; /* background moves to wrap */
}
.k-footer-wrap{
  width: 100%;
  background: linear-gradient(180deg, #0b1220, #070c16);
  border-top: 1px solid rgba(255,255,255,.06);
}
