/* ==========================================================================
   Post Aruba — shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #383590;
  --color-primary-dark: #2c2971;
  --color-accent-blue: #4c5fd6;
  --color-accent-green: #3fa350;
  --color-accent-yellow: #f0b429;
  --color-accent-orange: #e8823a;
  --color-bg-light: #eef0f8;
  --color-bg-white: #ffffff;
  --color-text-dark: #2b2a45;
  --color-text-gray: #6b7280;
  --color-text-gray-light: #8a8fa3;
  --color-border: #e3e5f1;

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-gray);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

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

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

.btn-dark {
  background: #14142b;
  color: #fff;
  border-radius: 6px;
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 10.5px 22px;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}

.link-arrow svg {
  transition: transform 0.15s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown .chevron {
  transition: transform 0.15s ease;
}

.nav-item.has-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(43, 42, 69, 0.12);
  min-width: 220px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.dropdown-menu a:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-bg-light);
  padding: 0 0 28px;
}

.hero-slides {
  position: relative;
  height: 72vh;
  min-height: 500px;
  max-height: 680px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center 20%);
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 23, 58, 0.86) 0%, rgba(24, 23, 58, 0.5) 48%, rgba(24, 23, 58, 0.12) 78%);
}

.hero-copy-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--color-primary);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(43, 42, 69, 0.24);
}

.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-text-gray);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.carousel-dots button.active {
  background: var(--color-primary);
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  font-size: 50px;
  line-height: 1.14;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17.5px;
  margin-bottom: 28px;
  max-width: 440px;
}

/* ==========================================================================
   Utility band (Track & Trace / Customer Service / News)
   ========================================================================== */

.utility-band {
  background: var(--color-bg-light);
  padding: 56px 0;
  overflow: visible;
}

.utility-band .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 16px;
}

.utility-band .container.cols-2 {
  grid-template-columns: 1.1fr 1fr;
}

.utility-card {
  padding: 32px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(43, 42, 69, 0.12);
}

.utility-card.track {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4c47a3 100%);
  color: #fff;
}

.utility-card.track h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.utility-card.track p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin: 0 0 20px;
}

.track-form {
  display: flex;
  gap: 10px;
}

.track-form input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}

.track-form button {
  background: var(--color-primary-dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
}

.utility-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.utility-card p {
  color: var(--color-text-gray);
  font-size: 14px;
  margin: 0 0 14px;
}

/* ==========================================================================
   Content + sidebar layout (service detail pages)
   ========================================================================== */

.content-section {
  padding: 64px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}

.content-main h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.content-main h3:not(:first-child) {
  margin-top: 36px;
}

.content-main p {
  color: var(--color-text-gray);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 14px;
}

.faq-question {
  font-weight: 600;
  color: var(--color-text-dark) !important;
  margin-bottom: 6px !important;
}

.content-main ol {
  padding-left: 20px;
  margin: 0 0 14px;
  color: var(--color-text-gray);
  font-size: 14.5px;
  line-height: 1.75;
}

.content-main ol li {
  margin-bottom: 8px;
}

.checklist {
  margin: 14px 0 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--color-text-dark);
}

.checklist li svg {
  flex-shrink: 0;
}

.spec-label {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 14.5px;
  margin: 0 0 6px;
}

.spec-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.spec-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 14.5px;
  color: var(--color-text-gray);
  line-height: 1.6;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-media {
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sidebar-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-card.alt {
  background: var(--color-bg-light);
  border: none;
  text-align: center;
}

.sidebar-card h3 {
  text-align: center;
  font-size: 17px;
  margin: 0 0 18px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.price-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-dark);
}

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.sidebar-card .btn {
  width: 100%;
}

/* ==========================================================================
   Price calculator widget
   ========================================================================== */

.price-calc {
  margin-bottom: 20px;
}

.price-calc label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.price-calc-row {
  display: flex;
  gap: 8px;
}

.price-calc-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.price-calc-row .btn {
  width: auto;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.price-calc-result {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.price-calc-result:empty {
  display: none;
}

.price-calc-result.error {
  background: #fdecea;
  color: #b23b32;
}

.price-calc-result.success {
  background: #eaf7ec;
  color: #256a34;
}

.price-calc-result strong {
  font-size: 15px;
}

/* ==========================================================================
   Business Solutions page
   ========================================================================== */

.solutions-intro {
  padding: 56px 0 8px;
}

.solutions-intro .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.solutions-intro .quick-links a {
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
}

.solutions-intro .quick-links a:hover {
  background: var(--color-primary);
  color: #fff;
}

.solution-block {
  padding: 48px 0;
}

.solution-block.alt {
  background: var(--color-bg-light);
}

.solution-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}

.solution-row.media-left {
  grid-template-columns: 300px 1fr;
}

.solution-media {
  position: sticky;
  top: 96px;
  border-radius: 14px;
  overflow: hidden;
}

.solution-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.solution-block h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.who-for-box {
  background: var(--color-primary);
  color: #fff;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.who-for-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}

.solution-block .desc {
  color: var(--color-text-gray);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.solution-price {
  margin-top: 18px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
}

.solution-price .note {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-gray);
  font-size: 13px;
  margin-top: 4px;
}

.mini-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.mini-price-table {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13.5px;
}

.mini-price-table h5 {
  margin: 0 0 10px;
  font-size: 14px;
  font-family: var(--font-heading);
}

.mini-price-table .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-price-table .row:last-child {
  border-bottom: none;
}

.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 22px;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.cta-contacts a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Section heading with rule
   ========================================================================== */

.section-heading {
  text-align: center;
  padding: 48px 0 8px;
  position: relative;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.section-heading p {
  color: var(--color-text-gray);
  font-size: 15px;
  margin: 0 auto;
  max-width: 560px;
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-section {
  padding-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 22px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon--wana {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.service-icon--wana img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.service-card p {
  font-size: 13px;
  color: var(--color-text-gray);
  margin: 0;
}

/* ==========================================================================
   Post Shop
   ========================================================================== */

.post-shop {
  background: var(--color-bg-light);
  padding-bottom: 60px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.shop-card h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.shop-card p {
  color: var(--color-text-gray);
  font-size: 14px;
  margin: 0 0 12px;
}

/* ==========================================================================
   Homepage - brand/identity photo band
   ========================================================================== */

.brand-band {
  padding: 8px 0 64px;
}

.brand-band .feature-row {
  padding-top: 0;
  padding-bottom: 0;
}

.brand-band .feature-media img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.brand-band .feature-copy .eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 10px;
}

.brand-band .feature-copy ul {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.brand-band .feature-copy ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--color-text-dark);
}

.brand-band .feature-copy ul li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent-green);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #fff;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-text-dark);
}

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

.newsletter-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

.newsletter-form button {
  background: #14142b;
  color: #fff;
  border: none;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom .logo img {
  height: 26px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-gray);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
}

.social-links a:hover {
  background: var(--color-bg-light);
}

/* ==========================================================================
   Solid-color page banner (interior pages, no photo background)
   ========================================================================== */

.page-hero-solid {
  background: var(--color-primary);
  padding: 56px 0 60px;
  text-align: center;
}

.page-hero-solid h1 {
  color: #fff;
  font-size: 34px;
}

.page-hero-solid p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.7;
}

.page-hero-photo {
  background-image: linear-gradient(180deg, rgba(30, 29, 66, 0.68) 0%, rgba(56, 53, 144, 0.85) 100%), var(--hero-photo);
  background-size: cover;
  background-position: center;
  padding: 84px 0 76px;
}

/* ==========================================================================
   Live open/closed hours widget
   ========================================================================== */

.hours-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-gray-light);
  flex-shrink: 0;
}

.hours-section {
  padding: 0 0 24px;
  position: relative;
  z-index: 3;
  margin-top: -46px;
}

.hours-section.on-light {
  margin-top: 0;
  padding: 48px 0 56px;
}

.hours-panel {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4c47a3 100%);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(43, 42, 69, 0.24);
  padding: 44px 48px;
}

.hours-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hours-panel-head h3 {
  font-size: 21px;
  margin: 0;
  color: #fff;
}

.hours-panel-head .link-arrow {
  color: #fff;
}

.hours-panel-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hours-branch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hours-branch .hours-dot { margin-top: 6px; }

.hours-branch.is-open .hours-dot {
  background: #6fe08a;
  box-shadow: 0 0 0 4px rgba(111, 224, 138, 0.25);
}

.hours-branch.is-closed .hours-dot {
  background: #ffb066;
  box-shadow: 0 0 0 4px rgba(255, 176, 102, 0.25);
}

.hours-branch-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  margin: 0 0 4px;
}

.hours-branch-status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hours-branch.is-open .hours-branch-status { color: #8ff0a4; font-weight: 600; }
.hours-branch.is-closed .hours-branch-status { color: #ffc48f; font-weight: 600; }

@media (max-width: 700px) {
  .hours-panel-branches { grid-template-columns: 1fr; }
  .hours-section { margin-top: -30px; }
  .hours-section.on-light { padding: 32px 0 40px; }
  .hours-panel { padding: 28px; }
}

/* ==========================================================================
   Alternating feature rows (Send / Receive style pages)
   ========================================================================== */

.feature-row-section.alt {
  background: var(--color-bg-light);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.feature-row .feature-copy { order: 1; }
.feature-row .feature-media { order: 2; }
.feature-row.media-left .feature-copy { order: 2; }
.feature-row.media-left .feature-media { order: 1; }

.feature-copy h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--color-text-gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 420px;
}

.feature-media img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* ==========================================================================
   Page header banner (for interior pages)
   ========================================================================== */

.page-hero {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43,41,90,0.82) 0%, rgba(43,41,90,0.35) 70%);
  z-index: 1;
}

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

.page-hero h1 {
  color: #fff;
  font-size: 34px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  max-width: 460px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-slides {
    height: 52vh;
    min-height: 380px;
  }

  .carousel-arrow {
    display: none;
  }

  .hero-copy-wrap {
    align-items: flex-end;
    padding-bottom: 36px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
  }

  .feature-row .feature-copy,
  .feature-row .feature-media,
  .feature-row.media-left .feature-copy,
  .feature-row.media-left .feature-media {
    order: initial;
  }

  .feature-copy p {
    max-width: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-sidebar {
    position: static;
  }

  .solution-row,
  .solution-row.media-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .solution-media {
    position: static;
    order: -1;
  }

  .utility-band .container.cols-2 {
    grid-template-columns: 1fr;
  }

  .mini-price-grid {
    grid-template-columns: 1fr;
  }

  .cta-contacts {
    flex-direction: column;
    gap: 16px;
  }

  .utility-band .container {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 700px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a.nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

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

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

/* ==========================================================================
   Unified price calculator page
   ========================================================================== */

.calc-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 16px 44px rgba(43, 42, 69, 0.08);
}

.calc-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.calc-select,
.calc-fields select,
.calc-fields input[type="number"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  background: #fff;
}

.calc-select {
  margin-bottom: 24px;
}

.calc-fields {
  display: none;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

.calc-fields .calc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.calc-fields .calc-checkbox input {
  width: auto;
  margin: 0;
}

.calc-fields .calc-hint {
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin: -10px 0 16px;
}

#calcBtn {
  width: 100%;
  margin-top: 4px;
}

.price-calc-result .calc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.price-calc-result .calc-total {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 6px;
  padding-top: 10px;
}

.price-calc-result .calc-note,
.calc-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--color-text-gray);
}

/* ==========================================================================
   Post Shop catalog page
   (namespaced shop-catalog- to avoid collision with homepage .shop-grid/.shop-card teaser)
   ========================================================================== */

.shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.shop-filter-btn {
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 42, 69, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.shop-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 3px 8px rgba(56, 53, 144, 0.14);
}

.shop-filter-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(43, 42, 69, 0.08);
}

.shop-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(56, 53, 144, 0.28);
}

.shop-filter-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.shop-filter-years[hidden] {
  display: none;
}

.shop-filter-year-btn {
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 42, 69, 0.05);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shop-filter-year-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.shop-filter-year-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(56, 53, 144, 0.22);
}

.shop-stamps-info {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 28px;
}

.shop-stamps-info > p:first-child {
  font-size: 15px;
  color: var(--color-text-dark);
  margin: 0 0 16px;
}

.shop-stamps-info .spec-label {
  margin-top: 16px;
}

.shop-stamps-info .spec-label:first-of-type {
  margin-top: 0;
}

.shop-stamps-info p {
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.65;
  margin: 0 0 6px;
}

.shop-stamps-info .shop-stamps-footnote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13.5px;
}

.shop-catalog-category-h {
  font-size: 20px;
  margin: 40px 0 4px;
}

.shop-catalog-category-h:first-of-type {
  margin-top: 8px;
}

.shop-catalog-category-note {
  color: var(--color-text-gray);
  font-size: 13.5px;
  margin: 0 0 8px;
}

@media (max-width: 600px) {
  .calc-card {
    padding: 24px;
  }
}

/* ==========================================================================
   Post Shop — product cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 8px 0 24px;
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  cursor: zoom-in;
}

.product-card.sold-out .product-image img {
  opacity: 0.45;
}

.product-sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-text-dark);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product-stock-low {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b3541e;
}

.product-image svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-bg-light);
}

.product-info {
  padding: 16px 16px 4px;
  flex: 1;
}

.product-info h4 {
  font-size: 14.5px;
  margin: 0 0 6px;
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.product-info p {
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin: 0 0 10px;
  line-height: 1.6;
}

.product-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14.5px;
}

.product-actions {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.qty-stepper .qty-btn {
  background: var(--color-bg-light);
  border: none;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
}

.qty-stepper .qty-btn:hover {
  background: var(--color-border);
}

.qty-stepper .qty-input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
}

.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  width: 100%;
  font-size: 13px;
  padding: 10px 14px;
}

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

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

/* ==========================================================================
   Cart — header icon, badge, and slide-out drawer
   ========================================================================== */

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-accent-orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 50, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

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

body.cart-drawer-locked {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--color-bg-white);
  box-shadow: -8px 0 24px rgba(20, 18, 50, 0.18);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-header h3 {
  margin: 0;
  font-size: 17px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-gray);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
}

.cart-empty {
  color: var(--color-text-gray);
  font-size: 13.5px;
  text-align: center;
  margin-top: 32px;
}

.cart-empty a {
  color: var(--color-primary);
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item-info strong {
  font-size: 13px;
  color: var(--color-text-dark);
}

.cart-item-info span {
  font-size: 11.5px;
  color: var(--color-text-gray);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cart-item-qty .qty-btn {
  background: var(--color-bg-light);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-gray-light);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #d9534f;
}

.cart-drawer-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--color-border);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
}

.cart-drawer-note {
  font-size: 11.5px;
  color: var(--color-text-gray);
  text-align: center;
  margin: 10px 0 0;
}

/* ==========================================================================
   Site search — header icon, overlay, results panel
   ========================================================================== */

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 50, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1100;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.search-locked {
  overflow: hidden;
}

.search-panel {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translate(-50%, -12px);
  width: 600px;
  max-width: 92vw;
  max-height: 70vh;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(20, 18, 50, 0.28);
  z-index: 1101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.search-input-row svg {
  color: var(--color-text-gray-light);
  flex-shrink: 0;
}

.search-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text-dark);
  background: none;
}

.search-input-row input::placeholder {
  color: var(--color-text-gray-light);
}

.search-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-gray);
  flex-shrink: 0;
}

.search-results {
  overflow-y: auto;
  padding: 8px;
}

.search-hint,
.search-empty {
  color: var(--color-text-gray);
  font-size: 13.5px;
  text-align: center;
  padding: 28px 16px;
  margin: 0;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--color-bg-light);
}

.search-result-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.search-result-title mark {
  background: none;
  color: var(--color-primary);
  font-weight: 700;
}

.search-result-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--color-text-gray);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .search-panel {
    top: 16px;
    width: 92vw;
    max-height: 82vh;
  }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-empty {
  text-align: center;
  padding: 40px 0;
}

.checkout-empty p {
  color: var(--color-text-gray);
  margin-bottom: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.checkout-summary-card,
.checkout-form-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.checkout-summary-card h3,
.checkout-form-card h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-line-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-line-info strong {
  font-size: 13.5px;
  color: var(--color-text-dark);
}

.checkout-line-info span {
  font-size: 11.5px;
  color: var(--color-text-gray);
}

.checkout-line-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.checkout-line-qty .qty-btn {
  background: var(--color-bg-light);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
}

.checkout-line-total {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  padding-top: 14px;
  margin-top: 4px;
}

.checkout-subtotal-row,
.checkout-shipping-row {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-gray);
  padding-top: 6px;
  margin-top: 0;
}

.checkout-total-row:last-child {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 8px;
}

.checkout-form-card form {
  display: flex;
  flex-direction: column;
}

.toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.toggle-btn {
  flex: 1;
  min-width: 140px;
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 42, 69, 0.05);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.toggle-btn:hover {
  border-color: var(--color-primary);
}

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

.checkout-form-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 12px 0 6px;
}

.checkout-form-card label:first-child {
  margin-top: 0;
}

.checkout-form-card input,
.checkout-form-card select,
.checkout-form-card textarea {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
}

.checkout-form-card textarea {
  resize: vertical;
}

.checkout-form-card button {
  margin-top: 18px;
}

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

/* ==========================================================================
   Post Shop — product detail modal
   ========================================================================== */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 50, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1010;
}

.product-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 920px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 18, 50, 0.3);
  z-index: 1011;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 32px;
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.product-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-gray);
  cursor: pointer;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.product-modal-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.product-modal-main-image svg,
.product-modal-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--color-bg-light);
  flex-shrink: 0;
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal-thumb.active {
  border-color: var(--color-primary);
}

.product-modal-info h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.product-modal-price {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product-modal-desc {
  font-size: 13.5px;
  color: var(--color-text-gray);
  line-height: 1.7;
  margin: 0 0 18px;
}

.product-modal-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.product-modal-qty-row .qty-stepper {
  width: 120px;
}

.product-modal-add-btn {
  width: 100%;
  margin-bottom: 20px;
}

.product-modal-howitworks {
  background: var(--color-bg-light);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.product-modal-howitworks h4 {
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--color-text-dark);
}

.product-modal-howitworks p {
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin: 0;
  line-height: 1.7;
}

.product-modal-howitworks p a {
  color: var(--color-primary);
  font-weight: 600;
}

.product-modal-accordion {
  border-top: 1px solid var(--color-border);
}

.product-modal-accordion:last-child {
  border-bottom: 1px solid var(--color-border);
}

.product-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
}

.product-accordion-icon {
  font-size: 16px;
  color: var(--color-primary);
  transition: transform 0.15s ease;
}

.product-accordion-toggle.open .product-accordion-icon {
  transform: rotate(45deg);
}

.product-accordion-panel {
  display: none;
  padding: 0 0 16px;
}

.product-accordion-panel.open {
  display: block;
}

.product-modal-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}

.product-modal-detail-row:last-child {
  border-bottom: none;
}

.product-modal-detail-row span:first-child {
  color: var(--color-text-gray);
}

.product-modal-detail-row span:last-child {
  font-weight: 600;
  color: var(--color-text-dark);
}

.product-modal-none {
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin: 0;
}

@media (max-width: 760px) {
  .product-modal-body {
    grid-template-columns: 1fr;
  }
  .product-modal {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   CX Pay checkout fields
   ========================================================================== */

.cxpay-fields {
  margin-top: 6px;
}

.cxpay-field {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px 12px;
  height: 40px;
  display: flex;
  align-items: center;
}

.cxpay-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.cxpay-fields-row label {
  margin: 0 0 6px;
}

.cxpay-secure-note {
  font-size: 11.5px;
  color: var(--color-text-gray);
  margin: 10px 0 0;
}

.cxpay-order-note {
  font-size: 12px;
  color: var(--color-text-gray);
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 16px 0 0;
}

/* ================= NEWS & UPDATES ================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(43, 42, 69, 0.08);
  transform: translateY(-2px);
}

.news-card-thumb {
  aspect-ratio: 16/10;
  background: var(--color-bg-light);
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-accent-blue) 220%);
}

.news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card-date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 2px 0 0;
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--color-text-gray);
  margin: 0;
  line-height: 1.5;
}

.news-card-readmore {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.news-empty,
.news-loading,
.shop-catalog-empty,
.shop-catalog-loading {
  text-align: center;
  color: var(--color-text-gray);
  font-size: 15px;
  padding: 40px 0;
  grid-column: 1 / -1;
}

.news-back-link {
  display: inline-flex;
  margin-bottom: 20px;
  font-weight: 600;
}

.news-post-section {
  max-width: 760px;
  margin: 0 auto;
}

.news-post-header h1 {
  margin: 6px 0 0;
}

.news-post-thumb {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}

.news-post-thumb img {
  width: 100%;
  display: block;
}

.news-post-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-dark);
}

.news-post-body p {
  margin: 0 0 16px;
}

.news-post-body h3,
.news-post-body h4 {
  font-family: 'Poppins', sans-serif;
  margin: 28px 0 12px;
}

.news-post-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.news-post-body li {
  margin-bottom: 6px;
}

.news-post-body blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--color-accent-blue);
  background: var(--color-bg-light);
  color: var(--color-text-gray);
  border-radius: 0 8px 8px 0;
}

.news-post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

/* ==========================================================================
   Staff admin panels (admin.html, admin-orders.html, admin-news.html,
   admin-shop.html) — shared login screen, list tables, and editor forms.
   ========================================================================== */

body.admin-body { background: var(--color-bg-light); }

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 22px; margin: 0; }

.admin-login-box { max-width: 360px; margin: 80px auto; background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: 12px; padding: 28px; }
.admin-login-box h1 { font-size: 18px; margin: 0 0 18px; }
.admin-login-box label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.admin-login-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 14px; }
.admin-login-box button { margin-top: 18px; width: 100%; }

.admin-error { color: #b3261e; font-size: 13px; margin-top: 10px; }

.admin-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters button { background: var(--color-bg-white); border: 1.5px solid var(--color-border); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.admin-filters button.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

table.admin-table { width: 100%; border-collapse: collapse; background: var(--color-bg-white); border-radius: 10px; overflow: hidden; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
table.admin-table th { background: var(--color-bg-light); font-weight: 700; }
table.admin-table img.admin-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }

.admin-status-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.admin-status-pending_payment { background: #fdecea; color: #b3261e; }
.admin-status-paid { background: #e6f4ea; color: #1e7e34; }
.admin-status-pending_fulfillment { background: #fff4e0; color: #b3541e; }
.admin-status-fulfilled { background: #e3e8ff; color: #3730a3; }
.admin-status-cancelled, .admin-status-refunded { background: #eee; color: #555; }
.admin-status-disputed { background: #fbe1e1; color: #8a1c1c; }
.admin-status-published { background: #e6f4ea; color: #1e7e34; }
.admin-status-draft { background: #eee; color: #555; }

.admin-fulfillment-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; background: var(--color-bg-light); color: var(--color-text-dark); margin-bottom: 4px; }

.admin-order-actions, .admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-order-actions button, .admin-row-actions button { font-size: 11.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-bg-white); cursor: pointer; }

.admin-order-items { font-size: 12px; color: var(--color-text-gray); }
.admin-empty { text-align: center; padding: 40px; color: var(--color-text-gray); }
.admin-logout-btn { background: none; border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

.admin-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* Editor panel (create/edit form for a news post or shop product) */

.admin-editor-panel { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.admin-editor-panel h2 { font-size: 17px; margin: 0 0 16px; }

.admin-editor-panel label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text-dark); margin: 12px 0 4px; }
.admin-editor-panel label:first-of-type { margin-top: 0; }

.admin-editor-panel input[type="text"],
.admin-editor-panel input[type="number"],
.admin-editor-panel input[type="date"],
.admin-editor-panel select,
.admin-editor-panel textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
}

.admin-editor-panel textarea { resize: vertical; }

.admin-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

.admin-checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.admin-checkbox-row label { margin: 0; }
.admin-checkbox-row input { width: auto; }

.admin-image-upload { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.admin-image-upload img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-bg-light); }
.admin-image-upload .admin-upload-status { font-size: 12px; color: var(--color-text-gray); }

.admin-gallery-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.admin-gallery-item { position: relative; width: 64px; height: 64px; }
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); }
.admin-gallery-item button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #b3261e; color: #fff; border: none; font-size: 12px; line-height: 1; cursor: pointer; }

.admin-detail-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 8px; align-items: center; }
.admin-detail-row input { margin: 0; }
.admin-detail-row button { border: 1px solid var(--color-border); background: var(--color-bg-white); border-radius: 6px; padding: 8px; cursor: pointer; font-size: 12px; }

.admin-add-row-btn { margin-top: 10px; font-size: 12.5px; font-weight: 600; background: none; border: 1.5px dashed var(--color-border); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--color-text-gray); width: 100%; }

.admin-md-tabs { display: flex; gap: 8px; margin: 12px 0 4px; }
.admin-md-tab { background: var(--color-bg-light); border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.admin-md-tab.active { background: var(--color-primary); color: #fff; }
.admin-md-preview { border: 1px solid var(--color-border); border-radius: 8px; padding: 14px; font-size: 13.5px; min-height: 160px; }

.admin-editor-actions { display: flex; gap: 10px; margin-top: 20px; }
.admin-editor-actions .btn-secondary { background: var(--color-bg-light); color: var(--color-text-dark); }

.admin-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.admin-hub-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: 14px; padding: 26px; text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, transform 0.1s ease; }
.admin-hub-card:hover { box-shadow: 0 8px 20px rgba(43, 42, 69, 0.1); transform: translateY(-2px); }
.admin-hub-card h3 { margin: 0 0 8px; font-size: 17px; }
.admin-hub-card p { margin: 0; font-size: 13.5px; color: var(--color-text-gray); }

@media (max-width: 800px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-hub-grid { grid-template-columns: 1fr; }
  .admin-detail-row { grid-template-columns: 1fr; }
}
