/* Electro-style shop showcase — compact, high contrast */
:root {
  --el-yellow: #fed700;
  --el-dark: #333e48;
  --el-orange: #f57224;
  --el-muted: #f8f9fa;
  --el-border: #e0e0e0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.shop-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--el-dark);
  background: #fff;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.shop-header {
  background: var(--el-dark);
  color: #fff;
  border-bottom: 3px solid var(--el-yellow);
}

.shop-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 16px;
}

.shop-logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--el-yellow);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.shop-logo:hover {
  color: #fff;
}

.shop-tagline {
  margin: 0;
  flex: 1 1 200px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.shop-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-nav a:hover {
  color: var(--el-yellow);
}

.shop-strip {
  background: var(--el-yellow);
  color: var(--el-dark);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
}

.shop-main {
  min-height: 50vh;
}

.shop-breadcrumb {
  background: var(--el-muted);
  border-bottom: 1px solid var(--el-border);
}

.shop-breadcrumb__list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.shop-breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #999;
}

.shop-breadcrumb a {
  color: var(--el-orange);
  text-decoration: none;
}

.shop-hero {
  background: linear-gradient(135deg, var(--el-dark) 0%, #4a5a64 100%);
  color: #fff;
  padding: 48px 0 40px;
}

.shop-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.shop-lead {
  margin: 0;
  opacity: 0.9;
  max-width: 640px;
}

.shop-section {
  padding: 40px 0;
}

.shop-section--muted {
  background: var(--el-muted);
}

.shop-section h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  border-left: 4px solid var(--el-yellow);
  padding-left: 12px;
}

.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.shop-grid--cats {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.shop-grid--products {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.shop-card a {
  display: block;
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--el-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.shop-card a:hover {
  border-color: var(--el-yellow);
  box-shadow: 0 6px 20px rgba(51, 62, 72, 0.08);
}

.shop-card__img-wrap {
  background: #fafafa;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: center;
}

.shop-card__img-wrap img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.shop-card__title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.shop-card__meta {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
}

.shop-card__price {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--el-orange);
}

.shop-product {
  padding: 32px 0 48px;
}

.shop-product__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .shop-product__grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.shop-product__gallery {
  background: var(--el-muted);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.shop-product__gallery img {
  max-width: 100%;
  height: auto;
}

.shop-product__info h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.shop-product__cat a {
  color: var(--el-orange);
  font-weight: 600;
  text-decoration: none;
}

.shop-product__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--el-dark);
  margin: 16px 0;
}

.shop-product__summary {
  color: #555;
}

.shop-product__body {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--el-border);
}

.shop-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: #fff8e6;
  border-left: 4px solid var(--el-yellow);
  font-size: 0.9rem;
}

.shop-footer {
  background: var(--el-dark);
  color: #ccc;
  padding: 32px 0 16px;
  margin-top: 48px;
  font-size: 0.9rem;
}

.shop-footer a {
  color: var(--el-yellow);
}

.shop-footer__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.shop-footer__copy {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
  color: #888;
}

/* CMS pages (HTML from editor) */
.shop-cms {
  padding: 16px 0 48px;
}

.shop-cms__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.shop-cms__excerpt {
  color: #666;
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.shop-cms--news .shop-cms__title {
  font-size: 2rem;
}

.shop-prose {
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-prose :is(p, ul, ol, blockquote, pre) {
  margin: 0 0 1em;
}

.shop-prose :is(h1, h2, h3) {
  margin: 1.25em 0 0.5em;
  line-height: 1.25;
}

.shop-prose img {
  max-width: 100%;
  height: auto;
}

.shop-cms__block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--el-border);
}

.shop-block__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

/* Electro + Bootstrap (public/shop/assets/vendor/electro) */
body.shop-body {
  font-family: "Open Sans", Roboto, system-ui, sans-serif;
}

.shop-main {
  min-height: 40vh;
}

.shop-breadcrumb--electro {
  background: #f8f9fa;
  border-bottom: 1px solid var(--el-border);
}

.shop-breadcrumb--electro .breadcrumb-item a {
  color: var(--el-orange);
  text-decoration: none;
}

.shop-breadcrumb--electro .breadcrumb-item.active {
  color: #6c757d;
}

.shop-cat-tile:hover {
  box-shadow: 0 8px 24px rgba(51, 62, 72, 0.1);
  border-color: var(--el-yellow) !important;
}

.shop-product-gallery img {
  max-height: 520px;
  object-fit: contain;
}

/* Block layout (noi dung tu shop_layout_block — HTML tu admin) */
.shop-layout-block {
  overflow-wrap: break-word;
}

.shop-layout-block__body :is(img, video, iframe) {
  max-width: 100%;
  height: auto;
}
