/* zandrapaints - Self-Hosted Website Styles
   Matched to the look of zandrapaints.com (Square Online theme) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
    /* Color Palette (sampled from zandrapaints.com) */
    --primary-green: #4c655c;
    --dark-green: #3f554d;
    --golden: #e6b55b;
    --golden-dark: #d9a445;
    --heart-pink: #e07b86;
    --sage-light: #ebf1ee;
    --black: #000000;
    --white: #ffffff;
    --border: #d5dcd9;
    --text-dark: #1a1a1a;
    --text-muted: #6b7a74;

    /* Typography */
    --font: 'Poppins', helvetica, arial, sans-serif;

    /* Layout */
    --container-max: 1100px;
    --gutter: 40px;
    --section-space: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-green);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Buttons - pill shaped, like the live site */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 100px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

.btn-golden {
    background-color: var(--golden);
    color: var(--black);
}

.btn-golden:hover {
    background-color: var(--golden-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 18px var(--gutter);
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto;
}

.logo-text {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--dark-green);
    letter-spacing: -0.01em;
}

.logo-text .heart {
    color: var(--heart-pink);
    font-size: 0.9em;
    position: relative;
    top: -0.45em;
    margin-left: 1px;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    flex: 1;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
    color: var(--primary-green);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: var(--primary-green);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-icons a,
.icon-link {
    color: var(--primary-green);
    display: inline-flex;
}

.nav-icons svg,
.icon-link svg,
.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--primary-green);
}

.mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--primary-green);
    cursor: pointer;
}

/* Hero - full-width painting with a white card on top */
.hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: var(--sage-light);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
}

.hero-card {
    position: relative;
    background: var(--white);
    padding: 36px 36px 32px;
    border-radius: 6px;
    text-align: center;
    max-width: 420px;
}

.hero-card h1 {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-card .btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-card .btn {
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* Section headings */
.section {
    padding: var(--section-space) 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-green);
}

/* Bestseller carousel */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.carousel-arrows {
    display: flex;
    gap: 14px;
}

.carousel-arrows button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 4px;
    display: inline-flex;
}

.carousel-arrows svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 3.6);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    scroll-snap-align: start;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 12px;
}

.carousel-item h4 {
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 2px;
    line-height: 1.35;
}

.carousel-item .price {
    font-size: 0.85rem;
    color: var(--black);
    margin: 0;
}

/* Custom commission callout */
.split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    max-width: 280px;
    width: 100%;
}

.split-text h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.split-text p {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 26px;
    max-width: 380px;
}

/* Testimonial */
.testimonial-section {
    padding: 44px 20px;
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
}

.testimonial-content {
    max-width: 440px;
    margin: 0 auto;
}

.testimonial-content blockquote {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 18px;
}

.testimonial-content cite {
    font-style: normal;
    font-size: 0.85rem;
}

/* Browse the tiny world gallery */
.browse-section {
    background-color: var(--sage-light);
    padding: 40px 0 50px;
    text-align: center;
}

.browse-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 22px;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: start;
}

.browse-grid img {
    width: 100%;
    transition: transform 0.3s ease;
}

.browse-grid a:hover img {
    transform: scale(1.03);
}

/* "Shop all" link under the bestsellers row */
.carousel-footer {
    text-align: center;
    margin-top: 28px;
}

/* Meet the artist */
.artist-section {
    padding-top: 24px;
}

.split-image .artist-photo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-left: auto;
}

/* Newsletter */
.newsletter-section {
    padding: 48px 20px 64px;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: var(--black);
    margin: 0 auto 24px;
    max-width: 300px;
}

.newsletter-form {
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-fields {
    display: flex;
}

/* Kit's script fills these in with success / error messages */
.newsletter-form .formkit-alert {
    list-style: none;
    margin: 0 0 14px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: var(--sage-light);
    color: var(--primary-green);
}

.newsletter-form .formkit-alert:empty {
    display: none;
}

.newsletter-form .formkit-alert-error {
    background: #fbe9e6;
    color: #a2331f;
}

.newsletter-form .formkit-spinner {
    display: none;
}

/* One line on desktop; wraps naturally on phones */
.newsletter-section .newsletter-lede {
    max-width: none;
}

.newsletter-section .newsletter-alt {
    margin-top: 16px;
    font-size: 0.9rem;
}

.newsletter-alt a {
    color: var(--primary-green);
    text-decoration: underline;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 13px 22px;
    border: 1px solid var(--primary-green);
    border-right: none;
    border-radius: 100px 0 0 100px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
}

.newsletter-form button {
    padding: 13px 24px;
    border: 1px solid var(--primary-green);
    border-radius: 0 100px 100px 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 40px 0 36px;
}

.footer .logo img {
    height: 20px;
}

.footer .logo-text {
    font-size: 0.95rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 22px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary-green);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
}

.footer-social svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-copy {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Shop Page */
.shop-layout {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 38px;
    padding-top: 30px;
    padding-bottom: 60px;
}

.shop-sidebar .sidebar-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.category-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.category-nav a {
    font-size: 0.85rem;
    color: var(--primary-green);
    line-height: 1.6;
}

.category-nav a:hover {
    text-decoration: underline;
}

.category-nav a.active {
    font-weight: 500;
    color: var(--black);
}

.filter-group {
    border-top: 1px solid var(--border);
}

.filter-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary-green);
    cursor: pointer;
    list-style: none;
}

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

.filter-group summary::after {
    content: '';
    border: 5px solid transparent;
    border-top: 6px solid var(--primary-green);
    border-bottom: 0;
    transition: transform 0.2s ease;
}

.filter-group[open] summary::after {
    transform: rotate(180deg);
}

.filter-group .filter-body {
    padding: 0 0 16px;
    font-size: 0.85rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    accent-color: var(--primary-green);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--black);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    padding: 9px 40px 9px 12px;
    min-width: 150px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 8px;
}

.product-card {
    text-align: center;
}

.product-card .product-image {
    display: block;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-info h3 {
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--primary-green);
    line-height: 1.3;
    margin: 0 10px 4px;
}

.product-info .price {
    font-size: 0.85rem;
    color: var(--primary-green);
    margin-bottom: 0;
}

.product-info .badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--sage-light);
    color: var(--primary-green);
}

.no-results {
    display: none;
    padding: 60px 0;
    text-align: center;
    color: var(--text-muted);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

.about-text h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 1.4rem;
}

.about-text a {
    text-decoration: underline;
}

/* Commissions Page */
.commissions-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.commissions-hero-image {
    grid-column: 1;
    grid-row: 1;
    margin-left: calc(-1 * var(--gutter));
    align-self: stretch;
}

.commissions-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.commissions-card {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    width: 56%;
    background: var(--white);
    padding: 36px 26px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
    margin: 50px 0;
}

.commissions-card h1 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.commissions-card p,
.commissions-card li {
    font-size: 0.95rem;
    color: var(--black);
}

.commissions-card ul {
    margin: -0.5rem 0 1rem 2.4rem;
}

.how-section {
    background: var(--primary-green);
    padding: 60px 20px;
}

.how-card {
    background: var(--white);
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 36px;
    border-radius: 6px;
    text-align: center;
}

.how-card h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.how-card p {
    color: var(--black);
}

.how-card a {
    text-decoration: underline;
}

.contact-section {
    padding: 70px 0 50px;
}

.contact-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-section .lede {
    text-align: center;
    color: var(--black);
    margin-bottom: 32px;
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 1px var(--primary-green);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Utilities */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Responsive Design */
@media (max-width: 900px) {
    .nav-links {
        gap: 18px;
    }

    .header-content {
        gap: 28px;
    }

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

    .carousel-track {
        grid-auto-columns: calc((100% - 20px) / 2.4);
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
        --section-space: 48px;
    }

    .nav-links {
        display: none;
    }

    .nav {
        justify-content: flex-end;
    }

    .mobile-menu-btn {
        display: inline-flex;
        order: -1;
    }

    .header-content {
        gap: 16px;
    }

    .hero {
        min-height: 320px;
    }

    .split,
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-image img {
        margin: 0 auto;
    }

    .split-text {
        text-align: center;
    }

    .split-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .split-text h2 {
        font-size: 1.7rem;
    }

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

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .filter-group {
        display: none;
    }

    .commissions-hero {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .commissions-hero-image {
        margin: 0;
    }

    .commissions-hero-image img {
        min-height: 0;
        max-height: 340px;
    }

    .commissions-card {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 24px 8px;
    }

    .carousel-track {
        grid-auto-columns: 70%;
    }

    .shop-toolbar {
        flex-wrap: wrap;
    }
}

/* Announcement banner (top of the homepage) */
.announcement-bar {
    display: block;
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.announcement-bar:hover {
    color: var(--white);
}
