/* XOVOTECH PRODUCT CARD FINAL STYLE - CLEAN SPACING + MODERN BUTTONS */

.product-card {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(27, 19, 57, 0.03) !important;
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.product-card:hover {
    border-color: rgba(0, 113, 220, 0.25) !important;
    box-shadow: 0 10px 24px rgba(27, 19, 57, 0.09) !important;
    transform: translateY(-2px) !important;
}

.product-card .product-card-top {
    padding: 7px 7px 0 !important;
    flex: 0 0 auto !important;
}

.product-card .product-image {
    border-radius: 11px !important;
    overflow: hidden !important;
}

.product-card .product-card-middle {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 12px 13px 5px !important;
}

.product-card .product-name {
    padding-bottom: 7px !important;
    text-decoration: none !important;
}

.product-card .product-name span {
    min-height: 36px !important;
    font-size: 14px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.product-card .product-rating {
    min-height: 15px !important;
    margin: 0 !important;
}

.product-card .product-card-bottom {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    margin-top: 0 !important;
    padding: 0 13px 13px !important;
    overflow: visible !important;
}

.product-card .product-price {
    width: 100% !important;
    min-height: 30px !important;
    margin: 0 0 10px !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    overflow: visible !important;
}

.product-card .product-price .previous-price {
    margin-bottom: 4px !important;
}

.product-card .product-card-buy-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-card .product-card-buy-actions > *,
.product-card .product-card-buy-now-form {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-card .product-card-buy-actions .btn,
.product-card .product-card-buy-now-form .btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.1px !important;
    white-space: nowrap !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
    transform: translateZ(0) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.product-card .btn-card-add-to-cart {
    background: #ffffff !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(0, 113, 220, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.product-card .btn-card-buy-now {
    background: linear-gradient(180deg, #087df2 0%, var(--color-primary) 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary) !important;
    box-shadow: 0 6px 14px rgba(0, 113, 220, 0.22) !important;
}

.product-card .btn-card-add-to-cart:hover:not(:disabled) {
    background: rgba(0, 113, 220, 0.07) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
}

.product-card .btn-card-buy-now:hover:not(:disabled) {
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 113, 220, 0.28) !important;
    transform: translateY(-1px) !important;
}

.product-card .btn-card-add-to-cart:active:not(:disabled),
.product-card .btn-card-buy-now:active:not(:disabled) {
    transform: translateY(0) !important;
}

.product-card .btn-card-add-to-cart:disabled,
.product-card .btn-card-buy-now:disabled {
    background: #f1f1f4 !important;
    border-color: #e0e0e6 !important;
    color: #a3a3ad !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* List view card */

.list-view-product-card .product-card-actions-parent {
    display: grid !important;
    grid-template-columns: minmax(0, 136px) minmax(0, 136px) !important;
    gap: 8px !important;
    max-width: 280px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.list-view-product-card .product-card-actions-parent > *,
.list-view-product-card .product-card-buy-now-form {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.list-view-product-card .product-card-actions-parent .btn,
.list-view-product-card .product-card-buy-now-form .btn {
    width: 100% !important;
    height: 37px !important;
    min-height: 37px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;
}

.list-view-product-card .btn-card-add-to-cart {
    background: #ffffff !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(0, 113, 220, 0.45) !important;
}

.list-view-product-card .btn-card-buy-now {
    background: linear-gradient(180deg, #087df2 0%, var(--color-primary) 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary) !important;
    box-shadow: 0 6px 14px rgba(0, 113, 220, 0.20) !important;
}

@media screen and (max-width: 575px) {
    .product-card {
        border-radius: 13px !important;
    }

    .product-card .product-card-top {
        padding: 6px 6px 0 !important;
    }

    .product-card .product-card-middle {
        padding: 10px 10px 4px !important;
    }

    .product-card .product-name span {
        min-height: 32px !important;
        font-size: 12.5px !important;
        line-height: 16px !important;
    }

    .product-card .product-card-bottom {
        padding: 0 10px 10px !important;
    }

    .product-card .product-price {
        min-height: 29px !important;
        margin-bottom: 8px !important;
    }

    .product-card .product-card-buy-actions {
        gap: 6px !important;
    }

    .product-card .product-card-buy-actions .btn,
    .product-card .product-card-buy-now-form .btn {
        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;
        padding: 0 5px !important;
        font-size: 10px !important;
    }

    .list-view-product-card .product-card-actions-parent {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        max-width: none !important;
        gap: 6px !important;
    }
}

/* XOVO FINAL EXACT CART BUTTONS ONLY - DO NOT TOUCH ICONS */
.product-card .product-card-buy-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}

.product-card .product-card-buy-actions > .btn-card-add-to-cart,
.product-card .product-card-buy-actions > a.btn-card-add-to-cart,
.product-card .product-card-buy-actions > .btn-card-buy-now,
.product-card .product-card-buy-actions > a.btn-card-buy-now,
.product-card .product-card-buy-now-form {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-card .product-card-buy-actions > .btn-card-add-to-cart,
.product-card .product-card-buy-actions > a.btn-card-add-to-cart,
.product-card .product-card-buy-actions > .btn-card-buy-now,
.product-card .product-card-buy-actions > a.btn-card-buy-now,
.product-card .product-card-buy-now-form > .btn-card-buy-now {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1.5px solid #111111 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.1px !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
}

.product-card .product-card-buy-actions > .btn-card-add-to-cart:hover:not(:disabled),
.product-card .product-card-buy-actions > a.btn-card-add-to-cart:hover,
.product-card .product-card-buy-actions > .btn-card-buy-now:hover:not(:disabled),
.product-card .product-card-buy-actions > a.btn-card-buy-now:hover,
.product-card .product-card-buy-now-form > .btn-card-buy-now:hover:not(:disabled) {
    background: #111111 !important;
    background-color: #111111 !important;
    background-image: none !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.product-card .product-card-buy-actions > .btn-card-add-to-cart:active:not(:disabled),
.product-card .product-card-buy-actions > .btn-card-buy-now:active:not(:disabled),
.product-card .product-card-buy-now-form > .btn-card-buy-now:active:not(:disabled) {
    transform: none !important;
    box-shadow: none !important;
}

.product-card .product-card-buy-actions > .btn-card-add-to-cart:disabled,
.product-card .product-card-buy-actions > .btn-card-buy-now:disabled,
.product-card .product-card-buy-now-form > .btn-card-buy-now:disabled {
    background: #f1f1f4 !important;
    background-image: none !important;
    border-color: #d7d7dc !important;
    color: #8c8c96 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.list-view-product-card .product-card-actions-parent > .btn-card-add-to-cart,
.list-view-product-card .product-card-actions-parent > a.btn-card-add-to-cart,
.list-view-product-card .product-card-buy-now-form > .btn-card-buy-now,
.list-view-product-card .product-card-actions-parent > .btn-card-buy-now,
.list-view-product-card .product-card-actions-parent > a.btn-card-buy-now {
    border: 1.5px solid #111111 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    box-shadow: none !important;
}

@media screen and (max-width: 575px) {
    .product-card .product-card-buy-actions {
        gap: 6px !important;
    }

    .product-card .product-card-buy-actions > .btn-card-add-to-cart,
    .product-card .product-card-buy-actions > a.btn-card-add-to-cart,
    .product-card .product-card-buy-actions > .btn-card-buy-now,
    .product-card .product-card-buy-actions > a.btn-card-buy-now,
    .product-card .product-card-buy-now-form > .btn-card-buy-now {
        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;
        padding: 0 5px !important;
        border-radius: 0 !important;
        font-size: 10px !important;
    }
}
