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

:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f3f4f6;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.28);
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.15);
  --accent-strong: #0284c7;
  --text-main: #111827;
  --text-muted: #6b7280;
  --danger: #e11d48;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text-main);
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.main-detail {
  max-width: 1040px;
  padding-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #ffffff;
}

/* Brand + nav */

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-strong);
  text-decoration: none;
}

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

.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.nav-active {
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
}

/* Cart pill */

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-pill-label {
  font-weight: 600;
}

.cart-pill-count {
  color: var(--text-muted);
}

.cart-pill-total {
  font-weight: 600;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  padding: 32px 24px 120px;
  margin: 0 calc(50% - 50vw) 32px;
  width: 100vw;
  max-width: 100vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 8px 0 10px;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-highlight {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  margin-top: 18px;
  padding: 22px 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Back link */

.back-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
}

.back-link:hover {
  color: var(--accent-strong);
}

/* Filters */

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.filter-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.filter-item input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 7px 10px;
  font-size: 0.9rem;
}

.filter-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-buttons {
  text-align: right;
}

/* Products grid */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 165, 233, 0.7);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.product-body {
  padding: 12px 12px 10px;
}

.product-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.product-price {
  font-weight: 600;
  margin: 2px 0 4px;
}

.product-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-footer {
  padding: 8px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.btn.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.45);
}

.btn.ghost {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

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

.btn.secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn.secondary:hover {
  background: var(--bg-soft);
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cart panel */

.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 80%;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: right 0.18s ease-out;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.icon-btn {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cart-item-info {
  max-width: 60%;
}

.cart-item-name {
  font-weight: 500;
}

.cart-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  text-align: right;
}

.cart-item-actions button {
  margin-top: 3px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.cart-item-actions button:hover {
  background: var(--bg-soft);
}

.cart-panel-footer {
  margin-top: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.cart-total-amount {
  font-weight: 700;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  z-index: 55;
  transition: opacity 0.15s ease-out;
}

.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.empty-cart {
  color: var(--text-muted);
}

/* Detail page */

.detail {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.detail-main-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.detail-main-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.detail-main-image:hover {
  transform: scale(1.05);
}

.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.detail-thumb {
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  width: 68px;
  height: 68px;
  overflow: hidden;
  background: #e5e7eb;
  cursor: pointer;
}

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

.detail-thumb.active {
  border-color: var(--accent-strong);
}

.detail-info h1 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.detail-description {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  z-index: 70;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.image-modal-content {
  max-width: 760px;
  padding: 10px;
}

.image-modal-content img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
}

/* Forms & contact */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.list-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 12px 12px 10px;
  background: #ffffff;
}

.list-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 18px;
}

.contact-card,
.contact-form {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 12px 12px 10px;
  background: #ffffff;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  padding: 6px 8px;
  font-size: 0.88rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 1px solid var(--accent);
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utilities & responsive */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  padding: 1px 4px;
  border-radius: 4px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 960px) {
  .hero {
  background-image: url("images/header-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  padding: 32px 24px;

    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  }
  .detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .hero {
  background-image: url("images/header-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  padding: 32px 24px;

    grid-template-columns: 1fr;
  }

  .section-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding-inline: 12px;
  }

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

@media (max-width: 520px) {
  .product-card img {
    height: 170px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-panel {
    width: 100%;
  }
}


/* Logo image */
.logo-img-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}


/* Hero text color override */
.hero-content h1,
.hero-kicker,
.hero-subtitle,
.hero-note,
.hero-highlight,
.hero-highlight * {
  color: #000000;
}


.filter-item select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 7px 10px;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text-main);
}


/* Fade animation for hero images */
.hero {
  transition: background-image 1s ease-in-out;
}



/* 1) Move hero buttons lower with a small gap from the bottom of the image */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-actions {
  margin-top: auto;
  margin-bottom: 12px; /* small gap above bottom of hero image frame */
}

/* 2) Make the stats box shorter but keep same width and position */
.hero-stat {
  padding-block: 3px;
}

.hero-stat-number {
  font-size: 1.35rem;
}

.hero-stat-label {
  font-size: 0.75rem;
}


/* 1) Push hero buttons toward bottom with small gap */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-actions {
  margin-top: 24px;
  margin-bottom: 12px;
}


/* Center hero title text */
.hero-content h1 {
  text-align: center !important;
  width: 100%;
}

.hero-subtitle {
  text-align: center !important;
  width: 100%;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}


/* Move buttons near bottom edge */
.hero-actions {
  margin-top: auto !important;
  margin-bottom: 20px !important;
}


.hero {
  padding-bottom: 160px !important; /* longer hero image */
}


/* Place hero title at top center */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
}

.hero-content h1 {
    margin-top: 20px !important;
    margin-bottom: 0px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Move action buttons to bottom-left */
.hero-actions {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: row;
    gap: 14px;
}

/* Ensure hero container allows absolute positioning */
.hero {
    position: relative !important;
    padding-bottom: 200px !important;
}


/* About page layout tweaks */
.page-about .main {
  max-width: 900px;
}

.page-about .section h2 {
  margin-bottom: 8px;
}

.page-about .section h3 {
  margin-top: 10px;
  font-size: 1rem;
}


/* Quick message status text */
.form-status {
  margin-top: 6px;
  font-size: 0.85rem;
}

.form-status.success {
  color: #1a7f3c;
}

.form-status.error {
  color: #c0362c;
}


.hidden-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}
