/**
 * TTPixel Child Theme - Policy & Information Pages Styling
 *
 * Styles for Privacy Policy, Terms & Conditions, Return Policy,
 * Shipping Policy, Contact Us, and About Us pages.
 *
 * @package TTPixel_Child_Theme
 * @version 1.0.0
 */

/* ─────────────────────────────────────────────────────────────────────────────
 * 1. LAYOUT & HERO HEADER
 * ───────────────────────────────────────────────────────────────────────────── */

.ttp-policy-page-wrapper {
	background-color: var(--ttpixel-color-bg, #f8fafc);
	min-height: 80vh;
	color: #1e293b;
	font-family: inherit;
}

.ttp-policy-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e1b4b 100%);
	padding: 55px 0 45px 0;
	color: #ffffff;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.ttp-policy-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 140%;
	height: 200%;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

.ttp-policy-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 850px;
	margin: 0 auto;
	padding: 0 15px;
}

.ttp-policy-badge {
	display: inline-block;
	margin-bottom: 12px;
}

.ttp-policy-badge span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #38bdf8;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 16px;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ttp-policy-hero h1,
.ttp-policy-hero .ttp-policy-hero__title {
	font-size: 34px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 0 10px 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ttp-policy-hero__subtitle {
	font-size: 15px;
	color: #cbd5e1 !important;
	margin: 0 0 18px 0;
	line-height: 1.6;
	font-weight: 400;
}

.ttp-policy-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #94a3b8;
	margin-top: 10px;
}

.ttp-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(255,255,255,0.1);
	padding: 4px 14px;
	border-radius: 20px;
	color: #e2e8f0;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 2. MAIN POLICY CONTENT CONTAINER
 * ───────────────────────────────────────────────────────────────────────────── */

.ttp-policy-main-section {
	padding: 45px 0 65px 0;
}

.ttp-policy-card {
	background: var(--ttpixel-color-bg-alt, #ffffff);
	border-radius: 16px;
	padding: 40px 45px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
	border: 1px solid var(--ttpixel-color-border, #e2e8f0);
	max-width: 960px;
	margin: 0 auto;
}

/* Full Width Container Overrides for Contact Us Page */
.ttp-policy-card--contact-us,
.ttp-policy-card--contact {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
}

.ttp-policy-card--contact-us .ttp-policy-content,
.ttp-policy-card--contact .ttp-policy-content {
	max-width: 100% !important;
	width: 100% !important;
}

.ttp-policy-content {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

.ttp-policy-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.ttp-policy-content h3 {
	font-size: 17px;
	font-weight: 700;
	color: #1e293b;
	margin-top: 28px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ttp-policy-content p {
	margin-bottom: 16px;
}

.ttp-policy-content ul, 
.ttp-policy-content ol {
	margin: 0 0 20px 0;
	padding-left: 22px;
}

.ttp-policy-content li {
	margin-bottom: 10px;
	position: relative;
}

.ttp-policy-content strong {
	color: #0f172a;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 3. CONTACT US 2-COLUMN GRID & SOCIAL MEDIA STYLING
 * ───────────────────────────────────────────────────────────────────────────── */

.ttp-contact-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 30px !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
}

.ttp-contact-info-card {
	background: #ffffff !important;
	border-radius: 16px !important;
	padding: 32px !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	box-sizing: border-box !important;
}

.ttp-contact-card-header {
	margin-bottom: 20px;
	border-bottom: 1px dashed #e2e8f0;
	padding-bottom: 16px;
}

.ttp-contact-subbadge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	color: #2563eb;
	background: #eff6ff;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.ttp-contact-card-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.ttp-contact-card-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

/* Quick Contact Methods Grid */
.ttp-contact-methods-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.ttp-contact-method-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	padding: 14px 16px;
	border-radius: 12px;
	text-decoration: none !important;
	color: inherit !important;
	transition: all 0.25s ease;
}

.ttp-contact-method-item:hover {
	transform: translateY(-3px);
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ttp-method-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ttp-icon-phone { background: #eff6ff; color: #2563eb; }
.ttp-icon-wa { background: #f0fdf4; color: #16a34a; }
.ttp-icon-email { background: #fef2f2; color: #dc2626; }
.ttp-icon-time { background: #fff7ed; color: #ea580c; }

.ttp-method-info {
	display: flex;
	flex-direction: column;
}

.ttp-method-label {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.ttp-method-value {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 2px;
}

/* Office Address Box */
.ttp-contact-address-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f8fafc;
	border-left: 4px solid #2563eb;
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.ttp-address-icon {
	font-size: 22px;
	line-height: 1;
}

.ttp-address-text strong {
	display: block;
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 4px;
}

.ttp-address-text p {
	font-size: 13px;
	color: #475569;
	margin: 0;
}

/* Social Media Section */
.ttp-contact-social-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 18px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.ttp-social-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.ttp-social-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 14px 0;
}

.ttp-contact-social-links {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ttp-social-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	transition: all 0.25s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ttp-social-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.ttp-social-fb { background: #1877f2; }
.ttp-social-wa { background: #25d366; }
.ttp-social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ttp-social-yt { background: #ff0000; }

.ttp-response-guarantee {
	font-size: 12px;
	color: #16a34a;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 6px 14px;
	border-radius: 20px;
	display: inline-block;
	font-weight: 600;
	text-align: center;
}

/* Right Column Contact Form Wrapper Reset */
.ttp-contact-grid .ttp-contact-form-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ttp-contact-grid .ttp-contact-form-wrapper {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	padding: 32px !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 4. BEST SELLING PRODUCTS SHOWCASE SECTION (AT THE BOTTOM)
 * ───────────────────────────────────────────────────────────────────────────── */

.ttp-policy-bestselling-section {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	padding: 55px 0 65px 0;
}

.ttp-bestselling-header {
	text-align: center;
	margin-bottom: 35px;
}

.ttp-bestselling-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.ttp-bestselling-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.ttp-policy-bestselling-section .woocommerce {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.ttp-policy-bestselling-section ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 5. RESPONSIVE MEDIA QUERIES
 * ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
	.ttp-contact-grid {
		grid-template-columns: 1fr !important;
		gap: 25px !important;
	}

	.ttp-policy-bestselling-section ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.ttp-policy-hero {
		padding: 40px 0 30px 0;
	}
	.ttp-policy-hero h1,
	.ttp-policy-hero .ttp-policy-hero__title {
		font-size: 26px !important;
	}
	.ttp-policy-hero__subtitle {
		font-size: 14px !important;
	}
	.ttp-policy-card {
		padding: 25px 20px;
		border-radius: 12px;
	}
	.ttp-contact-info-card,
	.ttp-contact-grid .ttp-contact-form-wrapper {
		padding: 24px 18px !important;
	}
	.ttp-policy-bestselling-section ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.ttp-bestselling-title {
		font-size: 22px;
	}
}

@media (max-width: 576px) {
	.ttp-contact-methods-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ttp-policy-bestselling-section ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}
