/* =========================================================
   File: Javanue-Carousel.css
   javanue.com Carousel System
   Format: jvU
   Supports: Coffee, Tea, Roasters, Subscriptions and Accessories.
========================================================= */

/* WRAPPER */
.jvU,
.jvU-featured,
.jvU-coffee,
.jvU-tea,
.jvU-roasters,
.jvU-subscriptions,
.jvU-accessories {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 28px 14px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.jvU-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 18px auto;
  text-align: center;
  box-sizing: border-box;
}

.jvU-title {
  margin: 0 0 8px 0;
  padding: 0;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.jvU-subtitle {
  max-width: 860px;
  margin: 0 auto 14px auto;
  color: #303030;
  font-size: 18px;
  line-height: 1.55;
}

/* DOT NAVIGATION */
.jvU-dots {
  width: 100%;
  text-align: center;
  margin: 8px auto 0 auto;
}

.jvU-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7b7b7;
  cursor: pointer;
  vertical-align: middle;
}

.jvU-dot.is-active {
  background: #f28c00;
}

.jvU-dot:focus {
  outline: 2px solid #303030;
  outline-offset: 2px;
}

/* VIEWPORT */
.jvU-viewport {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 8px 4px 20px 4px;
}

/* SCROLLBAR */
.jvU-viewport::-webkit-scrollbar {
  height: 8px;
}

.jvU-viewport::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 8px;
}

.jvU-viewport::-webkit-scrollbar-thumb {
  background: #b6b6b6;
  border-radius: 8px;
}

/* TRACK */
.jvU-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: max-content;
  align-items: stretch;
  gap: 20px;
  box-sizing: border-box;
}

/* CARD - NARROWER / REDUCED BOTTOM SPACE */
.jvU-card {
  flex: 0 0 255px;
  width: 255px;
  min-height: 380px;
  scroll-snap-align: start;
  background: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* IMAGE - SAME RESTRICTED HEIGHT ACROSS ALL CAROUSELS */
.jvU-img,
.jvU-card > img {
  display: block;
  width: 100%;
  height: 145px;
  max-height: 145px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  flex: 0 0 auto;
}

/* BODY - TIGHTER BOTTOM SPACING */
.jvU-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 10px 16px;
  box-sizing: border-box;
  text-align: center;
}

/* CARD TITLE */
.jvU-card h3 {
  margin: 0 0 7px 0;
  padding: 0;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
}

/* CARD SPIEL */
.jvU-card p {
  margin: 0 0 6px 0;
  color: #303030;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

/* BUTTON - REDUCED BOTTOM GAP */
.jvU-btn {
  display: inline-block;
  margin: 2px auto 0 auto;
  padding: 10px 16px;
  min-width: 155px;
  box-sizing: border-box;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0a93a 0%, #f28c00 100%);
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease;
}

.jvU-btn:hover,
.jvU-btn:focus {
  color: #ffffff !important;
  opacity: .94;
  transform: translateY(-1px);
  text-decoration: none;
  background: linear-gradient(180deg, #ffad33 0%, #e27900 100%);
}

.jvU-btn:active {
  transform: translateY(0);
}

/* SECTION COMPATIBILITY */
.section-white .jvU,
.section-light .jvU,
.section-gray .jvU,
.section-charcoal .jvU {
  clear: both;
}

/* LEGACY PAGE PROTECTION */
.jvU,
.jvU * {
  box-sizing: border-box;
}

/* TABLET */
@media screen and (max-width: 932px) {

  .jvU,
  .jvU-featured,
  .jvU-coffee,
  .jvU-tea,
  .jvU-roasters,
  .jvU-accessories {
    max-width: 100%;
    padding: 22px 10px;
  }

  .jvU-title {
    font-size: 25px;
  }

  .jvU-subtitle {
    font-size: 14px;
  }

  .jvU-track {
    gap: 16px;
  }

  .jvU-card {
    flex-basis: 240px;
    width: 240px;
    min-height: 370px;
  }

  .jvU-img,
  .jvU-card > img {
    height: 145px;
    max-height: 145px;
    padding: 10px;
  }

  .jvU-body {
    padding: 13px 14px 9px 14px;
  }

  .jvU-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .jvU-card p {
    font-size: 13px;
    line-height: 1.32;
    margin-bottom: 5px;
  }

  .jvU-btn {
    min-width: 145px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* MOBILE */
@media screen and (max-width: 640px) {

  .jvU,
  .jvU-featured,
  .jvU-coffee,
  .jvU-tea,
  .jvU-roasters,
  .jvU-accessories {
    padding: 18px 8px;
  }

  .jvU-header {
    margin-bottom: 12px;
  }

  .jvU-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .jvU-subtitle {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .jvU-viewport {
    padding-bottom: 16px;
  }

  .jvU-track {
    gap: 14px;
  }

  .jvU-card {
    flex-basis: 225px;
    width: 225px;
    min-height: 360px;
    border-radius: 12px;
  }

  .jvU-img,
  .jvU-card > img {
    height: 145px;
    max-height: 145px;
    padding: 10px;
  }

  .jvU-body {
    padding: 12px 12px 8px 12px;
  }

  .jvU-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .jvU-card p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  .jvU-btn {
    min-width: 135px;
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* iPHONE PORTRAIT / SMALL MOBILE */
@media screen and (max-width: 480px) {

  .jvU,
  .jvU-featured,
  .jvU-coffee,
  .jvU-tea,
  .jvU-roasters,
  .jvU-accessories {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    overflow-x: hidden !important;
  }

  .jvU-viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  .jvU-track {
    min-width: 100% !important;
  }

  .jvU-card {
    flex-basis: 215px;
    width: 215px;
    min-height: 350px;
  }

  .jvU-img,
  .jvU-card > img {
    height: 145px;
    max-height: 145px;
    padding: 10px;
  }

  .jvU-body {
    padding: 11px 10px 8px 10px;
  }

  .jvU-card h3 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
  }

  .jvU-card p {
    font-size: 12px !important;
    line-height: 1.28 !important;
    margin-bottom: 5px !important;
  }

  .jvU-btn {
    font-size: 12px !important;
    min-width: 128px;
    padding: 8px 11px;
  }
}

/* ==========================================
   iPHONE LANDSCAPE SEARCH ADJUSTMENT
   Wider search box / narrower blue button
========================================== */

@media screen and (max-width: 932px) and (orientation: landscape) {

  .jv-affiliate-search {
    max-width: 860px;
    gap: 8px;
    flex-direction: row;
    align-items: stretch;
  }

  .jv-affiliate-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 50px;
  }

  .jv-affiliate-search button {
    flex: 0 0 155px;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    min-height: 50px;
    padding: 0 10px;
    border-radius: 20px;
    background: #0066cc;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
    line-height: 1.15;
  }

  .jv-affiliate-search button:hover,
  .jv-affiliate-search button:focus {
    background: #d4af37;
    color: #000000;
  }

}

/* =========================================
   JAVANUE NARROW CARD CAROUSEL
========================================= */

.jvU-card-narrow {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  border-radius: 16px;
}

.jvU-card-narrow .jvU-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.jvU-card-narrow .jvU-body {
  padding: 12px 12px 14px;
  text-align: center;
}

.jvU-card-narrow h3 {
  font-size: 1.17em;
  line-height: 1.2;
  margin: 8px 0 8px;
}

.jvU-card-narrow p {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.jvU-card-narrow .jvU-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #005bbb;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.jvU-card-narrow .jvU-btn:hover,
.jvU-card-narrow .jvU-btn:focus {
  background: #ffcc00;
  color: #000000 !important;
  transform: translateY(-1px);
}

/* iPhone / Mobile */
@media screen and (max-width: 480px) {
  .jvU-card-narrow {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }

  .jvU-card-narrow .jvU-img {
    height: 135px;
  }

  .jvU-card-narrow p {
    font-size: 12px;
  }
}

/* =========================================
   JAVANUE GRAY FLEX-GRID CREATIVE SECTIONS
========================================= */

.section-gray.jv-creative-section,
.section-gray.jv-carousel-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 0;
  box-sizing: border-box;
  text-align: center;
}

.section-gray .flex-grid {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.section-gray .flex-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.section-gray .flex-item {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.jv-creative-box {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
}

.jv-creative-img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto 12px;
  border: 0;
}

.jv-creative-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  text-align: center;
}

.jv-creative-icon {
  display: inline-block;
  vertical-align: middle;
}

.jv-creative-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #005bbb;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.jv-creative-btn:hover,
.jv-creative-btn:focus {
  background: #ffcc00;
  color: #000000 !important;
  transform: translateY(-1px);
}

/* Mobile */
@media screen and (max-width: 480px) {
  .section-gray.jv-creative-section,
  .section-gray.jv-carousel-section {
    padding: 14px 0;
  }

  .section-gray .flex-grid {
    padding: 0 8px;
  }

  .jv-creative-box {
    padding: 10px 8px;
  }

  .jv-creative-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* =========================================
   JAVANUE jvU NARROW CAROUSEL CENTERING FIX
   Use with: <div class="jvU jvU-narrow jvU-coffee" data-jvu-carousel>
========================================= */

.jvU.jvU-narrow {
  text-align: center;
}

/* Narrow carousel card sizing */
.jvU.jvU-narrow .jvU-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  min-height: 350px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;
  padding: 0;
  box-sizing: border-box;
}

/* Center all direct card content */
.jvU.jvU-narrow .jvU-card > * {
  text-align: center;
}

/* Narrow carousel images/icons */
.jvU.jvU-narrow .jvU-card > img,
.jvU.jvU-narrow .jvU-img,
.jvU.jvU-narrow .jvU-icon {
  display: block;
  width: 100%;
  height: 145px;
  max-height: 145px;
  object-fit: contain;

  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;

  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

/* Narrow carousel headings */
.jvU.jvU-narrow .jvU-card h3 {
  width: 100%;
  margin: 10px auto 7px auto;
  padding: 0 10px;
  box-sizing: border-box;

  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* Narrow carousel paragraph text */
.jvU.jvU-narrow .jvU-card p {
  width: 100%;
  margin: 0 auto 10px auto;
  padding: 0 12px;
  box-sizing: border-box;

  color: #303030;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;

  flex: 1 1 auto;
}

/* Narrow carousel button */
.jvU.jvU-narrow .jvU-btn {
  display: inline-block;
  margin: auto auto 14px auto;
  padding: 8px 14px;
  min-width: 135px;
  max-width: 180px;

  border-radius: 999px;
  background: #005bbb;
  color: #ffffff !important;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;

  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  box-sizing: border-box;
}

.jvU.jvU-narrow .jvU-btn:hover,
.jvU.jvU-narrow .jvU-btn:focus {
  background: #ffcc00;
  color: #000000 !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Optional: support cards that also use jvU-card-narrow */
.jvU.jvU-narrow .jvU-card-narrow {
  text-align: center;
  align-items: center;
}

.jvU.jvU-narrow .jvU-card-narrow .jvU-body {
  text-align: center;
  align-items: center;
}

/* iPHONE / SMALL MOBILE */
@media screen and (max-width: 480px) {

  .jvU.jvU-narrow .jvU-card {
    flex-basis: 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    min-height: 335px;
  }

  .jvU.jvU-narrow .jvU-card > img,
  .jvU.jvU-narrow .jvU-img,
  .jvU.jvU-narrow .jvU-icon {
    height: 135px;
    max-height: 135px;
  }

  .jvU.jvU-narrow .jvU-card h3 {
    font-size: 16px !important;
    margin-top: 9px !important;
    margin-bottom: 6px !important;
  }

  .jvU.jvU-narrow .jvU-card p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 9px !important;
  }

  .jvU.jvU-narrow .jvU-btn {
    min-width: 125px;
    max-width: 165px;
    padding: 8px 11px;
    font-size: 12px !important;
  }
}

/* =========================================================
   JAVANUE NARROW CAROUSEL — LARGE TOP IMAGES
   Use: .jvU-large-images on the carousel wrapper
========================================================= */

/* Increase the overall card height to accommodate larger images */
.jvU.jvU-narrow.jvU-large-images .jvU-card {
  min-height: 430px;
}

/* Increase the image display area */
.jvU.jvU-narrow.jvU-large-images .jvU-card > img,
.jvU.jvU-narrow.jvU-large-images .jvU-img {
  display: block;
  width: 100%;
  height: 200px;
  max-height: 200px;
  margin: 0 auto;
  padding: 6px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-sizing: border-box;
  flex: 0 0 200px;
}

/* Preserve centered card content */
.jvU.jvU-narrow.jvU-large-images .jvU-body {
  width: 100%;
  flex: 1 1 auto;
}

/* Tablet */
@media screen and (max-width: 932px) {

  .jvU.jvU-narrow.jvU-large-images .jvU-card {
    min-height: 415px;
  }

  .jvU.jvU-narrow.jvU-large-images .jvU-card > img,
  .jvU.jvU-narrow.jvU-large-images .jvU-img {
    height: 190px;
    max-height: 190px;
    flex-basis: 190px;
  }
}

/* Mobile */
@media screen and (max-width: 640px) {

  .jvU.jvU-narrow.jvU-large-images .jvU-card {
    min-height: 395px;
  }

  .jvU.jvU-narrow.jvU-large-images .jvU-card > img,
  .jvU.jvU-narrow.jvU-large-images .jvU-img {
    height: 180px;
    max-height: 180px;
    flex-basis: 180px;
    padding: 5px;
  }
}

/* iPhone portrait / small mobile */
@media screen and (max-width: 480px) {

  .jvU.jvU-narrow.jvU-large-images .jvU-card {
    min-height: 380px;
  }

  .jvU.jvU-narrow.jvU-large-images .jvU-card > img,
  .jvU.jvU-narrow.jvU-large-images .jvU-img {
    height: 170px;
    max-height: 170px;
    flex-basis: 170px;
    padding: 4px;
  }
}

/* =========================================================
   LARGE TOP IMAGES — NARROW JAVANUE CAROUSEL CARDS
========================================================= */

.jvU.jvU-narrow .jvU-card.jvU-card-narrow > .jvU-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

/* =========================================================
   JAVANUE CAROUSEL — iPHONE PORTRAIT SCROLLING FIX
   Append this block to the END of Javanue-Carousel.css
========================================================= */

@media screen and (max-width: 480px) {

  /* Keep the carousel inside the mobile viewport */
  .jv-carousel-wrap,
  .jvU,
  .jvU-viewport {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* The outer wrapper may clip page-level overflow */
  .jvU,
  .jvU-featured,
  .jvU-coffee,
  .jvU-tea,
  .jvU-roasters,
  .jvU-subscriptions,
  .jvU-accessories {
    width: 100% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    overflow-x: hidden !important;
  }

  /* This element must be the actual horizontal scroller */
  .jvU-viewport {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    scroll-padding-right: 4px;

    overscroll-behavior-x: contain;
    touch-action: pan-x;

    padding: 8px 4px 16px !important;
  }

  /* The track must remain wider than the viewport */
  .jvU-track {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;

    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;

    gap: 14px !important;
    transform: none;
  }

  /* Cards must never shrink to fit the screen */
  .jvU-card,
  .jvU-card-narrow,
  .jvU.jvU-narrow .jvU-card {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Standard mobile card width */
  .jvU-card {
    flex-basis: 215px;
    width: 215px;
    min-width: 215px;
    max-width: 215px;
  }

  /* Narrow carousel mobile card width */
  .jvU-card-narrow,
  .jvU.jvU-narrow .jvU-card {
    flex-basis: 200px !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
  }
}
/* =========================================================
   JAVANUE CAROUSEL — iPHONE PORTRAIT SCROLLING CORRECTION
   Place at the END of Javanue-Carousel.css
========================================================= */

@media screen and (max-width: 480px) {

  /* Do not clip the child scrolling viewport */
  .jvU,
  .jvU-featured,
  .jvU-coffee,
  .jvU-tea,
  .jvU-roasters,
  .jvU-subscriptions,
  .jvU-accessories {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    padding-left: 6px !important;
    padding-right: 6px !important;

    overflow: visible !important;
  }

  /* This must be the horizontal scrolling element */
  .jvU-viewport {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow-x: scroll !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 8px 4px 16px !important;
  }

  /* Keep the track wider than the phone viewport */
  .jvU-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;

    gap: 14px !important;
  }

  /* Prevent cards from shrinking onto one screen */
  .jvU-card,
  .jvU-card-narrow,
  .jvU.jvU-narrow .jvU-card {
    flex: 0 0 200px !important;

    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;

    scroll-snap-align: start;
  }
}