/* Basic styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #2f2b2f;
}

.layout {
  display: flex;
  flex-wrap: wrap;       /* allows wrapping on small screens */
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;    /* prevents the layout from stretching horizontally */
}

@media (max-width: 768px) {
  .layout {
    display: block;
    min-height: auto;
  }

  footer {
    position: relative;
    width: 100%;
    margin-top: 40px;
    /* Adds a nice gap after your long text */
  }
}

.sidebar {
    width: 250px;
    padding: 8px;
    background-color: #f1f1f1;
    border-right: 1px solid #ced1d5;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* This replaces the need for margin-bottom on sideBox */
}

.sidebar label {
    display: block; 
  }
  
.filter{
    margin-bottom: 30px;
}
.sidebar input[type="number"] {
    padding: 6px 10px;
    border: 1px solid #ced1d5;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.sideBox{
    border-bottom: 1px solid #ced1d5;
    padding-top: 10px; 
    padding-bottom: 20px;
    display: flow-root;
}

.filter-tab {
  position: fixed;
  bottom: 5%;            /* middle of viewport vertically */
  left: 0;                /* left edge of viewport */
  background-color: #666666;
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transition: left 0.3s;
}

.sidebar.sidebar-open + .filter-tab {
  left: -100px; /* move tab off-screen when sidebar opens */
}

@media(min-width: 769px) {
  .filter-tab {
    display: none; /* hide tab on desktop */
  }
}

/* Sidebar slide-in for mobile */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    transform: translateX(-100%);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .content {
    width: 100%;
    padding: 10px;
  }

  /* Overlay hidden by default */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
  }

  /* Overlay visible when sidebar is open */
  .overlay.visible {
    display: block;
  }
}

.content {
    flex-grow: 1;
    padding: 1em;
    flex: 1 1 0;
    min-width: 0;          /* critical: allows content to shrink inside flexbox */
    overflow-x: hidden;    /* contain any internal overflow */
}

.content h1{
  margin-block-end: 5px;
}

@media (max-width: 768px) {
  .content {
    box-sizing: border-box; /* ensures padding is included in width */
  }
}

.insight-content {
  max-width: 700px;
  padding: 10px;
  margin:auto;
}

.insight-content {
  flex-grow: 1;
  padding: 1em;
  flex: 1 1 0;
  min-width: 0;
  /* critical: allows content to shrink inside flexbox */
  overflow-x: hidden;
  /* contain any internal overflow */
}

@media (max-width: 768px) {
  .insight-content {
    box-sizing: border-box;
    width: 100%;
    /* ensures padding is included in width */
  }
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ffffff;
    text-align: center;
}

th {
    background-color: #b4c0cd
}

table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f1f1f1;
}

.highlight-col-header{
    background-color: #93a1af
}

.highlight-col {
  background-color: #e0e0e0;
}


/* Description toggle */
.description {
    margin: 0 0 20px;
}

#full-desc, #short-desc {
    transition: opacity 0.3s ease;
}

.class-average-row{
    background-color: #dfe5eb;
}

.product-count {
    margin: 1em 0 0;
    color: #5b718a;
}

.description-header {
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    margin: 0 0 10px;
    border-bottom: 1px solid #ced1d5;
}

.description-toggle {
    font-size: 1.2em;
    color: #2f2b2f;
    transition: transform 0.2s ease;
}

.description-toggle.up {
    transform: rotate(180deg);
}

.body-header{
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    margin: 0 0 10px;
    border-bottom: 1px solid #ced1d5;
}

.comparison-table{
  margin: 0 0 50px 0;
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-x:auto;
}

/* Freeze first two columns */
.comparison-table-wrapper {
  position: relative;
  overflow-x: auto;
}

/* Base setup for sticky cells */
.comparison-table th,
.comparison-table td {
  position: relative;
}

/* First column (Fav) */
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3; /* on top of scrolling cells */
  width: 50px;
  box-shadow: 1px 0 0 #ffffff;
}

/* Second column (Name) */
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  position: sticky;
  left: 51px; /* width of first column */
  z-index: 2;
  box-shadow: 1px 0 0 #ffffff;
}

/* Keep alternating row colors for sticky columns */
.comparison-table tbody tr:nth-child(odd) td:nth-child(1),
.comparison-table tbody tr:nth-child(odd) td:nth-child(2) {
  background-color: #ffffff;
  box-shadow: 1px 0 0 #ffffff;
}

.comparison-table tbody tr:nth-child(even) td:nth-child(1),
.comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background-color: #f1f1f1;
  box-shadow: 1px 0 0 #ffffff;
}

.spec-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.class-statements{
  margin: 50px 0;
}

.class-statements ul li {
    margin-bottom: 0.5em; /* Adds space below each list item */
}

/* Optional: remove extra space after the last item */
.class-statements ul li:last-child {
    margin-bottom: 0;
}


.ranking-factors {
  margin: 50px 0;
}
/* Add spacing between list items inside Ranking Factors */
.ranking-factors ul li {
    margin-bottom: 0.5em; /* adjust as needed */
}

/* Optional: remove bottom margin from the last item of each list */
.ranking-factors ul li:last-child {
    margin-bottom: 0;
}

.spec-col {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  text-align: center; /* Optional: center the text and bar */
}

.class-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.class-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.class-details {
  font-size: 0.95rem;
  line-height: 1.5;
}


/* Product Page Css */
.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  margin-top: 50px;
}

.product-img-box {
  max-width: 200px;
  flex: 0 0 200px;
}

.product-details {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Brand Page Css */
.brand-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-img-box {
  max-width:200px;
  flex: 0 0 200px;
}

.brand-img {
  max-width: 200px;
  flex: 0 0 200px;
  width: 100%;
  height: auto;
  display: block;
}

.brand-details {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-left: 20px;
}

.brand-details h1 {
  margin: 0px;
}

.audit-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666666;
}

.spec-name{
  text-align: left;
  font-weight: bold;
}

.rank-box-container {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

.rank-box-link,
.rank-box-link.no-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1 1 120px;
}

.rank-box {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.rank-box-link:hover .rank-box {
  background-color: #eaeaea; /* slightly darker */
  text-decoration: none;
}

/* Disable hover for .no-link */
.rank-box-link.no-link:hover .rank-box {
  background-color: #f7f7f7; /* original color */
  cursor: default;
}

.rank-box-link:hover {
  text-decoration: none; /* prevent underline on hover */
}

.rank-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #666666;
}

.rank-total {
  font-size: 0.9rem;
  color: #666;
}

.brand-strength-box {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.brand-strength-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.brand-strength-label {
  font-size: 1.5rem;
  font-weight: bold;
}

.label-text {
  color: #666666; /* colored label */
}

.score-text {
  color: #2f2b2f; /* standard font color */
  font-size: 1rem; /* slightly smaller than label */
  font-weight: normal; /* optional: make the score less bold */
  margin-left: 0.3rem;
}


.brand-factors-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.brand-factors-table td {
    padding: 0.4em 0.6em;
    vertical-align: top;
    text-align: left;
}
.brand-factors-table td.factor-name {
    width: 30%;
    font-weight: 600;
    color: #2f2b2f;
}
.brand-factors-table td.factor-value {
    width: 70%;
    color: #2f2b2f;
}
.brand-factors-table tr:nth-child(even) {
    background-color: #f1f1f1;
}

.brand-factor-group-header {
    background: #b4c0cd;
    color: #2f2b2f;
    padding: 0.4em 0.6em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}


.brand-factor-group-header .group-label {
    margin-left: 0.5em;
    font-size: 1em;
    color: #666666;
}

.brand-factor-group-header .group-score {
    margin-left: 0.25em;
    font-size: 0.8em;
    font-weight: 400;
    color: #2f2b2f;
}

@media (max-width: 768px) {
    .brand-factors-table td.factor-name,
    .brand-factors-table td.factor-value {
        width: 50%;
    }
}

.brand-statements {
  margin-bottom: 3em;
}

.brand-statements ul li {
    margin-bottom: 0.5em; /* Adds space below each list item */
}

.out-of{
  text-align: right;
}

.bar-wrapper {
  width: 100%;
  max-width: 200px;
}

.bar-background {
  position: relative;
  height: 10px;
  background-color: #b4c0cd;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #4A5568;
  border-radius: 5px 0 0 5px;
}

.bar-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: white;
  opacity: 0.8;
}

.bar-cell {
  width: 220px;
  min-width: 200px;
}

.rank-symbol {
  font-size: 0.6em;
  vertical-align: super;
}

.available-at {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.retailer-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ced1d5;
}

.retailer-logo-product {
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-right: 50px;
}

.retailer-price {
  font-size: 1rem;
  font-weight: bold;
  margin-left: auto;
}

/* END Product Page Css */

.quadrant-chart {
  flex: 1 1 0; /* grow and shrink as needed */
  min-width: 0; /* allow it to shrink below its content if needed */
  max-width: 100%;
}

#echart,
#featured-class-chart {
  width: 100%;
  height: 400px;
  box-sizing: border-box;
}


@media (max-width: 768px) {
  .class-layout {
    flex-direction: column;
  }

  .class-info,
  .quadrant-chart {
    flex: 1 1 100%;
  }
}

/* Utility */
.hidden {
    display: none;
}

.button {
    border-radius: 5px;
    padding: 5px 20px;
    background-color: #2f2b2f;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

/* Hover effect */
.button:hover {
    background-color: #575257;
}

/* Active/click effect */
.button:active {
    background-color: #575257;
    transform: scale(0.97);
}


/* Drag and drop spec items */
.spec-item {
    padding: 8px;
    border: 1px solid #ccc;
    margin-bottom: 4px;
    background: #ffffff;
    cursor: grab;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    display: flex;
}

.draggable:active {
    cursor: grabbing;
}

.drag-handle {
    font-size: 18px;            /* Adjust size as needed */
    color: #999;
    margin-right: 10px;
    display: flex;
    align-items: center;        /* Vertically center */
    cursor: grab;
    user-select: none;
}

.spec-text {
    flex: 1;
    min-width: 0;
}

.dragging .spec-item:hover {
    background-color: inherit;
}

.spec-item:hover {
    background-color: #e3e7ed;
}

.dragging .spec-item:active {
    background-color: inherit;
    border-color: #ccc;
}

.spec-item.vuedraggable-dragging {
    opacity: 0.7;
    border-color: #777;
}

.spec-item.is-chosen {
    background-color: #d0d0d0;
    border-color: #666;
    opacity: 1;
}

.spec-item.is-ghost {
    opacity: 0.1;
    border-style: dashed;
}



/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 60px;
  background-color: #2f2b2f;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 24px;
  font-weight: bold;
}

.site-header .logo {
  font-family: sans-serif;
}

.logo a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }

.logo a:hover{
    text-decoration: none;
    color: #dddddd;
}

.sidebar h4 {
    font-size: 1.25rem;      /* 20px */
    font-weight: 600;        /* Semi-bold */
    margin: 0.5em 0 0.5em;     /* Top/bottom spacing */
    line-height: 1.4;
    color: #2f2b2f;             /* Dark gray for better readability */
}
  
input.custom-slider {
    -webkit-appearance: none; /* Chrome, Safari, Opera */
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    margin-top: 6px;
  }
  
  /* Min Score Slicder inverted */
  .custom-slider.inverted {
    direction: rtl;
  }


  /* WebKit (Chrome, Safari) thumb */
  input.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666666; /* Customize color */
    cursor: pointer;
    box-shadow: 0 0 2px #333;
    transition: background 0.3s;
  }
  
  input.custom-slider::-webkit-slider-thumb:hover {
    background: #666666;
  }
  
  /* Firefox track */
  input.custom-slider::-moz-range-track {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
  }
  
  /* Firefox thumb */
  input.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666666;
    cursor: pointer;
    border: none;
  }
  
  .quadrant-filters {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    max-width: 300px;
    background: #ffffff;
  }
  
  .quadrant-filters legend {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .quadrant-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2px;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
  }
  
  /* Color coding by quadrant */
  .q1 {
    background-color: #ffffff;
  }
  .q2 {
    background-color: #ffffff; 
  }
  .q3 {
    background-color: #ffffff; 
  }
  .q4 {
    background-color: #ffffff; 
  }
  
  /* Optional: checkbox styles */
  .quadrant-label input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #666666;
  }
  
/* Assign unique checkbox colors per quadrant */
.q1 input[type="checkbox"] {
    accent-color: #666666; /* Great Value - green */
  }
  
  .q2 input[type="checkbox"] {
    accent-color: #666666; /* Premium - blue */
  }
  
  .q3 input[type="checkbox"] {
    accent-color: #666666; /* Budget - orange */
  }
  
  .q4 input[type="checkbox"] {
    accent-color: #666666; /* Overpriced - red */
  }
  
  .favorite-cell {
    text-align: center;
    width: 40px; /* or appropriate width */
    cursor: pointer;
    user-select: none;
  }
  
  .favorite-star {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    color: #b4c0cd; /* outline color */
    background-color: #ffffff;
    border-radius: 3px;
    padding: 2px 6px;
    border: 1px solid #b4c0cd;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
  }
  
  .favorite-star.favorited {
    background-color: #666666;
    color: #ffffff;
    border: none;
  }

  .toggle-switch {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    gap: 10px;
  }
  
  .toggle-switch input {
    display: none;
  }
  
  .toggle-switch .slider {
    display: inline-block; /* Needed for width/height to apply */
    vertical-align: middle; /* Align it with text */
    position: relative;
    margin: 0 15px;
    width: 40px;
    height: 20px;
    background-color: #666666;
    border-radius: 20px;
    transition: 0.3s;
    flex-shrink: 0;
  }
  
  .toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
  }
  
  .toggle-switch input:checked + .slider {
    background-color: #666666;
  }
  
  .toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
  }
  
/* Modal container - hidden via v-if unless shown */
.retailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Dim background behind modal */
  .modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  /* Modal content box */
  .modal-content {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    z-index: 1001; /* Above overlay */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }
  
  .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1002; /* higher than overlay */
  }
  
  .modal-close:hover {
    color: #666666; /* Optional hover color */
  }
.pop-product-name{
  font-size: 1.5em;
}
  /* Optional: Style for logos */
  .retailer-logo {
    max-height: 24px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  a {
    text-decoration: none;
    color: #3182CE;
  }
  
  a:hover {
    text-decoration: underline;
    color: #1e5282; /* Slightly darker for hover if desired */
  }
  
  .retailer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  .retailer-table td {
    padding: 8px 12px;
    vertical-align: middle;
  }
  
  .retailer-table tr {
    border-bottom: 1px solid #b4c0cd;
  }
  
  .retailer-table tr:last-child {
    border-bottom: none;
  }
  
  .retailer-logo {
    max-height: 24px;
    max-width: 100px;
    vertical-align: middle;
  }
  
  .featured-class-box {
    width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    background: #fff;
    box-sizing: border-box;
    line-height: 1.5em;
    display: flex;
    align-items: flex-start;
}
.featured-category-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.class-image {
  flex: 0 0 150px;
  margin-right: 20px;
}

.class-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* home page class info */
.class-info {
  flex: 1;
}

.class-info h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.class-info a {
  text-decoration: none;
  color: inherit;
}

.category-header {
  width: 100%;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.link-title a {
  text-decoration: none;     /* removes underline */
  color: inherit;            /* inherits the color from h2 */
}

.link-title a:hover {
  color: #534b53;
}

/* Explore section: flexbox layout like home page */
.explore-more {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
}


/* Container for comparison */
.image-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* Individual image box */
.image-comparison-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

/* Images scale to container */
.image-comparison-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  /* optional subtle border */
  border-radius: 4px;
  /* optional rounded corners */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* optional shadow */
  margin-bottom: 5px;
}

/* Brand caption */
.image-comparison-item p {
  margin: 0;
  font-size: 0.95rem;
}

.content-comparison-table {
  margin: 0 0 50px 0;
}

.content-comparison-table th {
  background-color: #b4c0cd;
  font-weight: bold;
}

/* Keep alternating row colors for sticky columns */
.content-comparison-table tbody tr:nth-child(odd) td:nth-child(1),
.content-comparison-table tbody tr:nth-child(odd) td:nth-child(2) {
  background-color: #ffffff;
  box-shadow: 1px 0 0 #ffffff;
}

.content-comparison-table tbody tr:nth-child(even) td:nth-child(1),
.content-comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background-color: #f1f1f1;
  box-shadow: 1px 0 0 #ffffff;
}


/* Layout Container */
.product-header-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* Badge Base Architecture - Fixed Size */
.winnowl-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-width: 120px;
  height: 80px;

  padding: 10px;
  border-radius: 5px;
  text-align: center;
  outline: 2px solid;
  outline-offset: 3px;
  flex-shrink: 0;
  /* Prevents the badge from shrinking if the H1 is long */
}

.badge-label {
  font-size: 1.5em;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.badge-divider {
  width: 40px;
  /* Fixed width divider looks cleaner than a percentage */
  height: 2px;
  margin: 8px 0;
}

.badge-score {
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1;
}

.badge-context {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Small variant for tables */
.winnowl-badge.sm {
  width: 80px;
  /* Narrower for table columns */
  min-width: 80px;
  height: 60px;
  /* Shorter */
  padding: 5px;
  outline-width: 1px;
  /* Thinner outline for smaller scale */
  outline-offset: 2px;
}

.winnowl-badge.sm .badge-label {
  font-size: 1em;
  /* Scaled down */
}

.winnowl-badge.sm .badge-divider {
  width: 25px;
  /* Smaller divider */
  margin: 4px 0;
}

.winnowl-badge.sm .badge-score {
  font-size: .9em;
  /* Scaled down */
}

.pillar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.pillar-label-value {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pillar-score-value {
  font-size: 0.75rem;
}

/* Tier Color Management */
.win-elite {
  border-color: #008450;
  color: #ffffff;
  background-color:#008450;
  outline-color: #008450;
}

.win-elite .badge-divider {
  background: #ffffff;
}

.win-strong {
  border-color: #204d8d;
  color: #ffffff;
  background-color: #204d8d;
  outline-color: #204d8d;
}

.win-strong .badge-divider {
  background: #ffffff;
}

.win-average {
  border-color: #4A5568;
  color: #ffffff;
  background-color: #4A5568;
  outline-color: #4A5568;
}

.win-average .badge-divider {
  background: #ffffff;
}

.win-lagging {
  border-color: #C05621;
  color: #ffffff;
  background-color: #C05621;
  outline-color: #C05621;
}

.win-lagging .badge-divider {
  background: #ffffff;
}

.win-deficient {
  border-color: #9B2C2C;
  color: #ffffff;
  background-color: #9B2C2C;
  outline-color: #9B2C2C;
}

.win-deficient .badge-divider {
  background: #ffffff;
}

.win-ghost {
  border-color: #4A154B;
  color: #ffffff;
  background-color: #4A154B;
  outline-color: #4A154B;
}

.win-ghost .badge-divider {
  background: #ffffff;
}

.text-win-elite {
  color: #008450;
  font-weight: bold;
  text-transform: uppercase;
}

.text-win-strong {
  color: #204d8d;
  font-weight: bold;
  text-transform: uppercase;
}

.text-win-average {
  color: #4A5568;
  font-weight: bold;
  text-transform: uppercase;
}

.text-win-lagging {
  color: #C05621;
  font-weight: bold;
  text-transform: uppercase;
}

.text-win-deficient {
  color: #9B2C2C;
  font-weight: bold;
  text-transform: uppercase;
}

.text-win-ghost{
  color: #4A154B;
  font-weight: bold;
  text-transform: uppercase;
}

/* 1 & 2. Header Layout (Image 200x200 & Inline Name) */
.product-header-container {
  display: flex;
  align-items: flex-start;
  /* Aligns name to top of image */
  gap: 24px;
  margin-bottom: 20px;
}

.product-header-container .product-img img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.product-header-container h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #333;
}

/* 3. Verdict Container Styles */
.verdict-container {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  /* Ensures padding doesn't break 100% width */
  margin-bottom: 30px;
}


.verdict {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.winnowl-badge {
  flex-shrink: 0;
  /* Prevents badge from squishing */
  /* Assuming your existing badge styles handle internal padding/colors */
}

.verdict-statement {
  flex-grow: 1;
  /* Fills remaining width */
  font-size: 1.1rem;
  line-height: 1.5;
  /* Sets it apart as a "quote" or "judgment" */
}

/* Narrow Screens (Mobile) */
@media (max-width: 600px) {
  .verdict {
    flex-direction: column;
    /* Stacks elements vertically */
    align-items: flex-start;
    /* Keeps badge and text left-aligned */
  }

  .winnowl-badge {
    margin-bottom: 10px;
    /* Adds a little breathing room before the text starts */
  }
}

/* Remove the default top margin from the H2 inside the verdict */
.verdict-statement h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.1;
  color: #666666;
}

/* Pricing and Retailer section inside the Verdict Container */
.verdict-container .available-at {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  align-items: center;
}

.retailer-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
}


/* The Grid Container */
.verdict-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2x2 on Desktop */
  gap: 15px;
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Individual Pillar Cards */
.pillar-card {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pillar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
  margin-bottom: 5px;
  font-weight: bold;
}

.pillar-main {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.pillar-data {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}

/* Sentiment Dots for Performance Pillar */
.sentiment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.green {
  background: #28a745;
}

.dot.red {
  background: #dc3545;
}

/* Mobile Responsive: 1x4 */
@media (max-width: 768px) {
  .verdict-pillars {
    grid-template-columns: 1fr;
    /* Stacks vertically */
  }

  .product-header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Color Modifiers for your existing bar-fill */
.bar-fill.green {
  background-color: #008450;
}

.bar-fill.grey {
  background-color: #4A5568;
}

.bar-fill.red {
  background-color: #9B2C2C;
}

/* Ensure the pillar layout handles these bars well */
.pillar-sentiment-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.sentiment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sentiment-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  font-weight: bold;
}

/* Add this to your styles for the Diverging Look */
.bar-background.diverging {
  position: relative;
  overflow: hidden;
}

/* The vertical "Truth Line" at 1.0 */
.truth-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #333;
  z-index: 2;
}

.bar-fill.from-center {
  position: absolute;
  height: 100%;
  transition: width 0.4s ease;
}


.mvi-gauge-container {
  margin-top: 30px;
}

/* The Track & Center Line */
.mvi-track {
  position: relative;
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
}

.mvi-truth-line {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #334155;
  z-index: 10;
}

/* The Bar Colors (Binary) */
.mvi-fill {
  position: absolute;
  height: 100%;
  border-radius: 6px;
}

.mvi-fill.green {
  background-color: #008450;
}

.mvi-fill.red {
  background-color: #9B2C2C;
}


.mvi-track {
  position: relative;
  background: #e0e0e0;
  height: 12px;
  border-radius: 6px;
  overflow: visible; /* Allows the line to slightly peek out */
}

/* The Vertical "Fair Price" Notch */
.mvi-truth-line {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #333;
  z-index: 5;
}

/* Left-to-Right Fill */
.mvi-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease-in-out;
}

.mvi-labels {
  position: relative;
  /* Essential for the absolute label */
  height: 20px;
  /* Give the labels some breathing room */
  margin-top: 8px;
  font-size: 11px;
  color: #666666;
}

/* Keep the side labels at the edges */
.mvi-label-side-left {
  position: absolute;
  left: 0;
}

.mvi-label-side-right {
  position: absolute;
  right: 0;
}

/* Lock "Fair" to the 75% mark */
.mvi-label-center {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  /* This perfectly centers the word UNDER the line */
  font-weight: bold;
  /* Optional: makes the anchor point clearer */
}


/* The Tier Label Colors */
.tier-peak,
.tier-high {
  color: #008450;
}

.tier-fair {
  color: #4A5568;
}

.tier-low,
.tier-poor {
  color: #9B2C2C;
}

.retailer-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pillar-card .retailer-list {
  max-height: 220px;
  /* Ensures it stays uniform with other cards */
  overflow-y: auto;
}

.buy-btn:active {
  transform: translateY(0);
  /* "Push" effect when clicked */
}


.retailer-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  /* Prevents the parent from squeezing the button */
  min-width: 140px;
  /* Gives the price and button enough breathing room */
}

/* Updated Button Logic */
.buy-btn {
  /* 1. Force the container to be the link */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* 2. Fixed Dimensions for a solid hitbox */
  width: 90px;
  height: 32px;

  /* 3. Visuals */
  background-color: #333 !important;
  color: #fff !important;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none !important;
  /* Kill the underline here */

  /* 4. Interaction */
  cursor: pointer !important;
  position: relative;
  z-index: 10;
  transition: background 0.2s;
}

.buy-btn:hover {
  background-color: #b4c0cd !important;
  text-decoration: none !important;
  /* Kill the underline here too */
  cursor: pointer !important;
}

/* 5. The "Dead Zone" Killer */
/* This prevents the 'View Deal' text from intercepting the mouse */
.buy-btn {
  pointer-events: auto;
}

footer {
  background-color: #2f2b2f;
  color: #ffffff;
  padding: 40px 0;
  border-top: 1px solid #333;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.footer-legal-block {
  margin-bottom: 20px;
}

.footer-disclaimer,
.footer-affiliate {
  font-size: 0.85rem;
  color: #666666;
  /* Muted gray */
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Container for the price and logo */
.retailer-buy-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-action-link {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  width: 110px;
  /* Adjust based on your column width */
  text-align: center;
  transition: all 0.2s ease;
}

.price-action-link:hover {
  border-color: #333;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-retailer-logo {
  max-height: 20px;
  max-width: 80px;
  margin-bottom: 4px;
  margin-top: 5px;
  filter: grayscale(20%);
  /* Optional: keeps the auditor look muted */
}

.price-value {
  color: #2f2b2f;
}

.insight {
  text-align: left;
}

/* The Accordion Container */
.spec-accordion {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px;
}

/* The Clickable Header */
.spec-accordion summary {
  cursor: pointer;
  font-size: 1.1rem;
  color: #2c3e50;
  list-style: none;
  /* Removes the default arrow in some browsers */
}

/* Row separation inside the accordion */
.outcome-row {
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}

.outcome-row:last-child {
  border-bottom: none;
}

/* The Range Pill */
.range-pill {
  display: inline-block;
  background: #e9ecef;
  color: #495057;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 8px;
  border: 1px solid #dee2e6;
}

/* Text Styling */
.user-outcome {
  margin-bottom: 5px;
  color: #333;
}

section {
  margin-top: 30px;
  margin-bottom: 60px;
  width: 100%;
  clear: both;
}

.benchmark-container{
  margin-top: 60px;
}

section ul li {
  margin-bottom: 12px;
  line-height: 1.5;
}

section ul li:last-child {
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  min-height: 80px;
}

.product-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.product-title a {
  color: #2c3e50;
  text-decoration: none;
}

.card-thumb {
  flex-shrink: 0;
  /* Prevents the image from being squished */
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Keeps the mower's proportions correct */
}

.card-pillars {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.pillar-row {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.card-action-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-insight {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  height: 50px;
  margin-bottom: 10px;
}

.brand-link img {
  max-height: 35px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: all 0.2s ease;
}

.brand-link img:hover {
  filter: grayscale(50%);
  opacity: .7;
}


.class-header-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
  width: 100%;
}

.class-image-container {
  flex: 0 0 250px;
  text-align: center;
}

.class-thumbnail {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: block;
}

.class-summary-box {
  flex: 1;
  min-width: 0;
}

.class-summary-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.summary-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  max-width: 800px;
}

.disclosure {
  font-size: 0.8rem;
  color: #666666;
  margin-top: 15px;
  font-style: italic;
}

@media (max-width: 768px) {
  .class-header-flex {
    flex-direction: column;
  }

  .class-image-container {
    flex: 1 1 auto;
    width: 100%;
  }
}

.class-quick-stats{
  margin-top: 35px;
}

.summary-winners {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.winner-row {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.winner-label {
  font-weight: 700;
  color: #2c3e50;
  display: inline-block;
  width: 180px;
  /* Aligns the product names */
}

.editorial-byline {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.insight-section{
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 30px;
}

.insight-section h3{
  color: #666666;
}

.class-subgroup-title {
  letter-spacing: 0.5px;
  margin: 15px 0 5px 0;
  border-bottom: 1px solid #eee;
  display: inline-block;
  width: 100%;
}

/* Reset the default list style */
.insight-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.insight-list li {
  position: relative;
  padding-left: 28px;
  /* Extra space for the icon */
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #333;
}

/* Strength Icon (Checkmark) */
.bullet-strength::before {
  content: "+";
  color: #008450;
  position: absolute;
  left: 0;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Weakness Icon (Heavy X) */
.bullet-weakness::before {
  content: "\2212";
  color: #9B2C2C;
  position: absolute;
  left: 0;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Neutral Icon (Dash) */
.bullet-neutral::before {
  content: "\2022";
  color: #767676;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.class-group-wrapper{
  margin-top: 50px;
  border-top: 1px solid #eee;
}

.logo-cell {
  width: 60px;
  /* Fixed width for consistency */
  text-align: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.logo-wrapper img {
  max-height: 30px;
  width: auto;
  display: block;
}

/* The Placeholder Styling */
.logo-placeholder {
  width: 32px;
  height: 32px;
  background-color: #f0f0f0;
  /* Neutral lab gray */
  color: #666;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  text-transform: uppercase;
}


.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
  gap: 1.25rem;
  margin: 2rem 0;
}

.metric-card {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 0.9rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #666;
  margin: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.metric-note {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.3;
}

.audit-table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 3rem;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
  border: 1px solid #eee;
}

.audit-table th {
  background: #f8f8f8;
  padding: 12px;
  border-bottom: 2px solid #ddd;
  font-size: 0.85rem;
}

.audit-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.pillar-score {
  font-family: monospace;
  font-weight: bold;
}

.summary-note-cell {
  font-size: 0.9rem;
  color: #444;
  font-style: italic;
  max-width: 300px;
}