/**
 * SDSD Lightweight Header
 * ShowerDoorSealsDirect.com
 */


/* =========================================================
   SDSD HEADER VARIABLES
   ========================================================= */

:root {
    --sdsd-header-navy: #0e2a47;
    --sdsd-header-blue: #1D00CA;
    --sdsd-header-bright-blue: #0077FF;
    --sdsd-header-soft-blue: #E8F0FF;
    --sdsd-header-lavender: #F3F2FF;
    --sdsd-header-aqua: #00E0F0;
    --sdsd-header-yellow: #FFFC00;
    --sdsd-header-white: #FFFFFF;
    --sdsd-header-black: #111111;
    --sdsd-header-text: #344054;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

#sdsd-header {
    position: relative;
    z-index: 999;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sdsd-header-white);
    box-sizing: border-box;
    font-family: inherit;
}

#sdsd-header *,
#sdsd-header *::before,
#sdsd-header *::after {
    box-sizing: border-box;
}


/* =========================================================
   INNER CONTAINER
   ========================================================= */

.sdsd-header-container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   TOP INFORMATION BAR
   ========================================================= */

.sdsd-header-topbar {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sdsd-header-navy);
    color: var(--sdsd-header-white);
}

.sdsd-header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 0;
    gap: 18px;
}

.sdsd-header-topbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    color: var(--sdsd-header-white);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}


/* =========================================================
   TOP BAR ICONS
   ========================================================= */

.sdsd-header-topbar-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    object-fit: contain;
}


/* =========================================================
   FREE DELIVERY
   ========================================================= */

.sdsd-header-delivery-text {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: var(--sdsd-header-white);
}

.sdsd-header-delivery-text strong {
    color: var(--sdsd-header-yellow);
    font-weight: 700;
}


/* =========================================================
   TOP BAR DIVIDER
   ========================================================= */

.sdsd-header-topbar-divider {
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: 18px;
    margin: 0 2px;
    padding: 0;
    background: rgba(255, 255, 255, 0.40);
}


/* =========================================================
   PHONE
   ========================================================= */

.sdsd-header-phone a {
    margin: 0;
    padding: 0;
    color: var(--sdsd-header-white) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
}

.sdsd-header-phone a:hover {
    color: var(--sdsd-header-aqua) !important;
}


/* =========================================================
   MAIN ROW
   LOGO + SEARCH + CART
   ========================================================= */

.sdsd-header-main {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sdsd-header-white);
}

.sdsd-header-main-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    align-items: center;

    /*
     * More space between logo and search.
     * Search-to-cart spacing remains compact.
     */
    column-gap: 22px;

    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 7px 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.sdsd-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.sdsd-header-logo a {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-decoration: none;
}

.sdsd-header-logo img {
    display: block;
    width: auto;
    max-width: 285px;
    height: auto;
    max-height: 62px;
    margin: 0;
    padding: 0;
    object-fit: contain;
}


/* =========================================================
   SEARCH AREA
   Temporary visual shell.
   Real DP Ajax Search will be connected separately.
   ========================================================= */

.sdsd-header-search {
    width: 100%;
    min-width: 0;

    /*
     * Creates the additional visual separation
     * requested between logo and search.
     */
    margin-left: 8px;

    padding: 0;
}

.sdsd-header-search-placeholder {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    height: 42px;

    margin: 0;
    padding: 0;

    background: var(--sdsd-header-white);
    border: 2px solid #D0D5DD;
    border-radius: 6px;

    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    overflow: hidden;
}


/* REAL SDSD SEARCH ICON - LEFT SIDE */

.sdsd-header-search-icon {
    display: block !important;
    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;

    margin: -2px 0 -2px -2px !important;
    padding: 0 !important;

    object-fit: cover !important;

    border: 0 !important;
    border-radius: 0 !important;
}


/* Search placeholder text */

.sdsd-header-search-text {
    display: block;
    margin: 0;
    padding: 0 12px;

    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}


/* =========================================================
   CART
   ========================================================= */

.sdsd-header-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.sdsd-header-cart-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 42px;

    margin: 0;
    padding: 0 12px;

    background: var(--sdsd-header-lavender);
    border: 1px solid var(--sdsd-header-soft-blue);
    border-radius: 6px;

    color: var(--sdsd-header-blue) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none !important;
    white-space: nowrap;
}

.sdsd-header-cart-link:hover {
    background: var(--sdsd-header-blue);
    border-color: var(--sdsd-header-blue);
    color: var(--sdsd-header-white) !important;
}

.sdsd-header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.sdsd-header-cart-label {
    display: inline-block;
}

.sdsd-header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    margin: 0;
    padding: 0 5px;

    background: var(--sdsd-header-bright-blue);
    border-radius: 20px;

    color: var(--sdsd-header-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.sdsd-header-cart-link:hover .sdsd-header-cart-count {
    background: var(--sdsd-header-white);
    color: var(--sdsd-header-blue);
}


/* =========================================================
   CATEGORY NAVIGATION
   ========================================================= */

.sdsd-header-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sdsd-header-white);
}

.sdsd-header-nav-list {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    gap: 25px;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.sdsd-header-nav-list li {
    display: block;
    flex: 0 0 auto;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.sdsd-header-nav-list li::before,
.sdsd-header-nav-list li::after {
    display: none !important;
    content: none !important;
}

.sdsd-header-nav-list a {
    display: block;

    margin: 0;
    padding: 8px 0 10px;

    color: var(--sdsd-header-text) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none !important;
    white-space: nowrap;
}

.sdsd-header-nav-list a:hover {
    color: var(--sdsd-header-bright-blue) !important;
}


/* =========================================================
   BOTTOM BRAND LINE
   ========================================================= */

.sdsd-header-bottom-line {
    width: 100%;
    height: 2px;

    margin: 0;
    padding: 0;

    background: var(--sdsd-header-bright-blue);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .sdsd-header-container {
        width: 92%;
    }

    .sdsd-header-main-inner {
        grid-template-columns: 220px minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .sdsd-header-logo img {
        max-width: 210px;
    }

    .sdsd-header-search {
        margin-left: 0;
    }

    .sdsd-header-nav-list {
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sdsd-header-nav-list::-webkit-scrollbar {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .sdsd-header-container {
        width: 92%;
    }

    .sdsd-header-topbar-inner {
        min-height: 36px;
        gap: 10px;
    }

    .sdsd-header-topbar-item {
        gap: 5px;
        font-size: 11px;
    }

    .sdsd-header-phone a {
        font-size: 11px;
    }

    .sdsd-header-topbar-icon {
        width: 18px;
        height: 18px;
    }

    .sdsd-header-topbar-divider {
        height: 16px;
        margin: 0;
    }

    .sdsd-header-main-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: 0;
        padding: 8px 0;
    }

    .sdsd-header-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .sdsd-header-logo img {
        max-width: 210px;
        max-height: 52px;
    }

    .sdsd-header-cart {
        grid-column: 2;
        grid-row: 1;
    }

    .sdsd-header-cart-link {
        min-height: 40px;
        padding: 0 9px;
    }

    .sdsd-header-cart-label {
        display: none;
    }

    .sdsd-header-search {
        grid-column: 1 / -1;
        grid-row: 2;

        margin-left: 0;
    }

    .sdsd-header-search-placeholder {
        height: 40px;
    }

    .sdsd-header-search-icon {
        flex-basis: 40px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .sdsd-header-nav-list {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 0 4% !important;
    }

    .sdsd-header-nav-list a {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* =========================================================
   SDSD DESKTOP HEADER - FINAL WIDTH / SPACING
   Logo Left / More Logo Gap / Extended Search / Cart Right
   ========================================================= */

@media (min-width: 981px) {

    /* Nearly full-width header */
    #sdsd-header .sdsd-header-container {
    width: 80%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

    /* Logo | Search | Cart */
    #sdsd-header .sdsd-header-main-inner {
        display: grid;
        grid-template-columns: 360px minmax(0, 1fr) auto;
        column-gap: 25px;
        width: 100%;
    }

    /* Logo stays at far left */
    #sdsd-header .sdsd-header-logo {
        justify-content: flex-start;
        margin: 0;
        padding: 0;
    }

    #sdsd-header .sdsd-header-logo img {
        max-width: 310px;
        margin: 0;
    }

    /*
     * Search
     * 360px logo column - 310px logo = about 50px
     * breathing room between logo and search.
     */
    #sdsd-header .sdsd-header-search {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    #sdsd-header .sdsd-header-search-placeholder {
        width: 100%;
        margin: 0;
    }

    /* Cart stays at far right */
    #sdsd-header .sdsd-header-cart {
        justify-content: flex-end;
        margin: 0;
        padding: 0;
    }

    /* Navigation remains centered */
    #sdsd-header .sdsd-header-nav-list {
        justify-content: center;
    }
}

/* =========================================================
   SDSD LIVE SEARCH BAR
   ========================================================= */

#sdsd-header .sdsd-header-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 2px solid #D0D5DD;
    border-radius: 6px;
    overflow: hidden;
}

#sdsd-header .sdsd-header-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: -2px 0 -2px -2px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

#sdsd-header .sdsd-header-search-button:hover,
#sdsd-header .sdsd-header-search-button:focus {
    background: transparent;
}

#sdsd-header .sdsd-header-search-icon {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

#sdsd-header .sdsd-header-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0 !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: #344054 !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 38px;
}

#sdsd-header .sdsd-header-search-input::placeholder {
    color: #667085;
    opacity: 1;
}

#sdsd-header .sdsd-header-search-input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================================
   SDSD LIVE AJAX SEARCH RESULTS
   ========================================================= */

/* Search container becomes the anchor for dropdown */
#sdsd-header .sdsd-header-search {
    position: relative;
    z-index: 1000;
}


/* Main results dropdown */
#sdsd-header .sdsd-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 430px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #D0D5DD;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(14, 42, 71, 0.14);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}


/* Show dropdown */
#sdsd-header .sdsd-search-results.is-active {
    display: block;
}


/* Loading / no results message */
#sdsd-header .sdsd-search-message {
    width: 100%;
    margin: 0;
    padding: 16px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}


/* Individual product result */
#sdsd-header .sdsd-search-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 78px;
    margin: 0;
    padding: 8px 12px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #EAECF0;
    color: #344054 !important;
    text-decoration: none !important;
}


/* Product hover */
#sdsd-header .sdsd-search-product:hover {
    background: #F8FAFC;
}


/* Product image area */
#sdsd-header .sdsd-search-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 60px;
    margin: 0;
    padding: 2px;
    background: #ffffff;
}


/* Product image */
#sdsd-header .sdsd-search-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 56px;
    margin: 0;
    padding: 0;
    object-fit: contain;
}


/* Product information */
#sdsd-header .sdsd-search-product-info {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* Product title */
#sdsd-header .sdsd-search-product-name {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    color: #0e2a47;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


/* SKU */
#sdsd-header .sdsd-search-product-sku {
    display: block;
    margin: 0;
    padding: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}


/* Price */
#sdsd-header .sdsd-search-product-price {
    display: block;
    margin: 0;
    padding: 0 4px 0 12px;
    color: #1D00CA;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}


/* Keep WooCommerce price markup clean */
#sdsd-header .sdsd-search-product-price .amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}


/* View all results button */
#sdsd-header .sdsd-search-view-all {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 15px;
    background: #F3F2FF;
    border: 0;
    border-radius: 0;
    color: #1D00CA;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}


/* View all hover */
#sdsd-header .sdsd-search-view-all:hover {
    background: #1D00CA;
    color: #ffffff;
}


/* =========================================================
   MOBILE LIVE SEARCH
   ========================================================= */

@media (max-width: 600px) {

    #sdsd-header .sdsd-search-results {
        max-height: 360px;
    }

    #sdsd-header .sdsd-search-product {
        grid-template-columns: 54px minmax(0, 1fr);
        column-gap: 10px;
        min-height: 70px;
        padding: 7px 9px;
    }

    #sdsd-header .sdsd-search-product-image {
        width: 54px;
        height: 54px;
    }

    #sdsd-header .sdsd-search-product-image img {
        max-width: 50px;
        max-height: 50px;
    }

    #sdsd-header .sdsd-search-product-price {
        grid-column: 2;
        padding: 4px 0 0;
        font-size: 12px;
    }

    #sdsd-header .sdsd-search-product-name {
        font-size: 12px;
    }
}

/* =========================================================
   SDSD TOP BAR - FULL BROWSER WIDTH ONLY
   ========================================================= */

#sdsd-header .sdsd-header-topbar {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* =========================================================
   SDSD - HIDE WOOCOMMERCE ADD TO CART NOTICE
   Header cart provides live cart confirmation
   ========================================================= */

.single-product .woocommerce-message {
    display: none !important;
}

/* =========================================================
   SDSD HOMEPAGE PRODUCTS - 4 COLUMN GRID FIX
   ========================================================= */

.sdsd-home-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    clear: both !important;
}

.sdsd-home-products ul.products::before,
.sdsd-home-products ul.products::after {
    display: none !important;
    content: none !important;
}

.sdsd-home-products ul.products li.product {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 10px !important;

    float: none !important;
    clear: none !important;

    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* =========================================================
   SDSD HEADER - CUSTOMER SERVICE
   ========================================================= */

.sdsd-header-nav-list .sdsd-header-customer-service a {
    color: #0077FF !important;
    font-weight: 700 !important;
}

.sdsd-header-nav-list .sdsd-header-customer-service a:hover {
    color: #1D00CA !important;
}