/* css/style.css */

/* === 1. BASIC RESET & DEFAULTS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Arial', sans-serif; /* Consider more modern fonts like 'Roboto', 'Open Sans', or 'Lato' from Google Fonts */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Default background for areas outside main content */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer sticks to bottom on short pages */
}

.container {
    max-width: 1100px;
    margin: 0 auto; /* Center content */
    overflow: auto; /* Clears floats and handles overflow */
    padding: 0 20px; /* Horizontal padding */
}

a {
    color: #e8491d; /* Default link color - your accent color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%; /* Responsive images by default */
    height: auto;
    display: block; /* Removes extra space below images */
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 0.75em;
    line-height: 1.3; /* Added for better heading spacing */
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

.sr-only { /* For screen reader only text */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* === 2. HEADER & NAVIGATION === */
.main-header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    position: sticky; /* Sticky header */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensures header is above other content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px; /* Matches .container width */
    margin: 0 auto;
    padding: 0 20px; /* Consistent with .container padding */
    position: relative; /* For positioning the mobile menu */
}

.navbar .logo {
    font-size: 1.7em; /* Slightly larger */
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.navbar .logo a { /* If logo is a link */
    color: #fff;
    text-decoration: none;
}

.navbar .nav-links { /* Target the UL specifically */
    list-style: none;
    display: flex;
}

.navbar .nav-links li { /* Target LI within the specific UL */
    margin-left: 25px; /* Increased spacing */
}

.navbar .nav-links li a { /* Target A within the specific UL LI */
    color: #fff;
    text-decoration: none;
    padding: 8px 12px; /* Slightly more padding */
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
    background-color: #e8491d; /* Accent color for active/hover */
    color: #fff;
}

/* Hamburger Button - Hidden by default on larger screens */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above the nav links when open */
}

.mobile-nav-toggle .hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* === 3. MAIN CONTENT AREA === */
main {
    flex-grow: 1; /* Allows main content to expand and push footer down */
    padding-top: 70px; /* Default space for sticky header (adjust if header height changes) */
}


/* === 4. HOME PAGE SPECIFIC STYLES === */
/* Hero Banner (Home Page) */
.hero-section.home-banner {
    min-height: 45vh; /* Adjust as needed, e.g., 300px or 40vh */
    background: url('../images/hero-background.jpg') no-repeat center center/cover; /* TODO: Add your background image */
    background-color: #2c3e50; /* Fallback color */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-section .hero-content {
    max-width: 750px; /* Slightly wider for more text if needed */
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff; /* Ensure text is white on background */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional: for better readability */
}

.hero-section p {
    font-size: 1.25em;
    margin-bottom: 0; /* Remove bottom margin from p */
    color: #f0f0f0; /* Slightly off-white for p text */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* Optional */
}

/* Homepage Search Form */
.homepage-search {
    margin-top: 30px; /* Space below hero paragraph */
    display: flex;
    justify-content: center;
    align-items: stretch; /* Makes button same height as input */
    gap: 10px; /* Space between input and button */
    max-width: 600px; /* Limit width on large screens */
    margin-left: auto;
    margin-right: auto;
}

.homepage-search input[type="search"] {
    flex-grow: 1; /* Input takes available space */
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px; /* Round left corners */
    min-width: 0; /* Allow input to shrink */
}

.homepage-search button[type="submit"] {
    background: #e8491d; /* Accent color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0; /* Round right corners */
    transition: background-color 0.3s ease;
}

.homepage-search button[type="submit"]:hover {
    background: #d7380c; /* Darker accent */
}

/* Homepage Site Share Buttons */
.site-share-buttons {
    margin-top: 35px; /* Space below search form */
    text-align: center;
}

.site-share-buttons p {
    color: #eee; /* Lighter text color on hero background */
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* Optional */
}

.site-share-buttons a {
    display: inline-block;
    margin: 0 8px; /* Space between buttons */
    vertical-align: middle;
    line-height: 1; /* Prevent extra space */
    text-decoration: none; /* Remove underline */
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.site-share-buttons a:hover {
    opacity: 1;
    text-decoration: none; /* Keep underline off */
}

.site-share-buttons img {
    width: 24px; /* Adjust icon size as needed */
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}
/* --- End Site Share Buttons --- */


/* Product Posts Section (Home Page) */
.posts-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #fff; /* Give posts section a clean white background */
}
.posts-section > .container > h2 { /* Targeting h2 directly inside .container of .posts-section */
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2em;
    color: #333;
    border-bottom: 2px solid #e8491d;
    padding-bottom: 10px;
    display: inline-block; /* To make border only as wide as text */
}
/* Centering the h2 with inline-block */
.posts-section > .container {
    text-align: center; /* Center the inline-block h2 */
}
.posts-section > .container > h2 {
    text-align: left; /* Reset text-align for the h2 content itself */
}


.posts-grid {
    display: grid;
    /* Default: Auto-fit columns, minimum 280px width */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Keeps child elements within rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.post-item img {
    width: 100%;
    height: 220px; /* Adjust as needed */
    object-fit: cover; /* Ensures image covers the area, might crop */
}

.post-item .post-content { /* Wrapper for text content */
    padding: 20px;
    flex-grow: 1; /* Pushes button to bottom */
    display: flex;
    flex-direction: column;
}

.post-item h3 {
    font-size: 1.3em;
    margin-top: 0; /* Handled by .post-content padding */
    margin-bottom: 10px;
    color: #333;
}
.post-item h3 a {
    text-decoration: none;
    color: inherit;
}
.post-item h3 a:hover {
    color: #e8491d;
    text-decoration: none; /* Override global link hover if needed */
}

.post-item p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to take available space */
}

.zazzle-button {
    display: block;
    background: #e8491d;
    color: #fff !important; /* Ensure text is white */
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* Rounded button */
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Pushes button to the bottom of the flex container (.post-content) */
}
.zazzle-button:hover {
    background: #d7380c;
    color: #fff;
    text-decoration: none; /* Override global link hover if needed */
}


/* === 5. GENERAL PAGE CONTENT (About, Privacy, Resources) === */
.page-content {
    padding-bottom: 60px; /* Space above footer */
    background-color: #fff; /* White background for content pages */
}

.page-content .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-content h1 {
    margin-top: 0; /* First h1 in .container */
    margin-bottom: 25px;
    color: #333;
    border-bottom: 3px solid #e8491d; /* Thicker border */
    padding-bottom: 15px;
}

.page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.page-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #555;
}

.page-content p, .page-content ul, .page-content ol {
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    padding-left: 25px; /* Standard indentation for lists */
}
.page-content ul li, .page-content ol li {
    margin-bottom: 8px;
}

.page-content strong {
    font-weight: bold;
}

.page-content code {
    background-color: #e9e9e9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* About Us Page Specifics */
.page-content .faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.page-content .faq-item:last-of-type {
    border-bottom: none;
}

.page-content .faq-item h3 {
    margin-top: 0; /* First element in faq-item */
    margin-bottom: 10px;
    color: #333;
}

/* Resources Page Specifics */
.important-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 20px;
    margin: 20px 0 35px 0;
    border-radius: 5px;
}

.important-notice h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.important-notice p strong {
    color: #721c24;
}

.resource-category {
    margin-bottom: 40px;
}

.resource-category > h2 { /* Direct child h2 of resource-category */
    border-bottom: 2px solid #ddd; /* Slightly different from page-content h2 */
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.resource-list {
    list-style: none;
    padding-left: 0;
}

.resource-list li {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid #e8491d; /* Accent color */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.resource-list li h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25em;
}

.resource-list li h3 a {
    text-decoration: none;
    color: #333;
}

.resource-list li h3 a:hover {
    color: #e8491d;
    text-decoration: underline;
}

.resource-list li p {
    margin-bottom: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}


/* === 6. FOOTER === */
.main-footer {
    background: #333;
    color: #bbb;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9em;
}
.main-footer p {
    margin-bottom: 10px;
}
.main-footer p:last-child {
    margin-bottom: 0;
}
.main-footer a {
    color: #fff;
    text-decoration: none;
}
.main-footer a:hover {
    text-decoration: underline;
}
.main-footer small {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #999;
    max-width: 700px; /* Keep disclosure readable */
    margin-left: auto;
    margin-right: auto;
}

/* === 7. SEARCH RESULTS PAGE STYLES === */

/* Search Form on Results Page */
.results-search {
    margin-top: 20px; /* Space below H1 */
    margin-bottom: 30px; /* Space above results */
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    max-width: 700px; /* Can be wider than homepage one */
    margin-left: auto;
    margin-right: auto;
}

.results-search input[type="search"] {
    flex-grow: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    min-width: 0;
}

.results-search button[type="submit"] {
    background: #555; /* Different color for distinction */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.results-search button[type="submit"]:hover {
    background: #444; /* Darker gray */
}

/* General Results Area */
.search-results-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Styles for messages */
.search-loading,
.search-error {
    text-align: center;
    padding: 30px 15px;
    font-size: 1.1em;
    color: #666;
}
.search-error {
    color: #cc0000; /* Red for errors */
}
.search-error a {
    color: #cc0000;
    text-decoration: underline;
}

/* Styles for dynamically generated content from Worker */
.result-summary {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}
.result-summary strong {
    color: #333;
}

/* Zazzle/Amazon Links as Buttons */
.amazon-search-link,
.zazzle-more-link {
    text-align: center;
    margin: 20px auto; /* More margin */
    padding: 0; /* Remove padding from div */
    background-color: transparent; /* Remove background from div */
    border: none; /* Remove border from div */
    border-radius: 0; /* Remove radius from div */
    max-width: 500px; /* Control max width */
}

.amazon-search-link a,
.zazzle-more-link a {
    display: inline-block; /* Make the link itself the button */
    padding: 12px 25px; /* Button padding */
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent; /* Optional border */
    font-size: 0.95em; /* Slightly smaller text */
}

.zazzle-more-link a {
    background-color: #e8491d; /* Site accent color */
    color: #fff !important;
    border-color: #e8491d;
}
.zazzle-more-link a:hover {
    background-color: #d7380c;
    border-color: #d7380c;
    color: #fff !important;
    text-decoration: none;
}

.amazon-search-link a {
    background-color: #f0f0f0; /* Lighter grey for Amazon */
    color: #333 !important;
    border-color: #ccc;
}
.amazon-search-link a:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    color: #000 !important;
    text-decoration: none;
}


/* Grid for search results */
.zazzle-results {
    display: grid;
    /* Use the same grid logic as the homepage posts initially */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted minmax */
    gap: 20px;
    margin-top: 20px;
}

.zazzle-product {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    padding: 10px;
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zazzle-product:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.zazzle-product a:first-child { /* Link wrapping image and title */
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zazzle-product img {
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.zazzle-product p {
    font-size: 0.9em;
    color: #333;
    line-height: 1.3;
    margin-bottom: 10px;
     display: -webkit-box;
    -webkit-line-clamp: 3; /* Show max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3); /* Reserve space */
}

.zazzle-product .share-icons {
    margin-top: auto; /* Pushes to bottom */
    padding-top: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.zazzle-product:hover .share-icons {
    opacity: 1;
}

.zazzle-product .share-icons a {
    display: inline-block;
    margin: 0 5px;
}

.zazzle-product .share-icons img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* === 8. UTILITIES / SCROLL BUTTONS === */

/* Scroll to Top Button */
#scrollTopBtn {
    display: block;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #e8491d;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    width: 45px;
    height: 45px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.2s ease;
}
#scrollTopBtn:hover {
    background-color: #d7380c;
}
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Save Scroll Button */
#saveScrollBtn {
    display: block;
    position: fixed;
    bottom: 30px;    /* Same distance from bottom as scroll top */
    left: 30px;      /* Position on the LEFT side */
    z-index: 998;    /* Slightly below scroll top if they ever overlap */
    border: none;
    outline: none;
    background-color: #555; /* Start with a neutral gray */
    color: white;
    cursor: pointer;
    padding: 5px; /* Adjusted padding to better fit image */
    border-radius: 50%; /* Round */
    font-size: 0; /* Hide text if any was accidentally left */
    line-height: 0; /* Remove line height */
    width: 45px;       /* Explicit width */
    height: 45px;      /* Explicit height */
    text-align: center;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    opacity: 0.9; /* Make it slightly less prominent than scroll-top initially */
    /* Align image center */
    display: flex;
    justify-content: center;
    align-items: center;
}

#saveScrollBtn img {
    width: 70%; /* Adjust image size relative to button */
    height: 70%;
    object-fit: contain; /* Ensure image fits without distortion */
    display: block; /* Ensure it behaves like a block element */
}

#saveScrollBtn:hover {
    background-color: #333; /* Darker gray on hover */
    opacity: 1;
    transform: scale(1.1);
}

/* Style for when a position is saved */
#saveScrollBtn.position-saved {
    background-color: #e8491d; /* Use accent color to indicate saved state */
    opacity: 1;
}
#saveScrollBtn.position-saved:hover {
    background-color: #d7380c; /* Darker accent hover */
}


/* === 9. RESPONSIVE DESIGN === */

/* Media Query for wider screens to show 4 columns (Homepage + Search Results) */
@media(min-width: 992px) {
    .posts-grid, /* Target homepage grid */
    .zazzle-results { /* Target search results grid */
        grid-template-columns: repeat(4, 1fr); /* Force 4 equal columns */
    }
}
/* Media Query for even wider screens (Search Results) */
@media(min-width: 1200px) {
    .zazzle-results {
        grid-template-columns: repeat(5, 1fr); /* Maybe 5 on very wide screens */
    }
}

/* Media Query for tablet and smaller */
@media(max-width: 768px) {
    /* Navbar adjustments for mobile */
    .navbar .logo {
        font-size: 1.5em;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    /* Style for when mobile menu is open (X icon) */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: #2a2a2a; /* Slightly different background for dropdown */
        padding: 15px 0;
        box-shadow: 0 3px 5px rgba(0,0,0,0.2);
        border-top: 1px solid #444;
    }

    .navbar .nav-links.nav-active {
        display: flex; /* Show nav links when active */
    }

    .navbar .nav-links li {
        margin: 0; /* Reset margin */
        width: 100%;
        text-align: center;
    }

    .navbar .nav-links li a {
        display: block; /* Make links take full width */
        padding: 12px 20px;
        border-bottom: 1px solid #444; /* Separator lines */
        width: 100%;
    }
    .navbar .nav-links li:last-child a {
        border-bottom: none;
    }

    .navbar .nav-links li a:hover,
    .navbar .nav-links li a.active {
        background-color: #e8491d; /* Accent color for active/hover */
        color: #fff;
    }

    /* Adjust main content padding based on collapsed header height */
    main {
        padding-top: 70px; /* Default from desktop, verify for mobile collapsed header height */
    }

    .hero-section.home-banner {
        min-height: 35vh;
        padding: 40px 20px;
    }
    .hero-section h1 {
        font-size: 2.4em;
    }
    .hero-section p {
        font-size: 1.1em;
    }

    /* Ensure BOTH grids stack to 1 column on smaller screens */
    .posts-grid,
    .zazzle-results {
        grid-template-columns: 1fr; /* Stack posts on smaller screens */
        gap: 20px;
    }
    .post-item img {
        height: 200px; /* Homepage image height */
    }
    .zazzle-product img {
         max-width: 180px; /* Adjust search result image */
         height: 180px;
    }

    .page-content h1 { font-size: 2em; }
    .page-content h2 { font-size: 1.7em; }
    .resource-category > h2 { font-size: 1.5em; } /* Adjust for resource category headings too */

    /* Results page search bar */
     .results-search {
        flex-direction: column; /* Stack on smaller screens */
        gap: 8px;
    }
     .results-search input[type="search"] {
        border-radius: 5px;
        text-align: center;
    }
     .results-search button[type="submit"] {
        border-radius: 5px;
    }

}

/* Media Query for mobile */
@media(max-width: 480px) {
    body {
        font-size: 15px; /* Slightly smaller base font for very small screens */
    }
    main {
        padding-top: 70px; /* Verify for smaller mobile collapsed header height */
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    /* Homepage search form stacking */
    .homepage-search {
        flex-direction: column; /* Stack input and button */
        gap: 8px;
        padding: 0 10px; /* Add some padding */
    }
    .homepage-search input[type="search"] {
        border-radius: 5px; /* Round all corners */
        text-align: center;
    }
     .homepage-search button[type="submit"] {
        border-radius: 5px; /* Round all corners */
    }

    .page-content .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar .logo {
        font-size: 1.4em;
    }
    .posts-section > .container > h2 {
        font-size: 1.8em;
    }
    .post-item h3 {
        font-size: 1.2em;
    }
    .zazzle-button {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    /* Search Results adjustments for smallest screens */
    .zazzle-results {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Allow even smaller items */
        gap: 10px;
    }
    .zazzle-product {
        padding: 8px;
    }
    .zazzle-product img {
        max-width: 140px;
        height: 140px;
    }
    .zazzle-product p {
         font-size: 0.8em;
         -webkit-line-clamp: 2; /* Show max 2 lines */
         min-height: calc(1.3em * 2);
    }
    .zazzle-product .share-icons img {
        width: 16px;
        height: 16px;
    }
    /* Search again button */
    .results-search button[type="submit"] {
        padding: 10px 15px;
    }
    /* Zazzle/Amazon buttons on mobile */
    .amazon-search-link a,
    .zazzle-more-link a {
         padding: 10px 15px;
         font-size: 0.9em;
    }

    /* Scroll to top & Save Scroll buttons */
    #scrollTopBtn,
    #saveScrollBtn {
        bottom: 20px;
        width: 40px;
        height: 40px;
        /* Adjust padding for image if needed */
        padding: 5px; /* Example smaller padding for image */
    }
     #scrollTopBtn {
        right: 20px;
        font-size: 18px; /* Only affects arrow */
    }
     #saveScrollBtn {
         left: 20px;
         font-size: 0; /* Ensure no text shows if accidentally added */
         line-height: 0;
    }
    #saveScrollBtn img {
        width: 65%; /* Adjust image size within smaller button */
        height: 65%;
    }

    /* Homepage Site Share Buttons */
    .site-share-buttons p {
        font-size: 1em;
    }
    .site-share-buttons img {
        width: 22px;
        height: 22px;
    }
    .site-share-buttons a {
        margin: 0 6px;
    }
}