/* 商品ページのメインスタイル */
.products-hero {
    background-color: #0a0a14;
    background-image: linear-gradient(rgba(10, 10, 20, 0.7), rgba(10, 10, 20, 0.9)), url('../images/hero/products-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 60px;
    margin-bottom: 40px;
    position: relative;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 0.2em;
    color: #fff;
    text-align: center;
}

.breadcrumb {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: #e0a80d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

/* 検索と絞り込み */
#products-search {
    padding: 20px 0 50px;
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    max-width: 500px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(224, 168, 13, 0.2);
}

#product-search {
    flex: 1;
    padding: 15px 5px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.05em;
    font-family: 'Noto Serif JP', serif;
}

#product-search:focus {
    outline: none;
}

#product-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-btn {
    background: transparent;
    color: #e0a80d;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-btn:hover {
    color: #fff;
}

.search-icon-text {
    font-size: 14px;
    letter-spacing: 0.05em;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
    color: #a0a0a0;
}

#sort-select {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(224, 168, 13, 0.3);
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
}

/* カテゴリータブ */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(224, 168, 13, 0.2);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #a0a0a0;
    padding: 10px 25px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    position: relative;
    font-family: 'Noto Serif JP', serif;
}

.tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 0;
    height: 3px;
    background-color: #e0a80d;
    transition: width 0.3s;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    width: 100%;
}

/* カテゴリーセクション */
.category-section {
    margin-bottom: 80px;
    opacity: 1;
    transition: opacity 0.5s, display 0.5s;
}

.category-section.hidden {
    display: none;
    opacity: 0;
}

.category-heading {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 40px;
    padding-bottom: 15px;
    letter-spacing: 0.1em;
    color: #fff;
    border-bottom: 1px solid rgba(224, 168, 13, 0.2);
    position: relative;
}

.category-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #e0a80d;
}

.result-count {
    font-size: 16px;
    color: #a0a0a0;
    font-weight: normal;
    margin-left: 15px;
}

/* 商品カード強化 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.product-card {
    background-color: #0a0a14;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 168, 13, 0.1) 0%, rgba(10, 10, 20, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: all 0.5s ease;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img {
    width: 100%;
    height: 280px;
    background-color: #161625;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    position: relative;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 20px;
    font-weight: 300;
    color: #e0a80d;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.product-desc {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 25px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.product-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: #e0a80d;
    text-decoration: none;
    font-weight: 400;
    border: 1px solid #e0a80d;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background-color: #e0a80d;
    color: #0a0a14;
}

/* 検索結果エリア */
.search-results {
    margin-bottom: 60px;
}

.search-results-grid {
    min-height: 200px;
}

.no-results {
    text-align: center;
    color: #a0a0a0;
    padding: 40px 0;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container, .sort-options {
        width: 100%;
        margin-bottom: 15px;
    }

    .page-title {
        font-size: 36px;
    }

    .category-heading {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        margin: 5px 0;
        width: 80%;
    }
    
    .tab-btn::after {
        bottom: 0;
    }
}

/* カード高さを統一 */
.product-card {
    height: auto;
    min-height: 500px; /* 必要に応じて調整 */
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 280px; /* すべての画像に同じ高さを設定 */
    width: 100%;
}

.product-info {
    flex-grow: 1; /* 情報部分を拡張して空きスペースを埋める */
    display: flex;
    flex-direction: column;
}

.product-desc {
    flex-grow: 1; /* 説明文を拡張して各カードの高さを揃える */
}