:root {
    --pro-blue: #063b90;
    --pro-blue-dark: #042966;
    --pro-gold: #f1c50e;
    --pro-bg: #fdfdfd;
    --pro-card-bg: #ffffff;
    --pro-text: #2c3e50;
    --pro-muted: #7f8c8d;
}

body#page-products-dynamic {
    font-family: 'Inter', sans-serif;
    background-color: var(--pro-bg);
    color: var(--pro-text);
}

/* --- Hero Product Loop (Homepage Style) --- */
.products-hero-loop {
    padding: 8px 0 0 !important;
    margin: 0 !important;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.hero-loop-header {
    text-align: center;
    margin: 0;
    padding: 5px 0 0;
}

.hero-loop-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--pro-blue);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.hero-loop-header p {
    display: none;
}

.loop-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.loop-track {
    display: flex;
    width: fit-content;
    animation: scroll-hero 40s linear infinite;
}

.loop-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-hero {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.loop-item {
    flex: 0 0 200px;
    margin: 0 8px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.loop-item:hover {
    transform: translateY(-3px);
    border-color: var(--pro-gold);
}

.loop-img-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 8px;
}

.loop-img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.loop-details {
    padding: 8px;
}

.loop-details h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: var(--pro-blue);
    margin: 0;
}

.loop-details p {
    font-size: 8px;
    color: var(--pro-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .hero-loop-header h1 {
        font-size: 1.3rem;
    }

    .loop-item {
        flex: 0 0 160px;
    }

    .loop-img-box {
        height: 80px;
    }

    .products-hero-loop {
        padding: 5px 0;
    }
}

/* Category Nav */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.cat-tab {
    background: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--pro-text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.cat-tab:hover {
    transform: translateY(-5px);
    border-color: var(--pro-gold);
    color: var(--pro-blue);
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.category-section-title {
    grid-column: 1 / -1;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--pro-blue);
    border-left: 4px solid var(--pro-gold);
    padding-left: 15px;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Product Card */
.p-card {
    background: var(--pro-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.p-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.p-card-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.p-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

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

.p-card-content {
    padding: 20px;
    flex-grow: 1;
}

.p-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--pro-blue);
    line-height: 1.2;
}

.p-card-desc {
    font-size: 0.88rem;
    color: var(--pro-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.p-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.p-feature-tag {
    background: #f0f7ff;
    color: var(--pro-blue);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.p-card-footer {
    padding: 20px 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    color: var(--pro-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details:hover {
    color: var(--pro-gold);
}

/* Trust strip */
.trust-strip b {
    color: var(--pro-blue);
}

/* Input styling */
#productSearch:focus {
    border-color: var(--pro-blue) !important;
    box-shadow: 0 5px 25px rgba(6, 59, 144, 0.1) !important;
}

/* --- Search Area Positioning --- */
.search-filter-area {
    margin-top: -25px;
    position: relative;
    z-index: 100;
}

.search-filter-area .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Trust Strip Styles --- */
.trust-strip {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

@media (max-width: 768px) {
    .category-nav {
        margin-top: -20px;
    }

    .cat-tab {
        padding: 10px 20px;
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}