:root {
  --page-bg: #ffffff;
  --surface: #f9f8fb;
  --surface-border: #e9e7ef;
}

.store-page-header {
  padding-top: 28px;
  padding-bottom: 8px;
}

.store-breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #7b738c;
  font-size: 12px;
}

.store-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

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

.store-breadcrumbs .sep {
  color: #b7b0c6;
}

.store-title-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.store-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--space-grotesk);
}

.store-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-family: var(--space-grotesk);
  letter-spacing: -0.02em;
}

.store-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.store-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.store-product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.store-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7b738c;
  font-size: 12px;
  margin-top: -2px;
}

/* PDP */
.product-page {
  padding-top: 10px;
  padding-bottom: 28px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.pdp-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pdp-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pdp-category {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.pdp-title {
  margin: 0;
  font-family: var(--space-grotesk);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.15;
}

.pdp-desc {
  margin: 12px 0 0;
  color: #7b738c;
  line-height: 1.6;
  font-size: 14px;
  max-width: 56ch;
}

.pdp-price-row {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-price {
  font-family: var(--space-grotesk);
  font-size: 26px;
  font-weight: 700;
  color: var(--foreground);
}

.pdp-stock {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: #4b5563;
}

.pdp-stock.in {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
}

.pdp-stock.out {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.10);
  color: #7f1d1d;
}

.pdp-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pdp-actions .primary-btn {
  padding: 11px 20px;
}

.pdp-actions .primary-btn.add-cart {
  background: var(--primary);
  color: #ffffff;
}

.pdp-actions .primary-btn.add-cart:hover {
  opacity: 0.9;
}

.pdp-specs {
  margin-top: 22px;
  border-top: 1px solid var(--surface-border);
  padding-top: 18px;
}

.pdp-section-title {
  margin: 0 0 12px;
  font-family: var(--space-grotesk);
  font-size: 16px;
}

.pdp-spec-list {
  border: 1px solid var(--surface-border);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pdp-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.pdp-spec-row + .pdp-spec-row {
  border-top: 1px solid rgba(233, 231, 239, 0.9);
}

.pdp-spec-label {
  font-size: 11px;
  color: #7b738c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  flex: 0 0 auto;
}

.pdp-spec-value {
  font-size: 13px;
  color: var(--foreground);
  font-weight: 600;
  text-align: right;
  min-width: 0;
}

@media (max-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  .pdp-spec-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pdp-spec-value {
    text-align: left;
  }
}

/* Static pages */
.static-page {
  padding-top: 8px;
  padding-bottom: 36px;
}

.static-prose {
  max-width: 82ch;
}

.static-section {
  padding: 18px 0;
}

.static-section + .static-section {
  border-top: 1px solid var(--surface-border);
}

.static-h2 {
  margin: 0 0 10px;
  font-family: var(--space-grotesk);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.static-body {
  color: #7b738c;
  line-height: 1.65;
  font-size: 14px;
}

.static-body p {
  margin: 0 0 12px;
}

.static-body p:last-child {
  margin-bottom: 0;
}

.static-body ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.static-body li {
  margin: 6px 0;
}

.static-body a {
  color: var(--primary);
  text-decoration: none;
}

.static-body a:hover {
  text-decoration: underline;
}

.static-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(108, 71, 255, 0.25);
  background: var(--primary-light);
  color: var(--foreground);
}

/* Auth + Account */
.auth-page,
.account-page {
  padding-top: 8px;
  padding-bottom: 36px;
}

.auth-alert {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  font-size: 14px;
}

.auth-alert-error {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #7f1d1d;
}

.auth-alert-success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
}

.auth-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-grid.auth-grid-single {
  grid-template-columns: 1fr;
}

.auth-panel,
.account-panel {
  border: 1px solid var(--surface-border);
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.auth-panel-flat {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.auth-title,
.account-title {
  margin: 0 0 6px;
  font-family: var(--space-grotesk);
  font-size: 18px;
}

.auth-subtitle {
  margin: 0 0 14px;
  color: #7b738c;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  width: min(520px, 100%);
}

.auth-label {
  display: block;
  width: 100%;
}

.auth-label span {
  display: block;
  font-size: 11px;
  color: #7b738c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  outline: none;
  font-size: 14px;
}

.auth-input:focus {
  border-color: rgba(108, 71, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(108, 71, 255, 0.12);
}

.auth-submit {
  justify-content: center;
  width: 100%;
}

.auth-row {
  width: 100%;
}

.auth-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-row-2 .auth-label {
  margin: 0;
}

/* Cart */
.cart-page {
  padding-top: 8px;
  padding-bottom: 36px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 22px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cart-item-media img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  object-fit: cover;
  display: block;
}

.cart-item-title {
  font-family: var(--space-grotesk);
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}

.cart-item-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7b738c;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-price {
  font-family: var(--space-grotesk);
  font-weight: 800;
  color: var(--foreground);
}

.cart-item-bottom {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 6px 10px;
}

.cart-qty-btn {
  border: none;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  color: var(--foreground);
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.cart-qty-btn:hover {
  background: var(--muted-bg);
}

.cart-qty-input {
  width: 44px;
  border: none;
  outline: none;
  text-align: center;
  font-weight: 700;
  background: transparent;
  color: var(--foreground);
}

.cart-remove,
.cart-clear {
  border: none;
  background: transparent;
  color: #7b738c;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  padding: 0;
  justify-self: start;
}

.cart-remove:hover,
.cart-clear:hover {
  color: var(--foreground);
}

.cart-line-total {
  justify-self: end;
  font-weight: 800;
  color: var(--foreground);
}

.cart-summary-card {
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.cart-summary-row + .cart-summary-row {
  border-top: 1px solid var(--surface-border);
}

.cart-summary-row.muted {
  color: #7b738c;
  font-size: 13px;
}

.cart-checkout {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.account-row + .account-row {
  border-top: 1px solid var(--surface-border);
}

.account-label {
  font-size: 11px;
  color: #7b738c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.account-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  text-align: right;
}

.account-logout {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .auth-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .auth-row-2 {
    grid-template-columns: 1fr;
  }
}

