/* Base Setup & Colors */
:root {
	--bg: #ffffff;
	--text: #111111;
	--muted: #767676;
	--accent: #000;
	--border: #eeeeee;
	--font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.d-none {
	display: none;
}

body {
	font-family: var(--font);
	background-color: var(--bg);
	color: var(--text);
	padding-top: 80px;
	/* Offset for fixed header */
}

a {
	text-decoration: none;
	color: inherit;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	/* border : 1px solid pink; */
}

/* Clean Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background-color: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--border);
	z-index: 100;
}

.header-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.logo {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
}

.nav ul {
	display: flex;
	list-style: none;
	gap: 25px;
}

.nav a {
	font-size: 14px;
	font-weight: 500;
}

.nav a:hover {
	color: var(--muted);
}


/* --- Active Page Styles --- */
/* Targets the standard link inside the active list item generated by WP */
.nav li.current-menu-item a,
.nav li.current_page_item a {
	color: var(--accent, #1a202c); /* Distinct sharp color for the active page */
	font-weight: 700; /* Bolder weight to stand out visually */
}



/* Minimal Page Title */
.page-intro {
	padding: 40px 0 30px 0;
}

.page-intro h1 {
	font-size: 24px;
	font-weight: 600;
}

/* Homepage Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 60px;
}

.grid-item {
	display: flex;
	flex-direction: column;
}

.img-holder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 12px;
}

/* Fix for image overflow inside the square holder */
.img-holder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Keeps image proportions sharp and crops neatly inside the 1:1 box */
	display: block;
}

/* --- Original Horizontal Row Layout with Overlap Protection --- */

.item-details {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	/* Aligns text tops if one wraps slightly */
	gap: 15px;
	/* Ensures text blocks never physically touch */
	/* margin-top: 12px; */
	font-size: 14px;
}

.item-name {
	font-weight: 500;
	color: var(--text);
	flex: 1;
	/* Automatically grabs all available left-side space */

	/* Strict Single Line Truncation */
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.item-cat {
	color: var(--muted);
	white-space: nowrap;
	/* Prevents the category from wrapping onto two lines */
	text-align: left;
	/* Clean structural look for RTL layout */
}

/* --- Added Layout Classes for Content Pages --- */

/* Split Layout for Contact & About Sections */
.split-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	margin-bottom: 80px;
	align-items: start;
}

/* Typography Blocks */
.text-block p {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 20px;
	color: #333333;
}

.text-block p:last-child {
	margin-bottom: 0;
}

/* Forms (Contact Page) */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #cccccc;
	font-family: inherit;
	font-size: 14px;
	background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: 1px solid var(--text);
	border-color: var(--text);
}

.submit-btn {
	align-self: flex-start;
	background-color: var(--text);
	color: #ffffff;
	border: none;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.submit-btn:hover {
	opacity: 0.9;
}

/* Meta list details */
.info-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.info-list li {
	font-size: 15px;
}

.info-list strong {
	display: block;
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	margin-bottom: 2px;
}

/* Simple Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 40px 0;
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.split-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 480px) {
	body {
		padding-top: 70px;
	}

	.site-header {
		height: 70px;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.page-intro h1 {
		font-size: 20px;
	}

	.submit-btn {
		width: 100%;
		text-align: center;
	}
}


/* --- Simple Mobile Menu Layer --- */

/* Hide burger button on desktop */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 150;
}

.menu-toggle span {
	width: 100%;
	height: 2px;
	background-color: var(--text);
	transition: all 0.3s ease;
}

/* Mobile Responsive States Override */
@media (max-width: 480px) {
	.menu-toggle {
		display: flex;
		/* Show burger on phone viewports */
	}

	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		/* Hidden off-screen right by default */
		width: 75%;
		height: 100vh;
		background-color: #ffffff;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
		padding: 100px 40px;
		transition: right 0.4s ease;
		z-index: 140;
	}

	.nav ul {
		flex-direction: column;
		/* Stack menu items vertically */
		gap: 30px;
	}

	.nav a {
		font-size: 18px;
		/* Easier to tap with thumbs */
	}

	/* Active dynamic state when menu opens */
	.nav.active {
		right: 0;
		/* Slides into view smoothly */
	}

	/* Optional: Animate hamburger lines into an 'X' shape */
	.menu-toggle.active span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}
}


/* --- Pagination Layout & Styling --- */

.pagination-container {
	grid-column: 1 / -1;
	/* Spans across all grid columns perfectly */
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 8px;
	padding: 40px 0 20px 0;
	/* margin-top: 20px; */
	direction: rtl;
	/* Keeps layout natural for Hebrew text flows */
}

/* Base style for numbers and arrows */
.pagination-container .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	text-decoration: none;
	color: #1a202c;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s ease;
}

/* Hover state for links */
.pagination-container a.page-numbers:hover {
	border-color: #1a202c;
	background-color: #f7fafc;
}

/* Active current page item */
.pagination-container .page-numbers.current {
	background-color: #1a202c;
	border-color: #1a202c;
	color: #ffffff;
	font-weight: 600;
}

/* Dot spacers (...) if there are many pages */
.pagination-container .page-numbers.dots {
	border-color: transparent;
	background: none;
	color: #a0aec0;
	cursor: default;
}


/* --- Catalog Bar Search Box Styles --- */

.catalog-search-wrap {
	width: 100%;
	margin-bottom: 30px;
	display: flex;
	justify-content: start;
	direction: rtl;
}

.catalog-search-form {
	display: flex;
	width: 100%;
	max-width: 500px;
	gap: 8px;
	align-items: center;
}

.catalog-search-form .search-field {
	flex: 1;
	height: 42px;
	padding: 0 16px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 15px;
	color: #1a202c;
	outline: none;
	transition: border-color 0.2s ease;
}

.catalog-search-form .search-field:focus {
	border-color: #1a202c;
}

.catalog-search-form .search-submit {
	height: 42px;
	padding: 0 24px;
	background-color: #1a202c;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.catalog-search-form .search-submit:hover {
	background-color: #2d3748;
}

.catalog-search-form .search-clear {
	font-size: 14px;
	color: #718096;
	text-decoration: none;
	padding: 0 4px;
	transition: color 0.2s ease;
}

.catalog-search-form .search-clear:hover {
	color: #ff4d4d;
}

.no-results {
	margin-top: 40px;
	display: block;
	grid-column: 1 / -1;
	text-align: right;
}


/* --- Single Catalog Product Details Page Architecture --- */

.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
    direction: rtl; /* Proper structure for Hebrew layout flows */
}

/* Desktop 2-Column Grid Split */
@media (min-width: 768px) {
    .single-product-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Image containment boundaries */
.product-image-frame {
    width: 100%;
    background-color: #f7fafc;
    border-radius: 4px;
    overflow: hidden;
}

.product-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Details and typography layout configuration */
.product-info-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-category-tag {
    font-size: 14px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.product-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 40px;
}

/* Structural utility elements navigation buttons */
.product-actions-footer {
    margin-top: auto; /* Pins action row to bottom of details column */
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    color: #1a202c;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.btn-back-link:hover {
    color: #718096;
}

.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    color: #a0aec0;
    background-color: #edf2f7;
}



