
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

.badge-wa {
	background:url('wa.webp') no-repeat center left 10px;
	background-size:contain;
	background-color:#28c96c;
	color:#fff;
	padding:5px 20px 5px 45px;
	border-radius:30px;
}
.badge-shopee {
	background:url('shopee.webp') no-repeat center left 10px;
	background-size:contain;
	background-color:#ef4b2f;
	color:#fff;
	padding:5px 20px 5px 45px;
	border-radius:30px;
}
body {
	background-color: #f4f6f9;
	color: #333;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* Header / Navbar (Fullwidth Background + Inner Max-Width 1200px) */
header {
	background-color: #ffffff;
	border-bottom: 1px solid #e1e4e8;
	width: 100%;
}
.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}
.logo-area {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	color: #1e3a8a;
	font-size: 1.1rem;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 0.95rem;
	flex-wrap: wrap;
}
.badge-wa { font-weight: 500; }
.badge-shopee { font-weight: 500; }

/* Hero Banner */
.hero {
	background-color: #e2e8f0;
	text-align: center;
	border-bottom: 1px solid #cbd5e1;
}
.hero h1 { 
	font-size: 1.8rem; color: #1e293b; 
	background:url('banner-164.webp') no-repeat center center;
	background-size:cover;
	padding: 50px 20px;
}

/* Main Container */
.container {
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
	flex: 1;
	width: 100%;
}
.section-title {
	text-align: center;
	font-size: 1.4rem;
	color: #1e293b;
	margin-bottom: 25px;
	font-weight: bold;
}

/* Loading Layout */
#global-loading {
	text-align: center;
	padding: 50px;
	font-size: 1.1rem;
	color: #64748b;
}
.app-content {
	display: none;
}

/* Filter Section Full 1 Baris */
.filter-full-bar {
	margin-bottom: 25px;
	width: 100%;
}
.filter-full-bar label {
	display: block;
	font-size: 0.85rem;
	color: #64748b;
	margin-bottom: 8px;
	font-weight: bold;
}
.select2-container { width: 100% !important; }
.select2-search--dropdown { display: none !important; }
.select2-selection--multiple {
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	min-height: 42px !important;
	padding: 4px !important;
}

/* Product Grid */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}
.product-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.2s;
	cursor: pointer;
}
.product-card:hover { transform: translateY(-3px); }
.product-img {
	width: 100%;
	height: 140px;
	background-color: #cbd5e1;
	object-fit: cover;
}
.product-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.product-title { font-size: 0.85rem; font-weight: bold; color: #1e293b; margin-bottom: 4px; }
.product-desc { font-size: 0.75rem; color: #64748b; margin-bottom: 10px; flex-grow: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 0.85rem; font-weight: bold; color: #0f172a; }
.btn-buy {
	background-color: #1e3a8a;
	color: white;
	border: none;
	padding: 5px 10px;
	font-size: 0.75rem;
	border-radius: 4px;
	cursor: pointer;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-bottom: 50px;
	font-size: 0.9rem;
}
.pagination button {
	padding: 6px 12px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
	border-radius: 4px;
	cursor: pointer;
}
.pagination button.active {
	background: #1e3a8a;
	color: #fff;
	border-color: #1e3a8a;
}
.pagination button:hover:not(.active):not(:disabled) {
	background: #f1f5f9;
}
.pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Footer (Fullwidth Background + Inner Max-Width 1200px) */
footer {
	background-color: #ffffff;
	border-top: 1px solid #e1e4e8;
	width: 100%;
	margin-top: auto;
}
.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}
.footer-left {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.footer-logo {
	font-weight: bold;
	color: #1e3a8a;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 8px;
}
.footer-copy {
	font-size: 0.85rem;
	color: #64748b;
}
.footer-links {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
	font-size: 0.9rem;
	font-weight: 500;
}
.footer-links a:hover {
	color: #2563eb;
}

/* Modal Popup 3D View (Ramping) */
.modal-overlay {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	padding: 15px;
}
.modal-container {
	background: #ffffff;
	width: 420px;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-close {
	position: absolute;
	top: 10px; right: 10px;
	background: rgba(255, 255, 255, 0.8);
	border: none;
	width: 28px; height: 28px;
	border-radius: 50%;
	font-size: 1rem;
	cursor: pointer;
	color: #1e293b;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-top-3d {
	width: 100%;
	background: #1e293b;
	position: relative;
	height: 300px;
}
#canvas-container {
	width: 100%;
	height: 100%;
}
/* Styling Thumbnail Preview di Modal sebelum STL Loaded */
#preview-thumb {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 5;
	transition: opacity 0.3s ease;
}
.loading-text {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 0.85rem;
	pointer-events: none;
	z-index: 10;
}

.modal-bottom-details {
	width: 100%;
	padding: 20px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.modal-price { 
	font-size: 1.3rem; 
	font-weight: bold; 
	color: #0f172a; 
	text-align: center;
}

/* ACTION BUTTONS SEJAJAR */
.action-buttons {
	display: flex;
	flex-direction: row; /* Berjajar horizontal */
	justify-content: space-between; /* Memberi jarak rata */
	gap: 10px;
}
.btn-wa-modal {
	font-weight: bold;
	font-size: 0.75rem; /* Disesuaikan agar pas di perangkat mobile */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	flex: 1; /* Lebar fleksibel sama rata */
	background-color: #28c96c;
	color: #fff;
	padding: 10px;
	border-radius: 30px;
	text-align: center;
}
.btn-shopee-modal {
	font-weight: bold;
	font-size: 0.75rem; /* Disesuaikan agar pas di perangkat mobile */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	flex: 1; /* Lebar fleksibel sama rata */
	background-color: #ef4b2f;
	color: #fff;
	padding: 10px;
	border-radius: 30px;
	text-align: center;
}
.btn-shopee-modal img, .btn-wa-modal img { height: 30px; margin-top: -5px;  }
.modal-title {
	text-align: center;
	font-size: 1.3rem;
	color: #64748b;
}

.catalog-description {
	font-size: 0.95rem;
	color: #475569;
	margin-bottom: 15px;
	text-align: left;
	line-height: 1.6;
	text-align:center;
}

@media (max-width: 768px) {
	.modal-top-3d { height: 250px; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}