/* ============================================================
   Main Styles (Non‑Media Queries)
   ============================================================ */

/* Navbar Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.brwcat {
  margin-bottom: 40px;
}

.brw {
  font-weight: bold;
  font-size: 40px;
}

.cat {
  font-weight: medium;
  font-size: 30px;
}

.top-bar {
  height: 33px;
  background-color: #003366;
}

/* .navbar {
  font-family: manrope-light, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f2f2;
  padding: 10px 20px;
} */

.navbar .logo {
  display: flex;
  align-items: center;
  /* padding-left: 36px; */
  margin-right: 35px;
}

.navbar .logo img {
  width: 123px;
  height: 43px;
}

.navbar .search {
  flex-grow: 1;
  max-width: 600px;
  margin: 0 20px;
}

.navbar .search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.navbar .nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.navbar .nav-links {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #007BFF;
}

.navbar .auth {
  background-color: #000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  /* margin-right: 9px; */
}

.navbar .auth:hover {
  background-color: #444;
}

.navbar .menu-toggle {
  display: none;
}

/* Products Section */
.product-display {
  font-family: 'Inter', sans-serif;
  margin: 30px auto;
  max-width: 1200px;
  padding: 20px;
}

.product-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  width: 225px;
  height: auto;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.product-card img {
  width: 224px;
  height: 224px;
  border-radius: 8px;
  object-fit: cover;
}

.product-card h4 {
  margin: 15px 0;
  text-align: left;
}

.product-card p {
  font-size: 16px;
  font-weight: 500;
  color: blue;
  margin: 0;
  text-align: left;
}

.product-card .bt-text {
  font-size: 14px;
  color: gray;
  margin-top: 5px;
}

.pagination {
  position: absolute !important;
  width: 100%;
  text-align: center;
  right: 0;
  padding: 0 !important;
  bottom: 30px;
  z-index: 999;
}

.pagination__item {
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  font-size: 0;
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  margin: 0 5px;
  transition: 0.2s ease-in-out;
}

.pagination__item.is-current,
.pagination__item:hover {
  background-color: #fff;
}

.container {
  position: relative;
  margin: 0 auto;
}

/* Card & Slideshow */
.card-body {
  font-family: axiforma, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  margin: 0;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

.slideshow-container {
  width: 100%;
  max-width: 1280px;
  overflow: hidden;
  position: relative;
  padding: 80px 80px 80px 0px;
  box-sizing: border-box;
}

.c-container {
  display: flex;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease;
  width: calc(300px * 9 + 20px * 8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.card {
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.card:hover {
  background-color: #e0e0e0;
  transform: scale(1.0) translateY(-20px);
  z-index: 10;
  border-radius: 20px;
}

.card h2 {
  margin: 0 0 15px;
  font-size: 20px;
  transition: font-size 0.3s ease;
}

.card:hover h2 {
  font-size: 22px;
}

.card button {
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #008080;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card button:hover {
  background-color: #005959;
}

.card img {
  width: 210px;
  height: 249px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 10px;
}

.span {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 200px;
}

/* Section Header for "View All" Button */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* flex-wrap: nowrap; */
  gap: 10px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.7;
}

.view-all-btn {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
}

.view-all-btn:hover {
  background-color: #45a049;
}

/* ============================================================
   Media Queries (All Moved to the Bottom)
   ============================================================ */

@media (max-width: 768px) {
  
  .navbar .search {
    order: 2;
    flex-basis: 100%;
    margin: 10px 0;
  }
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    width: 50%;
    background-color: #f2f2f2;
    padding: 10px 0;
  }
  .navbar .nav-links a {
    padding: 10px 20px;
    color: #000;
  }
  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
    color: #000;
    font-size: 1.5rem;
    margin-left: auto;
  }
  .navbar .nav-links.show {
    display: flex;
  }
}

@media (max-width: 480px) {
  .navbar .auth {
    padding: 6px 10px;
    font-size: 13px;
  }
  .navbar .search input {
    padding: 6px 10px;
  }
}

@media (max-width: 699px) {
  .container {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (min-width: 700px) and (max-width: 1599px) {
  .container {
    padding-right: 7.5rem;
    padding-left: 7.5rem;
    max-width: 140rem;
  }
}

@media (min-width: 1600px) {
  .container {
    padding-right: 9.5625rem;
    padding-left: 9.5625rem;
    max-width: 144.125rem;
  }
}

@media screen and (max-width: 1024px) {
  .c-container {
    width: auto;
    /* flex-wrap: nowrap; */
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .card {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: calc(100vw - 80px);
    max-width: 400px;
  }
  .navigation {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .c-container {
    display: flex;
    gap: 20px;
    transform: translateX(0);
    transition: transform 0.5s ease;
    width: calc(300px * 9 + 1px * 8);
  }
  .card {
    width: 300px;
    height: 400px;
    padding: 20px;
    padding-left: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
  }
  .card:hover {
    background-color: #e0e0e0;
    transform: scale(1.0) translateY(-20px);
    z-index: 10;
    border-radius: 20px;
  }
  .card h2 {
    margin: 0 0 15px;
    font-size: 18px;
    transition: font-size 0.3s ease;
  }
  .card:hover h2 {
    font-size: 19px;
  }
  .card button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #008080;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .card button:hover {
    background-color: #005959;
  }
  .card img {
    width: 210px;
    height: 249px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px;
  }
  .navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }
  .nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
  }
  #c-next {
    margin-right: 20px;
  }
  .nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  .span {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 200px;
  }
  .brw {
    font-size: 28px;
  }
  .cat {
    font-size: 22px;
  }
  .product-card p {
    font-size: 14px;
  }
  .product-card .bt-text {
    font-size: 12px;
  }
}

@media screen and (min-width: 1280px) {
  .card {
    width: 350px;
  }
  .card img {
    width: 250px;
    height: 300px;
  }
}

.section-header {
  display: flex;
  align-items: center;    /* Vertically center with the text */
  /* flex-wrap: nowrap; */
  margin-bottom: 20px;
}

.section-title {
  /* Optional: If you want multi-line text stacked in one place */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.view-all-btn {
  margin-left: auto;      /* The magic: pushes the button to the far right */
  padding: 10px 20px;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;    /* Prevents button text from wrapping */
}

.view-all-btn:hover {
  background-color: #45a049;
}

/* Mobile: same row, forced right side */
@media screen and (max-width: 600px) {
  .section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* or space-between, either is fine */
    padding: 0 10px;
  }

  /* If you need smaller text on mobile */
  .brw {
    font-size: 32px;
  }

  .cat {
    font-size: 18px;
  }

  .view-all-btn {
    font-size: 14px;
    padding: 8px 16px;
    margin-left: auto; /* STILL ensures it's on the far right */
  }
  .section-title{
    line-height: 0.6;
  }
}

