/*
 Theme Name: Errant-Arts
 Theme URI: https://errant-arts.co.uk
 Author: Matt Palmer (Palmertech)
 Author URI: https://palmertech.co.uk
 Description: Custom WordPress theme for Errant-Arts with WooCommerce integration.
 Version: 1.3.1
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: errant-arts
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --ea-primary:    #1f1f1f;
    --ea-accent:     #c37a45;
    --ea-bg:         #f7f7f7;
    --ea-text:       #222;
    --ea-muted:      #666;
    --ea-max-width:  1100px;
    --ea-radius:     8px;
    --ea-transition: 0.18s ease;
}

/* ============================================================
   Reset / Base
   ============================================================ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--ea-bg);
    color: var(--ea-text);
    line-height: 1.6;
}

a { color: var(--ea-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    width: min(100%, var(--ea-max-width));
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e4e4e4;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner,
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 1rem;
}

.site-logo { font-weight: 700; font-size: 1.2rem; color: var(--ea-primary); }
.site-description { margin: 0.2rem 0 0; color: var(--ea-muted); font-size: 0.95rem; }

.site-nav__list,
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.site-nav__list a,
.nav-links a {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background var(--ea-transition), color var(--ea-transition);
    color: var(--ea-primary);
    font-weight: 600;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.nav-links a:hover,
.nav-links .current-menu-item > a {
    background: var(--ea-primary);
    color: #fff;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ea-primary);
    border-radius: 2px;
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

/* Brand + nav columns side by side */
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
}

/* Brand block — left, takes up natural space */
.site-footer__brand {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__site-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
}

/* Nav columns — flex row, each column equal */
.site-footer__nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-footer__col {
    flex: 1;
    min-width: 130px;
}

.site-footer__col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    margin: 0 0 0.85rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    color: #bbb;
    font-size: 0.88rem;
    transition: color var(--ea-transition);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Bottom bar */
.site-footer__bottom {
    border-top: 1px solid #2a2a2a;
    padding: 1rem 0;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__copy,
.site-footer__legal {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
}

/* ============================================================
   Site Main
   ============================================================ */
.site-main { padding: 2rem 0 3rem; }

/* ============================================================
   Content Pages
   ============================================================ */
.content-page h1,
.content-page h2,
.content-page h3 { color: var(--ea-primary); }

.content-page ul { padding-left: 1.2rem; }

.about-container,
.contact-container,
.reviews-page,
.categories-page,
.collection-header,
.artwork-grid,
.categories-nav,
.content-page {
    background: #fff;
    border-radius: var(--ea-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Shop Hero Banner
   ============================================================ */
.shop-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1f1f1f 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient( circle at 20% 50%, rgba(195, 122, 69, 0.15) 0%, transparent 50% ),
        radial-gradient( circle at 80% 20%, rgba(195, 122, 69, 0.08) 0%, transparent 40% );
    pointer-events: none;
}

.shop-hero__inner { position: relative; z-index: 1; max-width: 640px; }

.shop-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}

.shop-hero__title span { color: var(--ea-accent); }

.shop-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.7;
    max-width: 520px;
}

/* ============================================================
   Shop — Category Tiles
   ============================================================ */
.shop-categories {
    background: #fff;
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.shop-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ea-muted);
    margin: 0 0 1.5rem;
}

.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.shop-cat-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--ea-radius);
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
    color: var(--ea-primary);
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shop-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-decoration: none;
}

.shop-cat-tile__img-wrap { aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; }
.shop-cat-tile__img-wrap--placeholder { display: flex; align-items: center; justify-content: center; color: #aaa; }
.shop-cat-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.shop-cat-tile:hover .shop-cat-tile__img { transform: scale(1.04); }
.shop-cat-tile__label { padding: 0.65rem 0.8rem 0.75rem; display: flex; flex-direction: column; gap: 0.1rem; }
.shop-cat-tile__name { font-weight: 700; font-size: 0.9rem; color: var(--ea-primary); }
.shop-cat-tile__count { font-size: 0.78rem; color: var(--ea-muted); }

/* ============================================================
   Shop Toolbar
   ============================================================ */
.shop-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.shop-result-count { margin: 0; font-size: 0.875rem; color: var(--ea-muted); font-weight: 600; white-space: nowrap; }

/* ============================================================
   Collection Header
   ============================================================ */
.collection-header-inner { display: flex; flex-direction: column; gap: 1rem; }
.collection-heading h1 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.category-image { max-width: 480px; border-radius: var(--ea-radius); overflow: hidden; }
.category-description { color: var(--ea-muted); max-width: 640px; margin: 0; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--ea-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--ea-accent); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-separator { color: #bbb; }
.breadcrumbs-current { font-weight: 600; color: var(--ea-primary); }

/* ============================================================
   Category Pills
   ============================================================ */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.category-pill {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: var(--ea-primary);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background var(--ea-transition), color var(--ea-transition), border-color var(--ea-transition);
    text-decoration: none;
}

.category-pill:hover {
    background: var(--ea-primary);
    color: #fff;
    border-color: var(--ea-primary);
    text-decoration: none;
}

.category-pill.is-active,
.category-pill.active {
    background: var(--ea-primary);
    color: #fff;
    border-color: var(--ea-primary);
}

/* ============================================================
   Products Grid
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

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

/* ============================================================
   Product Card
   ============================================================ */
.product-card {
    background: #fff;
    border-radius: var(--ea-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
}

.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper { position: relative; aspect-ratio: 4 / 5; background: #eee; overflow: hidden; }
.artwork-image { width: 100%; height: 100%; }

/* ============================================================
   Canvas / Protected Viewer
   ============================================================ */
.ea-gallery-protected,
.ea-single-protected { position: relative; width: 100%; height: 100%; }

.ea-protected-viewer { width: 100%; height: 100%; display: block; }

.ea-gallery-canvas,
.ea-single-canvas,
.ea-canvas { width: 100%; height: 100%; display: block; pointer-events: none; }

.ea-watermark-gallery {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    pointer-events: none;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.ea-watermark-single {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    pointer-events: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    user-select: none;
}

.watermark-notice {
    font-size: 0.78rem;
    color: var(--ea-muted);
    text-align: center;
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* ============================================================
   No-image Placeholder
   ============================================================ */
.no-image,
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
}

/* ============================================================
   Product Info
   ============================================================ */
.product-info {
    padding: 0.9rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-title { font-size: 0.95rem; font-weight: 600; margin: 0; color: var(--ea-primary); }
.price, .woocommerce-Price-amount { color: var(--ea-accent); font-weight: 700; font-size: 0.9rem; margin: 0; }

/* ============================================================
   Single Product Page
   ============================================================ */
.single-product-page {
    background: #fff;
    border-radius: var(--ea-radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.single-product-image { position: relative; }

.ea-single-protected {
    border-radius: var(--ea-radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 4 / 3;
}

.ea-single-canvas { width: 100% !important; height: 100% !important; }

.single-product-summary .product_title,
.single-product-summary h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
    color: var(--ea-primary);
}

.single-product-summary .price { font-size: 1.5rem; margin-bottom: 1rem; }

.single-product-summary .woocommerce-product-details__short-description {
    color: var(--ea-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.single-product-summary .cart { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.single-product-summary .qty {
    width: 70px;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.single-product-summary .single_add_to_cart_button {
    background: var(--ea-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
}

.single-product-summary .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.single-product-summary .product_meta { margin-top: 1.25rem; font-size: 0.85rem; color: var(--ea-muted); }
.single-product-tabs { border-top: 1px solid #eee; padding-top: 2rem; }

.single-product-tabs .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 1.5rem;
    border-bottom: 2px solid #eee;
}

.single-product-tabs .woocommerce-tabs ul.tabs li { margin: 0; }

.single-product-tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    color: var(--ea-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--ea-transition), border-color var(--ea-transition);
    text-decoration: none;
}

.single-product-tabs .woocommerce-tabs ul.tabs li.active a,
.single-product-tabs .woocommerce-tabs ul.tabs li a:hover {
    color: var(--ea-primary);
    border-bottom-color: var(--ea-primary);
}

/* ============================================================
   Related / Upsell Products
   ============================================================ */
.ea-related-products,
.related.products,
.upsells.products {
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.ea-related-products h2,
.related.products h2,
.upsells.products h2 { font-size: 1.25rem; margin: 0 0 1.25rem; color: var(--ea-primary); }

.ea-related-grid,
.related.products ul.products,
.upsells.products ul.products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem;
}

.ea-related-card,
.related.products ul.products li.product,
.upsells.products ul.products li.product {
    background: #fff;
    border-radius: var(--ea-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform var(--ea-transition);
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.ea-related-card:hover,
.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover { transform: translateY(-3px); }

.ea-related-link { display: block; text-decoration: none; color: inherit; }
.ea-related-image-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }

.ea-related-img,
.related.products ul.products li.product img,
.upsells.products ul.products li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    max-height: 220px;
}

.ea-related-info { padding: 0.75rem 0.9rem 0.25rem; }

.ea-related-title,
.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    padding: 0.75rem 0.9rem 0 !important;
    color: var(--ea-primary);
}

.ea-related-price { margin: 0; padding: 0 0.9rem 0.75rem; font-weight: 700; color: var(--ea-accent); font-size: 0.9rem; }

.ea-related-card .button,
.related.products ul.products li.product .button {
    display: block;
    margin: 0 0.9rem 0.9rem;
    padding: 0.5rem 0.75rem;
    background: var(--ea-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background var(--ea-transition);
}

.ea-related-card .button:hover,
.related.products ul.products li.product .button:hover { background: #444; text-decoration: none; }

/* ============================================================
   Legacy .artwork-card
   ============================================================ */
.artwork-card {
    display: block;
    background: #fff;
    border-radius: var(--ea-radius);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
    text-decoration: none;
    color: inherit;
}

.artwork-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.artwork-info { padding: 1rem; }

/* ============================================================
   Shop Pagination
   ============================================================ */
.shop-pagination { margin-top: 2rem; display: flex; justify-content: center; }

.shop-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--ea-transition), color var(--ea-transition);
    text-decoration: none;
    color: var(--ea-primary);
}

.shop-pagination .page-numbers.current,
.shop-pagination .page-numbers:hover {
    background: var(--ea-primary);
    color: #fff;
    border-color: var(--ea-primary);
    text-decoration: none;
}

/* ============================================================
   Empty Collection
   ============================================================ */
.empty-collection { text-align: center; padding: 3rem 1rem; color: var(--ea-muted); }

/* ============================================================
   About / Contact
   ============================================================ */
.about-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.about-text h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.signature { font-family: "Pacifico", cursive; }

.contact-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; }

.contact-form label,
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; }

.contact-form input,
.contact-form textarea,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    font-size: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    background: var(--ea-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Category List
   ============================================================ */
.category-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 0;
}

.category-item {
    border: 1px solid #eee;
    border-radius: var(--ea-radius);
    background: #fff;
    overflow: hidden;
    transition: transform var(--ea-transition), box-shadow var(--ea-transition);
}

.category-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); }
.category-item h2 { margin: 0.75rem 1rem 0.25rem; }
.category-item p { margin: 0 1rem 1rem; color: var(--ea-muted); }
.category-item img { width: 100%; height: 160px; object-fit: cover; }

/* ============================================================
   WooCommerce Cart / Order
   ============================================================ */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { padding: 0.75rem; border-bottom: 1px solid #eee; text-align: left; }
.cart-total { font-size: 1.1rem; font-weight: 700; }
.success-container { text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--ea-accent); }

/* ============================================================
   Reviews
   ============================================================ */
.review-item { border-bottom: 1px solid #eee; padding: 1rem 0; }
.review-item:last-child { border-bottom: none; }
.muted { color: var(--ea-muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .about-content,
    .contact-content { grid-template-columns: 1fr; }

    .site-header__inner,
    .header-container { flex-direction: column; align-items: flex-start; }

    .mobile-menu-toggle { display: flex; }

    .single-product-layout { grid-template-columns: 1fr; gap: 2rem; }
    .ea-single-protected { aspect-ratio: 3 / 2; }

    .shop-hero { padding: 2.5rem 0 2rem; }
    .shop-cat-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

    .site-footer__brand { flex: 0 0 100%; }
    .site-footer__nav { gap: 1.5rem; }
}

@media (max-width: 600px) {
    .products-grid,
    .masonry-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .ea-related-grid,
    .related.products ul.products,
    .upsells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }

    .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .collection-heading h1 { font-size: 1.5rem; }
    .product-info { padding: 0.7rem 0.75rem 0.9rem; }
    .single-product-page { padding: 1rem; }

    .site-footer__inner { gap: 2rem; }
    .site-footer__col { flex: 0 0 calc(50% - 1rem); }
    .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .products-grid,
    .masonry-grid,
    .ea-related-grid,
    .related.products ul.products,
    .upsells.products ul.products { grid-template-columns: 1fr !important; }

    .shop-cat-grid { grid-template-columns: 1fr; }
    .site-footer__col { flex: 0 0 100%; }
}
