/**
 * Product Specifications - Frontend CSS
 * File: css/product-specs-frontend.css
 * Version: 1.0.5
 */

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.product-specs-content {
    padding: 10px 0;
}

/* ============================================================
   TITLE
   ============================================================ */
.product-specs-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* ============================================================
   TABLE
   ============================================================ */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Table Header */
.product-specs-header {
    background: #8B4513;
    color: white;
}

.product-specs-th-name,
.product-specs-th-value {
    padding: 14px 12px !important;
    border: 1px solid #8B4513;
    font-weight: 700;
    text-align: left;
    font-size: 14px;
}

.product-specs-th-name {
    width: 35%;
}

.product-specs-th-value {
    width: 65%;
}

/* ============================================================
   TABLE ROWS
   ============================================================ */
.product-specs-row.odd {
    background: #ffffff;
}

.product-specs-row.even {
    background: #fafafa;
}

.product-specs-row-name {
    padding: 12px !important;
    border: 1px solid #8B4513;
    font-weight: 600;
    width: 35%;
    text-align: left;
    color: #555;
}

.product-specs-row-value {
    padding: 12px;
    border: 1px solid #8B4513;
    color: #333;
}

/* ============================================================
   NOTE
   ============================================================ */
.product-specs-note {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 15px;
}

/* ============================================================
   ERROR & EMPTY STATES
   ============================================================ */
.product-specs-error,
.product-specs-empty {
    color: #999;
    font-style: italic;
    padding: 15px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
    .product-specs-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .product-specs-th-name,
    .product-specs-th-value,
    .product-specs-row-name,
    .product-specs-row-value {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .product-specs-note {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    /* Stack table on mobile */
    .product-specs-table,
    .product-specs-table thead,
    .product-specs-table tbody,
    .product-specs-table tr,
    .product-specs-table th,
    .product-specs-table td {
        display: block;
        width: 100%;
    }
    
    .product-specs-header {
        display: none; /* Hide header on mobile */
    }
    
    .product-specs-row {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
    }
    
    .product-specs-row-name {
        background: #f5f5f5 !important;
        border-bottom: 2px solid #ddd;
        font-size: 14px;
    }
    
    .product-specs-row-name::before {
        content: "📌 ";
    }
    
    .product-specs-row-value {
        background: #fff !important;
    }
}
