/*
Theme Name: SINEM Afrique
Template: astra
*/

/* === Brand tokens =========================================== */
:root {
	--sinem-teal:        #0e9488;   /* primary CTA / links / accents */
	--sinem-teal-dark:   #0a6e64;
	--sinem-green:       #16a34a;   /* secondary (badges, “in stock”) */
	--sinem-ink:         #0f172a;   /* primary text */
	--sinem-ink-soft:    #334155;
	--sinem-line:        #e2e8f0;
	--sinem-bg:          #ffffff;
	--sinem-bg-soft:     #f8fafc;

	--sinem-radius:      10px;
	--sinem-shadow:      0 1px 2px rgba(15, 23, 42, .04),
	                     0 4px 12px rgba(15, 23, 42, .04);
}

/* === Typography ============================================= */
body, .ast-container, .site-content,
.entry-title, .widget-title, .product_title,
button, input, select, textarea {
	font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--sinem-ink);
}

h1, h2, h3, h4 { letter-spacing: -.01em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }

a { color: var(--sinem-teal); }
a:hover, a:focus { color: var(--sinem-teal-dark); }

/* === Buttons (incl. WooCommerce) ============================ */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt {
	background: var(--sinem-teal) !important;
	color: #fff !important;
	border: none;
	border-radius: var(--sinem-radius);
	padding: .8em 1.4em;
	font-weight: 600;
	transition: background .15s ease;
}
.button:hover, button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover {
	background: var(--sinem-teal-dark) !important;
}

/* === Product cards ========================================== */
.woocommerce ul.products li.product {
	background: var(--sinem-bg);
	border: 1px solid var(--sinem-line);
	border-radius: var(--sinem-radius);
	padding: 1rem !important;
	box-shadow: var(--sinem-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.woocommerce ul.products li.product .price {
	color: var(--sinem-ink);
	font-weight: 600;
}
.woocommerce span.onsale {
	background: var(--sinem-green);
	border-radius: 999px;
	padding: .25em .75em;
}

/* === Header / nav ========================================== */
.site-header {
	background: var(--sinem-teal-dark);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .main-header-bar,
.site-header .ast-builder-html-element,
.site-header .site-title a,
.site-header .ast-menu-toggle,
.site-header .main-navigation a {
	color: #fff !important;
}
.site-header .main-navigation a:hover {
	color: rgba(255, 255, 255, .85) !important;
}
.site-header .custom-logo-link img {
	max-height: 56px;
	width: auto;
}

/* === Single product ======================================== */
.single-product div.product .product_title {
	font-size: 1.75rem;
	margin-bottom: .5rem;
}
.single-product .summary .price {
	color: var(--sinem-teal-dark);
	font-size: 1.5rem;
	font-weight: 700;
}

/* === Generous whitespace =================================== */
.site-content { padding: 2.5rem 0; }
.woocommerce ul.products { gap: 1.25rem; }

/* === Editorial commerce modules ============================ */
.entry-content .sinem-content-visual {
	margin: 2rem 0;
}

.entry-content .sinem-content-visual img {
	border-radius: 8px;
	box-shadow: var(--sinem-shadow);
}

.entry-content .sinem-content-visual figcaption {
	margin-top: .65rem;
	color: var(--sinem-ink-soft);
	font-size: .9rem;
}

.sinem-buying-hero,
.sinem-decision-grid,
.sinem-product-module,
.sinem-quote-panel {
	margin: 2.5rem 0;
}

.sinem-buying-hero {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
	gap: 1.25rem;
	align-items: stretch;
	border: 1px solid rgba(14, 148, 136, .18);
	border-radius: 8px;
	background: linear-gradient(135deg, #ecfeff 0%, #ffffff 45%, #f8fafc 100%);
	padding: 1.35rem;
	box-shadow: var(--sinem-shadow);
}

.sinem-buying-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sinem-buying-hero__copy p {
	margin: 0;
	color: var(--sinem-ink-soft);
	font-size: 1.05rem;
	line-height: 1.65;
}

.sinem-buying-hero__cards,
.sinem-step-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
}

.sinem-mini-card,
.sinem-step-card {
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	padding: .95rem;
}

.sinem-mini-card span,
.sinem-step-card span {
	display: block;
	margin-bottom: .45rem;
	color: var(--sinem-teal-dark);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sinem-mini-card strong {
	display: block;
	color: var(--sinem-ink);
	font-size: .96rem;
	line-height: 1.35;
}

.sinem-product-module {
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	padding: 1.4rem;
	box-shadow: var(--sinem-shadow);
}

.sinem-module-heading {
	max-width: 760px;
	margin-bottom: 1.25rem;
}

.sinem-eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: .55rem;
	color: var(--sinem-teal-dark);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sinem-module-heading h2,
.sinem-quote-panel h2 {
	margin: 0 0 .45rem;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.2;
}

.sinem-module-heading p,
.sinem-quote-panel p {
	margin: 0;
	color: var(--sinem-ink-soft);
}

.sinem-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.sinem-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--sinem-bg);
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.sinem-product-card:hover {
	transform: translateY(-2px);
	border-color: rgba(14, 148, 136, .35);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.sinem-product-card__image {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--sinem-bg-soft);
}

.sinem-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: .65rem;
}

.sinem-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: .9rem;
}

.sinem-product-card h3 {
	margin: 0 0 .65rem;
	font-size: .98rem;
	line-height: 1.3;
}

.sinem-product-card h3 a {
	color: var(--sinem-ink);
	text-decoration: none;
}

.sinem-product-card__price {
	margin: auto 0 .75rem;
	color: var(--sinem-teal-dark);
	font-weight: 800;
}

.sinem-product-card__link {
	display: inline-flex;
	align-items: center;
	width: max-content;
	color: var(--sinem-teal-dark);
	font-weight: 700;
	text-decoration: none;
}

.sinem-module-footer {
	margin: 1.1rem 0 0;
	font-weight: 700;
}

.sinem-decision-grid {
	border-top: 1px solid var(--sinem-line);
	border-bottom: 1px solid var(--sinem-line);
	padding: 1.5rem 0;
}

.sinem-step-card p {
	margin: 0;
	color: var(--sinem-ink-soft);
	line-height: 1.55;
}

.sinem-quote-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	border-radius: 8px;
	background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
	border: 1px solid rgba(14, 148, 136, .22);
	padding: 1.4rem;
}

.sinem-quote-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	justify-content: flex-end;
}

.sinem-button-primary,
.sinem-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 8px;
	padding: .75rem 1rem;
	font-weight: 800;
	text-decoration: none !important;
}

.sinem-button-primary {
	background: var(--sinem-teal);
	color: #fff !important;
}

.sinem-button-secondary {
	border: 1px solid var(--sinem-line);
	background: #fff;
	color: var(--sinem-ink) !important;
}

@media (max-width: 920px) {
	.sinem-buying-hero {
		grid-template-columns: 1fr;
	}

	.sinem-buying-hero__cards,
	.sinem-step-grid {
		grid-template-columns: 1fr;
	}

	.sinem-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sinem-quote-panel {
		grid-template-columns: 1fr;
	}

	.sinem-quote-panel__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.sinem-product-grid {
		grid-template-columns: 1fr;
	}
}

/* === Blog and article templates ============================ */
.sinem-blog-index,
.sinem-article-shell {
	width: 100%;
}

.sinem-blog-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 1.5rem;
	align-items: end;
	margin: 0 0 2rem;
	padding: 2rem;
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--sinem-shadow);
}

.sinem-blog-hero h1,
.sinem-article-header h1 {
	max-width: 850px;
	margin: 0;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(2.35rem, 5vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: 0;
	color: var(--sinem-ink);
}

.sinem-blog-hero p,
.sinem-article-deck {
	max-width: 720px;
	margin: 1rem 0 0;
	color: var(--sinem-ink-soft);
	font-size: 1.08rem;
	line-height: 1.7;
}

.sinem-blog-hero__panel,
.sinem-sidebar-panel {
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: var(--sinem-bg-soft);
	padding: 1.1rem;
}

.sinem-blog-hero__panel strong,
.sinem-sidebar-panel h2 {
	display: block;
	margin: 0 0 .5rem;
	color: var(--sinem-ink);
	font-size: 1rem;
	line-height: 1.35;
}

.sinem-blog-hero__panel p,
.sinem-sidebar-panel p {
	margin: 0 0 .85rem;
	color: var(--sinem-ink-soft);
	line-height: 1.6;
	font-size: .95rem;
}

.sinem-blog-layout,
.sinem-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2rem;
	align-items: start;
}

.sinem-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.sinem-post-card {
	overflow: hidden;
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--sinem-shadow);
}

.sinem-post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: #e6f7f5;
	text-decoration: none;
}

.sinem-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sinem-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--sinem-teal-dark);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sinem-post-card__body {
	padding: 1.15rem;
}

.sinem-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	align-items: center;
	margin-bottom: .8rem;
	color: #64748b;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sinem-post-meta span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 .55rem .12rem 0;
	border-radius: 999px;
	background: var(--sinem-teal);
}

.sinem-post-card h2 {
	margin: 0 0 .65rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.sinem-post-card h2 a,
.sinem-text-link {
	color: var(--sinem-ink);
	text-decoration: none;
}

.sinem-post-card h2 a:hover,
.sinem-text-link:hover {
	color: var(--sinem-teal-dark);
}

.sinem-post-card p {
	margin: 0 0 .9rem;
	color: var(--sinem-ink-soft);
	line-height: 1.62;
}

.sinem-text-link {
	font-weight: 800;
}

.sinem-blog-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .75rem 1rem;
	border-radius: 2px;
	background: var(--sinem-teal);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none;
}

.sinem-blog-button:hover {
	background: var(--sinem-teal-dark);
}

.sinem-blog-sidebar {
	position: sticky;
	top: 104px;
	display: grid;
	gap: 1rem;
}

.sinem-sidebar-panel {
	background: #fff;
}

.sinem-sidebar-panel ul {
	display: grid;
	gap: .65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sinem-sidebar-panel li a,
.sinem-sidebar-panel > a:not(.sinem-blog-button) {
	color: var(--sinem-teal-dark);
	font-weight: 700;
	text-decoration: none;
}

.sinem-sidebar-panel--teal {
	border-color: rgba(14, 148, 136, .24);
	background: #ecfeff;
}

.sinem-pagination {
	display: flex;
	gap: .5rem;
	margin-top: 2rem;
}

.sinem-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 .85rem;
	border: 1px solid var(--sinem-line);
	border-radius: 4px;
	background: #fff;
	color: var(--sinem-ink);
	text-decoration: none;
	font-weight: 700;
}

.sinem-pagination .current {
	background: var(--sinem-teal);
	color: #fff;
}

.sinem-breadcrumb {
	display: flex;
	gap: .45rem;
	align-items: center;
	margin: 0 0 1rem;
	color: #64748b;
	font-size: .9rem;
}

.sinem-breadcrumb a {
	color: var(--sinem-teal-dark);
	text-decoration: none;
	font-weight: 700;
}

.sinem-article-header {
	margin: 0 0 1.5rem;
}

.sinem-article-hero-image {
	margin: 0 0 2rem;
}

.sinem-article-hero-image img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: var(--sinem-shadow);
}

.sinem-article-hero-image figcaption,
.sinem-article-content figcaption {
	margin-top: .65rem;
	color: #64748b;
	font-size: .9rem;
}

.sinem-article-content {
	max-width: 820px;
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	padding: clamp(1.2rem, 3vw, 2.25rem);
	box-shadow: var(--sinem-shadow);
}

.sinem-article-content > *:first-child {
	margin-top: 0;
}

.sinem-article-content h1,
.sinem-article-content h2,
.sinem-article-content h3 {
	color: var(--sinem-ink);
	line-height: 1.2;
}

.sinem-article-content h2 {
	margin-top: 2rem;
	font-size: 1.65rem;
}

.sinem-article-content h3 {
	margin-top: 1.35rem;
	font-size: 1.18rem;
}

.sinem-article-content p,
.sinem-article-content li {
	color: var(--sinem-ink-soft);
	font-size: 1rem;
	line-height: 1.78;
}

.sinem-article-content a {
	color: var(--sinem-teal-dark);
	font-weight: 700;
}

.sinem-article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0;
	font-size: .95rem;
}

.sinem-article-content th,
.sinem-article-content td {
	border: 1px solid var(--sinem-line);
	padding: .75rem;
	text-align: left;
	vertical-align: top;
}

.sinem-article-content th {
	background: var(--sinem-bg-soft);
	color: var(--sinem-ink);
}

.sinem-article-content figure {
	margin: 1.5rem 0;
}

.sinem-article-content figure img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.sinem-article-footer {
	max-width: 820px;
}

.sinem-empty-state {
	border: 1px solid var(--sinem-line);
	border-radius: 8px;
	background: #fff;
	padding: 2rem;
}

@media (max-width: 980px) {
	.sinem-blog-hero,
	.sinem-blog-layout,
	.sinem-article-layout {
		grid-template-columns: 1fr;
	}

	.sinem-blog-sidebar {
		position: static;
	}
}

@media (max-width: 720px) {
	.sinem-blog-hero {
		padding: 1.25rem;
	}

	.sinem-post-grid {
		grid-template-columns: 1fr;
	}
}
