@font-face {
  font-family: ClarityCity;
  src: url(./fonts/clarity-city/TrueType/ClarityCity-Medium.ttf);
}

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

:root {
  --side-padding: 120px;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "ClarityCity";
  margin: 0;
  background-color: #f1f1f1;
}

.section-padding {
  padding-inline: var(--side-padding);
}

@media (max-width: 1200px) {
  :root {
    --side-padding: 20px;
  }
}

.topbar {
  background-color: #ff3737;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  padding-block: 6px;
}

.topbar i,
.topbar span {
  color: white;
}

.topbar strong {
  margin-right: 4px;
  font-weight: 500;
}

.location-btn {
  background: transparent;
  border: none;
  color: white;
  font-weight: 500;
  padding: 4px 12px;
}

.navbar {
  background-color: #252525;
  padding-block: 16px;
}

.navbar-brand img {
  width: 201px;
  height: 30px;
  object-fit: contain;
}

.nav-center {
  flex-grow: 1;
  justify-content: center;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icons i {
  font-size: 18px;
  color: #fff;
  cursor: pointer;
}

.btn-login {
  position: relative;
  overflow: hidden;
  background: #ed1c24;
  color: white;
  padding: 6px 18px;
  border: none;
  font-weight: 500;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 0;
  transition: left 0.4s ease;
}

.btn-login:hover::before {
  left: 0;
}

.btn-login:hover {
  color: #000;
}

.btn-login span {
  position: relative;
  z-index: 2;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 15px;
}

.nav-link:hover {
  color: #ed1c24 !important;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #252525;
  color: white;
  z-index: 9999;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

.mobile-menu-content {
  padding-top: 60px;
  padding-inline: var(--side-padding);
}

.mobile-menu-content ul {
  list-style: none;
  padding-left: 0;
}

.mobile-menu-content ul li {
  margin: 20px 0;
}

.mobile-menu-content ul li a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.mobile-icons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 20px;
}

/* Profile Image in Navbar */
.navbar-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* Username beside profile image */
.navbar-username {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* Dropdown hover styling */
.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Transparent mobile profile dropdown */
.transparent-dropdown {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.transparent-dropdown .dropdown-item {
  background-color: transparent !important;
  color: #f3434f !important;
  padding-left: 0.5rem;
}

.transparent-dropdown .dropdown-item:hover {
  background-color: transparent !important;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    display: none !important;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }
}

.modal-title {
  text-align: center;
  width: 100%;
}

.or-text {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin: 20px 0;
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.social-login-btn img {
  width: 20px;
  height: 20px;
}

.social-login-btn.mb-2 {
  margin-bottom: 12px;
}

/* login button modal */

.login-main-btn {
  background-color: #ff3737;
  color: #fff;
  border: none;
}

.login-main-btn:hover {
  background-color: #e03030;
  color: #fff;
}

/* Hero Section */

.hero-section {
  background: url("./images/Group\ 251.png") no-repeat center center/cover;
  height: 450px;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 1;
}

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

.hero-title {
  font-size: 48px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
  }
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 280px;
  }
  .hero-title {
    font-size: 28px;
  }
}

/* Products Section */

.products-section {
  background-color: #f1f1f1 !important;
}

.search-bar-container {
  margin: 25px 0;
  background-color: #f1f1f1;
}

.search-bar-row {
  max-width: 1320px;
  margin: 0 auto;
}

.search-input,
.search-dropdown {
  height: 48px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #f1f1f1;
  padding: 0 15px;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: 0.3s;
}

.search-btn:hover {
  background-color: #b02a2a;
}

/* Responsive Spacing Fix */
@media (max-width: 992px) {
  .search-bar-row > div {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .search-bar-container {
    padding: 0 20px;
  }
}

.products-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f9f9f9;
}

.products-section h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.products-section p.text-danger {
  font-size: 16px;
  color: #ff3c3c !important;
}

/* Sidebar Filters */
aside .form-check-label {
  font-size: 14px;
  color: #333;
}

aside h6 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

aside .form-check {
  margin-bottom: 8px;
}

/* Cards */
.card {
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-title {
  font-size: 15px;
  color: #111;
}

.card-body p {
  font-size: 14px;
  margin-bottom: 10px;
}

.card .btn {
  font-size: 13px;
  padding: 8px 10px;
}

/* Modal Filters */
.modal-body {
  padding: 20px;
}

#filtersModal h6 {
  margin-top: 20px;
}

#filtersModal .form-check {
  margin-bottom: 8px;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .products-section {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .card {
    margin-bottom: 20px;
  }

  .card img {
    height: 160px;
  }

  .products-section h2 {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .products-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card img {
    height: 140px;
  }

  .card-title {
    font-size: 14px;
  }

  .card .btn {
    font-size: 12px;
  }

  aside,
  #filtersModal .modal-body {
    font-size: 13px;
  }
}

/* BRANDS */

.brand-section {
  padding: 60px 0;
  background-color: #f1f1f1;
}

.brand-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.brand-section .text-danger {
  color: #ff3434 !important;
}

.brand-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.brand-slider {
  display: flex;
  gap: 40px;
  animation: scrollBrand 30s linear infinite;
  width: max-content;
}

.brand-logo {
  background-color: #e3e3e3;
  padding: 20px;
  min-width: 200px;
  height: 100px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.brand-logo img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.brand-logo:hover {
  transform: scale(1.05);
}

@keyframes scrollBrand {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
  .brand-logo {
    min-width: 150px;
    height: 80px;
    padding: 15px;
  }

  .brand-section h2 {
    font-size: 22px;
  }

  .brand-slider {
    gap: 20px;
  }
}

/* FOOTER */

.site-footer {
  background-color: #2a2a2a;
  color: #fff;
  padding: 30px 120px 20px; /* Reduced padding */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  gap: 30px; /* Reduced gap */
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-logo {
  font-size: 20px; /* Smaller font */
  color: #fff;
  margin-bottom: 10px;
}

.footer-logo span {
  color: #ff3c3c;
  font-size: 24px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a:hover {
  color: #fff;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.footer-form input {
  width: 100%;
  max-width: 450px;
  height: 44px; /* Shorter input */
  padding: 0 16px;
  font-size: 13px;
  background: transparent;
  color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.footer-form button {
  width: 100%;
  max-width: 450px;
  height: 44px; /* Shorter button */
  background-color: #ff3c3c;
  color: #fff;
  border: none;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-form button:hover {
  background-color: #f1f1f1;
  color: black;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}

.social-links i {
  font-size: 14px;
  background-color: #ff3c3c;
  color: #fff;
  padding: 6px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 16px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 25px auto 0; /* Smaller top margin */
  border-top: 1px solid #ccc;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: #aaa;
}

.footer-bottom-links a {
  font-size: 13px;
  color: #ccc;
  margin-left: 16px;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-footer {
    padding: 26px 60px 18px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-form input,
  .footer-form button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom-links a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 20px 20px 15px;
  }

  .footer-logo {
    font-size: 18px;
  }
}
