/* Custom styles for RS Square Agro Exports */

/* Fix for Font Awesome icons */
.fa,
.fas,
.far,
.fab {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
  font-weight: 900;
}

/* Contact info boxes */
.contact-info-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.contact-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-box .icon {
  margin-bottom: 20px;
}

.contact-info-box h4 {
  color: #2c5530;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-info-box p {
  color: #666;
  margin: 0;
}

.contact-info-box a {
  color: #49a760;
  text-decoration: none;
}

.contact-info-box a:hover {
  color: #2c5530;
}

/* Connect with us section */
.connect-with-us-area {
  padding: 80px 0;
}

.connect-with-us-area .site-heading {
  margin-bottom: 60px;
}

.connect-with-us-area .sub-title {
  color: #49a760;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.connect-with-us-area .title {
  color: #2c5530;
  font-weight: 700;
  margin-bottom: 20px;
}

/* SVG icons styling */
svg {
  transition: all 0.3s ease;
}

.contact-info-box:hover svg {
  transform: scale(1.1);
}

/* Form improvements */
.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #49a760;
  box-shadow: 0 0 0 0.2rem rgba(73, 167, 96, 0.25);
}

/* Alert messages */
.alert {
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  border: none;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* Product details page */
.product-details-area {
  padding: 80px 0;
}

.product-thumb img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-details-info h2 {
  color: #2c5530;
  margin-bottom: 20px;
}

.category a {
  color: #49a760;
  text-decoration: none;
}

.category a:hover {
  color: #2c5530;
}

.list-standard {
  list-style: none;
  padding: 0;
}

.list-standard li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #666;
}
.alert-msg {
    margin-top: 15px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 6px;
    display: none;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    /* border-left: 5px solid #28a745; */
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    /* border-left: 5px solid #dc3545; */
}

.list-standard li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #49a760;
  font-weight: bold;
}

.product-specification .table {
  margin-top: 20px;
}

.product-specification .table th {
  background-color: #f8f9fa;
  color: #2c5530;
  font-weight: 600;
  border: 1px solid #dee2e6;
  padding: 12px;
}

.product-specification .table td {
  border: 1px solid #dee2e6;
  padding: 12px;
  color: #666;
}

/* Related products */
.related-products-area {
  padding: 80px 0 40px;
  background-color: #f8f9fa;
}

/* Product grid improvements */
.product-style-one {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.product-style-one:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-style-one .thumb {
  position: relative;
  overflow: hidden;
}

.product-style-one .thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-style-one:hover .thumb img {
  transform: scale(1.05);
}

.product-style-one .tags {
  position: absolute;
  top: 15px;
  left: 15px;
}

.product-style-one .tags span {
  background: #49a760;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-style-one .info {
  padding: 25px;
}

.product-style-one .meta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.product-style-one .meta li {
  display: inline-block;
  color: #49a760;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-style-one h4 {
  margin-bottom: 15px;
}

.product-style-one h4 a {
  color: #2c5530;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-style-one h4 a:hover {
  color: #49a760;
}

.product-style-one p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-style-one .bottom-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-alt {
  background: transparent;
  border: 2px solid #49a760;
  color: #49a760;
}

.btn-alt:hover {
  background: #49a760;
  color: #fff;
}

/* Sidebar improvements */
.sidebar-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.sidebar-item .title {
  background: #2c5530;
  color: #fff;
  padding: 20px;
  margin: 0;
}

.sidebar-item .title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sidebar-item .sidebar-info {
  padding: 20px;
}

.sidebar-item.category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item.category li {
  border-bottom: 1px solid #eee;
}

.sidebar-item.category li:last-child {
  border-bottom: none;
}

.sidebar-item.category a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-item.category a:hover,
.sidebar-item.category a.active {
  color: #49a760;
  padding-left: 10px;
}

.sidebar-item.category span {
  background: #f8f9fa;
  color: #666;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.sidebar-item.search form {
  display: flex;
  gap: 10px;
}

.sidebar-item.search input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
}

.sidebar-item.search button {
  background: #49a760;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-item.search button:hover {
  background: #2c5530;
}

.sidebar-item.get-quote p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .contact-info-box {
    margin-bottom: 20px;
  }

  .product-style-one .bottom-info {
    flex-direction: column;
  }

  .product-style-one .bottom-info .btn {
    width: 100%;
    text-align: center;
  }

  .sidebar {
    margin-top: 40px;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[src*="placeholder.svg"],
img[src*="via.placeholder.com"] {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Breadcrumb improvements */
.breadcrumb-area {
  position: relative;
  padding: 120px 0 80px;
}

.breadcrumb-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 85, 48, 0.7);
  z-index: 1;
}

.breadcrumb-area .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 20px 0 0 0;
  justify-content: center;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: #49a760;
}

.breadcrumb li.active {
  color: #49a760;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.6);
}
