/* ===== Catalog Specific Styles ===== */

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 14px 0 4px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none !important;
  flex-wrap: wrap;
  padding-left: 0 !important;
  margin: 0 !important;
  counter-reset: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--slate-500);
  list-style: none !important;
}

.breadcrumb-item a {
  color: var(--cyan-600);
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--cyan-700);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 8px;
  color: var(--slate-300);
}

.breadcrumb-current {
  color: var(--slate-700);
  font-weight: 500;
}

/* Header Override (Copying relevant parts from landing.css to ensure standalone look) */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--slate-800);
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--cyan-600);
}

.btn-header {
  padding: 10px 20px;
  background: var(--gradient-ocean);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Nav (Simple version for catalog) */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}


/* ===== Main Layout ===== */
.catalog-main {
  min-height: calc(100vh - 72px - 200px); /* Adjust based on header/footer */
  padding: 60px 0 100px;
  background-color: var(--slate-50);
}

.catalog-header-section {
  text-align: center;
  margin-bottom: 48px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--slate-900);
  margin-bottom: 16px;
}

.page-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--slate-500);
  font-size: 18px;
}

/* ===== Grid & Cards ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.catalog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-100);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-100);
}

.card-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--slate-50);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.catalog-card:hover .card-image {
  transform: scale(1.04);
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-price {
  font-weight: 600;
  color: var(--cyan-600);
  font-size: 16px;
  margin-bottom: 16px;
}

.card-attributes {
  display: flex;
  gap: 12px;
  margin-top: auto;
  font-size: 13px;
  color: var(--slate-500);
}

.attr-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Loading State ===== */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--slate-400);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--cyan-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  position: relative;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--slate-200);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--white);
  color: var(--red-500);
  transform: rotate(90deg);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
}

.modal-gallery {
  background: var(--slate-50);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery img {
  max-height: 500px;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps if images have white bg */
}

.modal-info {
  padding: 40px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.modal-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan-600);
  margin-bottom: 32px;
}

.modal-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 12px;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.spec-item {
  background: var(--slate-50);
  padding: 12px;
  border-radius: var(--radius);
}

.spec-label {
  display: block;
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.spec-value {
  font-weight: 600;
  color: var(--slate-800);
}

.equip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.equip-tag {
  padding: 6px 12px;
  background: var(--cyan-50);
  color: var(--cyan-700);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.modal-action {
  width: 100%;
}

/* Footer (Simple copy) */
.footer {
  background: var(--white);
  padding: 60px 0 20px;
  border-top: 1px solid var(--slate-100);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--slate-800);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--slate-500);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--cyan-600);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--slate-50);
  color: var(--slate-400);
  font-size: 13px;
}

.footer-policy-link {
  color: var(--slate-400);
  margin-left: 10px;
  transition: color 0.2s;
}

.footer-policy-link:hover {
  color: var(--slate-600);
}
