.tod-storefront * {
  box-sizing: border-box;
}

.tod-storefront {
  --brand-red: #bb1d12;
  --brand-red-dark: #8f1609;
  --slate: #587787;
  --slate-dark: #44616f;
  --tab-bg: #19272B;
  --text: #212529;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --page-bg: #f5f5f5;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
}

.tod-inventory-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  font-family: 'Manrope', sans-serif;
}

.tod-filter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tod-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tod-category-tab {
  min-width: 96px;
  height: 38px;
  padding: 0 18px;
  background: #19272B !important;
  border: 1px solid #19272B !important;
  border-radius: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tod-category-tab.is-active {
  background: var(--brand-red) !important;
  color: #ffffff !important;
  border-color: var(--brand-red) !important;
}

.tod-product-search {
  width: min(100%, 270px);
  height: 38px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #d9d9d9;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.tod-product-search::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.tod-product-search:focus {
  border-color: var(--brand-red);
}

.tod-storefront .tod-loading,
.tod-storefront .tod-error,
.tod-storefront .tod-no-products {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}

.tod-storefront .tod-error {
  color: #b91c1c;
}

.tod-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.tod-product-card {
  background: var(--card-bg);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #ebcbc6;
  box-shadow: none;
}

.tod-product-image-container {
  position: relative;
  padding: 0;
  background: #f7f7f7;
}

.tod-ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  z-index: 3;
  padding: 5px 16px 5px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}

.tod-ribbon--for_sale {
  background: var(--brand-red);
}

.tod-ribbon--sold {
  background: #19272B;
}

.tod-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #F7F7F7;
  padding: 0;
}

.tod-view-larger-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 58px;
  height: 32px;
  padding: 0 12px;
  background: #19272B !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.tod-view-larger-btn:hover,
.tod-view-larger-btn:focus,
.tod-view-larger-btn:visited {
  background: #19272B !important;
  color: #ffffff !important;
  border: none !important;
}

.tod-view-larger-btn i {
  font-size: 12px;
  line-height: 1;
}

.tod-image-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tod-image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(25, 39, 43, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
}

.tod-image-dot.is-active {
  background: var(--brand-red);
}

.tod-product-info {
  padding: 16px 16px 18px;
}

.tod-product-price {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-red);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.tod-product-price--was {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
}

.tod-product-price--sale {
  color: var(--brand-red);
}

.tod-product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  min-height: 36px;
  margin-bottom: 6px;
}

.tod-product-short-description {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  min-height: 34px;
  margin-bottom: 8px;
}

.tod-product-reference {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  text-transform: uppercase;
}

.tod-enquiry-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  justify-content: center;
  align-items: stretch;
}

.tod-enquiry-actions a,
.tod-enquiry-actions button {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
}

.tod-enquiry-link--primary,
.tod-enquiry-link--primary:hover,
.tod-enquiry-link--primary:focus,
.tod-enquiry-link--primary:visited {
  background: var(--brand-red) !important;
  color: #ffffff !important;
  border: none !important;
}

.tod-enquiry-link--secondary,
.tod-enquiry-link--secondary:hover,
.tod-enquiry-link--secondary:focus,
.tod-enquiry-link--secondary:visited {
  background: #19272B !important;
  color: #ffffff !important;
  border: none !important;
}

.tod-enquiry-link i {
  font-size: 11px;
  line-height: 1;
}

button.tod-enquiry-link {
  font-family: 'Manrope', sans-serif;
}

.tod-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tod-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tod-lightbox__dialog {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tod-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0;
  background: white;
  display: block;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.tod-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 30px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tod-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.tod-lightbox__nav--prev {
  left: -18px;
}

.tod-lightbox__nav--next {
  right: -18px;
}

@media (max-width: 768px) {
  .tod-inventory-container {
    padding: 24px 16px 32px;
  }

  .tod-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}
