/* On Sale Badge */
.onsale {
    display: inline-block;
    padding: 0.25rem;
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 2;
    background-color: #0dc025;
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
}

/* Product List */
.products {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.products > .col {
    flex: 0 0 auto;
    width: 33.33%;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    border: 1px solid #c00d1e;
}

.product-card .woocommerce-LoopProduct-link {
    display: block;
    flex: 1;
    text-decoration: none;
    overflow: hidden;
}

.product-card .attachment-woocommerce_thumbnail {
    display: block;
    margin-bottom: 0.25rem;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

/* .product-card:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.1);
} */

.product-card .woocommerce-loop-product__title {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    padding: 0 0.25rem;
    font-size: 0.5rem;
    color: #000;
    transition: color 0.3s;
}

.product-card
    .woocommerce-LoopProduct-link:hover
    .woocommerce-loop-product__title {
    color: #c00d1e;
}

.product-card .price {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 0 1rem 1rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #c00d1e;
}

.product-card .price ins {
    text-decoration: none;
}

.product-card .price del {
    font-weight: 400;
    color: #414141;
}

.product-card :where(.button, .add_to_cart_button, .added_to_cart) {
    display: block;
    margin: 0;
    padding: 0.25rem;
    background-color: #c00d1e;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.product-card:hover :where(.button, .add_to_cart_button, .added_to_cart) {
    background-color: #9a0a18;
    color: #fff;
}

.product-card .added_to_cart {
    display: none;
}

/* Custom Quantity */

/* WC BlockUI Overlay */
.blockOverlay {
    background: rgba(247, 247, 247, 0.4) !important;
    cursor: wait !important;
}

/* Root */
:is(.woocommerce-cart, .woocommerce-checkout) .section-padding .woocommerce {
    margin-top: calc(var(--section-margins) * -0.5);
}

/* Notices */
.woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 1rem;
}

:is(.woocommerce-info, .woocommerce-error, .woocommerce-message) {
    margin-left: 0;
}

:is(.woocommerce-info, .woocommerce-error, .woocommerce-message)
    + :is(.woocommerce-info, .woocommerce-error, .woocommerce-message) {
    margin-top: -1rem;
}

:is(.woocommerce-info, .woocommerce-error, .woocommerce-message):not(
        :last-child
    ) {
    margin-bottom: 1rem;
}

:is(.woocommerce-info, .woocommerce-error, .woocommerce-message) li {
    padding-left: 0;
}

:is(.woocommerce-info, .woocommerce-error, .woocommerce-message) li::before {
    display: none;
}

.woocommerce-products__shop .woocommerce-error {
    margin-bottom: 1rem;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    margin: 0;
    width: auto;
    position: relative;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    word-wrap: break-word;
    list-style: none outside;
    background-color: #f7f6f7;
    color: #000f08;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    font-family: "icomoon";
    display: inline-block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    line-height: 1;
}

.woocommerce-error::after,
.woocommerce-info::after,
.woocommerce-message::after {
    content: "";
    display: block;
    clear: both;
}

.woocommerce-info--no-icon {
    padding-left: 0.75rem;
}

.woocommerce-info--no-icon:before {
    display: none;
}

.woocommerce-info--multi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.woocommerce-info--multi > * {
    flex: 0 1 auto;
}

.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button {
    float: right;
    text-transform: uppercase;
}

.woocommerce-message::before {
    content: "\e90f";
    color: #0dc025;
}

.woocommerce-info::before {
    content: "\e913";
    color: #0b4696;
}

.woocommerce-error {
    border-color: #9a0a18;
}

.woocommerce-error::before {
    content: "\e913";
    color: #9a0a18;
}

/* Table */
.shop_table_wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
}

.shop_table {
    display: table;
    width: 100%;
}

.shop_table th,
.shop_table td {
    padding: 0.5rem;
}

.shop_table thead tr {
    border-bottom: 1px solid #e0e0e0;
}

.shop_table thead th {
}

.shop_table tbody tr {
}

.shop_table tbody td {
}

.shop_table tfoot {
    border-top: 1px solid #e0e0e0;
}

.shop_table :is(tbody, tfoot) tr:not(:only-child) {
    border-bottom: 1px solid #e0e0e0;
}

.shop_table :is(tbody, tfoot) tr:first-child:not(:only-child) {
    border-top: none;
}

.shop_table :is(tbody, tfoot) tr:last-child:not(:only-child) {
    border-top: none;
    border-bottom: none;
}

/* Shipping Methods */
.woocommerce-shipping-methods {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

.woocommerce-shipping-methods li input {
    flex: 0 0 auto;
    margin: 0;
}

.woocommerce-shipping-methods li:before {
    display: none;
}

/* Forms */
.woocommerce .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.woocommerce
    .form-row
    > :where(
        label,
        .woocommerce-input-wrapper,
        .password-input,
        .checkout-inline-error-message
    ),
.shipping-calculator-form .form-row > span {
    flex: 1;
    width: 100%;
}

/* Select2 */
.select2-container .select2-selection--single {
    height: 3rem;
}

.select2-container--default .select2-selection--single {
    border-color: #e0e0e0;
}

.select2-container--open .select2-selection--single,
.select2-container--open .select2-dropdown {
    border-color: #4f7280;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding: 0.75rem 1rem;
    line-height: 1;
}

.select2-results__option {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.select2-results__option:before {
    display: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 3rem;
    top: 0;
    right: 1.5rem;
}

.select2-search--dropdown {
    padding: 0.75rem 1rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 0.75rem 1rem;
    height: 3rem;
    border-color: #4f7280;
}

/* Pagination */
.woocommerce-pagination {
  text-align: center;
  margin: 1rem 0 0;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5em;
}

.woocommerce-pagination ul.page-numbers li {
  display: inline-block;
}

.woocommerce-pagination .page-numbers:not(ul) {
  display: inline-block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #c00d1e;
  background-color: #fff;
  border: 2px solid #c00d1e;
  border-radius: 0.25rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers:not(ul):hover {
  background-color: #c00d1e;
  color: #fff;
}

.woocommerce-pagination .page-numbers.current {
  background-color: #c00d1e;
  color: #fff;
  border-color: #c00d1e;
  font-weight: bold;
  cursor: default;
}

.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
  font-weight: bold;
}

/* Custom QTY */
.tgm-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.25rem 0.25rem 0.25rem;
}

.tgm-product-price .price {
    padding: 0;
    font-size: 0.5rem;
}

.theme-tgm .qib-container {
    align-items: center;
    padding: 0.5rem;
    border-radius: 100px;
    background-color: #f4f4f4;
}

.tgm-product-price .qib-container {
    padding: 0.125rem;
}

.theme-tgm .qib-container .quantity input.qty:not(#qib_id):not(#qib_id) {
    width: 3rem;
    height: 1.5rem;
    border: none;
}

.tgm-product-price .qib-container .quantity input.qty:not(#qib_id):not(#qib_id) {
    width: 1rem;
    height: 0.75rem;
    font-size: 0.5rem;
}

.theme-tgm .qib-button:not(#qib_id):not(#qib_id) {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100px;
    border: none;
    background: #f09aa2;
    font-size: 1rem;
    line-height: 1;
    color: #c00d1e;
    transition: background 0.3s, color 0.3s;
}

.tgm-product-price .qib-button:not(#qib_id):not(#qib_id) {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.25rem;
}

.theme-tgm .qib-button:hover:not(#qib_id):not(#qib_id) {
    color: #fff;
}

.theme-tgm .qib-container > *:not(:last-child):not(#qib_id):not(#qib_id) {
    margin: 0 !important;
}

@media (max-width: 767px) {
    /* Table */
    .shop_table_responsive thead {
        display: none;
    }

    .shop_table_responsive .woocommerce-cart-form__cart-item {
        display: flex;
        flex-direction: column;
    }

    .shop_table_responsive .woocommerce-cart-form__cart-item + tr {
        margin-top: -1px;
    }

    .shop_table_responsive .woocommerce-cart-form__cart-item td {
        display: flex;
        align-items: center;
        order: 1;
    }

    .shop_table_responsive .woocommerce-cart-form__cart-item td.product-remove {
        padding-bottom: 0;
        justify-content: flex-end;
    }

    .shop_table_responsive .woocommerce-cart-form__cart-item td.product-price {
        gap: 0.25rem;
    }

    .shop_table_responsive
        .woocommerce-cart-form__cart-item
        td.product-remove
        .remove
        .icon-close {
        font-size: 1.25rem;
    }

    .shop_table_responsive
        .woocommerce-cart-form__cart-item
        td.product-remove
        .remove
        .icon-close:before {
        content: "\e912";
    }

    .shop_table_responsive
        .woocommerce-cart-form__cart-item
        td:not(.product-remove, .product-thumbnail):before,
    .shop_table_responsive
        .woocommerce-cart-form__cart-item
        td:not(.product-remove, .product-thumbnail, .product-quantity, .product-price)
        > * {
        flex: 0 0 auto;
        width: 50%;
    }

    .shop_table_responsive
        .woocommerce-cart-form__cart-item
        td:not(.product-remove, .product-thumbnail):before {
        content: attr(data-title) ":";
        font-weight: 700;
    }
}

@media (max-width: 599px) {
    .shop_table td {
        padding: 0.5rem;
    }
}

@media (min-width: 425px) {
    /* Product List */
    .products > .col {
        width: 25%;
    }
}

@media (min-width: 600px) {
    /* Table */
    .shop_table th,
    .shop_table td {
        padding: 0.75rem;
    }

    /* Notices */
    .woocommerce-info--multi {
        gap: 1rem;
    }
    
    /* Product List */
    .products {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .products > .col {
        width: 20%;
    }

    /* Notices */
    .woocommerce-notices-wrapper:not(:empty) {
        margin-bottom: 2rem;
    }

    .woocommerce-error,
    .woocommerce-info,
    .woocommerce-message {
        padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    }

    .woocommerce-error:before,
    .woocommerce-info:before,
    .woocommerce-message:before {
        top: 1.25rem;
        left: 1.25rem;
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .product-card :where(.button, .add_to_cart_button, .added_to_cart) {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 1025px) {
    /* Badge */
    .onsale {
        padding: 0.375rem;
        font-size: 1.125rem;
    }

    /* Notice */
    .woocommerce-info--multi {
        gap: 2rem;
    }

    /* Product List */
    .products > .col {
        width: 25%;
    }

    /* Product Card */
    .product-card .attachment-woocommerce_thumbnail {
        margin-bottom: 0.5rem;
    }

    .product-card .woocommerce-loop-product__title {
        margin-bottom: 1.125rem;
        padding: 0 1rem;
        min-height: 4.5rem;
        font-size: 1.25rem;
    }

    .product-card :where(.button, .add_to_cart_button, .added_to_cart) {
        padding: .625rem;
        font-size: 1rem;
    }

    .tgm-product-price {
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
        min-height: 3rem;
    }

    .tgm-product-price .price {
        font-size: 1rem;
    }

    .tgm-product-price .qib-container {
        padding: 0.5rem;
    }

    .tgm-product-price .qib-container .quantity input.qty:not(#qib_id):not(#qib_id) {
        width: 3rem;
        height: 1.5rem;
        font-size: 1rem;
    }

    .tgm-product-price .qib-button:not(#qib_id):not(#qib_id) {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1rem;
    }

    .tgm-product-price .qib-container div.quantity:not(#qib_id):not(#qib_id) {
        display: inline-flex;
    }
}

@media (min-width: 1200px) {
}