/* Original CSS */

/* ===== Universal Offers Pills ===== */
.offers-pills-block { margin: 12px 0 8px; }
.offers-pills-block .bf-pills-header { font-weight: 600; margin-bottom: 8px; }


.offers-pills-block {
  --bf-current-bg: #eafbf0;      /* soft green for offers (optional) */
  --bf-current-border: #c9f0d5;
  --bf-current-text: #0f172a;
}

.mpc-old-price {
	font-size:12px;
	text-decoration:line-through;
}

/* Keep your variables as-is */
:root{
  --bf-accent: #00ff8c;
  --bf-accent-rgb: 0, 255, 140;
}

.specialty-banner.specialty-black-friday{
  position: relative;            
  background: linear-gradient(180deg, #121214 0%, #0f0f10 100%);
  color:#fff;
  padding:16px 18px;
  border-radius:12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,0.06);
  margin:16px 0;
  border-top: none;
  overflow: visible;            
}


.specialty-banner.specialty-black-friday::before{
  content:"";
  position:absolute;
  inset:-10px;                  
  z-index:-1;                    
  pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% -10%,
      rgba(var(--bf-accent-rgb), .40) 0%,
      rgba(var(--bf-accent-rgb), .20) 30%,
      transparent 65%);
  filter: blur(18px);
}


.specialty-banner.specialty-black-friday{
  box-shadow:
    0 8px 24px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 48px rgba(var(--bf-accent-rgb), .10);
}

.specialty-banner__text{
  margin:0;
  font-weight:600;
  line-height:1.6;
  letter-spacing:.2px;
  font-size: clamp(15px, 1.6vw, 17px);
  margin-bottom: 0px !important;
}

.specialty-banner .bf-hl{
  color: var(--bf-accent);
  font-weight:700;
  text-shadow: 0 0 18px rgba(var(--bf-accent-rgb), 0.28);
}

@media (max-width: 540px){
  .specialty-banner.specialty-black-friday{
    padding:14px 14px;
    border-radius:10px;
  }
  .specialty-banner__text{
    line-height:1.7;
  }
}




/* Container for the categories grid */
.offer-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
	min-height: 100px;
}

/* Individual category item */
.offer-category-item {
    background-color: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for category items */
.offer-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Link styling */
.offer-category-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image container */
.offer-category-image {
    width: 100%;
    height: 100px; /* Reduced height for smaller, uniform images */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* Light background for contrast */
    padding: 10px; /* Adds space around the image */
}


.offer-category-image img {
    max-width: 80px; /* Sets a smaller maximum width */
    max-height: 80px; /* Sets a smaller maximum height */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures the image fits within the set dimensions without distortion */
    display: block;
    margin: 0 auto; /* Centers the image horizontally */
}


/* Optional: Zoom effect on hover */
.offer-category-item:hover .offer-category-image img {
    transform: scale(1.05);
}

/* Category name styling */
.offer-category-name {
    padding: 10px 15px; /* Reduced padding for smaller images */
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #fafafa;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for Offer Items */
@media (min-width: 600px) {
    .offer-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Adjust min-width as needed */
    }
}


/* General container styling */
.product-mini-top-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px 10px; /* Adds space between rows and columns */
    justify-content: space-between; /* Ensures proper spacing between cards */
    margin: 10px 0; /* Adjusts spacing between the container and surrounding content */
}



/* Styling for individual cards */
.product-mini-top-card {
    width: calc(49% - 20px); /* Adjusts card width to fit two per row accounting for the gap */
    margin: 0; /* Removes additional margin to rely on the container's gap */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* More prominent shadow for better depth */
    border-radius: 10px; /* Rounds the corners */
    overflow: hidden; /* Ensures content does not spill out */
    background: #fff; /* Card background color */
    transition: transform 0.3s ease; /* Smooth effect on hover */
    padding-bottom: 10px;
    border: 1px solid #ddd; /* Subtle dark grey border */
}


.product-mini-top-card h3 {
    text-align: center;
    font-size: 20px;              /* smaller font size */
    background-color: #f7f7f7;    /* light grey background */
    border-radius: 8px;           /* softly rounded corners */
    padding: 6px 10px;            /* space inside for better look */
}


.product-mini-top-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); /* Darker and more lifted shadow on hover */
}

/* Styling for the product image */
.product-mini-top-card img {
    width: auto; 
	height: 100px;
    display: block; /* Makes the image block level to center it */
    margin: 10px auto; /* Centers the image and adds space around it */
    border-bottom: 1px solid #f1f1f1; /* Adds separation from the content */
}

/* Product name styling */
.product-mini-top-card h4 {
    margin: 0.5em 1.5em; /* Adds space around the product name */
    color: #333; /* Dark text color for contrast */
	font-size:18px;
	text-align: center;
}

.product-mini-top-card h3 {
    margin: 0.5em 1em; /* Adds space around the product name */
    color: #333; /* Dark text color for contrast */
}

/* Product features list */
.product-mini-top-features {
    list-style: none; /* Removes default list styling */
    padding: 0 1em; /* Adds padding around the list */
    margin: 0; /* Removes default margin */
	margin-top: 20px;
	margin-bottom: 20px;
}

.product-mini-top-features li {
    margin-bottom: 0.5em; /* Adds space between features */
    color: #666; /* Medium-dark text for readability */
    padding-left: 1.5em; /* Adds space for the checkmark */
    position: relative; /* Allows absolute positioning of the checkmark */
}

.product-mini-top-features li:before {
    content: '✔'; /* Adds checkmark */
    color: #0073aa; /* Checkmark color, adjust as needed */
    position: absolute; /* Positions checkmark relative to the li */
    left: 0; /* Aligns checkmark to the left */
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    .product-mini-top-card {
        width: 100%; /* Full width makes cards stack vertically */
        margin: 10px 0; /* Adjusts margin for stacked layout */
    }
	
	.product-mini-top-container {
    display: flex;
    flex-direction:column;
}

    .product-mini-top-card img {
        max-width: 180px; /* Adjust maximum width as necessary */
    }
}




/* Product-info-large-cards Styling */
.product-card {
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0; /* Slight separation line */
}

.card-header img {
    width: 120px; /* Adjust based on your preference */
    object-fit: cover;
}

.card-header h3 {
    margin-left: 20px; /* Space between image and title */
    color: #333;
    font-size: 20px;
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    justify-content: center; /* Ensures children are centered */
}

.details-section, 
.features-section, 
.advantages-section, 
.disadvantages-section {
    flex: 1 1 45%; /* Adjusts based on content size, up to 2 items per row */
    max-width: 48%; /* Max two items per row */
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px; /* Consistent margin for spacing */
}

.features-section ul, 
.advantages-section ul, 
.disadvantages-section ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Align text to the left within centered sections */
    display: inline-block; /* Center the list */
    margin-top: 10px; /* Space from the header */
}

.features-section li::before, 
.advantages-section li::before {
    content: '✔';
    color: #4CAF50;
    margin-right: 10px;
}

.disadvantages-section li::before {
    content: '✖';
    color: #FF6347;
    margin-right: 10px;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    background: #f8f8f8; /* Light background for the footer for contrast */
}

.ratings-section, 
.price-section {
    flex: 1 1 45%; /* Allows for up to two items per row */
    max-width: 48%; /* Ensures no more than two columns */
    text-align: center;
    padding: 5px;
}


@media screen and (max-width: 768px) {
    .card-body, .card-footer {
        flex-direction: column;
    }

    .details-section, 
    .features-section, 
    .advantages-section, 
    .disadvantages-section,
    .ratings-section, 
    .price-section {
        flex-basis: 100%; /* Full width for smaller screens */
        max-width: 100%; /* Overrides previous max-width for single column layout */
        text-align: center;
        margin-bottom: 8px;
    }

    .card-header {
        flex-direction: column;
    }

    .card-header h2 {
        margin-left: 0; /* Remove margin when stacked */
    }

    .card-header img {
        margin-bottom: 15px; /* Space between image and title on smaller screens */
    }
	.card-footer {
    padding: 3px;
}
}

#overall-rating {
    display: block; /* Ensure it's displayed as a block element for better control */
    text-align: center;
    margin-bottom: 10px; /* Space between this and other sections */
    font-size: 18px; /* Prominent size for overall rating */
    color: #4CAF50; /* Color to stand out */
    font-weight: bold; /* Make it bold */
}


.ratings-section, .price-section {
    text-align: center;
    margin-bottom: 20px; /* Consistent spacing */
}

/* Styling for the CTA price button */
.product-mini-top-button {
    display: block;
    text-align: center;
    background-color: #ff6700; /* Bright dark orange */
    color: #ffffff; /* White text */
    font-weight: bold; /* Emphasize the button */
	font-size: 18px;
    text-decoration: none !important; /* Removes underline */
    padding: 8px 15px; /* Adjust padding */
    width: auto; /* Let the width adjust naturally */
    max-width: 90%; /* Ensure it doesn't exceed the container width */
    border: 2px solid transparent; /* No border by default */
    border-radius: 5px; /* Rounded corners */
    margin: 10px auto; /* Center align and space around */
    line-height: 1.4; /* Maintain spacing for multiple lines */
    position: relative; /* For adding arrow icon */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Add arrow to the button */
.product-mini-top-button:after {
    content: " >"; /* Arrow indicator */
    font-weight: bold;
    color: #ffffff; /* Match text color */
    position: absolute;
    right: 15px; /* Adjust to align at the end */
    top: 50%;
    transform: translateY(-50%);
}

/* Styling for additional shop text inside the button */
.product-mini-top-button span.shop-info {
    display: block; /* Stack the text below the main price */
    font-size: 14px; /* Smaller font for shop info */
    margin-top: 5px; /* Space between price and shop info */
    color: #f5f5f5; /* Brighter white for better visibility */
    font-weight: normal; /* Regular weight for shop info */
}

/* Hover effect for the price button */
.product-mini-top-button:hover {
    background-color: #e65c00; /* Slightly darker orange on hover */
    color: #ffffff; /* White text */
}

/* Hover effect for the arrow */
.product-mini-top-button:hover:after {
    color: #f5f5f5; /* Slightly lighter arrow on hover */
}



/* Link-style CTA with soft grey background and accent text */
.product-mini-compare-button {
  --accent: #4F4F4F;
  --bg: #f6f6f6;
  --bg-hover: #ebebeb;

  display: flex;                 /* block-level for auto-centering */
  justify-content: center;
  align-items: center;
  gap: .45em;

  width: fit-content;            /* shrink to content so auto-margins work */
  margin: .5rem auto 0;          /* centers horizontally */
  padding: 6px 10px;
  font: 600 14px/1 system-ui, sans-serif;

  color: var(--accent) !important;
  background-color: var(--bg);
  text-decoration: none !important;
  text-underline-offset: 2px;

  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.product-mini-compare-button::after {
  content: "›";
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease;
}

.product-mini-compare-button:hover {
  background-color: var(--bg-hover);
  text-decoration: underline;
}

.product-mini-compare-button:hover::after {
  transform: translateX(2px);
  opacity: 1;
}





/* Container for the product offers grid */
.product-offers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 20px; /* Space between cards */
    margin: 20px 0;
}

.product-offer-card {
    background-color: #ffffff; /* White background for the card */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 15px; /* Inner padding */
    text-align: center; /* Center content */
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Subtle hover effects */
    border: 1px solid #ddd; /* Subtle dark grey border */
}

/* Hover effect for the card */
.product-offer-card:hover {
    transform: translateY(-1px); /* Slightly lift the card on hover */
    box-shadow: 0 6px 12px rgba(0, 255, 128, 0.2), 0 12px 18px rgba(0, 255, 128, 0.1); /* Softer shadow on hover */
}


/* Product image */
.product-offer-card img {
    max-width: 100%; /* Ensure image fits within the card */
    height: 100px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure the image scales properly */
    margin-bottom: 10px;
}

/* Product title */
.product-offer-card h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333333; /* Dark grey for the title */
    margin: 10px 0;
}

/* Extra information */
.product-extra-info {
    font-size: 14px;
    color: white; 
	background: black;
    margin: 5px 0;
	font-weight:bold;
}
/* Set this to your card's inner padding */
.product-offer-card { --card-pad: 12px; }

.product-offer-card .product-mini-info {
  /* full-width banner, truly centered */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  /* small gap from the actual card edge */
  --edge-gap: 4px;

  /* even bleed on both sides = stays centered */
  margin-top: -5px;
  margin-bottom: 6px;
  margin-left: calc(-1 * (var(--card-pad) - var(--edge-gap)));
  margin-right: calc(-1 * (var(--card-pad) - var(--edge-gap)));

  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;

  color: #fff;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);

  /* keep it first in flex/grid layouts */
  order: -1;
  grid-column: 1 / -1;
}

/* links inside inherit the banner style */
.product-offer-card .product-mini-info a {
  color: inherit;
  text-decoration: none !important;
}

/* Optional fallback if CSS vars aren't available */
@supports not (margin-left: calc(-1px)) {
  .product-offer-card .product-mini-info {
    margin-left: -8px;
    margin-right: -8px;
  }
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-offers-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens */
    }
}

@media (max-width: 480px) {
    .product-offers-container {
        grid-template-columns: 1fr; /* One column for small screens */
    }
}

/*Prisjakt Price list styling/*/

.prisjakt-price-list {
    margin-bottom: 5px;
    max-width: 350px; /* Allow the container to take up the full width if needed */
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex; /* Enable flex layout */
    flex-direction: column; /* Stack offers vertically */
    align-items: center; /* Center the offers horizontally */
	width: 100%;
}

/* Unordered list styling */
.prisjakt-offer-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
	width: 100%;
}

/* Individual offer item */
.prisjakt-offer-item {
    margin-bottom: 8px;
	text-decoration: none !imporant; /* Remove underline */

}


.prisjakt-offer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none !important; /* Remove underline */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.prisjakt-offer-link:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
	text-decoration: none !important; /* Remove underline */
}

/* Shop logo container */
.prisjakt-shop-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.prisjakt-shop-logo {
    height: 30px;
    margin-right: 10px;
    max-width: 60px;
    object-fit: contain;
}

/* Price styling */
.prisjakt-price {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
	text-decoration: none !important; /* Remove underline */

}

/* View offer icon styling */
.prisjakt-view-icon {
    flex: 1;
    text-align: right;
}

.prisjakt-view-icon span {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #ff6700; /* Bright orange */
    color: #ffffff; /* White text */
    border-radius: 50%; /* Fully round */
    font-size: 18px; /* Slightly larger icon */
    font-weight: bold; /* Emphasize the icon */
    transition: background-color 0.2s ease;
}

.prisjakt-view-icon :hover {
    background-color: #e65c00; /* Slightly darker orange */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow and border shadow */

}

.prisjakt-hintaopas-link {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
}

.prisjakt-all-prices-button {
    background-color: #4a4a4a; 
    color: #fff !important; /* White text */
    text-decoration: none !imporant; /* Remove underline */
    padding: 10px 15px; /* Padding for button shape */
    border-radius: 25px; /* Rounded corners */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold text for emphasis */
    display: inline-block; /* Button-like display */
    text-align: center; /* Center text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

.prisjakt-all-prices-button:hover {
    background-color: #2e2e2e; /* Slightly darker orange on hover */
}

/* ===== Black Friday Pills (shortcode output) ===== */

.bf-pills-block {
  margin: 20px 0 20px;
}

.bf-pills-block .bf-pills-header {
  font-weight: 600;
  margin-bottom: 18px;
}

.bf-pills-block .bf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.bf-pills-block .bf-pills.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* Normal pill */
.bf-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid #e3e3e3;
  background: #f8f8f8;
  color: #333 !important;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

.bf-pill:hover {
  background: #f1f1f1;
  border-color: #d9d9d9;
}

.bf-pill:active {
  transform: translateY(1px);
}

.bf-pill .bf-arr {
  display: inline-block;
  transform: translateY(1px);
}

/* Current page pill (single muted color, non-clickable) */
:root {
  --bf-current-bg: #e6f6ff;
  --bf-current-border: #bde7ff;
  --bf-current-text: #0f172a;
}

.bf-pill--current {
  background: var(--bf-current-bg);
  border-color: var(--bf-current-border);
  color: var(--bf-current-text) !important;
  cursor: default;
  pointer-events: none;
}


/* Responsive tweaks */
@media (max-width:600px){
  .bf-pills-block .bf-pills { gap: 6px; }
  .bf-pill { padding: 7px 12px; font-size: 13px; }
}


/* Show-more CTA — pill button centered with the grid */
.product-offers-container .product-offers-more{
  grid-column: 1 / -1;
  display:flex;
  justify-content:center;
  margin:18px 0 6px;
  text-align:center;
}

/* Pill button: dark grey base, white logo badge, tight spacing */
.product-offers-more-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:220px;
  padding:10px 18px 9px;
  border-radius:9999px;
  background:#2b2f36;
  color:#ffffff !important;           /* text color override */
  border:1px solid #22262c;
  box-shadow:0 2px 8px rgba(0,0,0,0.10);
  text-decoration:none !important;     /* no underline */
  font-weight:800;
  font-size:16px;
  line-height:1.15;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-offers-more-btn .main-text{
  position:relative;
  padding-right:14px;
  text-decoration:none !important;     /* no underline */
  color:inherit !important;            /* ensure inherited white */
}

.product-offers-more-btn .main-text::after{
  content:"›";
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-52%) rotate(90deg); /* down arrow */
  font-weight:900;
  opacity:.8;
}

/* Hintaopas logo as white badge (bigger for readability) */
.product-offers-more-btn .sub-logo{
  display:block;
  height:22px;                         /* was 16px → a bit bigger */
  width:auto;
  margin-top:2px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:2px 6px;
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
  image-rendering:auto;
  opacity:.95;
}

/* Hover/focus: darker pill, keep text color locked */
.product-offers-more-btn:hover,
.product-offers-more-btn:focus{
  background:#1f2329;
  border-color:#1b1f24;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.18);
  color:#ffffff !important;            /* text color override on hover/focus */
}

.product-offers-more-btn:hover .sub-logo,
.product-offers-more-btn:focus .sub-logo{
  border-color:#d1d5db;
  box-shadow:0 2px 6px rgba(0,0,0,0.10);
  opacity:1;
}

/* Active press */
.product-offers-more-btn:active{
  transform:translateY(0);
  box-shadow:0 3px 10px rgba(0,0,0,0.14);
}

/* Small screens */
@media (max-width:640px){
  .product-offers-more{ margin:14px 0 6px; }
  .product-offers-more-btn{
    min-width:200px;
    padding:9px 16px 8px;
    font-size:15px;
    color:#ffffff !important;          /* ensure mobile text color */
  }
  .product-offers-more-btn .sub-logo{ height:22px; }  /* scaled down a touch on mobile */
}

/* ---- Price trend badge (tiered color scale) ---- */

.product-offer-card { position: relative; }

/* Base pill */
.price-trend-badge{
  position:absolute; top:0px; right:0px;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  font-size:11px; font-weight:600; line-height:1;
  cursor:help;
  user-select:none;
  -webkit-user-select:none;
  -ms-user-select:none;
  -webkit-tap-highlight-color:transparent;

  background:#ffffff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow:0 2px 10px rgba(2,6,23,.08);
  transition:all .15s ease;
  z-index:2;
}

.price-trend-badge .pct{ font-variant-numeric: tabular-nums; }
/* ---- Price trend badge (blue→green scale for Tekniikkaa.fi) ---- */

/* Base pill stays the same */
.price-trend-badge {
  position:absolute; top:6px; right:6px;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  font-size:11px; font-weight:600; line-height:1;
  cursor:help;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;

  background:#ffffff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow:0 2px 10px rgba(2,6,23,.08);
  transition:all .15s ease;
  z-index:2;
}

.price-trend-badge .pct { font-variant-numeric: tabular-nums; }

.price-trend-badge svg { width:14px; height:14px; display:block; }


.trend-light,
.trend-medium,
.trend-strong {
  color:#0b63c7; /* your existing blue tone */
}


.trend-strong .pct::after {
  content:" 🔥";
  font-size:12px;
  vertical-align:middle;
  margin-left:2px;
  opacity:0.9;
}




/* Hover subtle tint */
.price-trend-badge:hover {
  background:#f7f9fc;
  border-color:rgba(2,6,23,.16);
  box-shadow:0 3px 12px rgba(2,6,23,.12);
}

/* Focus ring */
.price-trend-badge:focus-visible {
  outline:2px solid rgba(14,165,233,.35); /* sky 500 tint */
  outline-offset:2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .price-trend-badge { transition:none; }
}


/* Same look for up/down — arrow direction communicates trend */
.price-trend-badge.trend-up,
.price-trend-badge.trend-down{ background:#ffffff; }

/* Hover subtle darken + stronger shadow */
.price-trend-badge:hover{
  background:#f7f9fc;
  border-color:rgba(2,6,23,.16);
  box-shadow:0 3px 12px rgba(2,6,23,.12);
}

/* Focus ring for accessibility */
.price-trend-badge:focus-visible{
  outline:2px solid rgba(11,99,199,.35);
  outline-offset:2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .price-trend-badge{ transition:none; }
}


.product-offer-group-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.06);
}

/* Minisite category product cards */
.mpc-category-products {
    display: grid;
    gap: 20px;
}

.mpc-slot-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.mpc-card-main {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}

.mpc-card-content h4 {
    margin: 4px 0 12px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.mpc-product-subtitle {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    font-size: .82rem;
    font-weight: 700;
}

.mpc-feature-list {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.mpc-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.mpc-check-icon {
    flex: 0 0 auto;
    color: #15803d;
    margin-top: 1px;
}

.mpc-price-button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mpc-price-main {
    font-size: 1.1rem;
    font-weight: 800;
}

.mpc-card-more {
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 12px;
}

.mpc-card-more summary {
    cursor: pointer;
    font-weight: 700;
}

.mpc-card-more-inner {
    margin-top: 12px;
    display: grid;
    gap: 14px;
}

.mpc-pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mpc-pros,
.mpc-cons {
    border-radius: 14px;
    padding: 14px;
    background: rgba(0,0,0,.035);
}

.mpc-pros h5,
.mpc-cons h5 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    font-size: .95rem;
}

.mpc-pros ul,
.mpc-cons ul {
    margin: 0;
    padding-left: 18px;
}

.mpc-thumb-icon {
    color: currentColor;
}

.mpc-api-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.mpc-api-facts div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-bottom: 6px;
}

.mpc-api-facts dt {
    font-weight: 700;
}

.mpc-api-facts dd {
    margin: 0;
    text-align: right;
}

@media (max-width: 700px) {
    .mpc-card-main {
        grid-template-columns: 1fr;
    }

    .mpc-pros-cons,
    .mpc-api-facts {
        grid-template-columns: 1fr;
    }
}

/* Minisite vertical product card layout */
.mpc-slot-card .mpc-card-main {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.mpc-slot-card .mpc-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px auto 0;
    max-width: 220px;
}

.mpc-slot-card .mpc-card-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mpc-slot-card .mpc-card-content {
    display: grid;
    gap: 12px;
}

.mpc-slot-card .mpc-card-content h4 {
    text-align: center;
    margin: 0;
}

.mpc-slot-card .mpc-product-subtitle {
    justify-self: center;
}

.mpc-slot-card .mpc-feature-list {
    width: 100%;
    max-width: 100%;
    margin: 4px 0 8px;
}

.mpc-slot-card .mpc-feature-list li {
    font-size: 1rem;
}

.mpc-slot-card .mpc-price-button {
    width: 100%;
    align-items: center;
    text-align: center;
}

.mpc-api-description,
.mpc-detail-html,
.mpc-quick-review {
    font-size: .94rem;
    line-height: 1.45;
}

.mpc-api-description p,
.mpc-detail-html p,
.mpc-quick-review p {
    margin-top: 0;
}

.mpc-other-offers {
    border-radius: 12px;
    background: rgba(0,0,0,.035);
    padding: 10px 12px;
}

.mpc-other-offers h5 {
    margin: 0 0 8px;
    font-size: .92rem;
}

.mpc-other-offers ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpc-other-offers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .9rem;
}

.mpc-other-offers a {
    font-weight: 700;
    white-space: nowrap;
}

.mpc-empty-details {
    font-size: .92rem;
    opacity: .75;
}

/* Keep minisite card images visually consistent */
.mpc-slot-card .mpc-card-image {
    width: 100%;
    max-width: 260px;
    height: 230px;
    min-height: 230px;
}

.mpc-slot-card .mpc-card-image img {
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 700px) {
    .mpc-slot-card .mpc-card-image {
        max-width: 240px;
        height: 210px;
        min-height: 210px;
    }

    .mpc-slot-card .mpc-card-image img {
        max-height: 210px;
    }
}

/* Minisite responsive card columns */
.mpc-category-products.product-offers-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .mpc-category-products.product-offers-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mpc-category-products.product-offers-container {
        grid-template-columns: 1fr;
    }
}

/* Minisite details: keep all expanded sections stacked, never columned */
.mpc-slot-card .mpc-pros-cons,
.mpc-slot-card .mpc-api-facts {
    grid-template-columns: 1fr;
}

.mpc-slot-card .mpc-pros-cons {
    gap: 10px;
}

.mpc-slot-card .mpc-api-facts div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.mpc-slot-card .mpc-api-facts dd {
    text-align: left;
}
