/* ============================================= */
/* === 1. Variables & Base Styles. (Elegant Theme) ==== */
/* ============================================= */

/* --- Variables --- */
:root {
    --color-primary-dark: #2c3e50; /* Color Palette - Sophisticated & High-Contrast */
    --color-primary: #34495e; /* Deep Charcoal Blue */
    --color-secondary: #fdfdfd; /* Muted Slate Blue */
    --color-background: #ebeef3; /* Almost White, for cards/sections */
    --color-text: #333333; /* Very light cool grey */
    --color-text-muted: #7f8c8d; /* Dark Charcoal for readability */
    --color-accent: #c0b283; /* Muted Grey */
    --color-accent-hover: #a38f57;/* Muted Gold/Champagne */
    --color-white: #FFFFFF; /* Darker Gold for hover */
    --color-light-grey: #ecf0f1; /* Lightest grey for borders */
    --color-near-black: #001216; /* Dark blue, almost black */
    --color-light-blue: #cedadb; /* Light blue-grey for nav links */
    --color-success: #27ae60; /* Muted Green */
    --color-warning: #f39c12; /* Muted Orange */
    --color-error: #c0392b; /* Muted Red */

    --font-heading: 'Playfair Display', serif; /* Typography - Elegant & Classic */
    --font-body: 'Montserrat', sans-serif; /* Elegant, high-contrast serif */
    
    /* Clean, modern, geometric sans-serif */

    --base-font-size: 17px; 
    --base-line-height: 1.7; /* Increase base size for a more open feel */
    --base-spacing-unit: 8px; /* Generous line spacing */

    --smaller-font-size: 16px;
    --smaller-line-height: 1.6;

    --border-radius: 3px; /* Sharper, more refined corners */
    --container-max-width: 1180px;
    --container-padding: calc(var(--base-spacing-unit) * 3); /* 24px */
    

    --header-height-mobile: 70px;
    --header-height-desktop: 90px;
}

/* --- Reset & Box Sizing --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: var(--base-line-height);
    color: var(--color-text);
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Basic Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Lighter weight for elegance */
    line-height: 1.3;
    margin-bottom: calc(var(--base-spacing-unit) * 3);
    /* More space */
    color: var(--color-primary-dark);
    letter-spacing: 0.5px;
    /* Subtle letter spacing */
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: calc(var(--base-spacing-unit) * 2.5);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-accent);
    text-decoration: none;
    /* Keep links clean */
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style-position: inside;
    margin-bottom: calc(var(--base-spacing-unit) * 2);
    padding-left: calc(var(--base-spacing-unit) * 2.5);
}

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

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--base-spacing-unit) * 2;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- Utility Classes --- */
.text-center {    text-align: center;}

.mt-1 {    margin-top: var(--base-spacing-unit);}
.mt-2 {    margin-top: calc(var(--base-spacing-unit) * 2);}
.mb-1 {    margin-bottom: var(--base-spacing-unit);}
.mb-2 {    margin-bottom: calc(var(--base-spacing-unit) * 2);}

/* ============================================= */
/* === 2. Layout Styles ====================== */
/* ============================================= */

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* --- Main Content Wrapper --- */
.main-content {
    flex-grow: 1;
    padding-top: var(--header-height-mobile);
    padding-bottom: calc(var(--base-spacing-unit) * 6);
}

.page-container {
    padding-top: calc(var(--base-spacing-unit) * 5);
    padding-bottom: calc(var(--base-spacing-unit) * 5);
}

/* --- Site Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-mobile);
    background-color: var(--color-near-black);
    border-bottom: 1px solid var(--color-light-grey);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo .logo-img {
    height: 4.5em;
    width: auto;
}

.logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: calc(var(--base-spacing-unit) * 1.5);
    color: var(--color-primary-dark);
}

.menu-toggle .icon-menu {
    width: 28px;
    height: 28px;
}

/* Navigation Menu */
.main-navigation {
    position: relative;
}

/* Navigation Menu (Mobile State) */
.nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
    list-style: none;
    padding: var(--base-spacing-unit);
    margin: 0;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* --- Animation Properties --- */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    transition: 
        opacity 0.3s ease, 
        transform 0.3s ease, 
        max-height 0.3s ease, 
        visibility 0s linear 0.3s;
}

.nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 50vh;
    transition: 
        opacity 0.3s ease, 
        transform 0.3s ease, 
        max-height 0.3s ease, 
        visibility 0s linear 0s;
}

.nav-item {
    margin-bottom: var(--base-spacing-unit);
}

.nav-item:last-child {
    margin-bottom: 0;
}

.nav-link {
    display: block;
    padding: calc(var(--base-spacing-unit) * 1.25);
    color: var(--color-light-blue);
    font-weight: 500;  /* Regular weight for a cleaner look */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent-hover);
    background-color: var(--color-background);
    border-radius: var(--border-radius);
}

.nav-menu .nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Header Actions (Cart) */
.header-actions {
    display: flex;
    align-items: center;
}

.cart-link {
    position: relative;
    color: var(--color-primary-dark);
    padding: var(--base-spacing-unit);
    margin-left: var(--base-spacing-unit);
}

.cart-link .icon-cart {
    width: 28px;
    height: 28px;
}

.cart-link .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-error);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* --- Site Footer --- */
.site-footer {
    background-color: var(--color-near-black);
    padding-top: calc(var(--base-spacing-unit) * 6);
    padding-bottom: calc(var(--base-spacing-unit) * 2);
    color: var(--color-light-grey);
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--base-spacing-unit) * 4);
}

.footer-section {
    margin-bottom: calc(var(--base-spacing-unit) * 2);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--base-spacing-unit) * 1.5;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: var(--base-spacing-unit);
    display: inline-block;
}

.footer-links ul,
.footer-contact address {
    list-style: none;
    padding: 0;
    margin: 0;
    font-style: normal;
}

.footer-links li {
    margin-bottom: calc(var(--base-spacing-unit));
}

.footer-links a,
.footer-contact a {
    color: var(--color-light-grey);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: calc(var(--base-spacing-unit) * 1.5);
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-right: none;
    color: var(--color-white);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form button {
    padding: calc(var(--base-spacing-unit) * 1.5) calc(var(--base-spacing-unit) * 2.5);
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-accent-hover);
}

.footer-bottom {
    border-top: 1px solid var(--color-primary);
    margin-top: calc(var(--base-spacing-unit) * 4);
    padding-top: calc(var(--base-spacing-unit) * 3);
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================= */
/* === 3. Component Styles =================== */
/* ============================================= */

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--color-primary-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.button-primary {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.button-primary:hover,
.button-primary:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.button-secondary:hover,
.button-secondary:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-tertiary {
    background-color: transparent;
    color: var(--color-accent);
    border: none;
    padding: 0; /* Minimal padding */
    text-decoration: underline;
}
.button-tertiary:hover, .button-tertiary:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

.button-danger {
    background-color: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}
.button-danger:hover, .button-danger:focus {
    background-color: #c82333; /* Darker red */
    border-color: #bd2130;
    color: var(--color-white);
    text-decoration: none;
}

.button-full { /* Make button take full width */
    display: block;
    width: 100%;
}
.button-small {
    font-size: 0.875rem;
    padding: var(--base-spacing-unit) calc(var(--base-spacing-unit) * 1.5);
}

/* --- Forms (general) --- */
.styled-form {
    background-color: var(--color-secondary);
    border: 1px solid var(--color-light-grey);
    box-shadow: none;
}

label {
    display: block;
    margin-bottom: calc(var(--base-spacing-unit) * 0.5); /* 4px */
    font-weight: 700; /* Bold Lato */
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
    display: block;
    width: 100%;
    padding: calc(var(--base-spacing-unit) * .8) var(--base-spacing-unit); /* 10px 8px */
    margin-bottom: calc(var(--base-spacing-unit) * 2); /* 16px */
    font-family: var(--font-body);
    font-size: .9rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    background-clip: padding-box;
    border: 1px solid var(--color-light-grey);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input,
select,
textarea {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(192, 178, 131, 0.2);
}

fieldset {
    border: 1px solid var(--color-secondary);
    padding: calc(var(--base-spacing-unit) * 2);
    margin-bottom: calc(var(--base-spacing-unit) * 3);
    border-radius: var(--border-radius);
}
legend {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0 calc(var(--base-spacing-unit) * 1);
    color: var(--color-primary);
    font-size: 1.1rem;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: calc(var(--base-spacing-unit) * 0.5);
    vertical-align: middle; /* Align with label text */
    /* Consider custom styling later for better cross-browser consistency */
}
fieldset label { /* Labels within fieldsets */
    display: inline-block; /* Allow multiple checkboxes per line */
    margin-right: calc(var(--base-spacing-unit) * 2);
    margin-bottom: calc(var(--base-spacing-unit) * 1.5);
    font-weight: normal; /* Normal weight for checkbox labels */
}

/* --- Puppy Card --- */
.puppy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--base-spacing-unit) * 3);
    margin-bottom: calc(var(--base-spacing-unit) * 3);
}

.puppy-card {
    background-color: var(--color-secondary);
    border: 1px solid var(--color-light-grey);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.puppy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
}

.puppy-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.puppy-card-link:hover {
    text-decoration: none;
}

.puppy-card-image {
    position: relative;
    overflow: hidden;
}

.puppy-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Square for elegance */
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.puppy-card-content {
    padding: calc(var(--base-spacing-unit) * 1.1);
    flex-grow: 1;
    text-align: center;
}

.puppy-card-name {
    font-size: 1.3rem;
    margin-bottom: calc(var(--base-spacing-unit) * 0.5);
    color: var(--color-primary-dark);
}

.puppy-card-type {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--base-spacing-unit) * .8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puppy-card-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-accent-hover);
    margin-bottom: calc(var(--base-spacing-unit) * .25);
}

.puppy-card-tag {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 0.75rem; /* 12px */
    padding: calc(var(--base-spacing-unit) * 0.5) var(--base-spacing-unit); /* 4px 8px */
    border-radius: var(--border-radius);
    font-weight: 700;
}


.puppy-card-actions {
    padding: 0 calc(var(--base-spacing-unit) * 2.5) calc(var(--base-spacing-unit) * 2.5);
    margin-top: auto;
    text-align: center;
}

.puppy-card-actions .button {
    width: 100%;
}

/* Elegant Status Banner */
.status-banner {
    position: absolute;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-dark);
    text-align: center;
    z-index: 2;
    box-shadow: none;
    background-color: var(--color-accent);
    top: 20px;
    right: -40px;
    width: 160px;
    transform: rotate(45deg);
}

.status-banner .banner-text {
    position: relative; /* For z-index if needed over pseudo-elements */
    z-index: 1;
}

.pending-banner,
.sold-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* "Coming Soon" Ribbon Banner - Top Left Corner Example */
.coming-soon-banner {
    background-color: var(--color-success); /* Green Background */
    top: 82px;  /* Distance from top */
    left: -25px; /* Pull left to make the ribbon appear to wrap around the corner */
    width: 150px; /* Adjust width */
    transform: rotate(-45deg); /* Rotate the ribbon */
    transform-origin: top left; /* Rotate around the top-left point */
    text-align: center;
    line-height: 1.5; /* Adjust for text vertical centering */
}

/* "Pending" Banner - Example (Simpler Tag Style, can be adapted to ribbon too) */
.pending-banner {
    background-color: var(--color-warning); /* Orange */
    color: var(--color-text); /* Darker text for better contrast on orange */
    top: 77px;  /* Distance from top */
    left: -28px; /* Pull left to make the ribbon appear to wrap around the corner */
    width: 150px; /* Adjust width */
    transform: rotate(-45deg); /* Rotate the ribbon */
    transform-origin: top left; /* Rotate around the top-left point */
    text-align: center;
    line-height: 1.5; /* Adjust for text vertical centering */ 

}

.pending-banner.ribbon-style {
    background-color: var(--color-warning);
    bottom: 15px;
    right: -35px;
    width: 150px;
    transform: rotate(45deg);
    transform-origin: bottom right;
    line-height: 1.5;
}

.pending-banner.ribbon-style::before { /* Top-left tail for bottom-right ribbon */
    top: -5px;
    left: 0;
    border-width: 5px 0 0 5px;
    border-top-color: var(--color-warning);
    filter: brightness(0.8);
}

.pending-banner.ribbon-style::after { /* Top-right tail for bottom-right ribbon */
    top: -5px;
    right: 0;
    border-width: 5px 5px 0 0;
    border-right-color: var(--color-warning);
    filter: brightness(0.8);
}

/* "Sold" Banner - Example (Simpler Tag Style, can be adapted to ribbon too) */
.sold-banner {
    background-color: var(--color-error); /* Red */
    color: var(--color-secondary); /* Light text for better contrast on red */
    top: 77px;  /* Distance from top */
    left: -28px; /* Pull left to make the ribbon appear to wrap around the corner */
    width: 150px; /* Adjust width */
    transform: rotate(-45deg); /* Rotate the ribbon */
    transform-origin: top left; /* Rotate around the top-left point */
    text-align: center;
    line-height: 1.5; /* Adjust for text vertical centering */ 

}

/* Remove ribbon tails for a cleaner, more modern luxury look */
.status-banner::before,
.status-banner::after {
    content: none;
}

/* --- Tags (General) --- */
.tag {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 0.875rem; /* 14px */
    padding: calc(var(--base-spacing-unit) * 0.5) var(--base-spacing-unit); /* 4px 8px */
    border-radius: var(--border-radius);
    margin-right: calc(var(--base-spacing-unit) * 0.5);
    margin-bottom: calc(var(--base-spacing-unit) * 0.5);
}
.tag-safe { /* Example specific tag style */
    background-color: var(--color-success);
    color: var(--color-white);
}

/* --- Icons --- */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em; /* Size relative to font size */
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-top: calc(var(--base-spacing-unit) * 4);
}
.page-link {
    display: inline-block;
    padding: calc(var(--base-spacing-unit) * 1) calc(var(--base-spacing-unit) * 1.5); /* 8px 12px */
    margin: 0 calc(var(--base-spacing-unit) * 0.5); /* 4px */
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.page-link:hover, .page-link:focus {
    background-color: var(--color-secondary);
    text-decoration: none;
}
.page-link.active, .page-link[aria-current="page"] {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: bold;
}
.page-link.disabled, .page-link[aria-disabled="true"] {
    color: var(--color-text-muted);
    pointer-events: none;
    border-color: var(--color-secondary);
}
.page-link.ellipsis {
    border: none;
    padding: calc(var(--base-spacing-unit) * 1) 0;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    margin-bottom: calc(var(--base-spacing-unit) * 2);
    font-size: 0.875rem;
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li::after { /* Separator */
    content: '/';
    margin: 0 calc(var(--base-spacing-unit) * 1);
    color: var(--color-text-muted);
}
.breadcrumb li:last-child::after {
    content: ''; /* No separator after last item */
    margin: 0;
}
.breadcrumb a {
    color: var(--color-text-muted);
}
.breadcrumb a:hover {
    color: var(--color-primary);
}
.breadcrumb span[aria-current="page"] {
    color: var(--color-text);
    font-weight: bold;
}


/* ============================================= */
/* === 4. Page Specific Styles ============== */
/* ============================================= */

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 60vh; /* Viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--base-spacing-unit) * 4) var(--container-padding);
    color: var(--color-white); /* Default text color for hero */
    overflow: hidden; /* Contain background */
}

.hero-background {
    background-color: var(--color-primary-dark);
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)), url('/images/nitroweb.jpg');
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: -1;
    /* Behind content */
}

.hero-content {
    position: relative; /* Ensure content is above background overlay */
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    font-weight: 300;
    margin-bottom: var(--base-spacing-unit);
}

.hero .hero-subheading {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: calc(var(--base-spacing-unit) * 4);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .hero-cta {
    font-size: 1rem;
}

/* --- Listings Page --- */
.listing-header {
    text-align: center;
    margin-bottom: calc(var(--base-spacing-unit) * 4);
    font-size: 2.1rem;
}

/* Filter Sidebar */
.listings-filters {
    background-color: var(--color-secondary);
    border: 1px solid var(--color-light-grey);
    box-shadow: none;
}

.filter-group {
    margin-bottom: calc(var(--base-spacing-unit) * .75); /* 24px spacing between groups */
    padding: .1rem calc(var(--base-spacing-unit) * 2);
    border-bottom: 1px solid var(--color-light-grey);
}

.filter-group legend {
    padding: 0 calc(var(--base-spacing-unit) * .25);
    margin-bottom: calc(var(--base-spacing-unit) * .1);
    color: var(--color-accent-hover);
}


.filter-group label {
    font-size: .77rem;
}

.filter-group fieldset legend,
.filter-group>label:first-of-type {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.filter-group:last-of-type {
    margin-bottom: calc(var(--base-spacing-unit) * 2); /* Less margin after last group */
    padding-bottom: 1rem;
}

.filter-group fieldset label { /* Individual checkbox labels */
    display: block; /* Stack checkboxes vertically */
    margin-bottom: calc(var(--base-spacing-unit) * 1);
    font-weight: normal; /* Normal weight */
    font-size: 0.9rem;
}

.listings-filters h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: calc(var(--base-spacing-unit) * 1.25);
    color: var(--color-primary-dark);
}

/* --- Range Slider Specific Styles (Assuming noUiSlider) --- */

.slider-container {
    /* before Grok fix */
    margin-top: calc(var(--base-spacing-unit) * 1);
    margin-bottom: calc(var(--base-spacing-unit) * 1);
    padding: 0 calc(var(--base-spacing-unit) * 1.5); /* Add some padding for handles */
    /* After Grok Fix */
    /* margin: calc(var(--base-spacing-unit) * 1) 0;  8px vertical margin */
    /* padding: 0;  Remove padding to avoid offset */
}

/* Basic noUiSlider Styling (Adapt colors/sizes from library defaults) */
.range-slider { /* The div targeted by noUiSlider */
    height: 12px;
    background: var(--color-secondary);
    border-radius: 4px;
    border: 1px solid var(--color-light-grey);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
    position: relative; /* Needed for handle positioning */
}

.noUi-connect {
    background: var(--color-primary);
    height: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.noUi-handle {
    height:20px;
    width: 20px;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: grab;
}

.noUi-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.4); /* Focus ring */
}

/* Slider Value Display (Min/Max text below slider) */
.slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: calc(var(--base-spacing-unit) * 1);
    margin-bottom: calc(var(--base-spacing-unit) * 1.5); /* Space before number inputs */
    padding: 0 calc(var(--base-spacing-unit) * 0.5);
} 
.slider-values span {
    font-weight: 200;
} 

/* Number Inputs Container (Min/Max number fields) */
.number-inputs {
    display: flex;
    align-items: center;
    margin-left: 3rem;
    gap: calc(var(--base-spacing-unit) * 1); /* Space between elements */
}
.number-inputs input[type="number"] {
    width: 70px; /* Adjust width as needed */
    padding: calc(var(--base-spacing-unit) * 0.75) calc(var(--base-spacing-unit) * 1); /* Smaller padding */
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 0; /* Remove default margin */
    /* Hide spinner arrows (optional, cross-browser) */
    -moz-appearance: textfield;
}
.number-inputs input[type="number"]::-webkit-outer-spin-button,
.number-inputs input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
} 
.number-inputs .input-separator {
    color: var(--color-text-muted);
    font-weight: bold;
}

/* Filter Form Buttons */
#filter-form button {
    margin-top: calc(var(--base-spacing-unit) * 2);
    width: 100%; /* Make buttons full width */
}
#filter-form button[type="reset"] {
    margin-top: var(--base-spacing-unit);
}

/* --- Featured Puppies Section --- */
.featured-puppies {
    padding: calc(var(--base-spacing-unit) * 4) 0; /* 32px top/bottom */
    background-color: var(--color-white); /* Contrast background */
}
.featured-puppies h2 {
    text-align: center;
    margin-bottom: calc(var(--base-spacing-unit) * 4);
}
.featured-puppies .section-actions {
    text-align: center;
    margin-top: calc(var(--base-spacing-unit) * 3);
}

/* --- Value Props Section --- */
.value-props {
    padding: calc(var(--base-spacing-unit) * 4) 0;
}
.value-props-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: calc(var(--base-spacing-unit) * 4); /* 32px */
    text-align: center;
}
.value-prop-item .icon {
    font-size: 2.5rem; /* Larger icons */
    color: var(--color-primary);
    margin-bottom: var(--base-spacing-unit);
}
.value-prop-item h3 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--base-spacing-unit) * 0.5);
}
.value-prop-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Trust Builders Section --- */
.trust-builders {
    padding: calc(var(--base-spacing-unit) * 4) 0;
    background-color: var(--color-secondary); /* Contrast background */
    text-align: center;
}
.trust-builders h2 {
     margin-bottom: calc(var(--base-spacing-unit) * 2);
}
.trust-builders p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--base-spacing-unit) * 3);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: calc(var(--base-spacing-unit) * 3); /* space between cards */
    margin: 0 auto;
    max-width: 1600px;
}

@media (min-width: 900px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}

.testimonial {
    background: #fff; /* White background for contrast */
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem;
    min-width: 330px;
    max-width: 533px;
    margin-top: calc(var(--base-spacing-unit) * 3);
    position: relative; /* For pseudo-elements */
    color: var(--color-primary-dark);
    border-left: 5px solid var(--color-primary, #8c5e2a); 
    font-size: var(--smaller-font-size);
    line-height: var(--smaller-line-height);  
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.avatar-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 1rem;
}

.testimonial .review-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    margin-right: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial .reviewer-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.testimonial .star-rating {
    width: 27%;
    height: auto;
    object-fit: cover;
    margin-right: .25rem;
    margin-bottom: 0.2rem;
}

.testimonial .testimonial-headline {
    font-weight: 600;
    font-size: .84rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.testimonial-item {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
    font-style: italic;
    text-align: left; /* Align text left for readability */
}

.testimonial p {
    margin: 0.5rem 0 0 0;
    font-size: 1.05rem;
    text-align: left; /* Align text left for readability */
}


/* Detail Page */
.puppy-detail-page .puppy-price {
    font-size: 2.2rem;
    color: var(--color-accent-hover);
}

.puppy-details-tabs .tab-button {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
}

.puppy-details-tabs .tab-button.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-accent);
}

/* Media gallery might need adjustments */
    .puppy-media-gallery .main-media img,
    .puppy-media-gallery .main-media video {
        border-radius: var(--border-radius);
    }
    .thumbnail-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: var(--base-spacing-unit);
        margin-top: var(--base-spacing-unit);
    }
     .thumbnail-item { border-radius: var(--border-radius); overflow: hidden; }
     .thumbnail-item.active { border: 2px solid var(--color-primary); }


     /* Detail page info */
     .puppy-information h1 { font-size: 2.2rem; }
     .puppy-price { font-size: 1.8rem; font-weight: bold; color: var(--color-primary); }
     .puppy-actions { display: flex; gap: var(--base-spacing-unit); align-items: center; margin: calc(var(--base-spacing-unit)*2) 0; }

     /* Guarantee Page Styles */
     .g-page-heading {
         font-size: 2.2rem;
         text-align: center;
     }
     
     .subtitle {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}
    .indent {
        text-indent: 50px;
}

/* --- Section Spacing --- */
.section-spaced {
    margin-bottom: calc(var(--base-spacing-unit) * 5); /* 40px */
}
.section-spaced h2 {
    font-size: 1.8rem; /* Or your standard H2 size */
    color: var(--color-primary);
    margin-bottom: calc(var(--base-spacing-unit) * 3); /* 24px */
    text-align: left; /* Default for sections, override if needed */
}

/* Other page styles (About, Guarantee, Contact) will inherit these elegant base styles */
/* Add specific overrides if needed, e.g., for .step-icon */
/* Guarantee Steps Layout */
.guarantee-steps {
    display: grid;
    gap: calc(var(--base-spacing-unit) * 4); /* 32px */
}

.step-item {
    display: flex;
    align-items: flex-start; /* Align icon and text to the top */
    gap: calc(var(--base-spacing-unit) * 2.5); /* 20px */
    padding: calc(var(--base-spacing-unit) * 2);
    background-color: var(--color-white); /* Subtle background for each step */
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    color: var(--color-light-grey); /* Color for the SVG icon */
    font-size: 2.5rem; /* Size of the icon container */
    width: 50px; /* Fixed width for alignment */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary); /* Light background for icon */
    border-radius: 50%;
}
.step-icon .icon { /* Style the SVG itself */
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.step-content h4 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: calc(var(--base-spacing-unit) * 1);
}
.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0; /* Remove default p margin if step-item has padding */
}
.step-content p strong {
    color: var(--color-text); /* Make strong text stand out a bit more */
}

/* Conditions List Styling */
.guarantee-conditions ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}
.guarantee-conditions > ul > li {
    position: relative;
    padding-left: calc(var(--base-spacing-unit) * 3.5); /* Space for custom bullet */
    margin-bottom: calc(var(--base-spacing-unit) * 2); /* 16px */
    font-size: 1rem;
    line-height: 1.6;
}
.guarantee-conditions > ul > li::before {
    content: '✓'; /* Custom bullet - checkmark */
    position: absolute;
    left: 0;
    top: 2px; /* Adjust vertical alignment */
    color: var(--color-success); /* Green checkmark */
    font-weight: bold;
    font-size: 1.2em;
}

/* Nested list for exclusions */
.guarantee-conditions ul ul {
    list-style: none; /* Remove default bullets */
    padding-left: calc(var(--base-spacing-unit) * 2); /* Indent nested list */
    margin-top: calc(var(--base-spacing-unit) * 1);
}
.guarantee-conditions ul ul li {
    padding-left: calc(var(--base-spacing-unit) * 3); /* Space for custom bullet */
    margin-bottom: calc(var(--base-spacing-unit) * 1);
}
.guarantee-conditions ul ul li::before {
    content: '–'; /* Custom bullet - en dash or hyphen */
    color: var(--color-text-muted);
    font-weight: bold;
    font-size: 1.2em;
    top: 0; /* Adjust if needed */
}


.guarantee-commitment p {
    font-size: 1.05rem;
    line-height: 1.7;
}
.guarantee-commitment p a {
    font-weight: bold;
    color: var(--color-accent);
}
.guarantee-commitment p a:hover {
    text-decoration: underline;
}


/* Responsive adjustments for steps if needed */
@media (min-width: 768px) {
    .guarantee-steps {
        /* Could go to 2 columns if desired, or just keep single for clarity */
        /* grid-template-columns: repeat(2, 1fr); */
    }

    .section-spaced h3 {
        font-size: 2rem;
    }
}

/* --- About Page Specific Styles --- */

/* Intro Section with Image */
.about-intro .about-layout {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: calc(var(--base-spacing-unit) * 4); /* 32px */
    align-items: center;
}

.about-intro .about-text h2 {
    font-size: 2rem; /* Slightly larger for section intro */
    margin-bottom: calc(var(--base-spacing-unit) * 2);
    color: var(--color-primary);
}

.about-intro .about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: calc(var(--base-spacing-unit) * 2);
}

.about-intro .about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Philosophy Points */
.our-philosophy h2 {
    text-align: center; /* Center the main philosophy heading */
}
.philosophy-points {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: calc(var(--base-spacing-unit) * 3.5); /* 28px */
    margin-top: calc(var(--base-spacing-unit) * 3);
}

.point-item {
    text-align: center; /* Center icon and heading */
    padding: calc(var(--base-spacing-unit) * 2.5);
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.point-icon {
    color: var(--color-primary);
    font-size: 2.8rem; /* Size of icon container */
    margin-bottom: calc(var(--base-spacing-unit) * 1.5);
    display: inline-block; /* Allows text-align center to work */
}
.point-icon .icon { /* Style the SVG itself */
    width: 40px;
    height: 40px;
}

.point-item h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: var(--base-spacing-unit) * 1;
}
.point-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    text-align: left; /* Align paragraph text left for readability */
}


/* Our Process List Styling */
.our-process > p { /* Paragraphs directly under .our-process */
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: calc(var(--base-spacing-unit) * 3);
}
.our-process ul {
    list-style: none;
    padding-left: 0;
}
.our-process ul li {
    position: relative;
    padding-left: calc(var(--base-spacing-unit) * 4); /* Space for custom bullet */
    margin-bottom: calc(var(--base-spacing-unit) * 2.5); /* More spacing between process points */
    font-size: 1rem;
    line-height: 1.65;
}
.our-process ul li::before {
    content: '❖'; /* Example: Diamond bullet or use an SVG/Font Icon */
    /* Alternative: content: '🐴'; (puppy emoji - test cross-browser) */
    /* Alternative: content: url('/images/custom-bullet.svg'); */
    position: absolute;
    left: 0;
    top: 0px; /* Adjust vertical alignment */
    color: var(--color-accent); /* Accent color for bullet */
    font-size: 1.5em; /* Adjust size of bullet */
    line-height: 1; /* Ensure bullet aligns well */
}
.our-process ul li strong { /* If you add strong tags within list items */
    color: var(--color-primary);
}


/* Meet the Family Section (Optional) */
.meet-the-family .family-member {
    margin-bottom: calc(var(--base-spacing-unit) * 3);
    /* Add styles for individual family member display if you use this */
}
.meet-the-family .family-member img {
    width: 150px; /* Example size */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto calc(var(--base-spacing-unit) * 1.5);
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.meet-the-family .family-member h3 {
    margin-bottom: calc(var(--base-spacing-unit) * 0.5);
    font-size: 1.2rem;
}
.meet-the-family .family-member p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}
.meet-the-family > p:last-of-type { /* Last paragraph with contact link */
    margin-top: calc(var(--base-spacing-unit) * 3);
    font-size: 1.1rem;
}


/* Responsive Adjustments for About Page */
@media (min-width: 768px) {
    .about-intro .about-layout {
        grid-template-columns: 2fr 1fr; /* Text takes more space */
    }
    .about-intro .about-text {
        padding-right: calc(var(--base-spacing-unit) * 2); /* Space between text and image */
    }
    .philosophy-points {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    }
}

@media (min-width: 992px) {
    .about-intro .about-layout {
        grid-template-columns: 3fr 2fr; /* More emphasis on text on larger screens */
    }
}

/* --- Contact Page Specific Styles --- */

/* Contact Options Grid */
.contact-options .contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: calc(var(--base-spacing-unit) * 3.5); /* 28px */
}

.contact-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    padding: calc(var(--base-spacing-unit) * 3); /* 24px */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card .contact-icon {
    color: var(--color-primary);
    font-size: 2.8rem; /* Size of icon container */
    margin-bottom: calc(var(--base-spacing-unit) * 2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}
.contact-card .contact-icon .icon { /* Style the SVG itself */
    width: 36px;
    height: 36px;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: var(--base-spacing-unit) * 1.5;
}
.contact-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--base-spacing-unit) * 1.5;
    flex-grow: 1; /* Allows paragraphs to push details down if cards have varying text length */
}
.contact-card .contact-detail {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: calc(var(--base-spacing-unit) * 0.5);
}
.contact-card .contact-detail a {
    color: var(--color-accent);
    font-weight: bold;
}
.contact-card .contact-detail a:hover {
    text-decoration: underline;
}
.contact-card .contact-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: var(--base-spacing-unit);
}
.contact-card .map-link {
    margin-top: auto; /* Pushes button to bottom if card content is short */
    padding-top: var(--base-spacing-unit);
}


/* Contact Form Section */
.contact-form-section h2 {
    text-align: center;
}
.contact-form-section > p { /* Paragraph directly under section, before form */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--base-spacing-unit) * 3);
    color: var(--color-text-muted);
}

.styled-form { /* General class for forms if you want consistent styling */
    max-width: 750px; /* Limit form width */
    margin: 0 auto; /* Center the form */
    background-color: var(--color-white);
    padding: calc(var(--base-spacing-unit) * 3.5); /* 28px */
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.styled-form .form-row {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: calc(var(--base-spacing-unit) * 2.5); /* 20px */
}
.styled-form .form-group {
    margin-bottom: calc(var(--base-spacing-unit) * 2.5); /* 20px */
    flex: 1; /* For use in form-row on larger screens */
}
.styled-form label {
    display: block;
    margin-bottom: var(--base-spacing-unit);
    font-weight: 600; /* Slightly bolder labels */
    color: var(--color-text);
}
.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="tel"],
.styled-form textarea {
    /* Uses existing base input styles, ensure they are sufficient */
    /* Add any overrides if needed */
    padding: calc(var(--base-spacing-unit) * 1.5) var(--base-spacing-unit); /* 12px 8px */
}
.styled-form textarea {
    min-height: 120px;
}
.styled-form .form-actions {
    text-align: right; /* Align button to the right */
    margin-top: calc(var(--base-spacing-unit) * 1);
}
.styled-form .form-actions button {
    padding-left: calc(var(--base-spacing-unit) * 4); /* More padding for primary button */
    padding-right: calc(var(--base-spacing-unit) * 4);
}

.form-response-message { /* For success/error messages from JS */
    padding: var(--base-spacing-unit);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
}
.form-response-message.success {
    background-color: #e6ffed;
    border: 1px solid var(--color-success);
    color: var(--color-success);
}
.form-response-message.error {
    background-color: #ffe6e6;
    border: 1px solid var(--color-error);
    color: var(--color-error);
}


/* Map Section */
.map-section h2 {
    text-align: center;
}
.map-embed-container {
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures iframe corners are rounded if border-radius is applied */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    line-height: 0; /* Fixes potential extra space below iframe */
}
.map-embed-container iframe {
    display: block; /* Remove any default inline spacing */
}


/* Responsive Adjustments for Contact Page */
@media (min-width: 768px) {
    .contact-options .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    }
    .styled-form .form-row {
        flex-direction: row; /* Side-by-side for name/email */
    }
}

@media (min-width: 992px) {
    .contact-options .contact-grid {
        grid-template-columns: repeat(2, 1fr); /* Three columns on larger screens */
    }
}



     /* --- Page Specific Example: Cart Page Layout --- */
     .cart-page .cart-layout {
         display: grid;
         grid-template-columns: 2fr 1fr; /* Items take more space */
         gap: calc(var(--base-spacing-unit) * 4);
         align-items: start;
     }
     .cart-item { /* Adjust cart item layout */
         display: grid;
         grid-template-columns: 100px 1fr auto auto; /* Image, Details, Price, Actions */
         gap: calc(var(--base-spacing-unit) * 2);
         align-items: center;
         margin-bottom: calc(var(--base-spacing-unit) * 2);
         padding-bottom: calc(var(--base-spacing-unit) * 2);
         border-bottom: 1px solid var(--color-secondary);
     }
     .cart-item:last-child { border-bottom: none; }
     .item-image img { width: 100px; height: auto; border-radius: var(--border-radius); }


     /* --- Page Specific Example: Checkout Layout --- */
     .checkout-page .checkout-layout {
         display: grid;
         grid-template-columns: 2fr 1fr;
         gap: calc(var(--base-spacing-unit) * 5);
         align-items: start;
     }
     .order-summary-sidebar {
         background-color: var(--color-secondary);
         padding: calc(var(--base-spacing-unit) * 3);
         border-radius: var(--border-radius);
         position: sticky; /* Keep summary visible on scroll */
         top: calc(var(--header-height-desktop) + var(--base-spacing-unit) * 2); /* Position below header */
     }

 /* End Tablet Media Query */

/* ============================================= */
/* === 5. Responsive Styles ================== */
/* ============================================= */
@media (min-width: 768px) {
    :root {
        --base-font-size: 18px;
    }

    .container {
         --container-padding: calc(var(--base-spacing-unit) * 2.5); /* 24px */
    }

    h1 {        font-size: 3.5rem;    }
    h2 {        font-size: 2.5rem;    }
    h3 {        font-size: 1.8rem;    }

    .site-header {
        height: var(--header-height-desktop);
    }

    .main-content {
        padding-top: var(--header-height-desktop);
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
    }

    .nav-menu {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        align-items: center;
        gap: calc(var(--base-spacing-unit) * 3);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
        overflow: visible;
    }

    .nav-item {
        margin-bottom: 0;
    }

    .nav-link {
        padding: var(--base-spacing-unit) 0;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
        background-color: transparent;
        color: var(--color-accent-hover);
        border-bottom-color: var(--color-accent-hover);
        text-decoration: none;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        gap: calc(var(--base-spacing-unit) * 5);
    }

        .footer-section {
        flex: 1; /* Allow sections to grow */
        margin-bottom: 0;
    }
    .footer-newsletter {
        max-width: 300px; /* Limit newsletter width */
    }

    .puppy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .puppy-card-actions .button {
        width: auto;
    }

    .value-props-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .listings-page .listings-layout {
        display: flex;
        gap: calc(var(--base-spacing-unit) * 5);
    }

    .listings-filters {
        flex: 0 0 280px;
    }

    .puppy-detail-page .puppy-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--base-spacing-unit) * 6);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    .puppy-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .puppy-card {
        max-height: calc(100vh - 100px);
        overflow: hidden;
    }

    .hero h1 {
        font-size: 4.5rem;
    }
}
.game-header-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2d3748;
  color: white;
  padding: 10px 20px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-logo { height: 40px; }
.header-title { font-size: 1.5em; font-weight: bold; }
.header-avatar { height: 40px; border-radius: 50%; border: 2px solid #cbd5e0; }
.currency-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0,0,0,0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 1.1em;
  min-width: 80px; /* Prevent jitter */
}
.currency-icon { height: 24px; }
.currency-amount { font-weight: 600; }
.currency-icon-text { font-size: 1.2em; } /* For emoji icons */