@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap");

/* =========================================================
   GLOBAL
========================================================= */

:root {
  --red: #e33b25;
  --ink: #17191c;
  --charcoal: #282b2f;
  --surface: #f5f5f4;
  --muted: #686d73;
  --border: #e2e3e5;
  --white: #ffffff;

  --admin-sidebar-width: 250px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--white);
  color: #202226;
  font-family: Barlow, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

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

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

/* =========================================================
   PUBLIC WEBSITE
========================================================= */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   PUBLIC HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 50;

  background: rgba(23, 25, 28, 0.96);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  height: 76px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.logo {
  width: auto;
  height: 42px;

  background: #fff;

  padding: 6px 12px;

  border-radius: 2px;
}

.nav {
  display: flex;

  align-items: center;

  gap: 26px;
}

.nav a {
  color: #eee;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;

  align-items: center;

  gap: 12px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 13px 22px;

  border: 0;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  cursor: pointer;
}

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

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

.btn-outline {
  border: 1px solid var(--red);

  color: var(--red);

  background: transparent;
}

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

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 650px;

  display: flex;

  align-items: flex-end;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22)),
    url("../images/hero-solar.jpg") center/cover no-repeat;

  color: #fff;

  padding: 150px 0 80px;
}

.hero h1 {
  max-width: 850px;

  font-size: clamp(48px, 7vw, 92px);

  line-height: 0.9;
}

.hero h1 span,
.eyebrow {
  color: var(--red);
}

.hero p {
  max-width: 600px;

  color: rgba(255, 255, 255, 0.75);

  font-size: 17px;

  line-height: 1.65;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(34px, 5vw, 52px);

  line-height: 0.96;
}

.section-title span {
  color: var(--red);
}

/* =========================================================
   FEATURE / STATS
========================================================= */

.feature-strip,
.stats {
  background: var(--ink);
  color: #fff;
}

.feature-grid,
.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  padding: 50px 20px;
}

.feature h3 {
  font-family: Barlow;

  font-size: 16px;

  text-transform: none;
}

.feature p,
.stat p {
  color: rgba(255, 255, 255, 0.6);

  font-size: 14px;

  line-height: 1.5;
}

.icon {
  color: var(--red);

  font-size: 28px;
}

/* =========================================================
   PRODUCTS / CARDS
========================================================= */

.product-grid,
.card-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 20px;

  margin-top: 45px;
}

.card {
  background: #fff;

  border: 1px solid var(--border);

  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);

  overflow: hidden;
}

.card-img {
  width: 100%;

  aspect-ratio: 1;

  object-fit: cover;

  transition: 0.3s;
}

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

.card-body {
  padding: 20px;
}

.card h3 {
  font-size: 21px;
}

.card p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.55;
}

.red-link {
  color: var(--red);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* =========================================================
   TWO COLUMN
========================================================= */

.two-col {
  display: grid;

  grid-template-columns: 0.9fr 1.4fr;

  gap: 70px;
}

/* =========================================================
   WHY
========================================================= */

.why-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 40px;
}

.why h3 {
  font-family: Barlow;

  font-size: 17px;

  text-transform: none;
}

.why p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}

/* =========================================================
   STATS
========================================================= */

.stat {
  display: flex;

  gap: 18px;
}

.stat strong {
  display: block;

  color: var(--red);

  font-family: "Barlow Condensed";

  font-size: 42px;
}

.stat small {
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

/* =========================================================
   CTA
========================================================= */

.cta {
  background: var(--red);

  color: #fff;

  padding: 40px 0;
}

.cta-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.cta p {
  margin: 6px 0 0;

  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   PAGE HEADER
========================================================= */

.page-head {
  background: var(--ink);

  color: #fff;

  padding: 145px 0 65px;
}

.page-head h1 {
  font-size: clamp(46px, 6vw, 72px);
}

.page-head p {
  max-width: 650px;

  color: rgba(255, 255, 255, 0.7);

  line-height: 1.6;
}

/* =========================================================
   FORMS
========================================================= */

.form-page {
  min-height: 100vh;

  display: grid;

  grid-template-columns: 1fr 1fr;
}

.form-image {
  background: center/cover no-repeat;
}

.form-side {
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 70px 30px;
}

.form-box {
  width: 100%;

  max-width: 430px;
}

.form-box label {
  display: block;

  margin: 18px 0 7px;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.input,
.textarea,
.select {
  width: 100%;

  border: 1px solid var(--border);

  padding: 13px 14px;

  font: inherit;

  outline: none;

  background: #fff;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--red);
}

.textarea {
  min-height: 130px;

  resize: vertical;
}

/* =========================================================
   TABLE
========================================================= */

.table-wrap {
  overflow: auto;

  border: 1px solid var(--border);
}

table {
  width: 100%;

  border-collapse: collapse;

  background: #fff;
}

th,
td {
  text-align: left;

  padding: 13px 15px;

  border-bottom: 1px solid var(--border);

  font-size: 14px;
}

th {
  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  background: var(--surface);
}

/* =========================================================
   FAQ
========================================================= */

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-q {
  padding: 20px 0;

  font-weight: 700;

  cursor: pointer;
}

.faq-a {
  padding: 0 0 20px;

  color: var(--muted);

  line-height: 1.65;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #0b0b0d;
  color: #b9bdc3;
  font-family: "Barlow", Arial, sans-serif;
}

.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
}
.footer-logo img {
  height: 34px;
  display: block;
}
.footer-brand p {
  margin: 20px 0;
  line-height: 1.6;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #2b2e33;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.footer-social a:hover {
  background: #d9101b;
  border-color: #d9101b;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: #b9bdc3;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #d9101b;
}
.footer-contact li {
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #1f2226;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: #b9bdc3;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #d9101b;
}
.footer-bottom span {
  margin: 0 8px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 50px;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  display: none;
}

/* ============================================================
   ============================================================
   ADMIN PANEL
   ============================================================
============================================================ */

/*
   IMPORTANT

   The admin panel is completely independent from the
   public website layout.

   Sidebar:
       fixed
       250px wide
       left: 0

   Content:
       starts at 250px
       fills remaining screen
*/

/* =========================================================
   ADMIN BODY
========================================================= */

body:has(.admin-layout) {
  margin: 0;
  padding: 0;

  background: var(--surface);

  overflow-x: hidden;
}

/* =========================================================
   ADMIN LAYOUT
========================================================= */

.admin-layout {
  position: relative;

  width: 100%;

  min-height: 100vh;

  margin: 0;
  padding: 0;

  background: var(--surface);
}

/* =========================================================
   ADMIN SIDEBAR
========================================================= */

.admin-side {
  position: fixed;

  top: 0;
  left: 0;
  bottom: 0;

  width: 250px;

  height: 100vh;

  margin: 0;
  padding: 30px 25px;

  background: #17191c;

  color: #fff;

  z-index: 9999;

  overflow-x: hidden;
  overflow-y: auto;

  box-sizing: border-box;
}

/* =========================================================
   ADMIN BRAND
========================================================= */

.admin-brand,
.admin-side h2 {
  display: block;

  margin: 0;

  padding: 0;

  color: #fff;

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-size: 25px;

  font-weight: 700;

  line-height: 1;
}

/* =========================================================
   ADMIN NAV
========================================================= */

.admin-nav {
  display: flex;

  flex-direction: column;

  width: 100%;

  margin: 40px 0 0;
  padding: 0;

  gap: 7px;
}

/* =========================================================
   ADMIN NAV LINKS
========================================================= */

.admin-nav a {
  display: block;

  width: 100%;

  height: auto;

  margin: 0;
  padding: 12px 14px;

  background: transparent;

  border: 0;

  border-radius: 0;

  color: #bcbcbc;

  font-family: Barlow, Arial, sans-serif;

  font-size: 14px;

  font-weight: 500;

  line-height: 1.4;

  text-align: left;

  text-decoration: none;

  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* =========================================================
   ADMIN NAV HOVER
========================================================= */

.admin-nav a:hover {
  background: var(--red);

  color: #fff;
}

/* =========================================================
   ADMIN ACTIVE
========================================================= */

.admin-nav a.active {
  background: var(--red);

  color: #fff;
}

/* =========================================================
   ADMIN MAIN
========================================================= */

.admin-main {
  position: relative;

  display: block;

  width: calc(100% - 250px);

  min-height: 100vh;

  margin: 0 0 0 250px;

  padding: 80px 70px;

  background: var(--surface);

  box-sizing: border-box;
}

/* =========================================================
   ADMIN PAGE
========================================================= */

.admin-page {
  display: block;

  width: 100%;

  max-width: none;

  margin: 0;
  padding: 0;
}

/* =========================================================
   ADMIN EYEBROW
========================================================= */

.admin-main .eyebrow {
  display: block;

  margin: 0 0 12px;

  padding: 0;

  color: var(--red);

  font-family: Barlow, Arial, sans-serif;

  font-size: 12px;

  font-weight: 700;

  line-height: 1.3;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

/* =========================================================
   ADMIN TITLE
========================================================= */

.admin-main h1 {
  margin: 0;
  padding: 0;

  color: var(--ink);

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-size: 60px;

  font-weight: 700;

  line-height: 0.95;

  text-transform: uppercase;
}

/* =========================================================
   ADMIN DASHBOARD GRID
========================================================= */

.dashboard-grid {
  display: grid;

  width: 100%;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 18px;

  margin: 40px 0 0;
  padding: 0;
}

/* =========================================================
   DASHBOARD CARD
========================================================= */

.dashboard-card {
  display: block;

  width: 100%;

  min-width: 0;

  min-height: 155px;

  margin: 0;
  padding: 30px;

  background: #fff;

  border: 1px solid var(--border);

  box-shadow: none;

  overflow: hidden;
}

/* =========================================================
   DASHBOARD NUMBER
========================================================= */

.dashboard-card strong {
  display: block;

  margin: 0;
  padding: 0;

  color: var(--ink);

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-size: 48px;

  font-weight: 700;

  line-height: 1;
}

/* =========================================================
   DASHBOARD LABEL
========================================================= */

.dashboard-card p {
  display: block;

  margin: 22px 0 0;
  padding: 0;

  color: #202226;

  font-family: Barlow, Arial, sans-serif;

  font-size: 16px;

  font-weight: 400;

  line-height: 1.4;
}

/* =========================================================
   ADMIN CONTENT PAGE
========================================================= */

.admin-content {
  width: 100%;

  margin: 0;
  padding: 0;
}

/* =========================================================
   ADMIN PAGE DESCRIPTION
========================================================= */

.admin-description {
  width: 100%;

  max-width: 800px;

  margin: 15px 0 45px;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.6;
}

/* =========================================================
   ADMIN CONTENT CARD
========================================================= */

.admin-content-card {
  width: 100%;

  margin: 0 0 25px;
  padding: 30px;

  background: #fff;

  border: 1px solid var(--border);
}

/* =========================================================
   CONTENT SECTION TITLE
========================================================= */

.admin-content-card h2 {
  margin: 0 0 12px;

  color: var(--red);

  font-family: Barlow, Arial, sans-serif;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}

/* =========================================================
   CONTENT LABEL
========================================================= */

.admin-content-card label {
  display: block;

  margin: 0 0 8px;

  color: var(--muted);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* =========================================================
   CONTENT TEXTAREA
========================================================= */

.admin-content-card textarea {
  display: block;

  width: 100%;

  min-height: 120px;

  margin: 0;

  padding: 15px;

  border: 1px solid var(--border);

  outline: none;

  background: #fff;

  color: #202226;

  font-family: Barlow, Arial, sans-serif;

  font-size: 15px;

  line-height: 1.6;

  resize: vertical;
}

.admin-content-card textarea:focus {
  border-color: var(--red);
}

/* =========================================================
   ADMIN SAVE BUTTON
========================================================= */

.admin-save {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 14px;

  padding: 12px 20px;

  border: 0;

  background: var(--surface);

  color: #4c535a;

  font-family: Barlow, Arial, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  cursor: pointer;
}

.admin-save:hover {
  background: var(--red);

  color: #fff;
}

/* =========================================================
   ADMIN TABLE
========================================================= */

.admin-main .table-wrap {
  width: 100%;

  margin: 30px 0 0;
}

/* =========================================================
   ADMIN FORMS
========================================================= */

.admin-main .form-box {
  width: 100%;

  max-width: none;
}

/* =========================================================
   ADMIN BACK LINK
========================================================= */

.admin-back {
  display: inline-block;

  margin: 0 0 30px;

  color: var(--muted);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.admin-back:hover {
  color: var(--red);
}

/* ============================================================
   ADMIN TABLET
============================================================ */

@media (max-width: 1100px) {
  .admin-main {
    padding: 60px 40px;
  }

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

/* ============================================================
   ADMIN MOBILE
============================================================ */

@media (max-width: 700px) {
  .admin-side {
    position: relative;

    top: auto;
    left: auto;
    bottom: auto;

    width: 100%;

    height: auto;
    min-height: auto;

    padding: 25px 20px;

    overflow: visible;
  }

  .admin-nav {
    margin-top: 25px;

    gap: 4px;
  }

  .admin-main {
    width: 100%;

    min-height: auto;

    margin: 0;

    padding: 40px 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .admin-main h1 {
    font-size: 48px;
  }

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

/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {
  .admin-side {
    padding: 22px 16px;
  }

  .admin-main {
    padding: 35px 16px;
  }

  .admin-main h1 {
    font-size: 42px;
  }

  .dashboard-card {
    min-height: 130px;

    padding: 22px;
  }
}

/* =========================================================
   PUBLIC RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;

    color: #fff;

    background: none;

    border: 0;

    font-size: 22px;
  }

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

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

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

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

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

  .form-image {
    display: none;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .stats-grid,
  .product-grid,
  .card-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 600px;
  }

  .cta-row {
    display: block;
  }

  .cta .btn {
    margin-top: 20px;
  }

  .header-actions .desktop-only {
    display: none;
  }
}
/* =========================================================
   ADMIN LAYOUT
   ========================================================= */

.admin-layout {
  min-height: 100vh;
  width: 100%;
  background: var(--surface);

  display: block;
  padding: 0;
  margin: 0;
}

/* =========================================================
   FIXED SIDEBAR
   ========================================================= */

.admin-side {
  position: fixed;

  top: 0;
  left: 0;
  bottom: 0;

  width: 270px;

  background: var(--ink);
  color: #17191c;
  padding: 28px 26px;

  overflow-y: auto;

  z-index: 1000;
}

/* =========================================================
   ADMIN MAIN
   ========================================================= */

.admin-main {
  margin-left: 270px;

  width: calc(100% - 270px);

  min-height: 100vh;

  padding: 80px 74px;

  background: var(--surface);
}

/* =========================================================
   ADMIN PAGE HEADER
   ========================================================= */

.admin-page-header {
  width: 100%;
  max-width: 1250px;

  margin: 0 auto 42px;
}

.admin-page-header .back-link {
  display: inline-block;

  margin-bottom: 38px;

  color: #5d6670;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-page-header .back-link:hover {
  color: var(--red);
}

.admin-page-header .eyebrow {
  margin-bottom: 12px;
}

.admin-page-header h1 {
  margin: 0;

  font-size: clamp(48px, 5vw, 70px);

  line-height: 0.95;
}

.admin-page-header .page-description {
  max-width: 750px;

  margin: 18px 0 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   SITE CONTENT SECTIONS
   ========================================================= */

.content-sections {
  width: 100%;
  max-width: 1250px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 28px;
}

/* =========================================================
   CONTENT CARD
   ========================================================= */

.content-card {
  width: 100%;

  background: #fff;

  border: 1px solid var(--border);

  padding: 32px;
}

/* Section title */

.content-card h2 {
  margin: 0 0 12px;

  color: var(--red);

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-size: 20px;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

/* Field label */

.content-card label {
  display: block;

  margin-bottom: 14px;

  color: #59616a;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* =========================================================
   TEXTAREA
   ========================================================= */

.content-textarea {
  display: block;

  width: 100%;

  min-height: 130px;

  padding: 17px 18px;

  border: 1px solid var(--border);

  border-radius: 0;

  background: #fff;

  color: var(--ink);

  font-family: Barlow, Arial, sans-serif;

  font-size: 15px;

  line-height: 1.6;

  resize: vertical;

  outline: none;
}

.content-textarea:focus {
  border-color: var(--red);
}

/* =========================================================
   SAVE BUTTON
   ========================================================= */

.save-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 14px;

  padding: 12px 22px;

  border: 0;

  background: var(--ink);

  color: #fff;

  font-family: Barlow, Arial, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  cursor: pointer;

  transition: 0.2s ease;
}

.save-btn:hover {
  background: var(--red);
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-grid {
  width: 100%;
  max-width: 1250px;

  margin: 30px auto 0;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;
}

.dashboard-card {
  min-width: 0;

  background: #fff;

  border: 1px solid var(--border);

  padding: 32px;
}

.dashboard-card strong {
  display: block;

  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;

  font-size: 48px;

  line-height: 1;

  margin-bottom: 22px;
}

.dashboard-card p {
  margin: 0;

  font-size: 16px;

  color: var(--ink);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-side h2 {
  margin: 0;

  font-size: 25px;
}

.admin-nav {
  margin-top: 38px;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.admin-nav a {
  display: block;

  padding: 13px 14px;

  color: #bfc1c4;

  font-size: 13px;

  font-weight: 500;

  transition: 0.2s ease;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.05);

  color: #fff;
}

.admin-nav a.active {
  background: var(--red);

  color: #fff;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {
  .admin-side {
    width: 230px;
  }

  .admin-main {
    margin-left: 230px;

    width: calc(100% - 230px);

    padding: 60px 40px;
  }

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

@media (max-width: 700px) {
  .admin-side {
    position: relative;

    width: 100%;

    height: auto;

    min-height: auto;
  }

  .admin-main {
    margin-left: 0;

    width: 100%;

    padding: 40px 20px;
  }

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

  .content-card {
    padding: 22px;
  }
}
/* ===== Site Content page fixes ===== */

/* Remove the empty space on the left: align content to the left edge */
.admin-page-header,
.content-sections,
.dashboard-grid {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* Textarea and Save button side by side */
.content-form + .content-form {
  margin-top: 26px;
}

.content-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.content-row .content-textarea {
  flex: 1;
}

.content-row .save-btn {
  margin-top: 0;
  align-self: center;
  background: var(--surface);
  color: #9aa0a6;
  padding: 14px 24px;
}

.content-row .save-btn:hover {
  background: var(--red);
  color: #fff;
}

@media (max-width: 700px) {
  .content-row {
    flex-direction: column;
  }
  .content-row .save-btn {
    align-self: flex-start;
  }
}
.sidebar-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 14px;
}

.sidebar-dropdown.open > .sidebar-submenu {
  display: block;
}

.sidebar-submenu a {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 8px;
  /* font-size: 15px; */
}

.sidebar-submenu a.active {
  background: #fff;
  color: #5b5bd6;
  font-weight: 600;
}

.products-main {
  max-width: none;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 42px;
}
.products-header h1 {
  margin-bottom: 12px;
}
.add-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.add-product-btn:hover {
  background: #c92318;
  color: #fff;
  transform: translateY(-1px);
}
.add-product-btn span {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}
.product-filter-card {
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  background: #fff;
}
.filter-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(170px, 1fr)
    minmax(120px, 0.7fr) auto;
  align-items: end;
  gap: 16px;
}
.filter-item label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter-item input,
.filter-item select {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--ink);
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap input {
  padding-left: 38px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 2;
  color: #777;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-53%);
}
.filter-buttons {
  display: flex;
  gap: 8px;
}
.filter-search-btn,
.filter-reset-btn {
  height: 43px;
  padding: 0 18px;
  border: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.filter-search-btn {
  background: var(--ink);
  color: #fff;
}
.filter-search-btn:hover {
  background: var(--red);
}
.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  background: #f2f2f2;
  color: var(--ink);
}
.products-table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--border);
}
.table-header h2 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.products-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.products-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}
.products-table thead th {
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: #f7f7f7;
  color: #5c5c5c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.products-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
  color: var(--ink);
  font-size: 13px;
}
.products-table tbody tr:last-child td {
  border-bottom: 0;
}
.products-table tbody tr:hover {
  background: #fcfcfc;
}
.number-col,
.number-cell {
  width: 45px;
}
.image-col {
  width: 100px;
}
.order-col {
  width: 70px;
}
.action-col {
  width: 150px;
}
.number-cell {
  color: #888 !important;
  font-size: 11px !important;
}
.product-image {
  width: 70px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #f5f5f5;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.no-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-product-image span {
  color: #aaa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.product-name {
  max-width: 260px;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.product-short {
  max-width: 300px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-text,
.subcategory-text {
  font-size: 12px;
}
.order-cell {
  color: #777 !important;
  font-size: 12px !important;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #555;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-badge.active span {
  background: #20a35a;
}
.status-badge.active {
  color: #178047;
}
.status-badge.inactive span {
  background: #aaa;
}
.status-badge.inactive {
  color: #888;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-actions a {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.product-actions .edit-action:hover {
  color: var(--red);
}
.product-actions .delete-action {
  color: #999;
}
.product-actions .delete-action:hover {
  color: #d62e23;
}
.empty-products {
  padding: 70px 30px;
  text-align: center;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border: 1px solid #ddd;
  color: #999;
  font-size: 25px;
}
.empty-products h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  text-transform: uppercase;
}
.empty-products p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}
.admin-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
}
.admin-message span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.success-message {
  border-left: 3px solid #20a35a;
}
.success-message span {
  background: #20a35a;
  color: #fff;
}
.error-message {
  border-left: 3px solid var(--red);
}
.error-message span {
  background: var(--red);
  color: #fff;
}
.product-form-card {
  max-width: 1050px;
  border: 1px solid var(--border);
  background: #fff;
}
.product-form-card form {
  margin: 0;
}
.form-section {
  padding: 30px;
  border-bottom: 1px solid var(--border);
}
.form-section-title {
  margin-bottom: 25px;
}
.form-section-title h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.full-field {
  grid-column: 1 / -1;
}
.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.form-field label span {
  color: var(--red);
}
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease;
}
.form-field input,
.form-field select {
  height: 45px;
  padding: 0 13px;
}
.form-field textarea {
  min-height: 110px;
  padding: 13px;
  line-height: 1.6;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
}
.price-input {
  position: relative;
}
.price-input span {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #777;
  transform: translateY(-50%);
}
.price-input input {
  padding-left: 30px;
}
.image-upload-area {
  width: 100%;
}
.existing-product-image {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  background: #fafafa;
}
.existing-product-image img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border: 1px solid #ddd;
}
.existing-product-image strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.existing-product-image small {
  color: var(--muted);
  font-size: 11px;
}
.upload-box {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-box:hover {
  border-color: var(--ink);
  background: #f6f6f6;
}
.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  color: #777;
  font-size: 20px;
}
.upload-box strong {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.upload-box span {
  color: var(--muted);
  font-size: 11px;
}
#product_image {
  display: none;
}
#selected-file {
  margin-top: 10px;
  color: #178047;
  font-size: 11px;
  font-weight: 700;
}
.status-section {
  padding-bottom: 25px;
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}
.switch-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}
.switch-row small {
  color: var(--muted);
  font-size: 11px;
}
.switch {
  position: relative;
  width: 42px;
  height: 23px;
  flex: 0 0 auto;
}
.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}
.slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #ccc;
  cursor: pointer;
  transition: 0.2s;
}
.slider:before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: 0.2s;
}
.switch input:checked + .slider {
  background: var(--red);
}
.switch input:checked + .slider:before {
  transform: translateX(19px);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px 30px;
  background: #fafafa;
}
.cancel-btn,
.save-product-btn {
  min-height: 43px;
  padding: 0 22px;
  border: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.cancel-btn {
  display: inline-flex;
  align-items: center;
  color: #555;
  background: #eee;
}
.save-product-btn {
  color: #fff;
  background: var(--red);
}
.save-product-btn:hover {
  background: #c92318;
}
@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-item {
    grid-column: 1 / -1;
  }
  .filter-buttons {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .products-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .search-item,
  .filter-buttons,
  .full-field {
    grid-column: auto;
  }
  .product-filter-card {
    padding: 18px;
  }
  .form-section {
    padding: 22px;
  }
  .form-actions {
    padding: 18px 22px;
  }
}
/* =========================================================
   PRODUCTS ADMIN PAGE
   ========================================================= */

.products-main {
  min-height: 100vh;
  background: #f6f6f5;
  padding: 70px 70px 80px;
  box-sizing: border-box;
  color: #17191c;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.products-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.products-header.form-header {
  margin-bottom: 38px;
}

.back-link {
  display: inline-block;
  margin-bottom: 5px;
  color: #111820;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.back-link:hover {
  color: #ed3827;
}

.eyebrow {
  margin: 0 0 18px;
  color: #ef3828;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.products-header h1 {
  margin: 0;
  font-size: 54px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.8px;
  color: #191b1e;
}

.page-description {
  margin: 18px 0 0;
  color: #27313a;
  font-size: 17px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Add button
   --------------------------------------------------------- */

.add-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-width: 160px;
  height: 48px;
  padding: 0 23px;

  background: #ed3828;
  color: #fff;

  border: 1px solid #ed3828;
  text-decoration: none;

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;

  transition: all 0.2s ease;
  box-sizing: border-box;
}

.add-product-btn span {
  font-size: 19px;
  line-height: 1;
}

.add-product-btn:hover {
  background: #d92d20;
  border-color: #d92d20;
  color: #fff;
}

/* ---------------------------------------------------------
   Messages
   --------------------------------------------------------- */

.admin-message {
  width: 100%;
  max-width: 1100px;
  margin: -20px auto 25px;

  padding: 14px 18px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 14px;
}

.success-message {
  color: #176b42;
  background: #eaf8f0;
  border: 1px solid #c8ead7;
}

.error-message {
  color: #a5251b;
  background: #fff0ee;
  border: 1px solid #f3c6c1;
}

.admin-message > span {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-weight: 800;
}

/* ---------------------------------------------------------
   Filter Card
   --------------------------------------------------------- */

.product-filter-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 28px;

  padding: 28px 26px;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid #dedede;
}

.filter-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(150px, 1fr)
    minmax(170px, 1fr)
    minmax(120px, 0.8fr)
    auto;

  align-items: end;
  gap: 16px;
}

.filter-item label {
  display: block;
  margin-bottom: 9px;

  color: #111820;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  color: #65717c;
  font-size: 18px;
  pointer-events: none;
}

.search-input-wrap input,
.filter-item select {
  width: 100%;
  height: 46px;

  padding: 0 13px;
  box-sizing: border-box;

  border: 1px solid #d7d9dc;
  background: #fff;

  color: #17202a;
  font-size: 14px;

  outline: none;
  border-radius: 0;
}

.search-input-wrap input {
  padding-left: 39px;
}

.search-input-wrap input:focus,
.filter-item select:focus {
  border-color: #ed3828;
}

.filter-item select {
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-search-btn {
  height: 46px;
  padding: 0 24px;

  border: 1px solid #15191d;
  background: #15191d;
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;

  cursor: pointer;
}

.filter-search-btn:hover {
  background: #ed3828;
  border-color: #ed3828;
}

.filter-reset-btn {
  height: 46px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;

  color: #555;
  text-decoration: none;

  font-size: 12px;
}

.filter-reset-btn:hover {
  color: #ed3828;
}

/* ---------------------------------------------------------
   Product Table Card
   --------------------------------------------------------- */

.products-table-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  background: #fff;
  border: 1px solid #dedede;
}

.table-header {
  padding: 24px 26px 20px;
  border-bottom: 1px solid #e1e1e1;
}

.table-header h2 {
  margin: 0 0 5px;

  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.table-header p {
  margin: 0;
  color: #68717a;
  font-size: 13px;
}

.products-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.products-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.products-table th {
  height: 49px;
  padding: 0 13px;

  background: #fafafa;
  border-bottom: 1px solid #dedede;

  color: #30363c;

  font-size: 9px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.products-table td {
  padding: 15px 13px;
  border-bottom: 1px solid #ececec;

  vertical-align: middle;
  font-size: 13px;
  color: #252a2f;
}

.products-table tbody tr:hover {
  background: #fcfcfc;
}

.products-table tbody tr:last-child td {
  border-bottom: 0;
}

.number-col,
.number-cell {
  width: 45px;
  text-align: center !important;
}

.image-col {
  width: 75px;
}

.order-col {
  width: 60px;
}

.action-col {
  width: 120px;
}

/* ---------------------------------------------------------
   Product image
   --------------------------------------------------------- */

.product-image {
  width: 52px;
  height: 52px;

  overflow: hidden;
  background: #f1f1f1;
  border: 1px solid #dedede;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-product-image {
  background: #f3f3f3;
}

.no-product-image span {
  color: #999;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ---------------------------------------------------------
   Product text
   --------------------------------------------------------- */

.product-name {
  color: #16191d;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-short {
  max-width: 220px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #7b838b;
  font-size: 11px;
}

.category-text,
.subcategory-text {
  color: #444b52;
  font-size: 12px;
}

.order-cell {
  color: #555;
  font-weight: 600;
}

/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 9px;

  text-decoration: none;

  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-badge.active {
  color: #167046;
  background: #e9f7ef;
}

.status-badge.active span {
  background: #23a866;
}

.status-badge.inactive {
  color: #777;
  background: #eeeeee;
}

.status-badge.inactive span {
  background: #999;
}

/* ---------------------------------------------------------
   Actions
   --------------------------------------------------------- */

.product-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.product-actions a {
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.edit-action {
  color: #17202a;
}

.edit-action:hover {
  color: #ed3828;
}

.delete-action {
  color: #c52e24;
}

.delete-action:hover {
  color: #9e1e16;
}

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.empty-products {
  padding: 75px 20px;
  text-align: center;
}

.empty-icon {
  width: 48px;
  height: 48px;

  margin: 0 auto 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f0f0f0;
  color: #777;

  font-size: 25px;
}

.empty-products h3 {
  margin: 0 0 8px;

  font-size: 20px;
  text-transform: uppercase;
}

.empty-products p {
  margin: 0 0 22px;

  color: #777;
  font-size: 13px;
}

.empty-products .add-product-btn {
  display: inline-flex;
}

/* =========================================================
   PRODUCT FORM
   ========================================================= */

.product-form-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  background: #fff;
  border: 1px solid #dedede;
}

.product-form-card form {
  width: 100%;
}

.form-section {
  padding: 30px 32px;
  border-bottom: 1px solid #e2e2e2;
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section-title {
  margin-bottom: 25px;
}

.form-section-title h2 {
  margin: 0 0 6px;

  color: #191b1e;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-section-title p {
  margin: 0;
  color: #747b82;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 8px;

  color: #22272c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-field label span {
  color: #ed3828;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid #d7d9dc;
  background: #fff;

  color: #171b1f;

  font-family: inherit;
  font-size: 14px;

  border-radius: 0;
  outline: none;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field select {
  height: 47px;
  padding: 0 13px;
}

.form-field textarea {
  padding: 13px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ed3828;
}

.price-input {
  position: relative;
}

.price-input span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);

  color: #777;
  font-size: 14px;
}

.price-input input {
  padding-left: 32px !important;
}

/* ---------------------------------------------------------
   Image upload
   --------------------------------------------------------- */

.image-upload-area {
  width: 100%;
}

.existing-product-image {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 18px;
  padding: 14px;

  background: #f8f8f8;
  border: 1px solid #e2e2e2;
}

.existing-product-image img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.existing-product-image strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.existing-product-image small {
  color: #777;
  font-size: 12px;
}

.upload-box {
  min-height: 155px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #fafafa;
  border: 2px dashed #d4d4d4;

  cursor: pointer;
  text-align: center;

  transition: 0.2s ease;
}

.upload-box:hover {
  border-color: #ed3828;
  background: #fff9f8;
}

.upload-icon {
  margin-bottom: 8px;

  color: #ed3828;
  font-size: 27px;
}

.upload-box strong {
  color: #252a2f;
  font-size: 13px;
  margin-bottom: 6px;
}

.upload-box span {
  color: #8a8f94;
  font-size: 11px;
}

#product_image {
  display: none;
}

#selected-file {
  margin-top: 10px;
  color: #555;
  font-size: 12px;
}

/* ---------------------------------------------------------
   Visibility
   --------------------------------------------------------- */

.status-section {
  background: #fcfcfc;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.switch-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.switch-row small {
  display: block;
  color: #777;
  font-size: 12px;
}

.switch {
  position: relative;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;

  background: #c7c7c7;
  border-radius: 30px;

  cursor: pointer;
  transition: 0.2s;
}

.slider:before {
  content: "";

  position: absolute;
  width: 19px;
  height: 19px;

  left: 3px;
  top: 3px;

  background: #fff;
  border-radius: 50%;

  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #ed3828;
}

.switch input:checked + .slider:before {
  transform: translateX(21px);
}

/* ---------------------------------------------------------
   Form actions
   --------------------------------------------------------- */

.form-actions {
  padding: 23px 32px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;

  background: #fafafa;
  border-top: 1px solid #e2e2e2;
}

.cancel-btn {
  height: 45px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #444;
  text-decoration: none;

  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.cancel-btn:hover {
  color: #ed3828;
}

.save-product-btn {
  height: 45px;
  padding: 0 25px;

  border: 1px solid #ed3828;
  background: #ed3828;
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;

  cursor: pointer;
}

.save-product-btn:hover {
  background: #d92d20;
  border-color: #d92d20;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .products-main {
    padding: 55px 40px 70px;
  }

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

  .search-item {
    grid-column: 1 / -1;
  }

  .filter-buttons {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .products-main {
    padding: 35px 20px 50px;
  }

  .products-header {
    display: block;
    margin-bottom: 32px;
  }

  .products-header h1 {
    font-size: 40px;
  }

  .products-header .add-product-btn {
    margin-top: 25px;
  }

  .product-filter-card {
    padding: 20px;
  }

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

  .search-item,
  .filter-buttons {
    grid-column: auto;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

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

  .full-field {
    grid-column: auto;
  }

  .form-section {
    padding: 24px 20px;
  }

  .form-actions {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .products-main {
    padding: 25px 14px 40px;
  }

  .products-header h1 {
    font-size: 34px;
  }

  .page-description {
    font-size: 14px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search-btn,
  .filter-reset-btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cancel-btn,
  .save-product-btn {
    width: 100%;
  }
}
/* =========================================
   PRODUCT FORM PAGE
========================================= */

.products-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  /* padding: 60px 40px 80px; */
  box-sizing: border-box;
}

/* Header

.form-header {
  margin-bottom: 40px;
}

.form-header .products-header-content {
  width: 100%;
}

.form-header h1 {
  margin: 8px 0 12px;
} */

/* Form card */

.product-form-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e1e1e1;
  box-sizing: border-box;
}

/* Sections */

.form-section {
  padding: 38px 40px;
  border-bottom: 1px solid #e5e5e5;
}

.form-section:last-child {
  border-bottom: 0;
}

/* Section title */

.form-section-title {
  margin-bottom: 28px;
}

.form-section-title h2 {
  margin: 0 0 7px;
  font-size: 22px;
  font-weight: 700;
  color: #17191c;
  text-transform: uppercase;
}

.form-section-title p {
  margin: 0;
  color: #7a7f85;
  font-size: 14px;
}

/* Form grid */

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

.full-field {
  grid-column: 1 / -1;
}

/* Form field */

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #17191c;
}

.form-field label span {
  color: #ef3828;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #d7d9dc;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ef3828;
}

/* Price */

.price-input {
  position: relative;
}

.price-input span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 15px;
}

.price-input input {
  padding-left: 35px;
}

/* Description fields */

.form-section > .form-field + .form-field {
  margin-top: 24px;
}

/* Image */

.image-upload-area {
  width: 100%;
}

.existing-product-image {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
}

.existing-product-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.existing-product-image strong {
  display: block;
  margin-bottom: 5px;
}

.existing-product-image small {
  color: #777;
}

.upload-box {
  min-height: 170px;
  border: 2px dashed #d5d5d5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.upload-box:hover {
  border-color: #ef3828;
  background: #fffafa;
}

.upload-icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: #ef3828;
}

.upload-box strong {
  font-size: 15px;
  margin-bottom: 7px;
}

.upload-box span {
  color: #888;
  font-size: 13px;
}

#product_image {
  display: none;
}

#selected-file {
  margin-top: 12px;
  color: #555;
  font-size: 13px;
}

/* Visibility */

.status-section {
  background: #fafafa;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.switch-row strong {
  display: block;
  margin-bottom: 4px;
}

.switch-row small {
  color: #777;
}

/* Switch */

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #ef3828;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* Form buttons */

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 25px 40px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.cancel-btn,
.save-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.cancel-btn {
  background: #f0f0f0;
  color: #222;
}

.save-product-btn {
  background: #ef3828;
  color: #fff;
}

.save-product-btn:hover {
  background: #d92d20;
}

/* Error */

.error-message {
  margin-bottom: 25px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .products-page {
    padding: 40px 25px 60px;
  }

  .form-section {
    padding: 30px 25px;
  }

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

  .full-field {
    grid-column: auto;
  }

  .form-actions {
    padding: 20px 25px;
  }
}

@media (max-width: 600px) {
  .products-page {
    padding: 30px 15px 50px;
  }

  .form-section {
    padding: 25px 18px;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cancel-btn,
  .save-product-btn {
    width: 100%;
  }
  /* ===== PORTFOLIO PAGE LAYOUT OVERRIDES ===== */
  main.portfolio-page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #17191c;
  }
  .portfolio-page .portfolio-container {
    width: calc(100% - 64px) !important;
    max-width: 1200px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .portfolio-page .portfolio-hero {
    display: block !important;
    width: 100% !important;
    padding: 76px 0 52px !important;
    background: #fff !important;
  }
  .portfolio-page .portfolio-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(40px, 4.5vw, 60px) !important;
    line-height: 1.12 !important;
    font-weight: 750;
    letter-spacing: -1.8px;
  }
  .portfolio-page .portfolio-hero h1 span,
  .portfolio-page .portfolio-cta h2 span {
    color: #218653;
  }
  .portfolio-page .portfolio-intro {
    max-width: 700px;
    margin-top: 20px;
    color: #686e73;
    font-size: 16px !important;
    line-height: 1.8;
  }
  .portfolio-page .portfolio-section {
    display: block !important;
    width: 100% !important;
    padding: 25px 0 85px !important;
    background: #fff;
  }
  .portfolio-page .portfolio-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px;
    margin: 0 0 32px;
  }
  .portfolio-page .portfolio-filter {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid #e5e7e9;
    border-radius: 5px;
    background: #fff;
    color: #464b50;
    font-size: 13px;
    text-decoration: none;
  }
  .portfolio-page .portfolio-filter.active {
    border-color: #218653;
    background: #218653;
    color: #fff;
  }
  .portfolio-page .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 28px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .portfolio-page .portfolio-grid > .portfolio-card {
    display: flex !important;
    position: relative;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e7e9e8;
    border-radius: 7px;
    background: #fff;
  }
  .portfolio-page .portfolio-card-image {
    position: relative;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .portfolio-page .portfolio-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
  }
  .portfolio-page .portfolio-card-content {
    display: flex !important;
    min-height: 230px;
    flex: 1;
    flex-direction: column !important;
    padding: 22px;
  }
  .portfolio-page .portfolio-card-content h2 {
    margin: 0 0 12px;
    font-size: 19px !important;
    line-height: 1.45;
  }
  .portfolio-page .portfolio-card-description {
    margin: 0 0 20px;
    color: #686e73;
    font-size: 13px !important;
    line-height: 1.8;
  }
  .portfolio-page .portfolio-card-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eee;
    color: #686e73;
    font-size: 12px;
  }
  .portfolio-page .portfolio-cta {
    display: block !important;
    width: 100% !important;
    padding: 70px 20px !important;
    background: #f5f7f5 !important;
    text-align: center;
  }
  .portfolio-page .portfolio-cta-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 5px;
    background: #218653;
    color: #fff !important;
    text-decoration: none !important;
  }
  @media (max-width: 900px) {
    .portfolio-page .portfolio-container {
      width: calc(100% - 40px) !important;
    }
    .portfolio-page .portfolio-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 22px !important;
    }
  }
  @media (max-width: 600px) {
    .portfolio-page .portfolio-container {
      width: calc(100% - 32px) !important;
    }
    .portfolio-page .portfolio-hero {
      padding: 45px 0 30px !important;
    }
    .portfolio-page .portfolio-hero h1 {
      font-size: 36px !important;
    }
    .portfolio-page .portfolio-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 20px !important;
    }
    .portfolio-page .portfolio-card-content {
      min-height: 0;
    }
  }
}
/* ---- Add to the end of assets/css/site.css ---- */

/* Filter chips */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.blog-chip {
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-chip:hover {
  border-color: var(--red, #c8102e);
  color: var(--red, #c8102e);
}

.blog-chip.active {
  background: var(--red, #c8102e);
  border-color: var(--red, #c8102e);
  color: #fff;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--red, #c8102e);
}

/* Single post */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.blog-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red, #c8102e);
  font-size: 13px;
}

.post-wrap {
  max-width: 800px;
}

.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
}

.post-lead {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.post-body h3 {
  margin: 24px 0 8px;
}

.post-body p,
.post-body li {
  line-height: 1.7;
}

.post-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

/* Book your meeting banner */
.cta-band {
  text-align: center;
  padding: 50px 20px;
  border-radius: 14px;
  background: #f6f6f6;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 20px;
  color: #666;
}

@media (max-width: 900px) {
  .blog-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .blog-grid,
  .card-grid {
    grid-template-columns: 1fr !important;
  }
}
