/**
 * Atison Market — modern storefront styles
 */
:root {
  --store-primary: #0d9488;
  --store-primary-dark: #0f766e;
  --store-primary-light: #14b8a6;
  --store-accent: #f59e0b;
  --store-bg: #f8fafc;
  --store-surface: #ffffff;
  --store-text: #1e293b;
  --store-text-muted: #64748b;
  --store-border: #e2e8f0;
  --store-radius: 12px;
  --store-radius-sm: 8px;
  --store-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --store-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --store-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --store-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --store-transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body.storefront {
  font-family: var(--store-font);
  background: var(--store-bg);
  color: var(--store-text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Navbar */
.store-nav {
  background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-dark) 100%);
  box-shadow: var(--store-shadow-md);
  padding: 0.75rem 0;
}

.store-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.store-nav .brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.store-nav .brand:hover {
  color: rgba(255, 255, 255, 0.95);
}

.store-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-nav .search-wrap {
  flex: 1;
  min-width: 120px;
  max-width: 380px;
}

@media (max-width: 767px) {
  .store-nav .container { flex-direction: column; align-items: stretch; }
  .store-nav .search-wrap { max-width: none; }
}

.store-nav .search-wrap .form-control {
  border-radius: var(--store-radius-sm);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.store-nav .search-wrap .btn {
  border-radius: var(--store-radius-sm);
  background: var(--store-surface);
  color: var(--store-primary-dark);
  border: none;
  padding: 0.5rem 0.75rem;
}

.store-nav .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--store-radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--store-transition), transform 0.15s ease;
}

.store-nav .btn-nav.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--store-primary-dark);
}

.store-nav .btn-nav.btn-light:hover {
  background: #fff;
  color: var(--store-primary-dark);
  transform: translateY(-1px);
}

.store-nav .btn-nav.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.store-nav .btn-nav.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Main content */
.store-main {
  padding: 2rem 0 3rem;
}

.store-page-title {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--store-text);
  margin-bottom: 1.5rem;
}

.store-section-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--store-text);
  margin-bottom: 1rem;
}

/* Cards */
.store-card {
  background: var(--store-surface);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
  border: 1px solid var(--store-border);
  overflow: hidden;
  transition: box-shadow var(--store-transition), transform 0.2s ease;
}

.store-card:hover {
  box-shadow: var(--store-shadow-md);
}

.store-card .card-header {
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: var(--store-bg);
  border-bottom: 1px solid var(--store-border);
  color: var(--store-text);
}

.store-card .card-body {
  padding: 1.25rem;
}

/* Product cards */
.product-card {
  height: 100%;
  background: var(--store-surface);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
  border: 1px solid var(--store-border);
  overflow: hidden;
  transition: box-shadow var(--store-transition), transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--store-shadow-md);
  transform: translateY(-2px);
}

.product-card .product-img-wrap {
  aspect-ratio: 1;
  background: var(--store-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-text-muted);
  font-size: 2rem;
}

.product-card .product-body {
  padding: 1rem;
}

.product-card .product-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.product-card .product-title a {
  color: var(--store-text);
  text-decoration: none;
}

.product-card .product-title a:hover {
  color: var(--store-primary);
}

.product-card .product-price {
  font-weight: 700;
  color: var(--store-primary);
  font-size: 1rem;
}

/* Buttons */
.btn-store-primary {
  background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--store-radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: box-shadow var(--store-transition), transform 0.15s ease;
}

.btn-store-primary:hover {
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
  transform: translateY(-1px);
}

.btn-store-outline {
  background: transparent;
  color: var(--store-primary);
  border: 2px solid var(--store-primary);
  border-radius: var(--store-radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: background var(--store-transition), color var(--store-transition);
}

.btn-store-outline:hover {
  background: var(--store-primary);
  color: #fff;
}

/* Category pills */
.category-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--store-surface);
  color: var(--store-primary);
  border: 1px solid var(--store-border);
  transition: background var(--store-transition), border-color var(--store-transition), color var(--store-transition);
}

.category-pill:hover {
  background: var(--store-primary);
  color: #fff;
  border-color: var(--store-primary);
}

/* Sidebar / filters */
.store-sidebar .list-group-item {
  border-radius: var(--store-radius-sm);
  border: none;
  padding: 0.6rem 1rem;
  margin-bottom: 0.25rem;
}

.store-sidebar .list-group-item-action.active {
  background: var(--store-primary);
  color: #fff;
  font-weight: 500;
}

.store-sidebar .list-group-item-action:not(.active):hover {
  background: var(--store-bg);
  color: var(--store-text);
}

.store-sidebar .list-group-item-action.ps-5 {
  padding-left: 2rem !important;
  font-size: 0.9rem;
}

/* Forms */
.store-main .form-control,
.store-main .form-select {
  border-radius: var(--store-radius-sm);
  border: 1px solid var(--store-border);
  padding: 0.5rem 0.75rem;
}

.store-main .form-control:focus,
.store-main .form-select:focus {
  border-color: var(--store-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.store-main .form-label {
  font-weight: 500;
  color: var(--store-text);
  margin-bottom: 0.35rem;
}

/* Alerts */
.alert {
  border-radius: var(--store-radius-sm);
  border: none;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Footer */
.store-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--store-border);
  font-size: 0.9rem;
  color: var(--store-text-muted);
}

.store-footer a {
  color: var(--store-primary);
  text-decoration: none;
}

.store-footer a:hover {
  text-decoration: underline;
}

/* Links */
.store-link {
  color: var(--store-primary);
  font-weight: 500;
  text-decoration: none;
}

.store-link:hover {
  color: var(--store-primary-dark);
  text-decoration: underline;
}

/* Table (cart) */
.store-table {
  border-radius: var(--store-radius);
  overflow: hidden;
  box-shadow: var(--store-shadow);
}

.store-table thead {
  background: var(--store-bg);
}

.store-table th {
  font-weight: 600;
  color: var(--store-text);
  border-color: var(--store-border);
  padding: 0.75rem 1rem;
}

.store-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.store-table .form-control {
  width: 5rem;
  text-align: center;
}
