/* ====================
   GOODS PAGE
==================== */

.goods-page {
    width: min(1000px, calc(100% - 60px));
    margin: 0 auto;
    padding: 150px 0 80px;
}

/* =========================
   ヘッダー
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

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

    padding: 20px 30px;

    z-index: 100;
    pointer-events: none;
}

.logo {
    display: block;
    pointer-events: auto;
}

.logo img {
    display: block;
    width: 90px;
    height: auto;
}


/* =========================
   ハンバーガーボタン
========================= */

.menu-button {
    width: 35px;
    height: 35px;

    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    cursor: pointer;
    pointer-events: auto;
}

.menu-button span {
    display: block;

    width: 28px;
    height: 1.5px;

    background-color: #111;
}


/* =========================
   メニュー
========================= */

.menu {
    position: fixed;
    top: 0;
    right: 0;

    width: 420px;
    height: 100vh;

    background-color: #fff;

    z-index: 200;

    transform: translateX(100%);
    transition: transform 0.4s ease;

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

.menu.active {
    transform: translateX(0);
}

.menu ul {
    list-style: none;
    text-align: center;
}

.menu li {
    margin: 28px 0;
}

.menu li a {
    display: block;

    font-size: 20px;
    letter-spacing: 0.08em;

    padding: 12px 35px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* カーソルを合わせた項目だけ色が変わる */

.menu li a:hover {
    background-color: #111;
    color: #fff;
}


/* 閉じるボタン */

.close-button {
    position: absolute;
    top: 25px;
    right: 30px;

    border: none;
    background: none;

    font-size: 35px;
    font-weight: 200;

    cursor: pointer;
}


/* 検索欄 */

.goods-search {
    width: 160px;
    height: 38px;
    margin-left: auto;
    margin-bottom: 65px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-radius: 30px;
    background: #f7f7f7;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.goods-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
}

.goods-search input::placeholder {
    color: #777;
}

/* 検索アイコン */

.search-icon {
    position: relative;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border: 1.5px solid #555;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 1.5px;
    background: #555;
    right: -4px;
    bottom: -2px;
    transform: rotate(45deg);
}

/* カテゴリ */

.goods-categories h1 {
    margin-bottom: 38px;
    text-align: center;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    min-width: 65px;
    border: none;
    background: none;
    color: #111;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.category-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #dedede;
    transition: background-color 0.2s;
}

.category-button:hover .category-circle,
.category-button.active .category-circle {
    background: #bdbdbd;
}

/* 絞り込み・並び替え */

.goods-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 75px 0 45px;
    font-size: 13px;
}

.goods-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.goods-controls select {
    max-width: 120px;
    border: none;
    background: transparent;
    padding: 5px 0;
    font: inherit;
    cursor: pointer;
    color: #111;
}

.goods-count {
    white-space: nowrap;
}

.goods-count span {
    display: inline-block;
    margin-left: 8px;
    min-width: 35px;
    padding: 5px 8px;
    background: #dedede;
    text-align: center;
}

/* 商品一覧 */

.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 35px;
}

.goods-card {
    position: relative;
    min-width: 0;
    text-align: center;
}

.goods-link {
    color: #111;
    text-decoration: none;
}

.goods-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    margin-bottom: 14px;
}

.goods-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.goods-link:hover .goods-image img {
    transform: scale(1.03);
}

.goods-card h2 {
    margin: 0;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
}

.goods-price {
    margin-top: 8px;
    font-size: 15px;
}

/* 販売状況 */

.goods-status {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.goods-card[data-status="soldout"] .goods-status::after {
    content: "SOLD OUT";
}

.goods-card[data-status="presale"] .goods-status::after {
    content: "COMING SOON";
}

/* 該当商品なし */

.no-goods {
    padding: 60px 0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* PC */

@media screen and (min-width: 768px) {
    .goods-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 45px 30px;
    }
}

/* スマートフォン */

@media screen and (max-width: 767px) {
    .goods-page {
        width: calc(100% - 40px);
        padding-top: 105px;
        padding-bottom: 60px;
    }

    .goods-search {
        width: 160px;
        margin-bottom: 60px;
    }

    .goods-categories h1 {
        margin-bottom: 35px;
        font-size: 16px;
    }

    .category-list {
        justify-content: space-between;
        gap: 5px;
    }

    .category-button {
        min-width: 0;
        width: 25%;
        font-size: 12px;
    }

    .category-circle {
        width: 58px;
        height: 58px;
    }

    .goods-controls {
        flex-wrap: wrap;
        gap: 12px;
        margin: 65px 0 40px;
        font-size: 12px;
    }

    .goods-controls select {
        max-width: 95px;
        font-size: 12px;
    }

    .goods-count {
        margin-left: auto;
    }

    .goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .goods-card h2 {
        font-size: 12px;
    }

    .goods-price {
        font-size: 14px;
    }
}