/* ============================================================
   EPOS Now Storefront Styles
   ============================================================ */

.en-store {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
}

/* Toolbar */
.en-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.en-search {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color .2s;
}
.en-search:focus { border-color: #4f46e5; }

.en-cart-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: #4f46e5;
	color: #fff !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}
.en-cart-count {
	background: #fff;
	color: #4f46e5;
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 12px;
	font-weight: 700;
}

/* Product Grid */
.en-products-grid {
	display: grid;
	gap: 20px;
}
.en-cols-2 { grid-template-columns: repeat(2, 1fr); }
.en-cols-3 { grid-template-columns: repeat(3, 1fr); }
.en-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.en-cols-2, .en-cols-3, .en-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.en-cols-2, .en-cols-3, .en-cols-4 { grid-template-columns: 1fr; }
}

.en-product-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.en-product-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.10);
	transform: translateY(-2px);
}

.en-product-img {
	aspect-ratio: 1 / 1;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.en-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.en-no-img {
	font-size: 48px;
	opacity: .35;
}

.en-product-info {
	padding: 14px 16px 16px;
}
.en-product-name {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.en-product-price {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #4f46e5;
}

/* Pagination */
.en-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}
#en-page-indicator { font-size: 14px; color: #6b7280; }

/* Buttons */
.en-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none !important;
	transition: background .15s, opacity .15s;
	text-align: center;
}
.en-btn:disabled { opacity: .6; cursor: default; }
.en-btn-primary {
	background: #4f46e5;
	color: #fff !important;
}
.en-btn-primary:hover:not(:disabled) { background: #4338ca; }
.en-btn-outline {
	background: #fff;
	color: #4f46e5 !important;
	border: 1.5px solid #4f46e5;
}
.en-btn-outline:hover:not(:disabled) { background: #eef2ff; }
.en-btn-full { width: 100%; display: block; }

/* Cart */
.en-section-title { margin-bottom: 20px; font-size: 22px; }

.en-cart-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}
.en-cart-table th,
.en-cart-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
}
.en-cart-table th { background: #f9fafb; font-weight: 600; }
.en-cart-table tr:last-child td { border-bottom: none; }

.en-qty-ctrl { display: flex; align-items: center; gap: 4px; }
.en-qty-btn {
	width: 28px; height: 28px;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex; align-items: center; justify-content: center;
}
.en-qty-input {
	width: 50px;
	text-align: center;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 4px;
	font-size: 14px;
}

.en-btn-remove {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 16px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
}
.en-btn-remove:hover { background: #fef2f2; }

.en-cart-footer {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.en-cart-total { font-size: 18px; }
.en-cart-total strong { color: #4f46e5; }
.en-cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.en-empty-cart { text-align: center; padding: 40px 0; }

/* Checkout */
.en-checkout-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}
@media (max-width: 768px) {
	.en-checkout-layout { grid-template-columns: 1fr; }
}

.en-checkout-form-wrap h3,
.en-order-summary h3 {
	font-size: 16px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.en-form-row { display: flex; gap: 16px; }
.en-form-row-2 > * { flex: 1; }
.en-form-group { margin-bottom: 16px; }
.en-form-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #374151; }
.en-required { color: #ef4444; }
.en-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	transition: border-color .2s;
}
.en-input:focus { border-color: #4f46e5; }
.en-textarea { resize: vertical; }

.en-order-summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
}
.en-summary-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.en-summary-list li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
}
.en-summary-list li:last-child { border-bottom: none; }
.en-sum-name { flex: 1; }
.en-sum-qty { color: #6b7280; white-space: nowrap; }
.en-sum-price { font-weight: 600; white-space: nowrap; }
.en-summary-total { font-size: 16px; margin-bottom: 16px; text-align: right; }
.en-summary-total strong { color: #4f46e5; font-size: 18px; }

.en-error-msg {
	color: #dc2626;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 12px;
}
.en-checkout-note { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 10px; }

/* Confirmation */
.en-confirmation-box {
	max-width: 540px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 20px;
}
.en-confirmation-icon {
	width: 72px; height: 72px;
	background: #d1fae5;
	color: #059669;
	font-size: 36px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 20px;
}
.en-confirmation-box h2 { font-size: 26px; margin-bottom: 10px; }
.en-confirmation-msg { color: #374151; margin-bottom: 8px; }
.en-transaction-id { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.en-confirmation-summary {
	text-align: left;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
}
.en-confirmation-summary h3 { margin-top: 0; font-size: 15px; }
.en-confirmation-email { font-size: 13px; color: #6b7280; margin-bottom: 24px; }

/* Utilities */
.en-loading { padding: 40px; text-align: center; color: #9ca3af; }
.en-empty   { padding: 40px; text-align: center; color: #9ca3af; }
.en-error   { padding: 20px; text-align: center; color: #dc2626; }
