
.product-head {
  background: #0a1636 url("../assets/images/products/product-head.webp")
    center/cover no-repeat;
  margin-block-start: 75px;
  overflow: hidden;
  padding: 100px 0;
  position: relative;
}

@layer components {
  .product-head .container,
  .product-explore .container,
  .product-cta .container,
  .switch-catalog .container {
    padding-inline: 60px;
  }

  /* ------ PRODUCT EXPLORE (prduct-document.html) ------ */
  .product-explore {
    padding-block: 60px;
    background: #ffffff;
  }
  .product-explore__header {
    text-align: left;
    max-width: 450px;
    /* margin: 20px; */
    margin-block: 40px;
  }
  .product-explore__title {
    font-family: var(--font-outfit, "Mulish", sans-serif);
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    margin-block-end: 12px;
  }
  .product-explore__desc {
    font-family: var(--font-mulish, "Mulish", sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: #515151;
    line-height: 1.5;
  }
  .product-explore__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .product-explore__card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 calc(25% - 15px);
    background: #FFFFFF1A;
    box-shadow: 0px 2px 14px 0px #00000040;
    border-radius: 14px;
    padding: 40px 22px;
    text-decoration: none;
    transition:
      box-shadow 0.2s,
      transform 0.2s,
      border-color 0.2s;
  }
  .product-explore__card:hover {
    border-color: var(--green-primary, #4fa349);
    transform: translateY(-3px);
  }
  .product-explore__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-light-bg, #e3f4e3);
    color: var(--green-dark, #197415);
    font-size: 18px;
  }
  .product-explore__label {
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 20px;
    font-weight: 500;
    color: #343434;
  }

  /* ------ PRODUCT CTA (prduct-document.html) ------ */
  .product-cta {
    background: #eef1ea url("../assets/images/products/product-cta.webp")
      center/cover no-repeat;
    padding-block: 56px;
  }
  .product-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
  }
  .product-cta__title {
    font-family: var(--font-outfit, "Mulish", sans-serif);
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
  }
  .product-cta__text {
    max-width: 600px;
  }
  .product-cta__desc {
    font-family: var(--font-mulish, "Mulish", sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #515151;
    line-height: 1.6;
    margin-block-start: 8px;
  }
  .product-cta__btn {
    flex-shrink: 0;
  }
  /* Plain background for the CTA on switch-document.html only;
     prduct-document.html keeps the product-cta.webp image background */
  .product-cta.switch-cta {
    background: linear-gradient(90deg, #EEF6EE 0%, #F7FBF6 60%, #EEF6EE 100%);
  }

  /* ------ SWITCH CATALOG (switch-document.html) ------ */
  .switch-catalog {
    padding-block: 50px 60px;
    background: #ffffff;
  }
  .switch-catalog__search {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin-block-end: 28px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
  }
  .switch-catalog__search-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 46px;
    /* margin: 4px; */
    padding-inline: 22px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #1b1b1b;
    color: #ffffff;
    font-family: var(--font-outfit, "Mulish", sans-serif);
    font-size: 16px;
    font-weight: 500;
  }
  .switch-catalog__search-input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: var(--font-mulish, "Mulish", sans-serif);
    font-size: 14px;
    color: #343434;
    background: transparent;
  }
  .switch-catalog__search-input::placeholder {
    color: #9a9a9a;
  }
  .switch-catalog__search-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: #343434;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
  }
  .switch-catalog__search-btn:hover {
    color: var(--green-dark, #197415);
  }
  .switch-catalog__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #E6E6E6;
    box-shadow: 0px 8px 28px 0px #0B1C3D1F;
    border-radius: 999px;
    padding: 6px;
    margin: 0 auto 36px;
  }
  .switch-catalog__tab {
    display: inline-block;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 10px 26px;
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: #515151;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
  }
  /* Tab switching is pure HTML/CSS: a hidden radio group (.switch-catalog__tab-radio)
     drives both the active pill style below and which panel is shown further down,
     via the CSS sibling combinator — no JS involved. */
  #switch-tab-datacenter:checked ~ .switch-catalog__tabs label[for="switch-tab-datacenter"],
  #switch-tab-enterprise:checked ~ .switch-catalog__tabs label[for="switch-tab-enterprise"],
  #switch-tab-industrial:checked ~ .switch-catalog__tabs label[for="switch-tab-industrial"] {
    background: linear-gradient(90deg, #61B95B 0%, #256021 100%);
    color: #ffffff;
  }
  .switch-catalog__panel {
    display: none;
  }
  #switch-tab-datacenter:checked ~ .switch-catalog__panel[data-switch-panel="datacenter"],
  #switch-tab-enterprise:checked ~ .switch-catalog__panel[data-switch-panel="enterprise"],
  #switch-tab-industrial:checked ~ .switch-catalog__panel[data-switch-panel="industrial"] {
    display: block;
  }
  .switch-catalog__panel-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-block-end: 32px;
  }
  .switch-catalog__eyebrow {
    display: inline-block;
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #197415;
    margin-block-end: 10px;
  }
  .switch-catalog__title {
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 24px;
    font-weight: 600;
    color: #343434;
    margin-block-end: 10px;
  }
  .switch-catalog__desc {
    font-family: var(--font-mulish, "Mulish", sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    line-height: 1.7;
  }
  .switch-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .switch-catalog__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #E6E6E6;
    border-radius: 14px;
    padding: 22px 24px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  }
  .switch-catalog__card:hover {
    border-color: var(--green-primary, #4fa349);
    box-shadow: 0 6px 16px rgba(47, 134, 40, 0.12);
    transform: translateY(-3px);
  }
  .switch-catalog__card-tag {
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #197415;
  }
  .switch-catalog__card-title {
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #343434;
    line-height: 1.4;
    margin: 0;
  }
  .switch-catalog__card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border-top: 1px solid #F0F0F0;
    padding-block-start: 14px;
    font-family: var(--font-outfit, "Outfit", sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark, #197415);
    margin-block-start: auto;
  }
  .switch-catalog__empty {
    font-family: var(--font-mulish, "Mulish", sans-serif);
    font-size: 14px;
    color: #6b6b6b;
    text-align: center;
    padding-block: 20px;
  }
}
