/*
 Theme Name:   Storefront Child
 Theme URI:    http://example.com/storefront-child
 Description:  Child theme for Storefront
 Author:       Your Name
 Template:     storefront
 Version:      1.0.0
*/


/* Import parent theme styles */


/* @import url("../storefront/style.css"); */


/* ===============================
   Base Colors (Palette)
   =============================== */

:root {
    --color-dark-steel: #2B2B2B;
    --color-industrial-blue: #1E3A8A;
    --color-safety-orange: #FF6700;
    --color-steel-silver: #F2F2F2;
    --color-warning-yellow: #FFC300;
    --color-white: #FFFFFF;
}


/* header start */

#page {
    overflow: unset;
    position: sticky !important;
    width: 100%;
    top: 0 !important;
    /* top: 0; */
    z-index: 999 !important;
}

.site-header {
    background-color: #2B2B2B;
    padding: 20px 40px !important;
    margin: 0 !important;
}

.site-header .site-branding {
    max-width: 100px !important;
    margin: 0 !important;
}

.site-header .site-branding img {
    max-width: 100px;
}

.site-header .col-full {
    max-width: 100% !important;
    padding: 0 !important;
    /* display: flex;
    flex-direction: row; */
}

.woocommerce-active .site-header .site-search {
    margin: 0 !important;
}

.woocommerce-active .site-header .site-header-cart.menu {
    width: auto !important;
    margin-left: 40px;
}

.woocommerce-active .site-header .site-header-cart .cart-contents {
    align-content: center;
    display: flex;
    gap: 10px;
    flex-direction: row;
}

@media (min-width: 768px) {
    .site-header-cart:hover .widget_shopping_cart,
    .site-header-cart.focus .widget_shopping_cart {
        min-width: 400px;
        left: -315px;
        width: 100%;
        top: calc(50% + 5px);
    }
    /* .site-header-cart .cart-contents::after {
        transform: translateY(-25%) !important;
    } */
}

@media screen and (min-width: 768px) {
    .main-navigation ul.menu ul.sub-menu,
    .main-navigation ul.nav-menu ul.children {
        background-color: var(--color-dark-steel);
    }
}

.woocommerce-active .site-header .site-header-cart .cart-contents .woocommerce-Price-amount {
    display: none;
}

.woocommerce-active .site-header .site-header-cart .cart-contents .count {
    /* display: none; */
    opacity: 1 !important;
    color: var(--color-white) !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    /* Logo left, search right */
    align-items: center;
    width: 100%;
}


/* Optional: navigation spacing */

.header-inner .storefront-primary-navigation {
    margin: 0 40px;
    flex: 1;
    /* allows nav to grow in center if needed */
}

.header-inner .storefront-primary-navigation .main-navigation {
    width: 100% !important;
}


/* Optional: make search smaller on desktop */

.header-inner .site-header .site-header-cart,
.header-inner .site-header .site-header-search {
    margin-left: 10px;
}


/* header end */


/* breadcrumbs start */

.storefront-breadcrumb {
    margin: 0 !important;
}

.storefront-breadcrumb .col-full {
    /* width: 100% !important;
    max-width: 100% !important; */
    margin: 0 !important;
}


/* breadcrumbs end */


/* ===============================
   Base Colors (Palette)
   =============================== */

 :root {
    --color-dark-steel: #2B2B2B;
    --color-industrial-blue: #1E3A8A;
    --color-safety-orange: #FF6700;
    --color-steel-silver: #F2F2F2;
    --color-warning-yellow: #FFC300;
    --color-white: #FFFFFF;
}


/* ===============================
   Header
   =============================== */

body .site-header,
body .site-header .col-full,
body .site-header .site-branding {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
}

body .site-header a,
body .site-header .site-branding a {
    color: var(--color-white) !important;
}

body .site-header a:hover,
body .site-header a:focus {
    color: var(--color-safety-orange) !important;
}


/* ===============================
   Footer
   =============================== */

body .site-footer {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
}

body .site-footer a {
    color: var(--color-white) !important;
}

body .site-footer a:hover,
body .site-footer a:focus {
    color: var(--color-safety-orange) !important;
}

.site-footer p,
.site-footer span,
.site-footer ul li,
.site-footer a {
    color: var(--color-white) !important;
}

.site-content .site-footer {
    padding: 40px 0 60px 0;
}

.site-footer .footer-widgets .widget {
    margin: 0;
}

.site-footer .footer-widgets .widget p {
    font-size: 1.4rem;
}

.site-footer .footer-widgets {
    margin-bottom: 30px;
}

.site-footer .footer-widgets,
.site-footer .site-info {
    padding: 0;
}


/* ===============================
   Global Elements
   =============================== */

body,
body p,
body span,
body li {
    color: var(--color-dark-steel) !important;
    font-family: "Roboto", "Open Sans", sans-serif !important;
}

body button,
body a {
    text-decoration: none !important;
}


/* body a,
body a:visited {
    color: var(--color-dark-steel) !important;
} */

body a:hover,
body a:focus {
    color: var(--color-safety-orange) !important;
}

button:focus {
    outline: 1px solid var(--color-safety-orange) !important;
}


/* ===============================
   Buttons
   =============================== */

body button,
body .button,
body .add_to_cart_button,
body .single_add_to_cart_button,
body .wp-block-button__link {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
    border: none !important;
    padding: 0.75em 1.25em !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out !important;
    font-weight: 400 !important;
}

body .wp-block-button__link span {
    color: var(--color-white) !important;
    font-weight: 400 !important;
}

body .wc-block-components-button.wc-block-cart__submit-button:hover,
body button:hover,
body a.button:hover,
body .add_to_cart_button:hover,
body .single_add_to_cart_button:hover,
body .wp-block-button__link:hover {
    background-color: var(--color-safety-orange) !important;
    color: var(--color-white) !important;
}

body .onetap-container-toggle button.onetap-toggle:hover {
    background-color: transparent !important;
}

/* Secondary / Outline buttons */

body .button.alt,
body .wp-block-button__link.is-style-outline {
    background-color: transparent !important;
    color: var(--color-dark-steel) !important;
    border: 2px solid var(--color-dark-steel) !important;
    font-weight: 400 !important;
}

body .button.alt:hover,
body .wp-block-button__link.is-style-outline:hover {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
}

a.added_to_cart.wc_forward,
a.added_to_cart.wc-forward {
    display: none !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body .site-content {
    flex: 1;
}


/* ===============================
   Product Cards
   =============================== */

body .woocommerce ul.products li.product,
body .woocommerce-page ul.products li.product {
    background-color: var(--color-steel-silver) !important;
    border: 1px solid #e5e5e5 !important;
    padding: 15px !important;
    text-align: center !important;
    transition: all 0.2s ease-in-out !important;
}

body .woocommerce ul.products li.product:hover,
body .woocommerce-page ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    color: var(--color-dark-steel) !important;
    font-weight: 600 !important;
}

body .woocommerce ul.products li.product .price,
body .woocommerce-page ul.products li.product .price {
    color: var(--color-dark-steel) !important;
    font-weight: bold !important;
}


/* ===============================
   Sale & New Badges
   =============================== */

body .wc-block-components-product-sale-badge {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
    font-size: 0.75rem !important;
    padding: 2px 5px !important;
    top: 0 !important;
    left: 0 !important;
    text-transform: uppercase !important;
    border: 0;
    border-radius: 0;
}

body .wc-block-components-product-sale-badge span {
    color: var(--color-white) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}

body .new-badge {
    background-color: var(--color-warning-yellow) !important;
    color: var(--color-dark-steel) !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    padding: 3px 6px !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
}


/* ===============================
   Forms
   =============================== */

body input[type="text"],
body input[type="email"],
body input[type="password"],
body textarea {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 0.5em !important;
    width: 100% !important;
}

body input:focus,
body textarea:focus {
    border-color: var(--color-dark-steel) !important;
    box-shadow: 0 0 3px rgba(30, 58, 138, 0.3) !important;
}


/* ===============================
   Product Image Hover
   =============================== */

body .woocommerce ul.products li.product img:hover,
body .woocommerce-page ul.products li.product img:hover {
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
    transition: all 0.3s ease !important;
}

.site-content .col-full {
    max-width: 100%;
    padding: 0 40px;
}


/* home start */

.n2-section-smartslider div.n2-ss-text {
    color: white !important;
    font-size: 1.6rem !important;
}

.n2-section-smartslider .n2-ss-button-container a {
    font-size: 1rem !important;
    background: white !important;
    color: var(--color-dark-steel) !important;
}

.n2-section-smartslider .n2-ss-button-container a:hover {
    background: var(--color-safety-orange) !important;
    color: white !important;
}

.n2-section-smartslider p {
    color: white !important;
    font-size: 1.4rem !important;
    margin: 10px !important;
}

.nextend-bullet-bar .n2-bullet.n2-active {
    background: var(--color-safety-orange) !important;
}

.nextend-bullet-bar .n2-bullet {
    background: #f2f2f28c !important;
}

.home .content-area .wp-block-columns {
    margin: 80px 0;
    text-align: center;
}

.home-triple-banner .wp-block-font-awesome-icon svg {
    width: 100px;
    height: 100px;
}

.wp-block-woocommerce-product-collection>div,
.wp-block-woocommerce-product-collection>ul {
    justify-content: center;
}

.wp-block-woocommerce-product-collection .wp-block-group {
    margin: 0 0 30px 0;
}

.wc-block-next-previous-buttons {
    position: absolute;
    right: 40px;
}

.is-product-collection-layout-carousel {
    /* margin: 0 0 60px !important; */
    justify-content: flex-start !important;
    padding-bottom: 60px !important;
    /* gap: 40px !important; */
}

.home-products-new {
    margin-bottom: 80px;
}

svg.wc-block-next-previous-buttons__icon {
    width: 12px;
    height: auto;
    top: 0;
    transform: translate(-25%, -25%);
    vertical-align: middle;
    text-align: center;
}

.is-product-collection-layout-carousel h2 {
    min-height: 65px !important;
}

.wc-block-components-product-image {
    margin-bottom: 25px !important;
}

.hentry .entry-content .wp-block-button,
.editor-styles-wrapper .wp-block-button {
    margin: 0 !important;
}

.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel {
    margin: 0 auto;
}

.home-new-products-btn {
    margin-bottom: 80px;
}


/* home end */


/* catalog start */

.storefront-sorting {
    display: flex;
    align-items: center;
}

.storefront-sorting .orderby {
    padding: 10px;
}

h2.woocommerce-loop-product__title {
    min-height: 55px;
}

.storefront-sorting:last-child {
    display: none;
}

.tax-product_cat .product .onsale {
    background-color: var(--color-dark-steel) !important;
    color: var(--color-white) !important;
    font-size: 0.75rem !important;
    padding: 2px 5px !important;
    top: 0 !important;
    left: 0px !important;
    text-transform: uppercase !important;
    border: 0;
    border-radius: 0;
    position: absolute;
}


/* catalog end */


/* product start */

.product-template-default .content-area {
    width: 100% !important;
}

.product-template-default form.cart {
    display: flex !important;
}

.product-template-default form.cart .quantity {
    display: flex;
}

.price del {
    opacity: 1 !important;
}
/* product end */


/* cart start */
.wc-block-cart-item__product .wc-block-components-sale-badge {
    display: none;
}
.wc-block-components-quantity-selector {
    display: flex;
    gap: 10px;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    width: 60px !important;
    min-width: 60px !important;
    border: 1px solid var(--color-dark-steel) !important;
}

.wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button {
    width: 50px !important;
    min-width: 50px !important;
    border-radius: 0 !important;
    opacity: 1 !important;
}

.wc-block-components-quantity-selector:after {
    content: none !important;
}

.site-header-cart .widget_shopping_cart .mini_cart_item a {
    color: var(--color-dark-steel) !important;
}

.site-header-cart .widget_shopping_cart .mini_cart_item a:hover {
    color: var(--color-safety-orange) !important;
}

.site-header-cart .widget_shopping_cart .mini_cart_item a.remove_from_cart_button:before {
    color: var(--color-dark-steel) !important;
}


/* cart end */

@media (max-width: 768px) {
    .site-content .col-full {
        padding: 0;
    }
    .site-header {
        padding: 20px !important;
    }
    .site-header .col-full {
        margin: 0 !important;
    }
    body .site-header .site-branding {
        max-width: 60px !important;
    }
    .site-header .menu-toggle span {
        color: white !important;
        margin-left: 20px !important;
    }
    .woocommerce-active .site-header .site-header-cart.menu,
    .header-inner .storefront-primary-navigation {
        margin: 0;
    }
    .site-header .menu-toggle span {
        font-weight: 400 !important;
    }
    button.menu-toggle::before,
    button.menu-toggle::after,
    button.menu-toggle span::before {
        background-color: white !important;
        font-weight: 400;
    }
    .woocommerce-active .site-header .site-header-cart.menu {
        display: none;
    }
    .site-header-cart .cart-contents::after {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        font-weight: normal;
        line-height: 1;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        line-height: inherit;
        vertical-align: baseline;
        content: "";
        height: 1em;
        float: right;
        line-height: 1.618;
    }
    .header-inner .storefront-primary-navigation {
        /* margin: 0 40px; */
        flex: 0 1;
    }
    .storefront-primary-navigation .main-navigation.toggled .handheld-navigation {
        position: fixed !important;
        background: var(--color-dark-steel);
        width: 100%;
        left: 0;
        height: 100%;
        top: 100px;
        padding: 20px !important;
        overflow: scroll !important;
    }
    .storefront-primary-navigation .main-navigation .handheld-navigation {
        transition: none !important;
    }
    .storefront-handheld-footer-bar ul li>a {
        background-color: var(--color-dark-steel);
    }
    .site-footer {
        text-align: center;
    }
    .storefront-sorting {
        display: block;
    }
     :where(.wc-block-product-filters) .wc-block-product-filters__close-overlay span,
     :where(.wc-block-product-filters) .wc-block-product-filters__open-overlay span {
        color: white !important;
    }
    .tax-product_cat .site-content>.col-full {
        display: flex;
        flex-direction: column;
    }
    .tax-product_cat .site-content .col-full #secondary {
        order: 1;
        margin-bottom: 20px;
    }
    .tax-product_cat .site-content .col-full #secondary .widget {
        margin: 0 !important;
    }
    .tax-product_cat .site-content .col-full #primary {
        order: 2;
    }
    .storefront-breadcrumb {
        margin: 0 !important;
        padding: 20px 0 20px 0 !important;
        text-align: center;
    }
    .tax-product_cat .product .onsale {
        left: 50% !important;
        transform: translate(-50%, 0) !important;
    }
}