/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--text-light);
}

/* ========================================
   ページタイトル
   ======================================== */
.page-title {
    background: linear-gradient(135deg, #fff5f9 0%, #ffd4e5 100%);
    padding: 60px 20px;
    text-align: center;
}

.title-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.title-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   カートアイコン
   ======================================== */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* ========================================
   フィルターとソート
   ======================================== */
.filter-section {
    background: var(--bg-white);
    padding: 30px 20px;
    border-bottom: 2px solid var(--bg-light);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.filter-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================
   商品一覧
   ======================================== */
.products-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border: 2px solid var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary-color) 100%);
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '✨';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 2rem;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

.product-details {
    padding: 25px;
}

.product-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.product-stock {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-stock.in-stock {
    color: #4caf50;
}

.product-stock.low-stock {
    color: #ff9800;
}

.product-stock.out-of-stock {
    color: #f44336;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--secondary-color);
}

/* ========================================
   ローディング
   ======================================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   フッターナビゲーション
   ======================================== */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filters {
        justify-content: center;
    }

    .sort-controls {
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 200px;
        font-size: 4rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .product-price {
        font-size: 1.5rem;
    }
}