/* ================================
   Brand Colors / Helpers
=================================== */
:root{
  --brand-orange: #ff0000;
  --brand-orange-hover: #cf1111;
}

/* Reusable brand button */
.btn-orange {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.btn-orange:hover,
.btn-orange:focus {
    background-color: #e60000;
    border-color: #e60000;
    color: #fff;
}


.btn-warning {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #e60000 !important;
    border-color: #e60000 !important;
    color: #fff !important;
}


/* Quick utilities */
.bg-orange{ background-color: var(--brand-orange) !important; }
.text-orange{ color: var(--brand-orange) !important; }
.border-orange{ border-color: var(--brand-orange) !important; }

/* ================================
   Cards / Tiles (unchanged)
=================================== */
.card {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
}

/* Zoom image background */
.card-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}
.card:hover .card-image { transform: scale(1.1); }

/* Title */
.card-title-overlay {
  position: absolute;
  top: 10px; left: 15px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  z-index: 2;
}

/* Bottom quantity + button overlay */
.hover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}
.card:hover .hover-overlay { opacity: 1; visibility: visible; }
.hover-overlay input[type=number] { max-width: 70px; }

/* Category cards */
.category-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.category-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(70%);
  border-radius: 8px;
  transition: transform 0.4s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-text {
  position: absolute;
  top: 20px; left: 20px;
  color: white;
  font-weight: 600;
  font-size: 2.4rem;
  border-radius: 8px;
}

/* Hero background card */
.background-card {
  width: 100%;
  height: 650px;
  position: relative;
  overflow: hidden;
}
.background-card img {
  height: 650px;
  width: 100%;
  object-fit: cover;
  filter: brightness(50%); /* darken only the image */
}
.background-card-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2; /* above the image */
}
.background-card-content .background-card-topic {
  font-size: 3.4rem;
  font-weight: bold;
  margin-bottom: 10px; /* spacing before buttons */
}

.icon-orange {
  filter: invert(47%) sepia(92%) saturate(2833%) hue-rotate(1deg) brightness(101%) contrast(102%);
}

p { font-size: 1.2rem; line-height: 1.4; }

/* Arrow button on tiles */
.arrow-button {
  position: absolute;
  bottom: 20px; left: 20px;
  background: white;
  color: black;
  border-radius: 50%;
  width: 40px; height: 40px;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.arrow-button:hover {
  background: var(--brand-orange);
  color: white;
}

.tile-wrapper { height: 300px; }

/* ================================
   Layout: sticky footer
=================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1; /* pushes footer down */
}

/* ================================
   Shop page
=================================== */

/* Hero */
.shop-hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.shop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}
.shop-hero-title {
  position: absolute;
  inset: 0;                /* top/left/right/bottom: 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.shop-hero-title h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0;
}

/* Layout: sidebar + grid */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 20px 40px;
}
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

/* Filters */
.shop-filters {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 18px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.shop-filters h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.shop-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-filter-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: .95rem;
}
.shop-filter-list li:last-child { border-bottom: 0; }
.shop-filter-list label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.shop-filter-list span {
  color: #8a8a8a;
  font-size: .9rem;
}

/* Controls above the grid */
.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.shop-controls .count {
  color: #6c757d;
  font-size: .95rem;
}

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0,0,0,.08);
}

/* Make whole card clickable to product page */
.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Media (image) area */
.product-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}

/* Badges / like */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f03e3e;
  color: #fff;
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}
.product-like {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 1rem;
  z-index: 2;
}

/* Body */
.product-body {
  padding: 12px 14px 4px;
}
.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.product-price {
  color: #6c757d;
  margin: 0;
}

/* Actions row (qty + Go) */
.product-actions {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 3; /* above .product-card-link */
}
.product-actions .qty {
  max-width: 80px;
}
.product-actions .btn-go {
  padding: 6px 14px;
}

.diet-badge {
  position: absolute;
  top: 10px;
  left: -30px;
  background: #28a745; /* green for vegan */
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 5px 40px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center;
  z-index: 10;
}

