/* pages/shipments-show.css — from shipments/show.blade.php */

.shipment-detail-page {
    padding-bottom: 60px;
}

.shipment-detail-header {
    padding: 30px 0;
    background: #f9fafb;
    margin-bottom: 40px;
}

.shipment-detail-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.shipment-detail-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.shipment-detail-breadcrumbs a:hover {
    color: #f0cf4c;
}

.shipment-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .shipment-detail-title {
        font-size: 18px;
    }
}

.shipment-detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
}

.shipment-detail-meta i {
    margin-right: 6px;
}

.shipment-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .shipment-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Галерея */
.shipment-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shipment-gallery-main {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.shipment-gallery-main img {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    object-position: center;
}

.shipment-gallery-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shipment-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    position: relative;
}

.shipment-gallery-thumb.active {
    border-color: #f0cf4c;
}

.shipment-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация */
.shipment-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
}

.shipment-info-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.shipment-field {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.shipment-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shipment-field-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.shipment-field-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Описание */
.shipment-description {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.shipment-description h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.shipment-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.shipment-description-content p {
    margin: 0 0 12px;
}

.shipment-description-content p:last-child {
    margin-bottom: 0;
}

/* Другие отгрузки */
.related-shipments {
    margin-top: 60px;
}

.related-shipments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .related-shipments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-shipments-grid {
        grid-template-columns: 1fr;
    }
}

.related-shipment-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.related-shipment-card:hover {
    transform: translateY(-4px);
}

.related-shipment-card__img {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.related-shipment-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-shipment-card__content {
    padding: 16px;
}

.related-shipment-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
}

.related-shipment-card:hover .related-shipment-card__title {
    color: #f0cf4c;
}

.related-shipment-card__date {
    font-size: 12px;
    color: #6b7280;
}
