/* Compatibility helpers for inner pages using the shop theme */

:root {
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --primary-light: var(--color-primary-light);
  --secondary: var(--color-accent);
  --text-muted: var(--color-text-muted);
  --text: var(--color-text);
  --border: var(--color-border);
  --bg: var(--color-bg);
  --bg-white: var(--color-bg-card);
  --radius: var(--radius-md);
  --radius-sm: var(--radius-sm);
  --shadow: var(--shadow);
  --shadow-lg: var(--shadow-lg);
  --danger: var(--color-secondary);
  --transition: 0.2s var(--ease-out);
  --font-display: var(--font);
}

.breadcrumb-custom {
  padding: 1.5rem 0 0.5rem;
  background: transparent;
}

.breadcrumb-custom h1,
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.breadcrumb-custom p,
.page-header p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.page-header-breadcrumb,
.page-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.page-header-breadcrumb a,
.page-header .breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.page-header-breadcrumb span,
.page-header .breadcrumb span {
  color: var(--color-text-muted);
}

.filter-sidebar,
.filters-sidebar {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.filter-group h6,
.filter-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.search-toolbar {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn-outline-custom:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn-primary-custom:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section .see-all {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 991.98px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.product-gallery .main-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.product-gallery .thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery .thumb-list img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.product-gallery .thumb-list img.active {
  border-color: var(--color-primary);
  opacity: 1;
}

.blog-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .blog-body {
  padding: 16px;
}

.features-bar {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-item i {
  font-size: 1.75rem;
  color: var(--color-primary);
}

.feature-item h6 {
  margin-bottom: 2px;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.category-card .cat-body {
  padding: 12px;
  text-align: center;
  background: var(--color-bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-danger { background: #ffebee; color: #c62828; }
.alert-info { background: #e3f2fd; color: #1565c0; }
.alert-warning { background: #fff8e1; color: #f57f17; }

.auth-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.auth-wrap .auth-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.auth-wrap .auth-card .auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.text-muted-custom {
  color: var(--color-text-muted);
}
