/* ============================================
   Example Theme — Blog Single Page Styles
   ============================================ */

/* ---- Blog Content Typography ---- */
.blog-content {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2d2d2d;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c20000;
}

.blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content a {
  color: #c20000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content a:hover {
  opacity: 0.7;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.blog-content ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 3px solid #c20000;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f8f8f8;
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.blog-content strong {
  font-weight: 700;
  color: #111;
}

/* ---- Coupon / Product Block ---- */
.blog-content .coupon,
.blog-content .coupon-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e5e5e5;
  padding: 1.25rem;
  margin: 2rem 0;
  gap: 1rem;
  background: #fafafa;
}

.blog-content .coupon img,
.blog-content .coupon-inline img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin: 0;
  background: #fff;
}

.blog-content .image-source {
  font-size: 0.72rem;
  color: #999;
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

/* ---- Shop / Blog Button ---- */
.blog-content .blog-button,
.blog-button {
  display: inline-block;
  background-color: #c20000 !important;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  text-decoration: none !important;
  border: 2px solid #c20000;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.blog-content .blog-button:hover,
.blog-button:hover {
  background-color: #fff !important;
  color: #c20000 !important;
}

/* ---- Table of Contents ---- */
.blog-toc {
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  background: #fafafa;
}

.blog-toc h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c20000;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.blog-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-toc ol li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: 'Raleway', sans-serif;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-toc ol li a:hover {
  color: #c20000;
}

.blog-toc ol li a .toc-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #c20000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c20000;
}

/* ---- Author Box ---- */
.author-box {
  border: 1px solid #e5e5e5;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .author-box {
    flex-direction: row;
    align-items: flex-start;
  }
}

.author-box img,
.author-box .author-initial {
  flex-shrink: 0;
  object-fit: cover;
}

.author-box .author-initial {
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #666;
}

.author-box .author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c20000;
  text-decoration: none;
  display: block;
}

.author-box .author-name:hover {
  text-decoration: underline;
}

.author-box .author-bio {
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.author-box .author-bio p {
  margin: 0;
}

.author-box .author-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c20000;
  border: 1px solid #c20000;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.author-box .author-link:hover {
  background: #c20000;
  color: #fff;
}

/* ---- Sidebar ---- */
.blog-sidebar-card {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.25rem;
}

.blog-sidebar-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-sidebar-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.blog-sidebar-card:hover img {
  transform: scale(1.05);
}

.blog-sidebar-card .sidebar-cat {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  text-decoration: none;
}

.blog-sidebar-card .sidebar-cat:hover {
  color: #c20000;
}

.blog-sidebar-card .sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c20000;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-sidebar-card .sidebar-title:hover {
  text-decoration: underline;
}

/* ============================================
   Product Card Grids (single / double / triple)
   ============================================ */

.single-product-wrapper,
.double-product-wrapper,
.triple-product-wrapper {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* ---- Grid Columns ---- */
.single-product-wrapper  { grid-template-columns: 1fr; }
.double-product-wrapper  { grid-template-columns: 1fr; }
.triple-product-wrapper  { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .double-product-wrapper { grid-template-columns: repeat(2, 1fr); }
  .triple-product-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .triple-product-wrapper { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Base Card ---- */
.single-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.single-product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* Single: image left, content right on sm+ */
@media (min-width: 640px) {
  .single-product-wrapper .single-product-card {
    flex-direction: row;
    align-items: stretch;
  }
  .single-product-wrapper .single-product-image {
    width: 280px;
    flex-shrink: 0;
  }
}

/* ---- Product Image ---- */
.single-product-image {
  background: #f7f7f7;
  overflow: hidden;
  position: relative;
}

.single-product-image img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 !important;
  padding: 1rem;
  transition: transform 0.45s ease;
  box-sizing: border-box;
}

.single-product-wrapper .single-product-image img {
  height: 100%;
  min-height: 220px;
  padding: 1.25rem;
}

.single-product-card:hover .single-product-image img {
  transform: scale(1.06);
}

/* ---- Product Content ---- */
.single-product-content {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  border-top: 3px solid #c20000;
}

.single-product-wrapper .single-product-content {
  border-top: none;
  border-left: 3px solid #c20000;
}

@media (max-width: 639px) {
  .single-product-wrapper .single-product-content {
    border-left: none;
    border-top: 3px solid #c20000;
  }
}

.brand-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin: 0 0 0.5rem;
}

.single-product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #c20000;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.single-product-price {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.single-product-price s {
  font-size: 0.85rem;
  color: #bbb;
  font-weight: 400;
}

.single-product-button {
  display: block;
  width: 100%;
  text-align: center;
  /* margin-top: auto; */
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff !important;
  background: #c20000;
  border: 2px solid #c20000;
  padding: 0.7rem 1rem;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.single-product-button:hover {
  background: #fff !important;
  color: #c20000 !important;
}

/* Single layout: button not full-width */
.single-product-wrapper .single-product-button {
  width: auto;
  align-self: flex-start;
  display: inline-block;
}

.single-product-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.7;
  margin: 0 0 1rem;
}
