/*
 * popups.css — DefaultClean Theme (Vineta)
 * Offcanvas popup panels: #login, #register, #resetPass, #shoppingCart
 * All rules faithfully extracted from html-demo/css/styles.css
 * DO NOT MODIFY — single source of truth for popup styling
 */

/* ──────────────────────────────────────────────────────────────
   OFFCANVAS BASE + BACKDROP
   (styles.css lines 5251–5285)
   ────────────────────────────────────────────────────────────── */
.offcanvas {
  border: none !important;
  color: var(--dark);
  z-index: 1600;
}
.offcanvas .icon-close-popup {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  background: transparent;
  font-size: 16px;
  padding: 10px;
  border: none;
  color: var(--dark);
  z-index: 10;
}
.offcanvas .icon-close-popup:hover {
  color: var(--primary);
}
.offcanvas-backdrop {
  background-color: rgba(0,0,0,0.5);
  z-index: 1500;
}
.offcanvas-backdrop.show {
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────────
   POPUP STYLE 1 — all auth panels: login, register, resetPass
   (styles.css lines 6116–6174)
   ────────────────────────────────────────────────────────────── */
.popup-style-1 {
  width: 100% !important;
  max-width: 340px;
}
.popup-style-1 .canvas-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.popup-style-1 .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  padding-bottom: 10px;
  position: relative;
  text-transform: capitalize;
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 0;
  border-radius: 0;
  flex-shrink: 0;
}
.popup-style-1 .popup-header::after {
  position: absolute;
  content: "";
  bottom: 0;
  height: 1px;
  background-color: var(--line, #e0e0e0);
  left: 32px;
  right: 32px;
}
.popup-style-1 .popup-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  overflow-y: auto;
  flex-grow: 1;
}

/* ──────────────────────────────────────────────────────────────
   FORM-LOGIN — fieldsets and button layout
   (styles.css lines 6156–6173)
   ────────────────────────────────────────────────────────────── */
.form-login {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.form-login .button-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-login .bot {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-login .bot a {
  text-decoration: underline;
}
.form-login .bot a:hover {
  color: var(--primary) !important;
}
.form-login fieldset {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-login fieldset input {
  display: block;
  width: 100%;
  height: 46px;
  border: 1px solid var(--line, #d0d0d0);
  border-radius: 4px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
  color: var(--dark, #1a1a1a);
  background-color: #fff;
  transition: border-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.form-login fieldset input:focus {
  border-color: var(--dark, #1a1a1a);
}
.form-login fieldset input::placeholder {
  color: var(--secondary-color, #aaa);
  font-size: 14px;
}
/* gap managed by inline flex-column + gap-12 on the wrapper div */
.form-login fieldset + fieldset {
  margin-top: 0;
}

/* ──────────────────────────────────────────────────────────────
   POPUP-LOGIN — social auth helpers
   (styles.css lines 6175–6194)
   ────────────────────────────────────────────────────────────── */
.popup-login {
  width: 100%;
}
.popup-login .other-login {
  margin-top: 8px;
}
.popup-login .other-login p {
  margin-bottom: 24px;
}
.popup-login .other-login a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  position: relative;
  text-align: center;
  background-color: #3b5998;
  border-radius: 99px;
  color: var(--white, #fff);
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.popup-login .other-login a .icon {
  font-size: 20px;
}

/* ──────────────────────────────────────────────────────────────
   POPUP-SHOPPING-CART
   (styles.css lines 15479–15592)
   ────────────────────────────────────────────────────────────── */
.popup-shopping-cart {
  max-width: 420px !important;
}
.popup-shopping-cart .canvas-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.popup-shopping-cart .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 18px;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid var(--line, #e0e0e0);
  flex-shrink: 0;
}
.popup-shopping-cart .wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}
.popup-shopping-cart .tf-mini-cart-threshold {
  padding: 24px 32px 21px;
  flex-shrink: 0;
}
.popup-shopping-cart .tf-mini-cart-threshold .text {
  font-size: 14px;
  line-height: 22.4px;
  margin-bottom: 12px;
}
.popup-shopping-cart .tf-mini-cart-threshold .tf-progress-bar {
  height: 4px;
  background-color: var(--line, #e0e0e0);
  border-radius: 99px;
  margin-top: 12px;
  position: relative;
  overflow: visible;
}
.popup-shopping-cart .tf-mini-cart-threshold .tf-progress-bar .value {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background-color: var(--primary, #333);
  border-radius: 99px;
  display: flex;
  align-items: center;
  transition: width 0.4s ease;
}
.popup-shopping-cart .tf-mini-cart-threshold .tf-progress-bar .value .icon {
  position: absolute;
  right: -10px;
  font-size: 20px;
  color: var(--primary, #333);
}
.popup-shopping-cart .tf-mini-cart-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}
.popup-shopping-cart .tf-mini-cart-main {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.popup-shopping-cart .tf-mini-cart-sroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 32px;
}
.popup-shopping-cart .tf-mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}
/* Each cart item */
.popup-shopping-cart .tf-mini-cart-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.popup-shopping-cart .tf-mini-cart-image {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.popup-shopping-cart .tf-mini-cart-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.popup-shopping-cart .tf-mini-cart-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-shopping-cart .tf-mini-cart-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popup-shopping-cart .tf-mini-cart-info .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
}
.popup-shopping-cart .tf-mini-cart-info .price-wrap {
  font-size: 14px;
  font-weight: 500;
}
.popup-shopping-cart .tf-mini-cart-info .new-price {
  color: var(--primary, #333);
}
.popup-shopping-cart .tf-mini-cart-info .old-price {
  text-decoration: line-through;
  color: var(--secondary-color, #aaa);
  font-size: 12px;
}
.popup-shopping-cart .remove-cart-item {
  color: var(--secondary-color, #aaa);
  transition: color 0.2s;
  text-decoration: none;
}
.popup-shopping-cart .remove-cart-item:hover { color: var(--primary); }

/* Quantity control inside cart */
.popup-shopping-cart .wg-quantity.small {
  display: flex;
  align-items: center;
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 4px;
  width: fit-content;
  overflow: hidden;
  margin-top: 6px;
}
.popup-shopping-cart .wg-quantity.small .btn-quantity {
  background: transparent;
  border: none;
  width: 28px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-shopping-cart .wg-quantity.small .btn-quantity:hover {
  background: var(--surface-3, #f5f5f5);
}
.popup-shopping-cart .wg-quantity.small .quantity-product {
  width: 36px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
  color: var(--dark);
  background: transparent;
  outline: none;
}

/* Cart footer */
.popup-shopping-cart .tf-mini-cart-bottom {
  box-shadow: 0px -4px 20px 0px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.popup-shopping-cart .tf-mini-cart-bottom-wrap {
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popup-shopping-cart .tf-cart-totals-discounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popup-shopping-cart .tf-cart-total,
.popup-shopping-cart .tf-totals-total-value {
  font-size: 18px;
  font-weight: 500;
}
.popup-shopping-cart .tf-cart-tax {
  font-size: 12px;
  opacity: 0.7;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #e0e0e0);
}
.popup-shopping-cart .tf-mini-cart-view-checkout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* ──────────────────────────────────────────────────────────────
   CANVAS SIDEBAR shared styles
   ────────────────────────────────────────────────────────────── */
.canvas-header.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.canvas-header.popup-header .title {
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--dark);
}
.canvas-body.popup-inner {
  flex-grow: 1;
  overflow-y: auto;
}

/* ──────────────────────────────────────────────────────────────
   BUTTON HELPERS (reused across panels)
   ────────────────────────────────────────────────────────────── */
.tf-btn.bg-dark-2 {
  background-color: var(--dark, #1a1a1a);
  color: #fff;
  border: 1px solid var(--dark, #1a1a1a);
}
.tf-btn.bg-dark-2:hover {
  background-color: transparent;
  color: var(--dark, #1a1a1a);
}
.tf-btn.btn-out-line-dark2 {
  background-color: transparent;
  color: var(--dark, #1a1a1a);
  border: 1px solid var(--dark, #1a1a1a);
}
.tf-btn.btn-out-line-dark2:hover {
  background-color: var(--dark, #1a1a1a);
  color: #fff;
}
.subscribe-button.tf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.w-100 { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — gallery, info panel, accordions
   Faithful to html-demo/css/styles.css
   ══════════════════════════════════════════════════════════════ */

/* ── Gallery wrap ───────────────────────────────────────────── */
.tf-product-media-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.product-thumbs-slider {
  width: 84px;
  flex-shrink: 0;
}
.tf-product-media-thumbs {
  height: 480px;
}
.tf-product-media-thumbs .swiper-slide {
  height: auto !important;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.2s, border-color 0.2s;
}
.tf-product-media-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--dark, #1a1a1a);
}
.tf-product-media-thumbs .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.flat-wrap-media-product {
  flex: 1;
  min-width: 0;
  position: relative;
}
.tf-product-media-main .swiper-slide .item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.tf-product-media-main .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* nav arrows */
.flat-wrap-media-product .nav-swiper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.flat-wrap-media-product .thumbs-next { right: 10px; }
.flat-wrap-media-product .thumbs-prev { left: 10px; }
.flat-wrap-media-product .nav-swiper:hover { background: var(--surface-3, #f5f5f5); }

@media (max-width: 767px) {
  .tf-product-media-wrap       { flex-direction: column-reverse; gap: 8px; }
  .product-thumbs-slider       { width: 100%; }
  .tf-product-media-thumbs     { height: auto; }
}

/* ── Product Info Panel ─────────────────────────────────────── */
.tf-product-info-wrap { padding-top: 8px; }
.tf-product-info-list { display: flex; flex-direction: column; gap: 20px; }

.tf-product-heading .product-name  { font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.product-rate                       { display: flex; align-items: center; gap: 8px; }
.product-stock                      { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.product-stock .stock.in-stock      { color: #16a34a; font-weight: 500; }
.product-stock .stock.out-of-stock  { color: #dc2626; font-weight: 500; }

/* Extra links (wishlist, compare, share) */
.tf-product-extra-link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line, #e0e0e0);
  border-bottom: 1px solid var(--line, #e0e0e0);
}
.product-extra-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dark, #1a1a1a);
  text-decoration: none;
  cursor: pointer;
}
.product-extra-icon:hover { color: var(--primary); }
.product-extra-icon .icon { font-size: 16px; }

/* SKU / categories list */
.tf-product-cate-sku {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tf-product-cate-sku .item-cate-sku { display: flex; gap: 6px; font-size: 14px; }
.tf-product-cate-sku .label         { color: var(--secondary-color, #888); }
.tf-product-cate-sku .value         { color: var(--dark, #1a1a1a); font-weight: 500; }

/* Delivery info */
.tf-product-delivery-return { display: flex; flex-direction: column; gap: 10px; }
.product-delivery            { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.product-delivery .icon      { font-size: 22px; color: var(--dark, #1a1a1a); flex-shrink: 0; }

/* ── Accordion Sections ─────────────────────────────────────── */
.wd-product-descriptions {
  border-top: 1px solid var(--line, #e0e0e0);
}
.wd-product-descriptions:last-child {
  border-bottom: 1px solid var(--line, #e0e0e0);
}
.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark, #1a1a1a);
}
.accordion-title .icon-arrow-down {
  transition: transform 0.3s ease;
  font-size: 14px;
}
.accordion-title:not(.collapsed) .icon-arrow-down {
  transform: rotate(180deg);
}
.accordion-body {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary-color, #666);
}
.tab-description img { max-width: 100%; height: auto; }

/* Spec table inside accordion */
.data-table tbody tr th,
.data-table tbody tr td { padding: 8px 0; font-size: 14px; }
.data-table tbody tr th  { font-weight: 500; color: var(--dark); width: 140px; }
.data-table tbody tr td  { color: var(--secondary-color, #666); }

