/*
  PVC SOLUTIONS USA — ZOHO STOREFRONT
  DESKTOP HEADER — V12

  BASE:
  - Current V8 styling/structure
  - Proven Claude V5 white-header dimensions

  V12 PURPOSE:
  - Leave the black contact topbar completely untouched.
  - Restore the white main header to 130px.
  - Restore the logo/branding area to 260px × 130px.
  - Keep navigation and right-side controls aligned to the 130px white header.
  - Preserve V8 search/account/cart styling.
  - Desktop only.
*/

@media screen and (min-width: 992px) {

  :root {
    --pvc-navy: #0B3B73;
    --pvc-red: #D7192E;
    --pvc-white: #FFFFFF;
    --pvc-text: #17324D;
    --pvc-border: #C8D2DE;
  }

  /* =========================================================
     1. BLACK CONTACT TOPBAR

     INTENTIONALLY NOT TARGETED.
     Zoho's native .theme-header-topbar remains untouched.
     ========================================================= */


  /* =========================================================
     2. WHITE MAIN HEADER

     This is the section containing:
     logo + navigation + search + account + wishlist + cart.

     Restored to Claude V5's proven 130px height.
     ========================================================= */

  .theme-header > .zpcontainer {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;

    padding: 0 24px !important;

    height: 130px !important;
    min-height: 130px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    box-sizing: border-box !important;
  }

  .theme-header {
    background: var(--pvc-white) !important;
    border-bottom: 2px solid var(--pvc-navy) !important;
    box-shadow: none !important;
  }


  /* =========================================================
     3. LOGO / BRANDING AREA

     Restored to 260px × 130px.
     ========================================================= */

  .theme-header .zptheme-branding-info,
  .theme-header .theme-branding-info {
    display: flex !important;

    flex: 0 0 260px !important;
    width: 260px !important;
    height: 130px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-logo-parent {
    display: flex !important;

    width: 260px !important;
    height: 130px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
  }

  .theme-header .theme-logo-parent > a {
    display: flex !important;

    width: 260px !important;
    height: 130px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
  }

  .theme-header .theme-logo-parent img[data-zs-logo] {
    display: block !important;

    width: 260px !important;
    height: 130px !important;

    max-width: none !important;
    max-height: none !important;

    /*
      The source logo is square with internal whitespace.
      Cover lets the square source scale to the full 260px
      width, then crops only the excess vertical whitespace
      inside the 130px white header.
    */
    object-fit: cover !important;
    object-position: left center !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* =========================================================
     4. NAVIGATION

     Match the 130px white header vertically.
     ========================================================= */

  .theme-header .theme-navigation-and-icons {
    display: flex !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;

    height: 130px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-menu-area {
    display: flex !important;
    align-items: center !important;

    height: 130px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-menu-area ul[data-zs-menu-container] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    height: 130px !important;

    gap: 25px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-menu-area ul[data-zs-menu-container] > li {
    display: flex !important;
    align-items: center !important;

    height: 130px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-menu-area ul[data-zs-menu-container] > li > a {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;

    height: 130px !important;
    min-height: 130px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    color: var(--pvc-navy) !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.25px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;

    white-space: nowrap !important;
  }

  .theme-header .theme-menu-area ul[data-zs-menu-container] > li > a:hover {
    color: var(--pvc-red) !important;
  }

  .theme-header .theme-menu-area ul[data-zs-menu-container] > li.theme-menu-selected > a::after {
    content: "" !important;

    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    height: 3px !important;

    background: var(--pvc-red) !important;
  }


  /* =========================================================
     5. RIGHT-SIDE CONTROLS

     Match the 130px white header vertically.
     ========================================================= */

  .theme-header .theme-search-cart-non-res {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;

    height: 130px !important;

    align-items: center !important;
    justify-content: flex-end !important;

    margin: 0 0 0 24px !important;
    padding: 0 !important;
  }

  .theme-header .theme-search-and-mini-cart-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
  }


  /*
     V12 ONLY CHANGE:
     Move ONLY the search bar upward.
     No width changes.
     No changes to wishlist / account / cart.
  */

  .theme-header .theme-search[data-zs-search-container] {
    transform: translateY(-45px) !important;
  }

  /* =========================================================
     6. SEARCH

     Preserve V8's actual Zoho search-container approach.
     ========================================================= */

  .theme-header .theme-search[data-zs-search-container] {
    position: relative !important;

    display: flex !important;
    flex: 0 0 204px !important;
    width: 204px !important;
    min-width: 204px !important;
    align-items: center !important;

    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .theme-header .theme-search-field-container {
    position: relative !important;

    display: flex !important;
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    align-items: center !important;

    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .theme-header .theme-search-field-container input[data-zs-search-input] {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 38px !important;

    box-sizing: border-box !important;

    padding: 0 40px 0 14px !important;

    background: var(--pvc-white) !important;
    color: var(--pvc-text) !important;

    border: 1px solid var(--pvc-border) !important;
    border-radius: 19px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;

    outline: none !important;
    box-shadow: none !important;

    transform: none !important;
  }

  .theme-header .theme-search-field-container input[data-zs-search-input]::placeholder {
    color: #7C8793 !important;
  }

  .theme-header .theme-search-field-container input[data-zs-search-input]:focus {
    border-color: var(--pvc-navy) !important;
    box-shadow: 0 0 0 2px rgba(11, 59, 115, 0.08) !important;
  }

  .theme-header .theme-search-icon[data-zs-search-icon] {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 24px !important;

    margin: 0 0 0 -34px !important;
    flex: 0 0 24px !important;
    padding: 0 !important;

    position: relative !important;
    z-index: 3 !important;

    cursor: pointer !important;
  }

  .theme-header .theme-search-icon[data-zs-search-icon] svg {
    display: block !important;

    width: 16px !important;
    height: 16px !important;
  }

  .theme-header .theme-search-icon[data-zs-search-icon] svg path {
    stroke: var(--pvc-navy) !important;
  }

  .theme-header .theme-search-icon[data-zs-search-icon]:hover svg path {
    stroke: var(--pvc-red) !important;
  }

  .theme-header .theme-search-loader-dots {
    display: none !important;
  }


  /* =========================================================
     7. ACCOUNT / PORTAL
     ========================================================= */

  .theme-header .theme-nonresponsive-portal-position-two {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-portal-login {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;
  }

  .theme-header .theme-portal-icon {
    display: block !important;

    width: 22px !important;
    height: 22px !important;
  }


  /* =========================================================
     8. WISHLIST / CART
     ========================================================= */

  .theme-header .theme-search-and-mini-cart-group-item {
    position: relative !important;

    display: inline-flex !important;
    flex: 0 0 auto !important;

    width: 24px !important;
    height: 36px !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-header .theme-search-and-mini-cart-group-item svg {
    display: block !important;

    width: 20px !important;
    height: 20px !important;
  }

  .theme-header .theme-wishlist-icon,
  .theme-header .theme-minicart-icon {
    display: inline-flex !important;

    width: 24px !important;
    height: 36px !important;

    align-items: center !important;
    justify-content: center !important;

    color: var(--pvc-navy) !important;

    position: relative !important;
  }

  .theme-header .theme-wishlist-icon:hover,
  .theme-header .theme-minicart-icon:hover {
    color: var(--pvc-red) !important;
  }

  .theme-header .theme-mini-cart-count {
    position: absolute !important;

    top: 0 !important;
    right: -5px !important;

    min-width: 16px !important;
    height: 16px !important;

    padding: 0 4px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    background: var(--pvc-red) !important;
    color: var(--pvc-white) !important;

    border-radius: 50% !important;

    font-size: 9px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
  }


  /* =========================================================
     9. CLEANUP
     ========================================================= */

  .theme-header::before,
  .theme-header::after {
    background-image: none !important;
    box-shadow: none !important;
  }
}

/*
  PVC SOLUTIONS USA — MOBILE HERO
  - Mobile only
  - Does not modify existing desktop CSS
  - Reduces oversized hero heading
*/

@media screen and (max-width: 767px) {

  .zpelem-heading h1 span {
    font-size: 48px !important;
    line-height: 1.1 !important;
  }

}

/*
  PVC SOLUTIONS USA — MOBILE CATEGORY TEXT
  - Mobile only
  - Keeps 4-column category layout
  - Reduces category caption size
  - Does not change images or layout
*/

@media screen and (max-width: 767px) {

  .zprow:has(.zpimage-caption-content) .zpimage-caption-content {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

}

/*
  PVC SOLUTIONS USA — MOBILE RESPONSIVE CATEGORY TEXT
  - Mobile only
  - Text size adapts to viewport width
  - Keeps 4 × 2 category layout
  - Does not affect images
*/

@media screen and (max-width: 767px) {

  .zpimage-caption-content {
    font-size: clamp(9px, 2.8vw, 12px) !important;
    line-height: 1.35 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;

    text-align: center !important;
  }

}

/* PVCS CONTACT FORM — CSS 587 */

.pvcs-contact-form {
    max-width: 1000px;
    margin: 40px auto 70px;
    padding: 0 25px;
}

.pvcs-contact-form label {
    color: #0b3f73;
    font-weight: 600;
}

.pvcs-contact-form input,
.pvcs-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5dce5;
    border-radius: 2px;
    padding: 12px 14px;
    background: #fff;
}

.pvcs-contact-form input:focus,
.pvcs-contact-form textarea:focus {
    border-color: #0b3f73;
    outline: none;
}

.pvcs-contact-form textarea {
    min-height: 140px;
}

.pvcs-contact-form button,
.pvcs-contact-form input[type="submit"] {
    background: #ed1c24;
    color: #fff;
    border: 0;
    padding: 13px 30px;
    font-weight: 700;
    cursor: pointer;
}

.pvcs-contact-form button:hover,
.pvcs-contact-form input[type="submit"]:hover {
    background: #c9141b;
}

@media (max-width: 700px) {
    .pvcs-contact-form {
        padding: 0 15px;
    }
}