/* TOPWAYSE E-Shop — original brand navy palette + e-shop shell */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
  /* TOPWAYSE original palette (topwayse.com.hk) */
  --primary-dark: color-mix(in srgb, var(--primary) 60%, #000);
  --primary-glow: rgba(49, 81, 128, 0.18);
  --announce: var(--announce-bar-third, #5a7499);
  --accent-light: #d9edf7;
  --text-mid: #555555;
  --text-light: #777777;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #dddddd;
  --border-light: #e8e8e8;
  --danger: #a94442;
  --success: #3c763d;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
  --font: "Noto Sans TC", "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", "Noto Sans TC", sans-serif;

  --footer-bar: var(--primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(49, 81, 128, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(90, 116, 153, 0.06), transparent);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* —— Announce bar —— */
.announce-bar {
  background: var(--announce);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

.announce-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Header —— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.header-search {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 2.75rem 0.55rem 1rem;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--white);
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.header-search button:hover {
  background: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

.menu-toggle {
  display: none;
}

/* —— Nav —— */
.site-nav {
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: transparent;
}

.btn-danger:hover {
  background: #fef2f2;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  color: #fff;
}

.hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  min-height: clamp(280px, 48vw, 460px);
  display: grid;
  align-items: end;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.tw-shade {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(29, 49, 77, 0.94) 0%,
    rgba(49, 81, 128, 0.62) 45%,
    rgba(29, 49, 77, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: 0.65rem;
}

.hero p {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 36ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.hero-actions .btn-primary:hover {
  background: var(--primary-light);
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-nav button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.hero-nav button:hover {
  background: #fff;
}

.hero-nav .prev {
  left: 1rem;
}

.hero-nav .next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.hero-dots button.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* —— Sections —— */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--primary);
  border-radius: 2px;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--primary-dark);
}

.section-muted {
  background: var(--white);
}

/* —— Category grid —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-light), #d5deea);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-card img {
  position: absolute;
  right: -8%;
  top: 10%;
  width: 58%;
  height: 80%;
  object-fit: contain;
  opacity: 0.9;
  transition: transform var(--transition);
}

.cat-card:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.cat-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-card span {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--text-mid);
}

/* —— Product grid / cards —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #adb9cc;
  transform: translateY(-2px);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card-code {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-card-desc {
  font-size: 0.78rem;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-price {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.product-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.product-card-actions .btn {
  flex: 1;
}

/* —— Intro / features —— */
.intro-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.intro-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 1rem;
}

.intro-block p {
  color: var(--text-mid);
  margin-bottom: 0.85rem;
}

.intro-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  border-color: #adb9cc;
  box-shadow: var(--shadow);
}

.feature-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* —— Toolbar / filters —— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toolbar label {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolbar select,
.toolbar input[type="search"] {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  min-width: 140px;
}

.toolbar select:focus,
.toolbar input:focus {
  outline: none;
  border-color: var(--primary);
}

.result-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-mid);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* —— Page hero strip —— */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2rem 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-hero p {
  opacity: 0.9;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* —— Product detail —— */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-gallery {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.detail-code {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.detail-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.detail-specs {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.detail-specs h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.detail-specs li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
}

.detail-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.detail-desc {
  white-space: pre-line;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.option-group {
  margin-bottom: 1rem;
}

.option-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.option-chip {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
    color var(--transition);
}

.option-chip:hover {
  border-color: var(--primary);
}

.option-chip.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
}

.qty-control button:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 36px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.related-section {
  margin-top: 2.5rem;
}

/* —— Cart drawer —— */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 200;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  font-size: 1.1rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.drawer-foot {
  border-top: 1px solid var(--border);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.drawer-total span:last-child {
  color: var(--primary-dark);
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

.cart-line-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.cart-line-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}

.cart-line-price {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.cart-line-remove {
  align-self: start;
  border: none;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem;
}

.cart-line-remove:hover {
  color: var(--danger);
}

/* —— Cart / checkout pages —— */
.cart-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.summary-card h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: var(--text-mid);
}

.summary-row.total {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.75rem 0 1rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.form-card,
.checkout-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.form-card h2,
.checkout-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--white);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.85rem;
}

.success-panel {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.success-panel .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.success-panel h2 {
  margin-bottom: 0.5rem;
}

.success-panel p {
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.success-panel .warn {
  background: var(--accent-light);
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}

/* —— About / contact —— */
.prose {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.prose p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.contact-item a:hover {
  color: var(--primary);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  aspect-ratio: 21 / 9;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.map-caption a {
  color: var(--primary);
  font-weight: 600;
}

.map-caption a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg);
  color: #334155;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  color: #334155;
}

.footer-col a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(49, 81, 128, 0.25);
  background: var(--footer-bar);
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 1rem max(1rem, calc(50vw - var(--max-width) / 2));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  pointer-events: none;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* —— Back to top —— */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition),
    background var(--transition);
  z-index: 90;
}

.back-top.is-show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--primary-dark);
}

/* —— Design enhancements —— */
.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary-dark);
}

.btn-outline-dark:hover {
  background: var(--primary-light);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.55rem;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.75);
}

.section-lead {
  color: var(--text-mid);
  margin: -0.75rem 0 1.5rem;
  max-width: 42ch;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    url("../assets/products/73.jpg") right center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-item {
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--text-mid);
}

.cat-card-photo {
  min-height: 220px;
  padding: 0;
  background: var(--primary-dark);
  justify-content: flex-end;
}

.cat-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  right: auto;
  top: auto;
  transition: transform 0.5s ease, opacity var(--transition);
}

.cat-card-photo:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.cat-card-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(29, 49, 77, 0.88));
  color: #fff;
}

.cat-card-overlay h3 {
  color: #fff;
  margin-bottom: 0.2rem;
}

.cat-card-overlay span {
  color: rgba(255, 255, 255, 0.8);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.75rem;
}

.mosaic-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-light);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.mosaic-item:hover img {
  transform: scale(1.06);
}

.mosaic-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(29, 49, 77, 0.85));
}

.mosaic-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-wide {
  grid-column: span 2;
}

.intro-block-rich {
  gap: 2.5rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.intro-collage {
  position: relative;
  min-height: 360px;
}

.intro-collage .collage-main {
  width: 78%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.intro-collage .collage-a,
.intro-collage .collage-b {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.intro-collage .collage-a {
  left: 0;
  top: 12%;
}

.intro-collage .collage-b {
  left: 8%;
  bottom: 6%;
}

.collage-badge {
  position: absolute;
  right: 8%;
  bottom: 10%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.visual-band {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.visual-band-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.visual-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}

.visual-band-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  max-width: 34rem;
}

.visual-band-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.visual-band-content p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.feature-grid-visual {
  gap: 1.15rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-light);
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-card-media img {
  transform: scale(1.05);
}

.feature-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.feature-card-body h3 {
  margin-bottom: 0.35rem;
}

.feature-card-body p {
  font-size: 0.875rem;
  color: var(--text-mid);
}

.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-top: 0.5rem;
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.cta-banner-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.cta-banner-copy p {
  opacity: 0.9;
  margin-bottom: 1.15rem;
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.cta-banner-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  min-height: 220px;
}

.cta-banner-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.cta-banner-photos img:first-child {
  grid-row: span 2;
}

.product-card {
  background: var(--white);
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(29, 49, 77, 0.08));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card-media::after {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— RWD —— */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    border-top: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.85rem;
  }

  .nav-list a {
    padding: 0.7rem 0.5rem;
  }

  .mobile-search {
    display: block;
    padding: 0.5rem 0 0.75rem;
  }

  .mobile-search form {
    position: relative;
  }

  .mobile-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 2.75rem 0.55rem 1rem;
    background: var(--bg);
  }

  .mobile-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
  }

  .intro-block,
  .detail-layout,
  .cart-page-layout,
  .checkout-layout,
  .contact-grid,
  .cta-banner-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .toolbar .result-count {
    margin-left: 0;
    width: 100%;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .mosaic-lg {
    grid-column: span 2;
    grid-row: span 2;
  }

  .intro-collage {
    min-height: 300px;
  }

  .visual-band-bg {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-band-bg img:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-card-actions {
    flex-direction: column;
  }

  .hero-nav button {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cta-banner-photos {
    min-height: 160px;
  }
}

@media (min-width: 861px) {
  .mobile-search {
    display: none;
  }
}

body[data-template="topwayse"] main { display:block; min-height:0; padding:0; }
body[data-template="topwayse"] .site-header { background:var(--header-bg); color:var(--header-text); }
body[data-template="topwayse"] .header-row { height:80px; min-height:0; }
body[data-template="topwayse"] .btn-primary { background:var(--btn-bg); color:var(--btn-text); }
body[data-template="topwayse"] .site-footer { color:var(--footer-text); }
body[data-template="topwayse"] .site-footer .footer-col a { color:var(--footer-text); }
body[data-template="topwayse"] .hero-slide picture { grid-area:1/1; height:100%; min-height:0; }
body[data-template="topwayse"] .hero-slide picture img { position:static; display:block; }
body[data-template="topwayse"] .hero-content { position:absolute; inset-inline:0; bottom:0; }
body[data-template="topwayse"] .hero-slide { grid-template-rows:minmax(0,1fr); }
body[data-template="topwayse"] .hero-slide { height:100%; }
body[data-template="topwayse"] .tw-hero { height:clamp(280px,48vw,460px); }
body[data-template="topwayse"] .hero-track { height:100%; }
body[data-template="topwayse"] .tw-hero .hero-slide { min-height:0; }
body[data-template="topwayse"] .tw-shade { pointer-events:none; }
body[data-template="topwayse"] .option-chip:has(input:checked) { border-color:var(--primary); }
body[data-template="topwayse"] .header-actions select { max-width:7em; }
body[data-template="topwayse"] .cart-line-info { min-width:0; flex:1; }
body[data-template="topwayse"] .section > .container,
body[data-template="topwayse"] .site-nav > .container,
body[data-template="topwayse"] .trust-strip-inner,
body[data-template="topwayse"] .footer-grid { padding-inline:0; }
body[data-template="topwayse"] .tw-about { display:grid; grid-template-columns:1.2fr .8fr; gap:1.5rem; align-items:start; }
body[data-template="topwayse"] .cart-table { padding:.5rem 1rem; }
@media(max-width:860px) { body[data-template="topwayse"] .tw-about { grid-template-columns:1fr; } }
body[data-template="topwayse"] .cart-line-info input { max-width:6em; }
body[data-template="topwayse"] .form-grid [data-result] { color:var(--text); }
@media(max-width:860px) {
    body[data-template="topwayse"] .header-row { gap:.5rem; }
    body[data-template="topwayse"] .brand-text span { white-space:normal; }
}
