/* Rakam Products — archive/category grid, single product page, Enquire Now
   popup. Swap the hex values below for the exact brand colors if they
   differ (picked as close approximations from the reference design). */

:root {
	--rakam-red: #e2231a;
	--rakam-red-dark: #c31d15;
	--rakam-navy: #14224d;
	--rakam-navy-dark: #0d1836;
	--rakam-border: #ddd;
	--rakam-dashed: #cfd3da;
	--rakam-gray-bg: #f5f5f5;
}

/* Width wrapper — deliberately NOT reusing a theme layout class (e.g.
   Astra's .ast-container), which can pull our markup into the theme's
   sidebar grid. */
.rakam-products-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}
.single-product .content-area {
    margin-top: 1rem;
}
.tax-product_cat .content-area {
    margin-top: 0rem;
}
/* -------------------------------------------------------------------- */
/* Hero (archive + category pages)                                      */
/* -------------------------------------------------------------------- */
.rakam-products-hero {
	background: var(--rakam-navy);
	padding: 50px 0;
}

.rakam-products-title {
	color: #fff;
	font-size: 34px;
	margin: 0 0 8px;
}

.rakam-products-tagline {
	color: rgba(255, 255, 255, .8);
	margin: 0;
}

/* -------------------------------------------------------------------- */
/* Category quick-links                                                 */
/* -------------------------------------------------------------------- */
.rakam-products-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 40px 0 30px;
}

.rakam-products-cat-nav a {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--rakam-border);
	border-radius: 30px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: all .2s ease;
}

.rakam-products-cat-nav a:hover,
.rakam-products-cat-nav a.is-active {
	background: var(--rakam-navy);
	border-color: var(--rakam-navy);
	color: #fff;
}

/* -------------------------------------------------------------------- */
/* Product card grid — archive, category, and Related Products           */
/* -------------------------------------------------------------------- */
.rakam-products-archive-wrap {
	padding: 20px 0 60px;
}

.rakam-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.rakam-product-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.rakam-product-thumb {
	position: relative;
	border: 1px dashed var(--rakam-dashed);
	border-radius: 10px;
	padding: 26px;
	box-sizing: border-box;
	height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease;
}

.rakam-product-card:hover .rakam-product-thumb {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.rakam-product-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.rakam-product-readmore {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 14px;
	background: var(--rakam-red);
	color: #fff;
	text-align: center;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	border-radius: 4px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.rakam-product-card:hover .rakam-product-readmore,
.rakam-product-card:focus-visible .rakam-product-readmore {
	opacity: 1;
	transform: translateY(0);
}

.rakam-product-name {
	text-align: center;
	margin-top: 16px;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.rakam-brand {
	font-style: italic;
	font-family: "Segoe Script", "Brush Script MT", Georgia, serif;
	font-weight: 700;
	margin-right: 4px;
}

/* -------------------------------------------------------------------- */
/* Pagination                                                            */
/* -------------------------------------------------------------------- */
.rakam-products-pagination {
	margin-top: 50px;
}

.rakam-products-pagination ul.page-numbers {
	list-style: none;
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.rakam-products-pagination .page-numbers a,
.rakam-products-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 6px;
	border: 1px solid var(--rakam-border);
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	box-sizing: border-box;
}

.rakam-products-pagination .page-numbers a:hover,
.rakam-products-pagination .page-numbers .current {
	background: var(--rakam-navy);
	border-color: var(--rakam-navy);
	color: #fff;
}

.rakam-products-pagination .page-numbers .dots {
	border: none;
}

/* -------------------------------------------------------------------- */
/* Single product page                                                   */
/* -------------------------------------------------------------------- */
.rakam-product-wrap {
	padding-top: 50px;
	padding-bottom: 60px;
}

.rakam-product-top {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
	margin-bottom: 50px;
}

.rakam-product-image {
	flex: 0 0 380px;
	max-width: 380px;
	background: #f7f7f7;
	padding: 24px;
	box-sizing: border-box;
	border-radius: 8px;
}

.rakam-product-image img {
	width: 100%;
	height: auto;
	display: block;
}

.rakam-product-summary {
	flex: 1;
	min-width: 280px;
}

.rakam-product-title {
	font-size: 30px;
	margin: 0 0 16px;
	color: #1a1a1a;
}

.rakam-product-short-desc {
	color: #444;
	line-height: 1.7;
	margin-bottom: 26px;
}

.rakam-product-short-desc p:last-child {
	margin-bottom: 0;
}

.rakam-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}

.rakam-enquire-btn,
.rakam-datasheet-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	padding: 14px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color .2s ease;
}

.rakam-enquire-btn {
	background: var(--rakam-red);
	color: #fff;
}

.rakam-enquire-btn:hover {
	background: var(--rakam-red-dark);
}

.rakam-datasheet-btn {
	background: var(--rakam-navy);
	color: #fff;
}

.rakam-datasheet-btn:hover {
	background: var(--rakam-navy-dark);
}

.rakam-product-category {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #666;
	margin: 0;
}

.rakam-product-category a {
	color: var(--rakam-navy);
	text-decoration: none;
}

.rakam-product-category a:hover {
	text-decoration: underline;
}

/* Description section — tab label + main content */
.rakam-product-description-section {
	border-top: 1px solid #eee;
	padding-top: 30px;
	margin-bottom: 60px;
}

.rakam-product-tabs {
	margin-bottom: 30px;
}

.rakam-product-tab {
	display: inline-block;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #1a1a1a;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rakam-navy);
}

.rakam-product-description {
	color: #333;
	line-height: 1.8;
}

.rakam-product-description h2,
.rakam-product-description h3,
.rakam-product-description h4 {
	color: var(--rakam-navy);
	margin: 34px 0 14px;
}

.rakam-product-description h2:first-child,
.rakam-product-description h3:first-child {
	margin-top: 0;
}

.rakam-product-description table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 26px;
}

.rakam-product-description table td,
.rakam-product-description table th {
	padding: 12px 16px;
	font-size: 15px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.rakam-product-description table tr:nth-child(odd) {
	background: var(--rakam-gray-bg);
}

.rakam-product-description p {
	margin: 0 0 16px;
}

/* Related products */
.rakam-products-heading {
	color: var(--rakam-navy);
	font-size: 24px;
	margin: 0 0 26px;
}

.rakam-related-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* -------------------------------------------------------------------- */
/* Enquire Now popup                                                     */
/* -------------------------------------------------------------------- */
.rakam-enquire-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	display: none;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 60px 20px;
	z-index: 9999;
}

.rakam-enquire-overlay.is-open {
	display: flex;
}

.rakam-enquire-modal {
	background: #fff;
	width: 100%;
	max-width: 460px;
	padding: 40px;
	position: relative;
	box-sizing: border-box;
	border-radius: 6px;
}

.rakam-enquire-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.rakam-enquire-title {
	color: var(--rakam-navy);
	font-size: 22px;
	margin: 0 0 24px;
}

.rakam-enquire-modal .wpcf7-form-control {
	width: 100%;
	border: 1px solid var(--rakam-border);
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 0px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 4px;
}

.rakam-enquire-modal textarea.wpcf7-form-control {
    min-height: 80px;
    resize: vertical;
    height: 80px;
    padding: 15px 15px;
}

/* The read-only Product field: darker text, light gray fill, so it visibly
   reads as "already filled in" rather than an empty placeholder. */
.rakam-enquire-modal .rakam-product-field {
	background: #fafafa;
	color: #222;
	font-weight: 600;
	cursor: not-allowed;
}

.rakam-enquire-modal input[type="submit"] {
	background: var(--rakam-red);
	color: #fff;
	border: none;
	padding: 14px 34px;
	font-size: 15px;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color .2s ease;
}

.rakam-enquire-modal input[type="submit"]:hover {
	background: var(--rakam-red-dark);
}

body.rakam-modal-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rakam-products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.rakam-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rakam-product-top {
		gap: 30px;
	}

	.rakam-product-image {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.rakam-products-grid {
		grid-template-columns: 1fr;
	}

	.rakam-products-title {
		font-size: 26px;
	}

	.rakam-product-title {
		font-size: 24px;
	}
}
