/* Styles for sheathed heating element / resistor pages (shared) */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #ff6b35;
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.product-image::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ff6b35;
}

/* When an actual product image is provided, make it cover the area */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* push the decorative circle behind the image and hide the camera icon */
.product-image::before {
    z-index: 0;
    /* hide the circular decorative element so actual photos appear without overlay */
    display: none;
}

.product-image::after {
    display: none;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-features li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.product-specs {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.product-specs strong {
    color: #ff6b35;
    font-size: 0.9rem;
}

.btn-product-detail {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-product-detail:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e0821a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.breadcrumb-nav {
    background: none;
    padding: 1rem 0;
}

.breadcrumb-nav .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: white;
}

/* Footer small adjustments to match existing site styles */
.site-footer { background:#1a202c; color:#fff; padding:40px 0; }
.site-footer .footer-content { display:flex; gap:2rem; flex-wrap:wrap; justify-content:space-between; }
.site-footer .footer-section img{max-width:160px}
.site-footer .footer-bottom{ text-align:center; padding-top:20px; opacity:0.9 }

/* Footer override: make footer layout dominant and remove unintended transforms/rotations */
html body footer.site-footer,
html body .site-footer {
    transform: none !important;
    transform-origin: center top !important;
    -webkit-transform: none !important;
    -webkit-transform-origin: center top !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
}

.site-footer, .site-footer * {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    perspective: none !important;
}

.site-footer .footer-wave,
.site-footer .footer-wave svg {
    transform: none !important;
    -webkit-transform: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

/* ensure footer content aligns properly even if other styles are applied */
.site-footer .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* Compact footer spacing override to restore original shorter footer */
html body .site-footer {
    margin-top: 0 !important; /* remove large gap above footer */
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

html body .site-footer .footer-content {
    padding: 20px 20px !important; /* compact inner padding */
    gap: 24px !important;
}

html body .site-footer .footer-wave {
    height: 40px !important;
}

html body .site-footer .footer-bottom {
    padding: 10px 20px !important;
    background: rgba(0,0,0,0.2) !important;
    position: relative !important;
}

/* ensure no transforms applied to children */
.site-footer * { transform: none !important; -webkit-transform: none !important; }

/* Page-scoped text color override for pages with white background */
.page-light-text,
.page-light-text * {
    color: #212529 !important;
}

/* Keep specific UI elements their intended colors */
.page-light-text .btn-product-detail,
.page-light-text .btn-model-details,
.page-light-text .site-footer,
.page-light-text .site-footer * {
    color: inherit !important;
}
