/* Global safety */
html, body {
  overflow-x: hidden;
}

/* Image wrapper for badge positioning */
.product-image-wrapper {
    position: relative;
}

/* Product Card Badge */
.kitten-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
    z-index: 5;
}

.badge-available {
    background: #2ecc71;
}

.badge-reserved {
    background: #f39c12;
}

.badge-sold {
    background: #e74c3c;
}

/* Single Page Status */
.single-kitten-status {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.status-available {
    background: #eafaf1;
    color: #27ae60;
}

.status-reserved {
    background: #fff4e5;
    color: #d68910;
}

.status-sold {
    background: #fdecea;
    color: #c0392b;
}

.breed-hub-link {
    padding: 15px;
}

/* Typography & Titles */
.product-title {
    font-size: 2.6rem;
    color: #1a1a1a;
    margin: 20px 0 10px 0;
    line-height: 1.2;
}

.product-price {
    font-size: 1.3rem;
    color: #944f70;
    font-weight: 800;
    margin-bottom: 20px;
}

.attribute-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute-tags .hash-tag {
    align-items: center;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.attribute-tags .hash-tag:hover {
    color: #000;
}

@media (min-width: 768px) {
    .attribute-tags {
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .attribute-tags .hash-tag {
        display: inline-flex;
        padding: 6px 10px;
        border-radius: 999px;
        background: #f5f6f7;
        color: #333;
        white-space: nowrap;
    }
    .attribute-tags .hash-tag:hover {
        background: #e9ecef;
        color: #000;
    }
}

/* TOP BAR WIDGET STYLING */
.topbar-call a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-call svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.topbar-call span {
    line-height: 1;
}

@media (max-width: 768px) {
    .filter-dropdown, .sort-select {
        flex: 1;
        width: auto;
        display: none;
    }
}

.about-section a {
    color: white;
}

/* --- Buttons --- */
.cc-why-btn-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cc-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-block;
}

.cc-btn-primary {
    background-color: #944f70;
    color: #fff !important;
    border: 2px solid #944f70;
}

.cc-btn-primary:hover {
    background-color: #7a3e5a;
    border-color: #7a3e5a;
    transform: translateY(-2px);
}

.cc-btn-secondary {
    color: #333;
    background: transparent;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 12px 0;
}

.cc-btn-secondary:hover {
    color: #944f70;
    border-color: #944f70;
}

/* --- TABLE STYLING: only WordPress table blocks and explicitly classed custom tables --- */
/* Add class="cc-table" to custom tables; generic page-content tables may be WooCommerce tables. */

.wp-block-table table,
.cc-table,
.cc-table table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    border-spacing: 0;
}

.wp-block-table table thead tr,
.wp-block-table table th,
.cc-table thead tr,
.cc-table th,
.cc-table table thead tr,
.cc-table table th {
    background-color: #944f70;
    color: #ffffff;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wp-block-table table th,
.wp-block-table table td,
.cc-table th,
.cc-table td,
.cc-table table th,
.cc-table table td {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
}

.wp-block-table table tbody tr:nth-of-type(even),
.cc-table tbody tr:nth-of-type(even),
.cc-table table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

.wp-block-table table tbody tr:hover,
.cc-table tbody tr:hover,
.cc-table table tbody tr:hover {
    background-color: #fff9e6;
    transition: background-color 0.2s ease;
}

.wp-block-table table tbody tr:last-of-type,
.cc-table tbody tr:last-of-type,
.cc-table table tbody tr:last-of-type {
    border-bottom: 2px solid #944f70;
}

/* ——— BLOG SECTION ——— */
.cc-blog-section {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cc-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.cc-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cc-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cc-post-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.cc-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cc-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cc-post-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #944f70;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cc-post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #333;
    margin: 0 0 10px;
    flex-grow: 1;
}

.cc-post-date {
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 900px) {
    .cc-post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .cc-post-grid { grid-template-columns: 1fr; }
}

/* --- SITEMAP GLOBAL STYLING --- */
.cc-custom-sitemap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.cc-custom-sitemap h3 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 3px solid #944f70;
    padding-bottom: 8px;
    line-height: 1.2;
}

.cc-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-sitemap-list li {
    margin: 10px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.cc-sitemap-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #944f70;
    font-weight: bold;
    font-size: 1.1em;
}

.cc-sitemap-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.cc-sitemap-list a:hover {
    color: #944f70;
    text-decoration: underline;
}

.cc-sitemap-list ul.children {
    margin-top: 5px;
    margin-left: 10px;
    padding-left: 0;
}

.cc-sitemap-list li small {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .cc-custom-sitemap {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .cc-custom-sitemap {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cc-sitemap-section {
        margin-bottom: 30px;
    }
    .cc-custom-sitemap h3 {
        font-size: 1.6rem;
    }
    .cc-sitemap-list ul.children {
        margin-left: 5px;
    }
}

/* --- AdSense/Wide Content Overflow Prevention --- */
.archive-content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.archive-posts-column,
.archive-sidebar-column {
    max-width: 100%;
    overflow-x: hidden;
}

.archive-posts-column .adsbygoogle {
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.archive-posts-column article,
.archive-posts-column .entry-content {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* --- BLOG AND ARCHIVE LAYOUT --- */
.blog-container,
.archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-page-header,
.archive-page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.blog-header,
.archive-title {
    font-size: 2.5rem;
    color: #944f70;
}

.blog-content-wrapper,
.archive-content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 100%;
    overflow-x: hidden;
}

.blog-posts-column article,
.archive-posts-column article {
    border-bottom: 1px dashed #eee;
}

h2.post-card-title {
    font-size: 35px;
    margin-bottom: 20px;
    line-height: 0.9em;
    font-weight: 400;
    text-transform: none;
}

.pagination-wrapper {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #f1f1f1;
}

.pagination-wrapper .page-numbers {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper a.page-numbers:hover {
    background-color: #944f70;
    color: #fff;
    border-color: #944f70;
}

.blog-posts-column,
.blog-sidebar-column {
    max-width: 100%;
    overflow-x: hidden;
}

.blog-posts-column .adsbygoogle {
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.blog-posts-column article,
.blog-posts-column .entry-content,
.blog-posts-column .blog-description {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.widget-area .widget {
    padding: 0px;
}

/* Constrain sidebar so widgets never overflow the column */
.widget-area {
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Prevent any child of widget area from breaking out */
.widget-area * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Override product grid columns inside sidebar — always single column */
.widget-area .product-grid-container {
    grid-template-columns: 1fr !important;
    max-width: 100%;
}

.widget-area .product-card-table {
    max-width: 100%;
}

/* ——— SIDEBAR RECENT/RELATED POSTS ——— */
.cc-sidebar-blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.sidebar-blog-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    height: auto;
}

.sidebar-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.sidebar-blog-card .blog-thumb {
    flex: 0 0 100px;
    overflow: hidden;
    background: #f0f0f0;
}

.sidebar-blog-card .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sidebar-blog-card:hover .blog-thumb img {
    transform: scale(1.08);
}

.sidebar-blog-card .blog-content {
    padding: 14px 16px 14px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-blog-card .blog-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
}

.sidebar-blog-card .blog-title a {
    color: #333;
    text-decoration: none;
}

.sidebar-blog-card .blog-title a:hover {
    color: #944f70;
}

.sidebar-blog-card .blog-meta {
    font-size: 0.82rem;
    color: #944f70;
    margin-bottom: 8px;
    font-weight: 500;
}

/* FIX: namespaced properly — won't conflict with global .read-more button */
/* FIX: added background:transparent so global .read-more plum bg doesn't bleed in */
.sidebar-blog-card .read-more {
    font-size: 0.88rem;
    color: #944f70;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    background: transparent;
}

.sidebar-blog-card .read-more:hover {
    text-decoration: underline;
}

/* ——— RESPONSIVE BREAKPOINTS — consolidated to 900px ladder ——— */
@media (max-width: 900px) {
    .blog-content-wrapper,
    .archive-content-wrapper {
        grid-template-columns: 1fr;
    }
    .blog-sidebar-column,
    .archive-sidebar-column {
        order: -1;
        margin-bottom: 30px;
    }
    .blog-posts-column,
    .archive-posts-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar-blog-card .blog-thumb {
        flex: 0 0 90px;
    }
    .sidebar-blog-card .blog-content {
        padding: 12px 14px 12px 0;
    }
    .sidebar-blog-card .blog-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .sidebar-blog-card {
        flex-direction: column;
    }
    .sidebar-blog-card .blog-thumb {
        flex: none;
        height: 140px;
    }
    .sidebar-blog-card .blog-content {
        padding: 14px;
    }
    .sidebar-blog-card .blog-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    .sidebar-blog-card .blog-thumb {
        height: 120px;
    }
    .sidebar-blog-card .blog-content {
        padding: 12px;
    }
}

/* --- BLOG CARD STYLING --- */
.blog-posts-column,
.archive-posts-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-bottom: none !important;
}

/* Mobile: collapse to single column, reduce title size */
@media (max-width: 600px) {
    .blog-posts-column,
    .archive-posts-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    h2.post-card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        line-height: 1.3em;
    }
    .post-card-title a {
        font-size: 1.3rem;
    }
    .post-card-content {
        padding: 15px;
    }
}

.widget-area h2.widget-title {
    font-size: 1.4rem;
    color: #944f70;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.custom-blog-card {
    margin-bottom: 0;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.custom-blog-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.post-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-card-content {
    padding: 25px;
}

.post-meta-details {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.post-category {
    font-weight: 600;
    color: #944f70;
    text-transform: uppercase;
}

.post-card-title a {
    font-size: 1.8rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: #944f70;
}

.post-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Global read-more button */
.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #944f70;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #a86289;
}

/* Flex layout for post footer meta info */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.entry-meta .cat-links,
.entry-meta .comments-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-meta .cat-links a {
    margin-right: 4px;
}

.entry-meta svg {
    width: 0.9em;
    height: 0.9em;
    vertical-align: middle;
}

/* Contact Box */
.state-contact-box {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

.state-contact-box h2 {
    color: #fff;
    margin-top: 0;
    border-bottom: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1em;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-item a:hover,
.contact-item a:focus {
    text-decoration: underline;
}

.resource-section.buyer-oriented h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 15px;
}

.resource-section.buyer-oriented p.intro {
    text-align: center;
    color: #555;
    font-size: 1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resource-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.resource-card h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.resource-card p,
.resource-card li {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

.resource-card ul {
    padding-left: 20px;
}

.resource-card a {
    color: #944f70;
    font-weight: 600;
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

.resource-card.breeders { border-top: 4px solid #ffe0e0; }
.resource-card.pricing  { border-top: 4px solid #edf053; }
.resource-card.climate  { border-top: 4px solid #d0eaff; }
.resource-card.laws     { border-top: 4px solid #f5d6ff; }
.resource-card.spots    { border-top: 4px solid #b3f1c5; }
.resource-card.related  { border-top: 4px solid #ffd580; }

.resource-card .tip {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.breeder-cta {
    background: #fff7f8;
    border: 1px solid #ffd5df;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 0;
}

.maine-coon-state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.maine-coon-state-grid .state-link {
    display: block;
    padding: 15px;
    background: #f8f8f8;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.maine-coon-state-grid .state-link:hover {
    background: #ffe0e0;
    color: #000;
}

.maine-coon-state-grid .state-link:active {
    background: #ffb3b3;
}

@media only screen and (max-width: 600px) {
    .maine-coon-state-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .maine-coon-state-grid .state-link {
        font-size: 14px;
        font-weight: normal;
        padding: 5px;
    }
}

footer.site-info .copyright-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

footer.site-info .copyright-bar a:hover {
    color: #cc3300;
    text-decoration: underline;
}

.site-info {
    background-color: #1c1c1c;
}

.menu-footer-menu-container ul.menu li a {
    color: #ffffff;
    text-decoration: none;
}

.menu-footer-menu-container ul.menu li a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

#block-22 p {
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 450;
}

#block-26 p {
    margin-bottom: 0.4em;
}

.top-bar {
    background-color: #944f70;
}

.site-header {
    padding: 0;
}

@media (max-width: 768px) {
    .main-nav {
        display: flex;
    }
}

@media (max-width: 480px) {
    .cat-gallery-item {
        width: 31% !important;
    }
}

.site-footer .footer-widgets .footer-widgets-container .inner-padding {
    padding: 0;
    color: #fff;
}

.site-footer {
    margin-top: 3rem;
    padding: 0rem 0;
}

.footer-widgets {
    background-color: #944f70;
}

/* Gallery container */
.cat-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 20px 0;
}

.cat-gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.cat-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cat-gallery-item:hover {
    transform: scale(1.03);
}

.cat-gallery-item.featured {
    border: 2px solid #ff9800;
    order: -1;
}

@media (max-width: 768px) {
    .cat-gallery-item {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .cat-gallery-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .single-product .container {
        padding: 0;
    }
    .separate-containers .site-main {
        margin-top: 0px;
    }
}

.owner-resources {
    margin-top: 3rem;
    padding: 1rem 0;
}

.resource-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* FIX: was "entry-content:not(:first-child)" — missing the dot, selector never fired */
.entry-content:not(:first-child) {
    margin-top: 0em;
}

nav.yoast-breadcrumbs {
    margin-bottom: 18px;
}

/* Fix GeneratePress sidebar layout on single posts — prevent content overflow */
.separate-containers .inside-right-sidebar {
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding: 15px;
    }
}

.new-flex-payment {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-gallery-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.product-gallery-swiper img {
    width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .cat-filter-form {
        padding: 1rem 0.5rem;
    }
    .sort-select {
        padding: 0.3rem 0.9rem;
    }
    .filter-dropdown summary {
        width: 55% !important;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .cta-mobile-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .cta-buttons .cta-reserve {
        background-color: #944f70;
        color: #fff;
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 8px;
        font-weight: bold;
    }
    .cta-buttons .cta-ask {
        background-color: #f5f5f5;
        color: #333;
        padding: 0.65rem 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
    }
    .product-sidebar .sidebar-sticky .cta-mobile-wrapper {
        display: none;
    }
    body .cta-mobile-wrapper {
        display: block;
    }
}

@media (max-width: 767px) {
    .product-main {
        flex: none;
        width: 100%;
    }
}

.product-content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-main {
    flex: 1 1 65%;
    min-width: 0;
}

.product-sidebar {
    flex: 1 1 30%;
    max-width: 400px;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
    background: #fff;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .product-content-layout {
        flex-direction: column;
    }
    .product-sidebar {
        max-width: 100%;
        width: 100%;
    }
    .sidebar-sticky {
        position: static;
        top: auto;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.cat-filter-form {
    background-color: #f8fbff;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
}

.filter-dropdown {
    position: relative;
    flex: 1;
}

.filter-dropdown summary {
    list-style: none;
    cursor: pointer;
    background-color: #edf053;
    color: #111;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    border: none;
    width: 10%;
}

.filter-dropdown[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-options {
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 250px;
    z-index: 99;
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
}

.filter-options select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: auto;
}

.filter-apply-button {
    background: #111;
    color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.sort-select {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e0e4ed;
    font-size: 1rem;
    color: #222;
    background-color: #fff;
    min-width: 140px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .filter-sort-bar {
        flex-wrap: nowrap;
    }
    .filter-dropdown,
    .sort-select {
        flex: 1;
        width: auto;
    }
    .filter-options {
        position: absolute;
        width: 100%;
    }
}

.my-info-container {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.my-info-container h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.info-card {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85em;
    color: #777;
}

.info-value {
    display: flex;
    align-items: center;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    gap: 6px;
}

.info-value .icon {
    width: 16px;
    height: 16px;
    color: #888;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
        gap: 8px;
    }
    .info-label {
        font-size: 0.6em;
        color: #777;
    }
    .info-value {
        font-size: 0.8em;
        font-weight: 500;
        gap: 5px;
    }
}

/* Adoption Journey Section */
.adoption-journey-section-wrapper {
    /* font-family intentionally omitted — inherits Poppins from body */
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-radius: 12px;
    max-width: 100%; /* FIX: was 1200px which fought the flex column layout */
    margin: 30px 0;  /* FIX: was 'auto' which caused centering conflicts in flex */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

.adoption-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* AdSense guard — prevent injected ads becoming grid items */
.adoption-steps-grid > ins,
.adoption-steps-grid > .adsbygoogle {
    grid-column: 1 / -1; /* span full width so they don't act as step cards */
    max-width: 100%;
    overflow: hidden;
}

.adoption-step-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease-in-out;
    height: auto;
}

.adoption-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-number-circle {
    background-color: #e6ff70;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-description {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.final-community-step .step-number-circle {
    background-color: #d0eaff;
    color: #0073e6;
    font-size: 2em;
    font-weight: 500;
}

@media (max-width: 900px) {
    .adoption-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .adoption-journey-section-wrapper {
        padding: 30px 15px;
        margin: 20px auto;
    }
    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .adoption-step-card {
        padding: 20px;
        border-radius: 10px;
    }
    .step-number-circle {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .step-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    .step-description {
        font-size: 0.95em;
    }
}

/* Adoption Payment Sidebar Widget */
.adoption-payment-widget {
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    /* font-family intentionally omitted — inherits Poppins from body */
    max-width: 400px;
    position: sticky;
    top: 90px;
}

.adoption-payment-widget h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.fee-description {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    background: #f8f8ff;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option input[type="radio"] {
    margin-top: 5px;
}

.payment-option:hover,
.payment-option input:checked + .option-content {
    border-color: #b3b3ff;
}

.option-content strong {
    display: block;
    font-size: 1em;
    color: #333;
}

.option-content span {
    font-size: 0.85em;
    color: #777;
}

.balance-note {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-price {
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0 10px;
}

#payment-amount {
    font-size: 2em;
    color: #333;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cta-buttons button {
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
}

.cta-reserve {
    background: #944F70;
    color: #fff;
}

.cta-ask {
    background: #e4ddff;
    color: #444;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
}

/* Self-contained payment badge — no external requests */
.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #444;
    background: #fff;
    min-width: 36px;
    height: 24px;
}

.secure-label {
    font-size: 0.85em;
    color: #777;
    text-align: center;
    margin-bottom: 20px;
}

.pay-later-banner {
    background: #fff0f6;
    border-left: 5px solid #f472b6;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95em;
}

.learn-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #ec4899;
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    border-radius: 4px;
}
