﻿
text-decoration: none !important;
}

/* =========================================================
   IMAGE
========================================================= */

.osk-card-media {
    position: relative;
    padding: 8px 8px 0;
}

.osk-image-link {
    position: relative;
    width: 100%;
    aspect-ratio: 1.12 / 1;
    min-height: 245px;
    max-height: 315px;
    display: block;
    overflow: hidden;
    border-radius: var(--osk-radius-media);
    background: var(--osk-light);
}

.osk-image-background {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 50% 40%, rgba(255, 255, 255, 1) 0%, rgba(247, 248, 249, 0.98) 48%, rgba(236, 239, 242, 0.94) 100% );
}

    .osk-image-background::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -20%;
        width: 70%;
        height: 70%;
        border-radius: 50%;
        background: rgba(25, 154, 88, 0.055);
        filter: blur(4px);
    }

    .osk-image-background::after {
        content: "";
        position: absolute;
        left: 19%;
        right: 19%;
        bottom: 18px;
        height: 27px;
        border-radius: 50%;
        background: rgba(10, 15, 25, 0.12);
        filter: blur(15px);
        transform: scaleX(0.9);
    }

.main-bike-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 22px 17px 18px;
    display: block;
    object-fit: contain;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.osk-card:hover .main-bike-img {
    transform: scale(1.055) translateY(-3px);
}

.osk-image-grayscale {
    filter: grayscale(1);
    opacity: 0.62;
}

/* =========================================================
   BADGES
========================================================= */

.osk-card-badges {
    position: absolute;
    z-index: 5;
    top: 13px;
    left: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 26px);
}

.osk-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--osk-white);
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    box-shadow: 0 7px 18px rgba(15, 20, 30, 0.13);
}

.osk-badge-discount {
    background: linear-gradient(135deg, #f12a32, #c80d14);
}

.osk-badge-outstock {
    background: linear-gradient(135deg, #747983, #454950);
}

/* Giữ tương thích nếu card cũ còn dùng */
.osk-badge-new {
    background: linear-gradient(135deg, #199a58, #107440);
}

.osk-badge-hot {
    background: linear-gradient(135deg, #17191d, #30343b);
}

/* =========================================================
   HOVER ACTION
========================================================= */

.osk-image-hover-action {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--osk-white);
    background: rgba(10, 11, 14, 0.88);
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, 14px);
    backdrop-filter: blur(14px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.osk-card:hover .osk-image-hover-action {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================================
   INFO
========================================================= */

.osk-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px 18px 19px !important;
}

.osk-product-meta {
    min-height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    color: #8a8f98;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.osk-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osk-stock-status {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--osk-green);
    white-space: nowrap;
}

    .osk-stock-status i {
        font-size: 9px;
    }

.osk-stock-status-out {
    color: #8a8f98;
}

.osk-bottom-name {
    min-height: 47px;
    display: -webkit-box;
    overflow: hidden;
    color: #121419;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 850;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.24s ease;
}

    .osk-bottom-name:hover {
        color: var(--osk-red);
    }

.osk-product-slogan {
    min-height: 38px;
    margin: 7px 0 14px;
    color: #858a94;
    font-size: 11px;
    line-height: 1.55;
}

/* =========================================================
   BENEFITS
========================================================= */

.osk-product-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.osk-benefit {
    min-width: 0;
    min-height: 61px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #696e77;
    background: #f7f8f9;
    text-align: center;
    font-size: 8px;
    line-height: 1.35;
    font-weight: 700;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

    .osk-benefit:first-child {
        color: #32714f;
        background: rgba(25, 154, 88, 0.075);
    }

.osk-card:hover .osk-benefit {
    border-color: rgba(237, 28, 36, 0.06);
}

    .osk-card:hover .osk-benefit:first-child {
        border-color: rgba(25, 154, 88, 0.13);
    }

.osk-benefit-icon {
    color: var(--osk-red);
    font-size: 14px;
}

.osk-benefit:first-child .osk-benefit-icon {
    color: var(--osk-green);
}

/* =========================================================
   PRICE
========================================================= */

.osk-price-section {
    min-height: 76px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 16px;
    padding-top: 2px;
}

.osk-price-content {
    min-width: 0;
}

.osk-price-label {
    display: block;
    margin-bottom: 4px;
    color: #999da5;
    font-size: 10px;
    font-weight: 650;
}

.osk-price-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.osk-price-value {
    color: var(--osk-red) !important;
    font-size: clamp(19px, 1.7vw, 23px) !important;
    line-height: 1.1;
    font-weight: 900 !important;
    letter-spacing: -0.65px;
    white-space: nowrap;
}

.osk-contact-price {
    font-size: 20px !important;
    text-transform: uppercase;
}

.osk-price-old {
    color: #a1a5ad;
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
    white-space: nowrap;
}

.osk-saving-value {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 7px;
    color: #b70d13;
    background: rgba(237, 28, 36, 0.07);
    font-size: 9px;
    line-height: 1.3;
    font-weight: 750;
}

.osk-installment {
    flex: none;
    max-width: 86px;
    padding: 7px 8px;
    border-radius: 9px;
    color: var(--osk-red);
    background: rgba(237, 28, 36, 0.075);
    font-size: 8px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   ACTIONS
========================================================= */

.osk-actions {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 8px;
}

.osk-add-cart-form {
    width: 100%;
    margin: 0;
}

.osk-btn-detail,
.osk-btn-primary,
.osk-btn-disabled {
    width: 100%;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.osk-btn-detail {
    color: #252830;
    background: #f0f1f3;
}

    .osk-btn-detail:hover {
        color: var(--osk-white);
        background: var(--osk-black);
        transform: translateY(-2px);
    }

.osk-btn-primary {
    color: var(--osk-white);
    background: linear-gradient(135deg, #f1262e, #c90e15);
    box-shadow: 0 10px 24px rgba(237, 28, 36, 0.20);
}

    .osk-btn-primary:hover {
        color: var(--osk-white);
        background: linear-gradient(135deg, #ff333b, #b8080e);
        box-shadow: 0 14px 30px rgba(237, 28, 36, 0.30);
        transform: translateY(-2px);
    }

.osk-btn-disabled {
    grid-column: 1 / -1;
    color: #8f939a;
    background: #eceef1;
    cursor: not-allowed;
}

.osk-card-outstock {
    box-shadow: 0 7px 25px rgba(17, 24, 39, 0.04);
}

/* =========================================================
   CARD TRONG GRID 4 CỘT
========================================================= */

.bxc-featured-grid .osk-image-link {
    min-height: 225px;
}

.bxc-featured-grid .osk-info-box {
    padding: 16px !important;
}

.bxc-featured-grid .osk-bottom-name {
    font-size: 16px;
}

.bxc-featured-grid .osk-product-slogan {
    font-size: 10px;
}

.bxc-featured-grid .osk-benefit {
    min-height: 57px;
    font-size: 7.5px;
}

.bxc-featured-grid .osk-price-value {
    font-size: 19px !important;
}

.bxc-featured-grid .osk-actions {
    grid-template-columns: 1fr;
}

.bxc-featured-grid .osk-btn-detail {
    display: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
    .osk-image-link {
        min-height: 250px;
        max-height: 300px;
    }

    .osk-product-benefits {
        gap: 5px;
    }

    .osk-benefit {
        font-size: 7.8px;
    }

    .bxc-featured-grid .osk-actions {
        grid-template-columns: 0.92fr 1.08fr;
    }

    .bxc-featured-grid .osk-btn-detail {
        display: inline-flex;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    .osk-card {
        border-radius: 18px;
    }

    .osk-card-media {
        padding: 7px 7px 0;
    }

    .osk-image-link {
        min-height: 255px;
        max-height: 280px;
        border-radius: 14px;
    }

    .main-bike-img {
        padding: 21px 13px 17px;
    }

    .osk-info-box,
    .bxc-featured-grid .osk-info-box {
        padding: 16px 15px 17px !important;
    }

    .osk-bottom-name,
    .bxc-featured-grid .osk-bottom-name {
        min-height: 44px;
        font-size: 16px;
    }

    .osk-product-slogan,
    .bxc-featured-grid .osk-product-slogan {
        min-height: 34px;
        margin-bottom: 12px;
        font-size: 10px;
    }

    .osk-price-value,
    .bxc-featured-grid .osk-price-value {
        font-size: 20px !important;
    }

    .osk-actions,
    .bxc-featured-grid .osk-actions {
        grid-template-columns: 1fr 1.12fr;
        gap: 7px;
    }

    .bxc-featured-grid .osk-btn-detail {
        display: inline-flex;
    }

    .osk-btn-detail,
    .osk-btn-primary,
    .osk-btn-disabled {
        min-height: 44px;
        padding: 0 7px;
        font-size: 9px;
    }

    .osk-image-hover-action {
        display: none;
    }
}

@media (max-width: 390px) {
    .osk-product-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .osk-benefit:last-child {
        display: none;
    }

    .osk-installment {
        display: none;
    }

    .osk-price-section {
        min-height: 70px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .osk-card,
    .osk-card *,
    .osk-card *::before,
    .osk-card *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
