* {
  box-sizing: border-box;
  font-family: 'Exo 2', Arial, sans-serif;
}
body {
  margin: 0;
  background-color: #f7f9fa;
}
header {
  width: 100%;
  float: left;
  padding: 8px 0;
  height: 70px;
  background-color: white;
  position: fixed;
  top: 0;
  z-index: 1002;
}
header a {
  color: #000;
}
.header_hold {
  max-width: 1350px;
  margin: auto;
}
.header_logo {
  width: 170px;
  float: left;
  height: 100%;
}
.header_logo img {
  float: left;
  width: 75px;
}
.header_logo p {
  float: left;
  padding-left: 7px;
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
}
.header_search {
  width: calc(100% - 310px);
  margin-top: 6px;
  float: left;
  height: 100%;
}
.header_search_hold {
  height: 100%;
  width: 500px;
  margin: auto;
}
/* =========================
   SEARCH INPUT IMPROVEMENTS
========================= */
.mobile_search {
  display: none;
}
.header_search input,
.mobile_search input {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  width: calc(100% - 51px);
  padding: 8px 10px;
  font-size: 18px;
  border: 1px solid #e8e8e1;
  border-right: none;
  float: left;
}

.header_search input:focus,
.mobile_search input:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
  outline: none;
}
.search_btn {
  float: left;
  background: none;
  border: 1px solid #e8e8e1;
  border-left: none;
  padding: 0 10px;
  height: 36px;
}
.search_btn svg {
  width: 30px;
  height: 100%;
  transition: 0.2s ease;
}

.bottom_header {
  z-index: 1001;
  position: fixed;
  top: 70px;
  width: 100%;
  float: left;
  background-color: #fff;
  border-top: 1px solid lightgrey;
  box-shadow: 0 0 25px rgb(0 0 0 / 20%);
}
.bottom_header_holder {
  max-width: 1350px;
  margin: auto;
}
.header_nav a {
  color: black;
  text-decoration: none;
}
.header_nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header_nav ul li {
  display: inline-block;
  padding: 10px 20px;
  letter-spacing: 0.2em;
}
.header_nav ul li:hover {
  color: #ff6b35;
}
.header_right {
  width: 140px;
  margin-top: 6px;
  float: right;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
}

.icon-btn svg {
  width: 30px;
  height: 30px;
  transition: 0.2s ease;
}

.icon-btn:hover svg {
  color: #ff6b35; /* your orange */
  transform: scale(1.15);
}

/* =========================
   SEARCH OVERLAY
========================= */
.search_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 999;
}

/* =========================
   SEARCH DROPDOWN
========================= */
.search_dropdown {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  background: #f7f9fa;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;

  z-index: 1000;

  max-height: 75vh;
  overflow-y: auto;
}

.search_dropdown_inner {
  max-width: 1350px;
  margin: auto;
  padding: 30px 15px;
}

/* =========================
   RESULTS GRID
========================= */
.search_results {
  position: relative;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* =========================
   FOOTER BUTTON
========================= */
.search_foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.search_foot button {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.search_foot button:hover {
  background: #e95c28;
  transform: translateY(-2px);
}
/* =========================
   SEARCH CARD
========================= */
.search_item {
  background: white;
  border-radius: 14px;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  border: 1px solid #ececec;
}

.search_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.search_item a {
  display: block;
  text-decoration: none;
  color: black;
  padding: 15px;
}

.search_item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 12px;
}

.search_item p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* =========================
   ACTIVE STATE
========================= */
.search_active .search_overlay {
  opacity: 1;
  visibility: visible;
}

.search_active .search_dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* =========================
   EMPTY STATE
========================= */
.search_results > p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  color: #666;
  padding: 50px 0;
}
/* =========================
   CLOSE BUTTON
========================= */
.close_search {
  position: absolute;
  top: -10px;
  right: 0;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);

  font-size: 20px;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;

  z-index: 10;
}

.close_search:hover {
  background: #f3f3f3;
  transform: rotate(90deg);
}
.cart_btn {
  position: relative;
}

.cart_count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff6b35;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
}
/* OVERLAY */
.cart_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1002;
}

/* DRAWER */
.cart_drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: white;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

/* ACTIVE STATE */
.cart_active .cart_overlay {
  display: block;
}

.cart_active .cart_drawer {
  right: 0;
}

/* HEADER */
.cart_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.close_cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ITEMS */
.cart_items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart_item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.cart_item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.cart_info p {
  font-size: 14px;
}

.cart_info span {
  font-size: 13px;
  color: #666;
}

/* FOOTER */
.cart_footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.go_cart {
  display: block;
  text-align: center;
  background: #ff6b35;
  color: white;
  padding: 12px;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 700;
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart_bounce {
  animation: cartBounce 0.3s ease;
}

.hamburger {
  display: none;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

  /* HEADER LAYOUT */
  .header_hold {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
  }

  .header_logo {
    width: auto;
  }

  .header_logo img {
    width: 50px;
  }

  .header_logo p {
    font-size: 16px;
    margin-top: 10px;
  }

  /* HIDE DESKTOP SEARCH */
  .header_search {
    display: none;
  }

  /* RIGHT SIDE */
  .header_right {
    width: auto;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* SHOW HAMBURGER */
  .hamburger {
    display: flex !important;
  }

  /* =========================
     MOBILE SEARCH (NEW POSITION)
  ========================= */
  .mobile_search {
    display: block;
    position: fixed;
    top: 70px;
    width: 100%;
    background: white;
    padding: 10px;
    z-index: 1001;
    border-bottom: 1px solid #eee;
  }


  /* =========================
     MOBILE MENU (BOTTOM HEADER)
  ========================= */
  .bottom_header {
    top: 0px;
    transform: translateY(-100%);
    transition: 0.3s ease;
  }

  .menu_active .bottom_header {
    transform: translateY(70px);
  }

  .header_nav ul {
    display: flex;
    flex-direction: column;
  }

  .header_nav ul li {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  /* =========================
     SEARCH DROPDOWN FIX
  ========================= */
  .search_dropdown {
    top: 120px;
    max-height: calc(100vh - 120px);
  }
  .search_dropdown_inner {
    padding: 20px 10px;
  }

  .search_results {
    grid-template-columns: repeat(2, 1fr);
  }

  .search_item img {
    height: 140px;
  }
  .search_results {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .search_item a {
    padding: 10px;
  }

  .search_item p {
    font-size: 13px;
  }

  .close_search {
    top: -5px;
    right: 5px;
    width: 36px;
    height: 36px;
  }

}
/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {

  .search_results {
    grid-template-columns: 1fr;
  }

  .search_item img {
    height: 180px;
  }

}

/* MEGA MENU */
.has-mega { position: relative; }
.mega-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: none; z-index: 999;
}
.mega-menu ul { list-style: none; padding: 0; margin: 0; }
.mega-menu ul li { width:100%; margin-bottom: 0px; padding: 8px 15px; letter-spacing: 0px; }
.mega-menu ul li a { color: #111; text-decoration: none; font-weight: 400; }
.mega-menu ul li a:hover { text-decoration: underline; }
.has-mega:hover .mega-menu { display: block; }