/**** grid ****/
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /*gap: 20px;*/
  
  
  max-width: 1800px; /*1000px*/
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  
  /*border: 1px solid red;*/ 
}

.col-top-left img {
	width: 100px;  /* resize to 100px on desktop */
}
 
.col-top-right {
	display: flex;             /* make it a flex container */
	justify-content: flex-end; /* right-align the content */
	align-items: center;       /* vertically center items */
	gap: 0.5rem;               /* space between buttons */
	flex-wrap: nowrap;          /* prevent wrapping to next line */
	text-align: right;         
	padding-right: 10px;
	/*border: 1px solid red;*/     /* optional for debugging */
}

/**** top grid ****/
.responsive-top-grid {
	display: grid;
	grid-template-columns: 2fr 4fr; /* desktop: left / right   */
	grid-template-rows: auto;
	gap: 0px;
	align-items: center;
	/*border: 1px solid cyan;*/  /* optional for debugging */
	min-width: 300px;
}


.col-top-left {
	display: flex;
	justify-content: flex-start; /* left-align the content */
	align-items: center;         /* vertically center items */
	/*gap: 0.5rem;*/                 /* spacing between elements */
	flex-wrap: nowrap;            /* keep everything on one line */
	text-align: left;
	padding-left: 10px;
	/*border: 1px solid red;*/   /* optional for debugging */     
}


.responsive-in-right-grid {
	display: grid;
	grid-template-rows: auto;   /* 1 row, height auto */
	grid-template-columns: 1fr; /* 1 column, full width */
	gap: 0px;
	align-items: center;
	/*border: 1px solid olive;*/ /* optional for debugging */
	width:100%; /*important*/ 
}

.row-top {
}

.row-bottom {
	margin-bottom: 0px;
}


/**** bottom grid ****/
.responsive-bottom-grid {
	display: grid;
	grid-template-columns: 1fr; /* navigation */
	grid-template-rows: auto;
	gap: 0px;
	align-items: center;
	/*border: 1px solid black;*/ /* optional for debugging */ 
	min-width: 300px;
}

.col-bottom {
	/*grid-column: 1 / -1;*/  /* start at the first column and span to the last one */
	padding: 0px;
	margin: 0px;
	/*border: 1px solid green;*/  /* optional for debugging */
}

/***** products in grid ******/
.product-card-grid {
  background: #fff;
  margin: 10px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  

}

.product-card-grid img { 
	max-width: 100%; 
	border-radius: 6px; 
}

.product-card-grid button { 
	margin-top: 10px; 
}



.product-card-grid button {
  background: #0078e7;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.product-card-grid button:hover {
  background: #005bb5;
}

.product-card-grid p {
  margin: 0px;
  padding: 0px;
}




/*********** responsive 1076px **************/
@media (max-width: 1076px) {
	
	.responsive-top-grid {
		grid-template-columns: 1fr 5fr; /* desktop: left / right   */
	}
	
	.grid-container { 
		grid-template-columns: repeat(2, 1fr); 
	}
}

/*********** responsive 768px **************/
@media (max-width: 768px) {

	.grid-container { 
	  grid-template-columns: 1fr; 
	}
		
	.col-top-left {
		padding-left: 4px;
	}	
	
	.col-top-right {
		padding-right: 4px;
	}
		
}

/*********** responsive 480px **************/
@media (max-width: 480px) {


	.col-top-left {
		padding-left: 2px;
	}	
	
	.col-top-left img {
		width: 60px;  /* resize to 60px on mobile */
	}
	
	.col-top-right {
		padding-right: 2px;
	}
	

	.row-top {
		margin-top: 4px;
	}
		  
	.row-bottom {
		margin-bottom: 4px;
	}
				
}
