/**
 * Product Details Declaration Style
 * Clean design for product specifications tab
 */

.product-declaration {
    padding: 0;
    margin-top: 0;
}

/* Barcode section */
.declaration-barcode-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FBFBFC;
    padding: 30px;
    border: 1px solid #E4E7ED;
    border-radius: 4px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.barcode-info {
    flex: 1;
    min-width: 200px;
}

.barcode-label {
    font-size: 11px;
    color: #8D99AE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.barcode-value {
    font-size: 22px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #293681;
    letter-spacing: 2px;
}

.barcode-visual {
    flex: 0 0 auto;
    text-align: center;
    padding: 15px 25px;
    background: white;
    border: 2px dashed #E4E7ED;
    border-radius: 4px;
}

.barcode-svg {
    width: 180px;
    height: 60px;
}

.barcode-svg rect {
    transition: fill 0.3s ease;
}

.declaration-barcode-section:hover .barcode-svg rect {
    fill: #4274D9;
}

.barcode-number {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #8D99AE;
    margin-top: 6px;
    letter-spacing: 1.5px;
}

/* Specifications section */
.declaration-specs {
    padding: 0;
}

.specs-title {
    font-size: 16px;
    font-weight: 700;
    color: #293681;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.spec-item {
    background: #FBFBFC;
    border: 1px solid #E4E7ED;
    border-radius: 4px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    position: relative;
}

.spec-item:hover {
    background: white;
    border-color: #4274D9;
    box-shadow: 0 2px 8px rgba(66, 116, 217, 0.1);
    transform: translateY(-1px);
}

.spec-name {
    font-size: 11px;
    color: #8D99AE;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.spec-value {
    font-size: 14px;
    color: #293681;
    font-weight: 600;
    line-height: 1.5;
}

/* Empty state */
.declaration-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8D99AE;
    background: #FBFBFC;
    border: 1px solid #E4E7ED;
    border-radius: 4px;
}

.declaration-empty i {
    font-size: 64px;
    color: #E4E7ED;
    margin-bottom: 20px;
    display: block;
}

.declaration-empty h4 {
    color: #293681;
    margin-bottom: 10px;
    font-size: 18px;
}

.declaration-empty p {
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
    color: #8D99AE;
}

/* Footer removed - not needed */
.declaration-footer {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .declaration-barcode-section {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .barcode-visual {
        align-self: center;
        width: 100%;
        max-width: 280px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .product-declaration {
        border: 1px solid #E4E7ED;
    }

    .spec-item {
        break-inside: avoid;
    }
}
