:root {
  --color-primary: #006D77;    
  --color-secondary: #83C5BE;  
  --color-accent: #E29578;     
  --color-dark: #2C3E50;      
  --color-light: #EDFFF4;      
  --color-warning: #FF9F1C;    
  --body-bg: #F5F9F9;          
  --max-width: 1400px;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--color-dark);
}

.top-banner {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-light:hover {
  color: var(--color-primary);
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-danger {
  background-color: var(--color-accent) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-danger {
  color: var(--color-accent) !important;
}

@media (min-width: 1200px) {
  .container {
    max-width: 98%; 
    padding-left: 10px; 
    padding-right: 10px; 
  }
}

.row {
  margin-left: -5px; 
  margin-right: -5px; 
}

.col, .col-md-4, .col-sm-6, .col-lg-3 {
  padding-left: 5px; 
  padding-right: 5px; 
  margin-bottom: 10px; 
}

.card {
  height: 100%;
  margin-bottom: 0;
  border-radius: 3px; 
  overflow: hidden;
}

@media (max-width: 576px) {
  .container {
    padding-left: 3px; 
    padding-right: 3px; 
    max-width: 100%;
  }
  
  .row {
    margin-left: -3px; 
    margin-right: -3px;
  }
  
  .col, .col-6, .col-12 {
    padding-left: 3px; 
    padding-right: 3px; 
  }
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-text {
  flex-grow: 1;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/rainforest.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.card a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1 0 auto;
  padding-bottom: 20px;
}


.auth-container {
  max-width: 500px;
  margin: 3rem auto;
  padding: 0 15px;
}

.auth-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.auth-subtitle {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  font-weight: 500;
  margin-top: 1rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 300px;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.portfolio-navbar {
  transition: transform 0.28s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.portfolio-navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-brand img {
  height: 170px;
  width: auto;
  margin-top: -28px;
  margin-bottom: -28px;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.02)
}

.navbar-nav .nav-item {
  margin: 0 0.3rem;
}

.navbar-nav .nav-link {
  color: var(--color-dark);
  font-weight: 500; 
  font-size: 1rem; 
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(0, 109, 119, 0.05); 
}

.cart-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.navbar-nav .user-name {
  font-weight: 600; 
  color: var(--color-primary);
}

.navbar-nav .auth-link {
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  margin-left: 0.4rem;
}

.navbar-nav .auth-link:hover {
  background-color: var(--color-primary);
  color: white;
}

footer {
  flex-shrink: 0;
  background-color: var(--color-dark); 
  color: white;
  padding: 2rem 0 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 240px;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.footer-column h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.social-link:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}
/* Portfolio refinement pass */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.auth-card {
  border-radius: 18px;
}

.form-control {
  border-radius: 10px;
  border-color: #d8e2e3;
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.12);
}

.role-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 109, 119, 0.1);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.product-card {
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(44, 62, 80, 0.12) !important;
}

.product-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.product-image-link {
  display: block;
  overflow: hidden;
}

.product-card .card-img-top {
  transition: transform 0.25s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.025);
}

.product-category {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-badge {
  z-index: 2;
}

.empty-cart-card {
  border-radius: 18px;
}

.empty-cart-icon {
  font-size: 3rem;
}

.btn {
  border-radius: 9px;
}

/* Portfolio polish: auth, alerts, cart, and data-clerk controls */
.auth-shell {
  width: min(100%, 700px);
}

.auth-page {
  min-height: auto;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.auth-card {
  height: auto;
}

.site-alert,
.alert-danger {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(226, 149, 120, 0.45);
  background: rgba(226, 149, 120, 0.12);
  color: var(--color-dark);
}

.site-alert-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  background: var(--color-accent);
  color: white;
}

.site-alert-info {
  border-color: rgba(0, 109, 119, 0.24);
  background: rgba(131, 197, 190, 0.18);
}

.site-alert-info .site-alert-icon {
  background: var(--color-primary);
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.category-option {
  border: 1px solid rgba(0, 109, 119, 0.35);
  background: white;
  color: var(--color-primary);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.category-option:hover {
  border-color: var(--color-primary);
  background: rgba(131, 197, 190, 0.13);
  color: var(--color-primary);
}

.btn-check:checked + .category-option {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.1);
}

.cart-page {
  padding-bottom: 4.5rem !important;
}

.cart-item,
.order-summary,
.empty-cart-card {
  height: auto;
  border-radius: 16px;
}

.cart-item:hover,
.order-summary:hover,
.empty-cart-card:hover {
  transform: none;
}

.cart-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #eef4f4;
}

.order-summary {
  position: sticky;
  top: 125px;
}

.quantity-form .form-control {
  min-width: 68px;
}

@media (max-width: 991.98px) {
  .order-summary {
    position: static;
  }
}

@media (max-width: 576px) {
  .auth-page {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .auth-card .card-body {
    padding: 1.5rem !important;
  }
}


.site-alert-warning {
  border-color: rgba(255, 159, 28, 0.35);
  background: rgba(255, 159, 28, 0.11);
}

.site-alert-warning .site-alert-icon {
  background: var(--color-warning);
}

.stock-badge-sold-out {
  background: var(--color-dark);
  color: white;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 140px;
    margin-top: -24px;
    margin-bottom: -24px;
  }

  .portfolio-navbar.navbar-hidden {
    transform: none;
  }
}

/* v2 navbar + product search */
.navbar-shell {
  gap: 1rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-search {
  flex: 1 1 360px;
  max-width: 520px;
  min-width: 260px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  background: #f7fbfb;
  border: 1px solid rgba(0, 109, 119, 0.18);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-search:focus-within {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.10);
}

.nav-search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-dark);
  font-size: 0.94rem;
}

.nav-search-input::placeholder {
  color: #829194;
}

.nav-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.nav-search-button {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-search-button:hover {
  background: #005861;
}

.nav-search-button:active {
  transform: scale(0.98);
}

.nav-actions {
  gap: 0.1rem;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  position: relative;
  border-radius: 999px;
}

.navbar-nav .nav-link.active {
  color: var(--color-primary);
  background-color: rgba(0, 109, 119, 0.09);
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.navbar-nav .auth-link {
  padding-left: 1rem;
  padding-right: 1rem;
}

.inventory-eyebrow {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-empty-state {
  max-width: 560px;
  margin: 1rem auto 4rem;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 109, 119, 0.10);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.06);
}

@media (max-width: 1199.98px) {
  .navbar-brand img {
    height: 145px;
  }

  .navbar-content {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem 0 1rem;
  }

  .nav-search {
    flex-basis: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .nav-actions {
    align-items: stretch !important;
  }

  .navbar-nav .nav-item {
    margin: 0.08rem 0;
  }

  .navbar-nav .nav-link {
    border-radius: 8px;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-nav .auth-link {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .nav-search {
    height: auto;
    border-radius: 12px;
    padding: 0.45rem 0.45rem 0.45rem 0.75rem;
  }

  .nav-search-button {
    padding: 0.58rem 0.75rem;
  }
}

/* v3 visual polish: centered search, login heading, product status ribbons */
@media (min-width: 1400px) {
  .navbar-shell {
    position: relative;
  }

  .navbar-content {
    position: static;
    min-height: 52px;
  }

  .nav-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(34vw, 500px);
    max-width: 500px;
    min-width: 360px;
    height: 46px;
    background: #ffffff;
    border-color: rgba(0, 109, 119, 0.2);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.06);
  }

  .nav-actions {
    margin-left: auto !important;
  }
}

.nav-search-button-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-heading {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 109, 119, 0.1);
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 109, 119, 0.08);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-heading h1 {
  color: var(--color-dark);
  font-weight: 700;
}

.auth-switch {
  color: #68787b;
}

.product-card {
  overflow: hidden;
}

.product-status-ribbon {
  position: absolute;
  top: 16px;
  right: -34px;
  z-index: 4;
  width: 132px;
  padding: 0.38rem 0;
  transform: rotate(35deg);
  text-align: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

.product-status-sale {
  background: #d96d55;
}

.product-status-sold-out {
  background: #33484d;
}

.product-status-featured {
  background: var(--color-primary);
}

.product-card-sold-out .card-img-top {
  filter: saturate(0.55) brightness(0.88);
  opacity: 0.82;
}

.product-card-sold-out:hover .card-img-top {
  transform: none;
}

.sale-price,
.low-stock-text {
  color: #c75f49;
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
  .nav-search {
    max-width: 430px;
  }
}

/* Order history and checkout */
.order-empty-state,
.order-confirmation-card {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
}

.order-empty-icon {
  font-size: 2.4rem;
}

.order-history-card {
  border-radius: 14px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 109, 119, 0.09);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-history-items,
.order-confirmation-items {
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.order-history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.order-history-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef5f5;
  flex: 0 0 auto;
}

.order-confirmation-check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 109, 119, 0.1);
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 800;
}

.order-confirmation-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.order-confirmation-meta > div {
  padding: 1rem;
  border-radius: 12px;
  background: #f6fafa;
}

.order-confirmation-meta span,
.order-confirmation-meta strong {
  display: block;
}

.order-confirmation-meta span {
  color: #6d7d80;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.order-confirmation-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  font-size: 1.15rem;
}

.order-confirmation-total strong {
  color: var(--color-primary);
  font-size: 1.5rem;
}

@media (max-width: 767.98px) {
  .order-confirmation-meta {
    grid-template-columns: 1fr;
  }

  .order-history-image {
    width: 58px;
    height: 58px;
  }
}

/* Product detail page */
.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--color-primary);
}

.product-detail-card {
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(44, 62, 80, 0.08);
}

.product-detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 2.5rem;
  background: #f4f8f8;
  overflow: hidden;
}

.product-detail-image {
  width: 100%;
  max-width: 560px;
  max-height: 560px;
  object-fit: contain;
}

.product-detail-media-sold-out .product-detail-image {
  filter: saturate(0.55) brightness(0.9);
  opacity: 0.82;
}

.product-detail-content {
  height: 100%;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.product-detail-title {
  margin-bottom: 0.75rem;
  color: var(--color-dark);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.product-detail-price {
  color: var(--color-primary);
  font-size: 1.65rem;
  font-weight: 800;
}

.product-detail-description h2 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-description p {
  color: #617174;
  font-size: 1.05rem;
  line-height: 1.75;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-detail-meta > div {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f6fafa;
}

.product-detail-meta dt {
  margin-bottom: 0.3rem;
  color: #728184;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-detail-meta dd {
  margin: 0;
}

.product-detail-meta code {
  color: #3f5559;
  font-size: 0.86rem;
}

.product-detail-cart-form {
  display: flex;
  align-items: end;
  gap: 0.85rem;
}

.product-detail-quantity {
  width: 110px;
  flex: 0 0 110px;
}

.product-detail-back-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: #617174;
  text-decoration: none;
  font-weight: 600;
}

.product-detail-back-link:hover {
  color: var(--color-primary);
}

@media (max-width: 991.98px) {
  .product-detail-media {
    min-height: 380px;
  }
}

@media (max-width: 575.98px) {
  .product-detail-meta {
    grid-template-columns: 1fr;
  }

  .product-detail-cart-form {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail-quantity {
    width: 100%;
    flex-basis: auto;
  }
}

/* Compact storefront product grid */
.category-section-title {
  color: var(--color-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.product-card-compact {
  min-width: 0;
}

.product-card-compact .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card-compact .card-body {
  min-height: 230px;
  padding: 0.9rem;
}

.product-card-title {
  min-height: 2.5rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-card-compact .product-description {
  min-height: 2.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.product-card-price,
.product-stock-line {
  font-size: 0.84rem;
}

.product-card-action {
  position: relative;
  z-index: 3;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Neutral management and cart actions */
.admin-product-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  border-color: rgba(44, 62, 80, 0.08);
}

.admin-table-head th {
  background: #f4f7f7;
  color: #405155;
  border-bottom: 1px solid rgba(44, 62, 80, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.admin-product-table tbody tr:hover {
  background: rgba(0, 109, 119, 0.035);
}

.admin-status-badge {
  background: #edf2f2;
  color: #506164;
  border: 1px solid #dce5e5;
}

.admin-action-btn {
  border-color: #cbd6d7;
  color: #4b5b5e;
}

.admin-action-btn:hover {
  background: #eef3f3;
  border-color: #b9c8ca;
  color: #25373b;
}

.admin-delete-btn,
.cart-remove-btn {
  color: #49575a;
}

.admin-delete-btn {
  border: 1px solid #cbd3d4;
  background: #fff;
}

.admin-delete-btn:hover {
  background: #303c3f;
  border-color: #303c3f;
  color: #fff;
}

.cart-remove-btn:hover {
  color: #1f292b;
  text-decoration: underline !important;
}

/* v8 navbar cleanup: compact clerk/account menus */
.staff-menu .dropdown-toggle,
.account-menu .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-menu .dropdown-toggle {
  color: var(--color-primary);
  font-weight: 650;
}

.account-menu .user-name {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.portfolio-navbar .dropdown-menu {
  border: 1px solid rgba(0, 109, 119, 0.10);
  border-radius: 12px;
  padding: 0.45rem;
  box-shadow: 0 12px 30px rgba(44, 62, 80, 0.12);
  min-width: 190px;
}

.portfolio-navbar .dropdown-item,
.portfolio-navbar .dropdown-item-text {
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.portfolio-navbar .dropdown-item:hover,
.portfolio-navbar .dropdown-item:focus {
  background: rgba(0, 109, 119, 0.08);
  color: var(--color-primary);
}

.account-role-label {
  color: #6f8083;
  font-size: 0.78rem !important;
  font-weight: 600;
}

@media (min-width: 1400px) {
  .nav-actions {
    gap: 0;
  }

  .navbar-nav .nav-item {
    margin-left: 0.14rem;
    margin-right: 0.14rem;
  }

  .navbar-nav .nav-link {
    padding-left: 0.72rem;
    padding-right: 0.72rem;
  }
}

@media (max-width: 1199.98px) {
  .staff-menu .dropdown-toggle,
  .account-menu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
  }

  .portfolio-navbar .dropdown-menu {
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0.35rem 0.8rem;
    background: transparent;
  }

  .portfolio-navbar .dropdown-item,
  .portfolio-navbar .dropdown-item-text {
    padding: 0.5rem 0.75rem;
  }
}

/* Home category showcase */
.category-showcase {
  background: linear-gradient(180deg, #f7fbfa 0%, #eef6f5 100%);
}

.category-showcase-heading {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.category-showcase-eyebrow {
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: #17383d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(36, 62, 65, 0.10);
  isolation: isolate;
}

.category-tile-image,
.category-tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile-image {
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.3s ease;
  z-index: -2;
}

.category-tile-shade {
  background: linear-gradient(180deg, rgba(7, 29, 32, 0.08) 15%, rgba(7, 29, 32, 0.82) 100%);
  z-index: -1;
  transition: background 0.3s ease;
}

.category-tile-content {
  min-height: 300px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(10, 38, 42, 0.24);
  backdrop-filter: blur(5px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.category-tile h3 {
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.category-tile p {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.category-tile-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-tile-action span {
  transition: transform 0.2s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 15px 34px rgba(24, 55, 59, 0.18);
}

.category-tile:hover .category-tile-image,
.category-tile:focus-visible .category-tile-image {
  transform: scale(1.055);
  filter: saturate(1.05);
}

.category-tile:hover .category-tile-shade,
.category-tile:focus-visible .category-tile-shade {
  background: linear-gradient(180deg, rgba(0, 109, 119, 0.08) 10%, rgba(4, 54, 59, 0.88) 100%);
}

.category-tile:hover .category-tile-action span,
.category-tile:focus-visible .category-tile-action span {
  transform: translateX(4px);
}

.category-tile:focus-visible {
  outline: 3px solid rgba(226, 149, 120, 0.75);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile,
  .category-tile-content {
    min-height: 270px;
  }
}

@media (max-width: 575.98px) {
  .category-showcase-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .category-tile,
  .category-tile-content {
    min-height: 230px;
  }
}

/* Final cohesive storefront and inventory refinement */
:root {
  --color-primary: #0b7378;
  --color-primary-deep: #17444a;
  --color-secondary: #9bc9c4;
  --color-accent: #d9785f;
  --color-dark: #2e4656;
  --color-muted: #708186;
  --color-border: #dfe8e8;
  --color-surface: #ffffff;
  --color-surface-soft: #f4f8f8;
  --body-bg: #f5f9f9;
}

/* Consistent product image frames: transparent 1000x1000 sources stay centered and contained */
.product-image-link {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  background: linear-gradient(180deg, #fbfdfd 0%, #f2f7f7 100%);
  overflow: hidden;
}

.product-card-compact .card-img-top,
.product-card .card-img-top {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
}

.product-card:hover .card-img-top {
  transform: scale(1.02);
}

.product-detail-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  max-width: 620px;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
}

.cart-product-image,
.order-history-image,
.admin-product-thumb {
  object-fit: contain !important;
  object-position: center;
}

/* Replace diagonal/color-heavy ribbons with restrained status pills */
.product-status-ribbon {
  top: 0.75rem;
  right: 0.75rem;
  width: auto;
  min-width: 0;
  padding: 0.35rem 0.62rem;
  transform: none;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(30, 55, 60, 0.10);
}
.product-status-sale { background: var(--color-accent); }
.product-status-sold-out { background: #55686d; }
.product-status-featured { background: var(--color-primary); }

/* Breadcrumbs */
.site-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: #50656a;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.breadcrumb-pill:hover {
  color: var(--color-primary);
  border-color: rgba(11, 115, 120, 0.35);
  background: #f6fbfb;
}

.breadcrumb-pill.active {
  background: rgba(11, 115, 120, 0.10);
  border-color: rgba(11, 115, 120, 0.12);
  color: var(--color-primary-deep);
}

.breadcrumb-home {
  width: 2rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}

.breadcrumb-separator {
  color: #9aabad;
  font-size: 1.05rem;
}

/* Shop headings and lightweight filters */
.shop-heading-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-kicker,
.product-family-kicker {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-page-title {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.shop-page-copy {
  max-width: 700px;
  margin: 0.55rem 0 0;
  color: var(--color-muted);
}

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.35rem;
}

.shop-sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-sort-group label {
  color: #65777b;
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-sort-group .form-select {
  min-width: 165px;
  border-radius: 999px;
}

.filter-chip,
.family-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: #4f6367;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.filter-chip input { display: none; }
.filter-chip.active,
.family-chip.active,
.family-chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.family-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-family-section {
  margin-bottom: 2.75rem;
}

.product-family-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(46, 70, 86, 0.08);
}

.product-family-heading h2 {
  margin: 0;
  color: var(--color-dark);
  font-size: 1.35rem;
}

.product-family-heading > span {
  color: #7c8d90;
  font-size: 0.78rem;
}

/* Cleaner category presentation: integrated cards rather than dark poster tiles */
.category-showcase {
  position: relative;
  background: linear-gradient(180deg, #f8fbfb 0%, #f2f8f7 100%);
  overflow: hidden;
}

.category-showcase::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4.6rem;
  width: min(900px, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(11,115,120,0.13), transparent);
}

.category-showcase-heading {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0 0.6rem;
}

.category-showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.category-showcase-eyebrow::before,
.category-showcase-eyebrow::after {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.45;
}

.category-showcase-heading h2 {
  color: var(--color-dark);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.category-showcase-grid {
  gap: 0.85rem;
}

.category-tile {
  min-height: 240px;
  border: 1px solid rgba(46, 70, 86, 0.08);
  border-radius: 15px;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 8px 22px rgba(38, 68, 72, 0.07);
}

.category-tile-image {
  inset: 0.75rem 0.75rem auto;
  width: calc(100% - 1.5rem);
  height: 145px;
  padding: 0.35rem;
  border-radius: 11px;
  background: #edf5f4;
  object-fit: contain;
}

.category-tile-shade { display: none; }

.category-tile-content {
  min-height: 240px;
  padding: 160px 1rem 1rem;
  justify-content: flex-start;
}

.category-tile-number {
  top: 1rem;
  left: 1rem;
  min-width: 1.85rem;
  height: 1.85rem;
  border-color: rgba(11,115,120,0.18);
  background: rgba(255,255,255,0.9);
  color: var(--color-primary-deep);
  backdrop-filter: none;
}

.category-tile h3 {
  margin-bottom: 0.15rem;
  color: var(--color-dark);
  font-size: 1.08rem;
}

.category-tile p {
  margin-bottom: 0.5rem;
  color: #738487;
  font-size: 0.8rem;
}

.category-tile-action {
  margin-top: auto;
  color: var(--color-primary);
  font-size: 0.78rem;
}

.category-tile:hover,
.category-tile:focus-visible {
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(38, 68, 72, 0.11);
}

.category-tile:hover .category-tile-image,
.category-tile:focus-visible .category-tile-image {
  transform: scale(1.015);
  filter: none;
}

/* Product cards: calmer palette */
.product-card {
  border: 1px solid rgba(46, 70, 86, 0.08) !important;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(46, 70, 86, 0.07) !important;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(46, 70, 86, 0.11) !important;
}

.sale-price,
.low-stock-text { color: var(--color-accent); }

/* Data Clerk inventory */
.admin-inventory-page { max-width: 1500px; }
.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.admin-page-heading h1 { margin: 0; color: var(--color-dark); }
.admin-page-heading p { margin: 0.4rem 0 0; color: var(--color-muted); }
.admin-add-product { white-space: nowrap; }

.admin-filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(240px, 1.6fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(46,70,86,0.05);
}
.admin-filter-field label,
.admin-filter-search label {
  display: block;
  margin-bottom: 0.28rem;
  color: #687b7f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-clear-filter { border: 1px solid var(--color-border); }

.admin-inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #708185;
  font-size: 0.82rem;
}
.admin-inventory-toolbar form { display: flex; align-items: center; gap: 0.5rem; }
.admin-inventory-toolbar label { font-weight: 700; }
.admin-inventory-toolbar select { min-width: 175px; }

.admin-category-groups { display: grid; gap: 0.85rem; }
.admin-category-group {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(46,70,86,0.045);
}
.admin-category-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  background: linear-gradient(90deg, rgba(155,201,196,0.22), rgba(155,201,196,0.08));
}
.admin-category-heading h2 { margin: 0; color: var(--color-dark); font-size: 1rem; }
.admin-category-heading span { color: #728589; font-size: 0.78rem; }
.admin-product-table thead th {
  background: #fbfdfd;
  color: #607277;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-product-table td { border-color: #edf2f2; font-size: 0.88rem; }
.admin-product-thumb-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0.2rem;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #f8fbfb;
}
.admin-product-thumb { width: 100%; height: 100%; }
.admin-product-title { color: var(--color-primary-deep); font-weight: 700; text-decoration: none; }
.admin-product-title:hover { color: var(--color-primary); text-decoration: underline; }
.admin-sku { color: #8a5d66; font-size: 0.74rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}
.status-featured { background: #dfeeed; color: #35686a; }
.status-live { background: #e8efe3; color: #577052; }
.status-sold-out { background: #5c6d72; color: #fff; }
.admin-status-cell { display: table-cell; }
.admin-status-cell .status-pill { margin: 0.08rem; }
.admin-actions { white-space: nowrap; }
.admin-action-btn,
.admin-delete-btn {
  border: 1px solid #ccd8da;
  background: #fff;
  color: #506166;
}
.admin-action-btn:hover { background: #eef5f5; color: #253a3e; }
.admin-delete-btn:hover { background: #526166; border-color: #526166; color: #fff; }
.site-empty-panel {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

/* Footer: remove the harsh full-width divider and make the base feel continuous */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d4658 0%, #274451 60%, #24404a 100%);
  padding-top: 2.4rem;
}
footer::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 330px;
  height: 220px;
  border-radius: 50%;
  background: rgba(155,201,196,0.08);
  pointer-events: none;
}
.footer-brand-column { max-width: 360px; }
.footer-logo {
  width: 180px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.9) saturate(0.25);
}
.footer-column h5::after { background: var(--color-accent); width: 28px; }
.footer-bottom {
  border-top: 0;
  margin-top: 0.6rem;
  padding-top: 0.8rem;
}
.footer-bottom::before {
  content: '';
  display: block;
  width: min(620px, 80%);
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

@media (max-width: 991.98px) {
  .admin-filter-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-filter-search { grid-column: 1 / -1; }
  .category-tile, .category-tile-content { min-height: 225px; }
}

@media (max-width: 767.98px) {
  .shop-heading-block,
  .admin-page-heading,
  .admin-inventory-toolbar { align-items: flex-start; flex-direction: column; }
  .shop-controls { justify-content: flex-start; }
  .admin-filter-panel { grid-template-columns: 1fr; }
  .admin-filter-search { grid-column: auto; }
  .admin-inventory-toolbar form { width: 100%; }
  .admin-inventory-toolbar select { flex: 1; }
}

@media (max-width: 575.98px) {
  .category-tile, .category-tile-content { min-height: 220px; }
  .category-tile-image { height: 132px; }
  .category-tile-content { padding-top: 147px; }
  .product-family-heading { align-items: flex-start; }
}

/* v13 storefront sizing pass: centered retail width, sharper geometry, tighter cards */
:root {
  --storefront-max-width: 1280px;
  --storefront-radius: 6px;
}

/* Keep public shopping content away from the viewport edges like a retail storefront. */
.shop-page,
.category-showcase > .container,
section:has(.product-grid-featured) > .container {
  max-width: var(--storefront-max-width) !important;
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

/* Sharper, calmer storefront geometry. */
.product-card,
.product-detail-card,
.category-tile,
.search-empty-state,
.site-empty-panel {
  border-radius: var(--storefront-radius) !important;
}

.product-card {
  overflow: hidden;
}

.product-image-link {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0.55rem;
  background: #f7faf9;
}

.product-card-compact .card-img-top,
.product-card .card-img-top {
  max-height: 145px;
  object-fit: contain;
  object-position: center;
}

.product-card-compact .card-body {
  min-height: 195px;
  padding: 0.78rem 0.82rem 0.82rem;
}

.product-card-title {
  min-height: 2.2rem;
  margin-bottom: 0.35rem !important;
  font-size: 0.94rem;
}

.product-card-compact .product-description {
  min-height: 2.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.product-card-price,
.product-stock-line {
  font-size: 0.8rem;
}

.product-card .btn {
  border-radius: 4px;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}

.product-grid {
  gap: 0.8rem;
}

.product-family-section {
  margin-bottom: 2.15rem;
}

.product-family-heading {
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
}

/* Categories: simpler retail blocks that sit naturally in the page instead of poster cards. */
.category-showcase {
  background: #f7faf9;
  padding-top: 2.6rem !important;
  padding-bottom: 2.8rem !important;
}

.category-showcase::before {
  display: none;
}

.category-showcase-heading {
  max-width: 650px;
  margin-bottom: 1.6rem !important;
  padding: 0;
}

.category-showcase-eyebrow {
  gap: 0.5rem;
}

.category-showcase-eyebrow::before,
.category-showcase-eyebrow::after {
  width: 26px;
}

.category-showcase-grid {
  gap: 0.75rem;
}

.category-tile {
  min-height: 190px;
  border: 1px solid #dce7e5;
  border-top: 3px solid var(--color-primary);
  background: #fff;
  box-shadow: 0 4px 14px rgba(42, 67, 70, 0.055);
  transform: none;
}

.category-tile-image {
  inset: 0.6rem 0.7rem auto;
  width: calc(100% - 1.4rem);
  height: 105px;
  padding: 0.3rem;
  border-radius: 3px;
  background: #f3f8f7;
  object-fit: contain;
  object-position: center;
}

.category-tile-content {
  min-height: 190px;
  padding: 118px 0.85rem 0.75rem;
}

.category-tile-number {
  display: none;
}

.category-tile h3 {
  font-size: 1rem;
  margin-bottom: 0.08rem;
}

.category-tile p {
  font-size: 0.76rem;
  margin-bottom: 0.35rem;
}

.category-tile-action {
  font-size: 0.75rem;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(42, 67, 70, 0.09);
}

.category-tile:hover .category-tile-image,
.category-tile:focus-visible .category-tile-image {
  transform: none;
}

/* Keep controls visually related instead of mixing several different rounded styles. */
.shop-sort-group .form-select,
.filter-chip,
.family-chip,
.breadcrumb-pill {
  border-radius: 5px;
}

.filter-chip,
.family-chip {
  min-height: 2rem;
  padding: 0.32rem 0.68rem;
}

.site-breadcrumb {
  margin-bottom: 1.2rem;
}

/* Details page: image always remains within its frame. */
.product-detail-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7faf9;
}

.product-detail-image {
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) and (max-width: 1399.98px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .shop-page,
  .category-showcase > .container,
  section:has(.product-grid-featured) > .container {
    width: calc(100% - 2rem);
  }

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile,
  .category-tile-content {
    min-height: 175px;
  }

  .category-tile-image {
    height: 92px;
  }

  .category-tile-content {
    padding-top: 104px;
  }
}

@media (max-width: 767.98px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-image-link {
    aspect-ratio: 1 / 1;
    padding: 0.4rem;
  }

  .product-card-compact .card-img-top,
  .product-card .card-img-top {
    max-height: 125px;
  }

  .product-card-compact .card-body {
    min-height: 180px;
    padding: 0.65rem;
  }

  .product-card-title {
    font-size: 0.88rem;
    min-height: 2.1rem;
  }

  .product-card-compact .product-description {
    font-size: 0.75rem;
    min-height: 2.1rem;
  }
}

@media (max-width: 575.98px) {
  .shop-page,
  .category-showcase > .container,
  section:has(.product-grid-featured) > .container {
    width: calc(100% - 1.25rem);
  }

  .category-showcase {
    padding-top: 2rem !important;
    padding-bottom: 2.2rem !important;
  }

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .category-tile,
  .category-tile-content {
    min-height: 150px;
  }

  .category-tile-image {
    inset: 0.45rem 0.5rem auto;
    width: calc(100% - 1rem);
    height: 76px;
  }

  .category-tile-content {
    padding: 87px 0.6rem 0.55rem;
  }

  .category-tile h3 {
    font-size: 0.88rem;
  }

  .category-tile p {
    display: none;
  }

  .category-tile-action {
    margin-top: 0.15rem;
    font-size: 0.7rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card-compact .card-body {
    min-height: 168px;
  }

  .product-description {
    -webkit-line-clamp: 2;
  }

  .shop-controls {
    gap: 0.45rem;
  }

  .shop-sort-group {
    width: 100%;
  }

  .shop-sort-group .form-select {
    flex: 1;
    min-width: 0;
  }
}

/* v14: compact retail product cards, consistent responsive image staging */
.product-card-compact .card-body { min-height: 135px; }
.product-card-title { min-height: 2.1rem; }
.product-description { display: none !important; }
#animal-classification[hidden] { display: none !important; }
@media (max-width: 575.98px) { .product-card-compact .card-body { min-height: 130px; } }


/* v15: restrained white/teal retail storefront with roomy category navigation.
   Scoped to storefront elements; Data Clerk layout retains its existing styling. */
:root { --storefront-max-width: 1320px; --storefront-radius: 5px; }
body, main { background-color: #fff; }
.shop-page, .category-showcase > .container,
section:has(.product-grid-featured) > .container { max-width: 1320px !important; }
/* Keep hero within same visual margins as product/content sections. */
.hero-shell { max-width: 1320px; width: calc(100% - 3rem); margin: 1.1rem auto 0; }
.hero-shell .hero { min-height: 345px; padding: 3.2rem 1rem; border-radius: 7px; overflow: hidden; }
.hero-shell .hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
/* Larger, distinct category navigation blocks with white surfaces. */
.category-showcase { background: #fff; padding: 3rem 0 !important; }
.category-showcase-heading { max-width: 740px; margin-bottom: 2rem !important; }
.category-showcase-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.category-tile { display: flex; flex-direction: column; min-height: 300px; background: #fff; border: 1px solid #dce6e5; border-top: 1px solid #dce6e5; border-radius: 5px !important; box-shadow: 0 4px 16px rgba(20,44,48,.07); }
.category-tile-image { position: relative; display: block; inset: auto; width: 100%; height: 202px; object-fit: contain; padding: 0.8rem; margin: 0; background: #f6f9f9; border-radius: 0; transform: none; }
.category-tile-content { min-height: 96px; padding: .85rem 1rem 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.category-tile h3 { color: #213b45; font-size: 1.13rem; }
.category-tile p { color: #66777b; font-size: .81rem; display: block; }
.category-tile-action { color: #006e76; font-size: .8rem; }
.category-tile:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(20,44,48,.11); }
/* Product cards: four spacious columns on wide desktop, calm white background. */
.product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product-card { border: 1px solid #e4ebeb !important; border-radius: 5px !important; background: #fff; box-shadow: 0 4px 13px rgba(32,53,57,.065) !important; }
/* Product media: one shared frame, two intentional display modes.
   Regular PNG cutouts are contained; shrimp background photos cover the full frame.
   Remove transparent padding from uploaded images at the source instead of CSS zoom. */
.product-card .product-image-link {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 5px 5px 0 0;
}
.product-card .product-image-link > img.card-img-top {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
  border-radius: 0;
}
.product-card .product-image-link.product-image-shrimp > img.card-img-top {
  object-fit: cover;
}
.product-card .product-image-link img[hidden] { display: none; }
.product-card .product-image-link .product-image-unavailable:not([hidden]) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #667d80;
  text-align: center;
  font-size: .82rem;
  background: #f2f7f6;
}
.product-card { transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,55,61,.10) !important; }
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } }
.product-card-compact .card-body { padding: .78rem .86rem .86rem; min-height: 140px; }
.product-card-title { font-size: .96rem; min-height: 2.2rem; }
.product-card .btn { background: #007580; border-color: #007580; }
.product-card .btn:hover { background: #005d65; border-color: #005d65; }
/* Image detail panel should not dwarf the item information. */
.product-detail-card { border-radius: 6px !important; box-shadow: 0 6px 25px rgba(25,53,57,.08); }
.product-detail-media { background: #fff; min-height: 400px; padding: 1rem; }
.product-detail-image { width: 100%; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; object-position: center; }
.product-detail-content { padding: clamp(1.6rem, 3vw, 2.75rem); }
.product-detail-title { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
/* Shrimp product pages use a photographic cover image. */
.product-detail-media.product-detail-shrimp { padding: 0; min-height: 400px; background: #fff; overflow: hidden; }
.product-detail-media.product-detail-shrimp > .product-detail-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1050px) { .product-grid {grid-template-columns:repeat(3,minmax(0,1fr));} .category-showcase-grid {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width: 767.98px) { .hero-shell { width:calc(100% - 1.25rem); margin-top:.65rem; } .hero-shell .hero {min-height:260px; padding:2rem .6rem;} .product-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem;} .product-detail-media {min-height:310px; padding:.65rem;} .product-detail-image {max-height:370px;} .product-detail-media.product-detail-shrimp {min-height:280px;} .product-detail-media.product-detail-shrimp > .product-detail-image {min-height:280px;} .category-tile {min-height:265px;} .category-tile-image {height:170px;} .category-tile-content {min-height:95px;} }
@media (max-width: 420px) { .category-showcase-grid {grid-template-columns: repeat(2,minmax(0,1fr)); gap:.65rem;} .category-tile {min-height:220px;} .category-tile-image {height:125px;} .category-tile-content {padding:.65rem;min-height:93px;} .category-tile h3 {font-size:.92rem;} .category-tile p {font-size:.7rem;} .product-card-compact .card-body {padding:.62rem;min-height:137px;} }

/* Admin removal screen */
.admin-remove-shell { max-width: 780px; margin: 0 auto; padding: clamp(1.35rem,3vw,2.5rem); background: #fff; border: 1px solid rgba(40,91,92,.13); border-radius: 18px; box-shadow: 0 15px 55px rgba(39,79,78,.06); }
.admin-remove-shell h1 { font-size: clamp(1.8rem,3vw,2.4rem); color: var(--color-dark); }
.admin-remove-preview { display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 1.2rem; padding: 1.1rem; border-radius: 12px; background: #f4f9f8; margin: 1.5rem 0; }
.admin-remove-preview img { width: 135px; height: 135px; object-fit: contain; background: white; border-radius: 8px; }
.admin-remove-preview h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.admin-remove-warning { border-left: 3px solid #a94e45; background: #fcf6f4; padding: 1rem; margin-bottom: 1.5rem; border-radius: 4px; color: #66413a; }
@media(max-width:500px) { .admin-remove-preview { grid-template-columns: 1fr; } .admin-remove-preview img { width:100%; height:180px; } }

/* V24: Compact category navigation and functional reset control. */
.shop-category-switcher { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:0 0 1.4rem; }
.shop-category-switcher > span { margin-right:.3rem; color:#65777b; font-size:.84rem; font-weight:700; }
.shop-reset-sort { display:inline-flex; align-items:center; justify-content:center; padding:.45rem .9rem;
  border:1px solid var(--color-border); border-radius:999px; background:#fff; color:var(--color-primary);
  font-size:.78rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.shop-reset-sort:hover, .shop-reset-sort:focus-visible { background:var(--color-primary); color:white; border-color:var(--color-primary); }
