.ws-smartsize__container{
  max-width:1480px;
  margin:0 auto;
  padding:0 20px;
}

.ws-smartsize__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  position:relative;
}

@media (max-width:1140px){
  .ws-smartsize__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.ws-smartsize__card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #D4D4D4;
  border-radius:10px;
  background:#fff;
}

.ws-smartsize__media{
  position:relative;
  display:block;
  margin:0;
  padding:0;
  aspect-ratio:1/1.1;
  overflow:hidden;
  border-radius:10px;
}

.ws-smartsize__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

.ws-smartsize__body{
  padding:0 20px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ws-smartsize__name{
  margin:0;
  padding-top:20px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  text-align:center !important;
  overflow:hidden;
}

.ws-smartsize__specs{
  list-style:none;
  padding:0;
  margin:8px 0 2px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ws-smartsize__spec{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.35;
}

.ws-smartsize__spec-ico{
  flex:0 0 18px;
  width:18px;
  height:18px;
  object-fit:contain;
  margin-top:2px;
  display:block;
  filter:brightness(0) saturate(100%);
}

h2.ws-smartsize__title{
  margin-top:34px !important;
  margin-bottom:34px !important;
}

.ws-smartsize__pill{
  position:absolute;
  left:50%;
  bottom:42px;
  transform:translateX(-50%);
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:center;

  width:300px !important;
  min-width:300px !important;
  max-width:300px !important;
  height:44px !important;
  box-sizing:border-box;
  padding:0 18px !important;
  border-radius:999px;

  --glass-bg: rgba(0,0,0,.65);
  --glass-brd: rgba(255,255,255,.25);
  --glass-blur: 8px;
  --glass-shadow: 0 4px 14px rgba(0,0,0,.25);

  background:var(--glass-bg) !important;
  border:1px solid var(--glass-brd) !important;
  box-shadow:var(--glass-shadow);
  backdrop-filter:blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.2);

  color:#fff !important;
  font-family:'Montserrat',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:500;
  font-size:18px !important;
  line-height:1 !important;
  white-space:nowrap;
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1, "onum" 0;
  gap:0 !important;
}

.ws-smartsize__pill *{
  font-size:inherit !important;
  line-height:inherit !important;
  color:inherit !important;
  background:transparent !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

.ws-smartsize__pill-tag,
.ws-smartsize__pill-price{ margin-right:3px !important; }

.ws-smartsize__pill-or{ margin:0 2px !important; }
.ws-smartsize__pill-month{ margin-left:2px !important; }

.ws-smartsize__pill del,
.ws-smartsize__pill s,
.ws-smartsize__pill strike,
.ws-smartsize__pill .ws-smartsize__pill-old,
.ws-smartsize__pill-price del,
.ws-smartsize__pill-price s,
.ws-smartsize__pill-price strike,
.ws-smartsize__pill-price .ws-smartsize__pill-old,
.ws-smartsize__pill-price [class*="old"]{
  display:none !important;
}

.ws-smartsize__pill-price ins,
.ws-smartsize__pill-price .ws-smartsize__pill-new,
.ws-smartsize__pill-price [class*="new"]{
  text-decoration:none !important;
}

.ws-smartsize{
  --ws-btn-bg:   #FFC107;
  --ws-btn-fill: #a00;
  --ws-btn-text: #000;
  --ws-btn-text-hover:#fff;
}

.ws-smartsize .ws-smartsize__btn{
  background:var(--ws-btn-bg) !important;
  color:var(--ws-btn-text) !important;

  position:relative !important;
  overflow:hidden !important;
  isolation:isolate;

  border:0 !important;
  border-radius:999px;

  transition:none !important;
  animation:none !important;
  transform:none !important;
  -webkit-transform:none !important;
  -webkit-tap-highlight-color:transparent;
}

.ws-smartsize .ws-smartsize__btn::before,
.ws-smartsize .ws-smartsize__btn::after{
  content:none !important;
  display:none !important;
  background:none !important;
  opacity:0 !important;
  transition:none !important;
  animation:none !important;
}

.ws-smartsize .ws-smartsize__btn:hover,
.ws-smartsize .ws-smartsize__btn:focus-visible,
.ws-smartsize .ws-smartsize__btn:active{
  background:var(--ws-btn-fill) !important;
  color:var(--ws-btn-text-hover) !important;
}

@media (max-width:680px){

  .ws-smartsize{ padding-top:0; overflow:visible !important; }

  .ws-smartsize__container{
    padding-left:0;
    padding-right:0;
  }

  .ws-smartsize__title{ padding:0 16px; }

  .ws-smartsize__grid{
    display:block !important;
    position:relative !important;
    overflow:visible !important;
    padding:0 0 28px !important;
    gap:0 !important;
  }

  .ws-smartsize__grid.swiper{ overflow:visible !important; }

  .ws-smartsize__grid.swiper .swiper-wrapper{
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box !important;
  }

  .ws-smartsize__grid.swiper .swiper-slide{
    width:90% !important;
    max-width:90% !important;
    height:auto;
  }

  .ws-smartsize__pill{
    bottom:14px !important;
    z-index:2;
  }

  .ws-smartsize__grid{ --ws-smartsize-arrow-y: 50%; }

  .ws-smartsize__arrow{
    position:absolute !important;
    top:var(--ws-smartsize-arrow-y, 50%) !important;
    bottom:auto !important;
    transform:translateY(-50%) !important;

    width:32px !important;
    height:32px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:999px !important;
    background:rgba(0,0,0,.55) !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    z-index:9999 !important;
    cursor:pointer;
  }

  .ws-smartsize__arrow--prev{ left:12px !important; right:auto !important; }
  .ws-smartsize__arrow--next{ right:12px !important; left:auto !important; }

  .ws-smartsize__arrow::before{
    content:"" !important;
    display:block !important;
    width:8px !important;
    height:8px !important;
    border-top:2px solid #fff !important;
    border-right:2px solid #fff !important;
  }
  .ws-smartsize__arrow--prev::before{ transform:rotate(-135deg) !important; margin-left:2px !important; }
  .ws-smartsize__arrow--next::before{ transform:rotate(45deg) !important; margin-right:2px !important; }

  .ws-smartsize__arrow.is-hidden{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
  .ws-smartsize__arrow.is-disabled{
    opacity:.15 !important;
    pointer-events:none !important;
  }

  .ws-smartsize__pagination{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    bottom:6px !important;

    display:flex !important;
    justify-content:center !important;

    z-index:20 !important;
    pointer-events:none !important;
  }

  .ws-smartsize__pagination .swiper-pagination-bullet{
    width:6px;
    height:6px;
    border-radius:999px;
    background:#D0D0D0;
    opacity:1;
    margin:0 3px;
    pointer-events:auto;
  }

  .ws-smartsize__pagination .swiper-pagination-bullet-active{
    background:#000;
  }
}

@media (min-width:681px){
  .ws-smartsize__arrow,
  .ws-smartsize__pagination{
    display:none !important;
  }
}

@media (min-width:681px){

  .ws-smartsize__grid{
    display:block !important;
  }

  .ws-smartsize__grid > .swiper-wrapper{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:24px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  @media (max-width:1140px){
    .ws-smartsize__grid > .swiper-wrapper{
      grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
  }

  .ws-smartsize__grid > .swiper-wrapper > .swiper-slide{
    width:auto !important;
    margin:0 !important;
  }
}


/*
 * EU Profit Series — same homepage presentation rules as the US lineup
 * (see DWP US Home Lineups' dwp-us-lineups-css). Keep this scoped so
 * Start, Smart, Classic and other Product cards do not change.
 */
section.ws-smartsize--profit-eu .ws-smartsize__cta{
  display:flex !important;
  justify-content:center !important;
  text-align:center !important;
}
section.ws-smartsize--profit-eu .ws-smartsize__spec span{
  white-space:nowrap !important;
}
section.ws-smartsize--profit-eu .ws-smartsize__img{
  object-fit:contain !important;
  object-position:50% 100% !important;
}
/* Every desktop width gets all four Profit models on ONE row.
   Narrow desktop cards use scaled pills; tablets retain two columns. */
@media (min-width:1024px){
  section.ws-smartsize--profit-eu .ws-smartsize__grid > .swiper-wrapper{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  section.ws-smartsize--profit-eu .ws-smartsize__name{
    white-space:nowrap !important;
    font-size:clamp(16px,1.4vw,24px) !important;
  }
  section.ws-smartsize--profit-eu .ws-smartsize__spec span{
    font-size:clamp(12px,0.93vw,15px) !important;
  }
}
@media (min-width:1024px) and (max-width:1140px){
  section.ws-smartsize--profit-eu .ws-smartsize__pill{
    width:calc(100% - 14px) !important;
    min-width:0 !important;
    max-width:calc(100% - 14px) !important;
    font-size:clamp(12px,1.4vw,15px) !important;
    padding:0 8px !important;
  }
  section.ws-smartsize--profit-eu .ws-smartsize__body{
    padding-left:12px;
    padding-right:12px;
  }
  section.ws-smartsize--profit-eu .ws-smartsize__spec span{
    font-size:clamp(11px,1vw,13px) !important;
  }
}
@media (max-width:680px){
  section.ws-smartsize--profit-eu .ws-smartsize__name{
    white-space:nowrap !important;
    font-size:clamp(18px,5.4vw,24px) !important;
  }
  section.ws-smartsize--profit-eu .ws-smartsize__spec span{
    font-size:clamp(12px,3.5vw,15px) !important;
  }
}

/* Four DOMWERK EU Start configurations: retain the existing Smartsize cards. */
section.ws-smartsize--start .ws-smartsize__card{
  height:100%;
}
section.ws-smartsize--start .ws-smartsize__body{
  flex:1;
  min-width:0;
}
section.ws-smartsize--start .ws-smartsize__cta{
  display:flex !important;
  justify-content:center !important;
  margin-top:auto;
}
section.ws-smartsize--start .ws-smartsize__pill{
  width:calc(100% - 20px) !important;
  min-width:0 !important;
  max-width:300px !important;
  padding:0 8px !important;
  font-size:clamp(12px,1.15vw,18px) !important;
}
@media (min-width:1024px){
  section.ws-smartsize--start .ws-smartsize__grid > .swiper-wrapper{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  section.ws-smartsize--start .ws-smartsize__name{
    font-size:clamp(14px,1.18vw,21px) !important;
    line-height:1.3;
  }
  section.ws-smartsize--start .ws-smartsize__spec span{
    font-size:clamp(11px,0.94vw,14px) !important;
  }
}
@media (min-width:1024px) and (max-width:1140px){
  section.ws-smartsize--start .ws-smartsize__body{
    padding-left:10px;
    padding-right:10px;
  }
}


/* Restore breathing room before the footer on the Classic intermediate page. */
body.page-template-classicseries .ws-addwhat.catalog-new {
  margin-bottom: clamp(32px, 4vw, 56px);
}
