/*
Theme Name: Schnauzer Haven
Theme URI: https://example.com/schnauzer-haven
Author: Schnauzer Haven Team
Author URI: https://example.com
Description: A clean, modern, professional WordPress theme designed specifically for Schnauzer and puppy rescue organizations. Fully compatible with the Schnauzer Haven Rescue plugin, Elementor, and Elementor Pro. Warm, trustworthy nonprofit aesthetic with excellent mobile experience.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schnauzer-haven
Tags: animal-rescue, nonprofit, elementor, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, theme-options, translation-ready, accessibility-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --sh-primary: #2c5f7c;
    --sh-primary-dark: #1a3a4a;
    --sh-accent: #e8a87c;
    --sh-accent-hover: #d4956a;
    --sh-light: #f7f9fb;
    --sh-white: #ffffff;
    --sh-text: #2d3748;
    --sh-muted: #718096;
    --sh-border: #e2e8f0;
    --sh-success: #2d6a4f;
    --sh-radius: 10px;
    --sh-radius-sm: 6px;
    --sh-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --sh-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --sh-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sh-heading-font: "Inter", system-ui, sans-serif;
    --sh-transition: all 0.25s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sh-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--sh-text);
    background: var(--sh-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--sh-primary);
    text-decoration: none;
    transition: var(--sh-transition);
}

a:hover {
    color: var(--sh-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sh-heading-font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--sh-primary-dark);
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.sh-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.sh-container-wide {
    max-width: 1280px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--sh-white);
    border-bottom: 1px solid var(--sh-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 52px;
    width: auto;
}

.site-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sh-primary-dark);
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.8rem;
    color: var(--sh-muted);
    margin: 0;
    font-weight: 500;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--sh-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--sh-radius-sm);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--sh-primary);
    background: rgba(44, 95, 124, 0.07);
}

/* Donate button in nav */
.header-donate .sh-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    color: var(--sh-primary-dark);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    background: var(--sh-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--sh-radius);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--sh-transition);
    line-height: 1.2;
}

.sh-btn:hover {
    background: var(--sh-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--sh-shadow);
}

.sh-btn-accent {
    background: var(--sh-accent);
    color: var(--sh-primary-dark) !important;
}

.sh-btn-accent:hover {
    background: var(--sh-accent-hover);
}

.sh-btn-outline {
    background: transparent;
    border: 2px solid var(--sh-primary);
    color: var(--sh-primary) !important;
}

.sh-btn-outline:hover {
    background: var(--sh-primary);
    color: #fff !important;
}

.sh-btn-white {
    background: #fff;
    color: var(--sh-primary-dark) !important;
}

.sh-btn-white:hover {
    background: var(--sh-light);
}

.sh-btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Hero Section – Premium Full-Bleed Professional Layout
   ========================================================================== */
.sh-hero-premium {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f2a36;
}

.sh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sh-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.sh-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(15, 42, 54, 0.92) 0%,
        rgba(15, 42, 54, 0.78) 42%,
        rgba(15, 42, 54, 0.35) 70%,
        rgba(15, 42, 54, 0.15) 100%
    );
}

.sh-hero-premium .sh-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sh-hero-content-box {
    max-width: 560px;
    color: #fff;
    padding: 3.5rem 0;
}

.sh-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.sh-hero-content-box h1 {
    color: #fff;
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    margin: 0 0 1.15rem;
    line-height: 1.22;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.sh-hero-content-box p {
    font-size: 1.08rem;
    opacity: 0.93;
    margin: 0 0 1.9rem;
    line-height: 1.7;
    max-width: 480px;
}

.sh-hero-buttons {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.sh-btn-outline-white {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff !important;
}

.sh-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .sh-hero-premium {
        min-height: 480px;
        align-items: flex-end;
    }
    .sh-hero-overlay {
        background: linear-gradient(
            to top,
            rgba(15, 42, 54, 0.95) 0%,
            rgba(15, 42, 54, 0.75) 45%,
            rgba(15, 42, 54, 0.35) 100%
        );
    }
    .sh-hero-content-box {
        padding: 2.5rem 0 2.8rem;
        text-align: center;
        max-width: 100%;
    }
    .sh-hero-content-box p {
        margin-left: auto;
        margin-right: auto;
    }
    .sh-hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sh-hero-premium {
        min-height: 440px;
    }
    .sh-hero-content-box h1 {
        font-size: 1.6rem;
    }
    .sh-hero-content-box p {
        font-size: 0.98rem;
    }
}

/* ==========================================================================
   Content Areas
   ========================================================================== */
.site-main {
    padding: 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content > *:first-child {
    margin-top: 0;
}

/* Page titles */
.page-header {
    background: var(--sh-light);
    padding: 2.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--sh-border);
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--sh-primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-brand .site-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
    opacity: 0.95;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.45rem;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--sh-transition);
}

.footer-social a:hover {
    background: var(--sh-accent);
    color: var(--sh-primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ==========================================================================
   Plugin Compatibility – Dogs, Gallery, Stats, Forms
   ========================================================================== */

/* Override / enhance plugin styles for better integration */
.shr-hero {
    /* Let theme hero take precedence if used */
}

.shr-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 3.5rem 1.25rem;
}

.shr-dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.shr-dog-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    overflow: hidden;
    box-shadow: var(--sh-shadow);
    transition: var(--sh-transition);
    border: 1px solid var(--sh-border);
}

.shr-dog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-shadow-hover);
}

.shr-dog-image img,
.shr-placeholder-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.shr-placeholder-img {
    background: linear-gradient(135deg, #e8f0f5, #d4e4ed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.shr-dog-info {
    padding: 1.35rem;
}

.shr-dog-info h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
}

.shr-dog-info h3 a {
    color: var(--sh-primary-dark);
}

.shr-dog-meta {
    font-size: 0.875rem;
    color: var(--sh-muted);
    margin-bottom: 0.7rem;
}

/* Stats */
.shr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.shr-stat {
    background: var(--sh-white);
    padding: 1.75rem 1rem;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
}

.shr-stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sh-primary);
    line-height: 1.15;
}

.shr-stat-label {
    font-size: 0.9rem;
    color: var(--sh-muted);
    margin-top: 0.25rem;
}

/* Gallery (legacy rules overridden by the professional section below) */

/* Forms */
.shr-form {
    background: var(--sh-light);
    padding: 2rem;
    border-radius: var(--sh-radius);
    border: 1px solid var(--sh-border);
    max-width: 580px;
}

.shr-form-row {
    margin-bottom: 1.2rem;
}

.shr-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--sh-primary-dark);
}

.shr-form-row input,
.shr-form-row select,
.shr-form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shr-form-row input:focus,
.shr-form-row select:focus,
.shr-form-row textarea:focus {
    outline: none;
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.15);
}

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

.shr-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
    text-align: center;
    transition: var(--sh-transition);
}

.shr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow-hover);
}

.shr-card h3 {
    color: var(--sh-primary);
    margin-bottom: 0.7rem;
}

/* Single dog */
.shr-single-dog {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.shr-dog-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.shr-single-dog-img {
    width: 100%;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
}

.shr-dog-meta-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.shr-dog-meta-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--sh-border);
    font-size: 0.95rem;
}

.shr-dog-meta-list li:last-child {
    border-bottom: none;
}

/* Success toast */
.shr-success-toast {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    background: var(--sh-success);
    color: #fff;
    padding: 1rem 1.4rem;
    border-radius: var(--sh-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 340px;
    animation: slideIn 0.35s ease;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.elementor-page .site-main {
    padding: 0;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
}

/* Full width support */
.elementor-template-full-width .site-header,
.elementor-template-full-width .site-footer {
    /* keep them */
}

/* Make sure Elementor content isn't constrained too tightly */
.elementor .shr-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sh-text-center { text-align: center; }
.sh-mt-0 { margin-top: 0; }
.sh-mb-0 { margin-bottom: 0; }
.sh-section-spacing { padding: 4rem 0; }
.sh-bg-light { background: var(--sh-light); }
.sh-bg-primary { background: var(--sh-primary); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .shr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--sh-border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation a {
        padding: 0.75rem 1rem;
    }

    .header-donate {
        display: none;
    }

    .shr-dog-header {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .shr-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .shr-form {
        padding: 1.5rem;
    }
}


/* ==========================================================================
   Homepage Ways Gallery (Adopt / Foster / Donate)
   ========================================================================== */
.sh-ways-section {
    padding: 4.5rem 0;
}

.sh-section-header {
    margin-bottom: 2.75rem;
}

.sh-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.75rem;
}

.sh-ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.sh-way-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    overflow: hidden;
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
    transition: var(--sh-transition);
    display: flex;
    flex-direction: column;
}

.sh-way-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-shadow-hover);
}

.sh-way-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.sh-way-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.sh-way-card:hover .sh-way-image img {
    transform: scale(1.06);
}

.sh-way-content {
    padding: 1.5rem 1.4rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sh-way-content h3 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    color: var(--sh-primary);
}

.sh-way-content p {
    color: var(--sh-muted);
    font-size: 0.97rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Who We Are section */
.sh-who-section {
    padding: 4.5rem 0;
}

.sh-who-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.sh-who-image img {
    width: 100%;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    object-fit: cover;
    max-height: 480px;
}

.sh-who-content h2 {
    margin-bottom: 1rem;
}

.sh-who-content p {
    margin-bottom: 1.25rem;
}

/* Feature portrait */
.sh-feature-portrait {
    max-width: 720px;
    margin: 0 auto;
}

.sh-feature-img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .sh-ways-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .sh-who-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sh-who-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .sh-way-image {
        height: 210px;
    }
}


/* ==========================================================================
   Happy Tails Gallery – Professional (Forced 2 columns on mobile)
   ========================================================================== */

/* Mobile first – ALWAYS 2 columns */
.shr-gallery-grid,
div.shr-gallery-grid,
.entry-content .shr-gallery-grid,
.site-main .shr-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.shr-gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent grid blowout */
}

.shr-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.shr-gallery-img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
}

.shr-gallery-caption {
    padding: 0.7rem 0.75rem 0.9rem;
    flex: 1;
}

.shr-gallery-caption h4 {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--sh-primary-dark);
    line-height: 1.3;
}

.shr-gallery-story {
    font-size: 0.75rem;
    color: var(--sh-muted);
    line-height: 1.4;
}

/* Tablet (640px+) */
@media (min-width: 640px) {
    .shr-gallery-grid,
    div.shr-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.15rem !important;
    }
    .shr-gallery-img {
        height: 190px !important;
    }
    .shr-gallery-caption {
        padding: 1rem 1.1rem 1.2rem;
    }
    .shr-gallery-caption h4 {
        font-size: 1.05rem;
    }
    .shr-gallery-story {
        font-size: 0.875rem;
    }
}

/* Desktop (900px+) – 3 columns */
@media (min-width: 900px) {
    .shr-gallery-grid,
    div.shr-gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.4rem !important;
    }
    .shr-gallery-img {
        height: 210px !important;
    }
}

/* Large desktop (1200px+) – 4 columns */
@media (min-width: 1200px) {
    .shr-gallery-grid,
    div.shr-gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }
    .shr-gallery-img {
        height: 220px !important;
    }
}

/* WooCommerce basic compatibility */
.woocommerce .products,
.woocommerce-page .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
    padding-bottom: 1rem !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--sh-primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover {
    background: var(--sh-primary-dark) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--sh-primary);
}

.woocommerce span.onsale {
    background: var(--sh-accent);
    color: var(--sh-primary-dark);
}

/* Elementor full-width comfort */
.elementor-page .site-main,
.elementor-template-full-width .site-main {
    padding: 0;
    max-width: none;
}

.elementor-section .shr-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}


/* ===== FORCE 2 COLUMNS ON MOBILE FOR ALL GALLERIES (Homepage + Happy Tails) ===== */
@media (max-width: 899px) {
    .shr-gallery-grid,
    div.shr-gallery-grid,
    .entry-content .shr-gallery-grid,
    .site-main .shr-gallery-grid,
    .sh-section .shr-gallery-grid,
    body .shr-gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.7rem !important;
    }

    .shr-gallery-item {
        min-width: 0 !important;
    }

    .shr-gallery-img {
        height: 135px !important;
        object-fit: cover !important;
    }

    .shr-gallery-caption {
        padding: 0.6rem 0.65rem 0.8rem !important;
    }

    .shr-gallery-caption h4 {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
    }

    .shr-gallery-story {
        font-size: 0.7rem !important;
        line-height: 1.35 !important;
    }
}
