@import 'global.css';

/* .table-scroll.flexContainer.vert {
} */

.table-scroll {
	overflow-x: auto;
	width: 100%;
}
.table-scroll::-webkit-scrollbar {
	height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
	background: #555;
	border-radius: 4px;
}

/* Table layout */
.inventoryTable {
	min-width: 900px; /* or however wide your full table needs to be */
	width: max-content;
	border-collapse: collapse;
	margin-top: 2rem;
	background-color: #1e1e1e;
	color: #f0f0f0;
	font-family: 'Segoe UI', sans-serif;
	table-layout: fixed;
}

.inventoryTable th,
.inventoryTable td {
	padding: 0.75rem 1rem;
	border: 1px solid #333;
	text-align: left;
}

.inventoryTable th {
	background-color: #2a2a2a;
	color: #ff3c3c;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.inventoryTable tr:nth-child(even) {
	background-color: #252525;
}

/* Comprar button */
.btnBuy {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	background-color: #ff3c3c;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: background 0.2s ease-in-out;
}

.btnBuy:hover {
	background-color: #e63232;
}

/* Ver foto modal */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 15, 15, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal-content {
	background-color: #121212;
	padding: 1rem;
	border-radius: 8px;
	max-width: 90%;
	max-height: 90%;
	box-shadow: 0 0 15px rgba(255, 60, 60, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.modal-content img {
	max-width: 100%;
	max-height: 70vh;
	border: 1px solid #444;
	margin-bottom: 1rem;
}

.modal-content button {
	padding: 0.5rem 1rem;
	background-color: #ff3c3c;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}

.modal-content button:hover {
	background-color: #e63232;
}
