/*
  components.css
  BenQ Bangladesh — Reusable UI components
  Contains: product finder tabs, product cards, and buttons
  used across the "Find Your Best Product" section.
*/

.pf-tabs{
    display:flex;
    gap: 40px;
    margin-bottom: 0;
    overflow-x:auto;
    scrollbar-width:none;
  }

.pf-tabs::-webkit-scrollbar{ display:none; }

.pf-tab{
    position:relative;
    background:none;
    border:none;
    padding: 0 0 16px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight:700;
    color: var(--ink-soft);
    cursor:pointer;
    white-space:nowrap;
    transition: color .15s ease;
  }

.pf-tab:hover{ color: var(--ink); }

.pf-tab.active{ color: var(--link-color); }

.pf-tab.active::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:-1px;
    height:2px;
    background:var(--link-color);
  }

.pf-panel{
    position:relative;
    margin-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow:hidden;
    aspect-ratio: 1920 / 530;
  }

.pf-panel img{
    display:block;
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center 65%;
    transition: opacity .15s ease;
  }

.pf-products-head{
    text-align:center;
    padding: 40px 0 0;
  }

.pf-products-head h3{
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight:700;
    color: var(--ink);
    margin: 0 0 12px;
  }

.pf-products-head p{
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-soft);
    line-height:1.6;
    max-width: 720px;
    margin: 0 auto;
  }

.pf-products-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: none;
    margin-top: 0;
  }

.pf-products-carousel{
    position: relative;
    margin-top: 32px;
  }

.pf-carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28,27,31,.1);
    transition: border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
  }

.pf-carousel-prev{ left: -22px; }
.pf-carousel-next{ right: -22px; }

.pf-carousel-btn svg{ width: 19px; height: 19px; }

.pf-carousel-btn:hover:not(:disabled){
    border-color: var(--brand-purple);
    background: var(--brand-purple);
    color: var(--white-color);
  }

.pf-carousel-btn:disabled{
    opacity: .35;
    cursor: not-allowed;
  }

.pf-product-card{
    padding: 20px;
    margin: 0;
    background-color: var(--white-color);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
    will-change: transform;
  }

.pf-product-card:hover{
    transform: translateY(-6px);
    background-color: var(--white-color);
    border-color: var(--brand-purple);
    box-shadow: 0 18px 34px rgba(28,27,31,.12), 0 4px 10px rgba(28,27,31,.06);
  }

.pf-product-thumb-link{
    display:block;
    text-decoration:none;
    color:inherit;
    position: relative;
  }


.pf-product-badge{
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 3px 10px;
    border-radius: 999px;
  }

.pf-product-thumb{
    width:100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom: 20px;
    overflow: hidden;
    /* Promotes this element to its own compositing layer. Without
       this, some browsers fail to repaint large product photos after
       their card goes from display:none to visible (e.g. when paging
       through the Product Finder / Featured Products carousels),
       leaving the image blank until some other repaint happens to be
       triggered. This is a standard, side-effect-free fix for that. */
    transform: translateZ(0);
  }

.pf-product-thumb svg{ width: 44%; height: 44%; color: var(--brand-purple); opacity: .85; }

.pf-product-photo{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
  }

.pf-product-card:hover .pf-product-photo{ transform: scale(1.06); }

.pf-product-tag{
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 8px;
  }

.pf-product-name{
    font-family: var(--font-body);
    font-size: 16px;
    font-weight:700;
    color: var(--ink);
    line-height:1.4;
    margin: 0 0 10px;
  }

.pf-product-name a{
    color: inherit;
    text-decoration: none;
  }

.pf-product-name a:hover{ text-decoration: underline; }

.pf-product-desc{
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height:1.6;
    margin:0 0 16px;
  }

.pf-product-card:hover .pf-product-name{ color: var(--brand-purple); }

.pf-product-card:hover .pf-product-thumb{ background: transparent; }

.pf-product-price-row{
    display:flex;
    align-items:baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
  }

.pf-product-price{
    font-family: var(--font-body);
    font-size: 15px;
    font-weight:700;
    color: var(--brand-purple);
  }

.pf-product-price-old{
    font-family: var(--font-body);
    font-size: 13px;
    font-weight:500;
    color: var(--muted-color);
    text-decoration: line-through;
  }

.pf-product-actions{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-top: auto;
  }

.pf-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:1;
    padding: 11px 14px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight:700;
    letter-spacing: .02em;
    text-decoration:none;
    white-space:nowrap;
    border: 1.5px solid var(--brand-purple);
    transition: background .15s ease, color .15s ease;
  }

.pf-btn-solid{
    background: var(--brand-purple);
    color: var(--white-color);
  }

.pf-btn-solid:hover{ background: var(--brand-purple-dark); }

.pf-btn-outline{
    background: transparent;
    color: var(--brand-purple);
  }

.pf-btn-outline:hover{ background: var(--surface-tint); }

/* Keep button colors intact even when a .pf-btn sits inside interior page
   copy, whose ".page-section-inner a" rule would otherwise win on specificity */
.page-section-inner .pf-btn-solid{ color: var(--white-color); }
.page-section-inner .pf-btn-outline{ color: var(--brand-purple); }

/* Featured Products has no carousel — it's a plain wrapping grid, so
   no extra positioning/wrapper CSS is needed for it here. */

/* ============ BREADCRUMB (shared: product & category pages) ============ */
.pd-breadcrumb{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-pad) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
}

.pd-breadcrumb a{
  color: var(--ink-soft);
  text-decoration: none;
}

.pd-breadcrumb a:hover{ color: var(--brand-purple); }

/* ============ INTERIOR PAGE LAYOUT (about/services/portfolio/contact) ============ */
.page-content{
  display: block;
}

.page-hero{
  background: var(--brand-purple);
  color: var(--white-color);
  padding: 64px var(--container-pad);
}

.page-hero-inner{
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero-inner h1{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}

.page-hero-inner p{
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0;
}

.page-section{
  padding: 48px var(--container-pad);
  border-bottom: 1px solid var(--line);
}

.page-section:last-of-type{
  border-bottom: none;
}

.page-section-inner{
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-section-inner h2{
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-section-inner p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.page-section-inner a{
  color: var(--brand-purple);
  font-weight: 600;
}

/* ============ FULL-CONTAINER SUPPORT PAGES ============ */
/* Wider variant of .page-hero-inner / .page-section-inner that spans the
   site's full container width instead of the narrower 900px text column. */
.page-hero-inner.full-container,
.page-section-inner.full-container{
  max-width: var(--container-max);
}

.wide-section-inner p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.wide-section-inner h2{
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
}

.wide-section-inner .section-subtitle{
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 640px;
}

/* --- FAQ accordion --- */
.faq-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.faq-category h3{
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand-purple);
  margin: 0 0 8px;
}

.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker{ display: none; }

.faq-item .faq-icon{
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-purple);
  transition: transform .2s ease;
}

.faq-item[open] .faq-icon{ transform: rotate(45deg); }

.faq-item p{
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15px;
}

/* --- Downloads grid --- */
.downloads-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.download-card{
  background: var(--surface-tint-neutral, #F2F2F2);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.download-card:hover{
  transform: translateY(-4px);
  background-color: var(--white-color);
  box-shadow: 0 14px 28px rgba(28,27,31,.1);
}

.download-card .dl-icon{
  width: 40px;
  height: 40px;
  color: var(--brand-purple);
}

.download-card h4{
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.download-card .dl-meta{
  font-size: 13px;
  color: var(--ink-soft);
}

.download-card .dl-action{
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-purple);
}

/* --- Auth card (Member Login) --- */
.auth-wrap{
  display: flex;
  justify-content: center;
}

.auth-card{
  width: 100%;
  max-width: 440px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.auth-card h2{
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
}

.auth-card .auth-subtitle{
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 24px;
}

.auth-links{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 16px;
}

.auth-links a{
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover{ text-decoration: underline; }

.auth-card .contact-submit-btn{
  width: 100%;
  padding: 14px 24px;
  margin-top: 6px;
}

/* Stacked form fields inside auth-card / subscribe-form-panel aren't grid
   children of .contact-form-grid (which supplies its own gap), so they need
   their own spacing — otherwise fields, chip groups, and the submit button
   render flush against each other with no breathing room. */
.auth-card form > .contact-field,
.subscribe-form-panel form > .subscribe-form-row,
.subscribe-form-panel form > .contact-field{
  margin-bottom: 20px;
}

/* --- Projector calculator --- */
.calc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-result{
  background: var(--surface-tint);
  border-radius: var(--radius);
  padding: 28px;
}

.calc-result h3{
  font-family: var(--font-display);
  color: var(--brand-purple);
  margin: 0 0 16px;
  font-size: 18px;
}

.calc-result-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(88,46,145,0.12);
  font-size: 15px;
}

.calc-result-row:last-child{ border-bottom: none; }

.calc-result-row span:first-child{ color: var(--ink-soft); }
.calc-result-row span:last-child{ font-weight: 700; color: var(--ink); }

.calc-result-note{
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Newsletter / Deal Registration checkbox rows --- */
.contact-field-checkrow{
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-field-checkrow input{ width: auto; }

.contact-field-checkrow label{
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 860px){
  .faq-grid{ grid-template-columns: 1fr; gap: 8px 0; }
  .calc-grid{ grid-template-columns: 1fr; }
}

/* ============ SUBSCRIBE CARD (Newsletter page) ============ */
.subscribe-card{
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  background: var(--white-color);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(28,27,31,.08);
}

.subscribe-panel{
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-purple), var(--brand-purple-dark));
  color: var(--white-color);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.subscribe-panel::before{
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent-lime);
  opacity: 0.14;
  top: -90px;
  right: -90px;
}

.subscribe-eyebrow{
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.subscribe-panel h2{
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  margin: 0;
  line-height: 1.2;
  color: var(--white-color);
}

.subscribe-panel > p{
  position: relative;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 380px;
}

.subscribe-benefits{
  position: relative;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscribe-benefits li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.subscribe-benefits svg{
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-lime);
  margin-top: 1px;
}

.subscribe-benefits span{
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}

.subscribe-form-panel{
  padding: 48px 44px;
}

.subscribe-form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.subscribe-fineprint{
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Topic chips (replace plain checkbox rows) --- */
.topic-chip-group{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.chip-input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.topic-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.topic-chip .chip-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .2s ease;
}

.chip-input:checked + .topic-chip{
  background: rgba(88,46,145,0.08);
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.chip-input:checked + .topic-chip .chip-dot{
  background: var(--brand-purple);
}

.chip-input:focus-visible + .topic-chip{
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

@media (max-width: 860px){
  .subscribe-card{ grid-template-columns: 1fr; }
  .subscribe-panel, .subscribe-form-panel{ padding: 36px 28px; }
  .subscribe-form-row{ grid-template-columns: 1fr; gap: 0; }
}


