/* Torishima Product Filter Styles */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans:wght@400;500;700&display=swap');

.tpf-product-filter-container {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
	padding-top: 80px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.tpf-filters {
    display: flex;
    gap: 20px; /* Separated the filters */
    margin-bottom: 60px;
}

.tpf-filter-group {
    flex: 1;
}

.tpf-select,
.tpf-select.nice-select {
    width: 100%;
    padding: 0 20px !important; /* Force remove vertical padding */
    height: 50px !important; /* Force explicit height */
    line-height: 50px !important; /* Vertically center text */
    min-height: 50px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important; /* Added border radius */
    background-color: #ffffff !important;
    color: #333 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position-x: 95% !important;
    background-position-y: center !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important; /* subtle shadow */
}

/* Override nice-select specific theme colors to force white */
.tpf-select.nice-select .option,
.tpf-select.nice-select .option.selected.focus,
.tpf-select.nice-select .option:hover,
.tpf-select.nice-select .option.focus {
    background-color: #ffffff !important;
    color: #333 !important;
}

.tpf-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity 0.3s ease;
}

.tpf-product-item {
    border: 1px solid #eaeaea;
    padding: 15px;
    text-align: center;
    background: #fff;
}

.tpf-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.tpf-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.tpf-loader {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #7d4ba7;
}

.tpf-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
}

@media (max-width: 992px) {
    .tpf-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tpf-filters {
        flex-direction: column;
        gap: 15px;
    }
    .tpf-filter-group {
        width: 100%;
        margin-bottom: 15px; /* Fallback for gap */
    }
    .tpf-filter-group:last-child {
        margin-bottom: 0;
    }
    .tpf-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tpf-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Product Technical Info Styles */

.tpf-single-heading {
    font-size: 16px;
    font-weight: normal;
    color: #666;
    margin-bottom: 20px;
    text-decoration-color: #00a4e4;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.tpf-tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 15px;
    color: #555;
}

.tpf-tech-table th, .tpf-tech-table td {
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    vertical-align: top;
}

.tpf-tech-table th {
    font-weight: normal;
    text-align: left;
    width: 30%;
    background-color: #fafafa;
}

.tpf-tech-table .tpf-colon {
    width: 1%;
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    background-color: #fafafa;
}

.tpf-tech-table td:last-child {
    background-color: #fff;
}

.tpf-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.tpf-btn {
    display: inline-flex;
    align-items: center;
    background-color: #00a4e4; /* Torishima Blue */
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px; /* Pill shape */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tpf-btn:hover {
    background-color: #0088bd;
    color: #fff;
}

.tpf-btn .tpf-arrow {
    margin-left: 10px;
    font-weight: bold;
}
