/* Australian Sires Page Styles - Based on Angus Page */
/* Version: 1.0 - Dairy-specific filtering and layout */

/* Main Layout */
.australian-sires-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 5px;
    box-sizing: border-box;
    clear: both;
    overflow-x: hidden;
    width: 100%;
}

/* Ensure the content area takes full width */
.tax-product_cat.term-australian-sires-holsteins #primary.content-area,
.tax-product_cat.term-australian-sires-jersey #primary.content-area,
.tax-product_cat.term-australian-sires-aussie-red #primary.content-area,
.tax-product_cat.term-australian-sires-illawarra #primary.content-area,
.tax-product_cat.term-international-sires-holsteins #primary.content-area,
.tax-product_cat.term-australian-sires-holsteins .content-area,
.tax-product_cat.term-australian-sires-jersey .content-area,
.tax-product_cat.term-australian-sires-aussie-red .content-area,
.tax-product_cat.term-australian-sires-illawarra .content-area,
.tax-product_cat.term-international-sires-holsteins .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.tax-product_cat.term-australian-sires-holsteins #main.site-main,
.tax-product_cat.term-australian-sires-jersey #main.site-main,
.tax-product_cat.term-australian-sires-aussie-red #main.site-main,
.tax-product_cat.term-australian-sires-illawarra #main.site-main,
.tax-product_cat.term-international-sires-holsteins #main.site-main,
.tax-product_cat.term-australian-sires-holsteins .site-main,
.tax-product_cat.term-australian-sires-jersey .site-main,
.tax-product_cat.term-australian-sires-aussie-red .site-main,
.tax-product_cat.term-australian-sires-illawarra .site-main,
.tax-product_cat.term-international-sires-holsteins .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override WooCommerce styles */
.tax-product_cat.term-australian-sires-holsteins .woocommerce-products-header,
.tax-product_cat.term-australian-sires-jersey .woocommerce-products-header,
.tax-product_cat.term-australian-sires-aussie-red .woocommerce-products-header,
.tax-product_cat.term-australian-sires-illawarra .woocommerce-products-header,
.tax-product_cat.term-international-sires-holsteins .woocommerce-products-header {
    display: none;
}

.tax-product_cat.term-australian-sires-holsteins .woocommerce-breadcrumb,
.tax-product_cat.term-australian-sires-jersey .woocommerce-breadcrumb,
.tax-product_cat.term-australian-sires-aussie-red .woocommerce-breadcrumb,
.tax-product_cat.term-australian-sires-illawarra .woocommerce-breadcrumb,
.tax-product_cat.term-international-sires-holsteins .woocommerce-breadcrumb {
    display: none;
}

.australian-sires-page-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
    clear: both;
}

@media (max-width: 576px) {
    .australian-sires-page-row {
        margin: 0px 0px !important;
    }
    .view-toggle a {
    font-size: 0.75rem !important;  
    }
}

.australian-sires-sidebar {
    width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

.australian-sires-main-content {
    width: 75%;
    padding: 0 15px;
    box-sizing: border-box;
}

.australian-sires-page-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

/* Filters Sidebar */
.australian-sires-filters {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.australian-sires-filters h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 5px;
}

.filter-section h4 {
    font-size: 16px;
    margin-bottom: 0px;
    color: #444;
}

/* HTML5 Range Filters */
.range-filter-container {
    padding: 10px 0;
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.range-inputs label {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.range-inputs input[type="number"] {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #003c71;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #003c71;
    cursor: pointer;
    border: none;
}

/* Hide range values display as requested - values are shown in the slider itself */
.range-values {
    display: none;
}

/* Australian Sires Data Table - Consolidated styles */

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.australian-sires-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    background-color: #003c71;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.australian-sires-button:hover {
    background-color: #0d2b4a;
}

.australian-sires-button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.australian-sires-button-secondary:hover {
    background-color: #e0e0e0;
}

/* Filter Message */
.filter-message {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.filter-note {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.filter-note p {
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filtering Indicator */
.filtering-indicator {
    position: absolute;
    top: 0;
    right: 15px;
    background-color: #003c71;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    animation: fadeIn 0.2s ease;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.filtering-indicator::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top: 2px solid white;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* View and Sort Options */
.view-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.view-toggle a {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: #003c71;
    border: 1px solid #003c71;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.view-toggle a:hover {
    background-color: #f0f0f0;
}

.sorting-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Search box in sorting options */
.australian-sires-search-box {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
    flex: 1;
    max-width: 300px;
}

.australian-sires-search-box input[type="text"] {
    padding: 8px 15px;
    padding-right: 60px; /* Space for the buttons */
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.australian-sires-search-box input[type="text"]:focus {
    border-color: #003c71;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 65, 112, 0.2);
    background-color: #fff;
}

.sort-option {
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sort-option.active {
    background-color: #003c71;
    color: white;
}

/* Products Grid */
.australian-sires-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

/* Ensure 3 columns on large screens */
@media (min-width: 1800px) {
    .australian-sires-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .australian-sires-product-card {
        max-width: 400px;
    }
}

/* No results state */
.australian-sires-products-grid.no-results {
    display: none;
}

/* No products message */
.no-products-message {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    clear: both;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Product Card */
.australian-sires-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Video View Styles */
.australian-sires-products-grid.video-view .australian-sires-product-card {
    /* Enhance card appearance in video view */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.australian-sires-card-video-container,
.australian-sires-card-video-container-inactive {
    width: 100%;
    height: 330px;
    position: relative;
    background-color: transparent; /* Transparent initially so image shows through */
    display: none; /* Hidden by default */
    z-index: 1;
}

.australian-sires-card-video-container {
    display: block; /* Show when activated */
}

/* Ensure video container is on top when ready */
.australian-sires-products-grid.video-view .australian-sires-product-card.video-ready .australian-sires-card-video-container {
    z-index: 10;
    background-color: #000; /* Show background only when ready */
}

.australian-sires-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* Image fade transition styles */
.australian-sires-products-grid.video-view .grid-view-image {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Keep image visible while video is preparing */
.australian-sires-products-grid.video-view .australian-sires-product-card.video-preparing .grid-view-image {
    display: block !important;
    opacity: 1;
}

/* Fade out animation for image when video is ready */
.australian-sires-products-grid.video-view .australian-sires-product-card .grid-view-image.fade-out {
    opacity: 0;
}

/* Only hide images in products that have active video AND are ready */
.australian-sires-products-grid.video-view .australian-sires-product-card.has-active-video.video-ready .grid-view-image {
    display: none !important;
}

/* Keep images visible for products without videos in video view */
.australian-sires-products-grid.video-view .australian-sires-product-card:not(.has-active-video) .grid-view-image {
    display: block !important;
    opacity: 1;
}

.australian-sires-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-header-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.product-header-link:hover {
    opacity: 0.9;
}

.product-header {
    background-color: #003c71;
    padding: 15px 3px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.product-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-image {
    height: auto;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price and Select Button Row */
.product-price-container,
.product-price-select-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #d9eaf9;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px;
}

.product-price {
    flex: 1;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: #003c71;
    order: 1;
}

.product-price .inc-gst {
    font-size: 14px;
    font-weight: 400;
}

.product-select-button {
    margin-left: 10px;
    order: 2;
    flex-shrink: 0;
}

.select-options-btn {
    background-color: #9fdacc;
    color: #003c71;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.select-options-btn:hover {
    background-color: #8bc9ba;
    color: #0d2b4a;
}

.product-sire {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.sire-label {
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.sire-value {
    color: #333;
    font-weight: 500;
}

/* Product Data Row - A22, BPI, Sustainability, HWI, O/TYPE, MAMM */
.product-data-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
}

/* H28: hide the data row on bull grid cards while the design is finalised.
   display:none drops the row out of layout entirely, so each card shrinks
   by the row's height automatically — no additional sizing work needed.
   To restore: delete this block (the original .product-data-row rule
   above is preserved untouched). */
.product-data-row {
    display: none;
}

/* Product Stats - Same layout for stat-item structure */
.product-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
}

/* H28: hide the stats block on bull grid cards while the design is finalised.
   display:none drops the block out of layout entirely, so each card shrinks
   by the block's height automatically — no additional sizing work needed.
   To restore: delete this block (the original .product-stats rule above is
   preserved untouched). */
.product-stats {
    display: none;
}

.data-item {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.data-item:last-child {
    border-right: none;
}

/* A22 field - blue background */
.data-item.a22 {
    background-color: #b9d7f8;
}

/* BPI field - green background */
.data-item.bpi {
    background-color: #9fdacc;
}

/* Sustainability field - blue background */
.data-item.sustainability {
    background-color: #b9d7f8;
}

/* HWI field - green background */
.data-item.hwi {
    background-color: #9fdacc;
}

/* O/TYPE field - blue background */
.data-item.overall-type {
    background-color: #b9d7f8;
}

/* MAMM field - green background */
.data-item.mammary {
    background-color: #9fdacc;
}

.data-label {
    font-size: 0.75rem; /* 12px based on 16px base */
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 1.125rem; /* 18px based on 16px base */
    font-weight: 700;
    color: #003c71;
    line-height: 1;
}

/* Stat Item Base Styling */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 5px;
    border-right: 1px solid #e0e0e0;
    height: 55px;
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

/* Stat Item Background Colors - Alternating Pattern */
.stat-item:nth-child(1) {
    background-color: #b9d7f8;
}

.stat-item:nth-child(2) {
    background-color: #9fdacc;
}

.stat-item:nth-child(3) {
    background-color: #b9d7f8;
}

.stat-item:nth-child(4) {
    background-color: #9fdacc;
}

.stat-item:nth-child(5) {
    background-color: #b9d7f8;
}

.stat-item:nth-child(6) {
    background-color: #9fdacc;
}

.stat-label {
    font-size: 0.75rem; /* 12px based on 16px base */
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1rem; /* 16px - matches base */
    font-weight: 700;
    color: #003c71;
}

/* Product Actions */
.product-actions {
    padding: 15px;
    text-align: center;
    background-color: #f8f9fa;
}

.product-actions .select-options {
    background-color: #003c71;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-actions .select-options:hover {
    background-color: #0d2b4a;
}

/* Responsive Styles */
@media (max-width: 1799px) {
    .australian-sires-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .australian-sires-product-card {
        max-width: 320px;
    }
}

@media (max-width: 1440px) {
    .australian-sires-page-container {
        padding: 30px 5px;
    }
}

@media (max-width: 1359px) {
    .australian-sires-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .australian-sires-product-card {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .australian-sires-sidebar,
    .australian-sires-main-content {
        width: 100%;
    }

    .australian-sires-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .australian-sires-product-card {
        max-width: 100%;
        width: 100%;
    }

    .product-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Make view-sort-container and buttons responsive */
    .view-sort-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }
    
    /* Make view toggle buttons full width on mobile */
    .view-toggle {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .view-toggle a {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .view-toggle a:last-child {
        margin-bottom: 0;
    }
    
    .sorting-options {
        flex-wrap: wrap;
        width: 100%;
        flex-direction: column;
    }

    /* Stack all sort buttons to a uniform full-width on mobile so the column
       reads as a clean list instead of a ragged content-width stack. */
    .sort-option {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .australian-sires-search-box {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .australian-sires-search-box input[type="text"] {
        width: 100%;
    }

    .sorting-options {
        flex-wrap: wrap;
    }

    /* Adjust data fields for tablet - smaller text */
    .data-label {
        font-size: 11px;
    }

    .data-value {
        font-size: 16px;
    }

    .data-item {
        min-height: 55px;
        padding: 10px 6px;
    }

    /* Tighter price row + shorter sire-name row on mobile so cards stay compact. */
    .product-price-container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .product-price {
        text-align: center;
        padding: 5px;
    }

    .australian-sires-product-card .product-sire {
        min-height: 20px;
    }
}

@media (max-width: 576px) {
    .australian-sires-products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-select-button {
        margin-left: -10px !important;
    }
    .australian-sires-product-card {
        max-width: 100%;
    }

    .view-sort-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .sorting-options {
        flex-wrap: wrap;
        width: 100%;
    }

    .sort-option {
        text-align: center;
    }

    .stat-item {
        height: 50px;
    }

    /* Adjust data fields for mobile - stack in 2 columns instead of 3 */
    .product-data-row {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .data-item {
        min-height: 50px;
        padding: 8px 6px;
    }

    .data-label {
        font-size: 10px;
    }

    .data-value {
        font-size: 16px;
    }
    
    /* Fix Select Options button centering on mobile */
    .product-price-select-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
    }
    
    .product-price {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .product-select-button {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .select-options-btn {
        width: auto !important;
        min-width: 140px;
        text-align: center;
    }
}

/* Table View Styles */
.australian-sires-data-table {
    width: 100%;
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none !important;
    overflow-x: auto;
}

/* When table view is active - override the display none */
.australian-sires-data-table.active,
.australian-sires-data-table[style*="display: block"],
.australian-sires-data-table[style*="display:block"] {
    display: block !important;
}

.australian-sires-data-table.visible {
    display: block !important;
}

.australian-sires-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.australian-sires-table thead {
    background-color: #003c71;
    color: white;
}

.australian-sires-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #0d2b4a;
    color: white !important; /* Ensure all headers are white */
}

/* Sortable column headers */
.australian-sires-table thead th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.australian-sires-table thead th.sortable:hover {
    background-color: #1e4f8a;
}

.australian-sires-table thead th.sortable .sort-indicator {
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.5;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: normal;
}

.australian-sires-table thead th.sortable:hover .sort-indicator {
    opacity: 0.8;
}

/* Hide the default indicator text when sorted */
.australian-sires-table thead th.sorted-asc .sort-indicator,
.australian-sires-table thead th.sorted-desc .sort-indicator {
    font-size: 0;
    opacity: 1;
}

/* Show only ascending arrow when sorted ascending */
.australian-sires-table thead th.sorted-asc .sort-indicator::after {
    content: '▲';
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
}

/* Show only descending arrow when sorted descending */
.australian-sires-table thead th.sorted-desc .sort-indicator::after {
    content: '▼';
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
}

.australian-sires-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.australian-sires-table tbody tr:hover {
    background-color: #f8f9fa;
}

.australian-sires-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.australian-sires-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.column-image {
    width: 80px;
    text-align: center;
    padding: 8px !important;
}

.column-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Table body cell for title column */
.australian-sires-table tbody .column-title {
    font-weight: 600;
    color: #003c71;
}

/* Table header for title column should inherit white color */
.australian-sires-table thead .column-title {
    color: white;
}

.column-price {
    font-weight: 600;
    color: #003c71;
}

.column-actions .select-options {
    background: #003c71;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
}

.column-actions .select-options:hover {
    background: #0f2d4f;
}

.no-results-row td {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
    .australian-sires-table {
        font-size: 12px;
    }

    .australian-sires-table th,
    .australian-sires-table td {
        padding: 8px 5px;
    }

    .column-image {
        width: 60px;
    }
    
    .column-image img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .column-image {
        display: none;
    }
}

/* Ion Range Slider Custom Styles - Override plugin defaults */
.australian-sires-page-container .irs--flat .irs-from,
.australian-sires-page-container .irs--flat .irs-single,
.australian-sires-page-container .irs--flat .irs-to {
    background-color: #003c71 !important;
}

.australian-sires-page-container .irs--flat .irs-from:before,
.australian-sires-page-container .irs--flat .irs-single:before,
.australian-sires-page-container .irs--flat .irs-to:before {
    border-top-color: #003c71 !important;
}

/* Hide the min/max grid labels to prevent overlap with handle labels */
.australian-sires-page-container .irs-grid-text {
    display: none !important;
    visibility: hidden !important;
}

/* Also hide the min/max labels that appear at the extremes */
.australian-sires-page-container .irs-min,
.australian-sires-page-container .irs-max {
    display: none !important;
    visibility: hidden !important;
}

.australian-sires-page-container .irs--flat .irs-bar {
    background-color: #003c71 !important;
}

/* Fix bull images - full visibility, no cropping, consistent cards */
.product-image,
.grid-view-image {
    display: flex !important;
    align-items: flex-end !important;
    background: linear-gradient(180deg, #e8ede8 0%, #d5ddd5 100%) !important;
    overflow: hidden !important;
}
.product-image img,
.grid-view-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: fill !important;
}
.australian-sires-product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}
.australian-sires-product-card .product-sire {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px;
}

/* Force images full width - override all */
.product-image,
.grid-view-image {
    display: block !important;
    background: linear-gradient(180deg, #e8ede8 0%, #d5ddd5 100%) !important;
}
.product-image img,
.grid-view-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
}
