/*
Theme Name:   storefront child
Description:  storefront child theme
Author:       Website Psychiatrist
Author URI:   https://websitepsychiatrist.com
Template:     storefront
Version:      1.0.0
*/

/* Inventory catalog layout */

body.inventory-catalog-theme .entry-content,
body.inventory-catalog-theme .site-content {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.catalog-access {
	background: #f2f7fc;
	color: #0c2d48;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.catalog-access a {
	color: inherit;
	font-weight: 600;
}

.catalog-access__search {
	flex: 1 1 320px;
}

.catalog-access__categories {
	flex: 2 1 480px;
}

.catalog-access__category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.catalog-access__category-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease;
}

.catalog-access__category-item a:hover,
.catalog-access__category-item a:focus {
	background: rgba(255, 255, 255, 0.3);
}

.catalog-access__filters {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
  padding: 0 5vw;
}

.catalog-access__filters-label {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #145da0;
}

.catalog-access__filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.catalog-access__filters-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(12, 45, 72, 0.08);
	color: #0c2d48;
	text-decoration: none;
	font-size: 0.85rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.catalog-access__filters-item a:hover,
.catalog-access__filters-item a:focus {
	background: #145da0;
	color: #fff;
}

.catalog-access__filters-item.is-active a {
	background: #145da0;
	color: #fff;
}

.catalog-header {
	margin-bottom: 2rem;
}

.catalog-header .page-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: #0c2d48;
}

/* Product archive emphasis */

.catalog-loop ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.woocommerce ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
	box-shadow: 0 0 0 1px rgba(12, 45, 72, 0.08);
	padding: 1.25rem;
	border-radius: 16px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 18px 40px rgba(12, 45, 72, 0.16);
	transform: translateY(-6px);
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .price {
	display: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0c2d48;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
	color: #145da0;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
	border-radius: 12px;
	margin-bottom: 1rem;
}

/* Single product layout */

.product-summary-wrap {
	align-items: flex-start;
}

.product-metadata-container {
	margin-top: 3rem;
}

.product-metadata-title {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.875rem;
	color: #0c2d48;
	margin-bottom: 1rem;
}

.product-metadata-container table {
	width: 100%;
	border-collapse: collapse;
}

.product-metadata-container th,
.product-metadata-container td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e1ecf4;
	text-align: left;
}

.product-metadata-container tbody tr:nth-child(even) {
	background: #f5f9fc;
}

.product_meta,
.woocommerce-product-gallery__trigger,
.woocommerce-variation-availability,
.woocommerce-product-details__short-description .price {
	display: none !important;
}

/* Breadcrumb alignment for catalog */

.woocommerce-breadcrumb {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0c2d48;
}

@media (max-width: 768px) {
	.catalog-access {
		flex-direction: column;
		align-items: stretch;
	}

	.catalog-access__filters {
		flex-direction: column;
		align-items: flex-start;
	}

	.catalog-access__category-list {
		gap: 0.5rem;
	}

	.catalog-access__category-item a {
		width: 100%;
		justify-content: center;
	}
}

li.catalog-access__filters-item {
    list-style: none;
    border-radius: 10px;
    background-color: #0c2d48;
    color: white;
    padding: 0.5em;
    & a {
      background-color: #0c2d48;
      color: white;
    }

    & a:hover {
      background-color: #0c2d48;
      color: white;
    }
}

.catalog-access__filters-item.is-active {
    background: #145da0;
    color: #fff;

    & a:hover {
      background: #145da0;
    }
}

ul.catalog-access__filters-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.catalog-access__filters {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

span.catalog-access__filters-label {
    font-size: 1.5rem;
    font-weight: 700;
}

ul.products::before {
  display: none;
}

.woocommerce-products-header {
    padding: 0 !important;
}

.storefront-breadcrumb {
  margin: 0 0 1rem 0;
}