/* ═══ Twomiah Factory Template — CSS Variables ═══
   These values are injected by the factory generator.
   Do not edit manually — use the admin panel or regenerate. */
:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #1e3a5f;
  --color-secondary: #1e3a5f;
  --color-accent: #FF3D00;
  --color-accent-light: #FF3D00;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --border-radius: 8px;
}

/* ===========================================
   TEST SHOP CO - Premium Public Pages
   Unified styles for Gallery, Service, SubService, 
   Custom, and Project Detail pages
   =========================================== */

/* ===========================================
   SHARED COMPONENTS
   =========================================== */

/* Loading States */
.page-loading,
.project-loading,
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: #64748b;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-content h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
}

.error-content p {
  font-size: 1.25rem;
  color: #64748b;
  margin: 16px 0 32px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: #1e293b;
}

.btn-primary:hover {
  background: var(--color-accent-light, #e5b95c);
  transform: translateY(-2px);
}

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

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

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.view-all-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--color-accent);
}

/* Prose Content */
.prose {
  color: #475569;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 16px;
}

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

.prose h2, .prose h3, .prose h4 {
  color: #1e293b;
  margin: 32px 0 16px;
}

.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child {
  margin-top: 0;
}

.prose ul, .prose ol {
  margin: 16px 0;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

/* ===========================================
   GALLERY PAGE
   =========================================== */

.gallery-page {
  background: #fff;
}

/* Gallery Hero */
.gallery-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  overflow: hidden;
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.gallery-hero h1 {
  color: inherit; /* white from .gallery-hero-content; beats the themes' bare h1 colour */
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.gallery-hero p {
  color: inherit;
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 60px 0;
  }
  .gallery-hero h1 {
    font-size: 2.25rem;
  }
}

/* Gallery Filters */
.gallery-filters {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gallery-filters .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 30px;
  background: white;
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.filter-btn.active {
  /* white label on the brand: the brand darkened only as far as AA-on-white needs */
  background: #cf3100;
  border-color: #cf3100;
  color: white;
}

.results-count {
  color: #64748b;
  font-size: 0.9rem;
}

/* Gallery Grid */
.gallery-grid-section {
  padding: 48px 0 64px;
}

.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

.gallery-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.gallery-empty h3 {
  font-size: 1.25rem;
  color: #334155;
  margin: 0 0 8px;
}

.gallery-empty p {
  margin: 0;
}

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

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

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

.gallery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.gallery-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e5e7eb;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.08);
}

.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

/* Touch devices have no hover */
@media (hover: none) {
  .gallery-card-overlay {
    opacity: 1;
    background: rgba(15, 23, 42, 0.30);
  }
}

.view-btn {
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55); /* legible on its own */
}

.photo-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.gallery-card-content {
  padding: 20px;
}

.gallery-card-content .project-category {
  font-size: 0.75rem;
  color: #ffffff; /* it sits on the brand-filled chip */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-card-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 8px 0;
}

.gallery-card-content .project-location {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Gallery CTA */
.gallery-cta {
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  padding: 72px 0;
  text-align: center;
  color: white;
}

.gallery-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.gallery-cta > .container > p,
.cta-content > p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-cta .cta-buttons,
.cta-content .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-cta .btn-primary,
.cta-content .btn-primary {
  color: #ffffff;
}

.gallery-cta .btn-outline,
.cta-content .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.gallery-cta .btn-outline:hover,
.cta-content .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

@media (max-width: 600px) {
  .gallery-cta .cta-buttons,
  .cta-content .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-cta .btn,
  .cta-content .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===========================================
   SERVICE PAGES (Service & SubService)
   =========================================== */

.service-page {
  background: #fff;
}

/* Service Hero */
.service-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  overflow: hidden;
}

.service-hero.has-image {
  min-height: 550px;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-hero-bg.animation-pan {
  animation: heroPan var(--hero-speed, 10s) ease-in-out infinite alternate;
}

.service-hero-bg.animation-zoom {
  animation: heroZoom var(--hero-speed, 10s) ease-in-out infinite alternate;
}

.service-hero-bg.animation-ken-burns {
  animation: heroKenBurns var(--hero-speed, 10s) ease-in-out infinite alternate;
}

@keyframes heroPan {
  0% { transform: translateX(0); }
  100% { transform: translateX(-3%); }
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes heroKenBurns {
  0% { transform: scale(1) translateX(0); }
  100% { transform: scale(1.1) translateX(-2%); }
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.7) 100%);
}

.service-hero-content {
  position: relative;
  width: 100%;
  padding: 80px 0;
  color: white;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

.service-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
  max-width: 700px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .service-hero {
    min-height: 400px;
  }
  
  .service-hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Service Main Content */
.service-main {
  padding: 64px 0;
  background: #f8fafc;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.content-section {
  background: white;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
}

/* Offerings Grid */
.offerings-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px;
}

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

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

.offering-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.offering-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1;
}

.offering-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 10px;
}

.offering-card p {
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Details Section */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.details-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.details-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
}

.details-card h3 svg {
  color: var(--color-primary);
}

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

.details-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.details-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.details-card li:first-child {
  padding-top: 0;
}

.details-card li svg {
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1024px) {
  .service-sidebar {
    position: static;
  }
}

.cta-card {
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  padding: 32px;
  border-radius: 16px;
  color: white;
}

.cta-card h3 {
  color: inherit; /* white from .cta-card; beats the themes' bare h3 colour (dark on this navy card) */
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-card > p {
  color: inherit;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.5;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.phone-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cta-card .btn-primary {
  width: 100%;
  padding: 14px 20px;
  color: #ffffff;
}

.cta-card .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.trust-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.trust-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-item:first-child {
  padding-top: 0;
}

.trust-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-item span {
  font-weight: 500;
  color: #334155;
}

/* Service Projects */
.service-projects {
  padding: 64px 0;
  background: white;
}

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

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

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

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 8px;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.project-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* FAQ Section */
.service-faq {
  padding: 64px 0;
  background: #f8fafc;
}

.service-faq h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 32px;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-question span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}

.faq-question svg {
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* Service CTA */
.service-cta {
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  padding: 72px 0;
  text-align: center;
  color: white;
}

.service-cta h2 {
  color: inherit; /* white from .service-cta; beats the themes' h2/section h2 colour */
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.service-cta > .container > p {
  color: inherit;
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.service-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .service-cta {
    padding: 56px 0;
  }
  
  .service-cta h2 {
    font-size: 1.75rem;
  }
  
  .service-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .service-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Other Services */
.other-services {
  padding: 48px 0;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.other-services.sub-services {
  border-top: none;
  padding-bottom: 0;
}

.other-services h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
  text-align: center;
}

.services-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.service-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.service-link svg {
  opacity: 0.5;
}

.service-link:hover svg {
  opacity: 1;
}

/* ===========================================
   CUSTOM PAGE
   =========================================== */

.custom-page {
  background: #fff;
}

.custom-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  overflow: hidden;
}

.custom-hero.has-image {
  min-height: 500px;
}

.custom-hero.simple {
  min-height: auto;
  padding: 80px 0;
  text-align: center;
}

.custom-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.custom-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.7) 100%);
}

.custom-hero-content {
  position: relative;
  width: 100%;
  padding: 80px 0;
  color: white;
  text-align: center;
}

.custom-hero .hero-tagline {
  display: inline-block;
  background: rgba(212, 168, 75, 0.2);
  color: var(--color-accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.custom-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.custom-hero .hero-description {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.custom-hero.simple h1 {
  color: white;
  margin-bottom: 8px;
}

.custom-hero.simple .hero-tagline {
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .custom-hero h1 {
    font-size: 2.25rem;
  }
}

/* Custom Content */
.custom-content {
  padding: 64px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.custom-content .prose {
  font-size: 1.05rem;
}

/* Custom CTA */
.custom-cta {
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  padding: 64px 0;
  text-align: center;
  color: white;
}

.custom-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.custom-cta > .container > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 28px;
}

.custom-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .custom-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .custom-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===========================================
   PROJECT DETAIL PAGE
   =========================================== */

.project-detail {
  background: #fff;
}

.project-detail .project-hero {
  position: relative;
  height: 65vh;
  min-height: 400px;
  max-height: 700px;
  background: var(--color-primary);
  overflow: hidden;
}

.project-hero-image {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-hero-image:hover img {
  transform: scale(1.02);
}

.hero-zoom-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.project-hero-image:hover .hero-zoom-hint {
  opacity: 1;
}

.project-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Project Info Bar */
.project-info-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 0;
}

.project-info-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.project-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.project-breadcrumb a:hover {
  color: var(--color-primary);
}

.project-breadcrumb .sep {
  color: #cbd5e1;
}

.project-breadcrumb span:last-child {
  color: var(--color-primary);
  font-weight: 500;
}

.project-info-bar h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.project-info-meta {
  display: flex;
  gap: 32px;
}

.project-info-meta .meta-item {
  text-align: center;
}

.project-info-meta .meta-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.project-info-meta .meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

@media (max-width: 768px) {
  .project-info-bar h1 {
    font-size: 1.75rem;
  }
  
  .project-info-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-info-meta {
    gap: 24px;
  }
  
  .project-info-meta .meta-item {
    text-align: left;
  }
}

/* Project Content */
.project-content {
  padding: 48px 0 64px;
  background: #f8fafc;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

/* Project Gallery Grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e5e7eb;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.thumb-overlay svg {
  color: white;
}

.gallery-thumb:hover .thumb-overlay {
  opacity: 1;
}

.gallery-thumb.more-photos .more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.more-overlay span:first-child {
  font-size: 1.75rem;
  font-weight: 700;
}

.more-overlay span:last-child {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Project Description */
.project-description {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px;
}

.project-description p {
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

/* Project Sidebar */
.project-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1024px) {
  .project-sidebar {
    position: static;
  }
}

/* Trust Indicators (Project) */
.trust-indicators {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-indicators .trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.trust-indicators .trust-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-indicators .trust-item:first-child {
  padding-top: 0;
}

.trust-indicators .trust-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-indicators .trust-item span {
  font-weight: 500;
  color: #334155;
}

/* Related Projects (Project Detail) */
.related-projects {
  padding: 64px 0;
  background: white;
}

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

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

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

.related-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.related-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.08);
}

.related-image .placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
}

.related-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.related-card:hover .related-overlay {
  opacity: 1;
}

.related-overlay span {
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 8px;
}

.related-info {
  padding: 20px;
}

.related-category {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 8px 0 4px;
}

.related-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* Project Bottom CTA */
.project-bottom-cta {
  background: linear-gradient(135deg, var(--navy-dark, #1e3a5f) 0%, var(--navy, #24476b) 100%);
  padding: 72px 0;
  text-align: center;
  color: white;
}

.project-bottom-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.project-bottom-cta > .container > p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-bottom-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-bottom-cta .btn-primary {
  color: #ffffff;
}

.project-bottom-cta .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.project-bottom-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

@media (max-width: 768px) {
  .project-bottom-cta {
    padding: 56px 0;
  }
  
  .project-bottom-cta h2 {
    font-size: 1.75rem;
  }
  
  .project-bottom-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .project-bottom-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===========================================
   LIGHTBOX
   =========================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav.prev {
    left: 10px;
  }
  
  .lightbox-nav.next {
    right: 10px;
  }
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(85vh - 60px);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 0 8px;
  gap: 16px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────
   ── store ── storefront: shop grid, product detail, cart, order confirm
   Reuses the site's --navy / --gold / --color-accent vars, .container,
   .btn* buttons, .gallery-hero chrome, .loading-spinner, and card shadows.
   ───────────────────────────────────────────────────────────────────────── */

.store-page { background: #fff; color: var(--gray-800, #333); }
.container--narrow { max-width: 760px; }

/* Header cart icon (base.ejs) */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #222;
  transition: color 0.15s;
}
.header-cart:hover { color: var(--gold, var(--color-accent, #c8963e)); }
.header-cart__count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold, var(--color-accent, #c8963e));
  color: var(--navy-dark, #1a1a2e);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.cart-count--bump { animation: cart-bump 0.35s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Shared empty state */
.store-empty {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}
.store-empty h3 { font-size: 1.5rem; color: var(--navy, #1e293b); margin-bottom: 10px; }

.store-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 32px 0 8px;
  transition: color 0.2s;
}
.store-back-link:hover { color: var(--navy, var(--color-primary)); }

/* ── Shop grid ─────────────────────────────────────────────────────────── */
.shop-section { padding: 56px 0 80px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}
.product-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  flex: 1;
}
/* Stretched-link: whole card is clickable, quick-add button sits above it */
.product-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f5f7;
  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.05); }
.product-card__noimg {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2c8d0;
  background: #f4f5f7;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-badge--featured { background: var(--gold, var(--color-accent, #c8963e)); color: var(--navy-dark, #1a1a2e); }
.product-badge--soldout { background: #1e293b; color: #fff; left: auto; right: 12px; }

.product-card__body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy, #1e293b);
  line-height: 1.3;
  margin: 0;
}
.product-card__tagline {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.product-price__from { font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.product-price__now { font-size: 1.15rem; font-weight: 800; color: var(--navy, #1e293b); }
.product-price__was { font-size: 0.95rem; color: #94a3b8; text-decoration: line-through; }

.product-card__add {
  position: relative;
  z-index: 2;
  margin: 0 18px 18px;
  text-transform: none;
  letter-spacing: 0;
}
.product-card__add.is-added { background: #16a34a; border-color: #16a34a; color: #fff; }
.product-card__add:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Product detail ────────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 8px 0 72px;
  align-items: start;
}
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

.product-gallery { position: sticky; top: 24px; }
@media (max-width: 860px) { .product-gallery { position: static; } }
.product-gallery__main {
  aspect-ratio: 1 / 1;
  background: #f4f5f7;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef0f2;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__noimg { border-radius: 14px; }
.product-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #eef0f2;
  background: #f4f5f7;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: var(--gold, var(--color-accent, #c8963e)); }
.product-gallery__thumb:hover { border-color: var(--navy, #94a3b8); }

.product-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark, var(--color-accent, #b8860b));
  margin-bottom: 8px;
}
.product-info__name {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy, #1e293b);
  line-height: 1.15;
  margin: 0 0 10px;
}
.product-info__tagline {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
}
.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.product-info__price .product-price__now { font-size: 1.7rem; }
.product-info__price .product-price__was { font-size: 1.15rem; }

.product-soldout {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.product-variants { margin-bottom: 22px; }
.product-variants__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
}
.product-variants__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-option {
  padding: 10px 18px;
  border: 2px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy, #1e293b);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.variant-option:hover { border-color: var(--navy, #94a3b8); }
.variant-option.is-selected {
  border-color: var(--gold, var(--color-accent, #c8963e));
  background: var(--gold, var(--color-accent, #c8963e));
  color: var(--navy-dark, #1a1a2e);
}
.variant-option[data-soldout] { opacity: 0.55; text-decoration: line-through; }

/* Quantity stepper (product + cart) */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid #dfe3e8;
  border-radius: 8px;
  overflow: hidden;
}
.qty-stepper__btn {
  width: 42px;
  height: 46px;
  border: none;
  background: #f8fafc;
  color: var(--navy, #1e293b);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.qty-stepper__btn:hover:not(:disabled) { background: #eef0f2; }
.qty-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-stepper__input {
  width: 50px;
  height: 46px;
  border: none;
  border-left: 1px solid #eef0f2;
  border-right: 1px solid #eef0f2;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy, #1e293b);
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper--sm .qty-stepper__btn { width: 34px; height: 38px; font-size: 1.1rem; }
.qty-stepper--sm .qty-stepper__input { width: 40px; height: 38px; font-size: 0.95rem; }

.product-buy {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.product-add { text-transform: none; letter-spacing: 0; flex: 1; min-width: 180px; }
.product-add:disabled { opacity: 0.5; cursor: not-allowed; }
.product-add.is-added { background: #16a34a; border-color: #16a34a; color: #fff; }

.product-viewcart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 28px;
}
.product-viewcart:hover { color: var(--navy, var(--color-primary)); }
.product-viewcart__count {
  min-width: 20px;
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  background: #eef0f2;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy, #1e293b);
}

.product-description {
  border-top: 1px solid #eef0f2;
  padding-top: 24px;
}
.product-description h2 {
  font-size: 1.15rem;
  color: var(--navy, #1e293b);
  margin: 0 0 12px;
}

/* ── Cart page ─────────────────────────────────────────────────────────── */
.cart-page { padding-bottom: 80px; }
.cart-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy, #1e293b);
  margin: 8px 0 28px;
}
.cart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: #64748b;
}
.cart-empty {
  text-align: center;
  padding: 70px 20px;
  color: #64748b;
}
.cart-empty svg { color: #cbd2da; margin-bottom: 12px; }
.cart-empty h3 { font-size: 1.5rem; color: var(--navy, #1e293b); margin-bottom: 8px; }
.cart-empty p { margin-bottom: 24px; }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; gap: 28px; } }

.cart-lines { display: flex; flex-direction: column; }
.cart-line {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eef0f2;
}
.cart-line:first-child { padding-top: 0; }
.cart-line__media {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f5f7;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-line__name { font-weight: 700; color: var(--navy, #1e293b); }
.cart-line__variant { font-size: 0.85rem; color: #64748b; }
.cart-line__unit { font-size: 0.85rem; color: #94a3b8; }
.cart-line__remove {
  align-self: flex-start;
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-line__remove:hover { text-decoration: underline; }
.cart-line__total { font-weight: 800; color: var(--navy, #1e293b); white-space: nowrap; }

@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "media info"
      "media qty"
      "total total";
    gap: 6px 14px;
  }
  .cart-line__media { grid-area: media; width: 72px; height: 72px; }
  .cart-line__info { grid-area: info; }
  .cart-line__qty { grid-area: qty; }
  .cart-line__total { grid-area: total; text-align: right; margin-top: 4px; }
}

.cart-summary {
  background: #f8fafc;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
.cart-summary__title {
  font-size: 1.1rem;
  color: var(--navy, #1e293b);
  margin: 0 0 18px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cart-summary__row span:last-child { font-weight: 800; color: var(--navy, #1e293b); }
.cart-summary__note {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 4px 0 18px;
}
.cart-summary__field { margin: 10px 0; }
.cart-summary__ship { display: flex; gap: 8px; }
.cart-summary__input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
}
.cart-summary__input:focus { outline: none; border-color: #94a3b8; }
.cart-summary .btn-block { text-transform: none; letter-spacing: 0; }
.cart-summary__error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.88rem;
}
.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
}
.cart-summary__continue:hover { color: var(--navy, var(--color-primary)); }

/* ── Order confirmation ────────────────────────────────────────────────── */
.checkout-success-page { padding: 64px 0 80px; }
.order-confirm { text-align: center; }
.order-confirm__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
}
.order-confirm__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy, #1e293b);
  margin: 0 0 12px;
}
.order-confirm__lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}
.order-card {
  text-align: left;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}
.order-items { padding: 8px 24px; }
.order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eef0f2;
}
.order-item:last-child { border-bottom: none; }
.order-item__media {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f5f7;
}
.order-item__media img { width: 100%; height: 100%; object-fit: cover; }
.order-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-item__name { font-weight: 700; color: var(--navy, #1e293b); }
.order-item__variant { font-size: 0.85rem; color: #64748b; }
.order-item__qty { font-size: 0.85rem; color: #94a3b8; }
.order-item__total { font-weight: 800; color: var(--navy, #1e293b); white-space: nowrap; }

.order-summary {
  background: #f8fafc;
  border-top: 1px solid #eef0f2;
  padding: 20px 24px;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.98rem;
  color: #475569;
  margin-bottom: 8px;
}
.order-summary__row--total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy, #1e293b);
}
.order-confirm__actions { margin-top: 8px; }

/* Contact page call band: room between its line of text and the call button below it */
.contact-emergency .emergency-content p {
  margin-bottom: 16px;
}
