/* Product Modern CSS - Allied International */
/* v1.0 - 2024-12-19 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --brand-primary: #000099;
    --brand-secondary: #330033;
    --text-primary: #330033;
    --text-light: #666;
    --bg-white: #ffffff;
    --border-light: #ddd;
    --font-stack: 'Times New Roman', Times, serif;
    --highlight-color: #d9534f;
    /* Red color for highlights */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Container */
.product-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Category Header */
.category-header {
    background: #000099;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 0;
}

/* Product List */
.product-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Product Item - 50/50 Grid Split */
.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 40px;
    align-items: start;
}

.product-item:last-child {
    border-bottom: none;
}

/* Product Media */
.product-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the image */
}

.product-media img {
    width: 100%;
    height: 350px;
    /* Fixed height for uniformity */
    object-fit: contain;
    /* Preserves aspect ratio without distortion */
    display: block;
    /* align-self removed - Default behavior */
    margin-bottom: 15px;
    background-color: #fff;
    /* Optional: adds white bg if image has transparency and fits inside container */
}

.product-info .spec-link,
.product-info .spec-link:link,
.product-info .spec-link:visited,
.spec-link,
.spec-link:link,
.spec-link:visited,
a.spec-link,
a.spec-link:link,
a.spec-link:visited {
    display: inline-block;
    /* Changed from block to inline-block for info side */
    margin-top: 10px;
    font-size: 1.1em;
    color: #000099 !important;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.product-media .spec-link:hover,
.spec-link:hover,
a.spec-link:hover {
    text-decoration: underline;
    color: #000099 !important;
}

/* Product Info */
.product-info {
    padding-top: 0;
    text-align: left;
}

.product-info h2,
.product-info h3 {
    margin-top: 0;
    color: #000099;
    font-size: 1.4rem;
    line-height: 1.1;
    /* Tighter line spacing for multi-line headings */
    margin-bottom: 10px;
    /* Reduced from original, user requested reduce gap */
    font-weight: 500;
    font-style: italic;
    /* Maintaining original style preference */
    font-family: 'Roboto', sans-serif;
    /* User request: Change font to Roboto */
}

.product-info .upc {
    display: block;
    font-weight: normal;
    color: #000000;
    margin-bottom: 5px;
    /* Reduced from 15px */
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    /* User request: Change font to Roboto */
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-info li {
    margin-bottom: 3px;
    /* Reduced from 8px */
    font-size: 1.1rem;
    color: #444;
    line-height: 1.2;
    /* Reduced from 1.4 */
}

.product-info li.highlight {
    color: red;
    font-weight: bold;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .product-item {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 20px;
        text-align: center;
    }

    .product-info {
        text-align: center;
    }
}

/* Accessibility: Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .category-header {
        background: none;
        color: var(--brand-primary);
        border-bottom: 2px solid var(--brand-primary);
    }

    .product-media .spec-link {
        display: none;
    }
}