/* Document Grid Style - Inspired by Teachers Pay Teachers / User Request */

.box-product {
  background: #fff;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 20px;
}

.box-product:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.pic-product {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1; /* Square images */
  border-radius: 4px; /* Slight rounded corners */
  border: 1px solid #e0e0e0;
}

.pic-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.box-product:hover .pic-product img {
  transform: scale(1.05);
}

.product-tool {
  display: none !important; /* Hide the old hover icons */
}

/* Title Styling */
.name-product {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 10px;
  margin-bottom: 5px;
  line-height: 1.4;
  height: 44px; /* 2 lines max */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}

.name-product:hover {
  color: #000;
}

/* Author/Brand Styling */
.product-author {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.product-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
}

/* Footer: Price & Rating */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: none;
  padding-top: 0;
}

.price-product {
  margin-bottom: 0;
  font-weight: 700;
  font-size: 15px;
  color: #333;
}

.price-new {
  color: #333;
}

.product-rating {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.product-rating i {
  color: #4285f4; /* Blue star like example */
  margin-right: 4px;
  font-size: 14px;
}

/* Hide old cart buttons */
.cart-product {
  display: none !important;
}

/* Product Detail Page Styling */
.right-pro-detail .title-pro-detail {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin-bottom: 5px;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #444;
}

.product-rating-detail i {
  color: #4285f4;
  font-size: 16px;
  margin-right: 2px;
}

.product-author-detail {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.product-author-detail img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.product-author-detail .author-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-right: 15px;
}

.product-author-detail .follow-btn {
  color: #4285f4;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.product-author-detail .follow-btn i {
  margin-right: 4px;
}

.price-pro-detail-large {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.buy-buttons-container {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-add-cart-large,
.btn-buy-now-large {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-add-cart-large {
  background-color: #46c28e; /* Green matching screenshot */
  color: #fff;
  border: none;
}

.btn-add-cart-large:hover {
  background-color: #3aa87a;
  color: #fff;
}

.btn-buy-now-large {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-buy-now-large:hover {
  background-color: #f5f5f5;
}

/* Tabs under description */
.detail-tabs-list {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.detail-tab-item {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.detail-tab-item.active {
  color: #46c28e;
  border-bottom-color: #46c28e;
}

.badge-views {
  display: inline-flex;
  align-items: center;
  background-color: #e8f0fe;
  color: #1967d2;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 15px;
  margin-bottom: 10px;
  font-weight: 500;
}

.badge-views i {
  margin-right: 5px;
}

/* Hide old elements via CSS if not removed from HTML */
.social-plugin-pro-detail,
.attr-pro-detail {
  /* We might hide standard attr list to replace with custom layout */
  /* display: none; */
}
