/* === CARD REDESIGN STYLES === */
.hb-card-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #f3f4f6;
	padding: 0 0 48px 0;
}

/* Breadcrumb */
.hb-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.hb-breadcrumb a { color: #6b7280; text-decoration: none; transition: color .2s; }
.hb-breadcrumb a:hover { color: #111827; }
.hb-breadcrumb .sep { color: #d1d5db; font-size: 11px; }
.hb-breadcrumb .active { color: #111827; }

/* Admin buttons */
.hb-admin-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

/* Main product card */
.hb-main-card {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	border: 1px solid #f1f1f1;
	overflow: hidden;
}

.hb-product-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
	padding: 32px;
}
@media (max-width: 900px) {
	.hb-product-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === GALLERY === */
.hb-gallery { display: flex; flex-direction: column; gap: 16px; }

.hb-main-img-wrap {
	width: 100%;
	aspect-ratio: 4/3;
	background: #f3f4f6;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
}
.hb-main-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
	display: block;
}
.hb-main-img-wrap:hover img { transform: scale(1.04); }

.hb-category-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(6px);
	padding: 5px 12px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: .05em;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.hb-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}
.hb-thumbs::-webkit-scrollbar { display: none; }

.hb-thumb {
	flex-shrink: 0;
	width: 78px;
	height: 78px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: .65;
	transition: opacity .2s, border-color .2s;
	background: #f3f4f6;
	padding: 0;
}
.hb-thumb:hover { opacity: 1; }
.hb-thumb.active { border-color: #1e293b; opacity: 1; }
.hb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-thumb-add {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border: 2px dashed #d1d5db; background: #fafafa; color: #9ca3af; text-decoration: none;
	font-size: 10px; line-height: 1.3; text-align: center; gap: 3px; border-radius: 12px;
}
.hb-thumb-add i { font-size: 20px; }
.hb-thumb-add:hover { border-color: #f58021; color: #f58021; }

/* No images placeholder */
.hb-no-img {
	border: 2px dashed #d1d5db;
	border-radius: 16px;
	padding: 60px 20px;
	text-align: center;
	background: #fafafa;
}
.hb-no-img i { font-size: 52px; color: #d1d5db; display: block; margin-bottom: 12px; }
.hb-no-img p { color: #9ca3af; font-size: 14px; margin-bottom: 16px; }

/* === INFO COLUMN === */
.hb-info { display: flex; flex-direction: column; padding: 8px 0; }

.hb-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 6px;
}
.hb-title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: #111827;
	line-height: 1.25;
	margin: 0;
}
.hb-qr {
	flex-shrink: 0;
	padding: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hb-qr img { width: 64px; height: 64px; border-radius: 8px; display: block; }

.hb-price {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 900;
	color: #f58021;
	letter-spacing: -.5px;
	margin-bottom: 24px;
}

/* Specs summary */
.hb-specs-box {
	background: #f9fafb;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 28px;
	border: 1px solid #f1f1f1;
}
.hb-spec-row {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 12px;
	font-size: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
}
.hb-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.hb-spec-row:first-child { padding-top: 0; }
.hb-spec-label { color: #6b7280; font-weight: 500; }
.hb-spec-value { color: #111827; font-weight: 600; }
.hb-spec-value a { color: #1e293b; font-weight: 700; text-decoration: none; }
.hb-spec-value a:hover { text-decoration: underline; }

/* Action buttons */
.hb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.hb-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 700;
	cursor: pointer; border: none; text-decoration: none; transition: all .2s;
	white-space: nowrap;
}
.hb-btn-primary {
	background: #1e293b; color: #fff; flex: 1; justify-content: center;
	box-shadow: 0 2px 8px rgba(30,41,59,.2);
}
.hb-btn-primary:hover { background: #334155; box-shadow: 0 4px 16px rgba(30,41,59,.3); }
.hb-btn-icon {
	background: #fff; color: #374151; border: 1.5px solid #e5e7eb;
	padding: 13px 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.hb-btn-icon:hover { background: #f9fafb; }
.hb-btn-icon.active { background: #fff1f2; border-color: #fecaca; color: #ef4444; }
.hb-btn i { font-size: 18px; }

/* Footer stats */
.hb-card-footer {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid #f1f1f1;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.hb-share-btn {
	font-size: 13px; font-weight: 600; color: #1e293b; background: none;
	border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
	padding: 0; transition: color .2s;
}
.hb-share-btn:hover { color: #475569; }
.hb-stats {
	display: flex; align-items: center; gap: 16px;
	font-size: 12px; color: #9ca3af; font-weight: 600;
}
.hb-stat { display: flex; align-items: center; gap: 4px; }
.hb-stat i { font-size: 14px; }

/* === BOTTOM SECTION: TABS + SIDEBAR === */
.hb-bottom-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	margin-top: 24px;
}
@media (max-width: 900px) {
	.hb-bottom-grid { grid-template-columns: 1fr; }
}

/* Tabs card */
.hb-tabs-card {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	border: 1px solid #f1f1f1;
	overflow: hidden;
}
.hb-tab-nav {
	display: flex;
	border-bottom: 1px solid #f1f1f1;
	padding: 0 24px;
}
.hb-tab-btn {
	padding: 16px 24px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9ca3af;
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	transition: color .2s;
}
.hb-tab-btn:hover { color: #374151; }
.hb-tab-btn.active { color: #1e293b; }
.hb-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2px;
	background: #1e293b;
	border-radius: 2px 2px 0 0;
}

.hb-tab-content { padding: 24px 32px; display: none; }
.hb-tab-content.active { display: block; }

.hb-specs-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.hb-specs-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid #f1f1f1; vertical-align: top; }
.hb-specs-table tr:last-child td { border-bottom: none; }
.hb-specs-table .lbl { color: #6b7280; width: 35%; }
.hb-specs-table .val { color: #111827; font-weight: 600; }
.hb-specs-table .val a { color: #1e293b; text-decoration: none; font-weight: 700; }
.hb-specs-table .val a:hover { text-decoration: underline; }
.hb-price-val { font-size: 20px; font-weight: 900; color: #f58021; }

/* Seller tab */
.hb-seller-block { display: flex; align-items: center; gap: 20px; }
.hb-seller-avatar {
	width: 72px; height: 72px; border-radius: 50%;
	background: #facc15; color: #111827;
	display: flex; align-items: center; justify-content: center;
	font-size: 26px; font-weight: 900; flex-shrink: 0;
}
.hb-seller-name { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 4px; }
.hb-seller-name a { color: inherit; text-decoration: none; }
.hb-seller-name a:hover { color: #1e293b; text-decoration: underline; }
.hb-seller-sub { font-size: 13px; color: #9ca3af; margin-bottom: 10px; }
.hb-seller-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-badge-verified {
	background: #dcfce7; color: #166534;
	font-size: 11px; font-weight: 800;
	padding: 4px 10px; border-radius: 6px;
}
.hb-seller-link { font-size: 13px; color: #1e293b; font-weight: 700; text-decoration: none; }
.hb-seller-link:hover { text-decoration: underline; }
.hb-seller-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hb-seller-action-btn {
	font-size: 13px; font-weight: 600; color: #374151;
	border: 1.5px solid #e5e7eb; background: #fff;
	border-radius: 10px; padding: 8px 14px;
	cursor: pointer; text-decoration: none; transition: all .2s;
}
.hb-seller-action-btn:hover { background: #f3f4f6; }

/* Sidebar: recently viewed */
.hb-sidebar {}
.hb-sidebar-title {
	font-size: 11px; font-weight: 800; color: #111827;
	text-transform: uppercase; letter-spacing: .07em;
	margin-bottom: 14px; padding-left: 4px;
}
.hb-views-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-view-item a {
	display: flex; gap: 14px; align-items: center;
	background: #fff; padding: 12px;
	border-radius: 16px; border: 1px solid #f1f1f1;
	text-decoration: none; transition: border-color .2s;
}
.hb-view-item a:hover { border-color: #1e293b; }
.hb-view-img {
	width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
	flex-shrink: 0; background: #f3f4f6;
}
.hb-view-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-view-caption h5 {
	font-size: 13px; font-weight: 700; color: #111827;
	margin: 0 0 6px 0; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-views-placeholder {
	background: #f9fafb; border: 2px dashed #e5e7eb; border-radius: 16px;
	padding: 24px; text-align: center; color: #9ca3af; font-size: 13px;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hb-views-placeholder i { font-size: 24px; }

/* May also like */
.hb-may-like { margin-top: 32px; }
.hb-section-title { font-size: 20px; font-weight: 800; color: #111827; margin-bottom: 18px; }
.hb-may-like-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 768px) { .hb-may-like-grid { grid-template-columns: repeat(2, 1fr); } }

.hb-may-like-card a {
	display: flex; flex-direction: column; background: #fff;
	border-radius: 14px; border: 1px solid #f1f1f1; overflow: hidden;
	text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.hb-may-like-card a:hover { border-color: #1e293b; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.hb-may-like-img { height: 120px; background: #f3f4f6; overflow: hidden; }
.hb-may-like-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hb-may-like-card a:hover .hb-may-like-img img { transform: scale(1.06); }
.hb-may-like-info { padding: 10px 12px 12px; }
.hb-may-like-info h5 { font-size: 13px; font-weight: 700; color: #111827; margin: 0; line-height: 1.3; }

/* Share section */
.hb-share-section { margin: 0 0 8px 0; }
.hb-share-label { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 8px; }

/* === CART MODAL === */
.hb-cart-modal-backdrop {
	display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(15,23,42,.6); backdrop-filter: blur(4px);
	z-index: 9999; align-items: center; justify-content: center;
	padding: 30px 16px;
}
.hb-cart-modal-backdrop.open { display: flex; }
.hb-cart-modal {
	position: relative; background: #fff; width: 100%; max-width: 500px;
	margin: auto; border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
}
.hb-cart-modal-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 24px; border-bottom: 1px solid #f1f1f1;
}
.hb-cart-modal-title-wrap { display: flex; align-items: center; gap: 10px; }
.hb-cart-modal-icon {
	width: 38px; height: 38px; border-radius: 50%; background: #facc15;
	display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.hb-cart-modal-title { font-size: 17px; font-weight: 800; color: #111827; }
.hb-cart-modal-close {
	width: 34px; height: 34px; border-radius: 50%; border: none; background: none;
	cursor: pointer; color: #9ca3af; font-size: 18px; display: flex; align-items: center; justify-content: center;
	transition: all .2s;
}
.hb-cart-modal-close:hover { background: #fff1f2; color: #ef4444; }

/* Product preview inside modal */
.hb-cart-product-preview {
	display: flex; gap: 14px; align-items: center;
	background: #f9fafb; border-radius: 14px;
	padding: 14px; margin: 20px 24px 0;
	border: 1px solid #f1f1f1;
}
.hb-cart-product-img {
	width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.hb-cart-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-cart-product-info { flex: 1; min-width: 0; }
.hb-cart-product-name {
	font-size: 14px; font-weight: 700; color: #111827;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	margin-bottom: 4px;
}
.hb-cart-product-price { font-size: 15px; font-weight: 900; color: #f58021; }
.hb-cart-product-unit { font-size: 12px; color: #9ca3af; font-weight: 500; }

/* Quantity control */
.hb-cart-modal-body { padding: 20px 24px 24px; }
.hb-qty-label { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.hb-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hb-qty-control {
	display: flex; align-items: center; gap: 0;
	border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden;
}
.hb-qty-btn {
	width: 40px; height: 40px; border: none; background: #f9fafb;
	font-size: 18px; font-weight: 700; color: #374151;
	cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.hb-qty-btn:hover { background: #e5e7eb; }
.hb-qty-input {
	width: 54px; height: 40px; border: none; border-left: 1.5px solid #e5e7eb; border-right: 1.5px solid #e5e7eb;
	text-align: center; font-size: 16px; font-weight: 800; color: #111827;
	background: #fff; outline: none;
}
.hb-discount-badge {
	background: #dcfce7; color: #16a34a;
	font-size: 12px; font-weight: 800;
	padding: 5px 12px; border-radius: 8px;
}

.hb-cart-form-group { margin-bottom: 14px; }
.hb-cart-form-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.hb-cart-form-control {
	width: 100%; background: #f9fafb; border: 1.5px solid #e5e7eb;
	border-radius: 12px; padding: 11px 15px; font-size: 14px; color: #111827;
	transition: all .2s; box-sizing: border-box;
}
.hb-cart-form-control:focus { outline: none; border-color: #1e293b; background: #fff; }
textarea.hb-cart-form-control { resize: none; }

/* Total + submit */
.hb-cart-modal-footer {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 24px 24px; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid #f1f1f1; margin-top: 4px;
}
.hb-cart-total-wrap {}
.hb-cart-total-label { font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 2px; }
.hb-cart-total-price { font-size: 22px; font-weight: 900; color: #f58021; }
.hb-cart-total-old { font-size: 13px; color: #9ca3af; text-decoration: line-through; margin-left: 6px; }
.hb-cart-submit-btn {
	background: #1e293b; color: #fff; border: none; border-radius: 12px;
	padding: 13px 24px; font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background .2s; display: flex; align-items: center; gap: 8px;
	white-space: nowrap;
}
.hb-cart-submit-btn:hover { background: #334155; }

/* Not found */
.hb-empty-state {
	text-align: center; padding: 80px 20px;
	background: #fff; border-radius: 24px; border: 1px solid #f1f1f1;
}
.hb-empty-state i { font-size: 60px; color: #d1d5db; display: block; margin-bottom: 20px; }
.hb-empty-state p { font-size: 18px; color: #6b7280; margin-bottom: 20px; }

/* Loading spinners */
.hb-spinner { text-align: center; padding: 20px; color: #9ca3af; font-size: 24px; }
	.hb-share-copy-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: #1e293b;
    background: #f1f5f9; border: 1.5px solid #e5e7eb;
    border-radius: 10px; padding: 8px 16px;
    cursor: pointer; transition: all .2s;
}
.hb-share-copy-btn:hover { background: #e2e8f0; }
.hb-share-copy-btn.copied { background: #dcfce7; border-color: #bbf7d0; color: #16a34a; }/* catalog-item.css */
.hb-qr img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}.hb-qr {
    overflow: visible;
}.hb-qr img {
    border-radius: 0;
}