/* Custom Header Styles (Kure Ghor Style) */
.custom-header-wrapper {
    font-family: inherit;
}

.custom-header-wrapper .header-top-marquee {
    background-color: #ffffff;
    color: #555;
    padding: 3px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.custom-header-wrapper .marquee-container {
    width: 100%;
}

.custom-header-wrapper .marquee-container marquee {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.custom-header-wrapper .header-main-area {
    background-color: #ffffff;
    padding: 15px 0;
}

.custom-header-wrapper .custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom-header-wrapper .header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Important for mobile */
}

.custom-header-wrapper .mobile-menu-toggle {
    display: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: #333 !important;
}

.custom-header-wrapper .mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.custom-header-wrapper .header-logo {
    display: flex;
    align-items: center;
}

.custom-header-wrapper .header-logo img {
    max-width: 180px;
    height: auto;
}

.custom-header-wrapper .header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.custom-header-wrapper .custom-search-form {
    display: flex;
    width: 100%;
    max-width: 490px;
    height: 40px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.custom-header-wrapper .custom-search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 0 15px;
    outline: none;
    background: #fff;
    font-size: 14px;
    color: #555;
    box-shadow: none;
    min-width: 0;
}

.custom-header-wrapper .custom-search-form button {
    background: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-wrapper .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.custom-header-wrapper .header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-header-wrapper .contact-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.custom-header-wrapper .contact-number {
    color: #e53935;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.custom-header-wrapper .contact-number:hover {
    color: #c62828;
}

.custom-header-wrapper .contact-icon svg {
    color: #333;
}

.custom-header-wrapper .header-cart .cart-icon-wrapper {
    position: relative;
    color: #b0b4b9;
    display: flex;
    align-items: center;
}

.custom-header-wrapper .header-cart .cart-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.custom-header-wrapper .header-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-wrapper .header-bottom-menu {
    background-color: #026379;
}

.custom-header-wrapper .custom-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.custom-header-wrapper .custom-main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.custom-header-wrapper .custom-main-navigation ul li a:hover {
    color: #ddd;
}

/* MOBILE STYLES */
@media (max-width: 991px) {
    .custom-header-wrapper .header-top-marquee {
        display: none;
        /* Hide marquee on mobile based on image */
    }

    .custom-header-wrapper .header-main-area {
        padding: 10px 0;
    }

    .custom-header-wrapper .header-main-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .custom-header-wrapper .mobile-menu-toggle {
        display: block;
        order: 1;
        /* Left */
        flex: 0 0 auto;
    }

    .custom-header-wrapper .header-logo {
        order: 2;
        /* Center */
        flex: 1;
        justify-content: center;
    }

    .custom-header-wrapper .header-logo img {
        max-width: 130px;
        /* Smaller logo on mobile */
    }

    .custom-header-wrapper .header-right {
        order: 3;
        /* Right */
        flex: 0 0 auto;
        gap: 10px;
    }

    .custom-header-wrapper .header-contact {
        display: none;
        /* Hide phone on mobile */
    }

    .custom-header-wrapper .header-search {
        order: 4;
        /* New row */
        width: 100%;
        flex: 0 0 100%;
        padding: 10px 0 0 0;
        margin-top: 10px;
    }

    .custom-header-wrapper .custom-search-form {
        max-width: 100%;
    }

    .custom-header-wrapper .custom-search-form button {
        background-color: #2b2b2c;
        /* Dark search button on mobile */
        color: #fff;
        padding: 0 20px;
    }

    .custom-header-wrapper .header-bottom-menu {
        display: none;
        /* Hide menu bar on mobile */
    }
}

/* Off-Canvas Menu */
.custom-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #026379;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.custom-mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.mobile-menu-search {
    padding: 15px 20px;
}

.mobile-menu-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mobile-menu-search input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
}

.mobile-menu-search button {
    background: none;
    border: none;
    padding: 0 12px;
    color: #666;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 0 20px;
    overflow-y: auto;
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-content ul li a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* Custom Product Card Design */
.click-shop-product-container .products .product,
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.click-shop-product-container .products .product:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.click-shop-product-container .products .product .custom-product-img-link,
.woocommerce ul.products li.product .custom-product-img-link {
    display: block;
    overflow: hidden;
    position: relative;
    padding: 0;
    /* Removed padding so image touches the border */
    border-radius: 8px 8px 0 0;
}

.click-shop-product-container .products .product .custom-product-img-link img,
.woocommerce ul.products li.product .custom-product-img-link img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    /* Make image follow card corner */
}

.click-shop-product-container .products .product:hover .custom-product-img-link img,
.woocommerce ul.products li.product:hover .custom-product-img-link img {
    transform: scale(1.05);
}

.custom-onsale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545 !important;
    color: #fff !important;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    line-height: 1;
}

/* Hide default theme sale badge */
.click-shop-product-container .products .product>span.onsale,
.click-shop-product-container .products .product>.onsale,
.woocommerce ul.products li.product>span.onsale,
.woocommerce ul.products li.product>.onsale {
    display: none !important;
}

.click-shop-product-container .products .product .product-text-wrapper,
.woocommerce ul.products li.product .product-text-wrapper {
    padding: 10px 12px 5px 12px;
    /* Reduced left padding and bottom gap */
    text-align: left !important;
    align-items: flex-start !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.click-shop-product-container .products .product .product-title,
.woocommerce ul.products li.product .product-title {
    text-decoration: none;
    margin-bottom: 5px;
    width: 100%;
}

.click-shop-product-container .products .product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #333;
    font-weight: 600;
    text-align: left !important;
}

.click-shop-product-container .products .product .price,
.woocommerce ul.products li.product .price {
    font-size: 16px;
    color: #dc3545;
    /* Red sale price */
    font-weight: bold;
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: 100%;
}

.click-shop-product-container .products .product .price del,
.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    margin-left: 8px;
    /* Gap between red price and grey price */
}

.click-shop-product-container .products .product .price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    order: 1;
    /* This will make ins appear first if row-reverse, wait. If row-reverse, the first child (del) goes to the right, and the second child (ins) goes to the left. */
}

.custom-add-to-cart-wrapper {
    padding: 0 !important;
    width: 100%;
    margin-top: 5px;
    /* Reduced gap above button */
}

.custom-add-to-cart-wrapper .custom-order-btn {
    display: block !important;
    width: 100% !important;
    background: #026379 !important;
    color: #fff !important;
    text-align: center;
    padding: 10px 0 !important;
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700;
    border: none;
    border-radius: 0 0 8px 8px !important;
    text-decoration: none;
    transition: background 0.3s ease;
}

.custom-add-to-cart-wrapper .custom-order-btn:hover {
    background: #014b5c !important;
    color: #fff !important;
}

.custom-add-to-cart-wrapper .custom-order-btn i {
    margin-right: 6px;
    font-size: 16px;
}

/* Force 5 columns on desktop */
@media (min-width: 1025px) {

    .click-shop-product-container .products.loadmore-container-list,
    .elementor-widget-product_list_click_shop .click-shop-product-container .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {

    .click-shop-product-container .products.loadmore-container-list,
    .elementor-widget-product_list_click_shop .click-shop-product-container .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {

    .click-shop-product-container .products.loadmore-container-list,
    .elementor-widget-product_list_click_shop .click-shop-product-container .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* Custom Pagination Style */
.custom-pagination-container {
    text-align: center;
    margin: 30px 0 20px 0;
}

.custom-pagination-container .woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.custom-pagination-container .woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
    border-right: 1px solid #e1e1e1;
}

.custom-pagination-container .woocommerce-pagination ul li:last-child {
    border-right: none;
}

.custom-pagination-container .woocommerce-pagination ul li a,
.custom-pagination-container .woocommerce-pagination ul li span {
    display: block;
    padding: 8px 15px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #026379;
    background: #fff;
    transition: all 0.3s ease;
}

.custom-pagination-container .woocommerce-pagination ul li span.current {
    background: #026379;
    color: #fff;
}

.custom-pagination-container .woocommerce-pagination ul li a:hover {
    background: #f1f1f1;
}

/* Delivery Info Box on Product Page */
.cs-delivery-info-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin: 15px 0;
    background: #fff;
    font-family: inherit;
}

.cs-short-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.cs-short-desc p {
    margin: 0 0 5px 0;
}

.cs-product-code {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.cs-product-code strong {
    color: #111;
}

.cs-delivery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cs-delivery-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cs-delivery-table tr:last-child {
    border-bottom: none;
}

.cs-delivery-table td {
    padding: 9px 5px;
    color: #444;
    vertical-align: middle;
}

.cs-delivery-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

/* Single Product Page - Price styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #ff0000 !important;
    font-weight: 700;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce div.product p.price del .woocommerce-Price-amount,
.woocommerce div.product span.price del .woocommerce-Price-amount {
    color: #999999 !important;
    font-weight: 400;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #ff0000 !important;
    text-decoration: none !important;
}

/* Single Product Page - Buttons styling (Add to cart & Order Now) */
.woocommerce div.product form.cart .button,
.woocommerce div.product .elementor-add-to-cart .elementor-button {
    background-color: #026379 !important;
    border-color: #026379 !important;
    color: #ffffff !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .elementor-add-to-cart .elementor-button:hover {
    background-color: #014c5d !important;
    border-color: #014c5d !important;
}

/* ============================================================ */
/* SEARCH RESULTS PAGE                                          */
/* ============================================================ */

.cs-search-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* Search heading */
.cs-search-header {
    text-align: center;
    padding: 20px 10px 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.cs-search-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px 0;
}

.cs-search-count {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Product grid - same as home page 5 per row */
.cs-search-product-wrapper .click-shop-product-container {
    width: 100%;
}

.cs-search-product-wrapper ul.woocommerce.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.cs-search-product-wrapper ul.woocommerce.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.cs-search-product-wrapper ul.woocommerce.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Pagination */
.cs-search-pagination {
    margin-top: 30px;
    text-align: center;
}

/* No results */
.cs-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.cs-no-results h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cs-search-product-wrapper ul.woocommerce.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cs-search-product-wrapper ul.woocommerce.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .cs-search-product-wrapper ul.woocommerce.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}