/* ============================================================
   HP Hermes Product Integration — Frontend Styles
   ============================================================ */

/* ── Grid layout ─────────────────────────────────────────── */
.hp-hermes-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.hp-hermes-cols-1 { grid-template-columns: 1fr; }
.hp-hermes-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hp-hermes-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hp-hermes-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hp-hermes-cols-5 { grid-template-columns: repeat(5, 1fr); }
.hp-hermes-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .hp-hermes-cols-4,
    .hp-hermes-cols-5,
    .hp-hermes-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hp-hermes-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .hp-hermes-grid { grid-template-columns: 1fr !important; }
}

/* ── Product card ────────────────────────────────────────── */
.hp-hermes-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.hp-hermes-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.hp-hermes-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.hp-hermes-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.2s ease;
}

.hp-hermes-card:hover .hp-hermes-card__image img {
    transform: scale(1.03);
}

.hp-hermes-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    gap: 8px;
}

.hp-hermes-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0069b4; /* HP Blue */
}

.hp-hermes-card__name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.hp-hermes-card__name a {
    color: inherit;
    text-decoration: none;
}

.hp-hermes-card__name a:hover {
    color: #0069b4;
}

.hp-hermes-card__sku {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.hp-hermes-card__description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    flex: 1;
}

/* ── Single product ──────────────────────────────────────── */
.hp-hermes-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .hp-hermes-single {
        grid-template-columns: 1fr;
    }
}

.hp-hermes-single__gallery {
    grid-row: 1 / 2;
}

.hp-hermes-single__details {
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-hermes-single__specs {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.hp-hermes-single__main-image img {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
    padding: 16px;
}

.hp-hermes-single__thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hp-hermes-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    background: #f3f4f6;
    padding: 4px;
    transition: border-color 0.15s ease;
}

.hp-hermes-thumb.active,
.hp-hermes-thumb:hover {
    border-color: #0069b4;
}

.hp-hermes-single__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.hp-hermes-single__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0069b4;
}

.hp-hermes-single__name {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.hp-hermes-single__sku {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.hp-hermes-single__description {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.hp-hermes-single__specs h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* ── Specs table ─────────────────────────────────────────── */
.hp-hermes-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.hp-hermes-specs th,
.hp-hermes-specs td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.hp-hermes-specs th {
    background: #f3f4f6;
    font-weight: 600;
    width: 40%;
    color: #374151;
}

.hp-hermes-specs td {
    color: #111827;
}

.hp-hermes-specs--full th {
    width: 30%;
}

.hp-hermes-specs tr:nth-child(even) td {
    background: #fafafa;
}

/* ── Button ──────────────────────────────────────────────── */
.hp-hermes-btn {
    display: inline-block;
    margin-top: auto;
    padding: 9px 18px;
    background: #0069b4;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
    text-align: center;
}

.hp-hermes-btn:hover {
    background: #005190;
    color: #fff;
}

.hp-hermes-btn--large {
    padding: 12px 24px;
    font-size: 16px;
    align-self: flex-start;
}

/* ── Error / Empty states ────────────────────────────────── */
.hp-hermes-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.hp-hermes-empty {
    color: #6b7280;
    font-style: italic;
    padding: 16px 0;
}
