/* =====================================================
   YOKUCHI SHOP
   ===================================================== */

.yokuchi-shop {
    color: #1b1b1b;
}

body.post-type-archive-product .site-content,
body.woocommerce-shop .site-content,
body.woocommerce-page.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    padding-top: 0 !important;
}

body.post-type-archive-product .yokuchi-breadcrumbs,
body.woocommerce-shop .yokuchi-breadcrumbs,
body.woocommerce-page.post-type-archive-product .yokuchi-breadcrumbs,
body.tax-product_cat .yokuchi-breadcrumbs,
body.tax-product_tag .yokuchi-breadcrumbs {
    display: none !important;
}


/* =====================================================
   CONTAINER
   ===================================================== */

.yokuchi-container {
    width: min(calc(100% - 80px), 1440px);
    max-width: 1440px;
    margin: 0 auto;
}


/* =====================================================
   HERO
   ===================================================== */

.yokuchi-shop-hero {
	position: relative;
	z-index: 0;
    background: #F2EEED;
    overflow: hidden;
}

.yokuchi-shop-hero::before {
	content: '';
	display: block;
	position: absolute;
	z-index: -1;
	padding: 20vw;
	top: 0;
	right: 10%;
	border-radius: 50%;
	background: #fff;
	opacity: .5;
	filter: blur(50px);
	transform: translateY(-50%);
}

.yokuchi-shop-hero .yokuchi-container {
    padding-top: 27px;
	padding-bottom: 20px;
}

.yokuchi-shop-hero__content {
    min-height: 100%;

    align-items: center;

    position: relative;
}

.yokuchi-shop-hero__text {
    position: relative;
    z-index: 2;
}

.yokuchi-shop-hero__text h1 {
    margin: 0 0 14px;

    color: #151515;

    font-size: 27px;
    font-weight: 600;

    line-height: 1.1;

    letter-spacing: 9px;

    text-transform: uppercase;
}

.yokuchi-shop-hero__text p {
    margin: 0;

    color: #737373;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;
}

.yokuchi-heading-line {
    display: block;

    width: 46px;
    height: 2px;

    margin-top: 22px;

    background: #ec1d23;
}

/* =====================================================
   FILTERS
   ===================================================== */

.yokuchi-product-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    padding-bottom: 25px;
    margin-bottom: 42px;

    border-bottom: 1px solid #dedede;
}

.yokuchi-filter {
    appearance: none;

    min-height: 34px;

    padding: 0 13px;

    background: transparent;

    border: 1px solid #d7d7d7;
    border-radius: 0;

    color: #555;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;
    font-weight: 500;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.yokuchi-filter:hover {
    border-color: #ec1d23;
    color: #ec1d23;
}

.yokuchi-filter.active {
    border-color: #ec1d23;
    color: #ec1d23;
}


/* =====================================================
   GRID
   ===================================================== */

.yokuchi-products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    width: 100%;
    margin: 0;
    padding: 0;

    column-gap: 28px;
    row-gap: 42px;

    transition: opacity .2s ease;
}

.yokuchi-products-grid.is-loading {
    opacity: .45;
    pointer-events: none;
}


/* =====================================================
   CARD
   ===================================================== */

.yokuchi-product-card {
    box-sizing: border-box;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    width: 100% !important;
}

.woocommerce .yokuchi-products-grid .product,
.woocommerce-page .yokuchi-products-grid .product,
.woocommerce ul.products .yokuchi-product-card,
.woocommerce-page ul.products .yokuchi-product-card {
    clear: none !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.yokuchi-product-card__image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    background: #fafafa;

    overflow: hidden;
}

.yokuchi-product-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;

    object-fit: cover;

    transition: transform .35s ease;
}

.yokuchi-product-card:hover
.yokuchi-product-card__image img {
    transform: scale(1.025);
}


/* CONTENT */

.yokuchi-product-card__content {
    padding-top: 15px;
}

.yokuchi-product-card__title {
    min-height: 42px;

    margin: 0 0 14px !important;

    font-size: 13px !important;
    font-weight: 500 !important;

    line-height: 1.35 !important;

    letter-spacing: 0 !important;

    text-transform: none !important;
}

.yokuchi-product-card__title a {
    color: #313131;
    text-decoration: none;
}

.yokuchi-product-card__title a:hover {
    color: #ec1d23;
}


/* =====================================================
   BUTTON
   ===================================================== */

.yokuchi-product-card__button {
    width: 100%;
    min-height: 37px;

    padding: 0 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    border: 1px solid #777;

    color: #505050;

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        border-color .2s ease,
        color .2s ease;
}

.yokuchi-product-card__button:hover {
    color: #ec1d23;
    border-color: #ec1d23;
}

.yokuchi-product-card__arrow {
    position: absolute;

    right: 17px;

    color: #ec1d23;

    font-size: 17px;
    font-weight: 400;

    line-height: 1;
}


/* =====================================================
   LOAD MORE
   ===================================================== */

.yokuchi-load-more-wrap {
    margin-top: 54px;

    display: flex;
    flex-direction: column;

    align-items: center;
}

.yokuchi-load-more {
    min-width: 360px;
    height: 42px;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    background: #fff;

    border: 1px solid #ec1d23;

    border-radius: 0;

    color: #555;

    cursor: pointer;

    font-family: inherit;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        background .2s ease,
        color .2s ease;
}

.yokuchi-load-more:hover {
    background: #ec1d23;
    color: #fff;
}

.yokuchi-load-more.is-loading {
    opacity: .55;
    pointer-events: none;
}

.yokuchi-load-more span {
    color: #ec1d23;
}

.yokuchi-load-more:hover span {
    color: #fff;
}

.yokuchi-product-count {
    margin-top: 13px;

    color: #666;

    font-size: 10px;
}


/* =====================================================
   WOOCOMMERCE CLEANUP
   ===================================================== */

.yokuchi-products-grid::before,
.yokuchi-products-grid::after {
    content: none !important;
    display: none !important;
}

.yokuchi-product-card .price,
.yokuchi-product-card .star-rating,
.yokuchi-product-card .onsale,
.yokuchi-product-card .button,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination {
    display: none !important;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {

    .yokuchi-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .yokuchi-container {
        width: calc(100% - 32px);
        max-width: none;
    }

	.yokuchi-shop-hero__text {
		text-align: center;
		padding: 30px 0 20px;
	}

	.yokuchi-shop-hero .yokuchi-container {
		aspect-ratio: 450 / 350;
		min-height: 310px;
		background-position: right bottom;
		background-size: auto 85%;
	}

	.yokuchi-shop-hero__content {
		text-align: center;
	}

	.yokuchi-shop-hero__text h1 {
		font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 20px;
		font-weight: 500;
		font-style: normal;
		line-height: 40px;
		letter-spacing: 6px;
		text-align: center;
		text-transform: uppercase;
	}

	.yokuchi-shop-hero__text p {
		font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 16px;
		font-weight: 300;
		font-style: normal;
		line-height: 24px;
		letter-spacing: 0;
		text-align: center;
	}

	.yokuchi-shop-hero .yokuchi-heading-line {
		margin-right: auto;
		margin-left: auto;
	}

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

        gap: 30px 16px;
    }

    .yokuchi-product-filters {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 15px;
    }

    .yokuchi-filter {
        flex: 0 0 auto;
    }

}


@media (max-width: 480px) {

    .yokuchi-products-grid {
        grid-template-columns: 1fr;
    }

    .yokuchi-product-card__image {
        max-height: 380px;
    }

    .yokuchi-load-more {
        min-width: 0;
        width: 100%;
    }

}

/* The shop banner artwork is the image layer from the approved Figma layout. */
.yokuchi-shop .yokuchi-universal-hero:not(:has(.yokuchi-universal-hero__image)) {
    min-height: 478px;
    background-image: url('../images/shop-hero-figma.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 1473px auto;
}

.yokuchi-shop .yokuchi-universal-hero:not(:has(.yokuchi-universal-hero__image))::before {
    display: none;
}

.yokuchi-shop .yokuchi-universal-hero__container {
    min-height: 478px;
}

@media (max-width: 767px) {
    .yokuchi-shop .yokuchi-universal-hero:not(:has(.yokuchi-universal-hero__image)) {
        min-height: 310px;
        background-position: right bottom;
        background-size: auto 190px;
    }

    .yokuchi-shop .yokuchi-universal-hero__container {
        min-height: 310px;
        align-items: start;
        padding-top: 35px;
    }
}
