/*
Theme Name: Griffon Block
Theme URI: https://griffongunsmithing.com
Author: Griffon Gunsmithing
Description: Stone and charcoal child of Twenty Twenty-Five. Edit the header, footer, colors, and pages in Appearance → Editor. Requires the Twenty Twenty-Five theme to be installed.
Version: 2.4.7
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: griffon-block
*/

.header-search { background: #f7f5f1; border-bottom: 1px solid #d4cfc4; padding: 0.7rem 1.25rem; }
.header-search .woocommerce-product-search,
.shop-search .woocommerce-product-search { display: flex; gap: 0.5rem; max-width: 1100px; margin: 0 auto; align-items: center; }
.header-search .search-field,
.shop-search .search-field { flex: 1; background: #fff; color: #1c1c1c; border: 1px solid #2c3136; padding: 0.55rem 0.75rem; font-size: 1rem; }
.header-search button,
.shop-search button { background: #2c3136; color: #f7f5f1; border: 0; padding: 0.55rem 0.9rem; cursor: pointer; }
.header-phone a { color: #2c3136; text-decoration: none; font-weight: 700; font-size: 1.35rem; }
.wp-block-navigation a { text-decoration: none; color: #1c1c1c; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product,
.product-category {
    background: #f7f5f1;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d4cfc4;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product img,
.product-category img,
.featured-card img {
    background: #ffffff;
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.wc-block-components-product-title,
.woocommerce-loop-category__title {
    color: #1c1c1c;
    font-size: 1rem;
    line-height: 1.35;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.wc-block-components-product-price,
.featured-card .price,
.featured-card h3 {
    color: #1c1c1c;
}
.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .woocommerce-product-details__short-description { color: #1c1c1c; }
.woocommerce div.product div.images img { background: #ffffff; }
.woocommerce mark.count, .count { background: transparent; color: #5c5852; }

.shop-catalog h1 { color: #2c3136; }
.shop-nav { background: #f7f5f1; border: 1px solid #d4cfc4; border-bottom: 2px solid #c9a227; border-radius: 4px; margin: 0 0 1.2rem; }
.shop-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.shop-nav li { position: relative; }
.shop-nav > ul > li > a { display: block; padding: 0.75rem 1.1rem; color: #1c1c1c; font-weight: 700; }
.shop-nav a:hover, .shop-nav .current > a { color: #8a6a12; }
.shop-nav ul ul { display: none; position: absolute; z-index: 40; min-width: 230px; margin: 0; padding: 0.3rem 0; list-style: none; background: #fff; border: 1px solid #d4cfc4; }
.shop-nav li:hover > ul, .shop-nav li:focus-within > ul, .shop-nav li.open > ul { display: block; }
.shop-nav ul ul ul { left: 100%; top: 0; }
.shop-nav ul ul a { display: block; padding: 0.45rem 0.9rem; color: #1c1c1c; white-space: nowrap; }
.shop-nav ul ul a:hover { background: #f7f5f1; }
.shop-nav .view-all { display: none; }

.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.shop-filters { background: #f7f5f1; border-left: 4px solid #c9a227; border-radius: 4px; padding: 0.8rem 1rem; }
.shop-filters > h2, .shop-filters summary { color: #2c3136; }
.shop-filters .widget-title { display: none; }
.shop-filters details { border-top: 1px solid #d4cfc4; }
.shop-filters summary { cursor: pointer; font-weight: 700; font-size: 0.82rem; padding: 0.28rem 0; list-style: none; }
.shop-filters summary::-webkit-details-marker, .shop-filters summary::marker { content: ""; }
.shop-filters summary::before { content: ">  "; }
.shop-filters details[open] > summary::before { content: "v  "; }
.shop-filters ul { list-style: none; margin: 0 0 0.35rem; padding: 0 0.35rem 0 0.9rem; max-height: 160px; overflow: auto; scrollbar-color: #5c5852 #e7e3db; }
.shop-filters ul::-webkit-scrollbar { width: 12px; }
.shop-filters ul::-webkit-scrollbar-track { background: #e7e3db; }
.shop-filters ul::-webkit-scrollbar-thumb { background: #5c5852; border-radius: 8px; }
.shop-filters li { margin: 0; font-size: 0.78rem; line-height: 1.25; color: #1c1c1c; }
.shop-filters a { color: #1c1c1c; }
.shop-filters ul.applied-filters { max-height: none; overflow: visible; padding-left: 0; }
.applied-filters li { display: flex; justify-content: space-between; gap: 0.4rem; }
.note { color: #5c5852; }

.featured-rotator { margin: 0.5rem 0 1.4rem; }
.featured-head { display: flex; align-items: center; justify-content: space-between; }
.featured-head h2 { margin: 0; color: #2c3136; font-size: 1.15rem; }
.featured-controls button { background: #fff; color: #1c1c1c; border: 1px solid #d4cfc4; width: 2rem; height: 2rem; cursor: pointer; }
.featured-viewport { overflow: hidden; margin-top: 0.6rem; }
.featured-track { display: flex; flex-wrap: nowrap; width: 100%; list-style: none; margin: 0; padding: 0; transition: transform 0.45s ease; }
.featured-card { box-sizing: border-box; flex: 0 0 calc(100% / var(--show, 3)); max-width: calc(100% / var(--show, 3)); padding: 0 0.4rem; }
.featured-card a { display: block; background: #f7f5f1; border: 1px solid #d4cfc4; border-radius: 4px; padding: 0.6rem; color: #1c1c1c; }

.contact-form label { display: block; margin: 0.8rem 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea,
.contact-form select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    width: 100%;
    max-width: 40rem;
    background: #fff;
    color: #1c1c1c;
    border: 1px solid #5c5852;
    padding: 0.4rem;
}

.shop-hero { margin: 0 0 1.25rem; }
.shop-hero img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: center; }
.shop-index { margin: 1.5rem 0 2rem; }
.shop-index ul { list-style: none; margin: 0; padding: 0; }
.shop-index > ul > li { border-top: 1px solid #d4cfc4; }
.shop-index > ul > li > a,
.shop-index > ul > li > span { display: block; padding: 0.85rem 0; color: #1c1c1c; font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.shop-index a:hover { color: #8a6a12; }
.shop-index ul ul { padding: 0 0 0.8rem 1rem; }
.shop-index ul ul a { color: #1c1c1c; text-decoration: none; font-weight: 500; }
.shop-index ul ul li { padding: 0.2rem 0; }
.filter-price { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; margin: 0.4rem 0; }
.filter-price input { width: 5.5rem; background: #fff; color: #1c1c1c; border: 1px solid #5c5852; padding: 0.2rem 0.3rem; }
.filter-price button { background: #2c3136; color: #f7f5f1; border: 0; padding: 0.35rem 0.6rem; cursor: pointer; }
.shop-filters li.is-hidden { display: none; }
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
button { border-radius: 0 !important; }
.filter-panel > summary { font-size: 1rem; padding: 0.45rem 0; }
@media (min-width: 801px) {
    .shop-filters > .filter-panel > summary { display: none; }
}
@media (max-width: 800px) {
    .shop-hero img { height: 240px; }
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-nav > ul { flex-direction: column; }
    .shop-nav ul ul, .shop-nav ul ul ul { position: static; display: none; box-shadow: none; }
    .shop-nav li.open > ul { display: block; }
    .shop-nav .view-all { display: block; }
    .featured-rotator { --show: 1; }
}
