/*
 * Theme overrides and additional components.
 * Base styles come from open-design-base.css.
 */

/* WordPress alignment helpers */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.wp-caption { max-width: 100%; }

/* Main content wrapper */
#main-content { min-height: 40vh; }

/* Demo growth modal */
.demo-growth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.demo-growth-modal[hidden] { display: none; }

.demo-growth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.demo-growth-modal__dialog {
  position: relative;
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.demo-growth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.demo-growth-modal__dialog h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.demo-growth-modal__dialog p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Service bar active state */
.service-bar-segments a.active {
  font-weight: 600;
  text-decoration: underline;
}

/* Product page gallery placeholder */
.product-gallery-placeholder {
  aspect-ratio: 1;
  background: var(--surface-2, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 12px);
}

/* Catalog page skeleton */
.catalog-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .catalog-body { grid-template-columns: 1fr; }
}

/* Article layout skeleton */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
}
