/*
Theme Name: HardMoneyMerch Custom GeneratePress Child Theme
Template: generatepress
*/
.woocommerce-Reviews-title {
    display: none;
}

.product-card-title {
  margin-bottom: 0;
}

/* Fix Thumbnail Gallery */
.woocommerce-product-gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, 87px);
    justify-content: start;
    column-gap: 0px;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 87px !important;
    margin: 0 !important;
}
/**/

.woocommerce ul.products li.product .woocommerce-LoopProduct-link > .price {
    margin-top: 2px !important;
}

.woo-sale-price del {
    font-size: 13px;
    /*color: #999;*/
    opacity: .7;
    text-decoration: line-through;
}

.woo-sale-price ins {
    color: inherit;
    text-decoration: none;
}

/* Contact Form */

.hmm-extra-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hmm-contact-form input,
.hmm-contact-form textarea {
    width: 100%;
}

.hmm-form-notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.hmm-success {
    background: #edf7ed;
    color: #245b2a;
}

.hmm-error {
    background: #fbeeee;
    color: #922b21;
}
/**/

/* Make Looper DIV Clickable */
.gb-loop-item .gb-element-c140ead3 {
  position: relative;
}

.gb-loop-item .gb-element-c140ead3 > a.gb-text-38e15602::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
/**/

/* Products that zoom on hover */
li:is(.post-657, .post-745, .post-813, .post-815, .post-855, .post-832, .post-249, .post-1101, .post-1060) .inside-wc-product-image {
    overflow: hidden;
}

li:is(.post-657, .post-745, .post-813, .post-815, .post-855, .post-832, .post-249, .post-1101, .post-1060) .inside-wc-product-image > img:not(.secondary-image) {
    transition: transform 0.3s ease;
}

/* Trigger zoom from .wc-product-image */
li:is(.post-657, .post-745, .post-813, .post-815, .post-855, .post-832, .post-249, .post-1101, .post-1060) .wc-product-image:hover img:not(.secondary-image) {
    transform: scale(1.5);
}

/* Disable image swap for products that zoom */
li:is(.post-657, .post-745, .post-813, .post-815, .post-855, .post-832, .post-249, .post-1101, .post-1060) .wc-product-image:hover .secondary-image {
    opacity: 0;
}

/* Special Placements */
li:is(.post-745) .wc-product-image:hover img:not(.secondary-image) {
    transform: scale(1.5) translateX(-25px);
}

/* Mugs */
li:is(.post-249, .post-815, .post-1101, .post-1060) .wc-product-image:hover img:not(.secondary-image) {
    transform: scale(1.3) translateX(-10px);
}

li:is(.post-657) .wc-product-image:hover img:not(.secondary-image) {
    transform: scale(1.5) translate(10px,0px);
}

li:is(.post-813) .wc-product-image:hover img:not(.secondary-image) {
    transform: scale(1.7) translate(35px,35px);
}
/**/

/*.hmm-sizing-link {
    display: block;
    width: 70%;
    text-align: right;
    margin-top: 0;
    font-size: 0.8em;
    color: #b87532;
}*/
/* Shift quantity and Add to Cart controls right */
/*.single-product form.cart .quantity,
.single-product form.cart .single_add_to_cart_button {
  position: relative;
  left: 80px;
}*/

/* Row Gap */
.woocommerce ul.products {
    row-gap: 40px;
}
/**/

/* Restricted Shipping Notice */
.hmm-product-notice {
    margin-top: 16px;
    padding: 12px 15px;
    border-left: 4px solid;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.hmm-usa-notice {
    background: #f7f1df;
    border-left-color: #b89b4a;
}
/**/

/* disable proceed to cart button */
.wc-proceed-to-checkout .checkout-button.hmm-checkout-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/**/

/* Size Charts */

#size-chart .metric {
    display: none;
}

#size-chart .imperial,
#size-chart .metric {
    display: none;
}

#size-chart .size-table:not(.metric-active) .imperial,
#size-chart .size-table.metric-active .metric {
    display: inline;
}

.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 12px;
}

.unit-button {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
	color: #222;
    cursor: pointer;
}

.unit-button:first-child {
    border-radius: 4px 0 0 4px;
}

.unit-button:last-child {
    border-radius: 0 4px 4px 0;
}

.unit-button.active {
    background: #222;
    color: #fff;
    border-color: #222;
}
/**/