/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* =============================================================================
   EPR Storefront — design token 子集
   SSOT：EPR.Web/wwwroot/css/design-tokens.css（本檔為鏡像，請勿手改色值）
   對照：EPR.CompanyWeb/styles.css（官網殼層視覺）
   ============================================================================= */

:root {
  --ds-primary: #0f4c8a;
  --ds-primary-hover: #1364ad;
  --ds-primary-soft: #e6f0fa;
  --ds-primary-deep: #0a3560;
  --ds-accent: #2a6f96;
  --ds-bg: #f6fafd;
  --ds-surface: #fcfdfd;
  --ds-text: #1f3447;
  --ds-muted: #3a4a5a;
  --ds-border: #d5e3ef;
  --ds-success: #047857;
  --ds-success-soft: #ecfdf5;
  --ds-danger: #be123c;
  --ds-danger-soft: #fff1f2;
  --ds-highlight: #c98a36;
  --ds-highlight-soft: #fff4e0;
  --ds-radius-sm: 6px;
  --ds-radius: 10px;
  --ds-radius-lg: 14px;
  --ds-shadow-sm: 0 1px 2px rgba(15, 76, 138, 0.06);
  --ds-shadow: 0 2px 4px rgba(15, 76, 138, 0.06), 0 6px 18px rgba(15, 76, 138, 0.06);
  --ds-shadow-lg: 0 6px 14px rgba(15, 76, 138, 0.08), 0 14px 38px rgba(15, 76, 138, 0.1);
  --ds-focus-ring: 0 0 0 3px var(--ds-primary-soft);
  --ds-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ds-font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體",
    "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --sf-content: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ds-font-sans);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(15, 76, 138, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(42, 111, 150, 0.06), transparent 50%),
    var(--ds-bg);
  color: var(--ds-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ds-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ds-primary-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 1px;
}

/* ── Shell（對齊 CompanyWeb header / footer）── */

.sf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 1.75rem;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--ds-shadow-sm);
}

.sf-brand {
  flex-shrink: 0;
  display: block;
  text-decoration: none !important;
  line-height: 0;
}

.sf-brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(360px, 52vw);
  object-fit: contain;
}

.sf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: 1rem;
  font-weight: 500;
  flex: 1 1;
  justify-content: flex-end;
}

.sf-nav a {
  color: var(--ds-text);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: var(--ds-radius-sm);
  transition: background var(--ds-transition), color var(--ds-transition);
}

.sf-nav a:hover {
  color: var(--ds-primary);
  background: var(--ds-primary-soft);
  text-decoration: none;
}

.sf-nav a.is-active {
  color: var(--ds-primary-deep);
  background: var(--ds-primary-soft);
  font-weight: 600;
}

.sf-nav-sep {
  width: 1px;
  height: 1.1rem;
  background: var(--ds-border);
  margin: 0 0.15rem;
}

.sf-lang {
  flex-shrink: 0;
  background: transparent;
  color: var(--ds-muted);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ds-transition), color var(--ds-transition);
}

.sf-lang:hover {
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.sf-main {
  flex: 1 1;
  width: 100%;
  padding: 0 0 3rem;
}

.sf-main > .page-wrap,
.sf-main > .checkout-page {
  max-width: var(--sf-content);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.sf-footer {
  border-top: 1px solid var(--ds-border);
  padding: 1.75rem 1.5rem;
  background: var(--ds-surface);
  color: var(--ds-muted);
  font-size: 0.9rem;
  text-align: center;
}

.sf-footer-inner {
  max-width: var(--sf-content);
  margin: 0 auto;
}

.sf-footer-brand {
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.sf-footer-brand strong {
  color: var(--ds-primary-deep);
  font-size: 1rem;
}

.sf-footer-brand span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.sf-footer-meta {
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.sf-footer-meta a {
  color: var(--ds-primary);
  font-weight: 500;
}

.sf-footer-note {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .sf-header {
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
  }

  .sf-brand-logo {
    height: 56px;
  }

  .sf-nav {
    width: 100%;
    justify-content: flex-start;
    order: 3;
    font-size: 0.92rem;
  }

  .sf-nav-sep {
    display: none;
  }
}

/* ── Hero（對齊 CompanyWeb）── */

.sf-hero {
  background: linear-gradient(135deg, var(--ds-primary-deep), var(--ds-primary) 55%, var(--ds-accent));
  color: #fff;
  padding: 3.5rem 1.5rem 3.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sf-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.sf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

.sf-hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.sf-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sf-hero p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

.sf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Sections / product grid ── */

.sf-section {
  max-width: var(--sf-content);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 0;
}

.sf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}

.sf-section h2,
.sf-section-head h2 {
  margin: 0;
  color: var(--ds-primary-deep);
  font-size: 1.5rem;
  font-weight: 700;
}

.sf-section .lead,
.sf-section-head .lead {
  margin: 0.35rem 0 0;
  color: var(--ds-muted);
  max-width: 36rem;
}

.sf-section-link {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.product-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 0;
  box-shadow: var(--ds-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ds-transition), transform var(--ds-transition);
}

.product-card:hover {
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-2px);
}

.product-card-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, var(--ds-primary-soft), #fff 55%),
    linear-gradient(135deg, var(--ds-primary-deep), var(--ds-accent));
  display: grid;
  place-items: center;
  color: var(--ds-primary);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ds-primary-deep);
  line-height: 1.35;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--ds-primary-hover);
  text-decoration: underline;
}

.product-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ds-muted);
}

.product-card-price {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ds-primary);
}

.product-card-cert {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds-success);
}

.product-card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
}

.empty-state {
  padding: 1.25rem 1.35rem;
  background: var(--ds-primary-soft);
  border-radius: var(--ds-radius);
  color: var(--ds-text);
  font-size: 0.95rem;
}

/* ── Product detail ── */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail-media {
  aspect-ratio: 1;
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(160deg, var(--ds-primary-soft), #fff 60%),
    var(--ds-primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--ds-shadow);
  color: var(--ds-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ds-primary-deep);
}

.product-detail-price {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ds-primary);
}

.product-detail-desc {
  margin: 0 0 1.25rem;
  color: var(--ds-muted);
}

.product-detail-facts {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-gap: 0.45rem;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.product-detail-facts li {
  display: flex;
  gap: 0.5rem;
}

.product-detail-facts strong {
  min-width: 4.5rem;
  color: var(--ds-text);
}

.pdp-purchase {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pdp-field {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.pdp-field select,
.pdp-field input[type="number"] {
  max-width: 16rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--ds-border, #d0d5dd);
  border-radius: 4px;
  background: var(--ds-surface, #fff);
}

.pdp-msg {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ds-success, #047857);
}

/* ── Typography helpers ── */

.page-title {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ds-primary-deep);
}

.page-subtitle {
  margin: 0 0 1.35rem;
  color: var(--ds-muted);
  font-size: 0.95rem;
}

.section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-text);
}

.hint-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ds-muted);
  line-height: 1.5;
}

.page-wrap {
  max-width: var(--sf-content);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

/* ── Card / form ── */

.card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow);
  padding: 1.35rem 1.25rem;
}

.card > .section-title {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
}

.form-input:focus {
  outline: 0;
  border-color: var(--ds-primary);
  box-shadow: var(--ds-focus-ring);
}

.form-input:focus-visible {
  outline: 0;
}

.form-input.mono {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field + .form-field {
  margin-top: 14px;
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ds-muted);
}

/* ── Buttons（對齊 CompanyWeb）── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  min-height: 42px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--ds-radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ds-transition), border-color var(--ds-transition),
    color var(--ds-transition), box-shadow var(--ds-transition);
  text-decoration: none !important;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ds-primary);
  color: #fff;
  box-shadow: var(--ds-shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ds-primary-hover);
  color: #fff;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
  box-shadow: var(--ds-focus-ring);
}

.btn-on-hero {
  background: #fff;
  color: var(--ds-primary-deep);
  box-shadow: var(--ds-shadow);
}

.btn-on-hero:hover:not(:disabled) {
  background: var(--ds-primary-soft);
  color: var(--ds-primary-deep);
}

.btn-ghost-on-hero {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-ghost-on-hero:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-lg {
  min-height: 48px;
  width: 100%;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border-color: var(--ds-border);
  color: var(--ds-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary);
}

.btn-link {
  background: none;
  border: 0;
  color: var(--ds-primary);
  padding: 0;
  min-height: auto;
  height: auto;
  font-weight: 500;
}

.btn-block {
  width: 100%;
}

/* ── Checkout page ── */

.checkout-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ds-muted);
  margin-bottom: 8px;
}

.checkout-back:hover {
  color: var(--ds-primary);
}

.checkout-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-empty {
  padding: 14px 16px;
  background: var(--ds-primary-soft);
  border-radius: var(--ds-radius-sm);
  font-size: 14px;
  color: var(--ds-text);
}

.checkout-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-lines li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-border);
  font-size: 14px;
}

.checkout-msg {
  margin: 0;
  padding: 10px 12px;
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  border-radius: var(--ds-radius-sm);
  font-size: 13px;
}

.checkout-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ds-muted);
  text-align: center;
}

/* ── E-invoice sections ── */

.einvoice {
  border-left: 4px solid var(--ds-primary);
  background: var(--ds-surface);
}

.einvoice-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.einvoice-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.einvoice-icon.donate {
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
}

.einvoice-head .section-title {
  margin-bottom: 4px;
}

.einvoice-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ds-primary);
  background: var(--ds-primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.einvoice.donate {
  border-left-color: var(--ds-danger);
}

.einvoice.donate .einvoice-badge {
  color: var(--ds-danger);
  background: var(--ds-danger-soft);
}

/* Motion — subtle presence */
@keyframes sf-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sf-hero-inner,
.sf-section,
.page-wrap {
  animation: sf-fade-up 0.45s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .sf-hero-inner,
  .sf-section,
  .page-wrap,
  .product-card {
    animation: none;
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }
}

