.item-tile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  margin: 32px auto;
  max-width: 600px;
  transition: box-shadow 0.2s;
}
.item-tile:hover {
  box-shadow: 0 8px 32px rgba(211, 47, 47, 0.12);
}
.item-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.item-details {
  flex: 1;
}
.item-title {
  font-size: 1.3rem;
  color: #d32f2f;
  margin: 0 0 8px 0;
  font-weight: 700;
}
.item-desc {
  color: #444;
  font-size: 1rem;
  margin-bottom: 16px;
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.item-price {
  font-size: 1.15rem;
  color: #1976d2;
  font-weight: 600;
}
.item-action {
  background: #ffb380;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.item-action:hover {
  background: #d32f2f;
}
.shop-description {
  width: 100vw;
  /* minimal height so the section takes as little vertical space as possible */
  min-height: 48px;
  margin: 0;
  /* changed to clean white with a subtle red left accent for a professional look */
  background: #ffffff;
  border-left: 6px solid #e3342f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  /* slightly larger left padding so the accent doesn't touch content */
  padding: 8px 16px 8px 22px;
  /* center content horizontally without changing height */
  text-align: center;
  display: block;
  box-sizing: border-box;
}
.shop-description h2 {
  color: #d32f2f;
  font-size: 1.6rem;
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 4px rgba(211, 47, 47, 0.06);
}
.shop-description p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  max-width: none; /* allow paragraph to span full width */
  width: 100%;
  font-weight: 400;
}
.shop-navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-right: 16px;
  flex-wrap: wrap;
}
.shop-nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s, border-bottom 0.2s, color 0.2s;
  position: relative;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 2px;
  display: inline-block;
  width: 120px;
  text-align: center;
}

.shop-nav-link:hover,
.shop-nav-link:focus {
  background: #ffb380;
  color: #fff;
  border-bottom: 3px solid #e67c30;
  text-shadow: 0 1px 2px rgba(211, 47, 47, 0.08);
  border-radius: 0;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
  height: 60px;
  line-height: 60px;
}
.shop-banner {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s;
  margin-top: 60px;
}
.shop-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.shop-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #e53935;
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 60px;
  box-sizing: border-box;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.shop-navbar-left {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  height: 60px;
  justify-content: flex-start;
}
.shop-categories-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 0 32px;
  height: 60px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 0;
}
.shop-navbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 60px;
  padding-left: 32px;
}
.shop-search-input {
  width: 350px;
  padding: 10px 16px;
  border: 2px solid #fff;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
}
.shop-search-btn {
  display: none;
}
body {
  background: #ececec;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.shop-container {
  max-width: 600px;
  margin: 100px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 40px;
  text-align: center;
}
h1 {
  color: #1976d2;
  margin-bottom: 16px;
}
p {
  color: #555;
  font-size: 18px;
}

.shop-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}
.shop-banner img {
  width: 100vw;
  height: 400px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s;
  background: transparent;
}

/* Recently Added breakout and styling */
.recently-added {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 18px 24px !important;
  z-index: 1;
}
.recently-added .recent-bar {
  background: #e3342f !important;
  padding: 24px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.recently-added .recent-inner {
  max-width: 1200px;
  margin: 0; /* align to the left within the breakout container */
  display: flex;
  gap: 18px;
  justify-content: flex-start; /* tiles start from the left */
  padding: 8px 0;
}

/* Tile sizing for Recently Added */
.recent-tile {
  width: 220px;
  height: 300px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.recent-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-style: solid; /* solid white border, asymmetric width below */
  border-color: #ffffff;
  border-width: 6px 5px; /* top/bottom 6px, left/right 5px */
  box-sizing: border-box;
}

/* Tile internals */
.recent-tile {
  display: flex;
  flex-direction: column;
  position: relative;
}
.recent-tile .tile-media {
  flex: 1 1 auto;
  background: #f5f5f5;
  min-height: 0;
}
.recent-tile .tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-style: solid;
  border-color: #ffffff;
  border-width: 6px 5px;
  box-sizing: border-box;
}
/* ensure footer is always visible by overlaying it at tile bottom */
.recent-tile .tile-footer {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10;
}
.tile-title {
  font-weight: 700;
  color: #222;
  font-size: 0.95rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
}
.tile-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.tile-controls .tile-price {
  margin-right: auto;
}
.tile-controls .tile-cart {
  margin-left: 6px;
}
.tile-price {
  color: #1976d2;
  font-weight: 700;
}
.tile-cart {
  background: #ffb380;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.tile-cart:hover {
  background: #d9773b;
}
/* debug: small source hint under images (temporary) */
.img-src-debug {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 6px;
  margin-top: 6px;
  border-radius: 4px;
  display: inline-block;
}
/* quantity input in tile footer */
.tile-qty {
  width: 60px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  text-align: center;
}
.tile-qty:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* low-inventory badge */
.tile-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #16a34a;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 30;
}
.recent-tile .tile-media {
  position: relative;
}
