.woocommerce ul.products li.product a img, #productGrid .woocommerce ul.products li.product a img, .jet-wishlist-products-thumb-wrapper img{
    width: 100% !important;
    height: 180px !important;
    display: block !important;
    margin: 0 0 1em !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
}
.woocommerce ul.products .woocommerce-LoopProduct-link.woocommerce-loop-product__link{
    width: 100% !important;
}
#productGrid .woocommerce ul.products li.product a img{
    height: 250px !important;
    object-fit: contain !important;

}
.page-numbers{
    border-radius: 5px;
}
.added_to_cart.wc-forward{
    display: none !important;
}
.woocommerce-checkout .checkout {
    display: block !important;
}

/* Professional WooCommerce checkout error notice */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
    margin: 0 0 24px 0;
}

.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error {
    list-style: none;
    margin: 0;
    padding: 18px 20px 18px 56px;
    border: 1px solid rgba(237, 2, 2, 0.25);
    border-left: 5px solid #ED0202;
    border-radius: 10px;
    background: #fff7f7;
    color: #2b2b2b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Icon */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error::before {
    content: "!";
    position: absolute;
    left: 20px;
    top: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ED0202;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

/* Error rows */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.45;
}

.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Clickable field links */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error a {
    color: #2b2b2b;
    text-decoration: none;
}

.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error a:hover {
    color: #ED0202;
    text-decoration: underline;
}

/* Field name */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error strong {
    color: #ED0202;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error {
        padding: 16px 16px 16px 50px;
        border-radius: 8px;
    }

    .woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error::before {
        left: 16px;
        top: 16px;
    }

    .woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li {
        font-size: 14px;
    }
}
/* 
THANK YOU PAGE
*/
/* Success message */
.woocommerce-order-received .woocommerce-notice--success {
    position: relative;
    margin: 0 0 28px;
    padding: 22px 26px 22px 64px;
    background: #f4fbf6;
    border: 1px solid #cfead7;
    border-left: 5px solid #2e9d55;
    border-radius: var(--radius);
    color: #153b24;
    font-size: 18px !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.woocommerce-order-received .woocommerce-notice--success::before {
    content: "✓";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2e9d55;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    font-weight: 700;
}

/* Order overview cards */
.woocommerce-order-received .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px !important;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.woocommerce-order-received .woocommerce-order-overview li {
    margin: 0;
    padding: 18px 16px !important;
    background: #fff;
    border: var(--border);
    border-radius: 14px;
    color: #666;
    font-size: 13px !important;
    text-transform: none;
    box-shadow: 0 6px 18px rgba(20, 30, 60, 0.06);
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    margin-top: 7px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

/* Sections as cards */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    margin: 0 0 28px;
    padding: 26px;
    background: #fff;
    border: var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 30, 60, 0.06);
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #312783;
    color: #111;
    font-size: 22px;
    font-weight: 700;
}

/* Order table */
.woocommerce-order-received table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.woocommerce-order-received table.shop_table th {
    padding: 14px 16px;
    background: #f5f6fb;
    border: none;
    color: #312783;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.woocommerce-order-received table.shop_table td {
    padding: 16px;
    border: none;
    border-bottom: var(--border);
    color: #222;
    font-size: 15px;
}

.woocommerce-order-received table.shop_table tbody tr:nth-child(even) td {
    background: #fafbff;
}

.woocommerce-order-received table.shop_table a {
    color: #312783;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-order-received table.shop_table a:hover {
    text-decoration: underline;
}

.woocommerce-order-received .product-quantity {
    color: #666;
    font-weight: 600;
}

.woocommerce-order-received table.shop_table tfoot th,
.woocommerce-order-received table.shop_table tfoot td {
    background: #fff;
    font-size: 15px;
    font-weight: 600;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    background: #312783;
    color: #fff;
    border-bottom: none;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child .amount,
.woocommerce-order-received table.shop_table tfoot tr:last-child .includes_tax {
    color: #fff;
}

/* Customer details */
.woocommerce-order-received .woocommerce-customer-details address {
    height: auto !important;
    margin: 0;
    padding: 20px;
    background: #f8f9fc;
    border: var(--border);
    border-radius: 12px;
    color: #222;
    font-size: 15px;
    line-height: 1.7;
    font-style: normal;
}

.woocommerce-order-received .woocommerce-customer-details--phone,
.woocommerce-order-received .woocommerce-customer-details--email {
    margin: 10px 0 0;
    padding: 10px 40px !important;
    background: #fff;
    border-radius: 8px;
    border: var(--border);
    color: #111;
}

/* Mobile */
@media (max-width: 1024px) {
    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .woocommerce-order-received .woocommerce-notice--success {
        padding: 18px 18px 18px 56px;
        font-size: 16px;
    }

    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .woocommerce-order-received .woocommerce-order-details,
    .woocommerce-order-received .woocommerce-customer-details {
        padding: 18px;
        border-radius: 12px;
    }

    .woocommerce-order-received .woocommerce-order-details__title,
    .woocommerce-order-received .woocommerce-column__title {
        font-size: 19px;
    }

    .woocommerce-order-received table.shop_table th,
    .woocommerce-order-received table.shop_table td {
        padding: 12px;
        font-size: 14px;
    }
}

.woocommerce-order-received .shop_table tr th{
    padding-left: 15px !important;
}

/* WooCommerce sorting dropdown */
.woocommerce .woocommerce-ordering {
    margin: 0 0 24px;
    display: flex;
    justify-content: flex-end;
}

.woocommerce .woocommerce-ordering select.orderby {
    min-width: 260px;
    height: 44px;
    padding: 0 42px 0 16px;
    border: 1px solid #d9dce7;
    border-radius: 5px;
    background-color: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 44px;
    box-shadow: 0 6px 18px rgba(20, 30, 60, 0.06);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--e-global-color-primary) 50%),
        linear-gradient(135deg, var(--e-global-color-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 19px,
        calc(100% - 14px) 19px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.woocommerce .woocommerce-ordering select.orderby:hover {
    border-color: var(--e-global-color-primary);
}

.woocommerce .woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 3px rgba(49, 39, 131, 0.12);
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce .woocommerce-ordering {
        justify-content: stretch;
        width: 100%;
    }

    .woocommerce .woocommerce-ordering select.orderby {
        width: 100%;
        min-width: 100%;
    }
}

/* Custom WooCommerce ordering dropdown */
.marine-ordering-dropdown {
    position: relative;
    min-width: 280px;
    font-size: 14px;
}

.marine-ordering-selected {
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid #d9dce7;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-weight: 500;
    line-height: 44px;
    box-shadow: 0 6px 18px rgba(20, 30, 60, 0.06);
    cursor: pointer;
    position: relative;
}

.marine-ordering-selected::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #312783;
    border-bottom: 2px solid #312783;
    transform: translateY(-65%) rotate(45deg);
}

.marine-ordering-dropdown.is-open .marine-ordering-selected {
    border-color: #312783;
    box-shadow: 0 0 0 3px rgba(49, 39, 131, 0.12);
}

.marine-ordering-options {
    display: none;
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d9dce7;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(20, 30, 60, 0.16);
}

.marine-ordering-dropdown.is-open .marine-ordering-options {
    display: block;
}

.marine-ordering-options li {
    padding: 11px 12px;
    border-radius: 8px;
    color: #222;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}

.marine-ordering-options li:hover {
    background: #f4f3fb;
    color: #312783;
}

.marine-ordering-options li.is-selected {
    background: #312783;
    color: #fff;
    font-weight: 600;
}

/* Hide original select visually */
.woocommerce .woocommerce-ordering select.orderby.marine-hidden-select {
    display: none !important;
}

@media (max-width: 767px) {
    .marine-ordering-dropdown {
        width: 100%;
        min-width: 100%;
    }
}

