/* ================= 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: linear-gradient(90deg, #1a1a1a 0%, #2a0f0f 50%, #1a1a1a 100%);
  padding: 18px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  color: #ffb703;
}

/* CART BUTTON */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.cart-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* CART COUNT BADGE */
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ffb703;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= HERO ================= */
.hero {
  min-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 16px;
  color: #fff;
}

.hero h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
}

/* ================= SECTIONS ================= */
.section-title {
  max-width: 1200px;
  margin: 50px auto 20px;
  padding: 0 16px;
  font-size: clamp(22px, 3vw, 26px);
}

/* ================= CATEGORY SLIDER ================= */
.category-slider {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.category-slider::-webkit-scrollbar {
  height: 6px;
}

.category-slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.category-card {
  min-width: 280px;
  height: 160px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  text-decoration: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );
}

.category-card span {
  position: absolute;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
}

/* ================= PRODUCTS ================= */
.product-grid {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 14px;
  color: #555;
  min-height: 42px;
}

.price {
  margin-top: auto;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ================= BUTTONS ================= */
.btn {
  background: #ffb703;
  color: #000;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: #ffa600;
}

.btn.checkout-btn {
  width: auto;
  padding: 14px 32px;
}

.btn.danger {
  background: #ff5c5c;
  color: #fff;
}

/* ================= CART ================= */
.qty-row,
.cart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty,
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  font-weight: bold;
  background: #eee;
  cursor: pointer;
}

.qty:hover,
.qty-btn:hover {
  background: #ddd;
}

/* ================= CART GRID ================= */
.cart-grid {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cart-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-price {
  font-size: 18px;
  font-weight: bold;
}

.remove-btn {
  margin-top: auto;
  background: transparent;
  color: #e63946;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* ================= CART SUMMARY ================= */
.cart-summary-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.cart-summary-inner {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cart-total strong {
  font-size: 22px;
}

/* ================= CHECKOUT ================= */
.checkout-page {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.checkout-card,
.checkout-success {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  text-align: center;
}

.checkout-card input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  font-size: 16px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 40px 16px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .category-card {
    min-width: 240px;
    height: 140px;
  }

  .product-card img {
    height: 220px;
  }

  .cart-summary-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= LOGO ================= */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: #ffb703;
  letter-spacing: 2px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 12px;
  }
}
