﻿  :root {
    --cbl-teal: #0DA487;
    --cbl-teal-hover: #0b8a71;
    --cbl-dark: #172033;
    --cbl-ink: #222222;
    --cbl-muted: #555555;
    --cbl-light-border: #e5e7eb;
    --cbl-radius-pill: 50px;
    --cbl-radius-card: 14px;
  }

  /* Breadcrumb clean spacing */
  .cbl-templates-breadcrumb {
    padding: 10px 0 0;
  }

  .cbl-templates-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
  }

  .cbl-templates-breadcrumb .breadcrumb a {
    color: #666;
    text-decoration: none;
  }

  .cbl-templates-breadcrumb .breadcrumb .active {
    color: var(--cbl-teal);
    font-weight: 600;
  }

  /* =========================================
     HERO SECTION (2-COLUMNS LIKE PIC 3)
     ========================================= */
  .cbl-templates-hero {
    background: linear-gradient(180deg, #dff1fb 0%, #f4fbf9 55%, #ffffff 100%);
    padding: 40px 0 36px;
    border-bottom: 1px solid #eaeaea;
  }

  .cbl-templates-hero-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 40px;
    align-items: center;
  }

  .cbl-templates-hero-left {
    display: flex;
    flex-direction: column;
  }

  .cbl-templates-hero-title {
    font-size: clamp(32px, 3.8vw, 44px);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
  }

  .cbl-templates-hero-desc {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  /* 4 FEATURE PILLS (2x2 GRID) */
  .cbl-hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px 18px;
  }

  .cbl-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 9px 18px;
    border-radius: var(--cbl-radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .cbl-feature-pill i {
    color: var(--cbl-teal);
    font-size: 15px;
  }

  /* HERO RIGHT: BOUTIQUE SHOWCASE BANNER CARD */
  .cbl-templates-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cbl-hero-banner-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s;
  }

  .cbl-hero-banner-card:hover {
    transform: translateY(-2px);
  }

  .cbl-hero-banner-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
  }

  /* =========================================
     FILTER BAR & COLUMNS SWITCHER TOOLBAR
     ========================================= */
  .cbl-templates-filter-bar {
    padding: 24px 0 16px;
  }

  .cbl-filter-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .cbl-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cbl-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--cbl-radius-pill);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #444444;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
  }

  .cbl-chip-btn:hover {
    border-color: var(--cbl-teal);
    color: var(--cbl-teal);
  }

  .cbl-chip-btn.active {
    background: var(--cbl-teal);
    color: #ffffff;
    border-color: var(--cbl-teal);
  }

  .cbl-filter-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .cbl-filter-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--cbl-radius-pill);
    padding: 7px 16px;
    width: 220px;
  }

  .cbl-filter-search-box i {
    color: #999999;
    font-size: 13px;
  }

  .cbl-filter-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    font-family: inherit;
    color: #222222;
  }

  /* EXACT USER-PROVIDED GRID COLUMNS SWITCHER */
  .cbl-grid-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cbl-grid-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #f4f5f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 6px;
  }

  .cbl-grid-btn:hover {
    background: #e5e7eb;
  }

  .cbl-grid-btn.active {
    background: var(--cbl-teal) !important;
  }

  .cbl-grid-btn svg {
    display: block;
    width: 22px;
    height: 18px;
  }

  .cbl-grid-btn.active svg rect,
  .cbl-grid-btn.active svg circle,
  .cbl-grid-btn.active svg line {
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  /* =========================================
     TEMPLATE CARDS CATALOG GRID
     ========================================= */
  .cbl-templates-catalog {
    padding: 10px 0 60px;
  }

  .cbl-cards-grid {
    display: grid;
    gap: 20px;
    transition: all 0.25s ease;
  }

  /* DYNAMIC COLUMNS (4, 5, 6, LIST) - FULLY RESPONSIVE WITH MINMAX */
  .cbl-cards-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .cbl-cards-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .cbl-cards-grid.cols-5 .cbl-template-item {
    padding: 12px;
  }

  .cbl-cards-grid.cols-5 .cbl-quote-link {
    padding: 8px 12px;
    font-size: 12px;
    gap: 5px;
  }

  .cbl-cards-grid.cols-5 .cbl-template-title-link {
    font-size: 13.5px;
  }

  .cbl-cards-grid.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .cbl-cards-grid.cols-6 .cbl-template-item {
    padding: 10px;
  }

  .cbl-cards-grid.cols-6 .cbl-quote-link {
    padding: 7px 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  .cbl-cards-grid.cols-6 .cbl-template-title-link {
    font-size: 13px;
  }

  .cbl-cards-grid.cols-6 .cbl-template-id-text {
    font-size: 11px;
  }

  .cbl-cards-grid.cols-6 .cbl-rating-row {
    padding: 2px 8px;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .cbl-cards-grid.cols-6 .cbl-stars {
    font-size: 10px;
  }

  .cbl-cards-grid.cols-6 .cbl-rating-val {
    font-size: 10.5px;
  }

  .cbl-cards-grid.view-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CARD HOVER ANIMATION - CLEAN WITH NO GREY BORDER OR BACKGROUND */
  .cbl-template-item {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: var(--cbl-radius-card);
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    text-decoration: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .cbl-template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 164, 135, 0.35);
  }

  .cbl-template-image-box {
    width: 100%;
    margin-bottom: 12px;
    position: relative;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    transition: all 0.25s ease;
  }

  .cbl-template-item:hover .cbl-template-image-box {
    background: transparent !important;
  }

  .cbl-template-image-box a {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent !important;
  }

  .cbl-template-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* REMOVES GREY SQUARE IN IMAGE */
    transition: transform 0.3s ease;
  }

  .cbl-template-item:hover .cbl-template-image-box img {
    transform: scale(1.04);
  }

  /* 3D Box to Vector Dieline Pure CSS Hover Flip */
  .template-view .die-template {
    display: none !important;
  }

  .template-view:hover .main-template {
    display: none !important;
  }

  .template-view:hover .die-template {
    display: block !important;
  }

  /* TEMPLATE INFO GROUP (NEAT IN BOTH GRID & LIST) */
  .cbl-template-info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  /* ANIMATED RATING BADGE & PREMIUM QUOTE BUTTON */
  .cbl-rating-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 6px;
    width: fit-content;
    transition: all 0.2s ease;
  }

  .cbl-rating-row:hover {
    background: #fef3c7;
    border-color: #fde68a;
    transform: scale(1.02);
  }

  .cbl-stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 11.5px;
  }

  .cbl-rating-val {
    color: #92400e;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
  }

  .cbl-template-id-text {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
  }

  .cbl-template-title-link {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.2s;
  }

  .cbl-template-title-link:hover {
    color: var(--cbl-teal);
  }

  .cbl-quote-btn-wrap {
    margin-top: auto;
    padding-top: 6px;
  }

  .cbl-quote-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: #f0faf7;
    color: var(--cbl-teal) !important;
    border: 1.5px solid var(--cbl-teal);
    border-radius: var(--cbl-radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(13, 164, 135, 0.08);
  }

  .cbl-quote-link i {
    font-size: 11px;
    transition: transform 0.25s ease;
  }

  .cbl-quote-link:hover {
    background: var(--cbl-teal);
    color: #ffffff !important;
    border-color: var(--cbl-teal);
    box-shadow: 0 6px 16px rgba(13, 164, 135, 0.32);
    transform: translateY(-2px);
  }

  .cbl-quote-link:hover i {
    transform: translateX(4px);
  }

  /* LIST VIEW MODE */
  .cbl-cards-grid.view-list .cbl-template-item {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 18px 24px;
  }

  .cbl-cards-grid.view-list .cbl-template-image-box {
    width: 140px;
    height: 110px;
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0 !important;
  }

  .cbl-cards-grid.view-list .cbl-template-image-box img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .cbl-cards-grid.view-list .cbl-quote-btn-wrap {
    margin-top: 0;
    padding-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }

  .cbl-cards-grid.view-list .cbl-quote-link {
    width: auto;
    padding: 10px 22px;
  }

  /* =========================================
     FAQS SECTION (2-COLUMNS)
     ========================================= */
  .cbl-faq-section {
    padding: 60px 0 80px;
    border-top: 1px solid #eaeaea;
    background: #ffffff;
  }

  .cbl-faq-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.35fr;
    gap: 50px;
    align-items: flex-start;
  }

  .cbl-faq-left h2 {
    font-size: 30px;
    font-weight: 800;
    color: #222222;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .cbl-faq-left p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    max-width: 360px;
  }

  .cbl-faq-accordion-list {
    display: flex;
    flex-direction: column;
  }

  .cbl-faq-row {
    border-bottom: 1px solid #eaeaea;
    padding: 18px 0;
  }

  .cbl-faq-row:first-child {
    padding-top: 0;
  }

  .cbl-faq-question-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15.5px;
    font-weight: 700;
    color: #222222;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
  }

  .cbl-faq-question-bar:hover {
    color: var(--cbl-teal);
  }

  .cbl-faq-icon {
    font-size: 18px;
    font-weight: 500;
    color: #888888;
  }

  .cbl-faq-answer-text {
    font-size: 13.5px;
    color: #555555;
    line-height: 1.7;
    margin-top: 10px;
    padding-right: 20px;
  }

  @media (max-width: 1400px) {
    .cbl-cards-grid.cols-6 {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
    }
  }

  @media (max-width: 1200px) {
    .cbl-templates-hero-grid {
      grid-template-columns: 1fr;
    }

    .cbl-cards-grid.cols-6,
    .cbl-cards-grid.cols-5 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .cbl-cards-grid.cols-4 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 991px) {

    .cbl-cards-grid.cols-4,
    .cbl-cards-grid.cols-5,
    .cbl-cards-grid.cols-6 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .cbl-cards-grid.view-list .cbl-template-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
    }

    .cbl-cards-grid.view-list .cbl-template-image-box {
      width: 100%;
      height: 120px;
    }

    .cbl-cards-grid.view-list .cbl-quote-btn-wrap {
      margin-left: 0;
      width: 100%;
    }

    .cbl-cards-grid.view-list .cbl-quote-link {
      width: 100%;
    }

    .cbl-faq-layout {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .cbl-hero-features-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 576px) {

    .cbl-cards-grid.cols-4,
    .cbl-cards-grid.cols-5,
    .cbl-cards-grid.cols-6 {
      grid-template-columns: 1fr;
    }

    .cbl-filter-bar-inner {
      flex-direction: column;
      align-items: stretch;
    }
  }
