/* site.css — simple clean layout for PartsPlenty */

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

.pp-header {
    background: #157ffd;   /* your blue */
    border-bottom: none;
}

.pp-header a {
    color: #ffffff !important;
}

/* Ensure nav links and logo stay white */
.pp-logo a,
.pp-nav a {
    color: #ffffff !important;
}

.pp-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.pp-nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 16px;
}

.pp-search-form input {
    padding: 7px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.pp-search-form button {
    padding: 7px 12px;
    background: #ffaa00;
    border: none;
    color: #333;
    border-radius: 4px;
    margin-left: 5px;
}

.pp-product-page {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.pp-product-hero {
    display: flex;
    gap: 20px;
}

.pp-product-hero img {
    max-width: 320px;
    border-radius: 8px;
}

.pp-product-info h1 {
    margin-top: 0;
}

.pp-cta-button {
    display: inline-block;
    background: #ffaa00;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin-top: 10px;
}

.pp-product-details {
    margin-top: 30px;
}

.pp-footer {
    text-align: center;
    padding: 20px;
    background: #eee;
    margin-top: 40px;
}
.pp-product-count {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.pp-product-count strong {
  font-weight: 600;
}
/* Add comfortable page margins for all main content */
main,
.pp-product-page,
.pp-search-results,
.pp-category-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem; /* <-- This adds space on left/right */
    box-sizing: border-box;
}
.pp-product-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.pp-product-hero img {
    max-width: 350px;
    width: 100%;
    border-radius: 6px;
}

.pp-product-info h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pp-product-details {
    margin-top: 2rem;
}

/* === Product grid / cards (home & category pages) === */

.pp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pp-product-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.08);
    padding: 0.75rem;
    box-sizing: border-box;
    text-align: left;
}

.pp-product-card a {
    text-decoration: none;
    color: inherit;
}

.pp-product-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.5rem;
}

.pp-product-card h2 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.pp-part-number,
.pp-brand,
.pp-category-label {
    font-size: 0.85rem;
    margin: 0.15rem 0;
    color: #555;
}
.pp-product-narrative {
    margin-top: 2rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.pp-product-narrative p {
    margin-bottom: 0.8rem;
}

.pp-product-video {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #f1f5ff;
    border: 1px solid #d0ddff;
}

.pp-product-video h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pp-youtube-link {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.pp-youtube-link:hover {
    opacity: 0.9;
}
.pp-affiliate-disclosure {
    margin: 20px auto;
    max-width: 1000px;
    background: #e8f3ff;
    padding: 12px 18px;
    border-left: 4px solid #157ffd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.45;
}
/* Shared styling for disclaimer + affiliate disclosure */
.pp-notice-block {
    margin: 25px auto;
    max-width: 1000px;
    background: #e8f3ff;
    padding: 14px 20px;
    border-left: 4px solid #157ffd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.45;
}

/* Make source distinction obvious */
.pp-source-note{
  font-size: 12px;
  opacity: .75;
  margin: 6px 0 12px;
}

.pp-amazon-block{
  background:#fff;
  border:1px solid #e5e5e5;
  border-left:6px solid #157ffd;
  padding:16px;
  border-radius:10px;
  margin-top:18px;
}

.pp-notes-block{
  background:#f8fbff;
  border:1px solid #dbe9ff;
  border-left:6px solid #ffd24d;
  padding:16px;
  border-radius:10px;
  margin-top:18px;
}

.pp-manufacturer-extra{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* Make Details + Notes use the exact same container styling */
.pp-product-details,
.pp-product-narrative.pp-notes-block {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-top: 18px !important;
}

/* Optional: keep headings consistent */
.pp-product-details h2,
.pp-product-narrative.pp-notes-block h2 {
    margin-top: 0 !important;
}







/* Optional separate overrides (not required but kept for future flexibility) */
.pp-affiliate-disclosure {}
.pp-disclaimer {}




@media (max-width: 768px) {
    /* Main content padding a bit tighter */
    main,
    .pp-product-page {
        padding: 1rem 1rem;
    }

    /* Stack hero image above text and center it */
    .pp-product-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Smaller hero image on product page */
    .pp-product-hero img {
        max-width: 180px;
        width: 100%;
        height: auto;
    }

    /* Header stacks instead of squeezing everything in one row */ 
    .pp-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        box-sizing: border-box;
    }

    .pp-logo {
        margin-bottom: 0.25rem;
    }

    /* Nav wraps nicely with spacing between links */
    .pp-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .pp-nav a {
        margin-left: 0;              /* remove desktop left-margin */
        padding: 0.3rem 0.6rem;
        font-size: 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        text-decoration: none;
    }

    /* Search bar becomes full-width under the nav */
    .pp-search-form {
        width: 100%;
        display: flex;
        margin-top: 0.25rem;
    }

    .pp-search-form input {
        flex: 1;
    }

    .pp-search-form button {
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    /* Product grid: 2 columns with smaller thumbnails */
    .pp-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .pp-product-card {
        padding: 0.5rem;
        text-align: center;
    }

    .pp-product-card img {
        max-width: 90px;
        width: 100%;
        height: auto;
        margin: 0 auto 0.4rem;
    }

    .pp-product-card h2 {
        font-size: 0.85rem;
        line-height: 1.2em;
    }

    .pp-part-number,
    .pp-brand,
    .pp-category-label {
        font-size: 0.7rem;
    }
    
    .pp-product-video {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #f1f5ff;
    border: 1px solid #d0ddff;
}

.pp-product-video h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pp-youtube-link {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.pp-youtube-link:hover {
    opacity: 0.9;
}

}




