/*
Theme Name: Zox News Child
Description: Child theme for Zox News with custom breadcrumb navigation and HomeGear enhancements
Author: HomeGear Team
Template: zox-news
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../zox-news/style.css");

/* Custom HomeGear styles will be loaded via functions.php */
span.mvp-ad-label {
    display: none !important;
}
/* HomeGear product grid image styling */
.grid-product-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: 0;
	background: #ffffff;
	display: block;
	flex-shrink: 0;
}

/* Temporarily hide Pros/Cons sections in product grids */
.grid-pros-cons,
.pros-cons-wrapper-clean {
	display: none !important;
}

/* Google Preferred Sources Button Styles */
.mvp-author-meta-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.google-preferred-source-button {
	flex-shrink: 0;
}

.preferred-source-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #ffffff;
	color: #333333;
	padding: 8px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

/* Prevent visited link styling - keep same appearance */
.preferred-source-btn:visited {
	color: #333333 !important;
	text-decoration: none !important;
}

.preferred-source-btn:hover {
	border-color: #c0c0c0;
	color: #333333;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preferred-source-btn:active {
	border-color: #a0a0a0;
	color: #333333;
	text-decoration: none;
}

.google-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: block;
}

.preferred-source-text {
	display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.mvp-author-meta-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.google-preferred-source-button {
		width: 100%;
	}
	
	.preferred-source-btn {
		display: flex;
		width: 100%;
		justify-content: center;
		white-space: normal;
	}
}


/* Blog - Custom Template Styles */
.mvp-author-info-thumb.left.relative {
    display: none;
}
.mvp-author-info-text.left.relative {
    margin-left: 0;
}

/* Author page - posts column takes full width (no right column present) */
.author .mvp-widget-feat2-left {
    margin-right: 0;
    width: 100%;
}

/* Inline automation ad inside generated roundup post body */
.homegear-inline-post-ad {
    clear: both;
    width: 100%;
    text-align: center;
    margin: 56px 0;
}

.homegear-inline-post-ad .mvp-widget-ad {
    float: none !important;
    display: inline-block;
    margin: 0 auto !important;
    max-width: 100%;
}

.homegear-inline-post-ad .mvp-widget-ad img {
    max-width: 100%;
    height: auto;
}

.homegear-inline-post-ad-clear {
    clear: both;
}

@media (max-width: 768px) {
    .homegear-inline-post-ad {
        margin: 46px 0;
    }
}

/* ── Comparison product-card slider (price-range sections + brand pages) ── */
.price-range-section {
    margin: 40px 0;
    padding: 30px;
}

.price-range-products-carousel {
    position: relative;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.price-range-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.view-all-link:hover { color: #764ba2; }

.product-comparison-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
    padding: 10px 5px 20px 5px;
}
.product-comparison-slider::-webkit-scrollbar        { height: 8px; }
.product-comparison-slider::-webkit-scrollbar-track  { background: #f0f0f0; border-radius: 4px; }
.product-comparison-slider::-webkit-scrollbar-thumb  { background: #667eea; border-radius: 4px; }
.product-comparison-slider::-webkit-scrollbar-thumb:hover { background: #764ba2; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.slider-arrow:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.slider-arrow-left  { left: -20px; }
.slider-arrow-right { right: -20px; }
.slider-arrow:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.slider-arrow i { font-size: 16px; }

.comparison-product-card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    clip-path: border-box;
}
.comparison-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.comparison-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}
.comparison-product-image a {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.comparison-product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.comparison-rating {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.comparison-product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.comparison-product-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 10px 0;
}
.comparison-product-title a { color: #333; text-decoration: none; }
.comparison-product-title a:hover { color: #667eea; }

.comparison-product-verdict {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 12px;
}
.comparison-product-verdict p { margin: 0; }

.comparison-product-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-review-small,
.btn-buy-small {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-review-small             { background: #f0f0f0; color: #333; }
.btn-review-small:hover       { background: #e0e0e0; }
.btn-buy-small                { background: #ff6b35; color: white; }
.btn-buy-small:hover          { background: #ff5722; }

@media (max-width: 768px) {
    .comparison-product-card      { min-width: 180px; max-width: 180px; }
    .product-comparison-slider    { gap: 15px; }
    .price-range-header           { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
    .comparison-product-card      { min-width: 160px; max-width: 160px; }
    .product-comparison-slider    { gap: 12px; }
}

/* Single posts: let Theia sticky sidebar paint outside the row (avoid clipping fixed column) */
.single .mvp-post-main-out {
    overflow: visible;
}

/* Room & Usage: sticky sidebar uses leaf-feat2 column (see homegear-design-system.css) */
.room-usage-archive .leaf-feat2 .mvp-widget-feat2-in {
    overflow: visible;
}