/* Product Modal Styles */
.product-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	padding: 10px;
}

.product-modal.active {
	display: block;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

.modal-content {
	position: relative;
	max-width: 1200px;
	margin: 50px auto;
	background: #fff;
	border-radius: 8px;
	z-index: 10001;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
}

.modal-content::-webkit-scrollbar {
	width: 8px;
}

.modal-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 0 8px 8px 0;
}

.modal-content::-webkit-scrollbar-thumb {
	background: #d4af37;
	border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
	background: #b8941f;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 36px;
	color: #333;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10002;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}

.modal-close:hover {
	color: #000;
}

.modal-body {
	padding: 30px;
	display: flex;
	gap: 30px;
	align-items: center;
}

.modal-images {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 45%;
}

.modal-image {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.modal-details {
	text-align: left;
	flex: 1;
}

.modal-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
	margin-top: 0;
	color: #222;
	font-family: 'Cormorant Garamond', serif;
	text-align: left;
}

.modal-content-row {
	display: flex;
	gap: 30px;
}

.modal-col-left {
	padding-right: 0;
	flex: 0 0 45%;
	display: flex;
	flex-direction: column;
}

.modal-col-right {
	padding-left: 0;
	flex: 1;
}

.modal-description {
	font-size: 16px;
	line-height: 1.8;
	color: #666;
}

.modal-description p {
	margin-bottom: -4px !important;
}

.modal-description strong {
	color: #333;
}

/* Size-Weight Table Styles */
.size-weight-table {
	padding: 0;
	background: transparent;
	border-radius: 0;
	border: none;
}

.table-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
	margin-top: 0;
	font-family: 'Cormorant Garamond', serif;
}

.specs-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.specs-table thead th {
	padding: 10px 15px;
	text-align: left;
	font-weight: 600;
	font-size: 15px;
	color: #fff;
	background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.specs-table tbody td {
	padding: 10px 15px;
	font-size: 14px;
	color: #555;
	border-bottom: 1px solid #f0f0f0;
}

.specs-table tbody tr:last-child td {
	border-bottom: none;
}

.specs-table tbody tr:hover {
	background-color: #f9f9f9;
}

.size-badge {
	font-weight: 600;
	color: #cb8161;
}

.weight-value {
	color: #333;
}

.product-clickable {
	transition: transform 0.3s, box-shadow 0.3s;
}

.product-clickable:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
	.modal-content {
		margin: 20px;
		max-height: 95vh;
	}
	
	.modal-body {
		padding: 20px;
	}
	
	.modal-content-row {
		flex-direction: column;
		gap: 20px;
	}
	
	.modal-col-left {
		flex: 0 0 auto;
		width: 100%;
	}
	
	.modal-col-right {
		width: 100%;
	}
	
	.modal-title {
		font-size: 24px;
	}
	
	.specs-table thead th,
	.specs-table tbody td {
		padding: 8px 12px;
		font-size: 13px;
	}
	
	.table-title {
		font-size: 18px;
	}
}
