/*
Theme Name:  Rigid Boxes
Author:      Zorain Ali
Version:     1.0.0
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
*{
	box-sizing: border-box;
}
html {
	overflow-x: hidden;
}
:root {
	--font-family: "DM Sans", system-ui, sans-serif;
  --font-heading:"Playfair Display", Georgia, serif;
	--primary-color: #527a61;
  --heading-color: #122B1D;
	--background-color: #EFF3EF;
	--section-bg-color:#f1eee4;
	--secondary-color: #28904EE6;
	--secondary-text-color: #333;
	--text-color: #528A6B;
	--h1-home: 40px;
	--h2-home: 32px;
	--h3-home: 18px;
	--h1-product:40px;
	--h2-product: 21px;
	--h3-home:18px;
	--h2-h3-weight:600;
	--transition: all 0.3s ease-in-out;
	--h2-margin-block: 8px 0px 9.6px;
	--link-color: #FD8867;
	--pages-h1: 36px;
	--pages-h1-mobile: 30px;
	--border-radius:4px;
  --b-radius:16px
}
.container{
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px;
}
body {
	max-width: 1920px;
	margin: 0px auto;
	font-family: var(--font-family);
	overflow-x: hidden;
	background-color: hsl(120 15% 97%);
	color: var(--text-color);
}
h1,h2,h3,h4 {
  font-family: var(--font-heading);
	color: var(--secondary-color);
	font-weight: 600;
  color: var(--heading-color);
}
h2 {
	font-size: 24px;
	margin: var(--h2-margin-block);
}
p {
	margin: 0px 0px 15px 0px;
	line-height: 1.5rem;
}
.grid {
	display: grid;
	gap: 16px;              
	align-items: start;
}
.mb-50 { margin-bottom: 50px;}
.m50{margin-top: 50px; margin-bottom: 50px;}
.mb-80 { margin-bottom: 80px;}
.m100 { margin-top: 100px; margin-bottom: 100px;}
.grid-2 { grid-template-columns: 1fr; } 
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }

.btn {
	display: block;
	padding: 8px 25px;
	background-color: var(--secondary-color);
	cursor: pointer;
	font-size: 15px;
	text-decoration: none;
	color: #fff;
	font-family: var(--font-family);
	width: fit-content;
	border-radius: 5px;
	font-weight: 500;
}
a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
p a,
li a,
blockquote a {
	color: var(--primary-color);
}
.w60 {
	width: 100%;
	margin: 0 auto 16px auto;
  text-align: center;
}
@media (min-width: 540px) {
	.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.container { padding: 10px;}
}

@media (min-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.w60 { width: 60%; margin: 0 auto 1rem auto;}
	.mt-80{margin-top: 80px;}
	.container { padding: 0px;}
	h2 { font-size: 40px;}
}
.ajax-product-search {
	position: relative;
}
#product-search-input::placeholder {
	color: var(--secondary-text-color);
}
.blog-search-input::placeholder{
	font-weight: 600;
}
#product-search-input {
	padding: 0px 16px;
	border-radius: 50px;
	font-size: 15px;
	min-height: 35px;
	min-width: 350px;
	outline: none;
	font-family: var(--font-family);
	background: #fff;
	color: var(--secondary-text-color);
	font-style: italic;
}
.blog-search-input {
	padding: 8px 8px 8px 12px;
	border: none;
	background-color: #F5F5F5;
	font-size: 14px;
	outline: none;
	font-family: var(--font-family);
	min-width: 265px;
	border-radius: 55px;
	min-height: 40px;
}
span.search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--secondary-text-color);
	pointer-events: none;
	display: flex;
	align-items: center;
}
#product-search-results,
.blog-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	display: none;        
	z-index: 999;
	border-radius: 10px;
}
.search-item {
	display: block;
	padding: 10px 12px;
	color: #000;
	text-decoration: none;
}
.search-item:hover {
	background: #f4f4f4;
	border-radius: 10px;
}
.no-result {
	padding: 10px;
	color: #999;
}
#product-search-results .search-item,
.blog-search-results .search-item{
	display: block;
	padding: 10px 12px;
	color: #000;
	text-decoration: none;
	cursor: pointer;
	border-bottom: 1px solid #eee; 
}
#product-search-results .search-item:last-child,
.blog-search-results .search-item:last-child {
	border-bottom: none; 
}
header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}
.main-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

.main-menu {
	display: flex;
	flex-direction: row;
	list-style: none;
	gap: 30px;
	color: var(--primary-color);
}

.header-btns {
	display: flex;
	gap: 15px;
}
.contact-btn,
.price-btn {
	padding: 8px 16px;
	font-size: 14px;
	border-radius: 12px;
	transition: .3s;
}
.contact-btn {
	background: none;
	color: #2a2a2a;
}
.contact-btn:hover {
	background: hsl(145 45% 85%);
	color: var(--primary-color);
}
.price-btn.btn:hover {
	transform : translateY(-5px);
}
.top-bar {
    background: var(--heading-color);
    padding: 9px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.top-bar-item:hover {
    color: #fff;
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.top-bar-right {
    flex-shrink: 0;
}
@media (max-width:600px) {
	.main-menu {
		display: none;
	}

	.main-menu.active {
		display: flex;
		flex-direction: column;
		background: #fff;
		border: 1px solid var(--primary-color);
		border-radius: 8px;
		padding: 10px;
		margin: 0 0px;
		position: absolute;
		left: 0;
		width: 100%;
		box-sizing: border-box;
		margin: 0 20px;
		width: calc(100% - 40px);
	}

	.menu-icon {
		width: 30px;
		cursor: pointer;
		display: block;
	}

	.menu-icon span {
		display: block;
		height: 4px;
		background: var(--secondary-color);
		margin: 6px 0;
		border-radius: 2px;
	}
	.cross-icon {
		width: 30px;
		height: 30px;
		position: relative;
		cursor: pointer;
		display: none;
	}

	.cross-icon.open {
		display: block;
	}

	.cross-icon span {
		position: absolute;
		width: 100%;
		height: 4px;
		background: var(--secondary-color);
		top: 50%;
		left: 0;
		border-radius: 2px;
	}

	.cross-icon span:first-child {
		transform: rotate(45deg);
	}

	.cross-icon span:last-child {
		transform: rotate(-45deg);
	}

	.menu-icon.hide {
		display: none;
	}
	.main-header{
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		margin-top: 5px;
	}
	.logo{
		order: 1;
	}
	.menu-nav{
		order: 2;
	}
	.header-btns{
		order: 3;
		width: 100%;
		display: flex;
		gap: 10px;
		margin-top: 15px;
	}
	.header-btns a{
		flex: 1;
		text-align: center;
	}   
.top-bar-left {
        display: none;
    }

    .top-bar-inner {
        justify-content: flex-end;
    }
}    
.footer-section {
    background-color: #122B1D;
    color: #f6f8f6b2;
    padding-top: 50px;
}
.footer-logo {
    margin-bottom: 10px;
    width: 200px;
}
.footer-social-icons {
    display: flex;
    gap: 10px;
}
.footer-social-icons .social-icon {
    background: white;
    border-radius: 55px;
    width: calc(1em + 20px);
    aspect-ratio: 1 / 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    color: var(--secondary-color);
}
.footer-menu-heading {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 15px;
}
.footer-menu-one, .footer-menu-two, .footer-menu-three {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
}
.menu-item{
    color: #f6f8f6b2;
}
.footer.grid {
    gap: 70px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
	border-bottom: 1px solid #294033;
    padding-bottom: 50px;
}
.footer-menu-two li {
    display: flex;
    gap: 5px;
    align-items: center;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
}
.privacy-terms{
 display : flex ;
gap : 20px;	
}
@media (max-width:600px) {
	.footer.grid {
  grid-template-columns : 1fr;
  gap : 30px;		
}
	.footer-bottom {
    flex-direction : column;
	gap : 20px;	
	justify-content : center;	
	text-align : center;	
}
	.privacy-terms {
   justify-content : center;
}
}