/* EVERYDAYLILLIE - WOOCOMMERCE DESIGN */

/* Remove sidebars from shop and product pages */
body.woocommerce-shop #secondary,
body.woocommerce-shop #sidebar,
body.woocommerce-shop .sidebar,
body.woocommerce-shop .sidebar-wrapper,
body.woocommerce-shop .widget-area,
body.woocommerce-shop aside,
body.single-product #secondary,
body.single-product #sidebar,
body.single-product .sidebar,
body.single-product .sidebar-wrapper,
body.single-product .widget-area,
body.single-product aside {
    display: none !important;
}

/* Expand shop and product content */
body.woocommerce-shop #primary,
body.woocommerce-shop .content-area,
body.woocommerce-shop .content,
body.single-product #primary,
body.single-product #content,
body.single-product .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Product page content width */
body.single-product .section-inner {
    max-width: 1200px;
}

/* Remove unwanted product information */
body.single-product .product_meta .tagged_as,
body.single-product .comments-closed,
body.single-product p.no-comments,
body.single-product .woocommerce-tabs .additional_information_tab,
body.single-product #tab-additional_information {
    display: none !important;
}

/* Remove comments from product category pages */
body.tax-product_cat .comments,
body.tax-product_cat #comments,
body.tax-product_cat .comments-area,
body.tax-product_cat #respond {
    display: none !important;
}

/* Announcement strip */
body.woocommerce-page::before {
    content: "100% Canadian-Grown Seeds  •  Shipping Across Canada";
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #dce8d5;
    color: #263629;
    text-align: center;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Hide Baskerville navigation on shop pages */
body.post-type-archive-product #site-nav,
body.tax-product_cat #site-nav,
body.single-product #site-nav,
body.post-type-archive-product .main-navigation,
body.tax-product_cat .main-navigation,
body.single-product .main-navigation {
    display: none !important;
}

/* Shop and product typography */
body.woocommerce-page {
    font-family: "Lato", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #454545;
}

body.woocommerce-page h1,
body.woocommerce-page h2,
body.woocommerce-page h3 {
    font-family: "Lato", Arial, sans-serif;
    color: #333333;
    line-height: 1.3;
}

body.woocommerce-page .page-title,
body.woocommerce-page h1 {
    font-size: 28px;
}

body.woocommerce-page .woocommerce-loop-product__title {
    font-size: 16px;
    line-height: 1.4;
}

body.woocommerce-page p {
    margin-bottom: 1em;
}

/* Full-width shop catalogue */
body.post-type-archive-product #primary,
body.tax-product_cat #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.post-type-archive-product #secondary,
body.tax-product_cat #secondary {
    display: none !important;
}

/* Five products across */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
    position: static !important;
}

/* Remove old theme grid positioning */
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after {
    content: none !important;
    display: none !important;
}

/* Responsive product grid */
@media (max-width: 900px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Clear and centre shop pagination */
body.post-type-archive-product .woocommerce-pagination {
    display: block !important;
    clear: both;
    text-align: center;
    margin: 35px 0 !important;
}

body.post-type-archive-product .woocommerce-pagination ul.page-numbers {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    border: none !important;
}

body.post-type-archive-product .woocommerce-pagination a,
body.post-type-archive-product .woocommerce-pagination span {
    display: inline-block;
    padding: 10px 14px !important;
    background: #dce8d5 !important;
    color: #263629 !important;
    border-radius: 4px;
    text-decoration: none !important;
}

/* Hide related products on individual product pages */
body.single-product .related.products,
body.single-product .related,
body.single-product section.related,
body.single-product .related-products {
    display: none !important;
}
body.tax-product_cat #secondary,
body.tax-product_cat #sidebar,
body.tax-product_cat .sidebar,
body.tax-product_cat .sidebar-wrapper,
body.tax-product_cat .widget-area,
body.tax-product_cat aside {
    display: none !important;
}

body.tax-product_cat #primary,
body.tax-product_cat #content,
body.tax-product_cat .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}