/*
Theme Name: ProductsTHF Theme
Theme URI: https://productsthf.com/
Author: Antigravity
Author URI: https://github.com/google-deepmind/antigravity
Description: A high-performance, lightweight FSE theme for ProductsTHF - Trendy Finds, Shop Now.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: productsthf-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base Variables --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
}

a {
    color: #003366;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff4e20;
}

/* --- Theme Header Styles --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
}

.site-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    height: 64px !important;
    width: auto !important;
    max-height: 64px !important;
    display: block;
    object-fit: contain;
}

.site-navigation {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.site-navigation a:hover {
    color: #ff4e20;
    background-color: #f1f5f9;
}

/* --- Theme Hero Banner --- */
.hero-banner {
    background: radial-gradient(circle at 10% 20%, rgba(0, 51, 102, 1) 0%, rgba(15, 23, 42, 1) 90%);
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 4px solid #ff4e20;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 78, 32, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-title span {
    color: #ff4e20;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 500;
}

/* --- Category Badges & Grid --- */
.category-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.category-pill {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.category-pill:hover {
    background-color: #ff4e20;
    border-color: #ff4e20;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- Product Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 51, 102, 0.1), 0 10px 10px -5px rgba(0, 51, 102, 0.04);
    border-color: #cbd5e1;
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background-color: #f8fafc;
    overflow: hidden;
}

.product-card-image figure.wp-block-post-featured-image {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card-image figure.wp-block-post-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Exactly 2 lines of text */
}

.product-card-excerpt {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em; /* Exactly 3 lines of text */
}

/* --- Floating Badges on Cards --- */
.product-grid-overlays {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.grid-save-badge {
    background-color: #ff4e20;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-rating-badge {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fbbf24;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    margin-left: auto;
}

.product-card-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #003366;
    color: #ffffff !important;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.product-card-view-btn:hover {
    background-color: #ff4e20;
    transform: translateY(-1px);
}

/* --- Single Product Layout (2-Column) --- */
.product-single-breadcrumbs {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
    width: 100%;
}

.product-single-breadcrumbs .thf-breadcrumbs {
    margin-bottom: 0.5rem;
}

.product-single-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .product-single-breadcrumbs {
        margin-top: 1.5rem;
    }
    .product-single-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1rem;
    }
}

.product-single-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    width: 100%;
    max-width: 660px;
    aspect-ratio: 1 / 1;
}

.product-single-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-single-details {
    display: flex;
    flex-direction: column;
}

.product-single-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #003366;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* --- Star Ratings --- */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.product-stars {
    display: flex;
    color: #fbbf24; /* amber-400 */
    font-size: 1.25rem;
    line-height: 1;
}

.star-icon {
    line-height: 1;
}

.star-icon.empty {
    color: #cbd5e1; /* gray-300 */
}

.product-rating-val {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.product-reviews-count {
    color: #64748b;
    font-size: 0.875rem;
}

/* --- Product Prices & saving --- */
.product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.product-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4e20;
    letter-spacing: -0.01em;
}

.product-price-original {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.product-price-save-badge {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    margin-left: 0.5rem;
}

/* --- Specifications List --- */
.product-spec-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.product-spec-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #f1f5f9;
}

.product-spec-list li:last-child,
.product-spec-list li:nth-last-child(2) {
    border-bottom: none;
}

.product-spec-icon {
    color: #10b981; /* emerald-500 */
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.product-spec-text {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .product-spec-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .product-spec-list li {
        border-bottom: 1px dashed #f1f5f9;
    }
    
    .product-spec-list li:last-child {
        border-bottom: none;
    }
}

/* --- Premium CTA Buy Button --- */
.product-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4e00 100%);
    color: #ffffff !important;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(255, 78, 32, 0.25);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    text-align: center;
    margin-top: 0.5rem;
}

.product-buy-btn:hover {
    background: linear-gradient(135deg, #ff9d24 0%, #ff5c14 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 78, 32, 0.35);
}

.product-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 78, 32, 0.2);
}

/* --- Trust Badges --- */
.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.badge-icon {
    font-size: 1rem;
}

.product-id-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-family: monospace;
    background-color: #f8fafc;
    color: #64748b;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
    width: fit-content;
}

/* --- FTC affiliate disclaimer block --- */
.affiliate-disclosure-box {
    font-size: 0.8rem;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #003366;
    margin-top: 3rem;
    line-height: 1.5;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Theme Footer Styles --- */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 4px solid #003366;
    font-size: 0.9rem;
}

.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ff4e20;
}

.footer-col p {
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ff4e20;
    text-decoration: none;
}

/* --- Social Media Icons in Footer --- */
.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #cbd5e1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.social-icon:hover svg {
    transform: scale(1.15);
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icon.youtube:hover {
    background-color: #ff0000;
}

.social-icon.pinterest:hover {
    background-color: #bd081c;
}

.social-icon.tiktok:hover {
    background-color: #010101;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5), 0 0 10px rgba(250, 60, 114, 0.5);
}

.site-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.825rem;
}

.footer-legal-disclosure {
    font-size: 0.75rem;
    color: #64748b;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    border-top: 1px dashed #1e293b;
    padding-top: 1.5rem;
    line-height: 1.6;
    text-align: justify;
}

/* --- About Us Page Styles --- */
.about-hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(0, 51, 102, 1) 0%, rgba(15, 23, 42, 1) 90%);
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 4px solid #ff4e20;
    position: relative;
    overflow: hidden;
    margin-top: -3rem; /* Offset page.html top padding */
    margin-left: calc(-50vw + 50%); /* Full-width break out of container */
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 85% 30%, rgba(255, 78, 32, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

.about-hero-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
}

.about-hero-subtitle {
    font-size: 1.5rem !important;
    color: #ff4e20 !important;
    font-weight: 700 !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
}

.about-body-wrap {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.about-intro-p {
    font-size: 1.35rem !important;
    line-height: 1.7 !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    text-align: center;
    margin-bottom: 5rem !important;
    position: relative;
    padding: 0.5rem 2.5rem !important;
    border-left: 4px solid #ff4e20;
    border-right: 4px solid #ff4e20;
}

.about-section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #003366 !important;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    position: relative;
    letter-spacing: -0.02em !important;
}

.about-story-row {
    margin-bottom: 5rem !important;
}

.about-story-text {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #334155 !important;
}

.about-story-text p {
    margin-bottom: 1.5rem !important;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 51, 102, 0.1), 0 10px 10px -5px rgba(0, 51, 102, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: #ffffff;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-container:hover img {
    transform: scale(1.04);
}

.about-cards-grid {
    margin-bottom: 5rem !important;
}

.about-cards-grid .wp-block-column {
    display: flex;
    flex-direction: column;
}

.about-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-top: 4px solid #003366;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 51, 102, 0.12);
    border-top-color: #ff4e20;
}

.about-card-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #003366 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.about-card-desc {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin: 0 !important;
}

.about-disclosure-section {
    margin-bottom: 5rem !important;
}

.about-disclosure-box {
    background-color: #f8fafc;
    border-left: 4px solid #ff4e20;
    border-radius: 12px;
    padding: 2rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ff4e20;
}

.about-disclosure-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-disclosure-text {
    font-size: 0.925rem !important;
    line-height: 1.65 !important;
    color: #64748b !important;
    margin: 0 !important;
}

.about-signature-section {
    text-align: center;
    padding: 4rem 1.5rem !important;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem !important;
}

.about-signature-text {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #003366 !important;
    line-height: 1.7 !important;
    max-width: 650px;
    margin: 0 auto !important;
    font-style: italic;
}

/* --- Responsive Mobile Styles & Hamburger Menu --- */
.menu-toggle {
    display: none;
}

@media (max-width: 767px) {
    /* Enable body scroll lock when menu is active */
    body.menu-open {
        overflow: hidden;
    }

    /* Header styling for mobile */
    .site-header {
        padding: 0.75rem 0.75rem;
    }
    
    .site-header-container {
        position: relative;
    }

    .site-logo img {
        height: 48px !important;
        max-height: 48px !important;
    }

    /* Hamburger toggle button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 200;
        outline: none;
    }

    .hamburger-line {
        width: 100%;
        height: 2.5px;
        background-color: #003366;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
    }

    /* Hamburger transformation active state */
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(1px, -1px);
        background-color: #ff4e20;
    }

    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(1px, 1px);
        background-color: #ff4e20;
    }

    /* Mobile navigation panel sliding in from the right */
    .site-navigation {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -8px 0 25px rgba(0, 51, 102, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 1.5rem 2rem 1.5rem;
        gap: 1.25rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 150;
    }

    .site-navigation.active {
        transform: translateX(0);
        visibility: visible;
    }

    .site-navigation a {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.65rem 1rem;
        border-radius: 8px;
        border-bottom: 1px solid #f1f5f9;
    }

    .site-navigation a:hover {
        background-color: #f8fafc;
        color: #ff4e20;
    }

    /* Hero Banner Mobile Styling */
    .hero-banner {
        padding: 3.5rem 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .category-pills {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .category-pill {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }

    /* Product Grid: 2 columns on mobile screen */
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Constrained section wrapper padding */
    main.wp-block-group {
        padding: 2rem 0.75rem !important;
    }

    /* Product Cards Mobile Optimization */
    .product-card {
        border-radius: 12px;
    }

    .product-card-content {
        padding: 0.75rem;
    }

    .product-card-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        height: 2.8em;
    }

    /* Hide description text inside cards on mobile to prevent overcrowding */
    .product-card-excerpt {
        display: none !important;
    }

    .product-price-row {
        margin: 0.5rem 0;
    }

    .product-price-current {
        font-size: 1.35rem;
    }

    .product-card-view-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .grid-rating-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* --- Breadcrumbs Styling --- */
.thf-breadcrumbs {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.thf-breadcrumbs a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.thf-breadcrumbs a:hover {
    color: #ff4e20;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
    user-select: none;
}

.breadcrumb-current {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Tablet optimization: 3 columns for screens between 768px and 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem !important;
    }
}

/* --- Product Tabs Container --- */
.product-tabs-wrapper {
    max-width: 1200px !important;
    margin: 4rem auto !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1240px) {
    .product-tabs-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-tabs-wrapper {
        margin: 2rem auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.product-tabs-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.product-tabs-nav {
    display: flex;
    gap: 3rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

.product-tab-btn {
    background: none;
    border: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    padding: 0 0 0.75rem 0;
    position: relative;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-tab-btn:hover {
    color: #ff4e20;
}

.product-tab-btn.active {
    color: #003366;
}

.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* cover the bottom border */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff4e20; /* Brand Orange accent for premium consistency */
    border-radius: 4px;
}

.product-tab-panel {
    display: none;
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.product-tab-panel.active {
    display: block;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium internal styling for Description tab */
.product-tab-panel h1,
.product-tab-panel h2,
.product-tab-panel h3,
.product-tab-panel h4 {
    color: #003366;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-tab-panel h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.product-tab-panel h3 {
    font-size: 1.25rem;
}

.product-tab-panel p {
    margin-bottom: 1.5rem;
}

.product-tab-panel ul,
.product-tab-panel ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.product-tab-panel li {
    margin-bottom: 0.5rem;
}

.product-tab-panel a {
    color: #ff4e20;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.product-tab-panel a:hover {
    color: #003366;
}

.product-tab-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Table styling within tab panels */
.product-tab-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.product-tab-panel th,
.product-tab-panel td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.product-tab-panel th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #003366;
}

.product-tab-panel tr:nth-child(even) {
    background-color: #f8fafc;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .product-tabs-container {
        padding: 1.75rem 1.25rem;
    }
    .product-tabs-nav {
        gap: 1.5rem;
        margin-bottom: 1.75rem;
    }
    .product-tab-btn {
        font-size: 1.15rem;
    }
    .product-tab-panel {
        font-size: 0.95rem;
    }
    .product-tab-panel h2 {
        font-size: 1.3rem;
    }
    .product-tab-panel h3 {
        font-size: 1.15rem;
    }
}

/* --- Header Search Form --- */
.header-search-form {
    flex-grow: 1;
    max-width: 450px;
    margin: 0 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    padding: 0.6rem 2.75rem 0.6rem 1.25rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.search-field:focus {
    border-color: #ff4e20;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 78, 32, 0.1);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-submit:hover {
    color: #ff4e20;
}

/* --- Header Socials --- */
.header-social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-social-icons .social-icon {
    width: 34px;
    height: 34px;
    background-color: #f1f5f9;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-social-icons .social-icon svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.header-social-icons .social-icon:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.header-social-icons .social-icon:hover svg {
    transform: scale(1.1);
}

.header-social-icons .social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.header-social-icons .social-icon.youtube:hover {
    background-color: #ff0000;
}

.header-social-icons .social-icon.pinterest:hover {
    background-color: #bd081c;
}

.header-social-icons .social-icon.tiktok:hover {
    background-color: #010101;
}

/* --- Mobile Navigation Search & Socials --- */
.mobile-search-form {
    display: none;
    width: 100%;
    margin-bottom: 2rem;
}

.mobile-social-icons {
    display: none;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    justify-content: center;
}

.mobile-social-icons .social-icon {
    width: 36px !important;
    height: 36px !important;
    background-color: #f1f5f9;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 !important;
    border-bottom: none !important;
}

.mobile-social-icons .social-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

@media (max-width: 991px) {
    .header-social-icons {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .header-search-form {
        display: none !important;
    }
    .mobile-search-form {
        display: block;
    }
    .mobile-social-icons {
        display: flex;
    }
}

/* --- Breadcrumbs Home Icon Style --- */
.thf-breadcrumbs .home-icon {
    font-size: 0.95rem;
    margin-right: 0.2rem;
    vertical-align: middle;
    display: inline-block;
}

/* --- Sub-header Category Menu --- */
.site-subheader-menu {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.65rem 1.5rem 0.25rem 1.5rem;
    margin-top: 0.65rem;
}

.subheader-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.subheader-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.subheader-nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    padding: 0.35rem 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subheader-nav-link:hover,
.subheader-nav-link.active {
    color: #ff4e20;
}

.subheader-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #ff4e20;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.subheader-nav-link:hover::after,
.subheader-nav-link.active::after {
    width: 100%;
}

@media (max-width: 767px) {
    .site-subheader-menu {
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    
    .subheader-nav {
        gap: 0.85rem;
        justify-content: center;
    }
    
    .subheader-nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }
}

/* --- Reviews Highlights --- */
.product-reviews-highlights {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.highlights-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.85rem;
    color: #475569;
    font-style: normal;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.review-text p {
    margin: 0;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.review-text p:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* --- 404 Error Page Styling --- */
.error-404-container {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #003366 0%, #ff4e20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.error-404-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.error-404-text {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.error-404-search {
    width: 100%;
    max-width: 400px;
}

.error-404-actions {
    margin-top: 1rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    color: #ffffff !important;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.btn-back-home:hover {
    background: linear-gradient(135deg, #ff4e20 0%, #ff3300 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 78, 32, 0.25);
}

/* --- Wide Breadcrumbs Wrapper for Category & Archives --- */
.breadcrumbs-wide-wrapper,
.wp-block-query.alignwide {
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.breadcrumbs-wide-wrapper {
    margin-top: 0.25rem !important;
    margin-bottom: 1.5rem !important;
}

.wp-block-query.alignwide {
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
}

.breadcrumbs-wide-wrapper .thf-breadcrumbs {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .breadcrumbs-wide-wrapper,
    .wp-block-query.alignwide {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .breadcrumbs-wide-wrapper {
        margin-top: 0.25rem !important;
        margin-bottom: 1rem !important;
    }
}

