/* Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
:root {
  --primary-color: #064a05;
  --secondary-color: #347533;
  --third-color: #F8CB78;
  --accent-color: #789077;
  --text-dark: #3e3e3e;
  --text-light: #919191;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.05);
  --font-family: 'Tajawal', sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
}

.container-fluid {
  max-width: 1280px;
  margin: 0 auto;
}

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

.btn {
  border: none;
  border-radius: 7px;
  font-family: var(--font-family);
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding: 0 10px;
  }
}

/* Header Styles */
.header-section {
  background: var(--primary-color);
  opacity: 0.9;
  height: 125px;
  position: relative;
  z-index: 1000;
}

.navbar {
  height: 100%;
  padding: 0;
}

.navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 76px;
}

.language-selector a {
  border: 1px solid var(--white);
  border-radius: 7px;
  padding: 12px 28px;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  min-width: 117px;
  text-align: center;
}

.language-selector a:hover {
  border: 1px solid var(--third-color);
  color: var(--third-color);
}

.search-container {
  flex: 1;
  max-width: 408px;
  margin: 0 40px;
}

.search-bar {
  background: var(--white);
  border-radius: 7px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-light);
  font-family: var(--font-family);
  background: transparent;
  text-align: right;
  padding-right: 10px;
}

.search-bar input::placeholder {
  color: var(--text-light);
}

.search-type {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
  margin-left: 15px;
}

.search-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.search-icon i {
  color: var(--third-color);
}

.search-icon img {
  width: 24px;
  height: 24px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}

.welcome-text {
  font-size: 15px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: var(--white);
}

.login-text {
  font-size: 15px;
  font-weight: 700;
}

.logo {
  margin-left: 40px;
}

.logo img {
  height: 68px;
  width: auto;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle img {
  width: 24px;
  height: 16px;
}

/* Responsive Header */
@media (max-width: 992px) {
  .navbar .container-fluid {
    padding: 0 30px;
  }

  .search-container {
    max-width: 300px;
    margin: 0 20px;
  }

  .user-actions {
    gap: 15px;
  }

  .logo {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .header-section {
    height: auto;
    min-height: 125px;
  }

  .navbar .container-fluid {
    flex-wrap: wrap;
    padding: 15px;
  }

  .language-selector {
    order: 2;
    margin-bottom: 15px;
  }

  .language-selector a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .search-container {
    order: 4;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .user-actions {
    order: 3;
    margin-bottom: 15px;
    width: 100%;
  }

  .logo {
    order: 1;
    margin: 15px 0 0 0;
  }

  .menu-toggle {
    order: 5;
  }

  .welcome-text {
    display: none;
  }
}

@media (max-width: 576px) {
  .user-actions {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    margin-top: 20px;
  }
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 597px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 581px;
  background: url('../images/hero-background.png') no-repeat center;
  background-size: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 581px;
  background: var(--primary-color);
  opacity: 0.3;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 92px;
  margin: 0;
  white-space: nowrap;
}

.hero-title {
  font-size: 66px;
  font-weight: 500;
  line-height: 92px;
  margin: 0;
  white-space: nowrap;
}

.hero-btn {
  background: var(--white);
  color: var(--primary-color);
  font-size: 25px;
  font-weight: 700;
  padding: 21px 51px;
  border-radius: 32px;
  margin-top: 27px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 69px;
  right: 76px;
  z-index: 4;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateY(-5px);
}

.scroll-indicator img {
  width: 69px;
  height: 69px;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-btn {
    font-size: 20px;
    padding: 18px 40px;
  }

  .scroll-indicator {
    right: 30px;
    bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 500px;
  }

  .hero-background,
  .hero-overlay {
    height: 500px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 60px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 60px;
  }

  .hero-btn {
    font-size: 18px;
    padding: 15px 30px;
  }

  .scroll-indicator {
    right: 20px;
    bottom: 20px;
  }

  .scroll-indicator img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 400px;
  }

  .hero-background,
  .hero-overlay {
    height: 400px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 40px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 40px;
  }

  .hero-btn {
    font-size: 16px;
    padding: 12px 25px;
  }
}

/* Services Section Styles */
.services-section {
  padding: 11px 0 22px;
  background: var(--white);
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 888px;
  margin: 0 auto;
  height: 127px;
}

.services-avatar {
  position: relative;
  width: 69px;
  height: 69px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 20px;
}

.services-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.services-icon img {
  width: 100%;
  height: 100%;
}

.services-title {
  font-size: 50px;
  font-weight: 500;
  line-height: 92px;
  color: var(--primary-color);
  margin: 0;
  text-align: center;
  flex: 1;
}

.add-listing {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.add-listing:hover {
  color: var(--secondary-color);
}

.services-divider {
  text-align: center;
  margin-top: 20px;
}

.services-divider img {
  width: 27px;
  height: 1px;
}

/* Responsive Services */
@media (max-width: 992px) {
  .services-title {
    font-size: 40px;
  }

  .services-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .services-header {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .services-avatar {
    margin: 0 0 15px 0;
  }

  .services-title {
    font-size: 32px;
    line-height: 60px;
    margin-bottom: 15px;
  }

  .add-listing {
    position: static;
    transform: none;
  }
}

@media (max-width: 576px) {
  .services-title {
    font-size: 24px;
    line-height: 40px;
  }

  .services-avatar {
    width: 50px;
    height: 50px;
  }
}

/* Categories Section Styles */
.categories-section {
  padding: 0 0 58px;
  background: var(--white);
}

.category-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--secondary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.category-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-btn.active {
  background: var(--secondary-color);
  color: var(--white);
}

/* Responsive Categories */
@media (max-width: 992px) {
  .categories-section .row {
    justify-content: center;
  }

  .categories-section .col-lg {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .categories-section {
    padding: 0 0 40px;
  }

  .category-btn {
    font-size: 14px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .categories-section .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .category-btn {
    font-size: 13px;
    height: 40px;
  }
}

/* Products Section Styles */
.products-section {
  padding: 0 0 57px;
  background: var(--white);
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 519px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  width: 100%;
  height: 218px;
  overflow: hidden;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  line-height: 35px;
  background-color: #FFF;
  text-align: center;
  border-radius: 50%;
}

.product-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.product-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 21px;
}

.product-content {
  padding: 28px 33px 29px;
  height: calc(519px - 218px);
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-dark);
  margin: 0 0 13px 0;
  text-align: right;
}

.product-details {
    position: relative;
    /* margin-bottom: 30px; */
    flex: 1;
}

.product-details p {
  font-size: 13px;
  font-weight: 400;
  line-height: 27px;
  color: var(--text-dark);
  margin: 0;
  text-align: right;
}

.product-bullets {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-bullets img {
  width: 11px;
  height: auto;
}

.product-price {
  margin-bottom: 28px;
  text-align: right;
  position: relative;
}

.product-price .currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-left: 10px;
}

.product-price .amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--secondary-color);
}

.product-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
  font-size: 15px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.product-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.product-btn.featured {
  background: var(--secondary-color);
  color: var(--white);
}

.product-btn img {
  width: 20px;
  height: 15px;
}

.load-more-btn {
  background: var(--secondary-color);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 56px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Responsive Products */
@media (max-width: 992px) {
  .product-card {
    height: auto;
    min-height: 450px;
  }

  .product-content {
    height: auto;
  }

  .product-image {
    height: 300px;
}

}

@media (max-width: 768px) {
  .products-section {
    padding: 0 0 40px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-details p {
    font-size: 14px;
    line-height: 24px;
  }

  .product-price .amount {
    font-size: 24px;
  }

  .product-price .currency {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .product-content {
    padding: 20px 25px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-btn {
    font-size: 14px;
    height: 44px;
  }

  .load-more-btn {
    font-size: 16px;
    padding: 15px 40px;
  }
}

/* Footer Styles */
.footer-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 84px 0 30px;
}

.footer-section i {
  color: var(--third-color);
}

.footer-nav {
  margin-bottom: 17px;
}

.footer-section h5 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-content {
  margin-bottom: 49px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  text-align: right;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 215px;
  height: auto;
  margin-bottom: 20px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.social-media a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-media a:hover {
  transform: translateY(-3px);
}

.social-media img {
  width: 24px;
  height: 24px;
}

.footer-divider {
  text-align: center;
  margin-bottom: 30px;
}

.footer-divider img {
  width: 100%;
  max-width: 1130px;
  height: 1px;
}

.footer-bottom {
}

.payment-methods img {
  height: 39px;
  width: auto;
}

.copyright p {
  font-size: 14px;
  font-weight: 400;
  line-height: 11px;
  margin: 0;
  text-align: right;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-section {
    padding: 60px 0 30px;
  }

  .footer-logo img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 40px 0 30px;
  }

  .footer-nav {
    margin-bottom: 30px;
  }

  .footer-nav .row {
    gap: 20px;
  }

  .footer-content .row {
    gap: 30px;
  }

  .footer-contact {
  }

  .contact-item {
  }

  .footer-links {
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .footer-section {
    padding: 30px 0 20px;
  }

  .footer-nav h5 {
    font-size: 16px;
  }

  .contact-item {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    font-size: 14px;
    line-height: 30px;
  }

  .footer-logo img {
    width: 150px;
  }

  .social-media {
    gap: 10px;
  }

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

  .copyright p {
    font-size: 14px;
    margin-bottom: 20px;
  }
}