/* =================================
   PRODUCT CARD
================================= */

.product_card {
    position: relative;
    min-width: 0;
    background: #F4F5F7;
    overflow: hidden;
}

.display_content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card_content {
    position: relative;
    width: 100%;
    aspect-ratio: 285 / 301;
    overflow: hidden;
}

.card_content>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product information */

.card_footer {
    flex: 1;
    padding: 16px;
}

.footer_name {
    margin: 0 0 8px;
    color: #3A3A3A;
    font-size: 24px;
    font-weight: 600;
}

.footer_desc {
    margin: 0 0 8px;
    color: #898989;
    font-size: 16px;
}

/* Prices */

.price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.current_price {
    margin: 0;
    color: #3A3A3A;
    font-size: 18px;
    font-weight: 600;
}

.original_price {
    margin: 0;
    color: #B0B0B0;
    font-size: 14px;
    text-decoration: line-through;
}

/* Discount badge */

.discount-percent {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E97171;
    color: white;
    font-size: 14px;
}

/* Hover overlay */

.hover_content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(58, 58, 58, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product_card:hover .hover_content {
    opacity: 1;
    visibility: visible;
}

.overlay_items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.overlay_items>.action {
    display: block;
    width: 100%;
    padding: 12px 8px;
    border: none;
    background: white;
    color: #B88E2F;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Share, compare, like */

.sub_action_list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sub_action_list a {
    color: white;
    text-decoration: none;
}

.sub_action {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub_action .icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sub_action .content {
    margin: 0;
    font-size: 14px;
}

/* Missing image */

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAEAEA;
    color: #898989;
}

/* Mobile typography */

@media (max-width: 768px) {
    .card_footer {
        padding: 12px;
    }

    .footer_name {
        font-size: 18px;
    }

    .footer_desc {
        font-size: 14px;
    }

    .current_price {
        font-size: 16px;
    }
}

/* ==========================================
   ADD TO CART BUTTON
========================================== */

.add-to-cart-form {
    width: 100%;
    margin: 10px 0;
}

.add-to-cart-btn {
    position: relative;

    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 12px 18px;

    border: 1px solid #B88E2F;
    border-radius: 4px;

    background: #B88E2F;
    color: #FFFFFF;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

    cursor: pointer;

    overflow: hidden;

    transition: all 0.3s ease;
}

.add-to-cart-btn>i:first-child {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.add-to-cart-btn .cart-arrow {
    position: absolute;
    right: 18px;

    opacity: 0;
    transform: translateX(-8px);

    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #A47D26;
    border-color: #A47D26;

    box-shadow: 0 5px 15px rgba(184, 142, 47, 0.25);
}

.add-to-cart-btn:hover>i:first-child {
    transform: scale(1.15);
}

.add-to-cart-btn:hover .cart-arrow {
    opacity: 1;
    transform: translateX(0);
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

.add-to-cart-btn:focus-visible {
    outline: 2px solid #B88E2F;
    outline-offset: 3px;
}
