:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --tint1: #e4780d;
  --text-color: #333333;
  --light-gray: #f5f6fa;
  --dark-gray: #444444;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --star-size: 1rem;
  --star-color: var(--accent-color);
  --star-bg: #ccc;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* {
  box-sizing: border-box;
}
/* Headings */
h1,
h2,
h3,
h4,
h5 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
}

h2 {
  font-size: 1.75rem;
  font-weight: bold;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
}

/* Paragraphs */
p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
}
.summary {
  font-weight: bold;
}
/* Lists */
ul,
ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: bold;
}

a:hover {
  color: var(--accent-color);
}
.red_cross {
  color: red;
  margin-right: 10px;
}
/* Buttons */
.button-small,
.table-button,
.button-medium,
.pill-button,
.product-button,
.green-button {
  display: inline-block;
  text-align: center;
  border-radius: 5px;
  color: var(--white);
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button-medium,
.green-button,
.table-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.table-button {
  padding: 0.2rem 0.4rem;
}
.pill-button {
  padding: 0.25rem 1rem;
  margin: 5px;
  border-radius: 25px;
}
.product-button {
  border-radius: 4px;
  cursor: pointer;
  margin-top: auto;
}

.button-small:hover,
.table-button:hover,
.button-medium:hover,
.green-button:hover,
.pill-button:hover,
.product-button:hover {
  color: var(--white);
  background-color: #80b9df;
}

/* Quotation Block */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--secondary-color);
  background-color: var(--light-gray);
  color: var(--dark-gray);
  font-style: italic;
}

blockquote p {
  margin-bottom: 0;
}

/* Message Block */
.message-block {
  padding: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: var(--white);
  box-shadow: 0 2px 5px var(--shadow);
  color: var(--text-color);
  margin: 1.5rem 0;
}

.message-block p {
  margin: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}
.icons img {
  width: 32px;
  height: 32px;
  margin-right:20px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* When aside is on the right of main (e.g., larger screens) */
.container-with-aside {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 300px; /* Only one card per row */
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  order: 1;
}
.logo img {
  height: 80px;
  width: auto;
}

nav {
  order: 2;
}

/* Navigation */
.burger-menu {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 2px 5px var(--shadow);
  border-radius: 4px;
  list-style: none;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

.dropdown-link:hover {
  background-color: var(--light-gray);
}

.main-content {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
}

main {
  flex: 1;
  min-width: 0;
}

.aside-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  height: 70px;
  border: solid 1px #ccc;
  border-radius: 4px;
  padding: 5px;
  gap: 0.75rem; /* Adds spacing between image and text */
}
.aside-card:hover {
  border: solid 1px #333;
}

/* Image styling */
.aside-image,
.article-image {
  flex-shrink: 0; /* Prevents image from shrinking */
  height: 50px; /* Fixed width for consistent layout */
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  background-color: var(--light-gray);
}

/* Text container */
.aside-info {
  flex: 1; /* Takes up remaining space */
}

.aside-title,
.article-title {
  font-size: 0.8rem;
  color: var(--primary-color);
  line-height: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1em * 4);
  margin: 0;
  padding: 0;
}

/* Default - Stacked layout for wider screens */
.product-grid,
.aside-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.product-card,
.article-card {
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px var(--shadow);
}

.product-image,
.article-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
  padding: 0.4rem;
  align-items: start;
}
/* Specific height for article images */
.article-image img {
  height: 180px;
  width: auto;
  object-fit: contain;
}
.product-title,
.article-title {
  font-size: 0.9rem;
  line-height: 1.1rem;
  margin: 0.5rem 0;
  padding: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 5.6em;
}

.price-rating-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-container,
.rating-container {
  flex: 1;
  text-align: center;
}

.product-price {
  margin: 0;
  /* Remove existing margins */
  color: #007bff;;
  font-weight: bold;
}

.product-page {
  display: grid;
  background-color: var(--primary-bg);
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 30px;
  overflow: hidden;
  padding: 0px;
  margin-right: 10px;
}
.prod-summary {
  font-weight: bold;
}
.product-page-price {
  color: #007bff;
  display: block;
  margin: auto;
  font-weight: 800;
  margin-right: 50px;
  font-size: 1.6rem;
  margin-bottom: 0px !important;
  margin-top: 20px;
}
#prod-details > * {
  margin-bottom: 10px;
}
#prod-details h1,
aside h2 {
  margin-top: 0px;
}
a .image-carousel-container {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.image-container {
  margin: 0 auto;
  width: 300px;
  height: 300px;
  padding-top: 50%;
  /* Ratio 1:1 */
  background-color: white;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Keep the aspect ratio */
}

.dots-container {
  text-align: center;
  display: flex;
  justify-content: center;
}

.dots-container .dot {
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.dots-container .dot.active {
  background-color: #333;
}

.thumbnails-container {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnails-container .thumbnail {
  width: 50px;
  height: 50px;
  margin: 5px;
  cursor: pointer;
}

.thumbnails-container .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-image-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: auto;
}

.aside-product-split {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px;
}

.article-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  list-style-position: inside;
  margin-bottom: 20px;
  margin-top: 20px;
  padding-left: 20px;
}

.article-content ul ul {
  list-style-type: circle;
  padding-left: 40px;
}

.article-content li {
  text-indent: -1.2em;
  padding-left: 1.2em;
  margin-bottom: 0.5rem;
}

.article-content table {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 1px;
  border: 1px solid black;
}

.article-content table td,
.article-content table th {
  padding: 5px;
  border: 1px solid darkgray;
  font-size: 0.8rem;
  text-align: center;
  /* Center horizontally */
  vertical-align: middle;
  /* Center vertically */
}

.article-content thead {
  background-color: #ccc;
  font-weight: bold;
}

.table-container {
  width: 100%;
  max-width: 640px;
  overflow-x: auto;
  white-space: nowrap;
}

th.sticky-col,
td.sticky-col {
  position: sticky;
  left: 0;
  background-color: #f1f1f1;
  /* Optional: for better visibility */
  z-index: 1;
}

th.sticky-col {
  z-index: 2;
  /* Higher z-index to stay on top of other columns */
}

.article-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.article-content h2:not(:first-of-type)::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: grey;
  position: absolute;
  top: -1.5rem;
  /* Adjust this value based on the desired space between the line and the header */
  left: 0;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

.aricle-content {
  margin-top: 1rem;
}

.article-content-product-border {
  border: solid 1px #ccc;
  padding: 10px;
  margin-bottom: -1px;
}

.article-content-numbered-header {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-column-gap: 10px;
}

.article-content-number {
  color: #232936;
  display: flex;
  /* Use flexbox */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  width: 1.25rem;
  height: 1.25rem;
  background-color: #4caf50;
  border-radius: 50%;
  font-size: 1rem;
  /* Adjust font size as needed */
  color: white;
  /* Optional: set text color */
}

.article-content-product-image-container {
  width: 100%;
}

.article-content-product-image-container img {
  display: block;
  height: 300px;
  width: auto;
  margin: auto;
}

.two-cols {
  display: grid;
  grid-template-columns: 2fr 5fr;
  grid-column-gap: 20px;
}

ul.pros,
ul.cons,
ul.dash {
  list-style: none;
  padding: 0px;
  text-indent: -23px;
  margin: 5px 0px 0px 23px;
}

ul.pros li:before {
  color: green;
  content: "\2713";
  padding: 0 10px 0 0;
  font-size: 18px;
  font-weight: bold;
}

ul.cons li:before {
  color: red;
  content: "\2715";
  padding: 0 10px 0 0;
}

.article-content-button-container {
  width: 70%;
  margin: 0 auto;
}
.article-content-button-scroll-button,
.article-content-button-large-button,
.article-content-button-slider-button {
  display: block;
  width: 80%;
  background: #2eeaa9;
  padding: 8px;
  text-align: center;
  border-radius: 0px;
  color: #232936;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.article-content-button-large-button {
  font-size: 16px;
  padding: 12px;
  border-radius: 10px;
}

a.article-content-button-large-button,
a.article-content-button-scroll-button,
a.article-content-button-slider-button {
  color: #232936;
}

.article-content-button-scroll-button:hover,
.article-content-button-large-button:hover,
.article-content-button-slider-button:hover {
  background-color: orange;
  text-decoration: none;
}
#banner-container img {
  width: 100%;
  height: auto;
}
.star-rating {
  color: #e37818;
}
.Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times;
  line-height: 1;
}

.Stars::before {
  content: "★★★★★";
  letter-spacing: 0px;
  background: linear-gradient(
    90deg,
    var(--tint1) var(--percent),
    #ccc var(--percent)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.update-time {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
}
.date-time {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.image-credit {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

footer p,
footer h3,
footer li {
  color: var(--white);
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

footer ul {
  margin: 0px;
}

footer ul li {
  margin: 0px;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--white);
}

.breadcrumb-nav {
  margin: 0.5rem auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Center items in the breadcrumb list */
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  /* Ensure breadcrumbs are centered */
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: "/";
  padding: 0 0.5rem;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a,
.breadcrumb li {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
.affiliate {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0px;
  margin-bottom: 5px;
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: var(--light-gray);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: var(--primary-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

details > summary {
  cursor: pointer;
  font-weight: bold;
}

details > summary::-webkit-details-marker {
  display: none;
}

.disclaimer {
  display: block;
  border-left: solid 3px grey;
  padding-left: 10px;
  margin-left: 40px;
  width: 60%;
  font-size: 0.8rem;
  color: grey;
}
/* General Container */
.contact-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Labels */
.contact-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

/* Input Fields */
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Textarea */
.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.contact-button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #0056b3;
}

/* Privacy Message */
.contact-privacy-message {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .contact-container {
    padding: 15px;
  }

  .contact-button {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 960px) {
  .container-with-aside {
    grid-template-columns: 1fr; /* Main and aside stacked */
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .dropdown {
    position: static;
    display: none;
    background-color: var(--primary-color);
    box-shadow: none;
  }

  ul.dropdown {
    margin: 0rem;
    padding-left: 0.5rem;
  }

  .dropdown-link {
    color: var(--white);
    padding: 0.25rem 0.5rem;
  }

  .dropdown-link:hover {
    background-color: var(--secondary-color);
    /* Darker background on hover */
    /* Or you could use a semi-transparent white */
    /* background-color: rgba(255, 255, 255, 0.1); */
    color: var(--white);
    /* Ensure text stays white on hover */
  }

  .nav-item.active .dropdown {
    display: block;
    background-color: rgba(0, 0, 0, 0.2);
    /* Slightly darker than nav background */
    padding: 0.5rem;
    /* Add some padding to separate from main nav items */
  }

  .dropdown-link {
    color: var(--white);
  }

  .main-content {
    flex-direction: column;
  }
  .aside-articles {
    margin: 0 auto;
  }
  .product-page {
    grid-template-columns: 1fr;
  }
}
