﻿/* ============================================================
   FILE 4: 04-product-page-blog.css
   Product Page & Blog Styling
   Project: Gentlwish.com — Taoist Talismans & Spiritual Wellness
   ============================================================ */

/* ========================================
   PRODUCT PAGE — ADDITIONAL STYLING
   ======================================== */

/* Gallery / Product Images */
.woocommerce div.product div.images .woocommerce-product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

.woocommerce div.product div.images .flex-control-thumbs {
  gap: 12px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 80px !important;
  margin: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  opacity: 0.6;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

/* Product Meta (SKU, Category, Tags) */
.woocommerce div.product .product_meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.woocommerce div.product .product_meta > span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.woocommerce div.product .product_meta > span span,
.woocommerce div.product .product_meta > span a {
  color: var(--color-text-light);
  font-weight: var(--font-weight-body-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.woocommerce div.product .product_meta > span a:hover {
  color: var(--color-primary);
}

/* Product Summary Section */
.woocommerce div.product .summary {
  padding: 0 0 0 40px;
}

.woocommerce div.product .summary .woocommerce-product-rating {
  margin-bottom: 16px;
}

.woocommerce div.product .summary .star-rating {
  color: var(--color-secondary);
  font-size: 14px;
}

.woocommerce div.product .summary .woocommerce-review-link {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.woocommerce div.product .summary .woocommerce-review-link:hover {
  color: var(--color-primary);
}

/* ========================================
   PRODUCT DESCRIPTION
   ======================================== */

.gentlwish-product-description {
  max-width: var(--content-width-narrow);
  line-height: var(--line-height-description);
  font-size: 16px;
  color: var(--color-text-light);
  margin: 0 auto 0 0;
}

.gentlwish-product-description p {
  margin: 0 0 20px;
}

.gentlwish-product-description ul,
.gentlwish-product-description ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.gentlwish-product-description li {
  margin-bottom: 8px;
}

/* ========================================
   REVIEWS
   ======================================== */

.woocommerce #reviews #comments ol.commentlist {
  padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
  border-bottom: 1px solid var(--color-border-light);
  padding: 24px 0;
}

.woocommerce #reviews #comments ol.commentlist li:last-child {
  border-bottom: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: none;
  padding: 0 0 0 60px;
  margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border-light);
  padding: 0;
  background: var(--color-bg);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
  font-size: 13px;
  color: var(--color-secondary);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
  font-size: 15px;
  line-height: var(--line-height-body);
  color: var(--color-text-light);
}

/* Review Form */
.woocommerce #reviews #review_form_wrapper {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.woocommerce #reviews #review_form_wrapper .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  display: block;
  margin: 0 0 20px;
}

.woocommerce #reviews #review_form_wrapper .comment-form label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-body-500);
  color: var(--color-text);
  margin-bottom: 6px;
  display: block;
}

.woocommerce #reviews #review_form_wrapper .comment-form input,
.woocommerce #reviews #review_form_wrapper .comment-form textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: border-color var(--transition-fast);
}

.woocommerce #reviews #review_form_wrapper .comment-form input:focus,
.woocommerce #reviews #review_form_wrapper .comment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  outline: none;
}

.woocommerce #reviews #review_form_wrapper .comment-form .submit {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  padding: 14px 32px !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--font-weight-body-500);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.woocommerce #reviews #review_form_wrapper .comment-form .submit:hover {
  background: var(--btn-primary-hover-bg) !important;
}

/* Star Rating Selector */
.woocommerce p.stars a {
  color: var(--color-secondary);
}

/* ========================================
   BLOG STYLING
   ======================================== */

.gentlwish-blog-article {
  max-width: var(--blog-article-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.gentlwish-blog-article .blog-title {
  font-family: var(--font-heading);
  font-size: var(--blog-title-size);
  font-weight: var(--font-weight-heading-700);
  color: var(--color-text);
  line-height: var(--line-height-heading);
  margin: 0 0 24px;
}

.gentlwish-blog-article .blog-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.gentlwish-blog-article .blog-meta span {
  margin-right: 20px;
}

.gentlwish-blog-article .blog-meta a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gentlwish-blog-article .blog-meta a:hover {
  color: var(--color-primary);
}

.gentlwish-blog-article .blog-content p {
  font-size: var(--blog-paragraph-size);
  line-height: var(--line-height-description);
  color: var(--color-text-light);
  margin: 0 0 24px;
}

.gentlwish-blog-article .blog-content h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  margin: 40px 0 16px;
  line-height: var(--line-height-heading);
}

.gentlwish-blog-article .blog-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  margin: 32px 0 12px;
  line-height: var(--line-height-heading);
}

.gentlwish-blog-article .blog-content blockquote {
  border-left: 3px solid var(--color-secondary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--color-text);
}

.gentlwish-blog-article .blog-content ul,
.gentlwish-blog-article .blog-content ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.gentlwish-blog-article .blog-content li {
  font-size: var(--blog-paragraph-size);
  line-height: var(--line-height-body);
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.gentlwish-blog-article .blog-content img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

.gentlwish-blog-article .blog-content .wp-caption {
  max-width: 100%;
  margin: 24px 0;
}

.gentlwish-blog-article .blog-content .wp-caption-text {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding-top: 8px;
}

/* ========================================
   RELATED ARTICLES
   ======================================== */

.gentlwish-related-articles {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.gentlwish-related-articles .related-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  text-align: center;
  margin: 0 0 32px;
}

.gentlwish-related-articles .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.gentlwish-related-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gentlwish-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--product-card-shadow-hover);
}

.gentlwish-related-card .related-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gentlwish-related-card .related-card-content {
  padding: 20px;
}

.gentlwish-related-card .related-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: var(--line-height-heading);
}

.gentlwish-related-card .related-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gentlwish-related-card .related-card-title a:hover {
  color: var(--color-primary);
}

.gentlwish-related-card .related-card-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  line-height: var(--line-height-body);
  margin: 0 0 12px;
}

.gentlwish-related-card .related-card-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ========================================
   BLOG ARCHIVE / LIST VIEW
   ======================================== */

.gentlwish-blog-archive {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.gentlwish-blog-archive .archive-header {
  text-align: center;
  padding: 40px 0;
}

.gentlwish-blog-archive .archive-header h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: var(--font-weight-heading-700);
  color: var(--color-text);
  margin: 0;
}

.gentlwish-blog-archive .archive-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.gentlwish-blog-archive .archive-post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gentlwish-blog-archive .archive-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--product-card-shadow-hover);
}
