.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.product-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.product-card-views {
    flex-shrink: 0;
    font-size: 12px;
    color: #adb5bd;
    white-space: nowrap;
}

.product-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price-block {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price-old {
    text-decoration: line-through;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1;
}

.product-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-primary, #0B3157);
    line-height: 1;
}

.sale-ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    animation: saleRibbonPulse 1.2s ease-in-out infinite alternate;
}

@keyframes saleRibbonPulse {
    from { opacity: 1; }
    to { opacity: .65; }
}

.product-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 20px;
}

.sale-badge-inline {
    display: inline-flex;
    align-items: center;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    animation: saleBadgeBlink 1.1s ease-in-out infinite;
}

@keyframes saleBadgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.branch-price-table td, .branch-price-table th {
    vertical-align: middle;
}

.product-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.product-search-form {
    display: flex;
}

.product-search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.product-search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.product-category-list-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.product-category-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.product-category-link:hover {
    background-color: #f1f3f5;
    color: #212529;
}

.product-category-link.active {
    background-color: var(--bs-primary, #0B3157);
    color: #fff;
    font-weight: 600;
}

.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-toolbar-count {
    font-size: 14px;
}

.product-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-sort-form .form-select {
    width: auto;
}

.product-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    width: 72px;
    height: 72px;
    background: none;
    cursor: pointer;
    transition: border-color .15s ease;
}

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

.product-thumb:hover {
    border-color: #dee2e6;
}

.product-thumb.active {
    border-color: var(--bs-primary, #0B3157);
}
