/**
 * CodersGrow Single Product Page - Marketplace UI/UX Architecture
 * Inspired by official WooCommerce.com NotifyStore Reference Design
 *
 * @package CodersGrow Theme
 * @version 2.0.0
 */

/* ==========================================================================
   1. DESIGN TOKENS & CANONICAL BRAND MAPPING (Poppins 100%)
   ========================================================================== */
.single-product {
  --cg-brand:          #B42332;
  --cg-brand-700:      #8F1725;
  --cg-brand-800:      #73131E;
  --cg-accent:         #FFF4F4;
  --cg-accent-mid:     #FCE8E8;
  --cg-ink:            #1F2937;
  --cg-ink-2:          #111827;
  --cg-muted:          #4B5563;
  --cg-faint:          #9CA3AF;
  --cg-line:           #E5E7EB;
  --cg-bg:             #FFFFFF;
  --cg-bg-alt:         #F8F7F4;
  --cg-surface:        #FFFFFF;
  --cg-dark:           #070B16;
  --cg-dark-2:         #0E1424;
  --cg-green:          #10B981;
  --cg-green-dark:     #065F46;
  --cg-green-bg:       #ECFDF5;
  --cg-green-border:   #A7F3D0;
  --cg-amber:          #F59E0B;
  
  --cg-font-body:      "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head:         var(--cg-font-body) !important;
  --font-body:         var(--cg-font-body) !important;

  --cg-r-sm:           6px;
  --cg-r-md:           10px;
  --cg-r-lg:           14px;
  --cg-r-xl:           18px;

  --cg-shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.05);
  --cg-shadow-md:      0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --cg-shadow-lg:      0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Universal Typography Enforcement (Scoped to Product Content) */
.single-product div.product,
.single-product div.product h1,
.single-product div.product h2,
.single-product div.product h3,
.single-product div.product h4,
.single-product div.product h5,
.single-product div.product h6,
.single-product div.product p,
.single-product div.product span,
.single-product div.product a,
.single-product div.product button,
.single-product div.product label,
.single-product div.product input,
.single-product div.product table,
.single-product div.product select {
  font-family: var(--cg-font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WP Admin Bar Dashicons & Font Safeguard */
#wpadminbar,
#wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before,
#wpadminbar .ab-item:before {
  font-family: dashicons !important;
}

/* ==========================================================================
   2. MAIN CONTAINER & VIEWPORT LAYOUT
   ========================================================================== */
.single-product-container {
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding-top: 125px !important;
  padding-bottom: 70px !important;
  padding-left: clamp(1rem, 2.5vw, 1.75rem) !important;
  padding-right: clamp(1rem, 2.5vw, 1.75rem) !important;
  box-sizing: border-box !important;
}

body.admin-bar .single-product-container {
  padding-top: 40px !important;
}

.cg-marketplace-product {
  width: 100%;
  box-sizing: border-box;
}

/* Reset default WooCommerce clears/margins */
.single-product div.product {
  display: block !important;
  margin-top: 0 !important;
  gap: 0 !important;
}

/* ==========================================================================
   3. BREADCRUMB ROW (Marketplace Navigation)
   ========================================================================== */
.cg-marketplace-breadcrumb {
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
}

.cg-breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cg-muted);
}

.cg-breadcrumb-inner a {
  color: var(--cg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cg-breadcrumb-inner a:hover {
  color: var(--cg-brand);
}

.cg-bc-sep {
  color: var(--cg-faint);
  font-size: 0.75rem;
}

.cg-breadcrumb-inner .breadcrumb_last {
  color: var(--cg-ink);
  font-weight: 600;
}

/* ==========================================================================
   4. PRODUCT HEADING BLOCK (64x64 Icon + Title + Vendor + Excerpt)
   ========================================================================== */
.wccom-product-heading-block {
  margin-bottom: 1.5rem;
}

.wccom-product-heading__row--title {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

/* 64x64 App Icon */
.wccom-product-icon--product-heading {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--cg-r-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wccom-product-icon__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wccom-product-icon__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cg-accent);
  color: var(--cg-brand);
}

/* Title & Author */
.wccom-product-title {
  flex: 1;
  min-width: 0;
}

.wccom-product-title__product-name {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  color: var(--cg-ink) !important;
  margin: 0 0 0.45rem 0 !important;
}

.wccom-product-title__vendor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--cg-muted);
}

.cg-vendor-link {
  color: var(--cg-brand) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cg-vendor-link:hover {
  color: var(--cg-brand-700) !important;
  text-decoration: underline;
}

.cg-title-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3F4F6;
  border: 1px solid var(--cg-line);
  color: var(--cg-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.cg-title-badge-pill svg {
  color: #7C3AED;
}

/* Excerpt Lead */
.wccom-product-short-description {
  font-size: clamp(1.025rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cg-muted);
  max-width: 900px;
  margin: 0.5rem 0 0 0;
}

.wccom-product-short-description p {
  margin: 0;
}

/* ==========================================================================
   5. 2-COLUMN MARKETPLACE GRID
   ========================================================================== */
.wccom-product-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
  .wccom-product-main-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   6. LEFT COLUMN: SHOWCASE GALLERY & MEDIA
   ========================================================================== */
.wccom-product-main-content {
  min-width: 0;
}

.wccom-product-gallery-container {
  margin-bottom: 2.5rem;
}

.wccom-product-gallery-primary {
  background: #ffffff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wccom-product-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.wccom-product-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wccom-product-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #FAF9F6;
  min-height: 380px;
}

.wccom-product-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: block;
  object-fit: contain;
}

.wccom-product-showcase-placeholder {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--cg-accent);
}

.wccom-product-showcase-placeholder img {
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

/* Thumbnails Strip */
.wccom-product-gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.wccom-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--cg-r-md);
  border: 2px solid var(--cg-line);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wccom-thumb-btn:hover {
  opacity: 1;
  border-color: var(--cg-brand);
  transform: translateY(-2px);
}

.wccom-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--cg-brand);
  box-shadow: 0 0 0 2px var(--cg-accent-mid);
}

.wccom-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wccom-thumb-video-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.wccom-product-single__section-hr {
  border: 0;
  border-top: 1px solid var(--cg-line);
  margin: 2.5rem 0;
}

/* ==========================================================================
   7. PRODUCT PROSE & FEATURE BREAKDOWN
   ========================================================================== */
.cg-product-prose {
  font-size: 1.0rem;
  line-height: 1.7;
  color: #374151;
}

.cg-product-prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: var(--cg-ink) !important;
  margin-top: 2.75rem !important;
  margin-bottom: 1rem !important;
}

.cg-product-prose h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--cg-ink) !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.65rem !important;
}

.cg-product-prose p {
  margin-bottom: 1.25rem;
  color: #374151;
}

.cg-product-prose strong {
  color: var(--cg-ink);
  font-weight: 600;
}

.cg-product-prose ul,
.cg-product-prose ol {
  margin: 1rem 0 1.75rem 1.5rem;
  padding: 0;
}

.cg-product-prose li {
  margin-bottom: 0.65rem;
  line-height: 1.65;
}

.cg-product-prose code {
  background: #F3F4F6;
  border: 1px solid var(--cg-line);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.88em;
  color: var(--cg-brand);
}

.cg-product-prose figure {
  margin: 2rem 0;
  text-align: center;
}

.cg-product-prose figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cg-r-md);
  border: 1px solid var(--cg-line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: block;
  margin: 0 auto;
}

.cg-product-prose figcaption {
  font-size: 0.825rem;
  color: var(--cg-muted);
  font-style: italic;
  margin-top: 0.65rem;
  text-align: center;
}

/* Comparison Table Styling */
.cg-product-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #ffffff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r-md);
  overflow: hidden;
  font-size: 0.9375rem;
}

.cg-product-prose th {
  background: #F9FAFB;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--cg-ink);
  border-bottom: 2px solid var(--cg-line);
  border-right: 1px solid var(--cg-line);
}

.cg-product-prose th:last-child {
  border-right: none;
}

.cg-product-prose td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--cg-line);
  border-right: 1px solid var(--cg-line);
  vertical-align: top;
  color: #374151;
}

.cg-product-prose td:last-child {
  border-right: none;
}

.cg-product-prose tr:last-child td {
  border-bottom: none;
}

.cg-product-prose tr:hover td {
  background: #FAF9F6;
}

/* ==========================================================================
   8. TECHNICAL SPECIFICATIONS SECTION
   ========================================================================== */
.wccom-product-specs-section {
  margin: 3rem 0;
  background: #ffffff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.wccom-section-title {
  font-size: clamp(1.4rem, 2vw, 1.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--cg-ink) !important;
  margin: 0 0 1.25rem 0 !important;
}

.wccom-specs-table-wrap {
  overflow-x: auto;
}

.wccom-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.wccom-specs-table th {
  width: 38%;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--cg-ink);
  border-bottom: 1px solid var(--cg-line);
  background: transparent;
}

.wccom-specs-table td {
  padding: 12px 14px;
  color: var(--cg-muted);
  border-bottom: 1px solid var(--cg-line);
}

.wccom-specs-table tr:last-child th,
.wccom-specs-table tr:last-child td {
  border-bottom: none;
}

.wccom-spec-badge {
  display: inline-block;
  background: var(--cg-green-bg);
  color: var(--cg-green-dark);
  border: 1px solid var(--cg-green-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ==========================================================================
   9. HIGH-IMPACT BOTTOM CTA BANNER
   ========================================================================== */
.wccom-bottom-cta-banner {
  margin: 3.5rem 0 2.5rem 0;
  background: var(--cg-dark);
  border-radius: var(--cg-r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(7, 11, 22, 0.35);
}

.wccom-bottom-cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 35, 50, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.wccom-bottom-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.wccom-bottom-cta-tag {
  display: inline-block;
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.wccom-bottom-cta-title {
  color: #ffffff !important;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 0.85rem 0 !important;
}

.wccom-bottom-cta-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.cg-btn-banner-buy {
  background: var(--cg-brand);
  color: #ffffff !important;
  border: none;
  padding: 13px 26px;
  border-radius: var(--cg-r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cg-btn-banner-buy:hover {
  background: var(--cg-brand-700);
  transform: translateY(-2px);
}

/* ==========================================================================
   10. FAQ ACCORDION
   ========================================================================== */
.wccom-product-faqs-section {
  margin: 3rem 0;
}

.wccom-product-faqs-list {
  display: flex;
  flex-direction: column;
}

.wccom-product-faqs-list__item {
  border-bottom: 1px solid var(--cg-line);
}

.wccom-product-faqs-list__item:first-child {
  border-top: 1px solid var(--cg-line);
}

.wccom-product-faqs-list__item-question {
  padding: 1.2rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cg-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.wccom-product-faqs-list__item-question::-webkit-details-marker {
  display: none;
}

.wccom-product-faqs-list__item-question:hover {
  color: var(--cg-brand);
}

.wccom-faq-toggle-icon {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--cg-faint);
  transition: transform 0.25s ease, color 0.2s ease;
  display: flex;
  align-items: center;
}

.wccom-product-faqs-list__item[open] .wccom-faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--cg-brand);
}

.wccom-product-faqs-list__item-answer {
  padding: 0 0 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cg-muted);
}

.wccom-product-faqs-list__item-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   11. STICKY PURCHASE SIDEBAR (.wccom-product-box)
   ========================================================================== */
.wccom-product-sidebar {
  position: relative;
}

@media (min-width: 992px) {
  .wccom-product-sidebar {
    position: sticky;
    top: 110px;
    z-index: 30;
  }
}

.wccom-product-box {
  background: #ffffff;
  border-radius: var(--cg-r-lg);
  padding: 1.75rem 1.5rem;
}

/* Scroll-Sticky Compact Product Header (Shown above price section when scrolled) */
.wccom-product-sticky-header {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin-bottom 0.25s ease;
}

.wccom-product-sticky-header.is-visible {
  display: block;
  opacity: 1;
  max-height: 140px;
  margin-bottom: 1.25rem;
}

.wccom-product-heading__compact-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wccom-product-icon--compact {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wccom-product-icon--compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wccom-product-icon__placeholder--compact {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cg-accent);
  color: var(--cg-brand);
}

.wccom-product-title--compact {
  flex: 1;
  min-width: 0;
}

.wccom-product-title--compact .wccom-product-title__product-name {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--cg-ink) !important;
  margin: 0 0 3px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wccom-product-title--compact .wccom-product-title__vendor {
  font-size: 0.8125rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wccom-product-title--compact .cg-vendor-link {
  color: #4B5563 !important;
  font-weight: 500;
  text-decoration: none;
}

.wccom-product-title--compact .cg-vendor-link:hover {
  color: var(--cg-brand) !important;
  text-decoration: underline;
}

/* Plan Selector Container (Light Gray Box Matching WooCommerce Reference) */
.wccom-billing-options-box {
  background: #F8F9FA;
  border-radius: var(--cg-r-md);
  padding: 14px 16px;
  margin-bottom: 1.15rem;
}

.wccom-product-subscription-plans {
  margin-bottom: 0;
}

.wccom-product-subscription-plans__header {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4B5563;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 10px;
}

.wccom-product-subscription-plans__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  margin-bottom: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.wccom-product-subscription-plans__list:last-child {
  margin-bottom: 0;
}

.wccom-product-subscription-plans__list:hover {
  opacity: 0.9;
  background: transparent;
  border: none;
}

.wccom-product-subscription-plans__list.is-selected {
  border: none;
  background: transparent;
  box-shadow: none;
}

.wccom-radio-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wccom-radio-button input[type="radio"] {
  accent-color: var(--cg-brand);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.wccom-radio-button__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1F2937;
  cursor: pointer;
}

.wccom-product-subscription-plans__price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wccom-product-subscription-plans__two-year-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wccom-plan-save-badge {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wccom-plan-strikethrough {
  font-size: 0.8125rem;
  text-decoration: line-through;
  color: #9CA3AF;
}

/* Actions */
.wccom-product-box__actions {
  display: flex;
  flex-direction: column;
}

.cg-btn-buy-now {
  width: 100%;
  height: 46px;
  background: var(--cg-brand);
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 35, 50, 0.18);
}

.cg-btn-buy-now:hover {
  background: var(--cg-brand-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(180, 35, 50, 0.24);
}

/* Secondary Actions (Dual 50/50 Outline Buttons Matching WooCommerce Marketplace) */
.wccom-product-box__secondary-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.cg-add-to-cart-container {
  min-width: 0 !important;
  width: 100% !important;
}

/* Force hide quantity on single product marketplace card */
.single-product div.product .wccom-product-box .quantity,
.single-product div.product .cg-add-to-cart-container .quantity,
.cg-add-to-cart-container .quantity,
.single-product div.product .cg-add-to-cart-container .cg-extra-buttons-container,
.wccom-product-box .cg-extra-buttons-container {
  display: none !important;
}

.single-product div.product .cg-add-to-cart-container form.cart {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

.single-product div.product .cg-add-to-cart-container .single_add_to_cart_button,
.single-product div.product .cg-add-to-cart-container button.button,
.single-product div.product .cg-add-to-cart-container a.button {
  width: 100% !important;
  height: 44px !important;
  line-height: 42px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--cg-brand) !important;
  color: var(--cg-brand) !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  text-decoration: none !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

.single-product div.product .cg-add-to-cart-container .single_add_to_cart_button:hover,
.single-product div.product .cg-add-to-cart-container button.button:hover,
.single-product div.product .cg-add-to-cart-container a.button:hover {
  background: #FFF4F4 !important;
  border-color: var(--cg-brand) !important;
  color: var(--cg-brand) !important;
}

.cg-btn-demo {
  width: 100% !important;
  height: 44px !important;
  line-height: 42px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--cg-brand) !important;
  color: var(--cg-brand) !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

.cg-btn-demo:hover {
  background: #FFF4F4 !important;
  border-color: var(--cg-brand) !important;
  color: var(--cg-brand) !important;
}

.cg-btn-demo svg {
  color: var(--cg-brand) !important;
}

/* Hide Top Billing Option Selector on Variable Products */
.single-product.product-type-variable .wccom-billing-options-box,
.product-type-variable .wccom-billing-options-box {
  display: none !important;
}

/* Variable Products Form in Sidebar */
.cg-variable-cart-wrap {
  margin-top: 0 !important;
  width: 100% !important;
}

.cg-variable-cart-wrap form.variations_form {
  margin: 0 0 16px 0 !important;
  padding: 22px 20px !important;
  background: #F8F9FA !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  width: 100% !important;
}

.cg-variable-cart-wrap .variations {
  width: 100% !important;
  border: none !important;
  margin-bottom: 12px !important;
  border-collapse: collapse !important;
}

.cg-variable-cart-wrap .variations tr,
.cg-variable-cart-wrap .variations td,
.cg-variable-cart-wrap .variations th {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  text-align: left !important;
  background: transparent !important;
}

.cg-variable-cart-wrap .variations th.label {
  padding-bottom: 6px !important;
}

.cg-variable-cart-wrap .variations label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  text-transform: capitalize !important;
  display: block !important;
  letter-spacing: normal !important;
}

.cg-variable-cart-wrap .variations select {
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #D1D5DB !important;
  padding: 0 12px !important;
  font-size: 0.9rem !important;
  color: #1F2937 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  outline: none !important;
}

.cg-variable-cart-wrap .variations select:focus {
  border-color: var(--cg-brand, #B42332) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 50, 0.12) !important;
}

.cg-variable-cart-wrap .reset_variations {
  font-size: 0.8125rem !important;
  color: var(--cg-brand, #B42332) !important;
  font-weight: 500 !important;
  display: inline-block !important;
  margin-top: 6px !important;
  text-decoration: underline !important;
}

.cg-variable-cart-wrap .single_variation_wrap {
  margin-top: 14px !important;
  width: 100% !important;
  text-align: left !important;
}

.cg-variable-cart-wrap .woocommerce-variation {
  margin-bottom: 14px !important;
  text-align: left !important;
}

.cg-variable-cart-wrap .woocommerce-variation-description {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #4B5563 !important;
  margin-bottom: 12px !important;
  text-align: left !important;
}

.cg-variable-cart-wrap .woocommerce-variation-description p {
  margin: 0 0 8px 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #4B5563 !important;
}

.cg-variable-cart-wrap .woocommerce-variation-price {
  margin-bottom: 16px !important;
  text-align: left !important;
}

.cg-variable-cart-wrap .woocommerce-variation-price .price {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--cg-brand, #B42332) !important;
  text-align: left !important;
  display: block !important;
}

.cg-variable-cart-wrap .woocommerce-variation-add-to-cart {
  display: flex !important;
  width: 100% !important;
  margin-top: 16px !important;
  gap: 10px !important;
}

.cg-variable-cart-wrap .quantity {
  display: none !important;
}

.cg-variable-cart-wrap .single_add_to_cart_button {
  width: 100% !important;
  height: 48px !important;
  background: var(--cg-brand, #B42332) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(180, 35, 50, 0.2) !important;
}

.cg-variable-cart-wrap .single_add_to_cart_button:hover {
  background: var(--cg-brand-700, #8F1725) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(180, 35, 50, 0.3) !important;
}

/* Price Breakdown Subtitle */
.wccom-product-box__price-breakdown {
  text-align: center;
  font-size: 0.8125rem;
  color: #6B7280;
  margin: 12px 0 0 0;
}

/* Third-Party Notice Callout Bar (White box with yellow/amber left border) */
.wccom-product-notice-callout {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #EAB308;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4B5563;
}

.wccom-notice-learn-more {
  color: #4B5563;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.wccom-notice-learn-more:hover {
  color: var(--cg-brand);
}

/* Latest Version Pill Box (Centered box matching reference) */
.wccom-product-version-pill-box {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
}

.wccom-version-caption {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 2px;
  font-weight: 400;
}

.wccom-version-number {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--cg-brand);
}

/* Subscription Includes */
.wccom-product-box__included-section,
.wccom-product-box__support-section,
.wccom-product-box__categories-section,
.wccom-product-box__quality-section,
.wccom-product-box__countries-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cg-line);
}

.wccom-product-box__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cg-info-icon {
  font-size: 0.8125rem;
  color: #9CA3AF;
  cursor: help;
  font-weight: normal;
}

.wccom-tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wccom-tick-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84375rem;
  color: #4B5563;
  margin-bottom: 0.65rem;
}

.wccom-tick-list li:last-child {
  margin-bottom: 0;
}

.wccom-tick-list svg {
  flex-shrink: 0;
}

.cg-quality-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4B5563;
  font-size: 0.84375rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cg-quality-link:hover {
  color: var(--cg-brand);
}

.cg-quality-link svg {
  flex-shrink: 0;
  color: #4B5563;
}

/* Support Links */
.wccom-support-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wccom-support-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: #4B5563;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wccom-support-link:hover {
  color: var(--cg-brand);
}

.wccom-support-link svg {
  color: #4B5563;
}

/* Categories Pills */
.wccom-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wccom-category-pill {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wccom-category-pill:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
}

/* Country */
.wccom-country-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84375rem;
  color: #4B5563;
}

/* Support Links */
.wccom-support-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wccom-support-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cg-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wccom-support-link:hover {
  color: var(--cg-brand);
}

.wccom-support-link svg {
  color: var(--cg-brand);
}

/* Categories Pills */
.wccom-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wccom-category-pill {
  background: #F3F4F6;
  border: 1px solid var(--cg-line);
  color: var(--cg-ink);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wccom-category-pill:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
}

/* Country */
.wccom-country-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--cg-muted);
}

/* ==========================================================================
   12. RELATED PRODUCTS RECOMMENDATIONS (Full-Width Below Grid)
   ========================================================================== */
.wccom-product-recommendations-wrapper {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--cg-line);
}

.wccom-product-recommendations-wrapper h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.0rem) !important;
  font-weight: 600 !important;
  color: var(--cg-ink) !important;
  margin-bottom: 2rem !important;
}

/* Modern Related Products Grid */
.wccom-product-recommendations-wrapper ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 991px) {
  .wccom-product-recommendations-wrapper ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .wccom-product-recommendations-wrapper ul.products {
    grid-template-columns: 1fr !important;
  }
}

.wccom-product-recommendations-wrapper ul.products li.product {
  background: #ffffff !important;
  border: 1px solid var(--cg-line) !important;
  border-radius: var(--cg-r-lg) !important;
  padding: 1.5rem 1.25rem !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.wccom-product-recommendations-wrapper ul.products li.product:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(180, 35, 50, 0.35) !important;
  box-shadow: 0 12px 24px -6px rgba(180, 35, 50, 0.12) !important;
}

.wccom-product-recommendations-wrapper ul.products li.product img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: var(--cg-r-md) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin: 0 0 1rem 0 !important;
}

.wccom-product-recommendations-wrapper ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--cg-ink) !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
}

.wccom-product-recommendations-wrapper ul.products li.product .price {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--cg-ink) !important;
  margin-top: auto !important;
  margin-bottom: 0.85rem !important;
}

.wccom-product-recommendations-wrapper ul.products li.product .button {
  background: var(--cg-accent) !important;
  color: var(--cg-brand) !important;
  border: 1px solid rgba(180, 35, 50, 0.2) !important;
  border-radius: var(--cg-r-md) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

.wccom-product-recommendations-wrapper ul.products li.product .button:hover {
  background: var(--cg-brand) !important;
  color: #ffffff !important;
  border-color: var(--cg-brand) !important;
}

/* ==========================================================================
   13. GLOBAL TRUST GUARANTEE FOOTER BAR
   ========================================================================== */
.wccom-product-trust-strip {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cg-line);
}

.wccom-trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.wccom-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--cg-ink);
}

.wccom-trust-strip-item strong {
  font-weight: 600;
}

.wccom-trust-strip-item svg {
  flex-shrink: 0;
}

/* ==========================================================================
   14. STICKY BOTTOM PURCHASE BAR
   ========================================================================== */
.wccom-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--cg-line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 1.5rem;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.wccom-sticky-bottom-bar.is-visible {
  transform: translateY(0);
}

.wccom-sticky-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wccom-sticky-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wccom-sticky-bottom-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.wccom-sticky-bottom-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.wccom-sticky-bottom-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cg-brand);
}

.cg-sticky-bottom-action-btn {
  background: var(--cg-brand);
  color: #ffffff !important;
  border: none;
  padding: 10px 22px;
  border-radius: var(--cg-r-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.cg-sticky-bottom-action-btn:hover {
  background: var(--cg-brand-700);
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS (Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .wccom-breadcrumb,
  .cg-marketplace-breadcrumb {
    display: none !important;
  }

  .single-product-container {
    padding-top: 100px !important;
  }
  
  .wccom-product-heading__row--title {
    flex-direction: column;
    gap: 12px;
  }
  
  .wccom-trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .wccom-product-specs-section {
    padding: 1.25rem;
  }
  
  .wccom-specs-table th,
  .wccom-specs-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  
  .wccom-sticky-bottom-title {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .wccom-product-box__secondary-actions {
    flex-direction: column;
  }
  
  .wccom-product-gallery-thumbnails {
    gap: 8px;
  }
  
  .wccom-thumb-btn {
    width: 60px;
    height: 60px;
  }
}
