/* ============================================================
   Brando WooCommerce — Main Stylesheet
   (Rename-safe: kono theme-specific string eke nite hobe na)
   ============================================================ */

:root {
	--brando-primary: #7c3aed;
	--brando-primary-dark: #5b21b6;
	--brando-accent: #f59e0b;
	--brando-text: #1f2937;
	--brando-text-light: #6b7280;
	--brando-bg: #ffffff;
	--brando-bg-alt: #f5f3ff;
	--brando-border: #e5e7eb;
	--brando-radius: 10px;
	--brando-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	--brando-container: 1200px;
}

/* ---- Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
	color: var(--brando-text);
	background: var(--brando-bg);
	line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--brando-primary); text-decoration: none; }
a:hover { color: var(--brando-primary-dark); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
}
.skip-link:focus {
	left: 10px; top: 10px;
	background: #fff;
	padding: 8px 16px;
	z-index: 100000;
}

.brando-container {
	max-width: var(--brando-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---- Buttons ---- */
.btn,
.btn-primary,
.btn-outline,
button,
.button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	padding: 10px 22px;
	border-radius: var(--brando-radius);
	border: 2px solid transparent;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-primary,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--brando-primary);
	color: #fff;
	border-color: var(--brando-primary);
}

.btn-primary:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--brando-primary-dark);
	border-color: var(--brando-primary-dark);
	color: #fff;
}

.btn-outline,
.woocommerce a.button.wc-forward {
	background: transparent;
	color: var(--brando-primary);
	border-color: var(--brando-primary);
}
.btn-outline:hover,
.woocommerce a.button.wc-forward:hover {
	background: var(--brando-primary);
	color: #fff;
}

/* ---- Header ---- */
.site-header {
	background: var(--brando-bg);
	border-bottom: 1px solid var(--brando-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	flex-wrap: wrap;
}

.site-branding { flex: 0 0 auto; }
.site-logo-text {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--brando-text);
	letter-spacing: -0.5px;
}

.main-nav { flex: 1 1 auto; }
.primary-menu-wrap ul {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-menu-wrap ul li { position: relative; }
.primary-menu-wrap ul li a {
	color: var(--brando-text);
	font-weight: 500;
	padding: 8px 0;
	display: block;
}
.primary-menu-wrap ul ul {
	display: none;
	position: absolute;
	background: #fff;
	box-shadow: var(--brando-shadow);
	border-radius: var(--brando-radius);
	padding: 8px 0;
	min-width: 190px;
	z-index: 10;
}
.primary-menu-wrap ul li:hover > ul { display: block; }

.menu-toggle { display: none; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-search .brando-search-form {
	display: flex;
	align-items: center;
}
.header-search .search-field {
	border: 1px solid var(--brando-border);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.9rem;
	width: 170px;
}

.header-cart {
	position: relative;
	font-size: 1.4rem;
	line-height: 1;
}
.cart-count {
	position: absolute;
	top: -8px;
	right: -12px;
	background: var(--brando-accent);
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 1px 6px;
	min-width: 18px;
	text-align: center;
}

/* ---- Hero ---- */
.hero {
	background: linear-gradient(135deg, var(--brando-bg-alt) 0%, #ede9fe 100%);
	padding: 70px 0;
	text-align: center;
}
.hero-title { font-size: 2.6rem; margin: 0 0 10px; }
.hero-desc { font-size: 1.15rem; color: var(--brando-text-light); margin: 0 0 24px; }

/* ---- Home sections ---- */
.home-section { padding: 48px 0; }
.home-section.alt { background: var(--brando-bg-alt); }
.section-title {
	font-size: 1.6rem;
	margin: 0 0 28px;
	text-align: center;
}

.category-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.category-card a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border: 1px solid var(--brando-border);
	border-radius: var(--brando-radius);
	padding: 18px 20px;
	font-weight: 600;
	color: var(--brando-text);
	transition: all 0.2s ease;
}
.category-card a:hover {
	border-color: var(--brando-primary);
	box-shadow: var(--brando-shadow);
	color: var(--brando-primary);
}
.category-count { font-size: 0.8rem; color: var(--brando-text-light); font-weight: 400; }

/* ---- Content layout ---- */
.content-area { padding: 30px 0; }
.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
}

.page-header {
	padding: 20px 0 0;
}
.page-title { font-size: 2rem; margin: 0 0 10px; }
.archive-description { color: var(--brando-text-light); }

.brando-breadcrumb {
	font-size: 0.85rem;
	color: var(--brando-text-light);
	padding-top: 20px;
}
.brando-breadcrumb a { color: var(--brando-text-light); }

/* ---- Post grid / cards ---- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.post-card {
	background: #fff;
	border: 1px solid var(--brando-border);
	border-radius: var(--brando-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}
.post-card:hover { box-shadow: var(--brando-shadow); }
.post-card-body { padding: 20px; }
.entry-title { font-size: 1.2rem; margin: 0 0 8px; }
.entry-title a { color: var(--brando-text); }
.entry-title a:hover { color: var(--brando-primary); }

.brando-entry-meta {
	display: flex;
	gap: 14px;
	font-size: 0.8rem;
	color: var(--brando-text-light);
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.read-more { font-weight: 600; font-size: 0.9rem; }

/* ---- Single post / page ---- */
.single-post .entry-header,
.entry-header { margin-bottom: 24px; }
.entry-content { font-size: 1.02rem; }
.entry-tags { margin-top: 24px; font-size: 0.9rem; }

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 30px 0;
	flex-wrap: wrap;
}

/* ---- Sidebar ---- */
.widget {
	background: #fff;
	border: 1px solid var(--brando-border);
	border-radius: var(--brando-radius);
	padding: 20px;
	margin-bottom: 20px;
}
.widget-title { font-size: 1.05rem; margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--brando-border); }

/* ---- Pagination ---- */
.nav-links,
.pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 30px 0;
}
.page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--brando-border);
	border-radius: 8px;
	color: var(--brando-text);
}
.page-numbers.current {
	background: var(--brando-primary);
	color: #fff;
	border-color: var(--brando-primary);
}

/* ---- Search form ---- */
.brando-search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}
.search-field {
	flex: 1;
	border: 1px solid var(--brando-border);
	border-radius: 8px;
	padding: 10px 14px;
}
.search-submit {
	border: none;
	background: var(--brando-primary);
	color: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
}

/* ---- Comments ---- */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
	border: 1px solid var(--brando-border);
	border-radius: var(--brando-radius);
	padding: 16px 20px;
	margin-bottom: 16px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	border: 1px solid var(--brando-border);
	border-radius: 8px;
	padding: 10px 14px;
}

/* ---- 404 ---- */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 .page-title { font-size: 5rem; color: var(--brando-primary); }
.error-actions { margin: 24px auto; max-width: 480px; }

/* ---- Footer ---- */
.site-footer {
	background: #1f2937;
	color: #d1d5db;
	margin-top: 50px;
	padding: 50px 0 0;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
	padding-bottom: 30px;
}
.footer-widgets .widget {
	background: transparent;
	border: none;
	padding: 0;
	color: inherit;
}
.footer-widgets .widget-title { color: #fff; }
.footer-widgets a { color: #d1d5db; }

.site-info {
	border-top: 1px solid #374151;
	padding: 20px 0;
	text-align: center;
	font-size: 0.88rem;
}
.footer-menu {
	display: flex;
	gap: 20px;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.layout-with-sidebar { grid-template-columns: 1fr; }

	.menu-toggle {
		display: block;
		background: none;
		border: 1px solid var(--brando-border);
		border-radius: 8px;
		padding: 8px 14px;
	}
	.primary-menu-wrap { display: none; width: 100%; }
	.primary-menu-wrap.toggled { display: block; }
	.primary-menu-wrap ul {
		flex-direction: column;
		gap: 0;
	}
	.primary-menu-wrap ul li a { padding: 12px 0; border-bottom: 1px solid var(--brando-border); }

	.hero-title { font-size: 2rem; }
}

@media (max-width: 600px) {
	.header-search .search-field { width: 120px; }
	.post-grid { grid-template-columns: 1fr; }
}
