:root {
    --gpc-brand-red: #D90429;
    --gpc-brand-dark: #1b1b1b;
    --gpc-brand-grey: #333333;
    --gpc-brand-light: #f4f4f4;
}

.gpc-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.gpc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gpc-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--gpc-brand-red);
    color: white;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom-left-radius: 0.75rem;
    z-index: 10;
}

.gpc-image-container {
    display: block;
    height: 200px;
    margin: 12px 12px 0 12px;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.gpc-image {
    width: 100%;
    height: 100%;
    object-fit: fill !important;
    object-position: center;
    transition: transform 0.5s ease;
}

.gpc-card:hover .gpc-image {
    transform: scale(1.05);
}

.gpc-content {
    padding: 1rem 1rem 1.25rem 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gpc-title {
    color: var(--gpc-brand-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    text-align: center;
}

.gpc-code {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: monospace;
    margin: 0 0 0.5rem 0;
    text-align: right;
}

.gpc-code a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gpc-code a:hover {
    color: var(--gpc-brand-red);
}

.gpc-breadcrumbs {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 0.5rem;
}

.gpc-breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 45%;
    display: inline-block;
    transition: color 0.2s ease;
}

.gpc-breadcrumbs a:hover {
    color: var(--gpc-brand-grey);
    text-decoration: underline;
}

.gpc-crumb-divider {
    color: #d1d5db;
}

.gpc-timestamp {
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 0.5rem;
}

.gpc-timestamp i {
    color: var(--gpc-brand-red);
    font-size: 0.7rem;
}

.gpc-timestamp span {
    font-weight: 600;
}

.gpc-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 0;
    width: 100%;
}

.gpc-price-label {
    color: #6b7280 !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
}

.gpc-price-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

.gpc-price-new {
    color: var(--gpc-brand-red) !important;
    font-size: 1.25rem;
    font-weight: 800 !important;
    text-align: right;
    margin-left: auto;
}

.gpc-price-single {
    color: var(--gpc-brand-red) !important;
    font-size: 1.25rem;
    font-weight: 800 !important;
    text-align: right;
    margin-left: auto;
}

.gpc-price-invalid {
    color: var(--gpc-brand-red) !important;
    font-size: 1rem;
    font-weight: 700 !important;
    white-space: nowrap;
    text-align: right;
}

.gpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: var(--gpc-brand-red);
    color: white;
    border: 2px solid var(--gpc-brand-red);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    margin-top: auto;
}

.gpc-btn:hover {
    background-color: white;
    color: var(--gpc-brand-red);
}

.gpc-btn svg path {
    fill: currentColor;
}

.gpc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1400px) {
    .gpc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .gpc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .gpc-grid {
        grid-template-columns: 1fr;
    }
    
    .gpc-card {
        max-width: 100%;
    }
}

.gpc-section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.gpc-section-heading h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gpc-brand-dark);
    margin: 0 0 0.5rem 0;
}

.gpc-section-heading p {
    color: #6b7280;
    margin: 0;
}

.gpc-empty-state {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.gpc-empty-state h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gpc-brand-dark);
    margin-bottom: 0.75rem;
}

.gpc-empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
