/* ==================================================
   Product Info (Stacked Mobile View)
   ================================================== */

/* --- Main Box --- */
.pig-container {
    border: 2px solid #28a745;
    border-radius: 5px;
    background: #fff;
    margin: 20px 0 35px 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* --- Header --- */
.pig-header {
    background-color: #28a745;
    padding: 8px 12px;
    border-bottom: 2px solid #1e7e34;
    text-align: center;
}

.pig-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Body --- */
.pig-body {
    padding: 0;
    background-color: #fff;
}

/* --- Full Width Row (File Name) --- */
.pig-row.pig-full-row {
    padding: 8px 12px;
    background-color: #e8f5e9;
    border-bottom: 1px solid #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Grid System --- */
.pig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop: 2 Columns */
}

/* --- Cell Styling (Desktop Default) --- */
.pig-col {
    padding: 8px 12px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    display: flex;
    justify-content: space-between; /* Side by Side on Desktop */
    align-items: center;
}

.pig-col:nth-child(even) { border-right: none; }

/* --- Colors (Zebra) --- */
.pig-col:nth-child(4n+1), .pig-col:nth-child(4n+2) { background-color: #f8f9fa; }
.pig-col:nth-child(4n+3), .pig-col:nth-child(4n+4) { background-color: #eafaf1; }
.pig-col[style*="grid-column: span 2"] { background-color: #fcf6e2 !important; border-right: none; }

/* --- Typography --- */
.pig-label {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 11px;
    min-width: 90px;
    margin-right: 10px;
    flex-shrink: 0;
}

.pig-value, .pig-strong {
    color: #000;
    font-size: 13px;
    font-weight: 600;
    text-align: right; /* Right align on Desktop */
    word-break: break-word;
    line-height: 1.4;
}

.pig-strong { font-size: 14px; color: #155724; }
.pig-value a { color: #d63384; text-decoration: none; }
.pig-value a:hover { text-decoration: underline; }

/* =======================================================
   MOBILE RESPONSIVE (Stacked: Data Below Label)
   ======================================================= */
@media (max-width: 600px) {
    
    /* 1. Single Column */
    .pig-grid {
        grid-template-columns: 1fr; 
    }

    /* 2. Stack Layout (Top-Down) */
    .pig-col, .pig-row.pig-full-row {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align everything to LEFT */
        padding: 8px 15px; /* Standard padding */
        border-right: none;
        height: auto;
    }

    /* 3. Label Styling (Top) */
    .pig-label {
        width: 100%;
        margin-bottom: 2px; /* Small gap below label */
        font-size: 10px;
        color: #777; /* Slightly lighter */
        letter-spacing: 0.5px;
    }

    /* 4. Value Styling (Below) */
    .pig-value, .pig-strong {
        width: 100%;
        text-align: left; /* Force Left Align */
        font-size: 14px; /* Readable size */
        padding-left: 0;
        max-width: 100%;
        white-space: normal; /* Allow text wrapping */
    }

    /* 5. Mobile Zebra Colors (Simple Alternating) */
    .pig-col:nth-child(odd) { background-color: #f8f9fa; }
    .pig-col:nth-child(even) { background-color: #ffffff; }
    
    /* Ensure Borders exist */
    .pig-col { border-bottom: 1px solid #e0e0e0; }
    
    /* OS Support Highlight Keep */
    .pig-col[style*="grid-column: span 2"] {
        background-color: #fcf6e2 !important;
    }
}