/* Customer redesign layer: seller-like panel/horizontal treatment */

:root {
  --za-shell-bg: linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
  --za-panel-bg: #ffffff;
  --za-panel-border: #e2e8f0;
  --za-panel-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --za-panel-radius: 14px;
  --za-gap: 14px;
}

body.customer-redesign {
  background: var(--za-shell-bg);
}

body.customer-redesign main,
body.customer-redesign .main-content,
body.customer-redesign .content,
body.customer-redesign .container,
body.customer-redesign .page-content {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

body.customer-redesign .za-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--font-medium);
  text-decoration: none;
}

body.customer-redesign .za-back-home:hover {
  color: var(--text-primary);
}

body.customer-redesign .za-panel {
  background: var(--za-panel-bg);
  border: 1px solid var(--za-panel-border);
  box-shadow: var(--za-panel-shadow);
  border-radius: var(--za-panel-radius);
}

body.customer-redesign .card,
body.customer-redesign .panel,
body.customer-redesign .section,
body.customer-redesign .profile-card,
body.customer-redesign .order-card,
body.customer-redesign .product-card,
body.customer-redesign .checkout-card,
body.customer-redesign .summary-card,
body.customer-redesign .stat-card,
body.customer-redesign .feature-card,
body.customer-redesign .info-card {
  border-radius: var(--za-panel-radius) !important;
  border: 1px solid var(--za-panel-border) !important;
  box-shadow: var(--za-panel-shadow) !important;
  background: var(--za-panel-bg) !important;
}

/* Catalog/category cards should stay at 5px in row/column grids. */
body.customer-redesign .products-grid .product-card,
body.customer-redesign .related-grid .product-card,
body.customer-redesign .categories-grid .category-card {
  border-radius: 5px !important;
}

body.customer-redesign .products-grid .product-card-image,
body.customer-redesign .related-grid .product-card-image {
  border-radius: 5px 5px 0 0 !important;
}

body.customer-redesign .categories-grid .category-card-image {
  border-radius: 5px !important;
}

body.customer-redesign .products-grid .product-card,
body.customer-redesign .related-grid .product-card {
  min-height: 0;
}

body.customer-redesign .products-grid .product-card-image,
body.customer-redesign .related-grid .product-card-image {
  height: 165px !important;
  background-color: #ffffff;
  padding: 0;
}

body.customer-redesign .products-grid .product-card-image img,
body.customer-redesign .related-grid .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transform: none !important;
}

body.customer-redesign .products-grid .product-card:hover .product-card-image img,
body.customer-redesign .related-grid .product-card:hover .product-card-image img {
  transform: none !important;
}

body.customer-redesign .products-grid .product-card-body,
body.customer-redesign .related-grid .product-card-body {
  padding: 8px 10px !important;
}

body.customer-redesign .products-grid .product-card-title,
body.customer-redesign .related-grid .product-card-title {
  font-size: 13px !important;
  font-weight: var(--font-normal) !important;
  line-height: 1.25;
  margin-bottom: 4px !important;
}

body.customer-redesign .products-grid .product-card-current-price,
body.customer-redesign .related-grid .product-card-current-price {
  font-size: var(--text-sm) !important;
  font-weight: var(--font-semibold) !important;
}

body.customer-redesign .products-grid .product-card-original-price,
body.customer-redesign .related-grid .product-card-original-price {
  font-size: 11px !important;
}

body.customer-redesign .btn,
body.customer-redesign button,
body.customer-redesign .button,
body.customer-redesign .action-btn,
body.customer-redesign .cta-btn {
  border-radius: 5px !important;
}

body.customer-redesign input,
body.customer-redesign select,
body.customer-redesign textarea {
  border-radius: 5px !important;
}

body.customer-redesign .za-horizontal,
body.customer-redesign .tabs,
body.customer-redesign .tab-list,
body.customer-redesign .filter-row,
body.customer-redesign .quick-actions,
body.customer-redesign .chips,
body.customer-redesign .category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

body.customer-redesign .za-horizontal > *,
body.customer-redesign .tabs > *,
body.customer-redesign .tab-list > *,
body.customer-redesign .filter-row > *,
body.customer-redesign .quick-actions > *,
body.customer-redesign .chips > *,
body.customer-redesign .category-pills > * {
  flex: 0 0 auto;
}

body.customer-redesign .za-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--za-gap);
}

@media (max-width: 900px) {
  body.customer-redesign .za-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.customer-redesign .za-grid {
    grid-template-columns: 1fr;
  }
}
