/* Product filter */
.produktfilter {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    background: #184969;
    border-radius: 30px;
    padding: 10px;
}
.produktfilter .filter-content {
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.produktfilter .product-filter {
    border-radius: 3px;
    font-size: 16px;
    width: 180px;
    padding-left: 10px;
    margin-right: 20px;
}
.produktfilter label {
    font-weight: 500;
	color:#fff;
}
/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
/* Ensure description card is treated as a grid item within the 3-column layout */
.product-description-card {
    grid-column: 1; /* Force to first column */
}
/* Product card styling */
.product-item {
    background: #fff;
    transition: 0.3s ease-in-out;
    min-height: 250px; /* Ensures consistent box size */
}
.product-item:hover {
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}
.product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center; /* Center horizontally */
}
.product-image {
    text-align: center;
    padding: 10px 0px 10px 0px;
}
.product-image img {
    max-width: 100%;
    height: auto;
}
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */
}
.product-title {
    font-size: 25px !important;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 10px;
}
.product-brand {
    color: #020817;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

/* Product excerpt styling */
.product-excerpt {
    /* margin-bottom: 20px; */
    text-align: center;
    color: #020817;
}
.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background: #184969;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s;
    margin-top: auto;
    width: fit-content;
	margin-bottom:20px;
}
.product-link-text {
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: 800;
}
.product-link-icon {
    width: 0.75em;
    height: 0.75em;
    fill: currentColor;
}
.product-link:hover {
    background: #153a59;
    color: white;
}
/* Description card styling */
.product-description-card {
    background: #184969;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-description-card h2 {
    margin-top: 0;
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
	text-transform:uppercase;
}
.product-description-card .description {
    color: white;
    text-align: center;
}

/* Toggle button and product visibility controls */
.product-hidden {
    display: none !important;
}

.products-expanded .product-hidden {
    display: grid !important;
}

/* Toggle button container */
.toggle-products-container {
    text-align: center;
    margin: 30px 0;
    width: 100%;
    grid-column: 1 / -1; /* Span all columns in the grid */
    clear: both;
}

/* Toggle button styling with RED color */
.toggle-products-btn {
    background: #902C19;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-products-btn:hover, 
.toggle-products-btn:active, 
.toggle-products-btn:focus {
    background: #832716;
    color: white;
}

/* Add a small icon for the toggle button */
.toggle-products-btn::after {
    content: "";
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='white' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(90deg);
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.products-expanded .toggle-products-btn::after {
    transform: rotate(-90deg);
}

/* Show/hide text toggling */
.hide-text {
    display: none;
}

.products-expanded .show-text {
    display: none;
}

.products-expanded .hide-text {
    display: inline;
}

/* Product usps */
.product-usps {
	margin: 0px 0px 30px 0px;
}
.usp-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.usp-list li {
	padding: 5px 0;
	position: relative;
	padding-left: 25px;
	line-height: 1.4;
	text-align:left;
}
.usp-checkmark {
	color: #4CAF50; /* Green color */
	font-weight: bold;
	position: absolute;
	left: 0;
	font-size: 18px;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Ensure description card is in first column */
    .product-description-card {
        grid-column: 1;
    }
}
@media (max-width: 768px) {
    .toggle-products-btn {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .produktfilter {
        margin-bottom: 30px;
        padding: 15px 15px;
		border-radius: 0px;
    }
    
    .produktfilter .filter-content {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        grid-template-rows: auto auto; /* Two rows: one for labels, one for selects */
        gap: 5px 10px; /* Row gap 5px, column gap 10px */
        width: 100%;
    }
    
    /* Position first label in first column, first row */
    .produktfilter .filter-content label:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Position first select under first label */
    .produktfilter .filter-content select:nth-of-type(1) {
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Position second label in second column, first row */
    .produktfilter .filter-content label:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Position second select under second label */
    .produktfilter .filter-content select:nth-of-type(2) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .produktfilter label {
        margin-bottom: 3px;
        display: block;
    }
    
    .produktfilter .product-filter {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        font-size: 14px; /* Slightly smaller text for mobile */
        padding: 7px 5px 7px 8px; /* Smaller padding */
    }
    
    /* Keep the products grid as a single column */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-description-card {
        grid-column: 1;
    }
}