/* CBD Gondomar — Tienda */

/* ============================================================ CATEGORY TABS */
.tcats{
  display: flex; justify-content: center;
  padding: 0 12px;
  margin-top: 24px;
  position: relative; z-index: 5;
}
.tcats-bar{
  background: var(--b-ink);
  color: var(--b-cream);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  gap: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  max-width: 100%;
  overflow-x: auto;
}
.tcat{
  appearance: none; border: 0; cursor: pointer;
  background: transparent;
  color: var(--b-cream);
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast) var(--ease);
}
.tcat:hover{ background: rgba(255,255,255,.08); }
.tcat.is-active{ background: var(--b-cream); color: var(--b-ink); }
.tcat-dot{
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0,0,0,.2);
}

@media (max-width: 620px){
  .tcats-bar{
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--b-radius-sm);
  }
  .tcat{ padding: 7px 12px; font-size: 12.5px; }
}

/* ============================================================ CATALOG */
.tcatalog{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 40px clamp(16px, 3vw, 32px);
  max-width: 1500px;
  margin: 0 auto;
}

/* sidebar */
.tside{
  display: flex; flex-direction: column; gap: 14px;
  align-self: start;
  position: sticky; top: 96px;
}
.tside-search{
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--b-ink);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--b-cream);
}
.tside-search svg{ width: 14px; height: 14px; flex-shrink: 0; }
.tside-search input{
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--f-body); font-size: 13px;
}
.tside-block{
  border-radius: var(--b-radius-sm);
  background: rgba(0,0,0,.04);
  overflow: hidden;
}
.tside-h{
  appearance: none; border: 0; cursor: pointer; width: 100%;
  background: transparent;
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  display: flex; justify-content: space-between; align-items: center;
}
.tside-arr{ transition: transform var(--t-fast) var(--ease); }
.tside-h.is-closed .tside-arr{ transform: rotate(-90deg); }
.tside-body{
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 14px 14px;
}
.tside-body.is-hidden{ display: none; }
.tside-body label{
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.tside-body input{
  accent-color: var(--b-ink);
  cursor: pointer;
}
.tside-actions{
  display: flex; gap: 8px;
  margin-top: 4px;
}
.tside-actions .bbtn{ flex: 1; justify-content: center; }

/* sort row */
.tmain{ min-width: 0; }
.tsort{
  display: flex; justify-content: flex-end; gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tsort-btn{
  appearance: none; border: 0; cursor: pointer;
  background: rgba(0,0,0,.06);
  color: var(--b-ink-soft);
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.tsort-btn:hover{ background: rgba(0,0,0,.10); color: var(--b-ink); }
.tsort-btn.is-active{ background: var(--b-ink); color: var(--b-cream); }

/* grid */
.tgrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 16px;
}
.tcard.is-hidden{ display: none !important; }
.tcard{
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}
.tcard:hover{ transform: translateY(-4px); }
.tcard-frame{
  width: 100%; aspect-ratio: 1;
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,15,14,.07);
  border-radius: 12px;
  overflow: hidden;
}
.tcard-frame img{
  position: absolute; top: 7%; left: 7%;
  width: 86%; height: 86%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(15,15,14,.12));
  transition: transform var(--t-fast) var(--ease);
}
.tcard:hover .tcard-frame img{ transform: scale(1.08); }
.tcard-name{
  font-family: var(--f-chunk);
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(17px * 1.15 * 3);
}
.tcard-spec{
  font-family: var(--f-body); font-weight: 500;
  text-transform: none; letter-spacing: 0;
  font-size: 13px; color: var(--b-ink-soft);
}
.tcard-tags{
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  justify-content: center;
}
.ttag{
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--b-ink-soft);
}
.ttag-dot{
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--c);
  border-radius: 50%;
}
.tcard-price{
  font-family: var(--f-chunk);
  font-size: 16px;
  margin-top: 4px;
}

/* add to cart button */
.tcard-btn{
  appearance: none; border: 2px solid var(--b-ink);
  background: transparent; color: var(--b-ink);
  font-family: var(--f-body); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 20px; cursor: pointer;
  width: 100%; margin-top: auto;
  transition: background var(--t-fast), color var(--t-fast);
}
.tcard-btn:hover{ background: var(--b-ink); color: var(--b-cream); }
.tcard-btn.added{ background: var(--b-ink); color: var(--b-cream); }

/* load more */
.tload{
  margin-top: 32px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.tcount{ color: var(--b-ink-soft); font-size: 11px; }

/* ============================================================ FAQS */
.tfaqs{
  padding: clamp(60px, 8vw, 110px) clamp(24px, 4vw, 56px);
  background: var(--b-cream);
}
.tfaqs-title{
  font-family: var(--f-chunk);
  font-size: clamp(48px, 7vw, 100px);
  line-height: .9;
  letter-spacing: -.02em;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 36px;
}
.tfaq-list{
  max-width: 900px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px;
}
.tfaq{
  background: var(--bg, var(--b-yellow));
  border-radius: 999px;
  overflow: hidden;
  transition: border-radius var(--t-med) var(--ease);
}
.tfaq.is-open{ border-radius: var(--b-radius); }
.tfaq-q{
  appearance: none; border: 0; cursor: pointer;
  background: transparent;
  width: 100%;
  font-family: var(--f-body); font-size: 14px; font-weight: 700;
  color: var(--b-ink);
  text-align: left;
  padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.tfaq-pl{
  font-family: var(--f-chunk);
  font-size: 18px;
  transition: transform var(--t-med) var(--ease);
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--b-ink); color: var(--b-cream);
  border-radius: 50%;
}
.tfaq.is-open .tfaq-pl{ transform: rotate(45deg); }
.tfaq-a{
  font-size: 14px; line-height: 1.55;
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.tfaq.is-open .tfaq-a{
  max-height: 240px;
  padding: 0 22px 18px;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px){
  .tgrid{ grid-template-columns: repeat(2, 1fr); }
  .tcatalog{ grid-template-columns: 220px 1fr; }
}
@media (max-width: 800px){
  .tcatalog{ grid-template-columns: 1fr; }
  .tside{ position: relative; top: 0; }
  .tsort{ justify-content: flex-start; }
}
.tside-toggle{
  appearance: none; border: 0; cursor: pointer;
  display: none;
  width: 100%;
  background: var(--b-ink);
  color: var(--b-cream);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--b-radius-sm);
  text-align: left;
  transition: all var(--t-fast) var(--ease);
}
.tside-toggle:hover{ background: rgba(0,0,0,.9); }
.tside-toggle .tside-arr{ float: right; }
.tside-toggle.is-open .tside-arr{ transform: rotate(180deg); }

.tside-filters{
  display: contents;
}

@media (max-width: 520px){
  .tside-toggle{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tside-filters{
    display: none;
    margin-top: 12px;
  }
  .tside-filters.is-open{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .tgrid{ grid-template-columns: 1fr 1fr; gap: 20px 8px; }
  .tcard-name{ font-size: 14px; }
}
