/* =========================================
   BUSH BAGS - SINGLE JOURNAL ARTICLE
========================================= */

.bb-single-post-page {
  width: 100%;
  padding: var(--bb-padding);
  box-sizing: border-box;
}

.bb-single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.85fr);
  gap: 55px;
  margin: 0 auto;
  width: var(--bb-container);
  align-items: start;
}

/* =========================================
   ARTICLE HEADER
========================================= */

.bb-single-post {
  min-width: 0;
}

.bb-single-post__header {
  margin-bottom: 28px;
}

.bb-single-post__eyebrow {
  margin: 0 0 12px;
  color: var(--bb-orange, #b84f26);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bb-single-post__title {
  margin: 0 0 14px;
  color: var(--bb-black, #050505);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  font-weight: 700;
}

.bb-single-post__meta {
  color: #000;
}

/* =========================================
   FEATURED IMAGE
========================================= */

.bb-single-post__featured-image {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 5px;
}

.bb-single-post__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================
   ARTICLE CONTENT
========================================= */

.bb-single-post__content {
  color: #000;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.bb-single-post__content > *:first-child {
  margin-top: 0;
}

.bb-single-post__content h2,
.bb-single-post__content h3,
.bb-single-post__content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  line-height: 1.3;
}

.bb-single-post__content h2 {
  font-size: clamp(25px, 2.5vw, 32px);
}

.bb-single-post__content h3 {
  font-size: 23px;
}

.bb-single-post__content p {
  margin: 0 0 1.3em;
}

.bb-single-post__content a {
  color: var(--bb-orange, #b84f26);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.bb-single-post__content ul,
.bb-single-post__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.bb-single-post__content blockquote {
  margin: 2em 0;
  padding: 20px 25px;
  border-left: 4px solid var(--bb-orange, #b84f26);
  background: #f5f3ef;
  font-size: 18px;
}

.bb-single-post__pages {
  margin: 30px 0;
}

/* =========================================
   SOCIAL SHARING
========================================= */

.bb-single-post__sharing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--bb-border, #dedede);
  border-bottom: 1px solid var(--bb-border, #dedede);
}

.bb-single-post__sharing-label {
  color: #000;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.bb-single-post__sharing-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bb-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.bb-share-button:hover {
  background: var(--bb-orange, #b84f26);
  color: #fff !important;
  transform: translateY(-2px);
}

/* =========================================
   PREVIOUS / NEXT ARTICLES
========================================= */

.bb-single-post__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: 25px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bb-border, #dedede);
}

.bb-single-post__nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-single-post__nav-item--next {
  text-align: right;
}

.bb-single-post__nav-item > span {
  color: var(--bb-orange, #b84f26);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.bb-single-post__nav-item a {
  color: #000;
  line-height: 1.5;
  text-decoration: none;
  font-weight: 600;
}

.bb-single-post__nav-item a:hover {
  color: var(--bb-orange, #b84f26);
}

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

.bb-single-post-sidebar {
  min-width: 0;
}

.bb-sidebar-widget {
  margin: 36px 0;
}

.bb-sidebar-widget__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bb-border, #dedede);
  color: #000;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search */

.bb-sidebar-search form {
  display: flex;
  width: 100%;
  border: 1px solid var(--bb-border, #dedede);
  border-radius: 4px;
  overflow: hidden;
}

.bb-sidebar-search input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 0;
  outline: none;
  background: #fff;
  color: #000;
  font: inherit;
}

.bb-sidebar-search button {
  flex: 0 0 44px;
  border: 0;
  background: var(--bb-black, #252525);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.bb-sidebar-search button:hover {
  background: var(--bb-orange, #b84f26);
}

/* Categories */

.bb-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eee;
}

.bb-sidebar-list a {
  color: #000;
  text-decoration: none;
}

.bb-sidebar-list a:hover {
  color: var(--bb-orange, #b84f26);
}

/* Recent posts */

.bb-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.bb-recent-post {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.bb-recent-post__image {
  display: block;
  width: 82px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0efec;
}

.bb-recent-post__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-recent-post__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--bb-orange, #b84f26);
  font-weight: 700;
}

.bb-recent-post__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bb-recent-post__date {
  color: #000;
}

.bb-recent-post__title {
  color: #000;
  line-height: 1.5;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bb-recent-post:hover .bb-recent-post__title {
  color: var(--bb-orange, #b84f26);
}

/* Tags */

.bb-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-sidebar-tags a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--bb-border, #dedede);
  border-radius: 20px;
  color: #000;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bb-sidebar-tags a:hover {
  border-color: var(--bb-orange, #b84f26);
  background: var(--bb-orange, #b84f26);
  color: #fff;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .bb-single-post-page {
    padding: 40px 4% 55px;
  }

  .bb-single-post-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
  }

  .bb-single-post__content {
    font-size: 15px;
  }

  .bb-recent-post {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .bb-recent-post__image {
    width: 68px;
    height: 64px;
  }
}

@media (max-width: 680px) {
  .bb-single-post-page {
    padding: 32px 5% 45px;
  }

  .bb-single-post-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .bb-single-post__title {
    font-size: 32px;
  }

  .bb-single-post__featured-image {
    margin-bottom: 22px;
  }

  .bb-single-post__content {
    font-size: 15px;
    line-height: 1.8;
  }

  .bb-single-post__sharing {
    align-items: flex-start;
    flex-direction: column;
  }

  .bb-single-post__navigation {
    gap: 15px;
  }

  .bb-single-post__nav-item a {
    font-size: 12px;
  }

  .bb-sidebar-widget {
    margin-bottom: 30px;
  }
}

/* =========================================
   SINGLE ARTICLE - RELATED PRODUCTS
========================================= */

.bb-related-products {
  margin-bottom: 30px;
}

.bb-related-products__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bb-related-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bb-border);
  text-decoration: none;
  color: var(--bb-black);
}

.bb-related-product:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bb-related-product__image {
  display: block;
  flex: 0 0 90px;
  width: 90px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f4f1;
}

.bb-related-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bb-related-product:hover .bb-related-product__image img {
  transform: scale(1.05);
}

.bb-related-product__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.bb-related-product__name {
  font-weight: 600;
  line-height: 1.4;
}

.bb-related-product__price {
  color: red;
}

.bb-related-product__price del {
  opacity: 0.6;
  margin-right: 4px;
}

.bb-related-product__price ins {
  text-decoration: none;
}

.bb-related-product__link {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bb-orange);
  transition: color 0.2s ease;
}

.bb-related-product:hover .bb-related-product__link {
  color: var(--bb-black);
}


/* =========================================
   FEATURED IMAGE - TEXT WRAP
========================================= */

/* Float the featured image to the left so article text wraps around it. */
.bb-single-post__content .bb-single-post__featured-image {
  float: left;
  width: 38%;
  max-width: 360px;
  margin: 0 26px 18px 0;
  overflow: hidden;
  border-radius: 5px;
}

.bb-single-post__content .bb-single-post__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Clear the float after the article content so later elements sit normally. */
.bb-single-post__content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 680px) {
  .bb-single-post__content .bb-single-post__featured-image {
    width: 44%;
    max-width: 260px;
    margin: 0 18px 12px 0;
  }
}

@media (max-width: 420px) {
  .bb-single-post__content .bb-single-post__featured-image {
    width: 100%;
    max-width: none;
    float: none;
    margin: 0 0 22px;
  }
}