/* BioBrick Pharma – WooCommerce archive + single (mobile first) */
.bb-shop {
	--bb-navy: #123963;
	--bb-navy-dark: #092849;
	--bb-teal: #008f91;
	--bb-mint: #e9f7f6;
	--bb-slate: #4d6074;
	--bb-line: #e0ebef;
	--bb-white: #ffffff;
	/* Sticky sidebar ka top gap: Betheme sticky header + admin bar ki height ke hisaab se badlein */
	--bb-sticky-top: 110px;

	background: var(--bb-mint);
	padding: 60px 0 50px !important;
	overflow: visible !important; /* sticky ke liye zaroori */
}
.bb-shop .content_wrapper {
	overflow: visible !important;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	float: none;
}
.bb-shop *, .bb-shop *::before, .bb-shop *::after { box-sizing: border-box; }
.bb-shop ul { list-style: none; margin: 0; padding:0 0 3px; }

/* ---------- Layout ---------- */
.bb-layout { display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; }

/* ---------- Sidebar ---------- */
.bb-widget { background: var(--bb-white); border: 1px solid var(--bb-line); border-radius: 10px; overflow: hidden; }
.bb-widget__title {
	margin: 0; padding: 18px 16px; text-align: center;
	background: var(--bb-navy); color: var(--bb-white); font-size: 20px; font-weight: 700;
}
.bb-catlist li { border-bottom: 1px solid var(--bb-line); }
.bb-catlist li:last-child { border-bottom: 0; }
.bb-catlist a { display: block; padding: 16px 28px; color: var(--bb-navy-dark); font-size: 16px; text-decoration: none; transition: background .2s, color .2s; }
.bb-catlist a:hover { background: var(--bb-mint); color: var(--bb-teal); }
.bb-catlist .is-active a { background: var(--bb-teal); color: var(--bb-white); }

/* ---------- Archive grid ---------- */
.bb-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bb-card {
	position: relative; display: flex; justify-content: space-between; gap: 16px;
	background: var(--bb-white); border: 1px solid var(--bb-line); border-radius: 10px; padding: 24px;
	box-shadow: 0 2px 10px rgba(18, 57, 99, .07); margin: 0; width: auto; float: none;
	transition: box-shadow .2s, transform .2s;
}
.bb-card:hover { box-shadow: 0 8px 22px rgba(18, 57, 99, .14); transform: translateY(-2px); }
.bb-card__link { position: absolute; inset: 0; z-index: 2; }
.bb-card__body { flex: 1 1 auto; min-width: 0; padding-right:30px;}
.bb-card__title { margin: 0 0 14px; color: var(--bb-teal) !important ; font-size: 20px !important; font-weight: 700; line-height: 1.25; }
.bb-card__body p { margin: 0 0 10px !important; color: var(--bb-slate) !important; font-size: 16px; line-height: 1.6; }
.bb-card__body strong { color: var(--bb-navy-dark); }
.bb-card__media { position: relative; flex: 0 0 130px; width: 130px; padding-top: 28px; }
.bb-card__media img { display: block; width: 100%; height: auto; border-radius: 4px; }
.bb-badge {
	position: absolute; top: 0; right: 0; z-index: 1; white-space: nowrap;
	background: var(--bb-navy); color: var(--bb-white); font-size: 12px; line-height: 1;
	padding: 7px 14px; border-radius: 20px;
}

/* ---------- Load more ---------- */
.bb-loadmore-wrap { margin-top: 30px; text-align: center; }
.bb-loadmore { min-width: 180px; border: 0; cursor: pointer; }
.bb-loadmore.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Pagination (noscript fallback) ---------- */
.bb-pagination { margin-top: 30px; text-align: center; }
.bb-pagination .page-numbers { display: inline-flex; gap: 6px; }
.bb-pagination .page-numbers li { margin: 0; }
.bb-pagination a.page-numbers, .bb-pagination span.page-numbers {
	display: inline-block; min-width: 38px; padding: 8px 12px; border: 1px solid var(--bb-line);
	border-radius: 6px; background: var(--bb-white); color: var(--bb-navy-dark); text-decoration: none;
}
.bb-pagination .current, .bb-pagination a:hover { background: var(--bb-navy); color: var(--bb-white); border-color: var(--bb-navy); }

/* ---------- Single product ---------- */
.bb-content { min-width: 0; }
.bb-top { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.bb-gallery img { display: block; width: 100%; height: auto; }
.bb-details {
	background: var(--bb-white); border: 2px solid var(--bb-line); border-radius: 14px; padding: 24px;
}
.bb-details__title { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--bb-line); color: var(--bb-navy); font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.bb-row { padding: 16px 0; border-bottom: 1px solid var(--bb-line); font-size: 17px; line-height: 1.5; color: var(--bb-slate); }
.bb-row strong { font-weight: 700; color: var(--bb-navy-dark); }
.bb-row--cta { text-align: center; border-bottom: 0; padding-bottom: 6px; }
.bb-btn {
	display: inline-block; padding: 16px 28px; background: var(--bb-navy); color: var(--bb-white) !important;
	font-size: 15px; border-radius: 4px; text-decoration: none; transition: background .2s;
}
.bb-btn:hover { background: var(--bb-navy-dark); }
.bb-share { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.bb-share a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%; background: var(--bb-navy);
	transition: background .2s, transform .2s;
}
.bb-share a:hover { background: var(--bb-teal); transform: translateY(-2px); }

/* ---------- Tabs (Description / Additional Content) ---------- */
.bb-tabs { margin-top: 40px; }
.bb-tabs__nav {
	display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border-bottom: 2px solid var(--bb-line); white-space: nowrap;
}
.bb-tabs__nav li { margin: 0; }
.bb-tabs__btn {
	padding: 14px 26px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
	background: transparent; color: var(--bb-slate); font-size: 17px; font-weight: 600; cursor: pointer;
	transition: color .2s, border-color .2s, background .2s;
}
.bb-tabs__btn:hover { color: var(--bb-teal); }
.bb-tabs__btn.is-active { color: var(--bb-navy); border-bottom-color: var(--bb-teal); background: var(--bb-white); }
.bb-tabs__panel {
	display: none; padding: 28px; background: var(--bb-white);
	border: 1px solid var(--bb-line); border-top: 0; border-radius: 0 0 10px 10px;
	color: var(--bb-slate); font-size: 16px; line-height: 1.75;
}
.bb-tabs__panel.is-active { display: block; }
.bb-tabs__panel h2, .bb-tabs__panel h3, .bb-tabs__panel h4 { color: var(--bb-navy); margin: 0 0 12px; }
.bb-tabs__panel p { margin: 0 0 14px; }
.bb-tabs__panel ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.bb-tabs__panel ol { padding-left: 22px; margin: 0 0 14px; }
.bb-tabs__panel img { max-width: 100%; height: auto; }
.bb-tabs__panel table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.bb-tabs__panel th, .bb-tabs__panel td { padding: 10px 12px; border: 1px solid var(--bb-line); text-align: left; }
.bb-tabs__panel th { background: var(--bb-mint); color: var(--bb-navy-dark); }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
	.bb-layout--archive { grid-template-columns: 260px 1fr; align-items: start; }
	.bb-layout--single { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
	.bb-grid { grid-template-columns: repeat(2, 1fr); }

	/* Sticky sidebar (tablet + desktop) */
	.bb-sidebar { position: sticky; top: var(--bb-sticky-top); align-self: start; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
	.bb-layout--archive { grid-template-columns: 300px 1fr; gap: 32px; }
	.bb-layout--single { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
    .bb-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 480px) {
	.bb-card { padding: 18px; }
	.bb-card__media { flex-basis: 100px; width: 100px; }
	.bb-card__title { font-size: 18px; }
	.bb-details { padding: 18px; }
	.bb-details__title { font-size: 22px; }
	.bb-row { font-size: 16px; }
	.bb-share a { width: 48px; height: 48px; }
	.bb-btn { display: block; }
	.bb-tabs__btn { padding: 12px 18px; font-size: 16px; }
	.bb-tabs__panel { padding: 18px; }
}

/* ---------- Additional Information (attributes table) ---------- */
.bb-tabs__panel table.woocommerce-product-attributes { display: table; width: 100%; max-width: 720px; border: 1px solid var(--bb-line); }
.bb-tabs__panel .woocommerce-product-attributes th { width: 35%; background: var(--bb-mint); color: var(--bb-navy-dark); font-weight: 700; }
.bb-tabs__panel .woocommerce-product-attributes td { color: var(--bb-slate); }
.bb-tabs__panel .woocommerce-product-attributes td p { margin: 0; }
@media (max-width: 480px) {
	.bb-tabs__panel .woocommerce-product-attributes th { width: 40%; }
}
