/* ========== Base ========== */

:root {
  --primary: #9c4b15;       /* brown from logo */
  --primary-dark: #7a370b;
  --accent: #e45b10;        /* orange from logo */
  --bg-light: #f4f5f7;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.12);
  --max-width: 1180px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
    /*min-height: 100%;*/
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
    /*min-height: 100%;*/
}

/* Utility */

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

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

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

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav-logo-text strong {
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.nav-logo-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 10px 26px rgba(156, 75, 21, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(156, 75, 21, 0.55);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(248, 250, 252, 0.9);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open .nav-links,
  .nav.open .nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 12px;
      font-size: 16px;
      padding-left: 8px;
      padding-top: 2px;
      background-color: black;
  }
  .mobile-nav{
      margin-top: -19px;
  }
  header {
    border-bottom-width: 0;
  }

  .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 10px;
  }
}

/* ========== Hero (Home) ========== */

.hero {
  background: radial-gradient(circle at top left, #fef3c7, transparent 55%),
    radial-gradient(circle at top right, #fee2e2, transparent 55%);
  padding: 40px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

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

.hero-kicker {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  color: var(--text-muted);
}

.hero-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
}

.hero-title {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 530px;
  margin-bottom: 20px;
}

.hero-search {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-search input {
  border: none;
  flex: 1;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.8rem;
}

.hero-stat {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-stat strong {
  display: block;
  font-size: 1rem;
}

/* Hero right card */

.hero-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
}

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

.hero-card-header h3 {
  font-size: 0.9rem;
}

.hero-card-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-soft {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.hero-list {
  margin-top: 8px;
}

.hero-list-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.hero-list-item:last-child {
  border-bottom: none;
}

.hero-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-floating {
  position: absolute;
  right: -8px;
  bottom: -12px;
  background: #111827;
  color: #f9fafb;
  border-radius: 16px;
  padding: 10px 12px;
  width: 220px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  font-size: 0.72rem;
}

.hero-floating h4 {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* ========== Sections & Cards ========== */

section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 26px;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  font-size: 0.85rem;
}

.card h3 {
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card ul {
  margin-left: 18px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Brand chips */

.brand-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  align-items: center;
}

.brand-chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed #d1d5db;
  background: #ffffff;
}

/* ========== Tables / Browsing ========== */

.table-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.table-header {
  padding: 10px 14px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.table-header span {
  color: #9ca3af;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: #6b7280;
}

tr:nth-child(even) td {
  background: #f9fafb;
}

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid transparent;
}

.badge-green {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.badge-amber {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

/* Manufacturer grid */

.manu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 960px) {
  .manu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .manu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.manu-card {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 10px;
  font-size: 0.82rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manu-card strong {
  font-size: 0.88rem;
}

.manu-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Forms */

.form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  font-size: 0.86rem;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.78rem;
  color: #4b5563;
}

input,
textarea,
select {
  border-radius: 9px;
  border: 1px solid #d1d5db;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(156, 75, 21, 0.5);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 10px;
}

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

@media (max-width: 720px) {
  .form-row {
    flex-direction: column;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Contact / dark section */

.section-dark {
  background: #111827;
  color: #f9fafb;
}

.section-dark .section-title {
  color: #f9fafb;
}

.section-dark .section-subtitle {
  color: #9ca3af;
}

/* Repair cards */

.repair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

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

/* Footer */

footer {
  background: #020617;
  color: var(--white);
  padding: 14px 0 0;
  font-size: 0.78rem;
  border-top: 1px solid #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-icon a {
    color: #9c4b15;
    border: 1px solid #9c4b15;
}

.footer-icon a:hover {
    background-color: #9c4b15;
    color: #fff;
}
.footer-links + ul a.active,
.footer-links a.active,
.footer-links li a.active {
    color: #9c4b15 !important;
    font-weight: 600;
}
/* Footer Base */
.site-footer {
    font-size: 14px;
}

/* Logo */
.footer-logo img {
    height: 45px;
}

/* Headings */
.site-footer h5 {
    font-weight: 600;
    color: #fff;
}

/* Links */
/*.footer-menu a,*/
/*.footer-bottom a {*/
/*    color: var(--text-muted);*/
/*    text-decoration: none;*/
/*}*/

.footer-menu a:hover,
.footer-menu a.active {
    color: #9c4b15;
    font-weight: 600;
}

/* Social Icons */
.footer-icon a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #9c4b15;
    color: #9c4b15;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer-icon a:hover {
    background-color: #9c4b15;
    color: #fff;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #9c4b15;
    color: #fff;
    padding: 16px 0;
}

/*.footer-bottom a {*/
/*    color: #fff;*/
/*    font-weight: 400;*/
/*}*/
/*.footer-links {*/
/*    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
/*    font-weight: 500;*/
/*}*/

/*.footer-links a {*/
/*  color: #9ca3af;*/
/*}*/

/*.footer-links a:hover {*/
/*  color: #e5e7eb;*/
/*}*/

/* My Custom style begins */

/* product-category-dropdown begin */
.dropbtn {
    /*background-color: #04AA6D;*/
    color: var(--text-muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    list-style: none;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    /*z-index: 1;*/
}

.dropdown-content li a {
    color: #9c4b15;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content li a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

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

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 1px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid\9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.dropdown:hover > .dropbtn .caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
}

.dropdown-content.show {
    display: block;
}

/* Mobile open */
@media (max-width: 767px) {
    .dropdown-content.show {
        display: block;
        position: static;
    }
}
@media (max-width: 768px) {
    .dropdown-submenu > .dropdown-menu {
        position: relative !important;
        left: 0 !important;
        top: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
    }
}
.dropdown-content li,
.dropdown-menu li {
    list-style: none !important;
}
.dropdown-submenu > a i {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    transition: transform 0.25s ease;
}
.dropdown-submenu:hover > a i {
    transform: rotate(270deg);
}

.dropdown-toggle::after {
    display: none !important;
}
/* product-category-dropdown ends */

/* Category filter style begins */
.category-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.category-filter span {
    font-weight: 500;
    color: #9c4b15;
    font-size: 15px;
}

.category-filter{
    /*border: 1px solid #6b7280;*/
    padding: 10px;
    border-radius: 10px;
    list-style: none;
}

/* Category filter style ends */

/* Product Card begins */
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure the content is spaced properly */
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    /*background: #f2f2f2;*/
}

/* Badge */
.badge {
    position: absolute;
    /*top: 15px;*/
    /*left: 15px;*/
    background: #9c4b15;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Text */
.product-card .info {
    padding: 10px;
    flex-grow: 1;  /* Ensures that the .info section grows to take the available space */
}

.product-card small {
    color: #9c4b15;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card h4 {
    margin-top: 6px;
    font-size: 1.1rem;
    color: #222;
}

#products-grid a{
    text-decoration: none;
    color: inherit;
    flex: 0 0 30%;
}

/* Product Card ends */

/*pagination begins */
.pagination-container {
    text-align: center;
    margin-top: 30px; /* Space above pagination */
}

.pagination {
    display: inline-flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.pagination li {
    margin: 0 5px;
}

/*pagination begins */

/* add custom style of footer to stick to bottom on everypage */
html, body {
    height: 100%;
    margin: 0; /* Remove default margin */
}

/* Flexbox layout for body */
body {
    display: flex;
    flex-direction: column; /* Stack header, main content, footer vertically */
    min-height: 100vh; /* Ensure body fills the viewport */
}

/* Ensure the main content takes the remaining space */
main {
    flex: 1;
}
.footer-links-wrapper {
    display: flex;
    gap: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}
/*@media (max-width: 768px) {*/
/*    .footer-links-wrapper {*/
/*        justify-content: flex-start;*/
/*        margin-left: 0;*/
/*        margin-right: 0;*/
/*    }*/

/*    .footer-links {*/
/*        text-align: left;*/
/*    }*/
/*}*/
@media (max-width: 768px) {
    .footer-links-wrapper {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .footer-links-wrapper {
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }

    /*.footer-links {*/
    /*    text-align: center;*/
    /*}*/
}
/* My Custom style ends */
