/* -------- RESET / BASE -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* -------- HEADER -------- */
header {
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 img {
  height: 45px;
  vertical-align: middle;
}
h2 {
  font-size: 22px;
  margin: 0;
}

/* -------- NAVBAR -------- */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.navbar a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}
.navbar a:hover {
  color: #ccc;
}

/* -------- SOCIAL ICONS -------- */
.social-sharing {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-sharing img {
  width: 22px;
  height: 22px;
  filter: invert(100%);
  transition: opacity 0.3s ease;
}
.social-sharing img:hover {
  opacity: 0.7;
}

/* -------- SLIDER -------- */
.slider-container {
  width: 100%;
  height: 230px;
  background: #ddd;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}
.slider-btn:hover {
  background: white;
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* -------- NEWS TICKER -------- */
iframe {
  border: none;
  margin: 0;
  width: 100%;
  height: 60px;
}

/* -------- SEARCH SECTION -------- */
#search-section {
  margin: 1rem auto;
  text-align: center;
}
#searchBar {
  padding: 0.5rem;
  width: 50%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#search-section button {
  padding: 8px 14px;
  margin-left: 0.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#search-section button:hover {
  background: #165dc4;
}

/* -------- FILTER BUTTONS -------- */
#filters {
  text-align: center;
  margin: 20px 0;
}
#filters button {
  padding: 8px 14px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}
#filters button:hover {
  background: #f1f1f1;
}

/* -------- PRODUCT LIST -------- */
#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card,
.product-tile {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover,
.product-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.product-card h3,
.product-tile h3 {
  font-size: 16px;
  margin: 10px 0;
}
.product-card button,
.product-tile button {
  margin-top: 8px;
  background: black;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.product-card button:hover,
.product-tile button:hover {
  background: #165dc4;
}

/* -------- CART MENU -------- */
.cart-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  border-right: 2px solid #1877f2;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}
.cart-menu.open {
  left: 0;
}
#cart-items {
  list-style: none;
  padding: 0;
}
#cart-items li {
  margin: 8px 0;
  padding: 6px;
  border-bottom: 1px solid #eee;
}

/* -------- BADGE -------- */
.badge {
  background: #cb333b;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 6px;
  display: none;
}

/* -------- FOOTER -------- */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}
footer a {
  color: #fff;
}
footer a:hover {
  color: #ccc;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background: #111;
  }
  .navbar li {
    margin: 0;
  }
  #searchBar {
    width: 80%;
  }
}
