/* ============================================
   SIDEBAR STYLES
   ============================================ */

#secondary.sidebar {
  padding: 0;
  margin: 0;
}

#secondary.sidebar .widget {
  padding: 44px 40px 40px 40px;
  background-color: var(--body-color, #2b6ab263);
  position: relative;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#secondary.sidebar .widget:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

#secondary.sidebar .widget_title {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  color: var(--title-color, #2E4A5B);
  line-height: 132%;
  margin: -0.38em 0 30px 0;
  font-family: var(--title-font, "Josefin Sans", sans-serif);
  text-transform: capitalize;
  padding: 0 0px 5px 0;
}

/* Search Form */
#secondary.sidebar .widget .search-form {
  position: relative;
  display: block;
}

#secondary.sidebar .widget .search-form input[type="search"] {
  width: 100%;
  background-color: var(--white-color, #ffffff);
  line-height: 170%;
  border-radius: 30px;
  height: 50px;
  color: var(--title-color, #2E4A5B);
  margin-bottom: 20px;
  padding: 0 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#secondary.sidebar .widget .search-form input[type="search"]:focus {
  border-color: var(--theme-color, #2b6ab2);
  box-shadow: 0 0 0 3px rgba(43, 106, 178, 0.1);
}

#secondary.sidebar .widget .search-form input[type="search"]::placeholder {
  color: #999;
}

#secondary.sidebar .widget .search-form button,
#secondary.sidebar .widget .search-form input[type="submit"] {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--theme-color, #2b6ab2);
  color: var(--white-color, #ffffff);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#secondary.sidebar .widget .search-form button:hover,
#secondary.sidebar .widget .search-form input[type="submit"]:hover {
  background: #1e4d7a;
  transform: scale(1.05);
}

/* Product Categories */
#secondary.sidebar .widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#secondary.sidebar .widget_categories li {
  margin-bottom: 10px;
}

#secondary.sidebar .widget_categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--white-color, #ffffff);
  color: var(--title-color, #2E4A5B);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 50px;
}

#secondary.sidebar .widget_categories a:hover {
  background-color: var(--theme-color, #2b6ab2);
  color: var(--white-color, #ffffff);
  transform: translateX(5px);
}

#secondary.sidebar .widget_categories .count {
  background-color: var(--theme-color, #2b6ab2);
  color: var(--white-color, #ffffff);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

#secondary.sidebar .widget_categories a:hover .count {
  background-color: var(--white-color, #ffffff);
  color: var(--theme-color, #2b6ab2);
}

/* Recent Products */
#secondary.sidebar .recent-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#secondary.sidebar .recent-product-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#secondary.sidebar .recent-product-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#secondary.sidebar .recent-product-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

#secondary.sidebar .recent-product-link:hover {
  color: var(--theme-color, #2b6ab2);
}

#secondary.sidebar .recent-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#secondary.sidebar .recent-product-link:hover .recent-product-img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#secondary.sidebar .recent-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#secondary.sidebar .recent-product-title {
  font-weight: 600;
  color: var(--title-color, #2E4A5B);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#secondary.sidebar .recent-product-link:hover .recent-product-title {
  color: var(--theme-color, #2b6ab2);
}

#secondary.sidebar .recent-product-price {
  font-weight: 700;
  color: var(--theme-color, #2b6ab2);
  font-size: 16px;
}

#secondary.sidebar .recent-product-price del {
  color: #999;
  font-weight: 400;
  font-size: 14px;
  margin-right: 5px;
}

/* Archive & Recent Posts Lists */
#secondary.sidebar .widget_archive ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#secondary.sidebar .widget_archive li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#secondary.sidebar .widget_archive li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#secondary.sidebar .widget_archive a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--white-color, #ffffff);
  color: var(--title-color, #2E4A5B);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 45px;
}

#secondary.sidebar .widget_archive a:hover {
  background-color: var(--theme-color, #2b6ab2);
  color: var(--white-color, #ffffff);
  transform: translateX(5px);
}

/* Title Shep */
.title-shep {
  position: relative;
  padding-bottom: 15px;
}

.title-shep::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--theme-color, #2b6ab2);
}

/* Filter By Price */
.slider-area {
  margin-top: 20px;
}

.slider-area-wrapper {
  position: relative;
}

.slider {
  margin-bottom: 20px;
}

.range-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.range-btn .vs-btn {
  flex-shrink: 0;
}

.price-range {
  font-weight: 600;
  color: var(--title-color, #2E4A5B);
  font-size: 16px;
}

/* Top Books This Week */
.product-sidebar .recent-post-wrap {
  margin-top: 20px;
}

.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recent-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post .media-img {
  flex-shrink: 0;
  width: 100px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
}

.recent-post .media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post:hover .media-img img {
  transform: scale(1.1);
}

.recent-post .media-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-post .product-author {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.recent-post .product-author strong {
  color: var(--title-color, #2E4A5B);
}

.recent-post .post-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.recent-post .post-title a {
  color: var(--title-color, #2E4A5B);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post .post-title a:hover {
  color: var(--theme-color, #2b6ab2);
}

.recent-post .price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recent-post .price-list li {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-color, #2b6ab2);
}

.recent-post .price-list li del {
  color: #999;
  font-weight: 400;
  font-size: 14px;
}

.recent-post-wrap .vs-btn {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

/* Categories List */
.wp-block-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-categories-list .cat-item {
  margin-bottom: 10px;
}

.wp-block-categories-list .cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--white-color, #ffffff);
  color: var(--title-color, #2E4A5B);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 50px;
  position: relative;
}

.wp-block-categories-list .cat-item a::after {
  content: "\f061";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--icon-font, "Font Awesome 6 Pro");
  color: var(--white-color, #ffffff);
  text-align: center;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: var(--theme-color, #2b6ab2);
  border-radius: 50%;
  transition: all 0.5s ease;
  font-weight: 900;
}

.wp-block-categories-list .cat-item a:hover {
  background-color: var(--theme-color, #2b6ab2);
  color: var(--white-color, #ffffff);
  transform: translateX(5px);
}

.wp-block-categories-list .cat-item a:hover::after {
  color: var(--title-color, #2E4A5B);
  background-color: var(--white-color, #ffffff);
}

/* Responsive Design */
@media (max-width: 991px) {
  #secondary.sidebar {
    margin-top: 40px;
  }
  
  #secondary.sidebar .widget {
    padding: 30px 25px;
  }
  
  #secondary.sidebar .widget_title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  #secondary.sidebar .widget {
    padding: 25px 20px;
    margin-bottom: 20px;
  }
  
  #secondary.sidebar .widget_title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  #secondary.sidebar .recent-product-img {
    width: 60px;
    height: 60px;
  }
  
  #secondary.sidebar .recent-product-title {
    font-size: 13px;
  }
  
  #secondary.sidebar .recent-product-price {
    font-size: 14px;
  }
}

