﻿.price-unit {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #6e6e73 !important;
    margin-right: 4px;
}

.row.g-4 > [class*="col-"],
.row.g-3 > [class*="col-"] {
    display: flex;
}

.sultan-product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f5;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

    .sultan-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
        border-color: #e5e5ea;
    }

.badge-new-product {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #e91e63;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.25);
}

.card-img-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

    .card-img-wrapper img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

.sultan-product-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-body-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.card-title-rating-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
    margin-bottom: 8px;
    gap: 8px;
}

.card-product-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2c2c2e;
    margin: 0;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
    text-align: right;
    flex-grow: 1;
}

.card-status-rating-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    margin-bottom: 10px;
    gap: 8px;
    min-height: 24px;
}

.inventory-note-wrapper,
.inventory-note,
.inventory-note-mobile,
.inventory-note-desktop {
    display: none !important;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3a3a3c;
    white-space: nowrap;
    flex-shrink: 0;
}

.gold-star {
    color: #ffc107;
    font-size: 0.95rem;
}

.card-product-desc {
    font-size: 0.82rem;
    color: #8e8e93;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    word-break: break-word;
}

.card-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-height: 28px;
}

.card-tag-chip {
    background: #f2f2f7;
    color: #8e8e93;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.card-price-footer {
    margin-top: 0;
    padding-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px dashed #f2f2f7;
    gap: 10px;
    min-height: 52px;
}

.price-label-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6e6e73;
}

.price-values-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    min-height: 100%;
}

.current-price-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1c1c1e;
    display: inline-flex;
    align-items: center;
}

.discount-badge-pill {
    background: #ef4056;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 800;
}

.old-price-num {
    color: #8e8e93;
    text-decoration: line-through;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
}

.pagination .page-link {
    color: #b8893c;
    border-radius: 10px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: #d6a245;
    border-color: #d6a245;
    color: white;
}

.pagination .page-link:hover {
    background: #fef2e4;
    color: #9a671f;
}

footer {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 3rem;
    color: #b5926a;
    border-top: 1px solid #f0e5d8;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .sultan-products-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .product-grid-row {
        --bs-gutter-y: 0 !important;
        --bs-gutter-x: 0 !important;
    }

    .sultan-product-card {
        flex-direction: row;
        padding: 14px 10px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f0f0f5;
        box-shadow: none;
        gap: 12px;
        align-items: stretch;
        background: #ffffff;
        min-height: 150px;
    }

        .sultan-product-card:hover {
            transform: none;
            box-shadow: none;
        }

    .card-img-wrapper {
        width: 115px;
        height: 115px;
        padding: 4px;
        margin-bottom: 0;
        background: transparent;
        border-radius: 8px;
        align-self: center;
        flex-shrink: 0;
    }

    .sultan-product-card:hover .card-img-wrapper img {
        transform: none;
    }

    .badge-new-product {
        top: 6px;
        right: 6px;
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    .card-body-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
        min-height: 115px;
    }

    .card-title-rating-row {
        order: 1;
        margin-bottom: 4px;
        flex-direction: row-reverse;
        justify-content: flex-start;
        align-items: center;
    }

    .card-product-title {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.5;
        min-height: 2.7em;
        color: #2c2c2e;
        order: 2;
        flex-grow: 1;
        text-align: right;
    }

    .card-product-desc {
        order: 2;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.78rem;
        color: #8e8e93;
        line-height: 1.5;
        margin-bottom: 6px;
        min-height: 2.4em;
    }

    .card-status-rating-row {
        order: 3;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        margin-top: auto;
        margin-bottom: 4px;
        gap: 6px;
        width: 100%;
        min-height: 20px;
    }

    .card-rating {
        font-size: 0.82rem;
        color: #3a3a3c;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        margin-top: 0;
        padding-top: 0;
        order: 1;
    }

    .gold-star {
        font-size: 0.85rem;
    }

    .card-tags-row,
    .price-label-text {
        display: none !important;
    }

    .card-price-footer {
        order: 5;
        border-top: none;
        padding-top: 0;
        margin-top: 2px;
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .price-values-box {
        align-items: flex-start;
        justify-content: flex-start;
        width: auto;
        margin-left: 0;
        text-align: left;
    }

    .current-price-num {
        font-size: 1.02rem;
        font-weight: 800;
        color: #1c1c1e;
        justify-content: flex-start;
    }

    .discount-badge-pill {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .old-price-num {
        font-size: 0.75rem;
        justify-content: flex-start;
    }
}
