/* Styles for product categories and subcategories */
.arrow-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.arrow-box {
   position: relative;
    flex: 1;
    /* min-width: 267px; */
    height: 130px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 130px;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 0% 50%);
    margin: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.arrow-box.active {
  background-color: #8C0303;
  color: white;
}

.arrow-box a{
color: white;
}
.subcategory-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  display: none;
  text-align: left;
}

.subcategory-list.show {
  display: block;
}

.subcategory-list.hide {
  display: none;
}

.subcategory-list li {
  margin-bottom: 8px;
}

.subcategory-list li a {
  color: #007bff;
  text-decoration: none;
}

.subcategory-list li a:hover {
  text-decoration: underline;
}

.arrow-box:hover {
  transform: scale(1.05);
}

.arrow-box ul.subcategory-list {
  margin-top: 10px;
  list-style: none;
  padding-left: 0;
}

.arrow-box ul.subcategory-list li a {
  color: white;
  text-decoration: underline;
  font-size: 16px;
}

.arrow-box.active {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.agriculture {
  background-color: #4CAF50;
}

.gemstone {
  background-color: #00BFFF;
}

.engineering {
  background-color: #FFD700;
}

/* Responsive styles without changing arrow design */
@media (max-width: 768px) {
  .arrow-row {
    flex-direction: column;
    align-items: center;
  }

  .arrow-box {
    width: 100%;
    max-width: 90%;
    margin-bottom: 15px;
    font-size: 22px;
  }

  .subcategory-list {
    text-align: center;
  }

  .subcategory-list li {
    margin-bottom: 10px;
  }

  .subcategory-list li a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .arrow-box {
    font-size: 22px;
    padding: 12px 18px;
  }

  .subcategory-list li a {
    font-size: 14px;
  }
}


.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
  width: 23%; 
  border: 1px solid #ccc; 
  padding: 10px;
}

.product-item a h4{
  font-size: 20px;
  padding-top: 15px;
}
.product-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 15px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  transition: color 0.3s;
}

.product-item:hover .product-title {
  color: #007bff;
}

.product-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .product-item {
    width: 48%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-item {
    width: 30%;
  }
}

@media (max-width: 480px) {
  .product-item {
    width: 100%;
  }
}


/* Full-width product list layout */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.product-row {
  width: 100%;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-thumb img {
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.product-thumb figure {
 float: left;
 padding: 20px;
 height: auto;
}
.product-thumb figcaption {
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 22px;
} 
.product-thumb {
 float: left;
 padding: 20px;
 height: auto;
}
.product-link:hover .product-thumb img {
  opacity: 0.9;
}

.product-text {
  margin-top: 15px;
}

.product-heading {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0;
  color: #222;
  transition: color 0.3s ease;
}

.product-link:hover .product-heading {
  color: #007bff;
}

.product-summary {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .product-heading {
    font-size: 22px;
  }

  .product-summary {
    font-size: 14px;
  }
}
