/**
 * GIP Product Grid - Frontend Styles
 */

/* Category Archive Page */
.gip-category-archive {
	width: 100%;
	background: #fff;
}

.gip-category-header {
	background: var(--dark);
	color: #fff;
	padding: 60px 20px;
	text-align: center;
}

.gip-categ7ory-header-content {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}
.gip-categ7ory-header-content .hero-line{bottom:100%;}

.gip-category-archive-title {
	margin: 0 0 16px 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.gip-category-archive-description {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.gip-category-archive-content {
	width: 100%;
	background: #f9f9f9;
	padding: 40px 0;
}

/* Grid Container */
.gip-product-grid-container {
	width: 100%;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.gip-product-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}

/* Product Card Styles - 2-Column Layout */
.gip-product-card {
	display: flex;
	flex-direction: row;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	width: 100%;
	min-height: 280px;
}

.gip-product-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

/* Left Column - Image, Title, Button */
.gip-card-left {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #eee;
}

.gip-product-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.gip-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.gip-product-card:hover .gip-product-image img {
	opacity: 0.9;
}

.gip-product-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.gip-product-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.gip-product-excerpt {
	margin: 0 0 16px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	flex-grow: 1;
}

/* Right Column - Full Description */
.gip-card-right {
	flex: 1;
	min-width: 0;
	background: #fafafa;
}

.gip-product-description {
	padding: 20px;
	height: 392px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.gip-product-description p {
	margin: 0 0 12px 0;
}

.gip-product-description p:last-child {
	margin-bottom: 0;
}

.gip-product-description ul,
.gip-product-description ol {
	margin: 0 0 12px 0;
	padding-left: 20px;
}

.gip-product-description li {
	margin-bottom: 6px;
}

.gip-product-description a {
	color: #667eea;
	text-decoration: none;
}

.gip-product-description a:hover {
	text-decoration: underline;
}

/* Responsive - Mobile Stack Layout */
@media (max-width: 768px) {
	.gip-product-card {
		flex-direction: column;
	}

	.gip-card-left {
		flex: none;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #eee;
	}

	.gip-product-image {
		height: 200px;
	}

	.gip-card-right {
		flex: none;
		width: 100%;
	}

	.gip-product-description {
		height: auto;
		max-height: 250px;
	}
}

/* Inquiry Button */
.gip-inquiry-btn {
	align-self: flex-start;
	padding: 10px 24px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.gip-inquiry-btn:hover {
	background: #555;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gip-inquiry-btn:active {
	transform: scale(0.98);
}

/* Modal Styles */
.gip-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.gip-modal.gip-modal-active {
	display: flex;
}

/* Premium Product Info Section */
.gip-modal-product-info {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-bottom: 1px solid #e0e0e0;
}

.gip-product-info-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	background: #fff;
}

.gip-modal-product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gip-product-info-details {
	flex-grow: 1;
	min-width: 0;
}

.gip-modal-product-name {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.gip-modal-product-description {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Premium Modal Container */
.gip-modal-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 550px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
	animation: gipSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 10000;
}

@keyframes gipSlideIn {
	from {
		transform: translateY(-40px) scale(0.95);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.gip-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	cursor: pointer;
	animation: gipFadeIn 0.3s ease;
}

@keyframes gipFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.gip-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	font-size: 24px;
	color: #666;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gip-modal-close:hover {
	color: #1a1a1a;
	background: #fff;
	transform: rotate(90deg);
}

/* Contact Form 7 Customization within Modal */
/* Premium Form Styling */
.gip-modal-body .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gip-modal-body .wpcf7-form-control {
	margin-bottom: 0;
	width: 100%;
}

.gip-modal-body .wpcf7-form-control input[type="text"],
.gip-modal-body .wpcf7-form-control input[type="email"],
.gip-modal-body .wpcf7-form-control input[type="tel"],
.gip-modal-body .wpcf7-form-control textarea,
.gip-modal-body .wpcf7-form-control select {
	width: 100%;
	padding: 14px 16px;
	font-size: 14px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-family: inherit;
	transition: all 0.3s ease;
	background: #fafafa;
}

.gip-modal-body .wpcf7-form-control input[type="text"]:focus,
.gip-modal-body .wpcf7-form-control input[type="email"]:focus,
.gip-modal-body .wpcf7-form-control input[type="tel"]:focus,
.gip-modal-body .wpcf7-form-control textarea:focus,
.gip-modal-body .wpcf7-form-control select:focus {
	outline: none;
	border-color: #E8600A;
	box-shadow: 0 0 0 4px rgba(232, 96, 10, 0.1);
	background: #fff;
}

.gip-modal-body .wpcf7-form-control input[readonly],
.gip-modal-body .wpcf7-form-control textarea[readonly] {
	background: #f0f0f0;
	color: #666;
	cursor: not-allowed;
}

.gip-modal-body .wpcf7-form-control textarea {
	resize: vertical;
	min-height: 120px;
}

.gip-modal-body .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.gip-modal-body .wpcf7-not-valid-tip {
	color: #dc3545;
	font-size: 12px;
	margin-top: 6px;
}

.gip-modal-body .wpcf7-submit {
	background: linear-gradient(135deg, #E8600A 0%, #c54d08 100%);
	color: #fff;
	padding: 16px 32px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 8px;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gip-modal-body .wpcf7-submit:hover {
	background: linear-gradient(135deg, #c54d08 0%, #a84207 100%);
	box-shadow: 0 6px 20px rgba(232, 96, 10, 0.35);
	transform: translateY(-2px);
}

.gip-modal-body .wpcf7-submit:active {
	transform: translateY(0) scale(0.98);
}

.gip-modal-body .wpcf7-response-output {
	margin: 16px 0 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.gip-modal-body .wpcf7-validation-messages {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.gip-modal-product-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.gip-product-info-image {
		width: 100px;
		height: 100px;
	}
	
	.gip-modal-content {
		max-width: 95%;
		margin: 10px;
	}
	
	.gip-modal-body {
		padding: 16px;
	}
}

/* Category Grid Styles */
.gip-category-grid-container {
	width: 100%;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.gip-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}
.gip-category-grid a.gip-category-card:last-child{order:-1;}
.gip-category-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.gip-category-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.gip-category-image {
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.gip-category-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}
.gip-category-card .gip-category-image img{opacity:0.9;}

.gip-category-card:hover .gip-category-image img {
	opacity: 0.9;
}

.gip-category-icon {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 40px;
}

.gip-category-icon svg {
	width: 80px;
	height: 80px;
	stroke: currentColor;
	fill: currentColor;
	color: rgba(255, 255, 255, 0.9);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.gip-category-card .gip-category-content{
    transition: all 0.5 ease;
}
.gip-category-card:hover .gip-category-content {
    background: var(--white);
}
.gip-category-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--orange);
	 transition: all 0.5 ease;
}

.gip-category-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;transition: all 0.5 ease;
}

.gip-category-count {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #fff;
	font-weight: 500;
	transition: all 0.5 ease;
}

.gip-category-link {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transition: color 0.3s ease;
	margin-top: auto;
	transition: all 0.5 ease;
}

.gip-category-card:hover .gip-category-link,
.gip-category-card:hover .gip-category-count,
.gip-category-card:hover .gip-category-title{color:var(--black);}
.gip-category-card:hover .gip-category-link {
	color: #333;
}

/* Responsive Design */
@media (max-width: 1199px) {
	.gip-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.gip-category-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.gip-product-grid-container {
		padding: 16px;
	}

	.gip-category-grid-container {
		padding: 16px;
	}

	.gip-category-header {
		padding: 40px 16px;
	}

	.gip-category-archive-title {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.gip-product-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gip-category-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gip-product-grid-container {
		padding: 12px;
	}

	.gip-category-grid-container {
		padding: 12px;
	}

	.gip-product-image {
		height: 220px;
	}

	.gip-category-image {
		height: 180px;
	}

	.gip-modal-content {
		max-width: 90%;
		max-height: 95vh;
	}

	.gip-modal-header,
	.gip-modal-body {
		padding: 16px;
	}

	.gip-modal-header h2 {
		font-size: 18px;
	}

	.gip-category-header {
		padding: 30px 12px;
	}

	.gip-category-archive-title {
		font-size: 24px;
		margin-bottom: 12px;
	}

	.gip-category-archive-description {
		font-size: 14px;
	}

	.gip-product-title {
		font-size: 16px;
	}

	.gip-product-excerpt {
		font-size: 13px;
	}

	.gip-inquiry-btn {
		padding: 8px 16px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.gip-product-grid-container {
		padding: 8px;
	}

	.gip-product-image {
		height: 180px;
	}

	.gip-product-content {
		padding: 16px;
	}

	.gip-modal-content {
		width: 95%;
	}

	.gip-modal-header,
	.gip-modal-body {
		padding: 12px;
	}
}
