:root{
  --accent:#2563eb;
  --card:#ffffff;
}

/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial,sans-serif;
  background:#f4f4f4;
  color:#222;
  padding-bottom:90px;
}

/* =========================
   NAVBAR
========================= */

nav{
  position:sticky;
  top:0;
  z-index:1000;
  background:#0f172a;
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:14px 16px;
}

.logo-row{
  display:flex;
  align-items:center;
}

.nav-logo{
  color:#fff;
  text-decoration:none;
  font-size:22px;
  font-weight:bold;
}

.search-icon{
  background:none;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.search-icon:hover{
  color:var(--accent);
}

/* =========================
   SEARCH BAR
========================= */

#searchBar{
  display:none;
  position:absolute;
  top:60px;
  left:0;
  width:100%;
  padding:10px;
  background:#0f172a;
  z-index:1000;
}

.search-box{
  display:flex;
  gap:8px;
}

#searchInput{
  flex:1;
  padding:10px;
  border:none;
  border-radius:8px;
  font-size:16px;
  outline:none;
}

#searchBtn{
  padding:10px 16px;
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

#searchBtn:hover{
  background:#1d4ed8;
}

/* =========================
   DARK THEME
========================= */

body.dark{
  background:#0f172a;
  color:#f1f5f9;
}

body.dark nav{
  background:#020617;
}

body.dark .card{
  background:#1e293b;
  color:#f1f5f9;
}

body.dark .meta{
  color:#cbd5e1;
}

body.dark .bottom-nav{
  background:#1e293b;
}

body.dark .bottom-nav a{
  color:#f1f5f9;
}

body.dark .nav-links{
  background:#1e293b;
}

body.dark .nav-links a{
  color:#f1f5f9;
}

body.dark #searchBar{
  background:#1e293b;
}

body.dark #searchInput{
  color:#fff;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch{
  display:flex;
  gap:6px;
}

.lang-switch button{
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.lang-switch .active{
  background:var(--accent);
  color:#fff;
}

/* =========================
   HAMBURGER
========================= */

.hamburger{
  display:flex;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}

.hamburger span{
  width:24px;
  height:3px;
  background:#fff;
  border-radius:4px;
}

/* =========================
   MOBILE OVERLAY
========================= */

.mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s;
  z-index:999;
}

.mobile-overlay.show{
  opacity:1;
  pointer-events:auto;
}

/* =========================
   SIDEBAR
========================= */

    nav .nav-links {
      position:fixed; top:0; right:-100%; width:250px; height:100%;
      background:#222; padding:60px 20px; display:flex; flex-direction:column; gap:15px;
      transition:0.3s; z-index:1500;
    }
    nav .nav-links a {color:#fff; text-decoration:none; font-size:18px;}
    nav .nav-links.show {right:0;}
    nav .close-btn {position:absolute; top:15px; right:20px; background:none; border:none; color:#fff; font-size:30px; cursor:pointer;}


/* =========================
   DRAWER
========================= */

#drawer{
  position:fixed;
  top:0;
  right:-100%;

  width:320px;
  height:100vh;

  background:var(--card);

  z-index:1200;

  transition:right .4s ease;

  overflow-y:auto;

  box-shadow:-2px 0 10px rgba(0,0,0,.2);
}

#drawer.open{
  right:0;
}

.drawer-header{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:14px 16px;

  border-bottom:1px solid #ddd;
}

.drawer-close{
  border:none;
  background:none;
  font-size:24px;
  cursor:pointer;
}

.tab-buttons{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  padding:10px;
}

.tab-buttons button{
  flex:1;
  padding:10px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  background:#f0f0f0;
}

.tab-buttons button.active{
  background:var(--accent);
  color:#fff;
}

.drawer-content > div{
  display:none;
  padding:14px;
}

.drawer-content > div.active{
  display:block;
}

.drawer-section{
  display:none;
}

.drawer-section.active{
  display:block;
}

form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

form input{
  padding:10px;
  border:1px solid #ccc;
  border-radius:8px;
}

form button{
  padding:10px;
  border:none;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
}

.form-error{
  color:red;
  font-size:13px;
  display:none;
}

/* =========================
   HERO
========================= */

.hero{
  height:220px;

  background:
  linear-gradient(
    rgba(0,0,0,.45),
    rgba(0,0,0,.45)
  ),
  url("../images/Ultra.jpg");

  background-size:cover;
  background-position:center;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  text-align:center;
  padding:20px;
}

.hero h1{
  font-size:34px;
  font-weight:bold;
}

/* =========================
   BACK BUTTON
========================= */

.back-btn{
  display:inline-block;
  margin:18px;
  color:var(--accent);
  text-decoration:none;
  font-weight:bold;
}

/* =========================
   PAGE TITLE
========================= */

.fav-title{
  text-align:center;
  margin-bottom:20px;
  font-size:28px;
}

/* =========================
   GRID
========================= */

.grid{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(280px,1fr));

  gap:20px;
  padding:16px;
}

/* =========================
   CARD
========================= */

.card{
  position:relative;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:.3s;
}

.card:hover{
  transform:translateY(-4px);
}

/* =========================
   IMAGE
========================= */

.thumb{
  display:block;
  width:100%;
  height:240px;
  overflow:hidden;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   BADGES
========================= */

.price-tag{
  position:absolute;
  top:14px;
  left:14px;

  background:#16a34a;
  color:#fff;

  padding:7px 12px;

  border-radius:30px;

  font-size:14px;
  font-weight:bold;

  z-index:2;
}

.category-badge{
  position:absolute;
  top:14px;
  right:14px;

  background:var(--accent);
  color:#fff;

  padding:6px 12px;

  border-radius:30px;

  font-size:13px;

  z-index:2;
}

/* =========================
   CARD BODY
========================= */

.card-body{
  padding:12px;
}

.title{
  font-size:20px;
  font-weight:bold;
  margin-bottom:10px;
}

.meta{
  color:#666;
  line-height:1.5;
  font-size:14px;
}

/* =========================
   ACTION BUTTONS
========================= */

.actions{
  display:flex;
  gap:10px;

  padding:
  0 16px 18px;
}

.btn{
 

  text-align:center;
  text-decoration:none;

  padding:10px;

  border-radius:10px;

  font-weight:bold;

  transition:.3s;
}

.call{
  background:var(--accent);
  color:#fff;
  padding:12px;display:inline-block;margin:10px;}



.whatsapp{background:#25D366;color:#fff;padding:12px;display:inline-block;margin:10px;text-decoration:none}


.btn:hover{
  opacity:.9;
}

/* =========================
   FAVORITE BUTTON
========================= */

.fav-btn{
  position:absolute;
  bottom:20px;
  right:12px;
  font-size: 20px;
  background:white;
  border:none;
  border-radius:50%;
  width:36px;
  height:36px;
  cursor:pointer;
}
.fav-btn.active i{
  color:gold;
}
  .fav-header {
  position: relative;
    align-items:center;
    width:100%;
  background: #fff;
    background:url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1600&q=60") center/cover no-repeat;
      
  padding: 50px 5px;
  z-index: 10;
  border-bottom: 10px solid #eee;
}

/* =========================
   EMPTY MESSAGE
========================= */

.empty{
  text-align:center;
  padding:60px 20px;
  font-size:18px;
  color:#666;
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;

  width:100%;
  height:70px;

  background:#fff;

  display:flex;
  justify-content:space-around;
  align-items:center;

  box-shadow:0 -4px 15px rgba(0,0,0,.1);

  z-index:999;
}

.bottom-nav a{
  text-decoration:none;
  color:#444;

  display:flex;
  flex-direction:column;
  align-items:center;

  font-size:13px;
}

.bottom-nav i{
  font-size:22px;
  margin-bottom:4px;
}

.bottom-nav a:hover{
  color:var(--accent);
}

.bottom-nav a.active {
  color: #2563eb;
}

.bottom-nav a.active i {
  color: #2563eb;
}

.bottom-nav a {
  color: #444;
}

.category-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.category-popup.show {
  display: flex;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  text-align: center;
}

.popup-box button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.popup-box .close {
  background: red;
  color: white;
}

.category-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
  z-index: 9999;
}

.category-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  text-align: center;

  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.category-popup.show .popup-box {
  transform: translateY(0);
}

.popup-box button.active {
  background: #2563eb;
  color: white;
  border-radius: 8px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

  .hero{
    height:180px;
  }

  .hero h1{
    font-size:26px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .title{
    font-size:18px;
  }

  #drawer{
    width:100%;
  }

}