/* 
Theme Name: Gypsy4x4
Description: Custom theme for gypsy 4x4
Author: Shehbaz Malik
Text Domain: gypsy4x4
Version: 0.1
*/

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	src: local('Poppins'),
		url('./assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
	font-display: swap;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	src: local('Poppins'),
		url('./assets/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
	font-display: swap;
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	src: local('Poppins'),
		url('./assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
	font-display: swap;
}

:root {
	--font-primary: "Poppins", sans-serif;
	--color-white: #ffffff;
	--color-black: #000000;
	--color-primary: #c4ac7e;
	--color-primary-light: #c4ac7ead;
	--bg-transparent: #00000000;
  --bg-dark: #091211;

  --padding-section: 70px 0px;
}

body {
	font-family: var(--font-primary) !important;
	background: var(--color-white) !important;
}

.gypsy-white {
  color: var(--color-white);
}

.gypsy-h1 {
  font-size: 68px;
  font-weight: 700;
}

.gypsy-h2 {
  font-size: 30px;
  font-weight: 700;
}


.btn-gypsy,
.btn-gypsy:hover {
	background-color: var(--color-primary);
	border: 1px solid var(--color-primary);
	color: var(--color-black);
}

.btn-gypsy:hover,
.btn-gypsy:active
 {
	background-color: var(--color-primary-light) !important;
	border-color: var(--color-primary-light) !important;
}

/* Ensure navbar stays within container */
.navbar {
	padding: 1rem 0;
	background-color: #f8f9fa;
}

.navbar .logo-txt {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
}

/* Center navigation items on desktop */
.nav-center {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}

/* Dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
	display: block;
}

.dropdown-menu {
	min-width: 160px;
	margin-top: 0; /* Remove default gap */
	border-radius: 0px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	background-color: var(--color-primary);
	border: none;
	padding-top: 0px;
	padding-bottom: 0px;
}

.dropdown-item {
	padding: 0.75rem 1.25rem;
	transition: background-color 0.2s ease;
}

.dropdown-item:hover {
	background-color: var(--color-primary);
	color: #000;
}

button.navbar-toggler {
	outline: none !important;
}

.gypsy-navbar {
	background-color: var(--bg-transparent);
	position: fixed;
	top: 0;
	z-index: 7;
	width: 100%;
	transition: background .6s;
}

.gypsy-navbar.scrolled {
	background-color: var(--bg-dark);
	border-bottom: 2px solid var(--color-primary);
}

.gypsy-navbar ul li.nav-item {
	margin-right: 15px;
}

.gypsy-navbar ul li.nav-item a {
	font-size: 17px;
	color: var(--color-white);
}

.gypsy-navbar ul li.nav-item.current-menu-item a {
	color: var(--color-primary);
}

/* .gypsy-navbar ul li.nav-item:hover a {
    color: var(--color-primary);
  } */

.gypsy-hero {
	/* Background Image */
	background-image: url('./assets/imgs/hgy_1.webp'); /* Change this to your actual image path */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	height: 70vh; /* Full viewport height, change if needed */
	width: 100%;
	display: flex;
	align-items: end;
	justify-content: center;
	color: white;
}

.gypsy-hero.hero-inner-page {
	background-image: url('./assets/imgs/hgy_2.webp');
	height: 30vh;
	align-items: center;
}

.gypsy-hero.hero-inner-page.dark-bg {
	background-image: unset;
	background-color: var(--bg-dark);
}

/* Overlay */
.gypsy-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
	z-index: 1;
}

/* Ensure inner content appears above the overlay */
.gypsy-hero > * {
	position: relative;
	z-index: 2;
}

.gypsy-hero .search-bar input {
  border-color: var(--color-primary);
  outline: none !important;
}

.gypsy-hero .search-bar input:focus {
  box-shadow: none;
}

.gypsy-hero .search-bar button {
  background-color: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
}

.dark-bg {
  background-color: var(--bg-dark);
  padding: var(--padding-section);
}

.product-items .item .item-wrapper {
  position: relative;
  display: block;
  color: inherit;
}

.product-items .item .img-box {
  position: relative;
  height: 336px;
  overflow: hidden;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.product-items .slider-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 15px 0px;
  background-color: var(--color-white);
  padding-bottom: 90px;
  transition: transform 0.4s ease;
}

.product-items .slider-img:hover {
	transform: scale(1.05); /* Slight zoom */
}

/* Text box overlay at bottom */
.product-items .item .txt-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8); /* Optional dark overlay behind text */
  color: white;
  text-align: left;
}

.product-items .item .txt-box h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Number of lines to show */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2em; /* Adjust if needed */
    max-height: calc(1.2em * 2); /* 2 lines */
}

.product-items .item .txt-box .rating-container {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.product-items .item .txt-box .rating-container img {
  height: 20px;
}

.product-items .item .txt-box .inventory {
  font-size: 0.9rem;
  display: block;
}

.product-items .item .txt-box .available {
  color: #7ed957; /* Green */
}

.product-items .item .txt-box .sold-out {
  color: #ff6b6b; /* Red */
}

.product-items .item a {
  text-decoration: none;
  color: inherit;
}

.product-items .item .cta {
  background-color: var(--color-primary);
  color: var(--color-black);
  text-align: center;
  padding: 12px;
}

.product-items .item .cta:hover {
  background-color: var(--color-primary-light);
}

.basic-slider .gypsy-controls {
	display: flex;
	justify-content: center;
	padding-top: 20px;
}

.basic-slider .gypsy-controls button {
	border-radius: 2px;
	width: 20px;
	height: 10px;
	border: 0px;
	margin-right: 10px;
	background-color: var(--color-white);
	transition: width 0.4s;
}

.basic-slider .gypsy-controls .glide__bullet--active {
	background-color: var(--color-primary);
	width: 30px;
}

.gypsy-footer {
	padding: var(--padding-section);
	background-color: var(--color-primary);
}

.gypsy-footer .footer-sections {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.gypsy-footer .footer-sections ul {
	list-style: none;
	padding-left: 0px;
	margin-top: 20px;
}

.gypsy-footer .footer-sections span {
	font-size: 18px;
	font-weight: 600;
}

.gypsy-footer .footer-sections ul li {
	margin-bottom: 10px;
}

.gypsy-footer .footer-sections ul li a {
	text-decoration: none;
	color: var(--color-black);
}

.gypsy-footer .footer-sections ul li a:hover {
	/* color: var(--color-primary); */
	text-decoration: underline;
}

.whatsapp-chat a span {
	font-size: unset;
	font-weight: 400;
}

.whatsapp-chat a {
	background-color: #25D366;
	outline: none;
	border-color: #25D366;
	margin-top: 20px;
	color: var(--color-white);
}

.whatsapp-chat a img {
	max-width: 20px;
}

.whatsapp-chat a:hover,
.whatsapp-chat a:active
 {
	background-color: #25D366 !important;
	border-color: #25D366 !important;
}

.whatsapp-chat p {
	margin-top: 15px;
	margin-bottom: 0px;
}

.bottom-footer {
	background-color: var(--bg-dark);
	color: var(--color-white);
	text-align: center;
	padding: 15px;
}

.navbar-toggler {
	border: 1px solid var(--color-white);
	box-shadow: unset !important;
}

/* Default white icon */
.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Toggled state - X icon (white) */
.navbar-toggler.toggled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3E%3C/svg%3E");
}

.shop-container {
	padding: var(--padding-section);
}


.shop-container .search-filter .input-group {
	position: relative;
    overflow: hidden;
    border: 1px solid #D0D5DD;
    border-radius: 9px;
}

.wa-field {
	width: 100%;
    font-size: 18px;
    font-weight: 400;
    color: #344054;
    background-color: #fff;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    outline: 0;
    border-radius: 8px;
	height: 44px;
    padding: 10px 14px;
}

.shop-container .search-filter {
	margin-bottom: 20px;
}

.shop-container .search-filter button {
	position: absolute;
    top: 0;
    right: 0;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--color-primary-light);
    border: 0;
    box-shadow: none;
    outline: 0;
}

.shop-container .search-filter .input-group button svg {
    width: 16px;
}

.shop-container .search-filter .title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.shop-container .accordion {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.shop-container .accordion-item .accordion-button:not(.collapsed) {
    background-color: var(--color-white)
}

.shop-container .accordion-item .accordion-button {
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #F2F4F7;
    box-shadow: none;
	color: #404143;
}

.shop-container .tags-filter {
    display: flex;
    flex-direction: column;
    row-gap: 14px;
}

.shop-container .tags-filter .filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-container .tags-filter .filter-item.child {
    padding-left: 15px;
}

.shop-container .tags-filter .filter-item .count {
    font-size: 16px;
    font-weight: 400;
    color: #98A2B3;
}

.shop-container .tags-filter .filter-item .name,
.featured-standalone-item {
    flex: 1;
    display: flex !important;
    align-items: center;
    column-gap: 8px;
	padding-left: 0 !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
}

.tags-filter .filter-item .name .form-check-input,
.featured-standalone-item .form-check-input {
    position: initial;
    height: 20px;
    width: 20px;
    margin-left: 0 !important;
    margin-top: 0;
    border-color: #D0D5DD !important;
    border-radius: 3px !important;
    box-shadow: none !important;
	cursor: pointer;
}

.tags-filter .filter-item .name label,
.featured-standalone-item label {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    line-height: 20px;
    text-transform: capitalize;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s;
}

.tags-filter .filter-item .name .form-check-input:checked,
.featured-standalone-item .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10px;
  row-gap: 15px;
}

.product-gallery-container {
	height: 460px;
	border: 1px solid var(--color-primary-light);
	border-radius: 16px;
	position: relative;
	margin-bottom: 20px;
}

.product-gallery-container .item-wrapper {
	display: flex;
	justify-content: center;
}

.product-gallery-container .image-preview {
	padding: 50px 50px 0px 50px;
	text-align: center;
	width: 100%;
    height: 340px;
}

.product-gallery-container .image-preview img {
    max-height: 100%;
    max-width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.product-gallery-container .image-items .item {
	border: 1px solid var(--color-primary);
	border-radius: 8px;
	height: 60px;
	width: 60px;
	padding: 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.product-gallery-container .image-items .item:hover {
	background-color: var(--color-primary);
}

.product-gallery-container .image-items {
	display: flex;
	justify-content: center;
	gap: 15px;
	position: absolute;
	bottom: 25px;
	text-align: center;
	align-items: center;
}

.product-gallery-container .image-items .item img {
	max-width: 100%;
	max-height: 100%;
}

.intro-heading {
	margin-top: 30px;
}

.no-product-found img {
	max-width: 30%;
}

.rides-container {
	padding: var(--padding-section);
}

.rides-container .car-list .item {
	padding: 15px;
	margin-bottom: 15px;
	border: 1px solid rgba(149, 157, 165, 0.2);
	cursor: pointer;
}

.rides-container .car-list .item:hover {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.rides-container .car-list .item.active {
	border: 1px solid var(--color-primary);
}

.rides-container .car-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.rides-container .car-gallery img {
	border-radius: 16px;
	max-width: 100%;
}

.rides-container .car-gallery video {
	width: 100%;
	border-radius: 16px;
}


/* Responsive adjustments */
@media (max-width: 991px) {
	.nav-center {
		justify-content: start !important;
		margin-top: 10px;
	}

	.navbar-nav {
		width: 100%;
	}

	.shop-items {
		grid-template-columns: repeat(2, 1fr);
	}

	.tags-filter .filter-item .name label,
	.featured-standalone-item label {
		font-size: 13px;
	}

	.tags-filter .filter-item .name .form-check-input,
	.featured-standalone-item .form-check-input {
		width: 14px;
		height: 14px;
	}

}

@media (max-width: 768px) {
	.navbar-collapse {
		padding: 15px;
		background-color: var(--bg-dark);
	}

	.no-product-found img {
		max-width: 100%;
	}

	.mobile-reverse-column {
		flex-direction: column-reverse;
	}

	.rides-container .car-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

}


@media (max-width: 430px) {

	:root {
		--padding-section: 30px 0px;
	}

	.gypsy-footer {
		text-align: center;
	}

	.gypsy-footer .footer-sections {
		grid-template-columns: repeat(1, 1fr);
	}

	.gypsy-h1 {
		font-size: 28px;
	}

	.gypsy-h2 {
		font-size: 22px;
	}

	p {
		font-size: 12px !important;
	}

	.product-items .item .txt-box h5 {
		font-size: 17px;
	}

	.basic-slider .gypsy-controls button {
		width: 15px;
	}

	.basic-slider .gypsy-controls .glide__bullet--active {
		width: 20px;
	}

	.navbar .logo-txt {
		font-size: 20px;
	}

	.shop-items {
		grid-template-columns: repeat(1, 1fr);
	}

	.product-gallery-container .image-preview {
		padding: 10px;
	}

	.product-gallery-container .image-preview {
		height: 210px;
	}

	.product-gallery-container {
		height: 300px;
	}

	.intro-heading {
		margin-top: 45px;
	}

}





