@charset "UTF-8";
/* CSS Document */
/* CSS Document */
img,object,embed,video{max-width:100%;border:0}.ie6 img{width:100%}
.video-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}
.video-container iframe,.video-container object,.video-container embed{position:absolute;top:0;left:0;width:100%;height:100%}
body {
		font:1em Arial, Helvetica, sans-serif;
}
.gridContainer{  max-width: 1500px; /* Set maximum width */ width: 100%; /* Ensures responsiveness */ margin: 0 auto; /* Centers the div */   /* Optional: Adds padding for small screens */background-color:#FFF} 
/* Category title */
.cat-title h1 {
    width: 100%;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    background-color: #003366;
    padding: 10px 0;
    display: inline-block;
    margin-bottom: 10px;
    text-align: center;
}
.RPS-store, .Kawai-store, .Casio-store, .Yamaha-store {width:100%;justify-content: center}
.RPS-store, .Casio-store, .Kawai-store, .Yamaha-store img{ margin-left:25%;}

/* Category image */
.cat-image {
  display: flex;
  justify-content: center;
}

.cat-image img {
  height: 100px;;
  width: auto;
}

/* Category description inside a box with light grey background */
.cat-description {
    font-size: 1.2em;
    color: #444; /* Dark gray for readability */
    line-height: 1.6;
    margin-top: 10px;
    padding: 15px 20px;
    text-align: left;
        border: 1px solid #ddd; /* Subtle border for contrast */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
    display: block;
}
.cat-description-wrapper {
 background-color: #f5f5f5; /* Light grey */
  padding: 16px;
  max-width: 100%;
  position: relative;
}
.cat-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  line-height: 1.5em;
  max-height: calc(1.5em * 4); /* 4 lines */

}

.cat-description::after {
  content: "";
  position: absolute;
  bottom: 2em;
  left: 0;
  right: 0;
  height: 3em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cat-description.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.cat-description.expanded::after {
  opacity: 0;
}

.toggle-desc {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background-color: #1f6ea6;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease
}
.toggle-desc:hover {
  background-color: #15507f; /* Slightly darker on hover */
}
/* Display products */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Maximum 3 columns */
    gap: 15px;
    max-width: 1500px; /* Adjust based on your design */
    margin-bottom: 10px;
    margin-left: 1%;
    margin-right: 1%;
}


.grid-item {
    display: flex;
    flex-direction: column;
        border: 1px solid #ddd;
  text-align: center; /* Ensures all text is centered */
   
 
}

.field_2{font-size: 20px; font-weight: bold;padding: 10px; align-items: center; /* Centers content */
    justify-content: center; text-align: center; height:60px;}
.table_banner {
    background-color: #2872bd; /* Adjust as needed */
    padding: 10px;
      display: flex;
    flex-direction: column;
    align-items: center; /* Centers content */
    justify-content: center;
    text-align: center;color:white;
    height:45px;
}
/* Product Image Container */
.product-image-container {
    position: relative; /* Allows absolute positioning inside */
    display: inline-block;
}

/* Product Image */
.product-image {
    display: block;
   }

/* Bundle Icon Overlay */
.bundle-icon {
    position: absolute;
    width: 20%; /* 1/6 of the product image */
    left: 80%; /* Aligns to the left */
    top: 30%; /* Center vertically */
    transform: translateY(-100%); /* Ensures true center alignment */
}
.price_field{font-size:25px;font-weight:bold;padding-bottom:10px}
/* Filter and Sort Form Styling */
.filter-container {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    gap: 20px;
    padding: 10px 10px;
    background-color: #003366; /* Use main website color */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  border-radius: 0;
}

/* Label Styling */
.filter-container label {
   font-weight: bold;
    color: white; /* White text for contrast */
    font-size: 16px;
}

/* Dropdown Styling */
.filter-container select {
    padding: 10px 15px;
    border: 2px solid #ffffff;
      font-size: 16px;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    width: 200px; /* Wider dropdown */
    font-weight: bold;
    transition: all 0.3s ease;
  
  /* square the corners */
  border-radius: 0 !important;
  
  /* kill any WebKit "inner" rounding or shadow */
  box-shadow: none !important;
  background-clip: padding-box !important;
   
}

/* Add hover effect */
.filter-container select:hover {
    border-color: #1d5ea8;
    background-color: #f8f9fa;
    border-radius: 0;


}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.pagination a {
    padding: 8px 15px;
    background: #2872bd;
    color: white;
    text-decoration: none;
    margin: 5px;
}
.pagination a:hover {
    background: #1d5ea8;
}

/*digital pianos*/
/* Piano blocks container */
.Pianos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin:20px 0px;
}

/* Individual piano blocks */
.Pianos > div {
    flex: 1 1 250px; /* Grow/shrink, min width 250px */
    max-width: 250px;
    text-align: center;
}

/* Input images */
.Pianos img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Text bar styling */
.text-bar {
    width: 100%;
    background: #2872bd;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    box-sizing: border-box;
}
.Pianos p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}
/* make the image replace-element act just like a block <img> */
.Pianos form input[type="image"] {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
    border-radius: 0;
     -webkit-appearance: none; /* disable native button styling */
  appearance: none;
}

/* nuke any extra space above your text bar */
.Pianos form .text-bar {
  margin-top: 0;
}


/* ===== Corner ribbon (top-left like your example) ===== */
/* The link still clips the strap flush with the image edges */
.product-image-container .product-link{
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Top-left corner strap */
.corner-ribbon{
  position: absolute;
  --w: 280px;        /* strap length (increase if needed)            */
  --inset: 20px;     /* push deeper into image to gain visible span  */

  width: var(--w);
  /* keep the classic corner geometry, but add an equal inset on both axes */
  left: calc(var(--w) / -3 + var(--inset));
  top:  calc(var(--w) /  6 + var(--inset));
  transform: rotate(-45deg);

  padding: 6px 0;
  background-color: #2872bd;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.08), rgba(0,0,0,.08));
  color: #fff;
  font: bold 0.78rem/1 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  box-shadow: 4px 4px 8px rgba(0,0,0,.25);

  /* center children so the inner text box sits nicely */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text: two lines max + diagonal-safe gutters so it never touches the clipped ends */
.corner-ribbon span{
  --gutter: 50px;                 /* reduce/raise to change safe margin at both ends */
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 6px;

  white-space: normal;
  line-height: 1.15;
  word-break: break-word;
  hyphens: auto;

  /* 2-line clamp (webkit) + fallback cap */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(2 * 1.15em);
}


/* On large screens, show 3 per row */
/* ===== TABLET (481px–769px) ===== */
@media only screen and (min-width: 700px) and (max-width: 950px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
     }
    /* Category image */
    /* Category image */
.field_2{font-size: 18px; font-weight: 500;padding: 10px; align-items: center;height:70px /* Centers content */
    }
    .price_field{font-size:19px;font-weight:bold;padding-bottom:10px}

.cat-image img {
  height: 75px;;
  width: auto;
}
    .corner-ribbon{ --w: 280px; --inset: 18px; }
  .corner-ribbon span{ --gutter: 36px; font-size: .72rem; }
}

/* On large screens, show 3 per row */
/* ===== TABLET (481px–769px) ===== */
@media only screen and (min-width: 481px) and (max-width: 699px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
     }
    /* Category image */
.field_2{font-size: 17px; font-weight: 300;padding: 5px; align-items: center; height: 90x;/* Centers content */
    }
    .price_field{font-size:20px;font-weight:bold;padding-bottom:10px}
.cat-image img {
  height: 75px;
  width: auto;
}
     .corner-ribbon{ --w: 280px; --inset: 18px; }
  .corner-ribbon span{ --gutter: 36px; font-size: .72rem; }
 
}

/* On small screens, show 2 per row */
/* ===== TABLET (481px–769px) ===== */
@media only screen and (min-width: 320px) and (max-width: 480px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Category image */
.field_2{font-size: 15px; font-weight: 400;height: 100px;
    padding: 10px; align-items: center; /* Centers content */}
    .price_field{font-size:16px;font-weight:bold;padding-bottom:10px}
.cat-image img {
  height: 50px;;
  width: auto;
}
 
     .filter-container {
    padding: 6px;
    gap: 8px;
    flex-direction: column; /* stack vertically on tiny screens */
    align-items: stretch;
  }
  .filter-container label {
    margin-bottom: 4px;
  }
  .filter-container select {
    padding: 6px;
    font-size: 14px;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-clip: padding-box !important;
  }
.pagination a {
    padding: 5px;
    background: #2872bd;
    color: white;
    text-decoration: none;
    margin: 5px;

}
  .corner-ribbon{ --w: 280px; --inset: 20px; }
  .corner-ribbon span{ --gutter: 35px; font-size: .72rem; }

   
}