* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
.app {
  display: flex;
  min-height: 100vh;
  background-color: #fcfcfc;
}
.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 50px;
}
.action-button {
  background-color: #10b981;
  color: white;
  border: none;
  text-color: white;
  padding: 10px 18px;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  height: 50px;
  width: 120px;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shirt-details .action-button {
  height: 70px;
  width: 180px;
}
.action-button:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.action-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.action-button:focus {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}
.sidebar {
  width: 22%;
  background-color: #333132;
  color: #f9fafb;
  padding: 3rem 2rem;
  flex-shrink: 0;
  overflow-y: auto;
}
.dr {
  width: 85%;
  height: auto;
}
.logoabove {
  margin-bottom: 1rem;
}
.logoabove .bcc {
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
}
.sidebar h3 {
  color: #f37121;
  font-size: 1.8rem;
  margin-bottom: 0px;
  font-weight: 100;
}
.money {
  color: #34d399;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 40px;
  display: block;
}
.sidebar h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}
.sidebar .heading {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  text-decoration: none;
}
.sidebar hr {
  border: 0;
  border-top: 1px solid #374151;
  margin-bottom: 1.5rem;
}
.sidebar p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #f37121;
}
.sidebar a {
  color: white;
}
.impact-box {
  background: #1f1d1e;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.impact-box h4 {
  margin-bottom: 0.5rem;
  color: #f37121;
}
.impact-box ul {
  padding-left: 1rem;
  margin-left: 0;
  list-style-position: inside;
  line-height: 1.6;
  color: #c05a1a;
}
.content {
  flex-grow: 1;
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}
.product-card {
  width: 75%;
  position: relative;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 10px;
}
.product-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-card:hover .gallery-btn {
  opacity: 1;
}
.gallery-btn:hover {
  background: rgba(0,0,0,0.7);
}
.gallery-btn.left { left: 10px; }
.gallery-btn.right { right: 10px; }
.product-card h2 {
  margin-top: 10px;
  font-size: 1.1rem;
}
.cost {
  color: #1f805c;
  font-weight: 700;
  font-size: 30px;
}
.sidebar-hero-title {
  font-size: 1rem !important;
  font-weight: 800;
  color: #f9fafb;
  text-transform: uppercase;
  line-height: 1.25 !important;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  text-align: left;
}
.sidebar-tagline {
  color: #34d399 !important;
  font-size: 1.5rem !important;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
  border-top: 2px solid #34d399;
  padding-top: 0.75rem;
  line-height: 1.85rem !important;
}
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #374151;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-cart:hover { color: #111; background: rgba(0,0,0,0.06); }
.nav-cart svg { width: 28px; height: 28px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s;
}
.cart-badge.hidden { display: none; }
.cart-badge.bump { transform: scale(1.35); }

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .app {
    flex-direction: column;
    min-height: auto;
  }
  .sidebar {
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
    position: static;
    text-align: center;
  }
  .sidebar-hero-title { text-align: center; }
  .sidebar-tagline { text-align: center; }
  .content {
    padding: 2rem 1rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .product-card {
    min-height: auto;
    width: 85%;
    margin: 0 auto;
  }
  .gallery-btn {
    padding: 0.4rem 0.7rem;
    opacity: 1;
    font-size: 1.2rem;
  }
  .gallery-btn.left { left: 30px; opacity: 1; }
  .gallery-btn.right { right: 30px; opacity: 1; }
}
/* MacBook Air 13" */
@media screen and (width: 1280px) and (max-height: 800px) {
  .sidebar {
    padding: 1.5rem 1.2rem;
  }

  .sidebar h3 {
    font-size: 26px;
  }

  .money {
    font-size: 26px;
  }

  .sidebar h2 {
    font-size: 1.4rem;
  }

  .sidebar p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .sidebar-hero-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.9rem;
  }

  .impact-box {
    padding: 1rem;
    margin-bottom: 1.2rem;
  }

  .impact-box ul {
    font-size: 0.9rem;
  }

  .cost {
    font-size: 22px;
  }

  .product-card h2 {
    font-size: 1rem;
  }

  .logoabove .bcc {
    height: 45px;
  }
}
@media screen and (width: 1180px) and (max-height: 820px) {
 .sidebar {
  width: 28%;
 }