/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: #f5f6f7;
  color: #222;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ================= HEADER ================= */
.site-header {
  background: #b11226;
  padding: 14px 20px;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 22px;
  font-weight: 600;
}

/* CART ICON */
.cart-btn {
  position: relative;
  font-size: 22px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ffb703;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= HERO ================= */
.hero {
  height: 60vh;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../images/banner-meat.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  color: #fff;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-btn {
  background: #ffb703;
  color: #000;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
}

/* ================= SECTION TITLES ================= */
.section-title {
  max-width: 1200px;
  margin: 40px auto 10px;
  padding: 0 20px;
  font-size: 26px;
  font-weight: 700;
}

/* ================= CATEGORY SLIDER ================= */
.category-slider-section {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.category-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-slide {
  min-width: 320px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.category-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-slide span {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
}

.category-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}

/* ================= PRODUCTS ================= */
.product-grid {
  max-width: 1200px;
  margin: 30px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-info {
  padding: 18px;
}

.product-info h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.price {
  font-weight: bold;
  margin-bottom: 12px;
}

/* ================= CATEGORY PAGE PRODUCT ================= */
.category-product {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.category-product img {
  width: 45%;
  object-fit: cover;
}

.category-product .info {
  padding: 24px;
}

/* ================= CART ================= */
.cart-box {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eee;
  text-align: center;
  line-height: 30px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.cart-total {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
}

/* ================= CHECKOUT ================= */
.cart-box input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  font-size: 16px;
}

/* SUCCESS CARD */
.order-success {
  max-width: 500px;
  margin: 50px auto;
  background: #e9ffe9;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.order-success h3 {
  color: #1a7f1a;
  margin-bottom: 10px;
}

/* ================= BUTTONS ================= */
.btn,
button {
  background: #ffb703;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: #000;
}

.btn:hover,
button:hover {
  background: #ffa600;
}

/* ================= FOOTER ================= */
footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px;
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

footer h3 {
  color: #fff;
  margin-bottom: 12px;
}

footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-powered {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.footer-powered a {
  color: #ffb703;
}

/* ================= MOBILE (SAME LAYOUT, ONLY SCALED) ================= */
@media (max-width: 600px) {

  .logo img {
    height: 36px;
  }

  nav a {
    margin-left: 14px;
    font-size: 15px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
