/* ==========================================================================
   Haru Collection Tabs - Category Products Showcase
   Matching demo-harucraft editorial look
   ========================================================================== */

.haru-collection-tabs-wrap {
  width: 100%;
  margin: 30px auto 0px;
  position: relative;
}

/* Tabs Navigation */
.haru-tabs-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  width: 100%;
}

.haru-tabs-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.haru-tab-nav-btn {
  background: none;
  border: none;
  padding: 6px 4px;
  margin: 0;
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: #000000;
  font-weight: 400;
  transition: color 0.25s ease, font-weight 0.2s ease, transform 0.2s ease;
  position: relative;
  text-decoration: none;
  text-transform: none;
  outline: none;
}

/* Tab button */
.haru-tab-nav-btn {
  position: relative;
  display: inline-block;
  color: #242424;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

/* Gạch ngang */
.haru-tab-nav-btn::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Hover */
.haru-tab-nav-btn:hover {
  color: #000;
}

.haru-tab-nav-btn:hover::after {
  transform: scaleX(1);
}

.haru-tab-nav-btn.active {
  color: #000000;
  font-weight: 700;
}

.haru-tab-nav-btn.active::after {
  transform: scaleX(1);
}

/* Category Intro (Description & Subtitle) */
.haru-tab-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 10px;
  padding: 0 16px;
}

.haru-tab-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 16px;
  font-weight: 400;
}

.haru-tab-desc p {
  margin: 0 0 10px;
}

.haru-tab-desc p:last-child {
  margin-bottom: 0;
}

.haru-tab-subtitle {
  font-size: 14.5px;
  color: #777777;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* Tab Panels */
.haru-tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.haru-tab-panel.active {
  display: block;
  opacity: 1;
  animation: haruTabFadeIn 0.35s ease forwards;
}

@keyframes haruTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Grid */
.haru-tab-products-grid {
  display: grid;
  column-gap: 32px;
  row-gap: 48px;
}

.haru-tab-products-grid.haru-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.haru-tab-products-grid.haru-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.haru-tab-products-grid.haru-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.haru-tab-products-grid.haru-cols-1 {
  grid-template-columns: 1fr;
}

/* Product Card */
.haru-prod-card {
  display: flex;
  flex-direction: column;
}

.haru-prod-thumb-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  margin-bottom: 18px;
}

.haru-prod-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.haru-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.haru-prod-card:hover .haru-prod-thumb img {
  transform: scale(1.05);
}

.haru-prod-placeholder {
  width: 100%;
  height: 100%;
  background: #edeae4;
}

/* Product Meta */
.haru-prod-info {
  display: flex;
  flex-direction: column;
}

.haru-prod-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e3dc;
  margin-bottom: 8px;
  gap: 12px;
}

.haru-prod-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  text-transform: capitalize;
  line-height: 1.25;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
  color: #1A1A1A;
	  margin: 0;
  flex: 1 1 auto;
}

.haru-prod-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.haru-prod-title a:hover {
  color: #000000;
}

.haru-prod-cat-tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #8c857f;
  text-transform: lowercase;
  white-space: nowrap;
  flex: 0 0 auto;
}

.haru-prod-price {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
	font-family: 'Noto Sans', sans-serif;
}

.haru-prod-size {
  font-size: 13px;
  color: #8c857f;
  letter-spacing: 0.02em;
	font-family: 'Noto Sans', sans-serif;
}

.haru-no-products {
  text-align: center;
  color: #888888;
  font-style: italic;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */
.haru-tab-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 52px;
  padding-top: 10px;
}

.haru-page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haru-page-num-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: #777777;
  background: #edeae4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.haru-page-num-btn:hover {
  color: #000000;
  background: #f1ede6;
}

.haru-page-num-btn.active {
  color: #ffffff;
  background: #1a1a1a;
  border-color: #1a1a1a;
  font-weight: 600;
}

.haru-page-nav-btn {
  background: transparent;
  border: 1px solid #ddd7ce;
  cursor: pointer;
  font-size: 12px;
  color: #3e3b3a;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.haru-page-nav-btn:hover:not(.disabled) {
  border-color: #1a1a1a;
  color: #000000;
  background: #f1ede6;
}

.haru-page-nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #e5e0d8;
}

/* Tablet Responsive */
@media (max-width: 849px) {
  .haru-tabs-nav {
    gap: 32px;
  }

  .haru-tab-nav-btn {
    font-size: 24px;
  }

  .haru-tab-products-grid.haru-cols-tab-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 24px;
    row-gap: 36px;
  }

  .haru-tab-products-grid.haru-cols-tab-1 {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Responsive */
@media (max-width: 549px) {
  .haru-tabs-nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 5px;
  }

  .haru-tabs-nav-container::-webkit-scrollbar {
    display: none;
  }

  .haru-tabs-nav {
    flex-wrap: nowrap;
    gap: 22px;
    padding: 0 8px;
    justify-content: flex-start;
  }

  .haru-tab-nav-btn {
    font-size: 24px;
    white-space: nowrap;
  }

  .haru-tab-intro {
    margin-bottom: 10px;
  }

  .haru-tab-desc {
    font-size: 15px;
  }

  .haru-tab-subtitle {
    font-size: 15px;
  }

  .haru-tab-products-grid.haru-cols-mob-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 14px;
    row-gap: 28px;
  }

  .haru-tab-products-grid.haru-cols-mob-1 {
    grid-template-columns: 1fr !important;
    row-gap: 28px;
  }

  .haru-prod-title {
    font-size: 20px;
  }

  .haru-prod-price {
    font-size: 20px;
  }

  .haru-prod-size {
    font-size: 16px;
  }
}

/* ==========================================================================
   Product Quick View Modal (Matching demo-harucraft Image)
   ========================================================================== */
.haru-prod-card.haru-open-modal-card {
  cursor: pointer;
}

body.haru-prod-modal-active {
  overflow: hidden !important;
}

.haru-product-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100% !important;
  background: rgba(18, 16, 15, 0.65) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  z-index: 99999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box !important;
}

.haru-product-modal-overlay.open {
  display: flex !important;
  animation: haruModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes haruModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.haru-product-modal-box {
  background: #ffffff !important;
  max-width: 910px;
  width: 100%;
  padding: 20px 40px 20px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  border-radius: 2px;
}

.haru-product-modal-close-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #888888;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

.haru-product-modal-close-icon:hover {
  color: #000000;
  transform: scale(1.1);
}

.haru-product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.haru-product-modal-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.haru-product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.haru-product-modal-details {
  display: flex;
  flex-direction: column;
}

.haru-modal-cat-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c857f;
  margin-bottom: 8px;
  font-weight: 600;
}

.haru-modal-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e3dc;
  margin: 0 0 16px;
  line-height: 1.25;
}

.haru-modal-price {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.haru-modal-dims {
  font-size: 14px;
  color: #888888;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.haru-modal-desc {
  font-size: 16px;
  color: #555555;
  line-height: 1.75;
  margin-bottom: 28px;
}

.haru-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.haru-modal-btn-inquire {
  display: inline-block;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #ffffff !important;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
}

.haru-modal-btn-inquire:hover {
  background: #ffffff;
  color: #1a1a1a !important;
}

.haru-modal-btn-close {
  display: inline-block;
  padding: 12px 28px;
  background: #ffffff;
  color: #333333;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #d2cbc0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.4;
  margin: 0px !important;
}

.haru-modal-btn-close:hover {
  border-color: #1a1a1a;
  color: #000000;
  background: #fbf9f6;
}

@media (max-width: 680px) {
  .haru-product-modal-box {
    padding: 28px 18px 24px;
    max-height: 94vh;
  }

  .haru-product-modal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .haru-modal-title {
    font-size: 20px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .haru-modal-price {
    font-size: 16px;
  }

  .haru-modal-dims {
    margin-bottom: 14px;
  }

  .haru-modal-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .haru-modal-btn-inquire,
  .haru-modal-btn-close {
    width: 100%;
    padding: 12px 16px;
  }
}