/* ============================================================
   OLDFOX — SHOP CSS v1.0
   ============================================================ */

/* ── FILTERBALK ───────────────────────────────────────────── */
.of-filterbar {
  background: var(--of-zwart);
  display: flex;
  gap: 8px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 90;
  -webkit-overflow-scrolling: touch;
}
.of-filterbar::-webkit-scrollbar { display: none; }

.of-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(239,238,231,0.25);
  color: rgba(239,238,231,0.8);
  border-radius: var(--of-radius-knop);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--of-font);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--of-transition), border-color var(--of-transition), color var(--of-transition);
  text-decoration: none;
  display: inline-block;
}
.of-pill:hover { border-color: rgba(239,238,231,0.5); color: #EFEEE7; }
.of-pill.is-active {
  background: var(--of-bruin);
  border-color: var(--of-bruin);
  color: #EFEEE7;
}

/* ── SHOP MAIN ─────────────────────────────────────────────── */
.of-shop-wrap { max-width: 1400px; margin: 0 auto; }
.of-shop-main { padding: 0 16px 40px; }

.of-shop-topbar {
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .of-shop-topbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Actieve filters */
.of-active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.of-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--of-zwart);
  color: rgba(239,238,231,0.8);
  border-radius: var(--of-radius-knop);
  padding: 3px 10px;
  font-size: 10px;
}
.of-active-tag__remove {
  color: var(--of-bruin);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(239,238,231,0.5);
}
.of-active-tag__remove:hover { color: var(--of-bruin); }

/* Resultaten balk */
.of-results-bar { display: flex; align-items: center; gap: 10px; }
.of-results-count { font-size: 11px; color: var(--of-muted); white-space: nowrap; }
.of-sort-select {
  font-size: 11px;
  font-family: var(--of-font);
  color: var(--of-zwart);
  background: transparent;
  border: 0.5px solid var(--of-rand-hover);
  border-radius: var(--of-radius-knop);
  padding: 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23292928' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* Sectie label */
.of-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--of-muted);
  font-weight: 500;
  padding: 12px 0 8px;
}

/* ── PRODUCTGRID ──────────────────────────────────────────── */
.of-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px)  { .of-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .of-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── PRODUCTKAART ─────────────────────────────────────────── */
.of-card {
  background: var(--of-wit);
  border-radius: var(--of-radius-kaart);
  border: 0.5px solid var(--of-rand);
  overflow: hidden;
  transition: transform var(--of-transition), box-shadow var(--of-transition);
}
.of-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(41,41,40,0.08); }
.of-card--sold { opacity: 0.6; }
.of-card--sold:hover { transform: none; box-shadow: none; }

.of-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #D8D6CE;
}
.of-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.of-card:hover .of-card__img { transform: scale(1.03); }
.of-card__img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D8D6CE;
}

.of-card__body { padding: 10px; }
.of-card__cat {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--of-bruin);
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.of-card__cat span { color: var(--of-bruin); }
.of-card__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--of-zwart);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.of-card__title a { color: var(--of-zwart); text-decoration: none; }

.of-card__footer { display: flex; align-items: center; justify-content: space-between; }
.of-card__price { font-size: 14px; font-weight: 700; color: var(--of-zwart); }
.of-card__price .woocommerce-Price-amount { font-size: 14px; font-weight: 700; }
.of-card__price del { opacity: 0.35; font-size: 11px; }

.of-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.of-card__wishlist-link,
.of-card__cart-link {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1.5px solid var(--of-zwart);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--of-zwart);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
}
.of-card__wishlist-link:hover,
.of-card__cart-link:hover {
  background: var(--of-zwart);
  color: #EFEEE7;
  text-decoration: none;
}
.of-card__wishlist-link.is-active {
  background: var(--of-bruin);
  border-color: var(--of-bruin);
  color: #EFEEE7;
}
.of-card__wishlist-link.is-active svg {
  fill: #EFEEE7;
}
.of-card__cart-link.loading {
  pointer-events: none;
  opacity: 0.5;
}
.of-card__cart-link.added {
  background: var(--of-bruin);
  border-color: var(--of-bruin);
  color: #EFEEE7;
}

.of-card__btn {
  width: 28px;
  height: 28px;
  background: var(--of-zwart);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EFEEE7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: background var(--of-transition);
  flex-shrink: 0;
}
.of-card__btn:hover { background: var(--of-bruin); color: #EFEEE7; }

/* Bod knop op kaart */
.of-card .oldfox-bod-mini-knop,
.of-card .of-bod-mini {
  width: 100%;
  margin-top: 7px;
  background: transparent;
  border: 0.5px solid var(--of-zwart);
  border-radius: var(--of-radius-knop);
  padding: 6px;
  font-size: 10px;
  font-family: var(--of-font);
  color: var(--of-zwart);
  cursor: pointer;
  transition: background var(--of-transition);
}
.of-card .oldfox-bod-mini-knop:hover,
.of-card .of-bod-mini:hover { background: rgba(41,41,40,0.05); }

/* ── GEEN RESULTATEN ──────────────────────────────────────── */
.of-geen-resultaten {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--of-muted);
  font-size: 14px;
}

/* ── PAGINERING ───────────────────────────────────────────── */
.of-paginering { padding: 24px 0; }
.of-paginering .page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.of-paginering .page-numbers li a,
.of-paginering .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--of-radius-knop);
  font-size: 13px;
  font-weight: 500;
  border: 0.5px solid var(--of-rand);
  color: var(--of-zwart);
  background: var(--of-wit);
  text-decoration: none;
  transition: background var(--of-transition);
}
.of-paginering .page-numbers li .current {
  background: var(--of-zwart);
  color: #EFEEE7;
  border-color: var(--of-zwart);
}
.of-paginering .page-numbers li a:hover {
  background: var(--of-bg);
  border-color: var(--of-rand-hover);
}

/* ── PRODUCT DETAIL ───────────────────────────────────────── */
.of-product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
}
@media (min-width: 768px) {
  .of-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 32px 32px 60px;
    align-items: start;
  }
}

/* Afbeelding */
.of-product-gallery__main {
  aspect-ratio: 1;
  overflow: hidden;
  background: #D8D6CE;
}
.of-product-gallery__main img,
.of-product-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.of-product-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D8D6CE;
}
.of-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: var(--of-wit);
  border-top: 0.5px solid var(--of-rand);
}
.of-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--of-transition);
}
.of-thumb img { width: 100%; height: 100%; object-fit: cover; }
.of-thumb.is-active { border-color: var(--of-zwart); }
.of-thumb:hover { border-color: var(--of-rand-hover); }

/* Product info */
.of-product-info { padding: 20px; }
@media (min-width: 768px) { .of-product-info { padding: 0; } }

.of-breadcrumb { font-size: 10px; color: var(--of-muted); letter-spacing: 0.5px; margin-bottom: 10px; }
.of-breadcrumb a { color: var(--of-muted); }
.of-breadcrumb span { color: var(--of-bruin); }

.of-product-info__title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--of-zwart);
  line-height: 1.25;
  margin-bottom: 4px;
}
.of-product-info__ref { font-size: 10px; color: var(--of-muted); margin-bottom: 16px; }

.of-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.of-product-price {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--of-zwart);
}
.of-product-price .woocommerce-Price-amount { font-size: 26px; font-weight: 700; }
.of-price-sub { display: block; font-size: 10px; color: var(--of-muted); margin-top: 3px; }
.of-wishlist-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid var(--of-rand-hover);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--of-transition);
}
.of-wishlist-btn:hover { background: var(--of-bg); }

/* CTA knoppen */
.of-product-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.of-product-cta .single_add_to_cart_button {
  width: 100%;
  border-radius: var(--of-radius-knop) !important;
  background: var(--of-zwart) !important;
  color: #EFEEE7 !important;
  padding: 14px 26px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
}
.of-product-cta .oldfox-bod-knop,
.of-product-cta .of-bod-knop {
  width: 100%;
  border-radius: var(--of-radius-knop);
  background: transparent;
  color: var(--of-bruin);
  border: 1.5px solid var(--of-bruin);
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--of-font);
  cursor: pointer;
  transition: background var(--of-transition);
}
.of-product-cta .oldfox-bod-knop:hover,
.of-product-cta .of-bod-knop:hover { background: rgba(139,69,19,0.06); }

/* Meta grid */
.of-meta-section { margin-bottom: 20px; }
.of-meta-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--of-muted);
  margin-bottom: 10px;
}
.of-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.of-meta-item {
  background: var(--of-bg);
  border-radius: 10px;
  padding: 10px 12px;
  border: 0.5px solid var(--of-rand);
}
.of-meta-item__label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--of-muted);
  margin-bottom: 3px;
}
.of-meta-item__value { display: block; font-size: 13px; font-weight: 500; color: var(--of-zwart); }

/* Beschrijving */
.of-product-desc { margin-bottom: 20px; }
.of-product-desc h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--of-muted);
  margin-bottom: 10px;
}
.of-product-desc p { font-size: 13px; color: rgba(41,41,40,0.7); line-height: 1.6; }

/* Polijst banner */
.of-polish-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--of-bruin);
  border-radius: var(--of-radius-kaart);
  padding: 14px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: opacity var(--of-transition);
}
.of-polish-banner:hover { opacity: 0.9; }
.of-polish-banner__icon { font-size: 22px; flex-shrink: 0; }
.of-polish-banner strong { display: block; font-size: 13px; color: #EFEEE7; margin-bottom: 2px; }
.of-polish-banner span   { display: block; font-size: 11px; color: rgba(239,238,231,0.65); }

/* Verzending */
.of-shipping-section { margin-bottom: 20px; }
.of-shipping-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--of-muted);
  margin-bottom: 10px;
}
.of-shipping-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--of-rand);
}
.of-shipping-row:last-child { border-bottom: none; }
.of-shipping-row__icon {
  width: 34px;
  height: 34px;
  background: var(--of-zwart);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.of-shipping-row strong { display: block; font-size: 12px; color: var(--of-zwart); }
.of-shipping-row span   { display: block; font-size: 10px; color: var(--of-muted); }

/* Vendor strip */
.of-vendor-section { margin-bottom: 20px; }
.of-vendor-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--of-muted);
  margin-bottom: 10px;
}
.of-vendor-strip {
  background: var(--of-zwart);
  border-radius: var(--of-radius-kaart);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--of-transition);
}
.of-vendor-strip:hover { opacity: 0.9; }
.of-vendor-strip__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--of-bruin);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EFEEE7;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.of-vendor-strip__info { flex: 1; min-width: 0; }
.of-vendor-strip__info strong { display: block; font-size: 13px; color: #EFEEE7; }
.of-vendor-strip__info span   { display: block; font-size: 10px; color: rgba(239,238,231,0.45); margin-top: 1px; }
.of-verified-badge {
  display: inline-block;
  font-style: normal;
  font-size: 9px;
  background: rgba(139,69,19,0.3);
  border: 0.5px solid rgba(139,69,19,0.5);
  border-radius: 50px;
  padding: 2px 8px;
  color: var(--of-amber);
  margin-top: 4px;
}
.of-vendor-strip__arrow { color: rgba(239,238,231,0.35); font-size: 18px; margin-left: auto; }

/* Veiling countdown */
.of-countdown-wrap {
  background: var(--of-zwart);
  border-radius: var(--of-radius-kaart);
  padding: 16px;
  margin-bottom: 20px;
}
.of-countdown__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--of-amber);
  font-weight: 700;
  margin-bottom: 6px;
}
.of-countdown__bid  { font-size: 28px; font-weight: 800; color: #EFEEE7; }
.of-countdown__sub  { font-size: 10px; color: rgba(239,238,231,0.45); margin-bottom: 14px; }
.of-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.of-countdown__blok { text-align: center; }
.of-countdown__num  {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #EFEEE7;
  background: rgba(239,238,231,0.06);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 44px;
}
.of-countdown__etiket {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(239,238,231,0.35);
  margin-top: 4px;
}
.of-countdown__sep { font-size: 18px; font-weight: 700; color: rgba(239,238,231,0.2); margin-bottom: 16px; }

/* ── WOOCOMMERCE OVERRIDES ─────────────────────────────────── */
.woocommerce-notices-wrapper { padding: 0 20px; }
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--of-radius-kaart);
  margin-bottom: 16px;
}
.woocommerce-message { border-top-color: var(--of-bruin); }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════ */

.of-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.of-lightbox.is-open {
  opacity: 1;
}
.of-lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.of-lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  transition: opacity 0.2s;
  user-select: none;
}
.of-lightbox__close:hover {
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   WISHLIST BUTTON
   ══════════════════════════════════════════════════════════════ */

.of-wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s;
}
.of-wishlist-btn svg {
  stroke: var(--of-zwart);
  transition: all 0.2s;
}
.of-wishlist-btn:hover {
  transform: scale(1.1);
}
.of-wishlist-btn.is-active svg {
  fill: var(--of-bruin);
  stroke: var(--of-bruin);
}
